@zuplo/cli 6.73.19 → 6.73.20
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/node_modules/@zuplo/core/customer.cli.minified.js +26 -26
- package/node_modules/@zuplo/core/index.minified.js +33 -33
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-JPPAUB3E.js → chunk-DBFG5V2I.js} +3 -3
- package/node_modules/@zuplo/runtime/out/esm/chunk-DBFG5V2I.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-JPPAUB3E.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-JPPAUB3E.js.LEGAL.txt → chunk-DBFG5V2I.js.LEGAL.txt} +0 -0
|
@@ -30,7 +30,7 @@ const require = topLevelCreateRequire(import.meta.url);
|
|
|
30
30
|
const __filename = fileURLToPath(import.meta.url);
|
|
31
31
|
const __dirname = dirname(__filename);
|
|
32
32
|
|
|
33
|
-
var AGt=Object.create;var cV=Object.defineProperty;var NGt=Object.getOwnPropertyDescriptor;var IGt=Object.getOwnPropertyNames;var OGt=Object.getPrototypeOf,FGt=Object.prototype.hasOwnProperty;var t=(s,o)=>cV(s,"name",{value:o,configurable:!0}),uo=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(o,f)=>(typeof require<"u"?require:o)[f]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});var LGt=(s,o,f)=>()=>{if(f)throw f[0];try{return s&&(o=s(s=0)),o}catch(d){throw f=[d],d}};var or=(s,o)=>()=>{try{return o||s((o={exports:{}}).exports,o),o.exports}catch(f){throw o=0,f}},qtt=(s,o)=>{for(var f in o)cV(s,f,{get:o[f],enumerable:!0})},Vtt=(s,o,f,d)=>{if(o&&typeof o=="object"||typeof o=="function")for(let y of IGt(o))!FGt.call(s,y)&&y!==f&&cV(s,y,{get:()=>o[y],enumerable:!(d=NGt(o,y))||d.enumerable});return s};var Pp=(s,o,f)=>(f=s!=null?AGt(OGt(s)):{},Vtt(o||!s||!s.__esModule?cV(f,"default",{value:s,enumerable:!0}):f,s)),Wu=s=>Vtt(cV({},"__esModule",{value:!0}),s);var mrt=or((FEr,bPe)=>{var prt=process.argv||[],_oe=process.env,KGt=!("NO_COLOR"in _oe||prt.includes("--no-color"))&&("FORCE_COLOR"in _oe||prt.includes("--color")||process.platform==="win32"||uo!=null&&uo("tty").isatty(1)&&_oe.TERM!=="dumb"||"CI"in _oe),XGt=t((s,o,f=s)=>d=>{let y=""+d,x=y.indexOf(o,s.length);return~x?s+ZGt(y,o,f,x)+o:s+y+o},"formatter"),ZGt=t((s,o,f,d)=>{let y="",x=0;do y+=s.substring(x,d)+f,x=d+o.length,d=s.indexOf(o,x);while(~d);return y+s.substring(x)},"replaceClose"),drt=t((s=KGt)=>{let o=s?XGt:()=>String;return{isColorSupported:s,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}},"createColors");bPe.exports=drt();bPe.exports.createColors=drt});var hrt=or(poe=>{Object.defineProperty(poe,"__esModule",{value:!0});poe.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;poe.matchToToken=function(s){var o={type:"invalid",value:s[0],closed:void 0};return s[1]?(o.type="string",o.closed=!!(s[3]||s[4])):s[5]?o.type="comment":s[6]?(o.type="comment",o.closed=!!s[7]):s[8]?o.type="regex":s[9]?o.type="number":s[10]?o.type="name":s[11]?o.type="punctuator":s[12]&&(o.type="whitespace"),o}});var Srt=or(_V=>{"use strict";Object.defineProperty(_V,"__esModule",{value:!0});_V.isIdentifierChar=brt;_V.isIdentifierName=rYt;_V.isIdentifierStart=vrt;var TPe="\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",grt="\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",QGt=new RegExp("["+TPe+"]"),eYt=new RegExp("["+TPe+grt+"]");TPe=grt=null;var yrt=[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],tYt=[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];function SPe(s,o){let f=65536;for(let d=0,y=o.length;d<y;d+=2){if(f+=o[d],f>s)return!1;if(f+=o[d+1],f>=s)return!0}return!1}t(SPe,"isInAstralSet");function vrt(s){return s<65?s===36:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&QGt.test(String.fromCharCode(s)):SPe(s,yrt)}t(vrt,"isIdentifierStart");function brt(s){return s<48?s===36:s<58?!0:s<65?!1:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&eYt.test(String.fromCharCode(s)):SPe(s,yrt)||SPe(s,tYt)}t(brt,"isIdentifierChar");function rYt(s){let o=!0;for(let f=0;f<s.length;f++){let d=s.charCodeAt(f);if((d&64512)===55296&&f+1<s.length){let y=s.charCodeAt(++f);(y&64512)===56320&&(d=65536+((d&1023)<<10)+(y&1023))}if(o){if(o=!1,!vrt(d))return!1}else if(!brt(d))return!1}return!o}t(rYt,"isIdentifierName")});var Crt=or(fO=>{"use strict";Object.defineProperty(fO,"__esModule",{value:!0});fO.isKeyword=oYt;fO.isReservedWord=Trt;fO.isStrictBindOnlyReservedWord=Ert;fO.isStrictBindReservedWord=aYt;fO.isStrictReservedWord=xrt;var xPe={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},nYt=new Set(xPe.keyword),iYt=new Set(xPe.strict),sYt=new Set(xPe.strictBind);function Trt(s,o){return o&&s==="await"||s==="enum"}t(Trt,"isReservedWord");function xrt(s,o){return Trt(s,o)||iYt.has(s)}t(xrt,"isStrictReservedWord");function Ert(s){return sYt.has(s)}t(Ert,"isStrictBindOnlyReservedWord");function aYt(s,o){return xrt(s,o)||Ert(s)}t(aYt,"isStrictBindReservedWord");function oYt(s){return nYt.has(s)}t(oYt,"isKeyword")});var krt=or(Pk=>{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});Object.defineProperty(Pk,"isIdentifierChar",{enumerable:!0,get:t(function(){return EPe.isIdentifierChar},"get")});Object.defineProperty(Pk,"isIdentifierName",{enumerable:!0,get:t(function(){return EPe.isIdentifierName},"get")});Object.defineProperty(Pk,"isIdentifierStart",{enumerable:!0,get:t(function(){return EPe.isIdentifierStart},"get")});Object.defineProperty(Pk,"isKeyword",{enumerable:!0,get:t(function(){return pV.isKeyword},"get")});Object.defineProperty(Pk,"isReservedWord",{enumerable:!0,get:t(function(){return pV.isReservedWord},"get")});Object.defineProperty(Pk,"isStrictBindOnlyReservedWord",{enumerable:!0,get:t(function(){return pV.isStrictBindOnlyReservedWord},"get")});Object.defineProperty(Pk,"isStrictBindReservedWord",{enumerable:!0,get:t(function(){return pV.isStrictBindReservedWord},"get")});Object.defineProperty(Pk,"isStrictReservedWord",{enumerable:!0,get:t(function(){return pV.isStrictReservedWord},"get")});var EPe=Srt(),pV=Crt()});var Rrt=or(dV=>{"use strict";Object.defineProperty(dV,"__esModule",{value:!0});var CPe=mrt(),wrt=hrt(),Drt=krt();function cYt(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:CPe.isColorSupported}t(cYt,"isColorSupported");var doe=t((s,o)=>f=>s(o(f)),"compose");function Nrt(s){return{keyword:s.cyan,capitalized:s.yellow,jsxIdentifier:s.yellow,punctuator:s.yellow,number:s.magenta,string:s.green,regex:s.magenta,comment:s.gray,invalid:doe(doe(s.white,s.bgRed),s.bold),gutter:s.gray,marker:doe(s.red,s.bold),message:doe(s.red,s.bold),reset:s.reset}}t(Nrt,"buildDefs");var lYt=Nrt(CPe.createColors(!0)),uYt=Nrt(CPe.createColors(!1));function Irt(s){return s?lYt:uYt}t(Irt,"getDefs");var fYt=new Set(["as","async","from","get","of","set"]),_Yt=/\r\n|[\n\r\u2028\u2029]/,pYt=/^[()[\]{}]$/,Ort;{let s=/^[a-z][\w-]*$/i,o=t(function(f,d,y){if(f.type==="name"){if(Drt.isKeyword(f.value)||Drt.isStrictReservedWord(f.value,!0)||fYt.has(f.value))return"keyword";if(s.test(f.value)&&(y[d-1]==="<"||y.slice(d-2,d)==="</"))return"jsxIdentifier";if(f.value[0]!==f.value[0].toLowerCase())return"capitalized"}return f.type==="punctuator"&&pYt.test(f.value)?"bracket":f.type==="invalid"&&(f.value==="@"||f.value==="#")?"punctuator":f.type},"getTokenType");Ort=t(function*(f){let d;for(;d=wrt.default.exec(f);){let y=wrt.matchToToken(d);yield{type:o(y,d.index,f),value:y.value}}},"tokenize")}function Frt(s){if(s==="")return"";let o=Irt(!0),f="";for(let{type:d,value:y}of Ort(s))d in o?f+=y.split(_Yt).map(x=>o[d](x)).join(`
|
|
33
|
+
var AGt=Object.create;var cV=Object.defineProperty;var NGt=Object.getOwnPropertyDescriptor;var IGt=Object.getOwnPropertyNames;var OGt=Object.getPrototypeOf,FGt=Object.prototype.hasOwnProperty;var t=(s,o)=>cV(s,"name",{value:o,configurable:!0}),uo=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(o,f)=>(typeof require<"u"?require:o)[f]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});var LGt=(s,o,f)=>()=>{if(f)throw f[0];try{return s&&(o=s(s=0)),o}catch(d){throw f=[d],d}};var or=(s,o)=>()=>{try{return o||s((o={exports:{}}).exports,o),o.exports}catch(f){throw o=0,f}},qtt=(s,o)=>{for(var f in o)cV(s,f,{get:o[f],enumerable:!0})},Vtt=(s,o,f,d)=>{if(o&&typeof o=="object"||typeof o=="function")for(let y of IGt(o))!FGt.call(s,y)&&y!==f&&cV(s,y,{get:()=>o[y],enumerable:!(d=NGt(o,y))||d.enumerable});return s};var Pp=(s,o,f)=>(f=s!=null?AGt(OGt(s)):{},Vtt(o||!s||!s.__esModule?cV(f,"default",{value:s,enumerable:!0}):f,s)),Wu=s=>Vtt(cV({},"__esModule",{value:!0}),s);var mrt=or((LEr,bPe)=>{var prt=process.argv||[],_oe=process.env,KGt=!("NO_COLOR"in _oe||prt.includes("--no-color"))&&("FORCE_COLOR"in _oe||prt.includes("--color")||process.platform==="win32"||uo!=null&&uo("tty").isatty(1)&&_oe.TERM!=="dumb"||"CI"in _oe),XGt=t((s,o,f=s)=>d=>{let y=""+d,x=y.indexOf(o,s.length);return~x?s+ZGt(y,o,f,x)+o:s+y+o},"formatter"),ZGt=t((s,o,f,d)=>{let y="",x=0;do y+=s.substring(x,d)+f,x=d+o.length,d=s.indexOf(o,x);while(~d);return y+s.substring(x)},"replaceClose"),drt=t((s=KGt)=>{let o=s?XGt:()=>String;return{isColorSupported:s,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}},"createColors");bPe.exports=drt();bPe.exports.createColors=drt});var hrt=or(poe=>{Object.defineProperty(poe,"__esModule",{value:!0});poe.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;poe.matchToToken=function(s){var o={type:"invalid",value:s[0],closed:void 0};return s[1]?(o.type="string",o.closed=!!(s[3]||s[4])):s[5]?o.type="comment":s[6]?(o.type="comment",o.closed=!!s[7]):s[8]?o.type="regex":s[9]?o.type="number":s[10]?o.type="name":s[11]?o.type="punctuator":s[12]&&(o.type="whitespace"),o}});var Srt=or(_V=>{"use strict";Object.defineProperty(_V,"__esModule",{value:!0});_V.isIdentifierChar=brt;_V.isIdentifierName=rYt;_V.isIdentifierStart=vrt;var TPe="\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",grt="\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",QGt=new RegExp("["+TPe+"]"),eYt=new RegExp("["+TPe+grt+"]");TPe=grt=null;var yrt=[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],tYt=[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];function SPe(s,o){let f=65536;for(let d=0,y=o.length;d<y;d+=2){if(f+=o[d],f>s)return!1;if(f+=o[d+1],f>=s)return!0}return!1}t(SPe,"isInAstralSet");function vrt(s){return s<65?s===36:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&QGt.test(String.fromCharCode(s)):SPe(s,yrt)}t(vrt,"isIdentifierStart");function brt(s){return s<48?s===36:s<58?!0:s<65?!1:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&eYt.test(String.fromCharCode(s)):SPe(s,yrt)||SPe(s,tYt)}t(brt,"isIdentifierChar");function rYt(s){let o=!0;for(let f=0;f<s.length;f++){let d=s.charCodeAt(f);if((d&64512)===55296&&f+1<s.length){let y=s.charCodeAt(++f);(y&64512)===56320&&(d=65536+((d&1023)<<10)+(y&1023))}if(o){if(o=!1,!vrt(d))return!1}else if(!brt(d))return!1}return!o}t(rYt,"isIdentifierName")});var Crt=or(fO=>{"use strict";Object.defineProperty(fO,"__esModule",{value:!0});fO.isKeyword=oYt;fO.isReservedWord=Trt;fO.isStrictBindOnlyReservedWord=Ert;fO.isStrictBindReservedWord=aYt;fO.isStrictReservedWord=xrt;var xPe={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},nYt=new Set(xPe.keyword),iYt=new Set(xPe.strict),sYt=new Set(xPe.strictBind);function Trt(s,o){return o&&s==="await"||s==="enum"}t(Trt,"isReservedWord");function xrt(s,o){return Trt(s,o)||iYt.has(s)}t(xrt,"isStrictReservedWord");function Ert(s){return sYt.has(s)}t(Ert,"isStrictBindOnlyReservedWord");function aYt(s,o){return xrt(s,o)||Ert(s)}t(aYt,"isStrictBindReservedWord");function oYt(s){return nYt.has(s)}t(oYt,"isKeyword")});var krt=or(Pk=>{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});Object.defineProperty(Pk,"isIdentifierChar",{enumerable:!0,get:t(function(){return EPe.isIdentifierChar},"get")});Object.defineProperty(Pk,"isIdentifierName",{enumerable:!0,get:t(function(){return EPe.isIdentifierName},"get")});Object.defineProperty(Pk,"isIdentifierStart",{enumerable:!0,get:t(function(){return EPe.isIdentifierStart},"get")});Object.defineProperty(Pk,"isKeyword",{enumerable:!0,get:t(function(){return pV.isKeyword},"get")});Object.defineProperty(Pk,"isReservedWord",{enumerable:!0,get:t(function(){return pV.isReservedWord},"get")});Object.defineProperty(Pk,"isStrictBindOnlyReservedWord",{enumerable:!0,get:t(function(){return pV.isStrictBindOnlyReservedWord},"get")});Object.defineProperty(Pk,"isStrictBindReservedWord",{enumerable:!0,get:t(function(){return pV.isStrictBindReservedWord},"get")});Object.defineProperty(Pk,"isStrictReservedWord",{enumerable:!0,get:t(function(){return pV.isStrictReservedWord},"get")});var EPe=Srt(),pV=Crt()});var Rrt=or(dV=>{"use strict";Object.defineProperty(dV,"__esModule",{value:!0});var CPe=mrt(),wrt=hrt(),Drt=krt();function cYt(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:CPe.isColorSupported}t(cYt,"isColorSupported");var doe=t((s,o)=>f=>s(o(f)),"compose");function Nrt(s){return{keyword:s.cyan,capitalized:s.yellow,jsxIdentifier:s.yellow,punctuator:s.yellow,number:s.magenta,string:s.green,regex:s.magenta,comment:s.gray,invalid:doe(doe(s.white,s.bgRed),s.bold),gutter:s.gray,marker:doe(s.red,s.bold),message:doe(s.red,s.bold),reset:s.reset}}t(Nrt,"buildDefs");var lYt=Nrt(CPe.createColors(!0)),uYt=Nrt(CPe.createColors(!1));function Irt(s){return s?lYt:uYt}t(Irt,"getDefs");var fYt=new Set(["as","async","from","get","of","set"]),_Yt=/\r\n|[\n\r\u2028\u2029]/,pYt=/^[()[\]{}]$/,Ort;{let s=/^[a-z][\w-]*$/i,o=t(function(f,d,y){if(f.type==="name"){if(Drt.isKeyword(f.value)||Drt.isStrictReservedWord(f.value,!0)||fYt.has(f.value))return"keyword";if(s.test(f.value)&&(y[d-1]==="<"||y.slice(d-2,d)==="</"))return"jsxIdentifier";if(f.value[0]!==f.value[0].toLowerCase())return"capitalized"}return f.type==="punctuator"&&pYt.test(f.value)?"bracket":f.type==="invalid"&&(f.value==="@"||f.value==="#")?"punctuator":f.type},"getTokenType");Ort=t(function*(f){let d;for(;d=wrt.default.exec(f);){let y=wrt.matchToToken(d);yield{type:o(y,d.index,f),value:y.value}}},"tokenize")}function Frt(s){if(s==="")return"";let o=Irt(!0),f="";for(let{type:d,value:y}of Ort(s))d in o?f+=y.split(_Yt).map(x=>o[d](x)).join(`
|
|
34
34
|
`):f+=y;return f}t(Frt,"highlight");var Prt=!1,Art=/\r\n|[\n\r\u2028\u2029]/;function dYt(s,o,f){let d=Object.assign({column:0,line:-1},s.start),y=Object.assign({},d,s.end),{linesAbove:x=2,linesBelow:A=3}=f||{},F=d.line,W=d.column,G=y.line,be=y.column,de=Math.max(F-(x+1),0),se=Math.min(o.length,G+A);F===-1&&(de=0),G===-1&&(se=o.length);let Xe=G-F,Ue={};if(Xe)for(let je=0;je<=Xe;je++){let Vt=je+F;if(!W)Ue[Vt]=!0;else if(je===0){let Ut=o[Vt-1].length;Ue[Vt]=[W,Ut-W+1]}else if(je===Xe)Ue[Vt]=[0,be];else{let Ut=o[Vt-je].length;Ue[Vt]=[0,Ut]}}else W===be?W?Ue[F]=[W,0]:Ue[F]=!0:Ue[F]=[W,be-W];return{start:de,end:se,markerLines:Ue}}t(dYt,"getMarkerLines");function Lrt(s,o,f={}){let d=f.forceColor||cYt()&&f.highlightCode,y=Irt(d),x=s.split(Art),{start:A,end:F,markerLines:W}=dYt(o,x,f),G=o.start&&typeof o.start.column=="number",be=String(F).length,se=(d?Frt(s):s).split(Art,F).slice(A,F).map((Xe,Ue)=>{let je=A+1+Ue,Ut=` ${` ${je}`.slice(-be)} |`,Ir=W[je],wn=!W[je+1];if(Ir){let sn="";if(Array.isArray(Ir)){let Jn=Xe.slice(0,Math.max(Ir[0]-1,0)).replace(/[^\t]/g," "),kr=Ir[1]||1;sn=[`
|
|
35
35
|
`,y.gutter(Ut.replace(/\d/g," "))," ",Jn,y.marker("^").repeat(kr)].join(""),wn&&f.message&&(sn+=" "+y.message(f.message))}return[y.marker(">"),y.gutter(Ut),Xe.length>0?` ${Xe}`:"",sn].join("")}else return` ${y.gutter(Ut)}${Xe.length>0?` ${Xe}`:""}`}).join(`
|
|
36
36
|
`);return f.message&&!G&&(se=`${" ".repeat(be+1)}${f.message}
|
|
@@ -56,29 +56,29 @@ Expecting `+In.join(", ")+", got '"+(this.terminals_[sn]||sn)+"'":PT="Parse erro
|
|
|
56
56
|
return undefined
|
|
57
57
|
}
|
|
58
58
|
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:t(function(o){var f=this.aliasable("container.hooks.blockHelperMissing"),d=[this.contextName(0)];this.setupHelperArgs(o,0,d);var y=this.popStack();d.splice(1,0,y),this.push(this.source.functionCall(f,"call",d))},"blockValue"),ambiguousBlockValue:t(function(){var o=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs("",0,f,!0),this.flushInline();var d=this.topStack();f.splice(1,0,d),this.pushSource(["if (!",this.lastHelper,") { ",d," = ",this.source.functionCall(o,"call",f),"}"])},"ambiguousBlockValue"),appendContent:t(function(o){this.pendingContent?o=this.pendingContent+o:this.pendingLocation=this.source.currentLocation,this.pendingContent=o},"appendContent"),append:t(function(){if(this.isInline())this.replaceStack(function(f){return[" != null ? ",f,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var o=this.popStack();this.pushSource(["if (",o," != null) { ",this.appendToBuffer(o,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:t(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:t(function(o){this.lastContext=o},"getContext"),pushContext:t(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:t(function(o,f,d,y){var x=0;!y&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(o[x++])):this.pushContext(),this.resolvePath("context",o,x,f,d)},"lookupOnContext"),lookupBlockParam:t(function(o,f){this.useBlockParams=!0,this.push(["blockParams[",o[0],"][",o[1],"]"]),this.resolvePath("context",f,1)},"lookupBlockParam"),lookupData:t(function(o,f,d){o?this.pushStackLiteral("container.data(data, "+o+")"):this.pushStackLiteral("data"),this.resolvePath("data",f,0,!0,d)},"lookupData"),resolvePath:t(function(o,f,d,y,x){var A=this;if(this.options.strict||this.options.assumeObjects){this.push(Eer(this.options.strict&&x,this,f,d,o));return}for(var F=f.length;d<F;d++)this.replaceStack(function(W){var G=A.nameLookup(W,f[d],o);return y?[" && ",G]:[" != null ? ",G," : ",W]})},"resolvePath"),resolvePossibleLambda:t(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:t(function(o,f){this.pushContext(),this.pushString(f),f!=="SubExpression"&&(typeof o=="string"?this.pushString(o):this.pushStackLiteral(o))},"pushStringParam"),emptyHash:t(function(o){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(o?"undefined":"{}")},"emptyHash"),pushHash:t(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:t(function(){var o=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(o.ids)),this.stringParams&&(this.push(this.objectLiteral(o.contexts)),this.push(this.objectLiteral(o.types))),this.push(this.objectLiteral(o.values))},"popHash"),pushString:t(function(o){this.pushStackLiteral(this.quotedString(o))},"pushString"),pushLiteral:t(function(o){this.pushStackLiteral(o)},"pushLiteral"),pushProgram:t(function(o){o!=null?this.pushStackLiteral(this.programExpression(o)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:t(function(o,f){var d=this.nameLookup("decorators",f,"decorator"),y=this.setupHelperArgs(f,o);this.decorators.push(["fn = ",this.decorators.functionCall(d,"",["fn","props","container",y])," || fn;"])},"registerDecorator"),invokeHelper:t(function(o,f,d){var y=this.popStack(),x=this.setupHelper(o,f),A=[];d&&A.push(x.name),A.push(y),this.options.strict||A.push(this.aliasable("container.hooks.helperMissing"));var F=["(",this.itemsSeparatedBy(A,"||"),")"],W=this.source.functionCall(F,"call",x.callParams);this.push(W)},"invokeHelper"),itemsSeparatedBy:t(function(o,f){var d=[];d.push(o[0]);for(var y=1;y<o.length;y++)d.push(f,o[y]);return d},"itemsSeparatedBy"),invokeKnownHelper:t(function(o,f){var d=this.setupHelper(o,f);this.push(this.source.functionCall(d.name,"call",d.callParams))},"invokeKnownHelper"),invokeAmbiguous:t(function(o,f){this.useRegister("helper");var d=this.popStack();this.emptyHash();var y=this.setupHelper(0,o,f),x=this.lastHelper=this.nameLookup("helpers",o,"helper"),A=["(","(helper = ",x," || ",d,")"];this.options.strict||(A[0]="(helper = ",A.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",A,y.paramsInit?["),(",y.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",y.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:t(function(o,f,d){var y=[],x=this.setupParams(f,1,y);o&&(f=this.popStack(),delete x.name),d&&(x.indent=JSON.stringify(d)),x.helpers="helpers",x.partials="partials",x.decorators="container.decorators",o?y.unshift(f):y.unshift(this.nameLookup("partials",f,"partial")),this.options.compat&&(x.depths="depths"),x=this.objectLiteral(x),y.push(x),this.push(this.source.functionCall("container.invokePartial","",y))},"invokePartial"),assignToHash:t(function(o){var f=this.popStack(),d=void 0,y=void 0,x=void 0;this.trackIds&&(x=this.popStack()),this.stringParams&&(y=this.popStack(),d=this.popStack());var A=this.hash;d&&(A.contexts[o]=d),y&&(A.types[o]=y),x&&(A.ids[o]=x),A.values[o]=f},"assignToHash"),pushId:t(function(o,f,d){o==="BlockParam"?this.pushStackLiteral("blockParams["+f[0]+"].path["+f[1]+"]"+(d?" + "+JSON.stringify("."+d):"")):o==="PathExpression"?this.pushString(f):o==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:X9,compileChildren:t(function(o,f){for(var d=o.children,y=void 0,x=void 0,A=0,F=d.length;A<F;A++){y=d[A],x=new this.compiler;var W=this.matchExistingProgram(y);if(W==null){this.context.programs.push("");var G=this.context.programs.length;y.index=G,y.name="program"+G,this.context.programs[G]=x.compile(y,f,this.context,!this.precompile),this.context.decorators[G]=x.decorators,this.context.environments[G]=y,this.useDepths=this.useDepths||x.useDepths,this.useBlockParams=this.useBlockParams||x.useBlockParams,y.useDepths=this.useDepths,y.useBlockParams=this.useBlockParams}else y.index=W.index,y.name="program"+W.index,this.useDepths=this.useDepths||W.useDepths,this.useBlockParams=this.useBlockParams||W.useBlockParams}},"compileChildren"),matchExistingProgram:t(function(o){for(var f=0,d=this.context.environments.length;f<d;f++){var y=this.context.environments[f];if(y&&y.equals(o))return y}},"matchExistingProgram"),programExpression:t(function(o){var f=this.environment.children[o],d=[f.index,"data",f.blockParams];return(this.useBlockParams||this.useDepths)&&d.push("blockParams"),this.useDepths&&d.push("depths"),"container.program("+d.join(", ")+")"},"programExpression"),useRegister:t(function(o){this.registers[o]||(this.registers[o]=!0,this.registers.list.push(o))},"useRegister"),push:t(function(o){return o instanceof K9||(o=this.source.wrap(o)),this.inlineStack.push(o),o},"push"),pushStackLiteral:t(function(o){this.push(new K9(o))},"pushStackLiteral"),pushSource:t(function(o){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),o&&this.source.push(o)},"pushSource"),replaceStack:t(function(o){var f=["("],d=void 0,y=void 0,x=void 0;if(!this.isInline())throw new LAe.default("replaceStack on non-inline");var A=this.popStack(!0);if(A instanceof K9)d=[A.value],f=["(",d],x=!0;else{y=!0;var F=this.incrStack();f=["((",this.push(F)," = ",A,")"],d=this.topStack()}var W=o.call(this,d);x||this.popStack(),y&&this.stackSlot--,this.push(f.concat(W,")"))},"replaceStack"),incrStack:t(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:t(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:t(function(){var o=this.inlineStack;this.inlineStack=[];for(var f=0,d=o.length;f<d;f++){var y=o[f];if(y instanceof K9)this.compileStack.push(y);else{var x=this.incrStack();this.pushSource([x," = ",y,";"]),this.compileStack.push(x)}}},"flushInline"),isInline:t(function(){return this.inlineStack.length},"isInline"),popStack:t(function(o){var f=this.isInline(),d=(f?this.inlineStack:this.compileStack).pop();if(!o&&d instanceof K9)return d.value;if(!f){if(!this.stackSlot)throw new LAe.default("Invalid stack pop");this.stackSlot--}return d},"popStack"),topStack:t(function(){var o=this.isInline()?this.inlineStack:this.compileStack,f=o[o.length-1];return f instanceof K9?f.value:f},"topStack"),contextName:t(function(o){return this.useDepths&&o?"depths["+o+"]":"depth"+o},"contextName"),quotedString:t(function(o){return this.source.quotedString(o)},"quotedString"),objectLiteral:t(function(o){return this.source.objectLiteral(o)},"objectLiteral"),aliasable:t(function(o){var f=this.aliases[o];return f?(f.referenceCount++,f):(f=this.aliases[o]=this.source.wrap(o),f.aliasable=!0,f.referenceCount=1,f)},"aliasable"),setupHelper:t(function(o,f,d){var y=[],x=this.setupHelperArgs(f,o,y,d),A=this.nameLookup("helpers",f,"helper"),F=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:y,paramsInit:x,name:A,callParams:[F].concat(y)}},"setupHelper"),setupParams:t(function(o,f,d){var y={},x=[],A=[],F=[],W=!d,G=void 0;W&&(d=[]),y.name=this.quotedString(o),y.hash=this.popStack(),this.trackIds&&(y.hashIds=this.popStack()),this.stringParams&&(y.hashTypes=this.popStack(),y.hashContexts=this.popStack());var be=this.popStack(),de=this.popStack();(de||be)&&(y.fn=de||"container.noop",y.inverse=be||"container.noop");for(var se=f;se--;)G=this.popStack(),d[se]=G,this.trackIds&&(F[se]=this.popStack()),this.stringParams&&(A[se]=this.popStack(),x[se]=this.popStack());return W&&(y.args=this.source.generateArray(d)),this.trackIds&&(y.ids=this.source.generateArray(F)),this.stringParams&&(y.types=this.source.generateArray(A),y.contexts=this.source.generateArray(x)),this.options.data&&(y.data="data"),this.useBlockParams&&(y.blockParams="blockParams"),y},"setupParams"),setupHelperArgs:t(function(o,f,d,y){var x=this.setupParams(o,f,d);return x.loc=JSON.stringify(this.source.currentLocation),x=this.objectLiteral(x),y?(this.useRegister("options"),d.push("options"),["options=",x]):d?(d.push(x),""):x},"setupHelperArgs")};(function(){for(var s="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),o=X9.RESERVED_WORDS={},f=0,d=s.length;f<d;f++)o[s[f]]=!0})();X9.isValidJavaScriptVariableName=function(s){return!X9.RESERVED_WORDS[s]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(s)};function Eer(s,o,f,d,y){var x=o.popStack(),A=f.length;for(s&&A--;d<A;d++)x=o.nameLookup(x,f[d],y);return s?[o.aliasable("container.strict"),"(",x,", ",o.quotedString(f[d]),", ",JSON.stringify(o.source.currentLocation)," )"]:x}t(Eer,"strictLookup");mce.default=X9;Ast.exports=mce.default});var Fst=or((hce,Ost)=>{"use strict";hce.__esModule=!0;function WV(s){return s&&s.__esModule?s:{default:s}}t(WV,"_interopRequireDefault");var Cer=sst(),ker=WV(Cer),wer=CAe(),Der=WV(wer),RAe=yst(),MAe=Tst(),Per=Nst(),Aer=WV(Per),Ner=fce(),Ier=WV(Ner),Oer=SAe(),Fer=WV(Oer),Ler=ker.default.create;function Ist(){var s=Ler();return s.compile=function(o,f){return MAe.compile(o,f,s)},s.precompile=function(o,f){return MAe.precompile(o,f,s)},s.AST=Der.default,s.Compiler=MAe.Compiler,s.JavaScriptCompiler=Aer.default,s.Parser=RAe.parser,s.parse=RAe.parse,s.parseWithoutProcessing=RAe.parseWithoutProcessing,s}t(Ist,"create");var Z9=Ist();Z9.create=Ist;Fer.default(Z9);Z9.Visitor=Ier.default;Z9.default=Z9;hce.default=Z9;Ost.exports=hce.default});var Lst=or(gce=>{"use strict";gce.__esModule=!0;gce.print=Ber;gce.PrintVisitor=Zd;function Rer(s){return s&&s.__esModule?s:{default:s}}t(Rer,"_interopRequireDefault");var Mer=fce(),jer=Rer(Mer);function Ber(s){return new Zd().accept(s)}t(Ber,"print");function Zd(){this.padding=0}t(Zd,"PrintVisitor");Zd.prototype=new jer.default;Zd.prototype.pad=function(s){for(var o="",f=0,d=this.padding;f<d;f++)o+=" ";return o+=s+`
|
|
59
|
-
`,o};Zd.prototype.Program=function(s){var o="",f=s.body,d=void 0,y=void 0;if(s.blockParams){var x="BLOCK PARAMS: [";for(d=0,y=s.blockParams.length;d<y;d++)x+=" "+s.blockParams[d];x+=" ]",o+=this.pad(x)}for(d=0,y=f.length;d<y;d++)o+=this.accept(f[d]);return this.padding--,o};Zd.prototype.MustacheStatement=function(s){return this.pad("{{ "+this.SubExpression(s)+" }}")};Zd.prototype.Decorator=function(s){return this.pad("{{ DIRECTIVE "+this.SubExpression(s)+" }}")};Zd.prototype.BlockStatement=Zd.prototype.DecoratorBlock=function(s){var o="";return o+=this.pad((s.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,o+=this.pad(this.SubExpression(s)),s.program&&(o+=this.pad("PROGRAM:"),this.padding++,o+=this.accept(s.program),this.padding--),s.inverse&&(s.program&&this.padding++,o+=this.pad("{{^}}"),this.padding++,o+=this.accept(s.inverse),this.padding--,s.program&&this.padding--),this.padding--,o};Zd.prototype.PartialStatement=function(s){var o="PARTIAL:"+s.name.original;return s.params[0]&&(o+=" "+this.accept(s.params[0])),s.hash&&(o+=" "+this.accept(s.hash)),this.pad("{{> "+o+" }}")};Zd.prototype.PartialBlockStatement=function(s){var o="PARTIAL BLOCK:"+s.name.original;return s.params[0]&&(o+=" "+this.accept(s.params[0])),s.hash&&(o+=" "+this.accept(s.hash)),o+=" "+this.pad("PROGRAM:"),this.padding++,o+=this.accept(s.program),this.padding--,this.pad("{{> "+o+" }}")};Zd.prototype.ContentStatement=function(s){return this.pad("CONTENT[ '"+s.value+"' ]")};Zd.prototype.CommentStatement=function(s){return this.pad("{{! '"+s.value+"' }}")};Zd.prototype.SubExpression=function(s){for(var o=s.params,f=[],d=void 0,y=0,x=o.length;y<x;y++)f.push(this.accept(o[y]));return o="["+f.join(", ")+"]",d=s.hash?" "+this.accept(s.hash):"",this.accept(s.path)+" "+o+d};Zd.prototype.PathExpression=function(s){var o=s.parts.join("/");return(s.data?"@":"")+"PATH:"+o};Zd.prototype.StringLiteral=function(s){return'"'+s.value+'"'};Zd.prototype.NumberLiteral=function(s){return"NUMBER{"+s.value+"}"};Zd.prototype.BooleanLiteral=function(s){return"BOOLEAN{"+s.value+"}"};Zd.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Zd.prototype.NullLiteral=function(){return"NULL"};Zd.prototype.Hash=function(s){for(var o=s.pairs,f=[],d=0,y=o.length;d<y;d++)f.push(this.accept(o[d]));return"HASH{"+f.join(", ")+"}"};Zd.prototype.HashPair=function(s){return s.key+"="+this.accept(s.value)}});var Bst=or((Bwr,jst)=>{var yce=Fst().default,Mst=Lst();yce.PrintVisitor=Mst.PrintVisitor;yce.print=Mst.print;jst.exports=yce;function Rst(s,o){var f=uo("fs"),d=f.readFileSync(o,"utf8");s.exports=yce.compile(d)}t(Rst,"extension");typeof uo<"u"&&uo.extensions&&(uo.extensions[".handlebars"]=Rst,uo.extensions[".hbs"]=Rst)});var tM=or(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.regexpCode=qu.getEsmExportName=qu.getProperty=qu.safeStringify=qu.stringify=qu.strConcat=qu.addCodeArg=qu.str=qu._=qu.nil=qu._Code=qu.Name=qu.IDENTIFIER=qu._CodeOrName=void 0;var ZV=class{static{t(this,"_CodeOrName")}};qu._CodeOrName=ZV;qu.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var TO=class extends ZV{static{t(this,"Name")}constructor(o){if(super(),!qu.IDENTIFIER.test(o))throw new Error("CodeGen: name must be a valid identifier");this.str=o}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};qu.Name=TO;var _T=class extends ZV{static{t(this,"_Code")}constructor(o){super(),this._items=typeof o=="string"?[o]:o}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let o=this._items[0];return o===""||o==='""'}get str(){var o;return(o=this._str)!==null&&o!==void 0?o:this._str=this._items.reduce((f,d)=>`${f}${d}`,"")}get names(){var o;return(o=this._names)!==null&&o!==void 0?o:this._names=this._items.reduce((f,d)=>(d instanceof TO&&(f[d.str]=(f[d.str]||0)+1),f),{})}};qu._Code=_T;qu.nil=new _T("");function sat(s,...o){let f=[s[0]],d=0;for(;d<o.length;)HAe(f,o[d]),f.push(s[++d]);return new _T(f)}t(sat,"_");qu._=sat;var VAe=new _T("+");function aat(s,...o){let f=[QV(s[0])],d=0;for(;d<o.length;)f.push(VAe),HAe(f,o[d]),f.push(VAe,QV(s[++d]));return ktr(f),new _T(f)}t(aat,"str");qu.str=aat;function HAe(s,o){o instanceof _T?s.push(...o._items):o instanceof TO?s.push(o):s.push(Ptr(o))}t(HAe,"addCodeArg");qu.addCodeArg=HAe;function ktr(s){let o=1;for(;o<s.length-1;){if(s[o]===VAe){let f=wtr(s[o-1],s[o+1]);if(f!==void 0){s.splice(o-1,3,f);continue}s[o++]="+"}o++}}t(ktr,"optimize");function wtr(s,o){if(o==='""')return s;if(s==='""')return o;if(typeof s=="string")return o instanceof TO||s[s.length-1]!=='"'?void 0:typeof o!="string"?`${s.slice(0,-1)}${o}"`:o[0]==='"'?s.slice(0,-1)+o.slice(1):void 0;if(typeof o=="string"&&o[0]==='"'&&!(s instanceof TO))return`"${s}${o.slice(1)}`}t(wtr,"mergeExprItems");function Dtr(s,o){return o.emptyStr()?s:s.emptyStr()?o:aat`${s}${o}`}t(Dtr,"strConcat");qu.strConcat=Dtr;function Ptr(s){return typeof s=="number"||typeof s=="boolean"||s===null?s:QV(Array.isArray(s)?s.join(","):s)}t(Ptr,"interpolate");function Atr(s){return new _T(QV(s))}t(Atr,"stringify");qu.stringify=Atr;function QV(s){return JSON.stringify(s).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t(QV,"safeStringify");qu.safeStringify=QV;function Ntr(s){return typeof s=="string"&&qu.IDENTIFIER.test(s)?new _T(`.${s}`):sat`[${s}]`}t(Ntr,"getProperty");qu.getProperty=Ntr;function Itr(s){if(typeof s=="string"&&qu.IDENTIFIER.test(s))return new _T(`${s}`);throw new Error(`CodeGen: invalid export name: ${s}, use explicit $id name mapping`)}t(Itr,"getEsmExportName");qu.getEsmExportName=Itr;function Otr(s){return new _T(s.toString())}t(Otr,"regexpCode");qu.regexpCode=Otr});var Tce=or(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.ValueScope=Kv.ValueScopeName=Kv.Scope=Kv.varKinds=Kv.UsedValueState=void 0;var Yv=tM(),GAe=class extends Error{static{t(this,"ValueError")}constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}},vce;(function(s){s[s.Started=0]="Started",s[s.Completed=1]="Completed"})(vce||(Kv.UsedValueState=vce={}));Kv.varKinds={const:new Yv.Name("const"),let:new Yv.Name("let"),var:new Yv.Name("var")};var bce=class{static{t(this,"Scope")}constructor({prefixes:o,parent:f}={}){this._names={},this._prefixes=o,this._parent=f}toName(o){return o instanceof Yv.Name?o:this.name(o)}name(o){return new Yv.Name(this._newName(o))}_newName(o){let f=this._names[o]||this._nameGroup(o);return`${o}${f.index++}`}_nameGroup(o){var f,d;if(!((d=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||d===void 0)&&d.has(o)||this._prefixes&&!this._prefixes.has(o))throw new Error(`CodeGen: prefix "${o}" is not allowed in this scope`);return this._names[o]={prefix:o,index:0}}};Kv.Scope=bce;var Sce=class extends Yv.Name{static{t(this,"ValueScopeName")}constructor(o,f){super(f),this.prefix=o}setValue(o,{property:f,itemIndex:d}){this.value=o,this.scopePath=(0,Yv._)`.${new Yv.Name(f)}[${d}]`}};Kv.ValueScopeName=Sce;var Ftr=(0,Yv._)`\n`,YAe=class extends bce{static{t(this,"ValueScope")}constructor(o){super(o),this._values={},this._scope=o.scope,this.opts={...o,_n:o.lines?Ftr:Yv.nil}}get(){return this._scope}name(o){return new Sce(o,this._newName(o))}value(o,f){var d;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let y=this.toName(o),{prefix:x}=y,A=(d=f.key)!==null&&d!==void 0?d:f.ref,F=this._values[x];if(F){let be=F.get(A);if(be)return be}else F=this._values[x]=new Map;F.set(A,y);let W=this._scope[x]||(this._scope[x]=[]),G=W.length;return W[G]=f.ref,y.setValue(f,{property:x,itemIndex:G}),y}getValue(o,f){let d=this._values[o];if(d)return d.get(f)}scopeRefs(o,f=this._values){return this._reduceValues(f,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,Yv._)`${o}${d.scopePath}`})}scopeCode(o=this._values,f,d){return this._reduceValues(o,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},f,d)}_reduceValues(o,f,d={},y){let x=Yv.nil;for(let A in o){let F=o[A];if(!F)continue;let W=d[A]=d[A]||new Map;F.forEach(G=>{if(W.has(G))return;W.set(G,vce.Started);let be=f(G);if(be){let de=this.opts.es5?Kv.varKinds.var:Kv.varKinds.const;x=(0,Yv._)`${x}${de} ${G} = ${be};${this.opts._n}`}else if(be=y?.(G))x=(0,Yv._)`${x}${be}${this.opts._n}`;else throw new GAe(G);W.set(G,vce.Completed)})}return x}};Kv.ValueScope=YAe});var Ec=or(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.or=Nl.and=Nl.not=Nl.CodeGen=Nl.operators=Nl.varKinds=Nl.ValueScopeName=Nl.ValueScope=Nl.Scope=Nl.Name=Nl.regexpCode=Nl.stringify=Nl.getProperty=Nl.nil=Nl.strConcat=Nl.str=Nl._=void 0;var yu=tM(),bE=Tce(),nI=tM();Object.defineProperty(Nl,"_",{enumerable:!0,get:t(function(){return nI._},"get")});Object.defineProperty(Nl,"str",{enumerable:!0,get:t(function(){return nI.str},"get")});Object.defineProperty(Nl,"strConcat",{enumerable:!0,get:t(function(){return nI.strConcat},"get")});Object.defineProperty(Nl,"nil",{enumerable:!0,get:t(function(){return nI.nil},"get")});Object.defineProperty(Nl,"getProperty",{enumerable:!0,get:t(function(){return nI.getProperty},"get")});Object.defineProperty(Nl,"stringify",{enumerable:!0,get:t(function(){return nI.stringify},"get")});Object.defineProperty(Nl,"regexpCode",{enumerable:!0,get:t(function(){return nI.regexpCode},"get")});Object.defineProperty(Nl,"Name",{enumerable:!0,get:t(function(){return nI.Name},"get")});var kce=Tce();Object.defineProperty(Nl,"Scope",{enumerable:!0,get:t(function(){return kce.Scope},"get")});Object.defineProperty(Nl,"ValueScope",{enumerable:!0,get:t(function(){return kce.ValueScope},"get")});Object.defineProperty(Nl,"ValueScopeName",{enumerable:!0,get:t(function(){return kce.ValueScopeName},"get")});Object.defineProperty(Nl,"varKinds",{enumerable:!0,get:t(function(){return kce.varKinds},"get")});Nl.operators={GT:new yu._Code(">"),GTE:new yu._Code(">="),LT:new yu._Code("<"),LTE:new yu._Code("<="),EQ:new yu._Code("==="),NEQ:new yu._Code("!=="),NOT:new yu._Code("!"),OR:new yu._Code("||"),AND:new yu._Code("&&"),ADD:new yu._Code("+")};var GP=class{static{t(this,"Node")}optimizeNodes(){return this}optimizeNames(o,f){return this}},KAe=class extends GP{static{t(this,"Def")}constructor(o,f,d){super(),this.varKind=o,this.name=f,this.rhs=d}render({es5:o,_n:f}){let d=o?bE.varKinds.var:this.varKind,y=this.rhs===void 0?"":` = ${this.rhs}`;return`${d} ${this.name}${y};`+f}optimizeNames(o,f){if(o[this.name.str])return this.rhs&&(this.rhs=nM(this.rhs,o,f)),this}get names(){return this.rhs instanceof yu._CodeOrName?this.rhs.names:{}}},xce=class extends GP{static{t(this,"Assign")}constructor(o,f,d){super(),this.lhs=o,this.rhs=f,this.sideEffects=d}render({_n:o}){return`${this.lhs} = ${this.rhs};`+o}optimizeNames(o,f){if(!(this.lhs instanceof yu.Name&&!o[this.lhs.str]&&!this.sideEffects))return this.rhs=nM(this.rhs,o,f),this}get names(){let o=this.lhs instanceof yu.Name?{}:{...this.lhs.names};return Cce(o,this.rhs)}},XAe=class extends xce{static{t(this,"AssignOp")}constructor(o,f,d,y){super(o,d,y),this.op=f}render({_n:o}){return`${this.lhs} ${this.op}= ${this.rhs};`+o}},ZAe=class extends GP{static{t(this,"Label")}constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`${this.label}:`+o}},QAe=class extends GP{static{t(this,"Break")}constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`break${this.label?` ${this.label}`:""};`+o}},e6e=class extends GP{static{t(this,"Throw")}constructor(o){super(),this.error=o}render({_n:o}){return`throw ${this.error};`+o}get names(){return this.error.names}},t6e=class extends GP{static{t(this,"AnyCode")}constructor(o){super(),this.code=o}render({_n:o}){return`${this.code};`+o}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(o,f){return this.code=nM(this.code,o,f),this}get names(){return this.code instanceof yu._CodeOrName?this.code.names:{}}},eH=class extends GP{static{t(this,"ParentNode")}constructor(o=[]){super(),this.nodes=o}render(o){return this.nodes.reduce((f,d)=>f+d.render(o),"")}optimizeNodes(){let{nodes:o}=this,f=o.length;for(;f--;){let d=o[f].optimizeNodes();Array.isArray(d)?o.splice(f,1,...d):d?o[f]=d:o.splice(f,1)}return o.length>0?this:void 0}optimizeNames(o,f){let{nodes:d}=this,y=d.length;for(;y--;){let x=d[y];x.optimizeNames(o,f)||(Ltr(o,x.names),d.splice(y,1))}return d.length>0?this:void 0}get names(){return this.nodes.reduce((o,f)=>CO(o,f.names),{})}},YP=class extends eH{static{t(this,"BlockNode")}render(o){return"{"+o._n+super.render(o)+"}"+o._n}},r6e=class extends eH{static{t(this,"Root")}},rM=class extends YP{static{t(this,"Else")}};rM.kind="else";var xO=class s extends YP{static{t(this,"If")}constructor(o,f){super(f),this.condition=o}render(o){let f=`if(${this.condition})`+super.render(o);return this.else&&(f+="else "+this.else.render(o)),f}optimizeNodes(){super.optimizeNodes();let o=this.condition;if(o===!0)return this.nodes;let f=this.else;if(f){let d=f.optimizeNodes();f=this.else=Array.isArray(d)?new rM(d):d}if(f)return o===!1?f instanceof s?f:f.nodes:this.nodes.length?this:new s(oat(o),f instanceof s?[f]:f.nodes);if(!(o===!1||!this.nodes.length))return this}optimizeNames(o,f){var d;if(this.else=(d=this.else)===null||d===void 0?void 0:d.optimizeNames(o,f),!!(super.optimizeNames(o,f)||this.else))return this.condition=nM(this.condition,o,f),this}get names(){let o=super.names;return Cce(o,this.condition),this.else&&CO(o,this.else.names),o}};xO.kind="if";var EO=class extends YP{static{t(this,"For")}};EO.kind="for";var n6e=class extends EO{static{t(this,"ForLoop")}constructor(o){super(),this.iteration=o}render(o){return`for(${this.iteration})`+super.render(o)}optimizeNames(o,f){if(super.optimizeNames(o,f))return this.iteration=nM(this.iteration,o,f),this}get names(){return CO(super.names,this.iteration.names)}},i6e=class extends EO{static{t(this,"ForRange")}constructor(o,f,d,y){super(),this.varKind=o,this.name=f,this.from=d,this.to=y}render(o){let f=o.es5?bE.varKinds.var:this.varKind,{name:d,from:y,to:x}=this;return`for(${f} ${d}=${y}; ${d}<${x}; ${d}++)`+super.render(o)}get names(){let o=Cce(super.names,this.from);return Cce(o,this.to)}},Ece=class extends EO{static{t(this,"ForIter")}constructor(o,f,d,y){super(),this.loop=o,this.varKind=f,this.name=d,this.iterable=y}render(o){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(o)}optimizeNames(o,f){if(super.optimizeNames(o,f))return this.iterable=nM(this.iterable,o,f),this}get names(){return CO(super.names,this.iterable.names)}},tH=class extends YP{static{t(this,"Func")}constructor(o,f,d){super(),this.name=o,this.args=f,this.async=d}render(o){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(o)}};tH.kind="func";var rH=class extends eH{static{t(this,"Return")}render(o){return"return "+super.render(o)}};rH.kind="return";var s6e=class extends YP{static{t(this,"Try")}render(o){let f="try"+super.render(o);return this.catch&&(f+=this.catch.render(o)),this.finally&&(f+=this.finally.render(o)),f}optimizeNodes(){var o,f;return super.optimizeNodes(),(o=this.catch)===null||o===void 0||o.optimizeNodes(),(f=this.finally)===null||f===void 0||f.optimizeNodes(),this}optimizeNames(o,f){var d,y;return super.optimizeNames(o,f),(d=this.catch)===null||d===void 0||d.optimizeNames(o,f),(y=this.finally)===null||y===void 0||y.optimizeNames(o,f),this}get names(){let o=super.names;return this.catch&&CO(o,this.catch.names),this.finally&&CO(o,this.finally.names),o}},nH=class extends YP{static{t(this,"Catch")}constructor(o){super(),this.error=o}render(o){return`catch(${this.error})`+super.render(o)}};nH.kind="catch";var iH=class extends YP{static{t(this,"Finally")}render(o){return"finally"+super.render(o)}};iH.kind="finally";var a6e=class{static{t(this,"CodeGen")}constructor(o,f={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...f,_n:f.lines?`
|
|
59
|
+
`,o};Zd.prototype.Program=function(s){var o="",f=s.body,d=void 0,y=void 0;if(s.blockParams){var x="BLOCK PARAMS: [";for(d=0,y=s.blockParams.length;d<y;d++)x+=" "+s.blockParams[d];x+=" ]",o+=this.pad(x)}for(d=0,y=f.length;d<y;d++)o+=this.accept(f[d]);return this.padding--,o};Zd.prototype.MustacheStatement=function(s){return this.pad("{{ "+this.SubExpression(s)+" }}")};Zd.prototype.Decorator=function(s){return this.pad("{{ DIRECTIVE "+this.SubExpression(s)+" }}")};Zd.prototype.BlockStatement=Zd.prototype.DecoratorBlock=function(s){var o="";return o+=this.pad((s.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,o+=this.pad(this.SubExpression(s)),s.program&&(o+=this.pad("PROGRAM:"),this.padding++,o+=this.accept(s.program),this.padding--),s.inverse&&(s.program&&this.padding++,o+=this.pad("{{^}}"),this.padding++,o+=this.accept(s.inverse),this.padding--,s.program&&this.padding--),this.padding--,o};Zd.prototype.PartialStatement=function(s){var o="PARTIAL:"+s.name.original;return s.params[0]&&(o+=" "+this.accept(s.params[0])),s.hash&&(o+=" "+this.accept(s.hash)),this.pad("{{> "+o+" }}")};Zd.prototype.PartialBlockStatement=function(s){var o="PARTIAL BLOCK:"+s.name.original;return s.params[0]&&(o+=" "+this.accept(s.params[0])),s.hash&&(o+=" "+this.accept(s.hash)),o+=" "+this.pad("PROGRAM:"),this.padding++,o+=this.accept(s.program),this.padding--,this.pad("{{> "+o+" }}")};Zd.prototype.ContentStatement=function(s){return this.pad("CONTENT[ '"+s.value+"' ]")};Zd.prototype.CommentStatement=function(s){return this.pad("{{! '"+s.value+"' }}")};Zd.prototype.SubExpression=function(s){for(var o=s.params,f=[],d=void 0,y=0,x=o.length;y<x;y++)f.push(this.accept(o[y]));return o="["+f.join(", ")+"]",d=s.hash?" "+this.accept(s.hash):"",this.accept(s.path)+" "+o+d};Zd.prototype.PathExpression=function(s){var o=s.parts.join("/");return(s.data?"@":"")+"PATH:"+o};Zd.prototype.StringLiteral=function(s){return'"'+s.value+'"'};Zd.prototype.NumberLiteral=function(s){return"NUMBER{"+s.value+"}"};Zd.prototype.BooleanLiteral=function(s){return"BOOLEAN{"+s.value+"}"};Zd.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Zd.prototype.NullLiteral=function(){return"NULL"};Zd.prototype.Hash=function(s){for(var o=s.pairs,f=[],d=0,y=o.length;d<y;d++)f.push(this.accept(o[d]));return"HASH{"+f.join(", ")+"}"};Zd.prototype.HashPair=function(s){return s.key+"="+this.accept(s.value)}});var Bst=or((Uwr,jst)=>{var yce=Fst().default,Mst=Lst();yce.PrintVisitor=Mst.PrintVisitor;yce.print=Mst.print;jst.exports=yce;function Rst(s,o){var f=uo("fs"),d=f.readFileSync(o,"utf8");s.exports=yce.compile(d)}t(Rst,"extension");typeof uo<"u"&&uo.extensions&&(uo.extensions[".handlebars"]=Rst,uo.extensions[".hbs"]=Rst)});var tM=or(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.regexpCode=qu.getEsmExportName=qu.getProperty=qu.safeStringify=qu.stringify=qu.strConcat=qu.addCodeArg=qu.str=qu._=qu.nil=qu._Code=qu.Name=qu.IDENTIFIER=qu._CodeOrName=void 0;var ZV=class{static{t(this,"_CodeOrName")}};qu._CodeOrName=ZV;qu.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var TO=class extends ZV{static{t(this,"Name")}constructor(o){if(super(),!qu.IDENTIFIER.test(o))throw new Error("CodeGen: name must be a valid identifier");this.str=o}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};qu.Name=TO;var _T=class extends ZV{static{t(this,"_Code")}constructor(o){super(),this._items=typeof o=="string"?[o]:o}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let o=this._items[0];return o===""||o==='""'}get str(){var o;return(o=this._str)!==null&&o!==void 0?o:this._str=this._items.reduce((f,d)=>`${f}${d}`,"")}get names(){var o;return(o=this._names)!==null&&o!==void 0?o:this._names=this._items.reduce((f,d)=>(d instanceof TO&&(f[d.str]=(f[d.str]||0)+1),f),{})}};qu._Code=_T;qu.nil=new _T("");function sat(s,...o){let f=[s[0]],d=0;for(;d<o.length;)HAe(f,o[d]),f.push(s[++d]);return new _T(f)}t(sat,"_");qu._=sat;var VAe=new _T("+");function aat(s,...o){let f=[QV(s[0])],d=0;for(;d<o.length;)f.push(VAe),HAe(f,o[d]),f.push(VAe,QV(s[++d]));return ktr(f),new _T(f)}t(aat,"str");qu.str=aat;function HAe(s,o){o instanceof _T?s.push(...o._items):o instanceof TO?s.push(o):s.push(Ptr(o))}t(HAe,"addCodeArg");qu.addCodeArg=HAe;function ktr(s){let o=1;for(;o<s.length-1;){if(s[o]===VAe){let f=wtr(s[o-1],s[o+1]);if(f!==void 0){s.splice(o-1,3,f);continue}s[o++]="+"}o++}}t(ktr,"optimize");function wtr(s,o){if(o==='""')return s;if(s==='""')return o;if(typeof s=="string")return o instanceof TO||s[s.length-1]!=='"'?void 0:typeof o!="string"?`${s.slice(0,-1)}${o}"`:o[0]==='"'?s.slice(0,-1)+o.slice(1):void 0;if(typeof o=="string"&&o[0]==='"'&&!(s instanceof TO))return`"${s}${o.slice(1)}`}t(wtr,"mergeExprItems");function Dtr(s,o){return o.emptyStr()?s:s.emptyStr()?o:aat`${s}${o}`}t(Dtr,"strConcat");qu.strConcat=Dtr;function Ptr(s){return typeof s=="number"||typeof s=="boolean"||s===null?s:QV(Array.isArray(s)?s.join(","):s)}t(Ptr,"interpolate");function Atr(s){return new _T(QV(s))}t(Atr,"stringify");qu.stringify=Atr;function QV(s){return JSON.stringify(s).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t(QV,"safeStringify");qu.safeStringify=QV;function Ntr(s){return typeof s=="string"&&qu.IDENTIFIER.test(s)?new _T(`.${s}`):sat`[${s}]`}t(Ntr,"getProperty");qu.getProperty=Ntr;function Itr(s){if(typeof s=="string"&&qu.IDENTIFIER.test(s))return new _T(`${s}`);throw new Error(`CodeGen: invalid export name: ${s}, use explicit $id name mapping`)}t(Itr,"getEsmExportName");qu.getEsmExportName=Itr;function Otr(s){return new _T(s.toString())}t(Otr,"regexpCode");qu.regexpCode=Otr});var Tce=or(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.ValueScope=Kv.ValueScopeName=Kv.Scope=Kv.varKinds=Kv.UsedValueState=void 0;var Yv=tM(),GAe=class extends Error{static{t(this,"ValueError")}constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}},vce;(function(s){s[s.Started=0]="Started",s[s.Completed=1]="Completed"})(vce||(Kv.UsedValueState=vce={}));Kv.varKinds={const:new Yv.Name("const"),let:new Yv.Name("let"),var:new Yv.Name("var")};var bce=class{static{t(this,"Scope")}constructor({prefixes:o,parent:f}={}){this._names={},this._prefixes=o,this._parent=f}toName(o){return o instanceof Yv.Name?o:this.name(o)}name(o){return new Yv.Name(this._newName(o))}_newName(o){let f=this._names[o]||this._nameGroup(o);return`${o}${f.index++}`}_nameGroup(o){var f,d;if(!((d=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||d===void 0)&&d.has(o)||this._prefixes&&!this._prefixes.has(o))throw new Error(`CodeGen: prefix "${o}" is not allowed in this scope`);return this._names[o]={prefix:o,index:0}}};Kv.Scope=bce;var Sce=class extends Yv.Name{static{t(this,"ValueScopeName")}constructor(o,f){super(f),this.prefix=o}setValue(o,{property:f,itemIndex:d}){this.value=o,this.scopePath=(0,Yv._)`.${new Yv.Name(f)}[${d}]`}};Kv.ValueScopeName=Sce;var Ftr=(0,Yv._)`\n`,YAe=class extends bce{static{t(this,"ValueScope")}constructor(o){super(o),this._values={},this._scope=o.scope,this.opts={...o,_n:o.lines?Ftr:Yv.nil}}get(){return this._scope}name(o){return new Sce(o,this._newName(o))}value(o,f){var d;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let y=this.toName(o),{prefix:x}=y,A=(d=f.key)!==null&&d!==void 0?d:f.ref,F=this._values[x];if(F){let be=F.get(A);if(be)return be}else F=this._values[x]=new Map;F.set(A,y);let W=this._scope[x]||(this._scope[x]=[]),G=W.length;return W[G]=f.ref,y.setValue(f,{property:x,itemIndex:G}),y}getValue(o,f){let d=this._values[o];if(d)return d.get(f)}scopeRefs(o,f=this._values){return this._reduceValues(f,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,Yv._)`${o}${d.scopePath}`})}scopeCode(o=this._values,f,d){return this._reduceValues(o,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},f,d)}_reduceValues(o,f,d={},y){let x=Yv.nil;for(let A in o){let F=o[A];if(!F)continue;let W=d[A]=d[A]||new Map;F.forEach(G=>{if(W.has(G))return;W.set(G,vce.Started);let be=f(G);if(be){let de=this.opts.es5?Kv.varKinds.var:Kv.varKinds.const;x=(0,Yv._)`${x}${de} ${G} = ${be};${this.opts._n}`}else if(be=y?.(G))x=(0,Yv._)`${x}${be}${this.opts._n}`;else throw new GAe(G);W.set(G,vce.Completed)})}return x}};Kv.ValueScope=YAe});var Ec=or(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.or=Nl.and=Nl.not=Nl.CodeGen=Nl.operators=Nl.varKinds=Nl.ValueScopeName=Nl.ValueScope=Nl.Scope=Nl.Name=Nl.regexpCode=Nl.stringify=Nl.getProperty=Nl.nil=Nl.strConcat=Nl.str=Nl._=void 0;var yu=tM(),bE=Tce(),nI=tM();Object.defineProperty(Nl,"_",{enumerable:!0,get:t(function(){return nI._},"get")});Object.defineProperty(Nl,"str",{enumerable:!0,get:t(function(){return nI.str},"get")});Object.defineProperty(Nl,"strConcat",{enumerable:!0,get:t(function(){return nI.strConcat},"get")});Object.defineProperty(Nl,"nil",{enumerable:!0,get:t(function(){return nI.nil},"get")});Object.defineProperty(Nl,"getProperty",{enumerable:!0,get:t(function(){return nI.getProperty},"get")});Object.defineProperty(Nl,"stringify",{enumerable:!0,get:t(function(){return nI.stringify},"get")});Object.defineProperty(Nl,"regexpCode",{enumerable:!0,get:t(function(){return nI.regexpCode},"get")});Object.defineProperty(Nl,"Name",{enumerable:!0,get:t(function(){return nI.Name},"get")});var kce=Tce();Object.defineProperty(Nl,"Scope",{enumerable:!0,get:t(function(){return kce.Scope},"get")});Object.defineProperty(Nl,"ValueScope",{enumerable:!0,get:t(function(){return kce.ValueScope},"get")});Object.defineProperty(Nl,"ValueScopeName",{enumerable:!0,get:t(function(){return kce.ValueScopeName},"get")});Object.defineProperty(Nl,"varKinds",{enumerable:!0,get:t(function(){return kce.varKinds},"get")});Nl.operators={GT:new yu._Code(">"),GTE:new yu._Code(">="),LT:new yu._Code("<"),LTE:new yu._Code("<="),EQ:new yu._Code("==="),NEQ:new yu._Code("!=="),NOT:new yu._Code("!"),OR:new yu._Code("||"),AND:new yu._Code("&&"),ADD:new yu._Code("+")};var GP=class{static{t(this,"Node")}optimizeNodes(){return this}optimizeNames(o,f){return this}},KAe=class extends GP{static{t(this,"Def")}constructor(o,f,d){super(),this.varKind=o,this.name=f,this.rhs=d}render({es5:o,_n:f}){let d=o?bE.varKinds.var:this.varKind,y=this.rhs===void 0?"":` = ${this.rhs}`;return`${d} ${this.name}${y};`+f}optimizeNames(o,f){if(o[this.name.str])return this.rhs&&(this.rhs=nM(this.rhs,o,f)),this}get names(){return this.rhs instanceof yu._CodeOrName?this.rhs.names:{}}},xce=class extends GP{static{t(this,"Assign")}constructor(o,f,d){super(),this.lhs=o,this.rhs=f,this.sideEffects=d}render({_n:o}){return`${this.lhs} = ${this.rhs};`+o}optimizeNames(o,f){if(!(this.lhs instanceof yu.Name&&!o[this.lhs.str]&&!this.sideEffects))return this.rhs=nM(this.rhs,o,f),this}get names(){let o=this.lhs instanceof yu.Name?{}:{...this.lhs.names};return Cce(o,this.rhs)}},XAe=class extends xce{static{t(this,"AssignOp")}constructor(o,f,d,y){super(o,d,y),this.op=f}render({_n:o}){return`${this.lhs} ${this.op}= ${this.rhs};`+o}},ZAe=class extends GP{static{t(this,"Label")}constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`${this.label}:`+o}},QAe=class extends GP{static{t(this,"Break")}constructor(o){super(),this.label=o,this.names={}}render({_n:o}){return`break${this.label?` ${this.label}`:""};`+o}},e6e=class extends GP{static{t(this,"Throw")}constructor(o){super(),this.error=o}render({_n:o}){return`throw ${this.error};`+o}get names(){return this.error.names}},t6e=class extends GP{static{t(this,"AnyCode")}constructor(o){super(),this.code=o}render({_n:o}){return`${this.code};`+o}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(o,f){return this.code=nM(this.code,o,f),this}get names(){return this.code instanceof yu._CodeOrName?this.code.names:{}}},eH=class extends GP{static{t(this,"ParentNode")}constructor(o=[]){super(),this.nodes=o}render(o){return this.nodes.reduce((f,d)=>f+d.render(o),"")}optimizeNodes(){let{nodes:o}=this,f=o.length;for(;f--;){let d=o[f].optimizeNodes();Array.isArray(d)?o.splice(f,1,...d):d?o[f]=d:o.splice(f,1)}return o.length>0?this:void 0}optimizeNames(o,f){let{nodes:d}=this,y=d.length;for(;y--;){let x=d[y];x.optimizeNames(o,f)||(Ltr(o,x.names),d.splice(y,1))}return d.length>0?this:void 0}get names(){return this.nodes.reduce((o,f)=>CO(o,f.names),{})}},YP=class extends eH{static{t(this,"BlockNode")}render(o){return"{"+o._n+super.render(o)+"}"+o._n}},r6e=class extends eH{static{t(this,"Root")}},rM=class extends YP{static{t(this,"Else")}};rM.kind="else";var xO=class s extends YP{static{t(this,"If")}constructor(o,f){super(f),this.condition=o}render(o){let f=`if(${this.condition})`+super.render(o);return this.else&&(f+="else "+this.else.render(o)),f}optimizeNodes(){super.optimizeNodes();let o=this.condition;if(o===!0)return this.nodes;let f=this.else;if(f){let d=f.optimizeNodes();f=this.else=Array.isArray(d)?new rM(d):d}if(f)return o===!1?f instanceof s?f:f.nodes:this.nodes.length?this:new s(oat(o),f instanceof s?[f]:f.nodes);if(!(o===!1||!this.nodes.length))return this}optimizeNames(o,f){var d;if(this.else=(d=this.else)===null||d===void 0?void 0:d.optimizeNames(o,f),!!(super.optimizeNames(o,f)||this.else))return this.condition=nM(this.condition,o,f),this}get names(){let o=super.names;return Cce(o,this.condition),this.else&&CO(o,this.else.names),o}};xO.kind="if";var EO=class extends YP{static{t(this,"For")}};EO.kind="for";var n6e=class extends EO{static{t(this,"ForLoop")}constructor(o){super(),this.iteration=o}render(o){return`for(${this.iteration})`+super.render(o)}optimizeNames(o,f){if(super.optimizeNames(o,f))return this.iteration=nM(this.iteration,o,f),this}get names(){return CO(super.names,this.iteration.names)}},i6e=class extends EO{static{t(this,"ForRange")}constructor(o,f,d,y){super(),this.varKind=o,this.name=f,this.from=d,this.to=y}render(o){let f=o.es5?bE.varKinds.var:this.varKind,{name:d,from:y,to:x}=this;return`for(${f} ${d}=${y}; ${d}<${x}; ${d}++)`+super.render(o)}get names(){let o=Cce(super.names,this.from);return Cce(o,this.to)}},Ece=class extends EO{static{t(this,"ForIter")}constructor(o,f,d,y){super(),this.loop=o,this.varKind=f,this.name=d,this.iterable=y}render(o){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(o)}optimizeNames(o,f){if(super.optimizeNames(o,f))return this.iterable=nM(this.iterable,o,f),this}get names(){return CO(super.names,this.iterable.names)}},tH=class extends YP{static{t(this,"Func")}constructor(o,f,d){super(),this.name=o,this.args=f,this.async=d}render(o){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(o)}};tH.kind="func";var rH=class extends eH{static{t(this,"Return")}render(o){return"return "+super.render(o)}};rH.kind="return";var s6e=class extends YP{static{t(this,"Try")}render(o){let f="try"+super.render(o);return this.catch&&(f+=this.catch.render(o)),this.finally&&(f+=this.finally.render(o)),f}optimizeNodes(){var o,f;return super.optimizeNodes(),(o=this.catch)===null||o===void 0||o.optimizeNodes(),(f=this.finally)===null||f===void 0||f.optimizeNodes(),this}optimizeNames(o,f){var d,y;return super.optimizeNames(o,f),(d=this.catch)===null||d===void 0||d.optimizeNames(o,f),(y=this.finally)===null||y===void 0||y.optimizeNames(o,f),this}get names(){let o=super.names;return this.catch&&CO(o,this.catch.names),this.finally&&CO(o,this.finally.names),o}},nH=class extends YP{static{t(this,"Catch")}constructor(o){super(),this.error=o}render(o){return`catch(${this.error})`+super.render(o)}};nH.kind="catch";var iH=class extends YP{static{t(this,"Finally")}render(o){return"finally"+super.render(o)}};iH.kind="finally";var a6e=class{static{t(this,"CodeGen")}constructor(o,f={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...f,_n:f.lines?`
|
|
60
60
|
`:""},this._extScope=o,this._scope=new bE.Scope({parent:o}),this._nodes=[new r6e]}toString(){return this._root.render(this.opts)}name(o){return this._scope.name(o)}scopeName(o){return this._extScope.name(o)}scopeValue(o,f){let d=this._extScope.value(o,f);return(this._values[d.prefix]||(this._values[d.prefix]=new Set)).add(d),d}getScopeValue(o,f){return this._extScope.getValue(o,f)}scopeRefs(o){return this._extScope.scopeRefs(o,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(o,f,d,y){let x=this._scope.toName(f);return d!==void 0&&y&&(this._constants[x.str]=d),this._leafNode(new KAe(o,x,d)),x}const(o,f,d){return this._def(bE.varKinds.const,o,f,d)}let(o,f,d){return this._def(bE.varKinds.let,o,f,d)}var(o,f,d){return this._def(bE.varKinds.var,o,f,d)}assign(o,f,d){return this._leafNode(new xce(o,f,d))}add(o,f){return this._leafNode(new XAe(o,Nl.operators.ADD,f))}code(o){return typeof o=="function"?o():o!==yu.nil&&this._leafNode(new t6e(o)),this}object(...o){let f=["{"];for(let[d,y]of o)f.length>1&&f.push(","),f.push(d),(d!==y||this.opts.es5)&&(f.push(":"),(0,yu.addCodeArg)(f,y));return f.push("}"),new yu._Code(f)}if(o,f,d){if(this._blockNode(new xO(o)),f&&d)this.code(f).else().code(d).endIf();else if(f)this.code(f).endIf();else if(d)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(o){return this._elseNode(new xO(o))}else(){return this._elseNode(new rM)}endIf(){return this._endBlockNode(xO,rM)}_for(o,f){return this._blockNode(o),f&&this.code(f).endFor(),this}for(o,f){return this._for(new n6e(o),f)}forRange(o,f,d,y,x=this.opts.es5?bE.varKinds.var:bE.varKinds.let){let A=this._scope.toName(o);return this._for(new i6e(x,A,f,d),()=>y(A))}forOf(o,f,d,y=bE.varKinds.const){let x=this._scope.toName(o);if(this.opts.es5){let A=f instanceof yu.Name?f:this.var("_arr",f);return this.forRange("_i",0,(0,yu._)`${A}.length`,F=>{this.var(x,(0,yu._)`${A}[${F}]`),d(x)})}return this._for(new Ece("of",y,x,f),()=>d(x))}forIn(o,f,d,y=this.opts.es5?bE.varKinds.var:bE.varKinds.const){if(this.opts.ownProperties)return this.forOf(o,(0,yu._)`Object.keys(${f})`,d);let x=this._scope.toName(o);return this._for(new Ece("in",y,x,f),()=>d(x))}endFor(){return this._endBlockNode(EO)}label(o){return this._leafNode(new ZAe(o))}break(o){return this._leafNode(new QAe(o))}return(o){let f=new rH;if(this._blockNode(f),this.code(o),f.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(rH)}try(o,f,d){if(!f&&!d)throw new Error('CodeGen: "try" without "catch" and "finally"');let y=new s6e;if(this._blockNode(y),this.code(o),f){let x=this.name("e");this._currNode=y.catch=new nH(x),f(x)}return d&&(this._currNode=y.finally=new iH,this.code(d)),this._endBlockNode(nH,iH)}throw(o){return this._leafNode(new e6e(o))}block(o,f){return this._blockStarts.push(this._nodes.length),o&&this.code(o).endBlock(f),this}endBlock(o){let f=this._blockStarts.pop();if(f===void 0)throw new Error("CodeGen: not in self-balancing block");let d=this._nodes.length-f;if(d<0||o!==void 0&&d!==o)throw new Error(`CodeGen: wrong number of nodes: ${d} vs ${o} expected`);return this._nodes.length=f,this}func(o,f=yu.nil,d,y){return this._blockNode(new tH(o,f,d)),y&&this.code(y).endFunc(),this}endFunc(){return this._endBlockNode(tH)}optimize(o=1){for(;o-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(o){return this._currNode.nodes.push(o),this}_blockNode(o){this._currNode.nodes.push(o),this._nodes.push(o)}_endBlockNode(o,f){let d=this._currNode;if(d instanceof o||f&&d instanceof f)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${f?`${o.kind}/${f.kind}`:o.kind}"`)}_elseNode(o){let f=this._currNode;if(!(f instanceof xO))throw new Error('CodeGen: "else" without "if"');return this._currNode=f.else=o,this}get _root(){return this._nodes[0]}get _currNode(){let o=this._nodes;return o[o.length-1]}set _currNode(o){let f=this._nodes;f[f.length-1]=o}};Nl.CodeGen=a6e;function CO(s,o){for(let f in o)s[f]=(s[f]||0)+(o[f]||0);return s}t(CO,"addNames");function Cce(s,o){return o instanceof yu._CodeOrName?CO(s,o.names):s}t(Cce,"addExprNames");function nM(s,o,f){if(s instanceof yu.Name)return d(s);if(!y(s))return s;return new yu._Code(s._items.reduce((x,A)=>(A instanceof yu.Name&&(A=d(A)),A instanceof yu._Code?x.push(...A._items):x.push(A),x),[]));function d(x){let A=f[x.str];return A===void 0||o[x.str]!==1?x:(delete o[x.str],A)}function y(x){return x instanceof yu._Code&&x._items.some(A=>A instanceof yu.Name&&o[A.str]===1&&f[A.str]!==void 0)}}t(nM,"optimizeExpr");function Ltr(s,o){for(let f in o)s[f]=(s[f]||0)-(o[f]||0)}t(Ltr,"subtractNames");function oat(s){return typeof s=="boolean"||typeof s=="number"||s===null?!s:(0,yu._)`!${o6e(s)}`}t(oat,"not");Nl.not=oat;var Rtr=cat(Nl.operators.AND);function Mtr(...s){return s.reduce(Rtr)}t(Mtr,"and");Nl.and=Mtr;var jtr=cat(Nl.operators.OR);function Btr(...s){return s.reduce(jtr)}t(Btr,"or");Nl.or=Btr;function cat(s){return(o,f)=>o===yu.nil?f:f===yu.nil?o:(0,yu._)`${o6e(o)} ${s} ${o6e(f)}`}t(cat,"mappend");function o6e(s){return s instanceof yu.Name?s:(0,yu._)`(${s})`}t(o6e,"par")});var tu=or(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.checkStrictMode=Wl.getErrorPath=Wl.Type=Wl.useFunc=Wl.setEvaluated=Wl.evaluatedPropsToName=Wl.mergeEvaluated=Wl.eachItem=Wl.unescapeJsonPointer=Wl.escapeJsonPointer=Wl.escapeFragment=Wl.unescapeFragment=Wl.schemaRefOrVal=Wl.schemaHasRulesButRef=Wl.schemaHasRules=Wl.checkUnknownRules=Wl.alwaysValidSchema=Wl.toHash=void 0;var B_=Ec(),Utr=tM();function ztr(s){let o={};for(let f of s)o[f]=!0;return o}t(ztr,"toHash");Wl.toHash=ztr;function $tr(s,o){return typeof o=="boolean"?o:Object.keys(o).length===0?!0:(fat(s,o),!_at(o,s.self.RULES.all))}t($tr,"alwaysValidSchema");Wl.alwaysValidSchema=$tr;function fat(s,o=s.schema){let{opts:f,self:d}=s;if(!f.strictSchema||typeof o=="boolean")return;let y=d.RULES.keywords;for(let x in o)y[x]||mat(s,`unknown keyword: "${x}"`)}t(fat,"checkUnknownRules");Wl.checkUnknownRules=fat;function _at(s,o){if(typeof s=="boolean")return!s;for(let f in s)if(o[f])return!0;return!1}t(_at,"schemaHasRules");Wl.schemaHasRules=_at;function Jtr(s,o){if(typeof s=="boolean")return!s;for(let f in s)if(f!=="$ref"&&o.all[f])return!0;return!1}t(Jtr,"schemaHasRulesButRef");Wl.schemaHasRulesButRef=Jtr;function Wtr({topSchemaRef:s,schemaPath:o},f,d,y){if(!y){if(typeof f=="number"||typeof f=="boolean")return f;if(typeof f=="string")return(0,B_._)`${f}`}return(0,B_._)`${s}${o}${(0,B_.getProperty)(d)}`}t(Wtr,"schemaRefOrVal");Wl.schemaRefOrVal=Wtr;function qtr(s){return pat(decodeURIComponent(s))}t(qtr,"unescapeFragment");Wl.unescapeFragment=qtr;function Vtr(s){return encodeURIComponent(l6e(s))}t(Vtr,"escapeFragment");Wl.escapeFragment=Vtr;function l6e(s){return typeof s=="number"?`${s}`:s.replace(/~/g,"~0").replace(/\//g,"~1")}t(l6e,"escapeJsonPointer");Wl.escapeJsonPointer=l6e;function pat(s){return s.replace(/~1/g,"/").replace(/~0/g,"~")}t(pat,"unescapeJsonPointer");Wl.unescapeJsonPointer=pat;function Htr(s,o){if(Array.isArray(s))for(let f of s)o(f);else o(s)}t(Htr,"eachItem");Wl.eachItem=Htr;function lat({mergeNames:s,mergeToName:o,mergeValues:f,resultToName:d}){return(y,x,A,F)=>{let W=A===void 0?x:A instanceof B_.Name?(x instanceof B_.Name?s(y,x,A):o(y,x,A),A):x instanceof B_.Name?(o(y,A,x),x):f(x,A);return F===B_.Name&&!(W instanceof B_.Name)?d(y,W):W}}t(lat,"makeMergeEvaluated");Wl.mergeEvaluated={props:lat({mergeNames:t((s,o,f)=>s.if((0,B_._)`${f} !== true && ${o} !== undefined`,()=>{s.if((0,B_._)`${o} === true`,()=>s.assign(f,!0),()=>s.assign(f,(0,B_._)`${f} || {}`).code((0,B_._)`Object.assign(${f}, ${o})`))}),"mergeNames"),mergeToName:t((s,o,f)=>s.if((0,B_._)`${f} !== true`,()=>{o===!0?s.assign(f,!0):(s.assign(f,(0,B_._)`${f} || {}`),u6e(s,f,o))}),"mergeToName"),mergeValues:t((s,o)=>s===!0?!0:{...s,...o},"mergeValues"),resultToName:dat}),items:lat({mergeNames:t((s,o,f)=>s.if((0,B_._)`${f} !== true && ${o} !== undefined`,()=>s.assign(f,(0,B_._)`${o} === true ? true : ${f} > ${o} ? ${f} : ${o}`)),"mergeNames"),mergeToName:t((s,o,f)=>s.if((0,B_._)`${f} !== true`,()=>s.assign(f,o===!0?!0:(0,B_._)`${f} > ${o} ? ${f} : ${o}`)),"mergeToName"),mergeValues:t((s,o)=>s===!0?!0:Math.max(s,o),"mergeValues"),resultToName:t((s,o)=>s.var("items",o),"resultToName")})};function dat(s,o){if(o===!0)return s.var("props",!0);let f=s.var("props",(0,B_._)`{}`);return o!==void 0&&u6e(s,f,o),f}t(dat,"evaluatedPropsToName");Wl.evaluatedPropsToName=dat;function u6e(s,o,f){Object.keys(f).forEach(d=>s.assign((0,B_._)`${o}${(0,B_.getProperty)(d)}`,!0))}t(u6e,"setEvaluated");Wl.setEvaluated=u6e;var uat={};function Gtr(s,o){return s.scopeValue("func",{ref:o,code:uat[o.code]||(uat[o.code]=new Utr._Code(o.code))})}t(Gtr,"useFunc");Wl.useFunc=Gtr;var c6e;(function(s){s[s.Num=0]="Num",s[s.Str=1]="Str"})(c6e||(Wl.Type=c6e={}));function Ytr(s,o,f){if(s instanceof B_.Name){let d=o===c6e.Num;return f?d?(0,B_._)`"[" + ${s} + "]"`:(0,B_._)`"['" + ${s} + "']"`:d?(0,B_._)`"/" + ${s}`:(0,B_._)`"/" + ${s}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return f?(0,B_.getProperty)(s).toString():"/"+l6e(s)}t(Ytr,"getErrorPath");Wl.getErrorPath=Ytr;function mat(s,o,f=s.opts.strictSchema){if(f){if(o=`strict mode: ${o}`,f===!0)throw new Error(o);s.self.logger.warn(o)}}t(mat,"checkStrictMode");Wl.checkStrictMode=mat});var pT=or(f6e=>{"use strict";Object.defineProperty(f6e,"__esModule",{value:!0});var Cy=Ec(),Ktr={data:new Cy.Name("data"),valCxt:new Cy.Name("valCxt"),instancePath:new Cy.Name("instancePath"),parentData:new Cy.Name("parentData"),parentDataProperty:new Cy.Name("parentDataProperty"),rootData:new Cy.Name("rootData"),dynamicAnchors:new Cy.Name("dynamicAnchors"),vErrors:new Cy.Name("vErrors"),errors:new Cy.Name("errors"),this:new Cy.Name("this"),self:new Cy.Name("self"),scope:new Cy.Name("scope"),json:new Cy.Name("json"),jsonPos:new Cy.Name("jsonPos"),jsonLen:new Cy.Name("jsonLen"),jsonPart:new Cy.Name("jsonPart")};f6e.default=Ktr});var sH=or(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.extendErrors=ky.resetErrorsCount=ky.reportExtraError=ky.reportError=ky.keyword$DataError=ky.keywordError=void 0;var Iu=Ec(),wce=tu(),L1=pT();ky.keywordError={message:t(({keyword:s})=>(0,Iu.str)`must pass "${s}" keyword validation`,"message")};ky.keyword$DataError={message:t(({keyword:s,schemaType:o})=>o?(0,Iu.str)`"${s}" keyword must be ${o} ($data)`:(0,Iu.str)`"${s}" keyword is invalid ($data)`,"message")};function Xtr(s,o=ky.keywordError,f,d){let{it:y}=s,{gen:x,compositeRule:A,allErrors:F}=y,W=yat(s,o,f);d??(A||F)?hat(x,W):gat(y,(0,Iu._)`[${W}]`)}t(Xtr,"reportError");ky.reportError=Xtr;function Ztr(s,o=ky.keywordError,f){let{it:d}=s,{gen:y,compositeRule:x,allErrors:A}=d,F=yat(s,o,f);hat(y,F),x||A||gat(d,L1.default.vErrors)}t(Ztr,"reportExtraError");ky.reportExtraError=Ztr;function Qtr(s,o){s.assign(L1.default.errors,o),s.if((0,Iu._)`${L1.default.vErrors} !== null`,()=>s.if(o,()=>s.assign((0,Iu._)`${L1.default.vErrors}.length`,o),()=>s.assign(L1.default.vErrors,null)))}t(Qtr,"resetErrorsCount");ky.resetErrorsCount=Qtr;function err({gen:s,keyword:o,schemaValue:f,data:d,errsCount:y,it:x}){if(y===void 0)throw new Error("ajv implementation error");let A=s.name("err");s.forRange("i",y,L1.default.errors,F=>{s.const(A,(0,Iu._)`${L1.default.vErrors}[${F}]`),s.if((0,Iu._)`${A}.instancePath === undefined`,()=>s.assign((0,Iu._)`${A}.instancePath`,(0,Iu.strConcat)(L1.default.instancePath,x.errorPath))),s.assign((0,Iu._)`${A}.schemaPath`,(0,Iu.str)`${x.errSchemaPath}/${o}`),x.opts.verbose&&(s.assign((0,Iu._)`${A}.schema`,f),s.assign((0,Iu._)`${A}.data`,d))})}t(err,"extendErrors");ky.extendErrors=err;function hat(s,o){let f=s.const("err",o);s.if((0,Iu._)`${L1.default.vErrors} === null`,()=>s.assign(L1.default.vErrors,(0,Iu._)`[${f}]`),(0,Iu._)`${L1.default.vErrors}.push(${f})`),s.code((0,Iu._)`${L1.default.errors}++`)}t(hat,"addError");function gat(s,o){let{gen:f,validateName:d,schemaEnv:y}=s;y.$async?f.throw((0,Iu._)`new ${s.ValidationError}(${o})`):(f.assign((0,Iu._)`${d}.errors`,o),f.return(!1))}t(gat,"returnErrors");var kO={keyword:new Iu.Name("keyword"),schemaPath:new Iu.Name("schemaPath"),params:new Iu.Name("params"),propertyName:new Iu.Name("propertyName"),message:new Iu.Name("message"),schema:new Iu.Name("schema"),parentSchema:new Iu.Name("parentSchema")};function yat(s,o,f){let{createErrors:d}=s.it;return d===!1?(0,Iu._)`{}`:trr(s,o,f)}t(yat,"errorObjectCode");function trr(s,o,f={}){let{gen:d,it:y}=s,x=[rrr(y,f),nrr(s,f)];return irr(s,o,x),d.object(...x)}t(trr,"errorObject");function rrr({errorPath:s},{instancePath:o}){let f=o?(0,Iu.str)`${s}${(0,wce.getErrorPath)(o,wce.Type.Str)}`:s;return[L1.default.instancePath,(0,Iu.strConcat)(L1.default.instancePath,f)]}t(rrr,"errorInstancePath");function nrr({keyword:s,it:{errSchemaPath:o}},{schemaPath:f,parentSchema:d}){let y=d?o:(0,Iu.str)`${o}/${s}`;return f&&(y=(0,Iu.str)`${y}${(0,wce.getErrorPath)(f,wce.Type.Str)}`),[kO.schemaPath,y]}t(nrr,"errorSchemaPath");function irr(s,{params:o,message:f},d){let{keyword:y,data:x,schemaValue:A,it:F}=s,{opts:W,propertyName:G,topSchemaRef:be,schemaPath:de}=F;d.push([kO.keyword,y],[kO.params,typeof o=="function"?o(s):o||(0,Iu._)`{}`]),W.messages&&d.push([kO.message,typeof f=="function"?f(s):f]),W.verbose&&d.push([kO.schema,A],[kO.parentSchema,(0,Iu._)`${be}${de}`],[L1.default.data,x]),G&&d.push([kO.propertyName,G])}t(irr,"extraErrorProps")});var bat=or(iM=>{"use strict";Object.defineProperty(iM,"__esModule",{value:!0});iM.boolOrEmptySchema=iM.topBoolOrEmptySchema=void 0;var srr=sH(),arr=Ec(),orr=pT(),crr={message:"boolean schema is false"};function lrr(s){let{gen:o,schema:f,validateName:d}=s;f===!1?vat(s,!1):typeof f=="object"&&f.$async===!0?o.return(orr.default.data):(o.assign((0,arr._)`${d}.errors`,null),o.return(!0))}t(lrr,"topBoolOrEmptySchema");iM.topBoolOrEmptySchema=lrr;function urr(s,o){let{gen:f,schema:d}=s;d===!1?(f.var(o,!1),vat(s)):f.var(o,!0)}t(urr,"boolOrEmptySchema");iM.boolOrEmptySchema=urr;function vat(s,o){let{gen:f,data:d}=s,y={gen:f,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,srr.reportError)(y,crr,void 0,o)}t(vat,"falseSchemaError")});var _6e=or(sM=>{"use strict";Object.defineProperty(sM,"__esModule",{value:!0});sM.getRules=sM.isJSONType=void 0;var frr=["string","number","integer","boolean","null","object","array"],_rr=new Set(frr);function prr(s){return typeof s=="string"&&_rr.has(s)}t(prr,"isJSONType");sM.isJSONType=prr;function drr(){let s={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...s,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},s.number,s.string,s.array,s.object],post:{rules:[]},all:{},keywords:{}}}t(drr,"getRules");sM.getRules=drr});var p6e=or(iI=>{"use strict";Object.defineProperty(iI,"__esModule",{value:!0});iI.shouldUseRule=iI.shouldUseGroup=iI.schemaHasRulesForType=void 0;function mrr({schema:s,self:o},f){let d=o.RULES.types[f];return d&&d!==!0&&Sat(s,d)}t(mrr,"schemaHasRulesForType");iI.schemaHasRulesForType=mrr;function Sat(s,o){return o.rules.some(f=>Tat(s,f))}t(Sat,"shouldUseGroup");iI.shouldUseGroup=Sat;function Tat(s,o){var f;return s[o.keyword]!==void 0||((f=o.definition.implements)===null||f===void 0?void 0:f.some(d=>s[d]!==void 0))}t(Tat,"shouldUseRule");iI.shouldUseRule=Tat});var aH=or(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.reportTypeError=wy.checkDataTypes=wy.checkDataType=wy.coerceAndCheckDataType=wy.getJSONTypes=wy.getSchemaTypes=wy.DataType=void 0;var hrr=_6e(),grr=p6e(),yrr=sH(),hl=Ec(),xat=tu(),aM;(function(s){s[s.Correct=0]="Correct",s[s.Wrong=1]="Wrong"})(aM||(wy.DataType=aM={}));function vrr(s){let o=Eat(s.type);if(o.includes("null")){if(s.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!o.length&&s.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');s.nullable===!0&&o.push("null")}return o}t(vrr,"getSchemaTypes");wy.getSchemaTypes=vrr;function Eat(s){let o=Array.isArray(s)?s:s?[s]:[];if(o.every(hrr.isJSONType))return o;throw new Error("type must be JSONType or JSONType[]: "+o.join(","))}t(Eat,"getJSONTypes");wy.getJSONTypes=Eat;function brr(s,o){let{gen:f,data:d,opts:y}=s,x=Srr(o,y.coerceTypes),A=o.length>0&&!(x.length===0&&o.length===1&&(0,grr.schemaHasRulesForType)(s,o[0]));if(A){let F=m6e(o,d,y.strictNumbers,aM.Wrong);f.if(F,()=>{x.length?Trr(s,o,x):h6e(s)})}return A}t(brr,"coerceAndCheckDataType");wy.coerceAndCheckDataType=brr;var Cat=new Set(["string","number","integer","boolean","null"]);function Srr(s,o){return o?s.filter(f=>Cat.has(f)||o==="array"&&f==="array"):[]}t(Srr,"coerceToTypes");function Trr(s,o,f){let{gen:d,data:y,opts:x}=s,A=d.let("dataType",(0,hl._)`typeof ${y}`),F=d.let("coerced",(0,hl._)`undefined`);x.coerceTypes==="array"&&d.if((0,hl._)`${A} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>d.assign(y,(0,hl._)`${y}[0]`).assign(A,(0,hl._)`typeof ${y}`).if(m6e(o,y,x.strictNumbers),()=>d.assign(F,y))),d.if((0,hl._)`${F} !== undefined`);for(let G of f)(Cat.has(G)||G==="array"&&x.coerceTypes==="array")&&W(G);d.else(),h6e(s),d.endIf(),d.if((0,hl._)`${F} !== undefined`,()=>{d.assign(y,F),xrr(s,F)});function W(G){switch(G){case"string":d.elseIf((0,hl._)`${A} == "number" || ${A} == "boolean"`).assign(F,(0,hl._)`"" + ${y}`).elseIf((0,hl._)`${y} === null`).assign(F,(0,hl._)`""`);return;case"number":d.elseIf((0,hl._)`${A} == "boolean" || ${y} === null
|
|
61
61
|
|| (${A} == "string" && ${y} && ${y} == +${y})`).assign(F,(0,hl._)`+${y}`);return;case"integer":d.elseIf((0,hl._)`${A} === "boolean" || ${y} === null
|
|
62
62
|
|| (${A} === "string" && ${y} && ${y} == +${y} && !(${y} % 1))`).assign(F,(0,hl._)`+${y}`);return;case"boolean":d.elseIf((0,hl._)`${y} === "false" || ${y} === 0 || ${y} === null`).assign(F,!1).elseIf((0,hl._)`${y} === "true" || ${y} === 1`).assign(F,!0);return;case"null":d.elseIf((0,hl._)`${y} === "" || ${y} === 0 || ${y} === false`),d.assign(F,null);return;case"array":d.elseIf((0,hl._)`${A} === "string" || ${A} === "number"
|
|
63
|
-
|| ${A} === "boolean" || ${y} === null`).assign(F,(0,hl._)`[${y}]`)}}t(W,"coerceSpecificType")}t(Trr,"coerceData");function xrr({gen:s,parentData:o,parentDataProperty:f},d){s.if((0,hl._)`${o} !== undefined`,()=>s.assign((0,hl._)`${o}[${f}]`,d))}t(xrr,"assignParentData");function d6e(s,o,f,d=aM.Correct){let y=d===aM.Correct?hl.operators.EQ:hl.operators.NEQ,x;switch(s){case"null":return(0,hl._)`${o} ${y} null`;case"array":x=(0,hl._)`Array.isArray(${o})`;break;case"object":x=(0,hl._)`${o} && typeof ${o} == "object" && !Array.isArray(${o})`;break;case"integer":x=A((0,hl._)`!(${o} % 1) && !isNaN(${o})`);break;case"number":x=A();break;default:return(0,hl._)`typeof ${o} ${y} ${s}`}return d===aM.Correct?x:(0,hl.not)(x);function A(F=hl.nil){return(0,hl.and)((0,hl._)`typeof ${o} == "number"`,F,f?(0,hl._)`isFinite(${o})`:hl.nil)}}t(d6e,"checkDataType");wy.checkDataType=d6e;function m6e(s,o,f,d){if(s.length===1)return d6e(s[0],o,f,d);let y,x=(0,xat.toHash)(s);if(x.array&&x.object){let A=(0,hl._)`typeof ${o} != "object"`;y=x.null?A:(0,hl._)`!${o} || ${A}`,delete x.null,delete x.array,delete x.object}else y=hl.nil;x.number&&delete x.integer;for(let A in x)y=(0,hl.and)(y,d6e(A,o,f,d));return y}t(m6e,"checkDataTypes");wy.checkDataTypes=m6e;var Err={message:t(({schema:s})=>`must be ${s}`,"message"),params:t(({schema:s,schemaValue:o})=>typeof s=="string"?(0,hl._)`{type: ${s}}`:(0,hl._)`{type: ${o}}`,"params")};function h6e(s){let o=Crr(s);(0,yrr.reportError)(o,Err)}t(h6e,"reportTypeError");wy.reportTypeError=h6e;function Crr(s){let{gen:o,data:f,schema:d}=s,y=(0,xat.schemaRefOrVal)(s,d,"type");return{gen:o,keyword:"type",data:f,schema:d.type,schemaCode:y,schemaValue:y,parentSchema:d,params:{},it:s}}t(Crr,"getTypeErrorContext")});var wat=or(Dce=>{"use strict";Object.defineProperty(Dce,"__esModule",{value:!0});Dce.assignDefaults=void 0;var oM=Ec(),krr=tu();function wrr(s,o){let{properties:f,items:d}=s.schema;if(o==="object"&&f)for(let y in f)kat(s,y,f[y].default);else o==="array"&&Array.isArray(d)&&d.forEach((y,x)=>kat(s,x,y.default))}t(wrr,"assignDefaults");Dce.assignDefaults=wrr;function kat(s,o,f){let{gen:d,compositeRule:y,data:x,opts:A}=s;if(f===void 0)return;let F=(0,oM._)`${x}${(0,oM.getProperty)(o)}`;if(y){(0,krr.checkStrictMode)(s,`default is ignored for: ${F}`);return}let W=(0,oM._)`${F} === undefined`;A.useDefaults==="empty"&&(W=(0,oM._)`${W} || ${F} === null || ${F} === ""`),d.if(W,(0,oM._)`${F} = ${(0,oM.stringify)(f)}`)}t(kat,"assignDefault")});var dT=or(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.validateUnion=S_.validateArray=S_.usePattern=S_.callValidateCode=S_.schemaProperties=S_.allSchemaProperties=S_.noPropertyInData=S_.propertyInData=S_.isOwnProperty=S_.hasPropFunc=S_.reportMissingProp=S_.checkMissingProp=S_.checkReportMissingProp=void 0;var Ap=Ec(),g6e=tu(),sI=pT(),Drr=tu();function Prr(s,o){let{gen:f,data:d,it:y}=s;f.if(v6e(f,d,o,y.opts.ownProperties),()=>{s.setParams({missingProperty:(0,Ap._)`${o}`},!0),s.error()})}t(Prr,"checkReportMissingProp");S_.checkReportMissingProp=Prr;function Arr({gen:s,data:o,it:{opts:f}},d,y){return(0,Ap.or)(...d.map(x=>(0,Ap.and)(v6e(s,o,x,f.ownProperties),(0,Ap._)`${y} = ${x}`)))}t(Arr,"checkMissingProp");S_.checkMissingProp=Arr;function Nrr(s,o){s.setParams({missingProperty:o},!0),s.error()}t(Nrr,"reportMissingProp");S_.reportMissingProp=Nrr;function Dat(s){return s.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ap._)`Object.prototype.hasOwnProperty`})}t(Dat,"hasPropFunc");S_.hasPropFunc=Dat;function y6e(s,o,f){return(0,Ap._)`${Dat(s)}.call(${o}, ${f})`}t(y6e,"isOwnProperty");S_.isOwnProperty=y6e;function Irr(s,o,f,d){let y=(0,Ap._)`${o}${(0,Ap.getProperty)(f)} !== undefined`;return d?(0,Ap._)`${y} && ${y6e(s,o,f)}`:y}t(Irr,"propertyInData");S_.propertyInData=Irr;function v6e(s,o,f,d){let y=(0,Ap._)`${o}${(0,Ap.getProperty)(f)} === undefined`;return d?(0,Ap.or)(y,(0,Ap.not)(y6e(s,o,f))):y}t(v6e,"noPropertyInData");S_.noPropertyInData=v6e;function Pat(s){return s?Object.keys(s).filter(o=>o!=="__proto__"):[]}t(Pat,"allSchemaProperties");S_.allSchemaProperties=Pat;function Orr(s,o){return Pat(o).filter(f=>!(0,g6e.alwaysValidSchema)(s,o[f]))}t(Orr,"schemaProperties");S_.schemaProperties=Orr;function Frr({schemaCode:s,data:o,it:{gen:f,topSchemaRef:d,schemaPath:y,errorPath:x},it:A},F,W,G){let be=G?(0,Ap._)`${s}, ${o}, ${d}${y}`:o,de=[[sI.default.instancePath,(0,Ap.strConcat)(sI.default.instancePath,x)],[sI.default.parentData,A.parentData],[sI.default.parentDataProperty,A.parentDataProperty],[sI.default.rootData,sI.default.rootData]];A.opts.dynamicRef&&de.push([sI.default.dynamicAnchors,sI.default.dynamicAnchors]);let se=(0,Ap._)`${be}, ${f.object(...de)}`;return W!==Ap.nil?(0,Ap._)`${F}.call(${W}, ${se})`:(0,Ap._)`${F}(${se})`}t(Frr,"callValidateCode");S_.callValidateCode=Frr;var Lrr=(0,Ap._)`new RegExp`;function Rrr({gen:s,it:{opts:o}},f){let d=o.unicodeRegExp?"u":"",{regExp:y}=o.code,x=y(f,d);return s.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,Ap._)`${y.code==="new RegExp"?Lrr:(0,Drr.useFunc)(s,y)}(${f}, ${d})`})}t(Rrr,"usePattern");S_.usePattern=Rrr;function Mrr(s){let{gen:o,data:f,keyword:d,it:y}=s,x=o.name("valid");if(y.allErrors){let F=o.let("valid",!0);return A(()=>o.assign(F,!1)),F}return o.var(x,!0),A(()=>o.break()),x;function A(F){let W=o.const("len",(0,Ap._)`${f}.length`);o.forRange("i",0,W,G=>{s.subschema({keyword:d,dataProp:G,dataPropType:g6e.Type.Num},x),o.if((0,Ap.not)(x),F)})}t(A,"validateItems")}t(Mrr,"validateArray");S_.validateArray=Mrr;function jrr(s){let{gen:o,schema:f,keyword:d,it:y}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");if(f.some(W=>(0,g6e.alwaysValidSchema)(y,W))&&!y.opts.unevaluated)return;let A=o.let("valid",!1),F=o.name("_valid");o.block(()=>f.forEach((W,G)=>{let be=s.subschema({keyword:d,schemaProp:G,compositeRule:!0},F);o.assign(A,(0,Ap._)`${A} || ${F}`),s.mergeValidEvaluated(be,F)||o.if((0,Ap.not)(A))})),s.result(A,()=>s.reset(),()=>s.error(!0))}t(jrr,"validateUnion");S_.validateUnion=jrr});var Iat=or(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.validateKeywordUsage=Fk.validSchemaType=Fk.funcKeywordCode=Fk.macroKeywordCode=void 0;var R1=Ec(),wO=pT(),Brr=dT(),Urr=sH();function zrr(s,o){let{gen:f,keyword:d,schema:y,parentSchema:x,it:A}=s,F=o.macro.call(A.self,y,x,A),W=Nat(f,d,F);A.opts.validateSchema!==!1&&A.self.validateSchema(F,!0);let G=f.name("valid");s.subschema({schema:F,schemaPath:R1.nil,errSchemaPath:`${A.errSchemaPath}/${d}`,topSchemaRef:W,compositeRule:!0},G),s.pass(G,()=>s.error(!0))}t(zrr,"macroKeywordCode");Fk.macroKeywordCode=zrr;function $rr(s,o){var f;let{gen:d,keyword:y,schema:x,parentSchema:A,$data:F,it:W}=s;Wrr(W,o);let G=!F&&o.compile?o.compile.call(W.self,x,A,W):o.validate,be=Nat(d,y,G),de=d.let("valid");s.block$data(de,se),s.ok((f=o.valid)!==null&&f!==void 0?f:de);function se(){if(o.errors===!1)je(),o.modifying&&Aat(s),Vt(()=>s.error());else{let Ut=o.async?Xe():Ue();o.modifying&&Aat(s),Vt(()=>Jrr(s,Ut))}}t(se,"validateKeyword");function Xe(){let Ut=d.let("ruleErrs",null);return d.try(()=>je((0,R1._)`await `),Ir=>d.assign(de,!1).if((0,R1._)`${Ir} instanceof ${W.ValidationError}`,()=>d.assign(Ut,(0,R1._)`${Ir}.errors`),()=>d.throw(Ir))),Ut}t(Xe,"validateAsync");function Ue(){let Ut=(0,R1._)`${be}.errors`;return d.assign(Ut,null),je(R1.nil),Ut}t(Ue,"validateSync");function je(Ut=o.async?(0,R1._)`await `:R1.nil){let Ir=W.opts.passContext?wO.default.this:wO.default.self,wn=!("compile"in o&&!F||o.schema===!1);d.assign(de,(0,R1._)`${Ut}${(0,Brr.callValidateCode)(s,be,Ir,wn)}`,o.modifying)}t(je,"assignValid");function Vt(Ut){var Ir;d.if((0,R1.not)((Ir=o.valid)!==null&&Ir!==void 0?Ir:de),Ut)}t(Vt,"reportErrs")}t($rr,"funcKeywordCode");Fk.funcKeywordCode=$rr;function Aat(s){let{gen:o,data:f,it:d}=s;o.if(d.parentData,()=>o.assign(f,(0,R1._)`${d.parentData}[${d.parentDataProperty}]`))}t(Aat,"modifyData");function Jrr(s,o){let{gen:f}=s;f.if((0,R1._)`Array.isArray(${o})`,()=>{f.assign(wO.default.vErrors,(0,R1._)`${wO.default.vErrors} === null ? ${o} : ${wO.default.vErrors}.concat(${o})`).assign(wO.default.errors,(0,R1._)`${wO.default.vErrors}.length`),(0,Urr.extendErrors)(s)},()=>s.error())}t(Jrr,"addErrs");function Wrr({schemaEnv:s},o){if(o.async&&!s.$async)throw new Error("async keyword in sync schema")}t(Wrr,"checkAsyncKeyword");function Nat(s,o,f){if(f===void 0)throw new Error(`keyword "${o}" failed to compile`);return s.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,R1.stringify)(f)})}t(Nat,"useKeyword");function qrr(s,o,f=!1){return!o.length||o.some(d=>d==="array"?Array.isArray(s):d==="object"?s&&typeof s=="object"&&!Array.isArray(s):typeof s==d||f&&typeof s>"u")}t(qrr,"validSchemaType");Fk.validSchemaType=qrr;function Vrr({schema:s,opts:o,self:f,errSchemaPath:d},y,x){if(Array.isArray(y.keyword)?!y.keyword.includes(x):y.keyword!==x)throw new Error("ajv implementation error");let A=y.dependencies;if(A?.some(F=>!Object.prototype.hasOwnProperty.call(s,F)))throw new Error(`parent schema must have dependencies of ${x}: ${A.join(",")}`);if(y.validateSchema&&!y.validateSchema(s[x])){let W=`keyword "${x}" value is invalid at path "${d}": `+f.errorsText(y.validateSchema.errors);if(o.validateSchema==="log")f.logger.error(W);else throw new Error(W)}}t(Vrr,"validateKeywordUsage");Fk.validateKeywordUsage=Vrr});var Fat=or(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.extendSubschemaMode=aI.extendSubschemaData=aI.getSubschema=void 0;var Lk=Ec(),Oat=tu();function Hrr(s,{keyword:o,schemaProp:f,schema:d,schemaPath:y,errSchemaPath:x,topSchemaRef:A}){if(o!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){let F=s.schema[o];return f===void 0?{schema:F,schemaPath:(0,Lk._)`${s.schemaPath}${(0,Lk.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${o}`}:{schema:F[f],schemaPath:(0,Lk._)`${s.schemaPath}${(0,Lk.getProperty)(o)}${(0,Lk.getProperty)(f)}`,errSchemaPath:`${s.errSchemaPath}/${o}/${(0,Oat.escapeFragment)(f)}`}}if(d!==void 0){if(y===void 0||x===void 0||A===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:y,topSchemaRef:A,errSchemaPath:x}}throw new Error('either "keyword" or "schema" must be passed')}t(Hrr,"getSubschema");aI.getSubschema=Hrr;function Grr(s,o,{dataProp:f,dataPropType:d,data:y,dataTypes:x,propertyName:A}){if(y!==void 0&&f!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:F}=o;if(f!==void 0){let{errorPath:G,dataPathArr:be,opts:de}=o,se=F.let("data",(0,Lk._)`${o.data}${(0,Lk.getProperty)(f)}`,!0);W(se),s.errorPath=(0,Lk.str)`${G}${(0,Oat.getErrorPath)(f,d,de.jsPropertySyntax)}`,s.parentDataProperty=(0,Lk._)`${f}`,s.dataPathArr=[...be,s.parentDataProperty]}if(y!==void 0){let G=y instanceof Lk.Name?y:F.let("data",y,!0);W(G),A!==void 0&&(s.propertyName=A)}x&&(s.dataTypes=x);function W(G){s.data=G,s.dataLevel=o.dataLevel+1,s.dataTypes=[],o.definedProperties=new Set,s.parentData=o.data,s.dataNames=[...o.dataNames,G]}t(W,"dataContextProps")}t(Grr,"extendSubschemaData");aI.extendSubschemaData=Grr;function Yrr(s,{jtdDiscriminator:o,jtdMetadata:f,compositeRule:d,createErrors:y,allErrors:x}){d!==void 0&&(s.compositeRule=d),y!==void 0&&(s.createErrors=y),x!==void 0&&(s.allErrors=x),s.jtdDiscriminator=o,s.jtdMetadata=f}t(Yrr,"extendSubschemaMode");aI.extendSubschemaMode=Yrr});var b6e=or((KDr,Lat)=>{"use strict";Lat.exports=t(function s(o,f){if(o===f)return!0;if(o&&f&&typeof o=="object"&&typeof f=="object"){if(o.constructor!==f.constructor)return!1;var d,y,x;if(Array.isArray(o)){if(d=o.length,d!=f.length)return!1;for(y=d;y--!==0;)if(!s(o[y],f[y]))return!1;return!0}if(o.constructor===RegExp)return o.source===f.source&&o.flags===f.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===f.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===f.toString();if(x=Object.keys(o),d=x.length,d!==Object.keys(f).length)return!1;for(y=d;y--!==0;)if(!Object.prototype.hasOwnProperty.call(f,x[y]))return!1;for(y=d;y--!==0;){var A=x[y];if(!s(o[A],f[A]))return!1}return!0}return o!==o&&f!==f},"equal")});var Mat=or((ZDr,Rat)=>{"use strict";var oI=Rat.exports=function(s,o,f){typeof o=="function"&&(f=o,o={}),f=o.cb||f;var d=typeof f=="function"?f:f.pre||function(){},y=f.post||function(){};Pce(o,d,y,s,"",s)};oI.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};oI.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};oI.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};oI.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Pce(s,o,f,d,y,x,A,F,W,G){if(d&&typeof d=="object"&&!Array.isArray(d)){o(d,y,x,A,F,W,G);for(var be in d){var de=d[be];if(Array.isArray(de)){if(be in oI.arrayKeywords)for(var se=0;se<de.length;se++)Pce(s,o,f,de[se],y+"/"+be+"/"+se,x,y,be,d,se)}else if(be in oI.propsKeywords){if(de&&typeof de=="object")for(var Xe in de)Pce(s,o,f,de[Xe],y+"/"+be+"/"+Krr(Xe),x,y,be,d,Xe)}else(be in oI.keywords||s.allKeys&&!(be in oI.skipKeywords))&&Pce(s,o,f,de,y+"/"+be,x,y,be,d)}f(d,y,x,A,F,W,G)}}t(Pce,"_traverse");function Krr(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")}t(Krr,"escapeJsonPtr")});var oH=or(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});Xv.getSchemaRefs=Xv.resolveUrl=Xv.normalizeId=Xv._getFullPath=Xv.getFullPath=Xv.inlineRef=void 0;var Xrr=tu(),Zrr=b6e(),Qrr=Mat(),enr=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function tnr(s,o=!0){return typeof s=="boolean"?!0:o===!0?!S6e(s):o?jat(s)<=o:!1}t(tnr,"inlineRef");Xv.inlineRef=tnr;var rnr=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function S6e(s){for(let o in s){if(rnr.has(o))return!0;let f=s[o];if(Array.isArray(f)&&f.some(S6e)||typeof f=="object"&&S6e(f))return!0}return!1}t(S6e,"hasRef");function jat(s){let o=0;for(let f in s){if(f==="$ref")return 1/0;if(o++,!enr.has(f)&&(typeof s[f]=="object"&&(0,Xrr.eachItem)(s[f],d=>o+=jat(d)),o===1/0))return 1/0}return o}t(jat,"countKeys");function Bat(s,o="",f){f!==!1&&(o=cM(o));let d=s.parse(o);return Uat(s,d)}t(Bat,"getFullPath");Xv.getFullPath=Bat;function Uat(s,o){return s.serialize(o).split("#")[0]+"#"}t(Uat,"_getFullPath");Xv._getFullPath=Uat;var nnr=/#\/?$/;function cM(s){return s?s.replace(nnr,""):""}t(cM,"normalizeId");Xv.normalizeId=cM;function inr(s,o,f){return f=cM(f),s.resolve(o,f)}t(inr,"resolveUrl");Xv.resolveUrl=inr;var snr=/^[a-z_][-a-z0-9._]*$/i;function anr(s,o){if(typeof s=="boolean")return{};let{schemaId:f,uriResolver:d}=this.opts,y=cM(s[f]||o),x={"":y},A=Bat(d,y,!1),F={},W=new Set;return Qrr(s,{allKeys:!0},(de,se,Xe,Ue)=>{if(Ue===void 0)return;let je=A+se,Vt=x[Ue];typeof de[f]=="string"&&(Vt=Ut.call(this,de[f])),Ir.call(this,de.$anchor),Ir.call(this,de.$dynamicAnchor),x[se]=Vt;function Ut(wn){let sn=this.opts.uriResolver.resolve;if(wn=cM(Vt?sn(Vt,wn):wn),W.has(wn))throw be(wn);W.add(wn);let Jn=this.refs[wn];return typeof Jn=="string"&&(Jn=this.refs[Jn]),typeof Jn=="object"?G(de,Jn.schema,wn):wn!==cM(je)&&(wn[0]==="#"?(G(de,F[wn],wn),F[wn]=de):this.refs[wn]=je),wn}t(Ut,"addRef");function Ir(wn){if(typeof wn=="string"){if(!snr.test(wn))throw new Error(`invalid anchor "${wn}"`);Ut.call(this,`#${wn}`)}}t(Ir,"addAnchor")}),F;function G(de,se,Xe){if(se!==void 0&&!Zrr(de,se))throw be(Xe)}t(G,"checkAmbiguosRef");function be(de){return new Error(`reference "${de}" resolves to more than one schema`)}t(be,"ambiguos")}t(anr,"getSchemaRefs");Xv.getSchemaRefs=anr});var lM=or(cI=>{"use strict";Object.defineProperty(cI,"__esModule",{value:!0});cI.getData=cI.KeywordCxt=cI.validateFunctionCode=void 0;var qat=bat(),zat=aH(),x6e=p6e(),Ace=aH(),onr=wat(),lH=Iat(),T6e=Fat(),Eo=Ec(),Nc=pT(),cnr=oH(),KP=tu(),cH=sH();function lnr(s){if(Gat(s)&&(Yat(s),Hat(s))){_nr(s);return}Vat(s,()=>(0,qat.topBoolOrEmptySchema)(s))}t(lnr,"validateFunctionCode");cI.validateFunctionCode=lnr;function Vat({gen:s,validateName:o,schema:f,schemaEnv:d,opts:y},x){y.code.es5?s.func(o,(0,Eo._)`${Nc.default.data}, ${Nc.default.valCxt}`,d.$async,()=>{s.code((0,Eo._)`"use strict"; ${$at(f,y)}`),fnr(s,y),s.code(x)}):s.func(o,(0,Eo._)`${Nc.default.data}, ${unr(y)}`,d.$async,()=>s.code($at(f,y)).code(x))}t(Vat,"validateFunction");function unr(s){return(0,Eo._)`{${Nc.default.instancePath}="", ${Nc.default.parentData}, ${Nc.default.parentDataProperty}, ${Nc.default.rootData}=${Nc.default.data}${s.dynamicRef?(0,Eo._)`, ${Nc.default.dynamicAnchors}={}`:Eo.nil}}={}`}t(unr,"destructureValCxt");function fnr(s,o){s.if(Nc.default.valCxt,()=>{s.var(Nc.default.instancePath,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.instancePath}`),s.var(Nc.default.parentData,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.parentData}`),s.var(Nc.default.parentDataProperty,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.parentDataProperty}`),s.var(Nc.default.rootData,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.rootData}`),o.dynamicRef&&s.var(Nc.default.dynamicAnchors,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.dynamicAnchors}`)},()=>{s.var(Nc.default.instancePath,(0,Eo._)`""`),s.var(Nc.default.parentData,(0,Eo._)`undefined`),s.var(Nc.default.parentDataProperty,(0,Eo._)`undefined`),s.var(Nc.default.rootData,Nc.default.data),o.dynamicRef&&s.var(Nc.default.dynamicAnchors,(0,Eo._)`{}`)})}t(fnr,"destructureValCxtES5");function _nr(s){let{schema:o,opts:f,gen:d}=s;Vat(s,()=>{f.$comment&&o.$comment&&Xat(s),gnr(s),d.let(Nc.default.vErrors,null),d.let(Nc.default.errors,0),f.unevaluated&&pnr(s),Kat(s),bnr(s)})}t(_nr,"topSchemaObjCode");function pnr(s){let{gen:o,validateName:f}=s;s.evaluated=o.const("evaluated",(0,Eo._)`${f}.evaluated`),o.if((0,Eo._)`${s.evaluated}.dynamicProps`,()=>o.assign((0,Eo._)`${s.evaluated}.props`,(0,Eo._)`undefined`)),o.if((0,Eo._)`${s.evaluated}.dynamicItems`,()=>o.assign((0,Eo._)`${s.evaluated}.items`,(0,Eo._)`undefined`))}t(pnr,"resetEvaluated");function $at(s,o){let f=typeof s=="object"&&s[o.schemaId];return f&&(o.code.source||o.code.process)?(0,Eo._)`/*# sourceURL=${f} */`:Eo.nil}t($at,"funcSourceUrl");function dnr(s,o){if(Gat(s)&&(Yat(s),Hat(s))){mnr(s,o);return}(0,qat.boolOrEmptySchema)(s,o)}t(dnr,"subschemaCode");function Hat({schema:s,self:o}){if(typeof s=="boolean")return!s;for(let f in s)if(o.RULES.all[f])return!0;return!1}t(Hat,"schemaCxtHasRules");function Gat(s){return typeof s.schema!="boolean"}t(Gat,"isSchemaObj");function mnr(s,o){let{schema:f,gen:d,opts:y}=s;y.$comment&&f.$comment&&Xat(s),ynr(s),vnr(s);let x=d.const("_errs",Nc.default.errors);Kat(s,x),d.var(o,(0,Eo._)`${x} === ${Nc.default.errors}`)}t(mnr,"subSchemaObjCode");function Yat(s){(0,KP.checkUnknownRules)(s),hnr(s)}t(Yat,"checkKeywords");function Kat(s,o){if(s.opts.jtd)return Jat(s,[],!1,o);let f=(0,zat.getSchemaTypes)(s.schema),d=(0,zat.coerceAndCheckDataType)(s,f);Jat(s,f,!d,o)}t(Kat,"typeAndKeywords");function hnr(s){let{schema:o,errSchemaPath:f,opts:d,self:y}=s;o.$ref&&d.ignoreKeywordsWithRef&&(0,KP.schemaHasRulesButRef)(o,y.RULES)&&y.logger.warn(`$ref: keywords ignored in schema at path "${f}"`)}t(hnr,"checkRefsAndKeywords");function gnr(s){let{schema:o,opts:f}=s;o.default!==void 0&&f.useDefaults&&f.strictSchema&&(0,KP.checkStrictMode)(s,"default is ignored in the schema root")}t(gnr,"checkNoDefault");function ynr(s){let o=s.schema[s.opts.schemaId];o&&(s.baseId=(0,cnr.resolveUrl)(s.opts.uriResolver,s.baseId,o))}t(ynr,"updateContext");function vnr(s){if(s.schema.$async&&!s.schemaEnv.$async)throw new Error("async schema in sync schema")}t(vnr,"checkAsyncSchema");function Xat({gen:s,schemaEnv:o,schema:f,errSchemaPath:d,opts:y}){let x=f.$comment;if(y.$comment===!0)s.code((0,Eo._)`${Nc.default.self}.logger.log(${x})`);else if(typeof y.$comment=="function"){let A=(0,Eo.str)`${d}/$comment`,F=s.scopeValue("root",{ref:o.root});s.code((0,Eo._)`${Nc.default.self}.opts.$comment(${x}, ${A}, ${F}.schema)`)}}t(Xat,"commentKeyword");function bnr(s){let{gen:o,schemaEnv:f,validateName:d,ValidationError:y,opts:x}=s;f.$async?o.if((0,Eo._)`${Nc.default.errors} === 0`,()=>o.return(Nc.default.data),()=>o.throw((0,Eo._)`new ${y}(${Nc.default.vErrors})`)):(o.assign((0,Eo._)`${d}.errors`,Nc.default.vErrors),x.unevaluated&&Snr(s),o.return((0,Eo._)`${Nc.default.errors} === 0`))}t(bnr,"returnResults");function Snr({gen:s,evaluated:o,props:f,items:d}){f instanceof Eo.Name&&s.assign((0,Eo._)`${o}.props`,f),d instanceof Eo.Name&&s.assign((0,Eo._)`${o}.items`,d)}t(Snr,"assignEvaluated");function Jat(s,o,f,d){let{gen:y,schema:x,data:A,allErrors:F,opts:W,self:G}=s,{RULES:be}=G;if(x.$ref&&(W.ignoreKeywordsWithRef||!(0,KP.schemaHasRulesButRef)(x,be))){y.block(()=>Qat(s,"$ref",be.all.$ref.definition));return}W.jtd||Tnr(s,o),y.block(()=>{for(let se of be.rules)de(se);de(be.post)});function de(se){(0,x6e.shouldUseGroup)(x,se)&&(se.type?(y.if((0,Ace.checkDataType)(se.type,A,W.strictNumbers)),Wat(s,se),o.length===1&&o[0]===se.type&&f&&(y.else(),(0,Ace.reportTypeError)(s)),y.endIf()):Wat(s,se),F||y.if((0,Eo._)`${Nc.default.errors} === ${d||0}`))}t(de,"groupKeywords")}t(Jat,"schemaKeywords");function Wat(s,o){let{gen:f,schema:d,opts:{useDefaults:y}}=s;y&&(0,onr.assignDefaults)(s,o.type),f.block(()=>{for(let x of o.rules)(0,x6e.shouldUseRule)(d,x)&&Qat(s,x.keyword,x.definition,o.type)})}t(Wat,"iterateKeywords");function Tnr(s,o){s.schemaEnv.meta||!s.opts.strictTypes||(xnr(s,o),s.opts.allowUnionTypes||Enr(s,o),Cnr(s,s.dataTypes))}t(Tnr,"checkStrictTypes");function xnr(s,o){if(o.length){if(!s.dataTypes.length){s.dataTypes=o;return}o.forEach(f=>{Zat(s.dataTypes,f)||E6e(s,`type "${f}" not allowed by context "${s.dataTypes.join(",")}"`)}),wnr(s,o)}}t(xnr,"checkContextTypes");function Enr(s,o){o.length>1&&!(o.length===2&&o.includes("null"))&&E6e(s,"use allowUnionTypes to allow union type keyword")}t(Enr,"checkMultipleTypes");function Cnr(s,o){let f=s.self.RULES.all;for(let d in f){let y=f[d];if(typeof y=="object"&&(0,x6e.shouldUseRule)(s.schema,y)){let{type:x}=y.definition;x.length&&!x.some(A=>knr(o,A))&&E6e(s,`missing type "${x.join(",")}" for keyword "${d}"`)}}}t(Cnr,"checkKeywordTypes");function knr(s,o){return s.includes(o)||o==="number"&&s.includes("integer")}t(knr,"hasApplicableType");function Zat(s,o){return s.includes(o)||o==="integer"&&s.includes("number")}t(Zat,"includesType");function wnr(s,o){let f=[];for(let d of s.dataTypes)Zat(o,d)?f.push(d):o.includes("integer")&&d==="number"&&f.push("integer");s.dataTypes=f}t(wnr,"narrowSchemaTypes");function E6e(s,o){let f=s.schemaEnv.baseId+s.errSchemaPath;o+=` at "${f}" (strictTypes)`,(0,KP.checkStrictMode)(s,o,s.opts.strictTypes)}t(E6e,"strictTypesError");var Nce=class{static{t(this,"KeywordCxt")}constructor(o,f,d){if((0,lH.validateKeywordUsage)(o,f,d),this.gen=o.gen,this.allErrors=o.allErrors,this.keyword=d,this.data=o.data,this.schema=o.schema[d],this.$data=f.$data&&o.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,KP.schemaRefOrVal)(o,this.schema,d,this.$data),this.schemaType=f.schemaType,this.parentSchema=o.schema,this.params={},this.it=o,this.def=f,this.$data)this.schemaCode=o.gen.const("vSchema",eot(this.$data,o));else if(this.schemaCode=this.schemaValue,!(0,lH.validSchemaType)(this.schema,f.schemaType,f.allowUndefined))throw new Error(`${d} value must be ${JSON.stringify(f.schemaType)}`);("code"in f?f.trackErrors:f.errors!==!1)&&(this.errsCount=o.gen.const("_errs",Nc.default.errors))}result(o,f,d){this.failResult((0,Eo.not)(o),f,d)}failResult(o,f,d){this.gen.if(o),d?d():this.error(),f?(this.gen.else(),f(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(o,f){this.failResult((0,Eo.not)(o),void 0,f)}fail(o){if(o===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(o),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(o){if(!this.$data)return this.fail(o);let{schemaCode:f}=this;this.fail((0,Eo._)`${f} !== undefined && (${(0,Eo.or)(this.invalid$data(),o)})`)}error(o,f,d){if(f){this.setParams(f),this._error(o,d),this.setParams({});return}this._error(o,d)}_error(o,f){(o?cH.reportExtraError:cH.reportError)(this,this.def.error,f)}$dataError(){(0,cH.reportError)(this,this.def.$dataError||cH.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,cH.resetErrorsCount)(this.gen,this.errsCount)}ok(o){this.allErrors||this.gen.if(o)}setParams(o,f){f?Object.assign(this.params,o):this.params=o}block$data(o,f,d=Eo.nil){this.gen.block(()=>{this.check$data(o,d),f()})}check$data(o=Eo.nil,f=Eo.nil){if(!this.$data)return;let{gen:d,schemaCode:y,schemaType:x,def:A}=this;d.if((0,Eo.or)((0,Eo._)`${y} === undefined`,f)),o!==Eo.nil&&d.assign(o,!0),(x.length||A.validateSchema)&&(d.elseIf(this.invalid$data()),this.$dataError(),o!==Eo.nil&&d.assign(o,!1)),d.else()}invalid$data(){let{gen:o,schemaCode:f,schemaType:d,def:y,it:x}=this;return(0,Eo.or)(A(),F());function A(){if(d.length){if(!(f instanceof Eo.Name))throw new Error("ajv implementation error");let W=Array.isArray(d)?d:[d];return(0,Eo._)`${(0,Ace.checkDataTypes)(W,f,x.opts.strictNumbers,Ace.DataType.Wrong)}`}return Eo.nil}function F(){if(y.validateSchema){let W=o.scopeValue("validate$data",{ref:y.validateSchema});return(0,Eo._)`!${W}(${f})`}return Eo.nil}}subschema(o,f){let d=(0,T6e.getSubschema)(this.it,o);(0,T6e.extendSubschemaData)(d,this.it,o),(0,T6e.extendSubschemaMode)(d,o);let y={...this.it,...d,items:void 0,props:void 0};return dnr(y,f),y}mergeEvaluated(o,f){let{it:d,gen:y}=this;d.opts.unevaluated&&(d.props!==!0&&o.props!==void 0&&(d.props=KP.mergeEvaluated.props(y,o.props,d.props,f)),d.items!==!0&&o.items!==void 0&&(d.items=KP.mergeEvaluated.items(y,o.items,d.items,f)))}mergeValidEvaluated(o,f){let{it:d,gen:y}=this;if(d.opts.unevaluated&&(d.props!==!0||d.items!==!0))return y.if(f,()=>this.mergeEvaluated(o,Eo.Name)),!0}};cI.KeywordCxt=Nce;function Qat(s,o,f,d){let y=new Nce(s,f,o);"code"in f?f.code(y,d):y.$data&&f.validate?(0,lH.funcKeywordCode)(y,f):"macro"in f?(0,lH.macroKeywordCode)(y,f):(f.compile||f.validate)&&(0,lH.funcKeywordCode)(y,f)}t(Qat,"keywordCode");var Dnr=/^\/(?:[^~]|~0|~1)*$/,Pnr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function eot(s,{dataLevel:o,dataNames:f,dataPathArr:d}){let y,x;if(s==="")return Nc.default.rootData;if(s[0]==="/"){if(!Dnr.test(s))throw new Error(`Invalid JSON-pointer: ${s}`);y=s,x=Nc.default.rootData}else{let G=Pnr.exec(s);if(!G)throw new Error(`Invalid JSON-pointer: ${s}`);let be=+G[1];if(y=G[2],y==="#"){if(be>=o)throw new Error(W("property/index",be));return d[o-be]}if(be>o)throw new Error(W("data",be));if(x=f[o-be],!y)return x}let A=x,F=y.split("/");for(let G of F)G&&(x=(0,Eo._)`${x}${(0,Eo.getProperty)((0,KP.unescapeJsonPointer)(G))}`,A=(0,Eo._)`${A} && ${x}`);return A;function W(G,be){return`Cannot access ${G} ${be} levels up, current level is ${o}`}}t(eot,"getData");cI.getData=eot});var uH=or(k6e=>{"use strict";Object.defineProperty(k6e,"__esModule",{value:!0});var C6e=class extends Error{static{t(this,"ValidationError")}constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}};k6e.default=C6e});var uM=or(P6e=>{"use strict";Object.defineProperty(P6e,"__esModule",{value:!0});var w6e=oH(),D6e=class extends Error{static{t(this,"MissingRefError")}constructor(o,f,d,y){super(y||`can't resolve reference ${d} from id ${f}`),this.missingRef=(0,w6e.resolveUrl)(o,f,d),this.missingSchema=(0,w6e.normalizeId)((0,w6e.getFullPath)(o,this.missingRef))}};P6e.default=D6e});var fH=or(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.resolveSchema=mT.getCompilingSchema=mT.resolveRef=mT.compileSchema=mT.SchemaEnv=void 0;var SE=Ec(),Anr=uH(),DO=pT(),TE=oH(),tot=tu(),Nnr=lM(),fM=class{static{t(this,"SchemaEnv")}constructor(o){var f;this.refs={},this.dynamicAnchors={};let d;typeof o.schema=="object"&&(d=o.schema),this.schema=o.schema,this.schemaId=o.schemaId,this.root=o.root||this,this.baseId=(f=o.baseId)!==null&&f!==void 0?f:(0,TE.normalizeId)(d?.[o.schemaId||"$id"]),this.schemaPath=o.schemaPath,this.localRefs=o.localRefs,this.meta=o.meta,this.$async=d?.$async,this.refs={}}};mT.SchemaEnv=fM;function N6e(s){let o=rot.call(this,s);if(o)return o;let f=(0,TE.getFullPath)(this.opts.uriResolver,s.root.baseId),{es5:d,lines:y}=this.opts.code,{ownProperties:x}=this.opts,A=new SE.CodeGen(this.scope,{es5:d,lines:y,ownProperties:x}),F;s.$async&&(F=A.scopeValue("Error",{ref:Anr.default,code:(0,SE._)`require("ajv/dist/runtime/validation_error").default`}));let W=A.scopeName("validate");s.validateName=W;let G={gen:A,allErrors:this.opts.allErrors,data:DO.default.data,parentData:DO.default.parentData,parentDataProperty:DO.default.parentDataProperty,dataNames:[DO.default.data],dataPathArr:[SE.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:A.scopeValue("schema",this.opts.code.source===!0?{ref:s.schema,code:(0,SE.stringify)(s.schema)}:{ref:s.schema}),validateName:W,ValidationError:F,schema:s.schema,schemaEnv:s,rootId:f,baseId:s.baseId||f,schemaPath:SE.nil,errSchemaPath:s.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,SE._)`""`,opts:this.opts,self:this},be;try{this._compilations.add(s),(0,Nnr.validateFunctionCode)(G),A.optimize(this.opts.code.optimize);let de=A.toString();be=`${A.scopeRefs(DO.default.scope)}return ${de}`,this.opts.code.process&&(be=this.opts.code.process(be,s));let Xe=new Function(`${DO.default.self}`,`${DO.default.scope}`,be)(this,this.scope.get());if(this.scope.value(W,{ref:Xe}),Xe.errors=null,Xe.schema=s.schema,Xe.schemaEnv=s,s.$async&&(Xe.$async=!0),this.opts.code.source===!0&&(Xe.source={validateName:W,validateCode:de,scopeValues:A._values}),this.opts.unevaluated){let{props:Ue,items:je}=G;Xe.evaluated={props:Ue instanceof SE.Name?void 0:Ue,items:je instanceof SE.Name?void 0:je,dynamicProps:Ue instanceof SE.Name,dynamicItems:je instanceof SE.Name},Xe.source&&(Xe.source.evaluated=(0,SE.stringify)(Xe.evaluated))}return s.validate=Xe,s}catch(de){throw delete s.validate,delete s.validateName,be&&this.logger.error("Error compiling schema, function code:",be),de}finally{this._compilations.delete(s)}}t(N6e,"compileSchema");mT.compileSchema=N6e;function Inr(s,o,f){var d;f=(0,TE.resolveUrl)(this.opts.uriResolver,o,f);let y=s.refs[f];if(y)return y;let x=Lnr.call(this,s,f);if(x===void 0){let A=(d=s.localRefs)===null||d===void 0?void 0:d[f],{schemaId:F}=this.opts;A&&(x=new fM({schema:A,schemaId:F,root:s,baseId:o}))}if(x!==void 0)return s.refs[f]=Onr.call(this,x)}t(Inr,"resolveRef");mT.resolveRef=Inr;function Onr(s){return(0,TE.inlineRef)(s.schema,this.opts.inlineRefs)?s.schema:s.validate?s:N6e.call(this,s)}t(Onr,"inlineOrCompile");function rot(s){for(let o of this._compilations)if(Fnr(o,s))return o}t(rot,"getCompilingSchema");mT.getCompilingSchema=rot;function Fnr(s,o){return s.schema===o.schema&&s.root===o.root&&s.baseId===o.baseId}t(Fnr,"sameSchemaEnv");function Lnr(s,o){let f;for(;typeof(f=this.refs[o])=="string";)o=f;return f||this.schemas[o]||Ice.call(this,s,o)}t(Lnr,"resolve");function Ice(s,o){let f=this.opts.uriResolver.parse(o),d=(0,TE._getFullPath)(this.opts.uriResolver,f),y=(0,TE.getFullPath)(this.opts.uriResolver,s.baseId,void 0);if(Object.keys(s.schema).length>0&&d===y)return A6e.call(this,f,s);let x=(0,TE.normalizeId)(d),A=this.refs[x]||this.schemas[x];if(typeof A=="string"){let F=Ice.call(this,s,A);return typeof F?.schema!="object"?void 0:A6e.call(this,f,F)}if(typeof A?.schema=="object"){if(A.validate||N6e.call(this,A),x===(0,TE.normalizeId)(o)){let{schema:F}=A,{schemaId:W}=this.opts,G=F[W];return G&&(y=(0,TE.resolveUrl)(this.opts.uriResolver,y,G)),new fM({schema:F,schemaId:W,root:s,baseId:y})}return A6e.call(this,f,A)}}t(Ice,"resolveSchema");mT.resolveSchema=Ice;var Rnr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function A6e(s,{baseId:o,schema:f,root:d}){var y;if(((y=s.fragment)===null||y===void 0?void 0:y[0])!=="/")return;for(let F of s.fragment.slice(1).split("/")){if(typeof f=="boolean")return;let W=f[(0,tot.unescapeFragment)(F)];if(W===void 0)return;f=W;let G=typeof f=="object"&&f[this.opts.schemaId];!Rnr.has(F)&&G&&(o=(0,TE.resolveUrl)(this.opts.uriResolver,o,G))}let x;if(typeof f!="boolean"&&f.$ref&&!(0,tot.schemaHasRulesButRef)(f,this.RULES)){let F=(0,TE.resolveUrl)(this.opts.uriResolver,o,f.$ref);x=Ice.call(this,d,F)}let{schemaId:A}=this.opts;if(x=x||new fM({schema:f,schemaId:A,root:d,baseId:o}),x.schema!==x.root.schema)return x}t(A6e,"getJsonPointer")});var not=or((uPr,Mnr)=>{Mnr.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var O6e=or((fPr,oot)=>{"use strict";var jnr=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),sot=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function I6e(s){let o="",f=0,d=0;for(d=0;d<s.length;d++)if(f=s[d].charCodeAt(0),f!==48){if(!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";o+=s[d];break}for(d+=1;d<s.length;d++){if(f=s[d].charCodeAt(0),!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";o+=s[d]}return o}t(I6e,"stringArrayToHexStripped");var Bnr=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function iot(s){return s.length=0,!0}t(iot,"consumeIsZone");function Unr(s,o,f){if(s.length){let d=I6e(s);if(d!=="")o.push(d);else return f.error=!0,!1;s.length=0}return!0}t(Unr,"consumeHextets");function znr(s){let o=0,f={error:!1,address:"",zone:""},d=[],y=[],x=!1,A=!1,F=Unr;for(let W=0;W<s.length;W++){let G=s[W];if(!(G==="["||G==="]"))if(G===":"){if(x===!0&&(A=!0),!F(y,d,f))break;if(++o>7){f.error=!0;break}W>0&&s[W-1]===":"&&(x=!0),d.push(":");continue}else if(G==="%"){if(!F(y,d,f))break;F=iot}else{y.push(G);continue}}return y.length&&(F===iot?f.zone=y.join(""):A?d.push(y.join("")):d.push(I6e(y))),f.address=d.join(""),f}t(znr,"getIPV6");function aot(s){if($nr(s,":")<2)return{host:s,isIPV6:!1};let o=znr(s);if(o.error)return{host:s,isIPV6:!1};{let f=o.address,d=o.address;return o.zone&&(f+="%"+o.zone,d+="%25"+o.zone),{host:f,isIPV6:!0,escapedHost:d}}}t(aot,"normalizeIPv6");function $nr(s,o){let f=0;for(let d=0;d<s.length;d++)s[d]===o&&f++;return f}t($nr,"findToken");function Jnr(s){let o=s,f=[],d=-1,y=0;for(;y=o.length;){if(y===1){if(o===".")break;if(o==="/"){f.push("/");break}else{f.push(o);break}}else if(y===2){if(o[0]==="."){if(o[1]===".")break;if(o[1]==="/"){o=o.slice(2);continue}}else if(o[0]==="/"&&(o[1]==="."||o[1]==="/")){f.push("/");break}}else if(y===3&&o==="/.."){f.length!==0&&f.pop(),f.push("/");break}if(o[0]==="."){if(o[1]==="."){if(o[2]==="/"){o=o.slice(3);continue}}else if(o[1]==="/"){o=o.slice(2);continue}}else if(o[0]==="/"&&o[1]==="."){if(o[2]==="/"){o=o.slice(2);continue}else if(o[2]==="."&&o[3]==="/"){o=o.slice(3),f.length!==0&&f.pop();continue}}if((d=o.indexOf("/",1))===-1){f.push(o);break}else f.push(o.slice(0,d)),o=o.slice(d)}return f.join("")}t(Jnr,"removeDotSegments");function Wnr(s,o){let f=o!==!0?escape:unescape;return s.scheme!==void 0&&(s.scheme=f(s.scheme)),s.userinfo!==void 0&&(s.userinfo=f(s.userinfo)),s.host!==void 0&&(s.host=f(s.host)),s.path!==void 0&&(s.path=f(s.path)),s.query!==void 0&&(s.query=f(s.query)),s.fragment!==void 0&&(s.fragment=f(s.fragment)),s}t(Wnr,"normalizeComponentEncoding");function qnr(s){let o=[];if(s.userinfo!==void 0&&(o.push(s.userinfo),o.push("@")),s.host!==void 0){let f=unescape(s.host);if(!sot(f)){let d=aot(f);d.isIPV6===!0?f=`[${d.escapedHost}]`:f=s.host}o.push(f)}return(typeof s.port=="number"||typeof s.port=="string")&&(o.push(":"),o.push(String(s.port))),o.length?o.join(""):void 0}t(qnr,"recomposeAuthority");oot.exports={nonSimpleDomain:Bnr,recomposeAuthority:qnr,normalizeComponentEncoding:Wnr,removeDotSegments:Jnr,isIPv4:sot,isUUID:jnr,normalizeIPv6:aot,stringArrayToHexStripped:I6e}});var _ot=or((pPr,fot)=>{"use strict";var{isUUID:Vnr}=O6e(),Hnr=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,Gnr=["http","https","ws","wss","urn","urn:uuid"];function Ynr(s){return Gnr.indexOf(s)!==-1}t(Ynr,"isValidSchemeName");function F6e(s){return s.secure===!0?!0:s.secure===!1?!1:s.scheme?s.scheme.length===3&&(s.scheme[0]==="w"||s.scheme[0]==="W")&&(s.scheme[1]==="s"||s.scheme[1]==="S")&&(s.scheme[2]==="s"||s.scheme[2]==="S"):!1}t(F6e,"wsIsSecure");function cot(s){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s}t(cot,"httpParse");function lot(s){let o=String(s.scheme).toLowerCase()==="https";return(s.port===(o?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}t(lot,"httpSerialize");function Knr(s){return s.secure=F6e(s),s.resourceName=(s.path||"/")+(s.query?"?"+s.query:""),s.path=void 0,s.query=void 0,s}t(Knr,"wsParse");function Xnr(s){if((s.port===(F6e(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){let[o,f]=s.resourceName.split("?");s.path=o&&o!=="/"?o:void 0,s.query=f,s.resourceName=void 0}return s.fragment=void 0,s}t(Xnr,"wsSerialize");function Znr(s,o){if(!s.path)return s.error="URN can not be parsed",s;let f=s.path.match(Hnr);if(f){let d=o.scheme||s.scheme||"urn";s.nid=f[1].toLowerCase(),s.nss=f[2];let y=`${d}:${o.nid||s.nid}`,x=L6e(y);s.path=void 0,x&&(s=x.parse(s,o))}else s.error=s.error||"URN can not be parsed.";return s}t(Znr,"urnParse");function Qnr(s,o){if(s.nid===void 0)throw new Error("URN without nid cannot be serialized");let f=o.scheme||s.scheme||"urn",d=s.nid.toLowerCase(),y=`${f}:${o.nid||d}`,x=L6e(y);x&&(s=x.serialize(s,o));let A=s,F=s.nss;return A.path=`${d||o.nid}:${F}`,o.skipEscape=!0,A}t(Qnr,"urnSerialize");function eir(s,o){let f=s;return f.uuid=f.nss,f.nss=void 0,!o.tolerant&&(!f.uuid||!Vnr(f.uuid))&&(f.error=f.error||"UUID is not valid."),f}t(eir,"urnuuidParse");function tir(s){let o=s;return o.nss=(s.uuid||"").toLowerCase(),o}t(tir,"urnuuidSerialize");var uot={scheme:"http",domainHost:!0,parse:cot,serialize:lot},rir={scheme:"https",domainHost:uot.domainHost,parse:cot,serialize:lot},Oce={scheme:"ws",domainHost:!0,parse:Knr,serialize:Xnr},nir={scheme:"wss",domainHost:Oce.domainHost,parse:Oce.parse,serialize:Oce.serialize},iir={scheme:"urn",parse:Znr,serialize:Qnr,skipNormalize:!0},sir={scheme:"urn:uuid",parse:eir,serialize:tir,skipNormalize:!0},Fce={http:uot,https:rir,ws:Oce,wss:nir,urn:iir,"urn:uuid":sir};Object.setPrototypeOf(Fce,null);function L6e(s){return s&&(Fce[s]||Fce[s.toLowerCase()])||void 0}t(L6e,"getSchemeHandler");fot.exports={wsIsSecure:F6e,SCHEMES:Fce,isValidSchemeName:Ynr,getSchemeHandler:L6e}});var mot=or((mPr,Rce)=>{"use strict";var{normalizeIPv6:air,removeDotSegments:_H,recomposeAuthority:oir,normalizeComponentEncoding:Lce,isIPv4:cir,nonSimpleDomain:lir}=O6e(),{SCHEMES:uir,getSchemeHandler:pot}=_ot();function fir(s,o){return typeof s=="string"?s=Rk(XP(s,o),o):typeof s=="object"&&(s=XP(Rk(s,o),o)),s}t(fir,"normalize");function _ir(s,o,f){let d=f?Object.assign({scheme:"null"},f):{scheme:"null"},y=dot(XP(s,d),XP(o,d),d,!0);return d.skipEscape=!0,Rk(y,d)}t(_ir,"resolve");function dot(s,o,f,d){let y={};return d||(s=XP(Rk(s,f),f),o=XP(Rk(o,f),f)),f=f||{},!f.tolerant&&o.scheme?(y.scheme=o.scheme,y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=_H(o.path||""),y.query=o.query):(o.userinfo!==void 0||o.host!==void 0||o.port!==void 0?(y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=_H(o.path||""),y.query=o.query):(o.path?(o.path[0]==="/"?y.path=_H(o.path):((s.userinfo!==void 0||s.host!==void 0||s.port!==void 0)&&!s.path?y.path="/"+o.path:s.path?y.path=s.path.slice(0,s.path.lastIndexOf("/")+1)+o.path:y.path=o.path,y.path=_H(y.path)),y.query=o.query):(y.path=s.path,o.query!==void 0?y.query=o.query:y.query=s.query),y.userinfo=s.userinfo,y.host=s.host,y.port=s.port),y.scheme=s.scheme),y.fragment=o.fragment,y}t(dot,"resolveComponent");function pir(s,o,f){return typeof s=="string"?(s=unescape(s),s=Rk(Lce(XP(s,f),!0),{...f,skipEscape:!0})):typeof s=="object"&&(s=Rk(Lce(s,!0),{...f,skipEscape:!0})),typeof o=="string"?(o=unescape(o),o=Rk(Lce(XP(o,f),!0),{...f,skipEscape:!0})):typeof o=="object"&&(o=Rk(Lce(o,!0),{...f,skipEscape:!0})),s.toLowerCase()===o.toLowerCase()}t(pir,"equal");function Rk(s,o){let f={host:s.host,scheme:s.scheme,userinfo:s.userinfo,port:s.port,path:s.path,query:s.query,nid:s.nid,nss:s.nss,uuid:s.uuid,fragment:s.fragment,reference:s.reference,resourceName:s.resourceName,secure:s.secure,error:""},d=Object.assign({},o),y=[],x=pot(d.scheme||f.scheme);x&&x.serialize&&x.serialize(f,d),f.path!==void 0&&(d.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),d.reference!=="suffix"&&f.scheme&&y.push(f.scheme,":");let A=oir(f);if(A!==void 0&&(d.reference!=="suffix"&&y.push("//"),y.push(A),f.path&&f.path[0]!=="/"&&y.push("/")),f.path!==void 0){let F=f.path;!d.absolutePath&&(!x||!x.absolutePath)&&(F=_H(F)),A===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),y.push(F)}return f.query!==void 0&&y.push("?",f.query),f.fragment!==void 0&&y.push("#",f.fragment),y.join("")}t(Rk,"serialize");var dir=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function XP(s,o){let f=Object.assign({},o),d={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},y=!1;f.reference==="suffix"&&(f.scheme?s=f.scheme+":"+s:s="//"+s);let x=s.match(dir);if(x){if(d.scheme=x[1],d.userinfo=x[3],d.host=x[4],d.port=parseInt(x[5],10),d.path=x[6]||"",d.query=x[7],d.fragment=x[8],isNaN(d.port)&&(d.port=x[5]),d.host)if(cir(d.host)===!1){let W=air(d.host);d.host=W.host.toLowerCase(),y=W.isIPV6}else y=!0;d.scheme===void 0&&d.userinfo===void 0&&d.host===void 0&&d.port===void 0&&d.query===void 0&&!d.path?d.reference="same-document":d.scheme===void 0?d.reference="relative":d.fragment===void 0?d.reference="absolute":d.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==d.reference&&(d.error=d.error||"URI is not a "+f.reference+" reference.");let A=pot(f.scheme||d.scheme);if(!f.unicodeSupport&&(!A||!A.unicodeSupport)&&d.host&&(f.domainHost||A&&A.domainHost)&&y===!1&&lir(d.host))try{d.host=URL.domainToASCII(d.host.toLowerCase())}catch(F){d.error=d.error||"Host's domain name can not be converted to ASCII: "+F}(!A||A&&!A.skipNormalize)&&(s.indexOf("%")!==-1&&(d.scheme!==void 0&&(d.scheme=unescape(d.scheme)),d.host!==void 0&&(d.host=unescape(d.host))),d.path&&(d.path=escape(unescape(d.path))),d.fragment&&(d.fragment=encodeURI(decodeURIComponent(d.fragment)))),A&&A.parse&&A.parse(d,f)}else d.error=d.error||"URI can not be parsed.";return d}t(XP,"parse");var R6e={SCHEMES:uir,normalize:fir,resolve:_ir,resolveComponent:dot,equal:pir,serialize:Rk,parse:XP};Rce.exports=R6e;Rce.exports.default=R6e;Rce.exports.fastUri=R6e});var got=or(M6e=>{"use strict";Object.defineProperty(M6e,"__esModule",{value:!0});var hot=mot();hot.code='require("ajv/dist/runtime/uri").default';M6e.default=hot});var U6e=or(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.CodeGen=E0.Name=E0.nil=E0.stringify=E0.str=E0._=E0.KeywordCxt=void 0;var mir=lM();Object.defineProperty(E0,"KeywordCxt",{enumerable:!0,get:t(function(){return mir.KeywordCxt},"get")});var _M=Ec();Object.defineProperty(E0,"_",{enumerable:!0,get:t(function(){return _M._},"get")});Object.defineProperty(E0,"str",{enumerable:!0,get:t(function(){return _M.str},"get")});Object.defineProperty(E0,"stringify",{enumerable:!0,get:t(function(){return _M.stringify},"get")});Object.defineProperty(E0,"nil",{enumerable:!0,get:t(function(){return _M.nil},"get")});Object.defineProperty(E0,"Name",{enumerable:!0,get:t(function(){return _M.Name},"get")});Object.defineProperty(E0,"CodeGen",{enumerable:!0,get:t(function(){return _M.CodeGen},"get")});var hir=uH(),Tot=uM(),gir=_6e(),pH=fH(),yir=Ec(),dH=oH(),Mce=aH(),B6e=tu(),yot=not(),vir=got(),xot=t((s,o)=>new RegExp(s,o),"defaultRegExp");xot.code="new RegExp";var bir=["removeAdditional","useDefaults","coerceTypes"],Sir=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Tir={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},xir={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},vot=200;function Eir(s){var o,f,d,y,x,A,F,W,G,be,de,se,Xe,Ue,je,Vt,Ut,Ir,wn,sn,Jn,kr,yr,xs,bi;let fc=s.strict,Ci=(o=s.code)===null||o===void 0?void 0:o.optimize,bf=Ci===!0||Ci===void 0?1:Ci||0,Bf=(d=(f=s.code)===null||f===void 0?void 0:f.regExp)!==null&&d!==void 0?d:xot,In=(y=s.uriResolver)!==null&&y!==void 0?y:vir.default;return{strictSchema:(A=(x=s.strictSchema)!==null&&x!==void 0?x:fc)!==null&&A!==void 0?A:!0,strictNumbers:(W=(F=s.strictNumbers)!==null&&F!==void 0?F:fc)!==null&&W!==void 0?W:!0,strictTypes:(be=(G=s.strictTypes)!==null&&G!==void 0?G:fc)!==null&&be!==void 0?be:"log",strictTuples:(se=(de=s.strictTuples)!==null&&de!==void 0?de:fc)!==null&&se!==void 0?se:"log",strictRequired:(Ue=(Xe=s.strictRequired)!==null&&Xe!==void 0?Xe:fc)!==null&&Ue!==void 0?Ue:!1,code:s.code?{...s.code,optimize:bf,regExp:Bf}:{optimize:bf,regExp:Bf},loopRequired:(je=s.loopRequired)!==null&&je!==void 0?je:vot,loopEnum:(Vt=s.loopEnum)!==null&&Vt!==void 0?Vt:vot,meta:(Ut=s.meta)!==null&&Ut!==void 0?Ut:!0,messages:(Ir=s.messages)!==null&&Ir!==void 0?Ir:!0,inlineRefs:(wn=s.inlineRefs)!==null&&wn!==void 0?wn:!0,schemaId:(sn=s.schemaId)!==null&&sn!==void 0?sn:"$id",addUsedSchema:(Jn=s.addUsedSchema)!==null&&Jn!==void 0?Jn:!0,validateSchema:(kr=s.validateSchema)!==null&&kr!==void 0?kr:!0,validateFormats:(yr=s.validateFormats)!==null&&yr!==void 0?yr:!0,unicodeRegExp:(xs=s.unicodeRegExp)!==null&&xs!==void 0?xs:!0,int32range:(bi=s.int32range)!==null&&bi!==void 0?bi:!0,uriResolver:In}}t(Eir,"requiredOptions");var mH=class{static{t(this,"Ajv")}constructor(o={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,o=this.opts={...o,...Eir(o)};let{es5:f,lines:d}=this.opts.code;this.scope=new yir.ValueScope({scope:{},prefixes:Sir,es5:f,lines:d}),this.logger=Air(o.logger);let y=o.validateFormats;o.validateFormats=!1,this.RULES=(0,gir.getRules)(),bot.call(this,Tir,o,"NOT SUPPORTED"),bot.call(this,xir,o,"DEPRECATED","warn"),this._metaOpts=Dir.call(this),o.formats&&kir.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),o.keywords&&wir.call(this,o.keywords),typeof o.meta=="object"&&this.addMetaSchema(o.meta),Cir.call(this),o.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:o,meta:f,schemaId:d}=this.opts,y=yot;d==="id"&&(y={...yot},y.id=y.$id,delete y.$id),f&&o&&this.addMetaSchema(y,y[d],!1)}defaultMeta(){let{meta:o,schemaId:f}=this.opts;return this.opts.defaultMeta=typeof o=="object"?o[f]||o:void 0}validate(o,f){let d;if(typeof o=="string"){if(d=this.getSchema(o),!d)throw new Error(`no schema with key or ref "${o}"`)}else d=this.compile(o);let y=d(f);return"$async"in d||(this.errors=d.errors),y}compile(o,f){let d=this._addSchema(o,f);return d.validate||this._compileSchemaEnv(d)}compileAsync(o,f){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:d}=this.opts;return y.call(this,o,f);async function y(be,de){await x.call(this,be.$schema);let se=this._addSchema(be,de);return se.validate||A.call(this,se)}async function x(be){be&&!this.getSchema(be)&&await y.call(this,{$ref:be},!0)}async function A(be){try{return this._compileSchemaEnv(be)}catch(de){if(!(de instanceof Tot.default))throw de;return F.call(this,de),await W.call(this,de.missingSchema),A.call(this,be)}}function F({missingSchema:be,missingRef:de}){if(this.refs[be])throw new Error(`AnySchema ${be} is loaded but ${de} cannot be resolved`)}async function W(be){let de=await G.call(this,be);this.refs[be]||await x.call(this,de.$schema),this.refs[be]||this.addSchema(de,be,f)}async function G(be){let de=this._loading[be];if(de)return de;try{return await(this._loading[be]=d(be))}finally{delete this._loading[be]}}}addSchema(o,f,d,y=this.opts.validateSchema){if(Array.isArray(o)){for(let A of o)this.addSchema(A,void 0,d,y);return this}let x;if(typeof o=="object"){let{schemaId:A}=this.opts;if(x=o[A],x!==void 0&&typeof x!="string")throw new Error(`schema ${A} must be string`)}return f=(0,dH.normalizeId)(f||x),this._checkUnique(f),this.schemas[f]=this._addSchema(o,d,f,y,!0),this}addMetaSchema(o,f,d=this.opts.validateSchema){return this.addSchema(o,f,!0,d),this}validateSchema(o,f){if(typeof o=="boolean")return!0;let d;if(d=o.$schema,d!==void 0&&typeof d!="string")throw new Error("$schema must be a string");if(d=d||this.opts.defaultMeta||this.defaultMeta(),!d)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let y=this.validate(d,o);if(!y&&f){let x="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(x);else throw new Error(x)}return y}getSchema(o){let f;for(;typeof(f=Sot.call(this,o))=="string";)o=f;if(f===void 0){let{schemaId:d}=this.opts,y=new pH.SchemaEnv({schema:{},schemaId:d});if(f=pH.resolveSchema.call(this,y,o),!f)return;this.refs[o]=f}return f.validate||this._compileSchemaEnv(f)}removeSchema(o){if(o instanceof RegExp)return this._removeAllSchemas(this.schemas,o),this._removeAllSchemas(this.refs,o),this;switch(typeof o){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let f=Sot.call(this,o);return typeof f=="object"&&this._cache.delete(f.schema),delete this.schemas[o],delete this.refs[o],this}case"object":{let f=o;this._cache.delete(f);let d=o[this.opts.schemaId];return d&&(d=(0,dH.normalizeId)(d),delete this.schemas[d],delete this.refs[d]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(o){for(let f of o)this.addKeyword(f);return this}addKeyword(o,f){let d;if(typeof o=="string")d=o,typeof f=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),f.keyword=d);else if(typeof o=="object"&&f===void 0){if(f=o,d=f.keyword,Array.isArray(d)&&!d.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Iir.call(this,d,f),!f)return(0,B6e.eachItem)(d,x=>j6e.call(this,x)),this;Fir.call(this,f);let y={...f,type:(0,Mce.getJSONTypes)(f.type),schemaType:(0,Mce.getJSONTypes)(f.schemaType)};return(0,B6e.eachItem)(d,y.type.length===0?x=>j6e.call(this,x,y):x=>y.type.forEach(A=>j6e.call(this,x,y,A))),this}getKeyword(o){let f=this.RULES.all[o];return typeof f=="object"?f.definition:!!f}removeKeyword(o){let{RULES:f}=this;delete f.keywords[o],delete f.all[o];for(let d of f.rules){let y=d.rules.findIndex(x=>x.keyword===o);y>=0&&d.rules.splice(y,1)}return this}addFormat(o,f){return typeof f=="string"&&(f=new RegExp(f)),this.formats[o]=f,this}errorsText(o=this.errors,{separator:f=", ",dataVar:d="data"}={}){return!o||o.length===0?"No errors":o.map(y=>`${d}${y.instancePath} ${y.message}`).reduce((y,x)=>y+f+x)}$dataMetaSchema(o,f){let d=this.RULES.all;o=JSON.parse(JSON.stringify(o));for(let y of f){let x=y.split("/").slice(1),A=o;for(let F of x)A=A[F];for(let F in d){let W=d[F];if(typeof W!="object")continue;let{$data:G}=W.definition,be=A[F];G&&be&&(A[F]=Eot(be))}}return o}_removeAllSchemas(o,f){for(let d in o){let y=o[d];(!f||f.test(d))&&(typeof y=="string"?delete o[d]:y&&!y.meta&&(this._cache.delete(y.schema),delete o[d]))}}_addSchema(o,f,d,y=this.opts.validateSchema,x=this.opts.addUsedSchema){let A,{schemaId:F}=this.opts;if(typeof o=="object")A=o[F];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof o!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(o);if(W!==void 0)return W;d=(0,dH.normalizeId)(A||d);let G=dH.getSchemaRefs.call(this,o,d);return W=new pH.SchemaEnv({schema:o,schemaId:F,meta:f,baseId:d,localRefs:G}),this._cache.set(W.schema,W),x&&!d.startsWith("#")&&(d&&this._checkUnique(d),this.refs[d]=W),y&&this.validateSchema(o,!0),W}_checkUnique(o){if(this.schemas[o]||this.refs[o])throw new Error(`schema with key or id "${o}" already exists`)}_compileSchemaEnv(o){if(o.meta?this._compileMetaSchema(o):pH.compileSchema.call(this,o),!o.validate)throw new Error("ajv implementation error");return o.validate}_compileMetaSchema(o){let f=this.opts;this.opts=this._metaOpts;try{pH.compileSchema.call(this,o)}finally{this.opts=f}}};mH.ValidationError=hir.default;mH.MissingRefError=Tot.default;E0.default=mH;function bot(s,o,f,d="error"){for(let y in s){let x=y;x in o&&this.logger[d](`${f}: option ${y}. ${s[x]}`)}}t(bot,"checkOptions");function Sot(s){return s=(0,dH.normalizeId)(s),this.schemas[s]||this.refs[s]}t(Sot,"getSchEnv");function Cir(){let s=this.opts.schemas;if(s)if(Array.isArray(s))this.addSchema(s);else for(let o in s)this.addSchema(s[o],o)}t(Cir,"addInitialSchemas");function kir(){for(let s in this.opts.formats){let o=this.opts.formats[s];o&&this.addFormat(s,o)}}t(kir,"addInitialFormats");function wir(s){if(Array.isArray(s)){this.addVocabulary(s);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let o in s){let f=s[o];f.keyword||(f.keyword=o),this.addKeyword(f)}}t(wir,"addInitialKeywords");function Dir(){let s={...this.opts};for(let o of bir)delete s[o];return s}t(Dir,"getMetaSchemaOptions");var Pir={log(){},warn(){},error(){}};function Air(s){if(s===!1)return Pir;if(s===void 0)return console;if(s.log&&s.warn&&s.error)return s;throw new Error("logger must implement log, warn and error methods")}t(Air,"getLogger");var Nir=/^[a-z_$][a-z0-9_$:-]*$/i;function Iir(s,o){let{RULES:f}=this;if((0,B6e.eachItem)(s,d=>{if(f.keywords[d])throw new Error(`Keyword ${d} is already defined`);if(!Nir.test(d))throw new Error(`Keyword ${d} has invalid name`)}),!!o&&o.$data&&!("code"in o||"validate"in o))throw new Error('$data keyword must have "code" or "validate" function')}t(Iir,"checkKeyword");function j6e(s,o,f){var d;let y=o?.post;if(f&&y)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:x}=this,A=y?x.post:x.rules.find(({type:W})=>W===f);if(A||(A={type:f,rules:[]},x.rules.push(A)),x.keywords[s]=!0,!o)return;let F={keyword:s,definition:{...o,type:(0,Mce.getJSONTypes)(o.type),schemaType:(0,Mce.getJSONTypes)(o.schemaType)}};o.before?Oir.call(this,A,F,o.before):A.rules.push(F),x.all[s]=F,(d=o.implements)===null||d===void 0||d.forEach(W=>this.addKeyword(W))}t(j6e,"addRule");function Oir(s,o,f){let d=s.rules.findIndex(y=>y.keyword===f);d>=0?s.rules.splice(d,0,o):(s.rules.push(o),this.logger.warn(`rule ${f} is not defined`))}t(Oir,"addBeforeRule");function Fir(s){let{metaSchema:o}=s;o!==void 0&&(s.$data&&this.opts.$data&&(o=Eot(o)),s.validateSchema=this.compile(o,!0))}t(Fir,"keywordMetaschema");var Lir={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Eot(s){return{anyOf:[s,Lir]}}t(Eot,"schemaOrData")});var Cot=or(z6e=>{"use strict";Object.defineProperty(z6e,"__esModule",{value:!0});var Rir={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};z6e.default=Rir});var Uce=or(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0});PO.callRef=PO.getValidate=void 0;var Mir=uM(),kot=dT(),Zv=Ec(),pM=pT(),wot=fH(),jce=tu(),jir={keyword:"$ref",schemaType:"string",code(s){let{gen:o,schema:f,it:d}=s,{baseId:y,schemaEnv:x,validateName:A,opts:F,self:W}=d,{root:G}=x;if((f==="#"||f==="#/")&&y===G.baseId)return de();let be=wot.resolveRef.call(W,G,y,f);if(be===void 0)throw new Mir.default(d.opts.uriResolver,y,f);if(be instanceof wot.SchemaEnv)return se(be);return Xe(be);function de(){if(x===G)return Bce(s,A,x,x.$async);let Ue=o.scopeValue("root",{ref:G});return Bce(s,(0,Zv._)`${Ue}.validate`,G,G.$async)}function se(Ue){let je=Dot(s,Ue);Bce(s,je,Ue,Ue.$async)}function Xe(Ue){let je=o.scopeValue("schema",F.code.source===!0?{ref:Ue,code:(0,Zv.stringify)(Ue)}:{ref:Ue}),Vt=o.name("valid"),Ut=s.subschema({schema:Ue,dataTypes:[],schemaPath:Zv.nil,topSchemaRef:je,errSchemaPath:f},Vt);s.mergeEvaluated(Ut),s.ok(Vt)}}};function Dot(s,o){let{gen:f}=s;return o.validate?f.scopeValue("validate",{ref:o.validate}):(0,Zv._)`${f.scopeValue("wrapper",{ref:o})}.validate`}t(Dot,"getValidate");PO.getValidate=Dot;function Bce(s,o,f,d){let{gen:y,it:x}=s,{allErrors:A,schemaEnv:F,opts:W}=x,G=W.passContext?pM.default.this:Zv.nil;d?be():de();function be(){if(!F.$async)throw new Error("async schema referenced by sync schema");let Ue=y.let("valid");y.try(()=>{y.code((0,Zv._)`await ${(0,kot.callValidateCode)(s,o,G)}`),Xe(o),A||y.assign(Ue,!0)},je=>{y.if((0,Zv._)`!(${je} instanceof ${x.ValidationError})`,()=>y.throw(je)),se(je),A||y.assign(Ue,!1)}),s.ok(Ue)}t(be,"callAsyncRef");function de(){s.result((0,kot.callValidateCode)(s,o,G),()=>Xe(o),()=>se(o))}t(de,"callSyncRef");function se(Ue){let je=(0,Zv._)`${Ue}.errors`;y.assign(pM.default.vErrors,(0,Zv._)`${pM.default.vErrors} === null ? ${je} : ${pM.default.vErrors}.concat(${je})`),y.assign(pM.default.errors,(0,Zv._)`${pM.default.vErrors}.length`)}t(se,"addErrorsFrom");function Xe(Ue){var je;if(!x.opts.unevaluated)return;let Vt=(je=f?.validate)===null||je===void 0?void 0:je.evaluated;if(x.props!==!0)if(Vt&&!Vt.dynamicProps)Vt.props!==void 0&&(x.props=jce.mergeEvaluated.props(y,Vt.props,x.props));else{let Ut=y.var("props",(0,Zv._)`${Ue}.evaluated.props`);x.props=jce.mergeEvaluated.props(y,Ut,x.props,Zv.Name)}if(x.items!==!0)if(Vt&&!Vt.dynamicItems)Vt.items!==void 0&&(x.items=jce.mergeEvaluated.items(y,Vt.items,x.items));else{let Ut=y.var("items",(0,Zv._)`${Ue}.evaluated.items`);x.items=jce.mergeEvaluated.items(y,Ut,x.items,Zv.Name)}}t(Xe,"addEvaluatedFrom")}t(Bce,"callRef");PO.callRef=Bce;PO.default=jir});var J6e=or($6e=>{"use strict";Object.defineProperty($6e,"__esModule",{value:!0});var Bir=Cot(),Uir=Uce(),zir=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Bir.default,Uir.default];$6e.default=zir});var Pot=or(W6e=>{"use strict";Object.defineProperty(W6e,"__esModule",{value:!0});var zce=Ec(),lI=zce.operators,$ce={maximum:{okStr:"<=",ok:lI.LTE,fail:lI.GT},minimum:{okStr:">=",ok:lI.GTE,fail:lI.LT},exclusiveMaximum:{okStr:"<",ok:lI.LT,fail:lI.GTE},exclusiveMinimum:{okStr:">",ok:lI.GT,fail:lI.LTE}},$ir={message:t(({keyword:s,schemaCode:o})=>(0,zce.str)`must be ${$ce[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,zce._)`{comparison: ${$ce[s].okStr}, limit: ${o}}`,"params")},Jir={keyword:Object.keys($ce),type:"number",schemaType:"number",$data:!0,error:$ir,code(s){let{keyword:o,data:f,schemaCode:d}=s;s.fail$data((0,zce._)`${f} ${$ce[o].fail} ${d} || isNaN(${f})`)}};W6e.default=Jir});var Aot=or(q6e=>{"use strict";Object.defineProperty(q6e,"__esModule",{value:!0});var hH=Ec(),Wir={message:t(({schemaCode:s})=>(0,hH.str)`must be multiple of ${s}`,"message"),params:t(({schemaCode:s})=>(0,hH._)`{multipleOf: ${s}}`,"params")},qir={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Wir,code(s){let{gen:o,data:f,schemaCode:d,it:y}=s,x=y.opts.multipleOfPrecision,A=o.let("res"),F=x?(0,hH._)`Math.abs(Math.round(${A}) - ${A}) > 1e-${x}`:(0,hH._)`${A} !== parseInt(${A})`;s.fail$data((0,hH._)`(${d} === 0 || (${A} = ${f}/${d}, ${F}))`)}};q6e.default=qir});var Iot=or(V6e=>{"use strict";Object.defineProperty(V6e,"__esModule",{value:!0});function Not(s){let o=s.length,f=0,d=0,y;for(;d<o;)f++,y=s.charCodeAt(d++),y>=55296&&y<=56319&&d<o&&(y=s.charCodeAt(d),(y&64512)===56320&&d++);return f}t(Not,"ucs2length");V6e.default=Not;Not.code='require("ajv/dist/runtime/ucs2length").default'});var Oot=or(H6e=>{"use strict";Object.defineProperty(H6e,"__esModule",{value:!0});var AO=Ec(),Vir=tu(),Hir=Iot(),Gir={message({keyword:s,schemaCode:o}){let f=s==="maxLength"?"more":"fewer";return(0,AO.str)`must NOT have ${f} than ${o} characters`},params:t(({schemaCode:s})=>(0,AO._)`{limit: ${s}}`,"params")},Yir={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Gir,code(s){let{keyword:o,data:f,schemaCode:d,it:y}=s,x=o==="maxLength"?AO.operators.GT:AO.operators.LT,A=y.opts.unicode===!1?(0,AO._)`${f}.length`:(0,AO._)`${(0,Vir.useFunc)(s.gen,Hir.default)}(${f})`;s.fail$data((0,AO._)`${A} ${x} ${d}`)}};H6e.default=Yir});var Fot=or(G6e=>{"use strict";Object.defineProperty(G6e,"__esModule",{value:!0});var Kir=dT(),Jce=Ec(),Xir={message:t(({schemaCode:s})=>(0,Jce.str)`must match pattern "${s}"`,"message"),params:t(({schemaCode:s})=>(0,Jce._)`{pattern: ${s}}`,"params")},Zir={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Xir,code(s){let{data:o,$data:f,schema:d,schemaCode:y,it:x}=s,A=x.opts.unicodeRegExp?"u":"",F=f?(0,Jce._)`(new RegExp(${y}, ${A}))`:(0,Kir.usePattern)(s,d);s.fail$data((0,Jce._)`!${F}.test(${o})`)}};G6e.default=Zir});var Lot=or(Y6e=>{"use strict";Object.defineProperty(Y6e,"__esModule",{value:!0});var gH=Ec(),Qir={message({keyword:s,schemaCode:o}){let f=s==="maxProperties"?"more":"fewer";return(0,gH.str)`must NOT have ${f} than ${o} properties`},params:t(({schemaCode:s})=>(0,gH._)`{limit: ${s}}`,"params")},esr={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Qir,code(s){let{keyword:o,data:f,schemaCode:d}=s,y=o==="maxProperties"?gH.operators.GT:gH.operators.LT;s.fail$data((0,gH._)`Object.keys(${f}).length ${y} ${d}`)}};Y6e.default=esr});var Rot=or(K6e=>{"use strict";Object.defineProperty(K6e,"__esModule",{value:!0});var yH=dT(),vH=Ec(),tsr=tu(),rsr={message:t(({params:{missingProperty:s}})=>(0,vH.str)`must have required property '${s}'`,"message"),params:t(({params:{missingProperty:s}})=>(0,vH._)`{missingProperty: ${s}}`,"params")},nsr={keyword:"required",type:"object",schemaType:"array",$data:!0,error:rsr,code(s){let{gen:o,schema:f,schemaCode:d,data:y,$data:x,it:A}=s,{opts:F}=A;if(!x&&f.length===0)return;let W=f.length>=F.loopRequired;if(A.allErrors?G():be(),F.strictRequired){let Xe=s.parentSchema.properties,{definedProperties:Ue}=s.it;for(let je of f)if(Xe?.[je]===void 0&&!Ue.has(je)){let Vt=A.schemaEnv.baseId+A.errSchemaPath,Ut=`required property "${je}" is not defined at "${Vt}" (strictRequired)`;(0,tsr.checkStrictMode)(A,Ut,A.opts.strictRequired)}}function G(){if(W||x)s.block$data(vH.nil,de);else for(let Xe of f)(0,yH.checkReportMissingProp)(s,Xe)}t(G,"allErrorsMode");function be(){let Xe=o.let("missing");if(W||x){let Ue=o.let("valid",!0);s.block$data(Ue,()=>se(Xe,Ue)),s.ok(Ue)}else o.if((0,yH.checkMissingProp)(s,f,Xe)),(0,yH.reportMissingProp)(s,Xe),o.else()}t(be,"exitOnErrorMode");function de(){o.forOf("prop",d,Xe=>{s.setParams({missingProperty:Xe}),o.if((0,yH.noPropertyInData)(o,y,Xe,F.ownProperties),()=>s.error())})}t(de,"loopAllRequired");function se(Xe,Ue){s.setParams({missingProperty:Xe}),o.forOf(Xe,d,()=>{o.assign(Ue,(0,yH.propertyInData)(o,y,Xe,F.ownProperties)),o.if((0,vH.not)(Ue),()=>{s.error(),o.break()})},vH.nil)}t(se,"loopUntilMissing")}};K6e.default=nsr});var Mot=or(X6e=>{"use strict";Object.defineProperty(X6e,"__esModule",{value:!0});var bH=Ec(),isr={message({keyword:s,schemaCode:o}){let f=s==="maxItems"?"more":"fewer";return(0,bH.str)`must NOT have ${f} than ${o} items`},params:t(({schemaCode:s})=>(0,bH._)`{limit: ${s}}`,"params")},ssr={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:isr,code(s){let{keyword:o,data:f,schemaCode:d}=s,y=o==="maxItems"?bH.operators.GT:bH.operators.LT;s.fail$data((0,bH._)`${f}.length ${y} ${d}`)}};X6e.default=ssr});var Wce=or(Z6e=>{"use strict";Object.defineProperty(Z6e,"__esModule",{value:!0});var jot=b6e();jot.code='require("ajv/dist/runtime/equal").default';Z6e.default=jot});var Bot=or(eNe=>{"use strict";Object.defineProperty(eNe,"__esModule",{value:!0});var Q6e=aH(),C0=Ec(),asr=tu(),osr=Wce(),csr={message:t(({params:{i:s,j:o}})=>(0,C0.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,"message"),params:t(({params:{i:s,j:o}})=>(0,C0._)`{i: ${s}, j: ${o}}`,"params")},lsr={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:csr,code(s){let{gen:o,data:f,$data:d,schema:y,parentSchema:x,schemaCode:A,it:F}=s;if(!d&&!y)return;let W=o.let("valid"),G=x.items?(0,Q6e.getSchemaTypes)(x.items):[];s.block$data(W,be,(0,C0._)`${A} === false`),s.ok(W);function be(){let Ue=o.let("i",(0,C0._)`${f}.length`),je=o.let("j");s.setParams({i:Ue,j:je}),o.assign(W,!0),o.if((0,C0._)`${Ue} > 1`,()=>(de()?se:Xe)(Ue,je))}t(be,"validateUniqueItems");function de(){return G.length>0&&!G.some(Ue=>Ue==="object"||Ue==="array")}t(de,"canOptimize");function se(Ue,je){let Vt=o.name("item"),Ut=(0,Q6e.checkDataTypes)(G,Vt,F.opts.strictNumbers,Q6e.DataType.Wrong),Ir=o.const("indices",(0,C0._)`{}`);o.for((0,C0._)`;${Ue}--;`,()=>{o.let(Vt,(0,C0._)`${f}[${Ue}]`),o.if(Ut,(0,C0._)`continue`),G.length>1&&o.if((0,C0._)`typeof ${Vt} == "string"`,(0,C0._)`${Vt} += "_"`),o.if((0,C0._)`typeof ${Ir}[${Vt}] == "number"`,()=>{o.assign(je,(0,C0._)`${Ir}[${Vt}]`),s.error(),o.assign(W,!1).break()}).code((0,C0._)`${Ir}[${Vt}] = ${Ue}`)})}t(se,"loopN");function Xe(Ue,je){let Vt=(0,asr.useFunc)(o,osr.default),Ut=o.name("outer");o.label(Ut).for((0,C0._)`;${Ue}--;`,()=>o.for((0,C0._)`${je} = ${Ue}; ${je}--;`,()=>o.if((0,C0._)`${Vt}(${f}[${Ue}], ${f}[${je}])`,()=>{s.error(),o.assign(W,!1).break(Ut)})))}t(Xe,"loopN2")}};eNe.default=lsr});var Uot=or(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});var tNe=Ec(),usr=tu(),fsr=Wce(),_sr={message:"must be equal to constant",params:t(({schemaCode:s})=>(0,tNe._)`{allowedValue: ${s}}`,"params")},psr={keyword:"const",$data:!0,error:_sr,code(s){let{gen:o,data:f,$data:d,schemaCode:y,schema:x}=s;d||x&&typeof x=="object"?s.fail$data((0,tNe._)`!${(0,usr.useFunc)(o,fsr.default)}(${f}, ${y})`):s.fail((0,tNe._)`${x} !== ${f}`)}};rNe.default=psr});var zot=or(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});var SH=Ec(),dsr=tu(),msr=Wce(),hsr={message:"must be equal to one of the allowed values",params:t(({schemaCode:s})=>(0,SH._)`{allowedValues: ${s}}`,"params")},gsr={keyword:"enum",schemaType:"array",$data:!0,error:hsr,code(s){let{gen:o,data:f,$data:d,schema:y,schemaCode:x,it:A}=s;if(!d&&y.length===0)throw new Error("enum must have non-empty array");let F=y.length>=A.opts.loopEnum,W,G=t(()=>W??(W=(0,dsr.useFunc)(o,msr.default)),"getEql"),be;if(F||d)be=o.let("valid"),s.block$data(be,de);else{if(!Array.isArray(y))throw new Error("ajv implementation error");let Xe=o.const("vSchema",x);be=(0,SH.or)(...y.map((Ue,je)=>se(Xe,je)))}s.pass(be);function de(){o.assign(be,!1),o.forOf("v",x,Xe=>o.if((0,SH._)`${G()}(${f}, ${Xe})`,()=>o.assign(be,!0).break()))}t(de,"loopEnum");function se(Xe,Ue){let je=y[Ue];return typeof je=="object"&&je!==null?(0,SH._)`${G()}(${f}, ${Xe}[${Ue}])`:(0,SH._)`${f} === ${je}`}t(se,"equalCode")}};nNe.default=gsr});var sNe=or(iNe=>{"use strict";Object.defineProperty(iNe,"__esModule",{value:!0});var ysr=Pot(),vsr=Aot(),bsr=Oot(),Ssr=Fot(),Tsr=Lot(),xsr=Rot(),Esr=Mot(),Csr=Bot(),ksr=Uot(),wsr=zot(),Dsr=[ysr.default,vsr.default,bsr.default,Ssr.default,Tsr.default,xsr.default,Esr.default,Csr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ksr.default,wsr.default];iNe.default=Dsr});var oNe=or(TH=>{"use strict";Object.defineProperty(TH,"__esModule",{value:!0});TH.validateAdditionalItems=void 0;var NO=Ec(),aNe=tu(),Psr={message:t(({params:{len:s}})=>(0,NO.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,NO._)`{limit: ${s}}`,"params")},Asr={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Psr,code(s){let{parentSchema:o,it:f}=s,{items:d}=o;if(!Array.isArray(d)){(0,aNe.checkStrictMode)(f,'"additionalItems" is ignored when "items" is not an array of schemas');return}$ot(s,d)}};function $ot(s,o){let{gen:f,schema:d,data:y,keyword:x,it:A}=s;A.items=!0;let F=f.const("len",(0,NO._)`${y}.length`);if(d===!1)s.setParams({len:o.length}),s.pass((0,NO._)`${F} <= ${o.length}`);else if(typeof d=="object"&&!(0,aNe.alwaysValidSchema)(A,d)){let G=f.var("valid",(0,NO._)`${F} <= ${o.length}`);f.if((0,NO.not)(G),()=>W(G)),s.ok(G)}function W(G){f.forRange("i",o.length,F,be=>{s.subschema({keyword:x,dataProp:be,dataPropType:aNe.Type.Num},G),A.allErrors||f.if((0,NO.not)(G),()=>f.break())})}t(W,"validateItems")}t($ot,"validateAdditionalItems");TH.validateAdditionalItems=$ot;TH.default=Asr});var cNe=or(xH=>{"use strict";Object.defineProperty(xH,"__esModule",{value:!0});xH.validateTuple=void 0;var Jot=Ec(),qce=tu(),Nsr=dT(),Isr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){let{schema:o,it:f}=s;if(Array.isArray(o))return Wot(s,"additionalItems",o);f.items=!0,!(0,qce.alwaysValidSchema)(f,o)&&s.ok((0,Nsr.validateArray)(s))}};function Wot(s,o,f=s.schema){let{gen:d,parentSchema:y,data:x,keyword:A,it:F}=s;be(y),F.opts.unevaluated&&f.length&&F.items!==!0&&(F.items=qce.mergeEvaluated.items(d,f.length,F.items));let W=d.name("valid"),G=d.const("len",(0,Jot._)`${x}.length`);f.forEach((de,se)=>{(0,qce.alwaysValidSchema)(F,de)||(d.if((0,Jot._)`${G} > ${se}`,()=>s.subschema({keyword:A,schemaProp:se,dataProp:se},W)),s.ok(W))});function be(de){let{opts:se,errSchemaPath:Xe}=F,Ue=f.length,je=Ue===de.minItems&&(Ue===de.maxItems||de[o]===!1);if(se.strictTuples&&!je){let Vt=`"${A}" is ${Ue}-tuple, but minItems or maxItems/${o} are not specified or different at path "${Xe}"`;(0,qce.checkStrictMode)(F,Vt,se.strictTuples)}}t(be,"checkStrictTuple")}t(Wot,"validateTuple");xH.validateTuple=Wot;xH.default=Isr});var qot=or(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});var Osr=cNe(),Fsr={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t(s=>(0,Osr.validateTuple)(s,"items"),"code")};lNe.default=Fsr});var Hot=or(uNe=>{"use strict";Object.defineProperty(uNe,"__esModule",{value:!0});var Vot=Ec(),Lsr=tu(),Rsr=dT(),Msr=oNe(),jsr={message:t(({params:{len:s}})=>(0,Vot.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,Vot._)`{limit: ${s}}`,"params")},Bsr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:jsr,code(s){let{schema:o,parentSchema:f,it:d}=s,{prefixItems:y}=f;d.items=!0,!(0,Lsr.alwaysValidSchema)(d,o)&&(y?(0,Msr.validateAdditionalItems)(s,y):s.ok((0,Rsr.validateArray)(s)))}};uNe.default=Bsr});var Got=or(fNe=>{"use strict";Object.defineProperty(fNe,"__esModule",{value:!0});var hT=Ec(),Vce=tu(),Usr={message:t(({params:{min:s,max:o}})=>o===void 0?(0,hT.str)`must contain at least ${s} valid item(s)`:(0,hT.str)`must contain at least ${s} and no more than ${o} valid item(s)`,"message"),params:t(({params:{min:s,max:o}})=>o===void 0?(0,hT._)`{minContains: ${s}}`:(0,hT._)`{minContains: ${s}, maxContains: ${o}}`,"params")},zsr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Usr,code(s){let{gen:o,schema:f,parentSchema:d,data:y,it:x}=s,A,F,{minContains:W,maxContains:G}=d;x.opts.next?(A=W===void 0?1:W,F=G):A=1;let be=o.const("len",(0,hT._)`${y}.length`);if(s.setParams({min:A,max:F}),F===void 0&&A===0){(0,Vce.checkStrictMode)(x,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(F!==void 0&&A>F){(0,Vce.checkStrictMode)(x,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,Vce.alwaysValidSchema)(x,f)){let je=(0,hT._)`${be} >= ${A}`;F!==void 0&&(je=(0,hT._)`${je} && ${be} <= ${F}`),s.pass(je);return}x.items=!0;let de=o.name("valid");F===void 0&&A===1?Xe(de,()=>o.if(de,()=>o.break())):A===0?(o.let(de,!0),F!==void 0&&o.if((0,hT._)`${y}.length > 0`,se)):(o.let(de,!1),se()),s.result(de,()=>s.reset());function se(){let je=o.name("_valid"),Vt=o.let("count",0);Xe(je,()=>o.if(je,()=>Ue(Vt)))}t(se,"validateItemsWithCount");function Xe(je,Vt){o.forRange("i",0,be,Ut=>{s.subschema({keyword:"contains",dataProp:Ut,dataPropType:Vce.Type.Num,compositeRule:!0},je),Vt()})}t(Xe,"validateItems");function Ue(je){o.code((0,hT._)`${je}++`),F===void 0?o.if((0,hT._)`${je} >= ${A}`,()=>o.assign(de,!0).break()):(o.if((0,hT._)`${je} > ${F}`,()=>o.assign(de,!1).break()),A===1?o.assign(de,!0):o.if((0,hT._)`${je} >= ${A}`,()=>o.assign(de,!0)))}t(Ue,"checkLimits")}};fNe.default=zsr});var Hce=or(Mk=>{"use strict";Object.defineProperty(Mk,"__esModule",{value:!0});Mk.validateSchemaDeps=Mk.validatePropertyDeps=Mk.error=void 0;var _Ne=Ec(),$sr=tu(),EH=dT();Mk.error={message:t(({params:{property:s,depsCount:o,deps:f}})=>{let d=o===1?"property":"properties";return(0,_Ne.str)`must have ${d} ${f} when property ${s} is present`},"message"),params:t(({params:{property:s,depsCount:o,deps:f,missingProperty:d}})=>(0,_Ne._)`{property: ${s},
|
|
63
|
+
|| ${A} === "boolean" || ${y} === null`).assign(F,(0,hl._)`[${y}]`)}}t(W,"coerceSpecificType")}t(Trr,"coerceData");function xrr({gen:s,parentData:o,parentDataProperty:f},d){s.if((0,hl._)`${o} !== undefined`,()=>s.assign((0,hl._)`${o}[${f}]`,d))}t(xrr,"assignParentData");function d6e(s,o,f,d=aM.Correct){let y=d===aM.Correct?hl.operators.EQ:hl.operators.NEQ,x;switch(s){case"null":return(0,hl._)`${o} ${y} null`;case"array":x=(0,hl._)`Array.isArray(${o})`;break;case"object":x=(0,hl._)`${o} && typeof ${o} == "object" && !Array.isArray(${o})`;break;case"integer":x=A((0,hl._)`!(${o} % 1) && !isNaN(${o})`);break;case"number":x=A();break;default:return(0,hl._)`typeof ${o} ${y} ${s}`}return d===aM.Correct?x:(0,hl.not)(x);function A(F=hl.nil){return(0,hl.and)((0,hl._)`typeof ${o} == "number"`,F,f?(0,hl._)`isFinite(${o})`:hl.nil)}}t(d6e,"checkDataType");wy.checkDataType=d6e;function m6e(s,o,f,d){if(s.length===1)return d6e(s[0],o,f,d);let y,x=(0,xat.toHash)(s);if(x.array&&x.object){let A=(0,hl._)`typeof ${o} != "object"`;y=x.null?A:(0,hl._)`!${o} || ${A}`,delete x.null,delete x.array,delete x.object}else y=hl.nil;x.number&&delete x.integer;for(let A in x)y=(0,hl.and)(y,d6e(A,o,f,d));return y}t(m6e,"checkDataTypes");wy.checkDataTypes=m6e;var Err={message:t(({schema:s})=>`must be ${s}`,"message"),params:t(({schema:s,schemaValue:o})=>typeof s=="string"?(0,hl._)`{type: ${s}}`:(0,hl._)`{type: ${o}}`,"params")};function h6e(s){let o=Crr(s);(0,yrr.reportError)(o,Err)}t(h6e,"reportTypeError");wy.reportTypeError=h6e;function Crr(s){let{gen:o,data:f,schema:d}=s,y=(0,xat.schemaRefOrVal)(s,d,"type");return{gen:o,keyword:"type",data:f,schema:d.type,schemaCode:y,schemaValue:y,parentSchema:d,params:{},it:s}}t(Crr,"getTypeErrorContext")});var wat=or(Dce=>{"use strict";Object.defineProperty(Dce,"__esModule",{value:!0});Dce.assignDefaults=void 0;var oM=Ec(),krr=tu();function wrr(s,o){let{properties:f,items:d}=s.schema;if(o==="object"&&f)for(let y in f)kat(s,y,f[y].default);else o==="array"&&Array.isArray(d)&&d.forEach((y,x)=>kat(s,x,y.default))}t(wrr,"assignDefaults");Dce.assignDefaults=wrr;function kat(s,o,f){let{gen:d,compositeRule:y,data:x,opts:A}=s;if(f===void 0)return;let F=(0,oM._)`${x}${(0,oM.getProperty)(o)}`;if(y){(0,krr.checkStrictMode)(s,`default is ignored for: ${F}`);return}let W=(0,oM._)`${F} === undefined`;A.useDefaults==="empty"&&(W=(0,oM._)`${W} || ${F} === null || ${F} === ""`),d.if(W,(0,oM._)`${F} = ${(0,oM.stringify)(f)}`)}t(kat,"assignDefault")});var dT=or(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.validateUnion=S_.validateArray=S_.usePattern=S_.callValidateCode=S_.schemaProperties=S_.allSchemaProperties=S_.noPropertyInData=S_.propertyInData=S_.isOwnProperty=S_.hasPropFunc=S_.reportMissingProp=S_.checkMissingProp=S_.checkReportMissingProp=void 0;var Ap=Ec(),g6e=tu(),sI=pT(),Drr=tu();function Prr(s,o){let{gen:f,data:d,it:y}=s;f.if(v6e(f,d,o,y.opts.ownProperties),()=>{s.setParams({missingProperty:(0,Ap._)`${o}`},!0),s.error()})}t(Prr,"checkReportMissingProp");S_.checkReportMissingProp=Prr;function Arr({gen:s,data:o,it:{opts:f}},d,y){return(0,Ap.or)(...d.map(x=>(0,Ap.and)(v6e(s,o,x,f.ownProperties),(0,Ap._)`${y} = ${x}`)))}t(Arr,"checkMissingProp");S_.checkMissingProp=Arr;function Nrr(s,o){s.setParams({missingProperty:o},!0),s.error()}t(Nrr,"reportMissingProp");S_.reportMissingProp=Nrr;function Dat(s){return s.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ap._)`Object.prototype.hasOwnProperty`})}t(Dat,"hasPropFunc");S_.hasPropFunc=Dat;function y6e(s,o,f){return(0,Ap._)`${Dat(s)}.call(${o}, ${f})`}t(y6e,"isOwnProperty");S_.isOwnProperty=y6e;function Irr(s,o,f,d){let y=(0,Ap._)`${o}${(0,Ap.getProperty)(f)} !== undefined`;return d?(0,Ap._)`${y} && ${y6e(s,o,f)}`:y}t(Irr,"propertyInData");S_.propertyInData=Irr;function v6e(s,o,f,d){let y=(0,Ap._)`${o}${(0,Ap.getProperty)(f)} === undefined`;return d?(0,Ap.or)(y,(0,Ap.not)(y6e(s,o,f))):y}t(v6e,"noPropertyInData");S_.noPropertyInData=v6e;function Pat(s){return s?Object.keys(s).filter(o=>o!=="__proto__"):[]}t(Pat,"allSchemaProperties");S_.allSchemaProperties=Pat;function Orr(s,o){return Pat(o).filter(f=>!(0,g6e.alwaysValidSchema)(s,o[f]))}t(Orr,"schemaProperties");S_.schemaProperties=Orr;function Frr({schemaCode:s,data:o,it:{gen:f,topSchemaRef:d,schemaPath:y,errorPath:x},it:A},F,W,G){let be=G?(0,Ap._)`${s}, ${o}, ${d}${y}`:o,de=[[sI.default.instancePath,(0,Ap.strConcat)(sI.default.instancePath,x)],[sI.default.parentData,A.parentData],[sI.default.parentDataProperty,A.parentDataProperty],[sI.default.rootData,sI.default.rootData]];A.opts.dynamicRef&&de.push([sI.default.dynamicAnchors,sI.default.dynamicAnchors]);let se=(0,Ap._)`${be}, ${f.object(...de)}`;return W!==Ap.nil?(0,Ap._)`${F}.call(${W}, ${se})`:(0,Ap._)`${F}(${se})`}t(Frr,"callValidateCode");S_.callValidateCode=Frr;var Lrr=(0,Ap._)`new RegExp`;function Rrr({gen:s,it:{opts:o}},f){let d=o.unicodeRegExp?"u":"",{regExp:y}=o.code,x=y(f,d);return s.scopeValue("pattern",{key:x.toString(),ref:x,code:(0,Ap._)`${y.code==="new RegExp"?Lrr:(0,Drr.useFunc)(s,y)}(${f}, ${d})`})}t(Rrr,"usePattern");S_.usePattern=Rrr;function Mrr(s){let{gen:o,data:f,keyword:d,it:y}=s,x=o.name("valid");if(y.allErrors){let F=o.let("valid",!0);return A(()=>o.assign(F,!1)),F}return o.var(x,!0),A(()=>o.break()),x;function A(F){let W=o.const("len",(0,Ap._)`${f}.length`);o.forRange("i",0,W,G=>{s.subschema({keyword:d,dataProp:G,dataPropType:g6e.Type.Num},x),o.if((0,Ap.not)(x),F)})}t(A,"validateItems")}t(Mrr,"validateArray");S_.validateArray=Mrr;function jrr(s){let{gen:o,schema:f,keyword:d,it:y}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");if(f.some(W=>(0,g6e.alwaysValidSchema)(y,W))&&!y.opts.unevaluated)return;let A=o.let("valid",!1),F=o.name("_valid");o.block(()=>f.forEach((W,G)=>{let be=s.subschema({keyword:d,schemaProp:G,compositeRule:!0},F);o.assign(A,(0,Ap._)`${A} || ${F}`),s.mergeValidEvaluated(be,F)||o.if((0,Ap.not)(A))})),s.result(A,()=>s.reset(),()=>s.error(!0))}t(jrr,"validateUnion");S_.validateUnion=jrr});var Iat=or(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.validateKeywordUsage=Fk.validSchemaType=Fk.funcKeywordCode=Fk.macroKeywordCode=void 0;var R1=Ec(),wO=pT(),Brr=dT(),Urr=sH();function zrr(s,o){let{gen:f,keyword:d,schema:y,parentSchema:x,it:A}=s,F=o.macro.call(A.self,y,x,A),W=Nat(f,d,F);A.opts.validateSchema!==!1&&A.self.validateSchema(F,!0);let G=f.name("valid");s.subschema({schema:F,schemaPath:R1.nil,errSchemaPath:`${A.errSchemaPath}/${d}`,topSchemaRef:W,compositeRule:!0},G),s.pass(G,()=>s.error(!0))}t(zrr,"macroKeywordCode");Fk.macroKeywordCode=zrr;function $rr(s,o){var f;let{gen:d,keyword:y,schema:x,parentSchema:A,$data:F,it:W}=s;Wrr(W,o);let G=!F&&o.compile?o.compile.call(W.self,x,A,W):o.validate,be=Nat(d,y,G),de=d.let("valid");s.block$data(de,se),s.ok((f=o.valid)!==null&&f!==void 0?f:de);function se(){if(o.errors===!1)je(),o.modifying&&Aat(s),Vt(()=>s.error());else{let Ut=o.async?Xe():Ue();o.modifying&&Aat(s),Vt(()=>Jrr(s,Ut))}}t(se,"validateKeyword");function Xe(){let Ut=d.let("ruleErrs",null);return d.try(()=>je((0,R1._)`await `),Ir=>d.assign(de,!1).if((0,R1._)`${Ir} instanceof ${W.ValidationError}`,()=>d.assign(Ut,(0,R1._)`${Ir}.errors`),()=>d.throw(Ir))),Ut}t(Xe,"validateAsync");function Ue(){let Ut=(0,R1._)`${be}.errors`;return d.assign(Ut,null),je(R1.nil),Ut}t(Ue,"validateSync");function je(Ut=o.async?(0,R1._)`await `:R1.nil){let Ir=W.opts.passContext?wO.default.this:wO.default.self,wn=!("compile"in o&&!F||o.schema===!1);d.assign(de,(0,R1._)`${Ut}${(0,Brr.callValidateCode)(s,be,Ir,wn)}`,o.modifying)}t(je,"assignValid");function Vt(Ut){var Ir;d.if((0,R1.not)((Ir=o.valid)!==null&&Ir!==void 0?Ir:de),Ut)}t(Vt,"reportErrs")}t($rr,"funcKeywordCode");Fk.funcKeywordCode=$rr;function Aat(s){let{gen:o,data:f,it:d}=s;o.if(d.parentData,()=>o.assign(f,(0,R1._)`${d.parentData}[${d.parentDataProperty}]`))}t(Aat,"modifyData");function Jrr(s,o){let{gen:f}=s;f.if((0,R1._)`Array.isArray(${o})`,()=>{f.assign(wO.default.vErrors,(0,R1._)`${wO.default.vErrors} === null ? ${o} : ${wO.default.vErrors}.concat(${o})`).assign(wO.default.errors,(0,R1._)`${wO.default.vErrors}.length`),(0,Urr.extendErrors)(s)},()=>s.error())}t(Jrr,"addErrs");function Wrr({schemaEnv:s},o){if(o.async&&!s.$async)throw new Error("async keyword in sync schema")}t(Wrr,"checkAsyncKeyword");function Nat(s,o,f){if(f===void 0)throw new Error(`keyword "${o}" failed to compile`);return s.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,R1.stringify)(f)})}t(Nat,"useKeyword");function qrr(s,o,f=!1){return!o.length||o.some(d=>d==="array"?Array.isArray(s):d==="object"?s&&typeof s=="object"&&!Array.isArray(s):typeof s==d||f&&typeof s>"u")}t(qrr,"validSchemaType");Fk.validSchemaType=qrr;function Vrr({schema:s,opts:o,self:f,errSchemaPath:d},y,x){if(Array.isArray(y.keyword)?!y.keyword.includes(x):y.keyword!==x)throw new Error("ajv implementation error");let A=y.dependencies;if(A?.some(F=>!Object.prototype.hasOwnProperty.call(s,F)))throw new Error(`parent schema must have dependencies of ${x}: ${A.join(",")}`);if(y.validateSchema&&!y.validateSchema(s[x])){let W=`keyword "${x}" value is invalid at path "${d}": `+f.errorsText(y.validateSchema.errors);if(o.validateSchema==="log")f.logger.error(W);else throw new Error(W)}}t(Vrr,"validateKeywordUsage");Fk.validateKeywordUsage=Vrr});var Fat=or(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.extendSubschemaMode=aI.extendSubschemaData=aI.getSubschema=void 0;var Lk=Ec(),Oat=tu();function Hrr(s,{keyword:o,schemaProp:f,schema:d,schemaPath:y,errSchemaPath:x,topSchemaRef:A}){if(o!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){let F=s.schema[o];return f===void 0?{schema:F,schemaPath:(0,Lk._)`${s.schemaPath}${(0,Lk.getProperty)(o)}`,errSchemaPath:`${s.errSchemaPath}/${o}`}:{schema:F[f],schemaPath:(0,Lk._)`${s.schemaPath}${(0,Lk.getProperty)(o)}${(0,Lk.getProperty)(f)}`,errSchemaPath:`${s.errSchemaPath}/${o}/${(0,Oat.escapeFragment)(f)}`}}if(d!==void 0){if(y===void 0||x===void 0||A===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:y,topSchemaRef:A,errSchemaPath:x}}throw new Error('either "keyword" or "schema" must be passed')}t(Hrr,"getSubschema");aI.getSubschema=Hrr;function Grr(s,o,{dataProp:f,dataPropType:d,data:y,dataTypes:x,propertyName:A}){if(y!==void 0&&f!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:F}=o;if(f!==void 0){let{errorPath:G,dataPathArr:be,opts:de}=o,se=F.let("data",(0,Lk._)`${o.data}${(0,Lk.getProperty)(f)}`,!0);W(se),s.errorPath=(0,Lk.str)`${G}${(0,Oat.getErrorPath)(f,d,de.jsPropertySyntax)}`,s.parentDataProperty=(0,Lk._)`${f}`,s.dataPathArr=[...be,s.parentDataProperty]}if(y!==void 0){let G=y instanceof Lk.Name?y:F.let("data",y,!0);W(G),A!==void 0&&(s.propertyName=A)}x&&(s.dataTypes=x);function W(G){s.data=G,s.dataLevel=o.dataLevel+1,s.dataTypes=[],o.definedProperties=new Set,s.parentData=o.data,s.dataNames=[...o.dataNames,G]}t(W,"dataContextProps")}t(Grr,"extendSubschemaData");aI.extendSubschemaData=Grr;function Yrr(s,{jtdDiscriminator:o,jtdMetadata:f,compositeRule:d,createErrors:y,allErrors:x}){d!==void 0&&(s.compositeRule=d),y!==void 0&&(s.createErrors=y),x!==void 0&&(s.allErrors=x),s.jtdDiscriminator=o,s.jtdMetadata=f}t(Yrr,"extendSubschemaMode");aI.extendSubschemaMode=Yrr});var b6e=or((XDr,Lat)=>{"use strict";Lat.exports=t(function s(o,f){if(o===f)return!0;if(o&&f&&typeof o=="object"&&typeof f=="object"){if(o.constructor!==f.constructor)return!1;var d,y,x;if(Array.isArray(o)){if(d=o.length,d!=f.length)return!1;for(y=d;y--!==0;)if(!s(o[y],f[y]))return!1;return!0}if(o.constructor===RegExp)return o.source===f.source&&o.flags===f.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===f.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===f.toString();if(x=Object.keys(o),d=x.length,d!==Object.keys(f).length)return!1;for(y=d;y--!==0;)if(!Object.prototype.hasOwnProperty.call(f,x[y]))return!1;for(y=d;y--!==0;){var A=x[y];if(!s(o[A],f[A]))return!1}return!0}return o!==o&&f!==f},"equal")});var Mat=or((QDr,Rat)=>{"use strict";var oI=Rat.exports=function(s,o,f){typeof o=="function"&&(f=o,o={}),f=o.cb||f;var d=typeof f=="function"?f:f.pre||function(){},y=f.post||function(){};Pce(o,d,y,s,"",s)};oI.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};oI.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};oI.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};oI.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Pce(s,o,f,d,y,x,A,F,W,G){if(d&&typeof d=="object"&&!Array.isArray(d)){o(d,y,x,A,F,W,G);for(var be in d){var de=d[be];if(Array.isArray(de)){if(be in oI.arrayKeywords)for(var se=0;se<de.length;se++)Pce(s,o,f,de[se],y+"/"+be+"/"+se,x,y,be,d,se)}else if(be in oI.propsKeywords){if(de&&typeof de=="object")for(var Xe in de)Pce(s,o,f,de[Xe],y+"/"+be+"/"+Krr(Xe),x,y,be,d,Xe)}else(be in oI.keywords||s.allKeys&&!(be in oI.skipKeywords))&&Pce(s,o,f,de,y+"/"+be,x,y,be,d)}f(d,y,x,A,F,W,G)}}t(Pce,"_traverse");function Krr(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")}t(Krr,"escapeJsonPtr")});var oH=or(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});Xv.getSchemaRefs=Xv.resolveUrl=Xv.normalizeId=Xv._getFullPath=Xv.getFullPath=Xv.inlineRef=void 0;var Xrr=tu(),Zrr=b6e(),Qrr=Mat(),enr=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function tnr(s,o=!0){return typeof s=="boolean"?!0:o===!0?!S6e(s):o?jat(s)<=o:!1}t(tnr,"inlineRef");Xv.inlineRef=tnr;var rnr=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function S6e(s){for(let o in s){if(rnr.has(o))return!0;let f=s[o];if(Array.isArray(f)&&f.some(S6e)||typeof f=="object"&&S6e(f))return!0}return!1}t(S6e,"hasRef");function jat(s){let o=0;for(let f in s){if(f==="$ref")return 1/0;if(o++,!enr.has(f)&&(typeof s[f]=="object"&&(0,Xrr.eachItem)(s[f],d=>o+=jat(d)),o===1/0))return 1/0}return o}t(jat,"countKeys");function Bat(s,o="",f){f!==!1&&(o=cM(o));let d=s.parse(o);return Uat(s,d)}t(Bat,"getFullPath");Xv.getFullPath=Bat;function Uat(s,o){return s.serialize(o).split("#")[0]+"#"}t(Uat,"_getFullPath");Xv._getFullPath=Uat;var nnr=/#\/?$/;function cM(s){return s?s.replace(nnr,""):""}t(cM,"normalizeId");Xv.normalizeId=cM;function inr(s,o,f){return f=cM(f),s.resolve(o,f)}t(inr,"resolveUrl");Xv.resolveUrl=inr;var snr=/^[a-z_][-a-z0-9._]*$/i;function anr(s,o){if(typeof s=="boolean")return{};let{schemaId:f,uriResolver:d}=this.opts,y=cM(s[f]||o),x={"":y},A=Bat(d,y,!1),F={},W=new Set;return Qrr(s,{allKeys:!0},(de,se,Xe,Ue)=>{if(Ue===void 0)return;let je=A+se,Vt=x[Ue];typeof de[f]=="string"&&(Vt=Ut.call(this,de[f])),Ir.call(this,de.$anchor),Ir.call(this,de.$dynamicAnchor),x[se]=Vt;function Ut(wn){let sn=this.opts.uriResolver.resolve;if(wn=cM(Vt?sn(Vt,wn):wn),W.has(wn))throw be(wn);W.add(wn);let Jn=this.refs[wn];return typeof Jn=="string"&&(Jn=this.refs[Jn]),typeof Jn=="object"?G(de,Jn.schema,wn):wn!==cM(je)&&(wn[0]==="#"?(G(de,F[wn],wn),F[wn]=de):this.refs[wn]=je),wn}t(Ut,"addRef");function Ir(wn){if(typeof wn=="string"){if(!snr.test(wn))throw new Error(`invalid anchor "${wn}"`);Ut.call(this,`#${wn}`)}}t(Ir,"addAnchor")}),F;function G(de,se,Xe){if(se!==void 0&&!Zrr(de,se))throw be(Xe)}t(G,"checkAmbiguosRef");function be(de){return new Error(`reference "${de}" resolves to more than one schema`)}t(be,"ambiguos")}t(anr,"getSchemaRefs");Xv.getSchemaRefs=anr});var lM=or(cI=>{"use strict";Object.defineProperty(cI,"__esModule",{value:!0});cI.getData=cI.KeywordCxt=cI.validateFunctionCode=void 0;var qat=bat(),zat=aH(),x6e=p6e(),Ace=aH(),onr=wat(),lH=Iat(),T6e=Fat(),Eo=Ec(),Nc=pT(),cnr=oH(),KP=tu(),cH=sH();function lnr(s){if(Gat(s)&&(Yat(s),Hat(s))){_nr(s);return}Vat(s,()=>(0,qat.topBoolOrEmptySchema)(s))}t(lnr,"validateFunctionCode");cI.validateFunctionCode=lnr;function Vat({gen:s,validateName:o,schema:f,schemaEnv:d,opts:y},x){y.code.es5?s.func(o,(0,Eo._)`${Nc.default.data}, ${Nc.default.valCxt}`,d.$async,()=>{s.code((0,Eo._)`"use strict"; ${$at(f,y)}`),fnr(s,y),s.code(x)}):s.func(o,(0,Eo._)`${Nc.default.data}, ${unr(y)}`,d.$async,()=>s.code($at(f,y)).code(x))}t(Vat,"validateFunction");function unr(s){return(0,Eo._)`{${Nc.default.instancePath}="", ${Nc.default.parentData}, ${Nc.default.parentDataProperty}, ${Nc.default.rootData}=${Nc.default.data}${s.dynamicRef?(0,Eo._)`, ${Nc.default.dynamicAnchors}={}`:Eo.nil}}={}`}t(unr,"destructureValCxt");function fnr(s,o){s.if(Nc.default.valCxt,()=>{s.var(Nc.default.instancePath,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.instancePath}`),s.var(Nc.default.parentData,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.parentData}`),s.var(Nc.default.parentDataProperty,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.parentDataProperty}`),s.var(Nc.default.rootData,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.rootData}`),o.dynamicRef&&s.var(Nc.default.dynamicAnchors,(0,Eo._)`${Nc.default.valCxt}.${Nc.default.dynamicAnchors}`)},()=>{s.var(Nc.default.instancePath,(0,Eo._)`""`),s.var(Nc.default.parentData,(0,Eo._)`undefined`),s.var(Nc.default.parentDataProperty,(0,Eo._)`undefined`),s.var(Nc.default.rootData,Nc.default.data),o.dynamicRef&&s.var(Nc.default.dynamicAnchors,(0,Eo._)`{}`)})}t(fnr,"destructureValCxtES5");function _nr(s){let{schema:o,opts:f,gen:d}=s;Vat(s,()=>{f.$comment&&o.$comment&&Xat(s),gnr(s),d.let(Nc.default.vErrors,null),d.let(Nc.default.errors,0),f.unevaluated&&pnr(s),Kat(s),bnr(s)})}t(_nr,"topSchemaObjCode");function pnr(s){let{gen:o,validateName:f}=s;s.evaluated=o.const("evaluated",(0,Eo._)`${f}.evaluated`),o.if((0,Eo._)`${s.evaluated}.dynamicProps`,()=>o.assign((0,Eo._)`${s.evaluated}.props`,(0,Eo._)`undefined`)),o.if((0,Eo._)`${s.evaluated}.dynamicItems`,()=>o.assign((0,Eo._)`${s.evaluated}.items`,(0,Eo._)`undefined`))}t(pnr,"resetEvaluated");function $at(s,o){let f=typeof s=="object"&&s[o.schemaId];return f&&(o.code.source||o.code.process)?(0,Eo._)`/*# sourceURL=${f} */`:Eo.nil}t($at,"funcSourceUrl");function dnr(s,o){if(Gat(s)&&(Yat(s),Hat(s))){mnr(s,o);return}(0,qat.boolOrEmptySchema)(s,o)}t(dnr,"subschemaCode");function Hat({schema:s,self:o}){if(typeof s=="boolean")return!s;for(let f in s)if(o.RULES.all[f])return!0;return!1}t(Hat,"schemaCxtHasRules");function Gat(s){return typeof s.schema!="boolean"}t(Gat,"isSchemaObj");function mnr(s,o){let{schema:f,gen:d,opts:y}=s;y.$comment&&f.$comment&&Xat(s),ynr(s),vnr(s);let x=d.const("_errs",Nc.default.errors);Kat(s,x),d.var(o,(0,Eo._)`${x} === ${Nc.default.errors}`)}t(mnr,"subSchemaObjCode");function Yat(s){(0,KP.checkUnknownRules)(s),hnr(s)}t(Yat,"checkKeywords");function Kat(s,o){if(s.opts.jtd)return Jat(s,[],!1,o);let f=(0,zat.getSchemaTypes)(s.schema),d=(0,zat.coerceAndCheckDataType)(s,f);Jat(s,f,!d,o)}t(Kat,"typeAndKeywords");function hnr(s){let{schema:o,errSchemaPath:f,opts:d,self:y}=s;o.$ref&&d.ignoreKeywordsWithRef&&(0,KP.schemaHasRulesButRef)(o,y.RULES)&&y.logger.warn(`$ref: keywords ignored in schema at path "${f}"`)}t(hnr,"checkRefsAndKeywords");function gnr(s){let{schema:o,opts:f}=s;o.default!==void 0&&f.useDefaults&&f.strictSchema&&(0,KP.checkStrictMode)(s,"default is ignored in the schema root")}t(gnr,"checkNoDefault");function ynr(s){let o=s.schema[s.opts.schemaId];o&&(s.baseId=(0,cnr.resolveUrl)(s.opts.uriResolver,s.baseId,o))}t(ynr,"updateContext");function vnr(s){if(s.schema.$async&&!s.schemaEnv.$async)throw new Error("async schema in sync schema")}t(vnr,"checkAsyncSchema");function Xat({gen:s,schemaEnv:o,schema:f,errSchemaPath:d,opts:y}){let x=f.$comment;if(y.$comment===!0)s.code((0,Eo._)`${Nc.default.self}.logger.log(${x})`);else if(typeof y.$comment=="function"){let A=(0,Eo.str)`${d}/$comment`,F=s.scopeValue("root",{ref:o.root});s.code((0,Eo._)`${Nc.default.self}.opts.$comment(${x}, ${A}, ${F}.schema)`)}}t(Xat,"commentKeyword");function bnr(s){let{gen:o,schemaEnv:f,validateName:d,ValidationError:y,opts:x}=s;f.$async?o.if((0,Eo._)`${Nc.default.errors} === 0`,()=>o.return(Nc.default.data),()=>o.throw((0,Eo._)`new ${y}(${Nc.default.vErrors})`)):(o.assign((0,Eo._)`${d}.errors`,Nc.default.vErrors),x.unevaluated&&Snr(s),o.return((0,Eo._)`${Nc.default.errors} === 0`))}t(bnr,"returnResults");function Snr({gen:s,evaluated:o,props:f,items:d}){f instanceof Eo.Name&&s.assign((0,Eo._)`${o}.props`,f),d instanceof Eo.Name&&s.assign((0,Eo._)`${o}.items`,d)}t(Snr,"assignEvaluated");function Jat(s,o,f,d){let{gen:y,schema:x,data:A,allErrors:F,opts:W,self:G}=s,{RULES:be}=G;if(x.$ref&&(W.ignoreKeywordsWithRef||!(0,KP.schemaHasRulesButRef)(x,be))){y.block(()=>Qat(s,"$ref",be.all.$ref.definition));return}W.jtd||Tnr(s,o),y.block(()=>{for(let se of be.rules)de(se);de(be.post)});function de(se){(0,x6e.shouldUseGroup)(x,se)&&(se.type?(y.if((0,Ace.checkDataType)(se.type,A,W.strictNumbers)),Wat(s,se),o.length===1&&o[0]===se.type&&f&&(y.else(),(0,Ace.reportTypeError)(s)),y.endIf()):Wat(s,se),F||y.if((0,Eo._)`${Nc.default.errors} === ${d||0}`))}t(de,"groupKeywords")}t(Jat,"schemaKeywords");function Wat(s,o){let{gen:f,schema:d,opts:{useDefaults:y}}=s;y&&(0,onr.assignDefaults)(s,o.type),f.block(()=>{for(let x of o.rules)(0,x6e.shouldUseRule)(d,x)&&Qat(s,x.keyword,x.definition,o.type)})}t(Wat,"iterateKeywords");function Tnr(s,o){s.schemaEnv.meta||!s.opts.strictTypes||(xnr(s,o),s.opts.allowUnionTypes||Enr(s,o),Cnr(s,s.dataTypes))}t(Tnr,"checkStrictTypes");function xnr(s,o){if(o.length){if(!s.dataTypes.length){s.dataTypes=o;return}o.forEach(f=>{Zat(s.dataTypes,f)||E6e(s,`type "${f}" not allowed by context "${s.dataTypes.join(",")}"`)}),wnr(s,o)}}t(xnr,"checkContextTypes");function Enr(s,o){o.length>1&&!(o.length===2&&o.includes("null"))&&E6e(s,"use allowUnionTypes to allow union type keyword")}t(Enr,"checkMultipleTypes");function Cnr(s,o){let f=s.self.RULES.all;for(let d in f){let y=f[d];if(typeof y=="object"&&(0,x6e.shouldUseRule)(s.schema,y)){let{type:x}=y.definition;x.length&&!x.some(A=>knr(o,A))&&E6e(s,`missing type "${x.join(",")}" for keyword "${d}"`)}}}t(Cnr,"checkKeywordTypes");function knr(s,o){return s.includes(o)||o==="number"&&s.includes("integer")}t(knr,"hasApplicableType");function Zat(s,o){return s.includes(o)||o==="integer"&&s.includes("number")}t(Zat,"includesType");function wnr(s,o){let f=[];for(let d of s.dataTypes)Zat(o,d)?f.push(d):o.includes("integer")&&d==="number"&&f.push("integer");s.dataTypes=f}t(wnr,"narrowSchemaTypes");function E6e(s,o){let f=s.schemaEnv.baseId+s.errSchemaPath;o+=` at "${f}" (strictTypes)`,(0,KP.checkStrictMode)(s,o,s.opts.strictTypes)}t(E6e,"strictTypesError");var Nce=class{static{t(this,"KeywordCxt")}constructor(o,f,d){if((0,lH.validateKeywordUsage)(o,f,d),this.gen=o.gen,this.allErrors=o.allErrors,this.keyword=d,this.data=o.data,this.schema=o.schema[d],this.$data=f.$data&&o.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,KP.schemaRefOrVal)(o,this.schema,d,this.$data),this.schemaType=f.schemaType,this.parentSchema=o.schema,this.params={},this.it=o,this.def=f,this.$data)this.schemaCode=o.gen.const("vSchema",eot(this.$data,o));else if(this.schemaCode=this.schemaValue,!(0,lH.validSchemaType)(this.schema,f.schemaType,f.allowUndefined))throw new Error(`${d} value must be ${JSON.stringify(f.schemaType)}`);("code"in f?f.trackErrors:f.errors!==!1)&&(this.errsCount=o.gen.const("_errs",Nc.default.errors))}result(o,f,d){this.failResult((0,Eo.not)(o),f,d)}failResult(o,f,d){this.gen.if(o),d?d():this.error(),f?(this.gen.else(),f(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(o,f){this.failResult((0,Eo.not)(o),void 0,f)}fail(o){if(o===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(o),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(o){if(!this.$data)return this.fail(o);let{schemaCode:f}=this;this.fail((0,Eo._)`${f} !== undefined && (${(0,Eo.or)(this.invalid$data(),o)})`)}error(o,f,d){if(f){this.setParams(f),this._error(o,d),this.setParams({});return}this._error(o,d)}_error(o,f){(o?cH.reportExtraError:cH.reportError)(this,this.def.error,f)}$dataError(){(0,cH.reportError)(this,this.def.$dataError||cH.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,cH.resetErrorsCount)(this.gen,this.errsCount)}ok(o){this.allErrors||this.gen.if(o)}setParams(o,f){f?Object.assign(this.params,o):this.params=o}block$data(o,f,d=Eo.nil){this.gen.block(()=>{this.check$data(o,d),f()})}check$data(o=Eo.nil,f=Eo.nil){if(!this.$data)return;let{gen:d,schemaCode:y,schemaType:x,def:A}=this;d.if((0,Eo.or)((0,Eo._)`${y} === undefined`,f)),o!==Eo.nil&&d.assign(o,!0),(x.length||A.validateSchema)&&(d.elseIf(this.invalid$data()),this.$dataError(),o!==Eo.nil&&d.assign(o,!1)),d.else()}invalid$data(){let{gen:o,schemaCode:f,schemaType:d,def:y,it:x}=this;return(0,Eo.or)(A(),F());function A(){if(d.length){if(!(f instanceof Eo.Name))throw new Error("ajv implementation error");let W=Array.isArray(d)?d:[d];return(0,Eo._)`${(0,Ace.checkDataTypes)(W,f,x.opts.strictNumbers,Ace.DataType.Wrong)}`}return Eo.nil}function F(){if(y.validateSchema){let W=o.scopeValue("validate$data",{ref:y.validateSchema});return(0,Eo._)`!${W}(${f})`}return Eo.nil}}subschema(o,f){let d=(0,T6e.getSubschema)(this.it,o);(0,T6e.extendSubschemaData)(d,this.it,o),(0,T6e.extendSubschemaMode)(d,o);let y={...this.it,...d,items:void 0,props:void 0};return dnr(y,f),y}mergeEvaluated(o,f){let{it:d,gen:y}=this;d.opts.unevaluated&&(d.props!==!0&&o.props!==void 0&&(d.props=KP.mergeEvaluated.props(y,o.props,d.props,f)),d.items!==!0&&o.items!==void 0&&(d.items=KP.mergeEvaluated.items(y,o.items,d.items,f)))}mergeValidEvaluated(o,f){let{it:d,gen:y}=this;if(d.opts.unevaluated&&(d.props!==!0||d.items!==!0))return y.if(f,()=>this.mergeEvaluated(o,Eo.Name)),!0}};cI.KeywordCxt=Nce;function Qat(s,o,f,d){let y=new Nce(s,f,o);"code"in f?f.code(y,d):y.$data&&f.validate?(0,lH.funcKeywordCode)(y,f):"macro"in f?(0,lH.macroKeywordCode)(y,f):(f.compile||f.validate)&&(0,lH.funcKeywordCode)(y,f)}t(Qat,"keywordCode");var Dnr=/^\/(?:[^~]|~0|~1)*$/,Pnr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function eot(s,{dataLevel:o,dataNames:f,dataPathArr:d}){let y,x;if(s==="")return Nc.default.rootData;if(s[0]==="/"){if(!Dnr.test(s))throw new Error(`Invalid JSON-pointer: ${s}`);y=s,x=Nc.default.rootData}else{let G=Pnr.exec(s);if(!G)throw new Error(`Invalid JSON-pointer: ${s}`);let be=+G[1];if(y=G[2],y==="#"){if(be>=o)throw new Error(W("property/index",be));return d[o-be]}if(be>o)throw new Error(W("data",be));if(x=f[o-be],!y)return x}let A=x,F=y.split("/");for(let G of F)G&&(x=(0,Eo._)`${x}${(0,Eo.getProperty)((0,KP.unescapeJsonPointer)(G))}`,A=(0,Eo._)`${A} && ${x}`);return A;function W(G,be){return`Cannot access ${G} ${be} levels up, current level is ${o}`}}t(eot,"getData");cI.getData=eot});var uH=or(k6e=>{"use strict";Object.defineProperty(k6e,"__esModule",{value:!0});var C6e=class extends Error{static{t(this,"ValidationError")}constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}};k6e.default=C6e});var uM=or(P6e=>{"use strict";Object.defineProperty(P6e,"__esModule",{value:!0});var w6e=oH(),D6e=class extends Error{static{t(this,"MissingRefError")}constructor(o,f,d,y){super(y||`can't resolve reference ${d} from id ${f}`),this.missingRef=(0,w6e.resolveUrl)(o,f,d),this.missingSchema=(0,w6e.normalizeId)((0,w6e.getFullPath)(o,this.missingRef))}};P6e.default=D6e});var fH=or(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.resolveSchema=mT.getCompilingSchema=mT.resolveRef=mT.compileSchema=mT.SchemaEnv=void 0;var SE=Ec(),Anr=uH(),DO=pT(),TE=oH(),tot=tu(),Nnr=lM(),fM=class{static{t(this,"SchemaEnv")}constructor(o){var f;this.refs={},this.dynamicAnchors={};let d;typeof o.schema=="object"&&(d=o.schema),this.schema=o.schema,this.schemaId=o.schemaId,this.root=o.root||this,this.baseId=(f=o.baseId)!==null&&f!==void 0?f:(0,TE.normalizeId)(d?.[o.schemaId||"$id"]),this.schemaPath=o.schemaPath,this.localRefs=o.localRefs,this.meta=o.meta,this.$async=d?.$async,this.refs={}}};mT.SchemaEnv=fM;function N6e(s){let o=rot.call(this,s);if(o)return o;let f=(0,TE.getFullPath)(this.opts.uriResolver,s.root.baseId),{es5:d,lines:y}=this.opts.code,{ownProperties:x}=this.opts,A=new SE.CodeGen(this.scope,{es5:d,lines:y,ownProperties:x}),F;s.$async&&(F=A.scopeValue("Error",{ref:Anr.default,code:(0,SE._)`require("ajv/dist/runtime/validation_error").default`}));let W=A.scopeName("validate");s.validateName=W;let G={gen:A,allErrors:this.opts.allErrors,data:DO.default.data,parentData:DO.default.parentData,parentDataProperty:DO.default.parentDataProperty,dataNames:[DO.default.data],dataPathArr:[SE.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:A.scopeValue("schema",this.opts.code.source===!0?{ref:s.schema,code:(0,SE.stringify)(s.schema)}:{ref:s.schema}),validateName:W,ValidationError:F,schema:s.schema,schemaEnv:s,rootId:f,baseId:s.baseId||f,schemaPath:SE.nil,errSchemaPath:s.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,SE._)`""`,opts:this.opts,self:this},be;try{this._compilations.add(s),(0,Nnr.validateFunctionCode)(G),A.optimize(this.opts.code.optimize);let de=A.toString();be=`${A.scopeRefs(DO.default.scope)}return ${de}`,this.opts.code.process&&(be=this.opts.code.process(be,s));let Xe=new Function(`${DO.default.self}`,`${DO.default.scope}`,be)(this,this.scope.get());if(this.scope.value(W,{ref:Xe}),Xe.errors=null,Xe.schema=s.schema,Xe.schemaEnv=s,s.$async&&(Xe.$async=!0),this.opts.code.source===!0&&(Xe.source={validateName:W,validateCode:de,scopeValues:A._values}),this.opts.unevaluated){let{props:Ue,items:je}=G;Xe.evaluated={props:Ue instanceof SE.Name?void 0:Ue,items:je instanceof SE.Name?void 0:je,dynamicProps:Ue instanceof SE.Name,dynamicItems:je instanceof SE.Name},Xe.source&&(Xe.source.evaluated=(0,SE.stringify)(Xe.evaluated))}return s.validate=Xe,s}catch(de){throw delete s.validate,delete s.validateName,be&&this.logger.error("Error compiling schema, function code:",be),de}finally{this._compilations.delete(s)}}t(N6e,"compileSchema");mT.compileSchema=N6e;function Inr(s,o,f){var d;f=(0,TE.resolveUrl)(this.opts.uriResolver,o,f);let y=s.refs[f];if(y)return y;let x=Lnr.call(this,s,f);if(x===void 0){let A=(d=s.localRefs)===null||d===void 0?void 0:d[f],{schemaId:F}=this.opts;A&&(x=new fM({schema:A,schemaId:F,root:s,baseId:o}))}if(x!==void 0)return s.refs[f]=Onr.call(this,x)}t(Inr,"resolveRef");mT.resolveRef=Inr;function Onr(s){return(0,TE.inlineRef)(s.schema,this.opts.inlineRefs)?s.schema:s.validate?s:N6e.call(this,s)}t(Onr,"inlineOrCompile");function rot(s){for(let o of this._compilations)if(Fnr(o,s))return o}t(rot,"getCompilingSchema");mT.getCompilingSchema=rot;function Fnr(s,o){return s.schema===o.schema&&s.root===o.root&&s.baseId===o.baseId}t(Fnr,"sameSchemaEnv");function Lnr(s,o){let f;for(;typeof(f=this.refs[o])=="string";)o=f;return f||this.schemas[o]||Ice.call(this,s,o)}t(Lnr,"resolve");function Ice(s,o){let f=this.opts.uriResolver.parse(o),d=(0,TE._getFullPath)(this.opts.uriResolver,f),y=(0,TE.getFullPath)(this.opts.uriResolver,s.baseId,void 0);if(Object.keys(s.schema).length>0&&d===y)return A6e.call(this,f,s);let x=(0,TE.normalizeId)(d),A=this.refs[x]||this.schemas[x];if(typeof A=="string"){let F=Ice.call(this,s,A);return typeof F?.schema!="object"?void 0:A6e.call(this,f,F)}if(typeof A?.schema=="object"){if(A.validate||N6e.call(this,A),x===(0,TE.normalizeId)(o)){let{schema:F}=A,{schemaId:W}=this.opts,G=F[W];return G&&(y=(0,TE.resolveUrl)(this.opts.uriResolver,y,G)),new fM({schema:F,schemaId:W,root:s,baseId:y})}return A6e.call(this,f,A)}}t(Ice,"resolveSchema");mT.resolveSchema=Ice;var Rnr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function A6e(s,{baseId:o,schema:f,root:d}){var y;if(((y=s.fragment)===null||y===void 0?void 0:y[0])!=="/")return;for(let F of s.fragment.slice(1).split("/")){if(typeof f=="boolean")return;let W=f[(0,tot.unescapeFragment)(F)];if(W===void 0)return;f=W;let G=typeof f=="object"&&f[this.opts.schemaId];!Rnr.has(F)&&G&&(o=(0,TE.resolveUrl)(this.opts.uriResolver,o,G))}let x;if(typeof f!="boolean"&&f.$ref&&!(0,tot.schemaHasRulesButRef)(f,this.RULES)){let F=(0,TE.resolveUrl)(this.opts.uriResolver,o,f.$ref);x=Ice.call(this,d,F)}let{schemaId:A}=this.opts;if(x=x||new fM({schema:f,schemaId:A,root:d,baseId:o}),x.schema!==x.root.schema)return x}t(A6e,"getJsonPointer")});var not=or((fPr,Mnr)=>{Mnr.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var O6e=or((_Pr,oot)=>{"use strict";var jnr=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),sot=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function I6e(s){let o="",f=0,d=0;for(d=0;d<s.length;d++)if(f=s[d].charCodeAt(0),f!==48){if(!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";o+=s[d];break}for(d+=1;d<s.length;d++){if(f=s[d].charCodeAt(0),!(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102))return"";o+=s[d]}return o}t(I6e,"stringArrayToHexStripped");var Bnr=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function iot(s){return s.length=0,!0}t(iot,"consumeIsZone");function Unr(s,o,f){if(s.length){let d=I6e(s);if(d!=="")o.push(d);else return f.error=!0,!1;s.length=0}return!0}t(Unr,"consumeHextets");function znr(s){let o=0,f={error:!1,address:"",zone:""},d=[],y=[],x=!1,A=!1,F=Unr;for(let W=0;W<s.length;W++){let G=s[W];if(!(G==="["||G==="]"))if(G===":"){if(x===!0&&(A=!0),!F(y,d,f))break;if(++o>7){f.error=!0;break}W>0&&s[W-1]===":"&&(x=!0),d.push(":");continue}else if(G==="%"){if(!F(y,d,f))break;F=iot}else{y.push(G);continue}}return y.length&&(F===iot?f.zone=y.join(""):A?d.push(y.join("")):d.push(I6e(y))),f.address=d.join(""),f}t(znr,"getIPV6");function aot(s){if($nr(s,":")<2)return{host:s,isIPV6:!1};let o=znr(s);if(o.error)return{host:s,isIPV6:!1};{let f=o.address,d=o.address;return o.zone&&(f+="%"+o.zone,d+="%25"+o.zone),{host:f,isIPV6:!0,escapedHost:d}}}t(aot,"normalizeIPv6");function $nr(s,o){let f=0;for(let d=0;d<s.length;d++)s[d]===o&&f++;return f}t($nr,"findToken");function Jnr(s){let o=s,f=[],d=-1,y=0;for(;y=o.length;){if(y===1){if(o===".")break;if(o==="/"){f.push("/");break}else{f.push(o);break}}else if(y===2){if(o[0]==="."){if(o[1]===".")break;if(o[1]==="/"){o=o.slice(2);continue}}else if(o[0]==="/"&&(o[1]==="."||o[1]==="/")){f.push("/");break}}else if(y===3&&o==="/.."){f.length!==0&&f.pop(),f.push("/");break}if(o[0]==="."){if(o[1]==="."){if(o[2]==="/"){o=o.slice(3);continue}}else if(o[1]==="/"){o=o.slice(2);continue}}else if(o[0]==="/"&&o[1]==="."){if(o[2]==="/"){o=o.slice(2);continue}else if(o[2]==="."&&o[3]==="/"){o=o.slice(3),f.length!==0&&f.pop();continue}}if((d=o.indexOf("/",1))===-1){f.push(o);break}else f.push(o.slice(0,d)),o=o.slice(d)}return f.join("")}t(Jnr,"removeDotSegments");function Wnr(s,o){let f=o!==!0?escape:unescape;return s.scheme!==void 0&&(s.scheme=f(s.scheme)),s.userinfo!==void 0&&(s.userinfo=f(s.userinfo)),s.host!==void 0&&(s.host=f(s.host)),s.path!==void 0&&(s.path=f(s.path)),s.query!==void 0&&(s.query=f(s.query)),s.fragment!==void 0&&(s.fragment=f(s.fragment)),s}t(Wnr,"normalizeComponentEncoding");function qnr(s){let o=[];if(s.userinfo!==void 0&&(o.push(s.userinfo),o.push("@")),s.host!==void 0){let f=unescape(s.host);if(!sot(f)){let d=aot(f);d.isIPV6===!0?f=`[${d.escapedHost}]`:f=s.host}o.push(f)}return(typeof s.port=="number"||typeof s.port=="string")&&(o.push(":"),o.push(String(s.port))),o.length?o.join(""):void 0}t(qnr,"recomposeAuthority");oot.exports={nonSimpleDomain:Bnr,recomposeAuthority:qnr,normalizeComponentEncoding:Wnr,removeDotSegments:Jnr,isIPv4:sot,isUUID:jnr,normalizeIPv6:aot,stringArrayToHexStripped:I6e}});var _ot=or((dPr,fot)=>{"use strict";var{isUUID:Vnr}=O6e(),Hnr=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,Gnr=["http","https","ws","wss","urn","urn:uuid"];function Ynr(s){return Gnr.indexOf(s)!==-1}t(Ynr,"isValidSchemeName");function F6e(s){return s.secure===!0?!0:s.secure===!1?!1:s.scheme?s.scheme.length===3&&(s.scheme[0]==="w"||s.scheme[0]==="W")&&(s.scheme[1]==="s"||s.scheme[1]==="S")&&(s.scheme[2]==="s"||s.scheme[2]==="S"):!1}t(F6e,"wsIsSecure");function cot(s){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s}t(cot,"httpParse");function lot(s){let o=String(s.scheme).toLowerCase()==="https";return(s.port===(o?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}t(lot,"httpSerialize");function Knr(s){return s.secure=F6e(s),s.resourceName=(s.path||"/")+(s.query?"?"+s.query:""),s.path=void 0,s.query=void 0,s}t(Knr,"wsParse");function Xnr(s){if((s.port===(F6e(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){let[o,f]=s.resourceName.split("?");s.path=o&&o!=="/"?o:void 0,s.query=f,s.resourceName=void 0}return s.fragment=void 0,s}t(Xnr,"wsSerialize");function Znr(s,o){if(!s.path)return s.error="URN can not be parsed",s;let f=s.path.match(Hnr);if(f){let d=o.scheme||s.scheme||"urn";s.nid=f[1].toLowerCase(),s.nss=f[2];let y=`${d}:${o.nid||s.nid}`,x=L6e(y);s.path=void 0,x&&(s=x.parse(s,o))}else s.error=s.error||"URN can not be parsed.";return s}t(Znr,"urnParse");function Qnr(s,o){if(s.nid===void 0)throw new Error("URN without nid cannot be serialized");let f=o.scheme||s.scheme||"urn",d=s.nid.toLowerCase(),y=`${f}:${o.nid||d}`,x=L6e(y);x&&(s=x.serialize(s,o));let A=s,F=s.nss;return A.path=`${d||o.nid}:${F}`,o.skipEscape=!0,A}t(Qnr,"urnSerialize");function eir(s,o){let f=s;return f.uuid=f.nss,f.nss=void 0,!o.tolerant&&(!f.uuid||!Vnr(f.uuid))&&(f.error=f.error||"UUID is not valid."),f}t(eir,"urnuuidParse");function tir(s){let o=s;return o.nss=(s.uuid||"").toLowerCase(),o}t(tir,"urnuuidSerialize");var uot={scheme:"http",domainHost:!0,parse:cot,serialize:lot},rir={scheme:"https",domainHost:uot.domainHost,parse:cot,serialize:lot},Oce={scheme:"ws",domainHost:!0,parse:Knr,serialize:Xnr},nir={scheme:"wss",domainHost:Oce.domainHost,parse:Oce.parse,serialize:Oce.serialize},iir={scheme:"urn",parse:Znr,serialize:Qnr,skipNormalize:!0},sir={scheme:"urn:uuid",parse:eir,serialize:tir,skipNormalize:!0},Fce={http:uot,https:rir,ws:Oce,wss:nir,urn:iir,"urn:uuid":sir};Object.setPrototypeOf(Fce,null);function L6e(s){return s&&(Fce[s]||Fce[s.toLowerCase()])||void 0}t(L6e,"getSchemeHandler");fot.exports={wsIsSecure:F6e,SCHEMES:Fce,isValidSchemeName:Ynr,getSchemeHandler:L6e}});var mot=or((hPr,Rce)=>{"use strict";var{normalizeIPv6:air,removeDotSegments:_H,recomposeAuthority:oir,normalizeComponentEncoding:Lce,isIPv4:cir,nonSimpleDomain:lir}=O6e(),{SCHEMES:uir,getSchemeHandler:pot}=_ot();function fir(s,o){return typeof s=="string"?s=Rk(XP(s,o),o):typeof s=="object"&&(s=XP(Rk(s,o),o)),s}t(fir,"normalize");function _ir(s,o,f){let d=f?Object.assign({scheme:"null"},f):{scheme:"null"},y=dot(XP(s,d),XP(o,d),d,!0);return d.skipEscape=!0,Rk(y,d)}t(_ir,"resolve");function dot(s,o,f,d){let y={};return d||(s=XP(Rk(s,f),f),o=XP(Rk(o,f),f)),f=f||{},!f.tolerant&&o.scheme?(y.scheme=o.scheme,y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=_H(o.path||""),y.query=o.query):(o.userinfo!==void 0||o.host!==void 0||o.port!==void 0?(y.userinfo=o.userinfo,y.host=o.host,y.port=o.port,y.path=_H(o.path||""),y.query=o.query):(o.path?(o.path[0]==="/"?y.path=_H(o.path):((s.userinfo!==void 0||s.host!==void 0||s.port!==void 0)&&!s.path?y.path="/"+o.path:s.path?y.path=s.path.slice(0,s.path.lastIndexOf("/")+1)+o.path:y.path=o.path,y.path=_H(y.path)),y.query=o.query):(y.path=s.path,o.query!==void 0?y.query=o.query:y.query=s.query),y.userinfo=s.userinfo,y.host=s.host,y.port=s.port),y.scheme=s.scheme),y.fragment=o.fragment,y}t(dot,"resolveComponent");function pir(s,o,f){return typeof s=="string"?(s=unescape(s),s=Rk(Lce(XP(s,f),!0),{...f,skipEscape:!0})):typeof s=="object"&&(s=Rk(Lce(s,!0),{...f,skipEscape:!0})),typeof o=="string"?(o=unescape(o),o=Rk(Lce(XP(o,f),!0),{...f,skipEscape:!0})):typeof o=="object"&&(o=Rk(Lce(o,!0),{...f,skipEscape:!0})),s.toLowerCase()===o.toLowerCase()}t(pir,"equal");function Rk(s,o){let f={host:s.host,scheme:s.scheme,userinfo:s.userinfo,port:s.port,path:s.path,query:s.query,nid:s.nid,nss:s.nss,uuid:s.uuid,fragment:s.fragment,reference:s.reference,resourceName:s.resourceName,secure:s.secure,error:""},d=Object.assign({},o),y=[],x=pot(d.scheme||f.scheme);x&&x.serialize&&x.serialize(f,d),f.path!==void 0&&(d.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),d.reference!=="suffix"&&f.scheme&&y.push(f.scheme,":");let A=oir(f);if(A!==void 0&&(d.reference!=="suffix"&&y.push("//"),y.push(A),f.path&&f.path[0]!=="/"&&y.push("/")),f.path!==void 0){let F=f.path;!d.absolutePath&&(!x||!x.absolutePath)&&(F=_H(F)),A===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),y.push(F)}return f.query!==void 0&&y.push("?",f.query),f.fragment!==void 0&&y.push("#",f.fragment),y.join("")}t(Rk,"serialize");var dir=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function XP(s,o){let f=Object.assign({},o),d={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},y=!1;f.reference==="suffix"&&(f.scheme?s=f.scheme+":"+s:s="//"+s);let x=s.match(dir);if(x){if(d.scheme=x[1],d.userinfo=x[3],d.host=x[4],d.port=parseInt(x[5],10),d.path=x[6]||"",d.query=x[7],d.fragment=x[8],isNaN(d.port)&&(d.port=x[5]),d.host)if(cir(d.host)===!1){let W=air(d.host);d.host=W.host.toLowerCase(),y=W.isIPV6}else y=!0;d.scheme===void 0&&d.userinfo===void 0&&d.host===void 0&&d.port===void 0&&d.query===void 0&&!d.path?d.reference="same-document":d.scheme===void 0?d.reference="relative":d.fragment===void 0?d.reference="absolute":d.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==d.reference&&(d.error=d.error||"URI is not a "+f.reference+" reference.");let A=pot(f.scheme||d.scheme);if(!f.unicodeSupport&&(!A||!A.unicodeSupport)&&d.host&&(f.domainHost||A&&A.domainHost)&&y===!1&&lir(d.host))try{d.host=URL.domainToASCII(d.host.toLowerCase())}catch(F){d.error=d.error||"Host's domain name can not be converted to ASCII: "+F}(!A||A&&!A.skipNormalize)&&(s.indexOf("%")!==-1&&(d.scheme!==void 0&&(d.scheme=unescape(d.scheme)),d.host!==void 0&&(d.host=unescape(d.host))),d.path&&(d.path=escape(unescape(d.path))),d.fragment&&(d.fragment=encodeURI(decodeURIComponent(d.fragment)))),A&&A.parse&&A.parse(d,f)}else d.error=d.error||"URI can not be parsed.";return d}t(XP,"parse");var R6e={SCHEMES:uir,normalize:fir,resolve:_ir,resolveComponent:dot,equal:pir,serialize:Rk,parse:XP};Rce.exports=R6e;Rce.exports.default=R6e;Rce.exports.fastUri=R6e});var got=or(M6e=>{"use strict";Object.defineProperty(M6e,"__esModule",{value:!0});var hot=mot();hot.code='require("ajv/dist/runtime/uri").default';M6e.default=hot});var U6e=or(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.CodeGen=E0.Name=E0.nil=E0.stringify=E0.str=E0._=E0.KeywordCxt=void 0;var mir=lM();Object.defineProperty(E0,"KeywordCxt",{enumerable:!0,get:t(function(){return mir.KeywordCxt},"get")});var _M=Ec();Object.defineProperty(E0,"_",{enumerable:!0,get:t(function(){return _M._},"get")});Object.defineProperty(E0,"str",{enumerable:!0,get:t(function(){return _M.str},"get")});Object.defineProperty(E0,"stringify",{enumerable:!0,get:t(function(){return _M.stringify},"get")});Object.defineProperty(E0,"nil",{enumerable:!0,get:t(function(){return _M.nil},"get")});Object.defineProperty(E0,"Name",{enumerable:!0,get:t(function(){return _M.Name},"get")});Object.defineProperty(E0,"CodeGen",{enumerable:!0,get:t(function(){return _M.CodeGen},"get")});var hir=uH(),Tot=uM(),gir=_6e(),pH=fH(),yir=Ec(),dH=oH(),Mce=aH(),B6e=tu(),yot=not(),vir=got(),xot=t((s,o)=>new RegExp(s,o),"defaultRegExp");xot.code="new RegExp";var bir=["removeAdditional","useDefaults","coerceTypes"],Sir=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Tir={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},xir={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},vot=200;function Eir(s){var o,f,d,y,x,A,F,W,G,be,de,se,Xe,Ue,je,Vt,Ut,Ir,wn,sn,Jn,kr,yr,xs,bi;let fc=s.strict,Ci=(o=s.code)===null||o===void 0?void 0:o.optimize,bf=Ci===!0||Ci===void 0?1:Ci||0,Bf=(d=(f=s.code)===null||f===void 0?void 0:f.regExp)!==null&&d!==void 0?d:xot,In=(y=s.uriResolver)!==null&&y!==void 0?y:vir.default;return{strictSchema:(A=(x=s.strictSchema)!==null&&x!==void 0?x:fc)!==null&&A!==void 0?A:!0,strictNumbers:(W=(F=s.strictNumbers)!==null&&F!==void 0?F:fc)!==null&&W!==void 0?W:!0,strictTypes:(be=(G=s.strictTypes)!==null&&G!==void 0?G:fc)!==null&&be!==void 0?be:"log",strictTuples:(se=(de=s.strictTuples)!==null&&de!==void 0?de:fc)!==null&&se!==void 0?se:"log",strictRequired:(Ue=(Xe=s.strictRequired)!==null&&Xe!==void 0?Xe:fc)!==null&&Ue!==void 0?Ue:!1,code:s.code?{...s.code,optimize:bf,regExp:Bf}:{optimize:bf,regExp:Bf},loopRequired:(je=s.loopRequired)!==null&&je!==void 0?je:vot,loopEnum:(Vt=s.loopEnum)!==null&&Vt!==void 0?Vt:vot,meta:(Ut=s.meta)!==null&&Ut!==void 0?Ut:!0,messages:(Ir=s.messages)!==null&&Ir!==void 0?Ir:!0,inlineRefs:(wn=s.inlineRefs)!==null&&wn!==void 0?wn:!0,schemaId:(sn=s.schemaId)!==null&&sn!==void 0?sn:"$id",addUsedSchema:(Jn=s.addUsedSchema)!==null&&Jn!==void 0?Jn:!0,validateSchema:(kr=s.validateSchema)!==null&&kr!==void 0?kr:!0,validateFormats:(yr=s.validateFormats)!==null&&yr!==void 0?yr:!0,unicodeRegExp:(xs=s.unicodeRegExp)!==null&&xs!==void 0?xs:!0,int32range:(bi=s.int32range)!==null&&bi!==void 0?bi:!0,uriResolver:In}}t(Eir,"requiredOptions");var mH=class{static{t(this,"Ajv")}constructor(o={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,o=this.opts={...o,...Eir(o)};let{es5:f,lines:d}=this.opts.code;this.scope=new yir.ValueScope({scope:{},prefixes:Sir,es5:f,lines:d}),this.logger=Air(o.logger);let y=o.validateFormats;o.validateFormats=!1,this.RULES=(0,gir.getRules)(),bot.call(this,Tir,o,"NOT SUPPORTED"),bot.call(this,xir,o,"DEPRECATED","warn"),this._metaOpts=Dir.call(this),o.formats&&kir.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),o.keywords&&wir.call(this,o.keywords),typeof o.meta=="object"&&this.addMetaSchema(o.meta),Cir.call(this),o.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:o,meta:f,schemaId:d}=this.opts,y=yot;d==="id"&&(y={...yot},y.id=y.$id,delete y.$id),f&&o&&this.addMetaSchema(y,y[d],!1)}defaultMeta(){let{meta:o,schemaId:f}=this.opts;return this.opts.defaultMeta=typeof o=="object"?o[f]||o:void 0}validate(o,f){let d;if(typeof o=="string"){if(d=this.getSchema(o),!d)throw new Error(`no schema with key or ref "${o}"`)}else d=this.compile(o);let y=d(f);return"$async"in d||(this.errors=d.errors),y}compile(o,f){let d=this._addSchema(o,f);return d.validate||this._compileSchemaEnv(d)}compileAsync(o,f){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:d}=this.opts;return y.call(this,o,f);async function y(be,de){await x.call(this,be.$schema);let se=this._addSchema(be,de);return se.validate||A.call(this,se)}async function x(be){be&&!this.getSchema(be)&&await y.call(this,{$ref:be},!0)}async function A(be){try{return this._compileSchemaEnv(be)}catch(de){if(!(de instanceof Tot.default))throw de;return F.call(this,de),await W.call(this,de.missingSchema),A.call(this,be)}}function F({missingSchema:be,missingRef:de}){if(this.refs[be])throw new Error(`AnySchema ${be} is loaded but ${de} cannot be resolved`)}async function W(be){let de=await G.call(this,be);this.refs[be]||await x.call(this,de.$schema),this.refs[be]||this.addSchema(de,be,f)}async function G(be){let de=this._loading[be];if(de)return de;try{return await(this._loading[be]=d(be))}finally{delete this._loading[be]}}}addSchema(o,f,d,y=this.opts.validateSchema){if(Array.isArray(o)){for(let A of o)this.addSchema(A,void 0,d,y);return this}let x;if(typeof o=="object"){let{schemaId:A}=this.opts;if(x=o[A],x!==void 0&&typeof x!="string")throw new Error(`schema ${A} must be string`)}return f=(0,dH.normalizeId)(f||x),this._checkUnique(f),this.schemas[f]=this._addSchema(o,d,f,y,!0),this}addMetaSchema(o,f,d=this.opts.validateSchema){return this.addSchema(o,f,!0,d),this}validateSchema(o,f){if(typeof o=="boolean")return!0;let d;if(d=o.$schema,d!==void 0&&typeof d!="string")throw new Error("$schema must be a string");if(d=d||this.opts.defaultMeta||this.defaultMeta(),!d)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let y=this.validate(d,o);if(!y&&f){let x="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(x);else throw new Error(x)}return y}getSchema(o){let f;for(;typeof(f=Sot.call(this,o))=="string";)o=f;if(f===void 0){let{schemaId:d}=this.opts,y=new pH.SchemaEnv({schema:{},schemaId:d});if(f=pH.resolveSchema.call(this,y,o),!f)return;this.refs[o]=f}return f.validate||this._compileSchemaEnv(f)}removeSchema(o){if(o instanceof RegExp)return this._removeAllSchemas(this.schemas,o),this._removeAllSchemas(this.refs,o),this;switch(typeof o){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let f=Sot.call(this,o);return typeof f=="object"&&this._cache.delete(f.schema),delete this.schemas[o],delete this.refs[o],this}case"object":{let f=o;this._cache.delete(f);let d=o[this.opts.schemaId];return d&&(d=(0,dH.normalizeId)(d),delete this.schemas[d],delete this.refs[d]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(o){for(let f of o)this.addKeyword(f);return this}addKeyword(o,f){let d;if(typeof o=="string")d=o,typeof f=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),f.keyword=d);else if(typeof o=="object"&&f===void 0){if(f=o,d=f.keyword,Array.isArray(d)&&!d.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Iir.call(this,d,f),!f)return(0,B6e.eachItem)(d,x=>j6e.call(this,x)),this;Fir.call(this,f);let y={...f,type:(0,Mce.getJSONTypes)(f.type),schemaType:(0,Mce.getJSONTypes)(f.schemaType)};return(0,B6e.eachItem)(d,y.type.length===0?x=>j6e.call(this,x,y):x=>y.type.forEach(A=>j6e.call(this,x,y,A))),this}getKeyword(o){let f=this.RULES.all[o];return typeof f=="object"?f.definition:!!f}removeKeyword(o){let{RULES:f}=this;delete f.keywords[o],delete f.all[o];for(let d of f.rules){let y=d.rules.findIndex(x=>x.keyword===o);y>=0&&d.rules.splice(y,1)}return this}addFormat(o,f){return typeof f=="string"&&(f=new RegExp(f)),this.formats[o]=f,this}errorsText(o=this.errors,{separator:f=", ",dataVar:d="data"}={}){return!o||o.length===0?"No errors":o.map(y=>`${d}${y.instancePath} ${y.message}`).reduce((y,x)=>y+f+x)}$dataMetaSchema(o,f){let d=this.RULES.all;o=JSON.parse(JSON.stringify(o));for(let y of f){let x=y.split("/").slice(1),A=o;for(let F of x)A=A[F];for(let F in d){let W=d[F];if(typeof W!="object")continue;let{$data:G}=W.definition,be=A[F];G&&be&&(A[F]=Eot(be))}}return o}_removeAllSchemas(o,f){for(let d in o){let y=o[d];(!f||f.test(d))&&(typeof y=="string"?delete o[d]:y&&!y.meta&&(this._cache.delete(y.schema),delete o[d]))}}_addSchema(o,f,d,y=this.opts.validateSchema,x=this.opts.addUsedSchema){let A,{schemaId:F}=this.opts;if(typeof o=="object")A=o[F];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof o!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(o);if(W!==void 0)return W;d=(0,dH.normalizeId)(A||d);let G=dH.getSchemaRefs.call(this,o,d);return W=new pH.SchemaEnv({schema:o,schemaId:F,meta:f,baseId:d,localRefs:G}),this._cache.set(W.schema,W),x&&!d.startsWith("#")&&(d&&this._checkUnique(d),this.refs[d]=W),y&&this.validateSchema(o,!0),W}_checkUnique(o){if(this.schemas[o]||this.refs[o])throw new Error(`schema with key or id "${o}" already exists`)}_compileSchemaEnv(o){if(o.meta?this._compileMetaSchema(o):pH.compileSchema.call(this,o),!o.validate)throw new Error("ajv implementation error");return o.validate}_compileMetaSchema(o){let f=this.opts;this.opts=this._metaOpts;try{pH.compileSchema.call(this,o)}finally{this.opts=f}}};mH.ValidationError=hir.default;mH.MissingRefError=Tot.default;E0.default=mH;function bot(s,o,f,d="error"){for(let y in s){let x=y;x in o&&this.logger[d](`${f}: option ${y}. ${s[x]}`)}}t(bot,"checkOptions");function Sot(s){return s=(0,dH.normalizeId)(s),this.schemas[s]||this.refs[s]}t(Sot,"getSchEnv");function Cir(){let s=this.opts.schemas;if(s)if(Array.isArray(s))this.addSchema(s);else for(let o in s)this.addSchema(s[o],o)}t(Cir,"addInitialSchemas");function kir(){for(let s in this.opts.formats){let o=this.opts.formats[s];o&&this.addFormat(s,o)}}t(kir,"addInitialFormats");function wir(s){if(Array.isArray(s)){this.addVocabulary(s);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let o in s){let f=s[o];f.keyword||(f.keyword=o),this.addKeyword(f)}}t(wir,"addInitialKeywords");function Dir(){let s={...this.opts};for(let o of bir)delete s[o];return s}t(Dir,"getMetaSchemaOptions");var Pir={log(){},warn(){},error(){}};function Air(s){if(s===!1)return Pir;if(s===void 0)return console;if(s.log&&s.warn&&s.error)return s;throw new Error("logger must implement log, warn and error methods")}t(Air,"getLogger");var Nir=/^[a-z_$][a-z0-9_$:-]*$/i;function Iir(s,o){let{RULES:f}=this;if((0,B6e.eachItem)(s,d=>{if(f.keywords[d])throw new Error(`Keyword ${d} is already defined`);if(!Nir.test(d))throw new Error(`Keyword ${d} has invalid name`)}),!!o&&o.$data&&!("code"in o||"validate"in o))throw new Error('$data keyword must have "code" or "validate" function')}t(Iir,"checkKeyword");function j6e(s,o,f){var d;let y=o?.post;if(f&&y)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:x}=this,A=y?x.post:x.rules.find(({type:W})=>W===f);if(A||(A={type:f,rules:[]},x.rules.push(A)),x.keywords[s]=!0,!o)return;let F={keyword:s,definition:{...o,type:(0,Mce.getJSONTypes)(o.type),schemaType:(0,Mce.getJSONTypes)(o.schemaType)}};o.before?Oir.call(this,A,F,o.before):A.rules.push(F),x.all[s]=F,(d=o.implements)===null||d===void 0||d.forEach(W=>this.addKeyword(W))}t(j6e,"addRule");function Oir(s,o,f){let d=s.rules.findIndex(y=>y.keyword===f);d>=0?s.rules.splice(d,0,o):(s.rules.push(o),this.logger.warn(`rule ${f} is not defined`))}t(Oir,"addBeforeRule");function Fir(s){let{metaSchema:o}=s;o!==void 0&&(s.$data&&this.opts.$data&&(o=Eot(o)),s.validateSchema=this.compile(o,!0))}t(Fir,"keywordMetaschema");var Lir={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Eot(s){return{anyOf:[s,Lir]}}t(Eot,"schemaOrData")});var Cot=or(z6e=>{"use strict";Object.defineProperty(z6e,"__esModule",{value:!0});var Rir={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};z6e.default=Rir});var Uce=or(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0});PO.callRef=PO.getValidate=void 0;var Mir=uM(),kot=dT(),Zv=Ec(),pM=pT(),wot=fH(),jce=tu(),jir={keyword:"$ref",schemaType:"string",code(s){let{gen:o,schema:f,it:d}=s,{baseId:y,schemaEnv:x,validateName:A,opts:F,self:W}=d,{root:G}=x;if((f==="#"||f==="#/")&&y===G.baseId)return de();let be=wot.resolveRef.call(W,G,y,f);if(be===void 0)throw new Mir.default(d.opts.uriResolver,y,f);if(be instanceof wot.SchemaEnv)return se(be);return Xe(be);function de(){if(x===G)return Bce(s,A,x,x.$async);let Ue=o.scopeValue("root",{ref:G});return Bce(s,(0,Zv._)`${Ue}.validate`,G,G.$async)}function se(Ue){let je=Dot(s,Ue);Bce(s,je,Ue,Ue.$async)}function Xe(Ue){let je=o.scopeValue("schema",F.code.source===!0?{ref:Ue,code:(0,Zv.stringify)(Ue)}:{ref:Ue}),Vt=o.name("valid"),Ut=s.subschema({schema:Ue,dataTypes:[],schemaPath:Zv.nil,topSchemaRef:je,errSchemaPath:f},Vt);s.mergeEvaluated(Ut),s.ok(Vt)}}};function Dot(s,o){let{gen:f}=s;return o.validate?f.scopeValue("validate",{ref:o.validate}):(0,Zv._)`${f.scopeValue("wrapper",{ref:o})}.validate`}t(Dot,"getValidate");PO.getValidate=Dot;function Bce(s,o,f,d){let{gen:y,it:x}=s,{allErrors:A,schemaEnv:F,opts:W}=x,G=W.passContext?pM.default.this:Zv.nil;d?be():de();function be(){if(!F.$async)throw new Error("async schema referenced by sync schema");let Ue=y.let("valid");y.try(()=>{y.code((0,Zv._)`await ${(0,kot.callValidateCode)(s,o,G)}`),Xe(o),A||y.assign(Ue,!0)},je=>{y.if((0,Zv._)`!(${je} instanceof ${x.ValidationError})`,()=>y.throw(je)),se(je),A||y.assign(Ue,!1)}),s.ok(Ue)}t(be,"callAsyncRef");function de(){s.result((0,kot.callValidateCode)(s,o,G),()=>Xe(o),()=>se(o))}t(de,"callSyncRef");function se(Ue){let je=(0,Zv._)`${Ue}.errors`;y.assign(pM.default.vErrors,(0,Zv._)`${pM.default.vErrors} === null ? ${je} : ${pM.default.vErrors}.concat(${je})`),y.assign(pM.default.errors,(0,Zv._)`${pM.default.vErrors}.length`)}t(se,"addErrorsFrom");function Xe(Ue){var je;if(!x.opts.unevaluated)return;let Vt=(je=f?.validate)===null||je===void 0?void 0:je.evaluated;if(x.props!==!0)if(Vt&&!Vt.dynamicProps)Vt.props!==void 0&&(x.props=jce.mergeEvaluated.props(y,Vt.props,x.props));else{let Ut=y.var("props",(0,Zv._)`${Ue}.evaluated.props`);x.props=jce.mergeEvaluated.props(y,Ut,x.props,Zv.Name)}if(x.items!==!0)if(Vt&&!Vt.dynamicItems)Vt.items!==void 0&&(x.items=jce.mergeEvaluated.items(y,Vt.items,x.items));else{let Ut=y.var("items",(0,Zv._)`${Ue}.evaluated.items`);x.items=jce.mergeEvaluated.items(y,Ut,x.items,Zv.Name)}}t(Xe,"addEvaluatedFrom")}t(Bce,"callRef");PO.callRef=Bce;PO.default=jir});var J6e=or($6e=>{"use strict";Object.defineProperty($6e,"__esModule",{value:!0});var Bir=Cot(),Uir=Uce(),zir=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Bir.default,Uir.default];$6e.default=zir});var Pot=or(W6e=>{"use strict";Object.defineProperty(W6e,"__esModule",{value:!0});var zce=Ec(),lI=zce.operators,$ce={maximum:{okStr:"<=",ok:lI.LTE,fail:lI.GT},minimum:{okStr:">=",ok:lI.GTE,fail:lI.LT},exclusiveMaximum:{okStr:"<",ok:lI.LT,fail:lI.GTE},exclusiveMinimum:{okStr:">",ok:lI.GT,fail:lI.LTE}},$ir={message:t(({keyword:s,schemaCode:o})=>(0,zce.str)`must be ${$ce[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,zce._)`{comparison: ${$ce[s].okStr}, limit: ${o}}`,"params")},Jir={keyword:Object.keys($ce),type:"number",schemaType:"number",$data:!0,error:$ir,code(s){let{keyword:o,data:f,schemaCode:d}=s;s.fail$data((0,zce._)`${f} ${$ce[o].fail} ${d} || isNaN(${f})`)}};W6e.default=Jir});var Aot=or(q6e=>{"use strict";Object.defineProperty(q6e,"__esModule",{value:!0});var hH=Ec(),Wir={message:t(({schemaCode:s})=>(0,hH.str)`must be multiple of ${s}`,"message"),params:t(({schemaCode:s})=>(0,hH._)`{multipleOf: ${s}}`,"params")},qir={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Wir,code(s){let{gen:o,data:f,schemaCode:d,it:y}=s,x=y.opts.multipleOfPrecision,A=o.let("res"),F=x?(0,hH._)`Math.abs(Math.round(${A}) - ${A}) > 1e-${x}`:(0,hH._)`${A} !== parseInt(${A})`;s.fail$data((0,hH._)`(${d} === 0 || (${A} = ${f}/${d}, ${F}))`)}};q6e.default=qir});var Iot=or(V6e=>{"use strict";Object.defineProperty(V6e,"__esModule",{value:!0});function Not(s){let o=s.length,f=0,d=0,y;for(;d<o;)f++,y=s.charCodeAt(d++),y>=55296&&y<=56319&&d<o&&(y=s.charCodeAt(d),(y&64512)===56320&&d++);return f}t(Not,"ucs2length");V6e.default=Not;Not.code='require("ajv/dist/runtime/ucs2length").default'});var Oot=or(H6e=>{"use strict";Object.defineProperty(H6e,"__esModule",{value:!0});var AO=Ec(),Vir=tu(),Hir=Iot(),Gir={message({keyword:s,schemaCode:o}){let f=s==="maxLength"?"more":"fewer";return(0,AO.str)`must NOT have ${f} than ${o} characters`},params:t(({schemaCode:s})=>(0,AO._)`{limit: ${s}}`,"params")},Yir={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Gir,code(s){let{keyword:o,data:f,schemaCode:d,it:y}=s,x=o==="maxLength"?AO.operators.GT:AO.operators.LT,A=y.opts.unicode===!1?(0,AO._)`${f}.length`:(0,AO._)`${(0,Vir.useFunc)(s.gen,Hir.default)}(${f})`;s.fail$data((0,AO._)`${A} ${x} ${d}`)}};H6e.default=Yir});var Fot=or(G6e=>{"use strict";Object.defineProperty(G6e,"__esModule",{value:!0});var Kir=dT(),Jce=Ec(),Xir={message:t(({schemaCode:s})=>(0,Jce.str)`must match pattern "${s}"`,"message"),params:t(({schemaCode:s})=>(0,Jce._)`{pattern: ${s}}`,"params")},Zir={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Xir,code(s){let{data:o,$data:f,schema:d,schemaCode:y,it:x}=s,A=x.opts.unicodeRegExp?"u":"",F=f?(0,Jce._)`(new RegExp(${y}, ${A}))`:(0,Kir.usePattern)(s,d);s.fail$data((0,Jce._)`!${F}.test(${o})`)}};G6e.default=Zir});var Lot=or(Y6e=>{"use strict";Object.defineProperty(Y6e,"__esModule",{value:!0});var gH=Ec(),Qir={message({keyword:s,schemaCode:o}){let f=s==="maxProperties"?"more":"fewer";return(0,gH.str)`must NOT have ${f} than ${o} properties`},params:t(({schemaCode:s})=>(0,gH._)`{limit: ${s}}`,"params")},esr={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Qir,code(s){let{keyword:o,data:f,schemaCode:d}=s,y=o==="maxProperties"?gH.operators.GT:gH.operators.LT;s.fail$data((0,gH._)`Object.keys(${f}).length ${y} ${d}`)}};Y6e.default=esr});var Rot=or(K6e=>{"use strict";Object.defineProperty(K6e,"__esModule",{value:!0});var yH=dT(),vH=Ec(),tsr=tu(),rsr={message:t(({params:{missingProperty:s}})=>(0,vH.str)`must have required property '${s}'`,"message"),params:t(({params:{missingProperty:s}})=>(0,vH._)`{missingProperty: ${s}}`,"params")},nsr={keyword:"required",type:"object",schemaType:"array",$data:!0,error:rsr,code(s){let{gen:o,schema:f,schemaCode:d,data:y,$data:x,it:A}=s,{opts:F}=A;if(!x&&f.length===0)return;let W=f.length>=F.loopRequired;if(A.allErrors?G():be(),F.strictRequired){let Xe=s.parentSchema.properties,{definedProperties:Ue}=s.it;for(let je of f)if(Xe?.[je]===void 0&&!Ue.has(je)){let Vt=A.schemaEnv.baseId+A.errSchemaPath,Ut=`required property "${je}" is not defined at "${Vt}" (strictRequired)`;(0,tsr.checkStrictMode)(A,Ut,A.opts.strictRequired)}}function G(){if(W||x)s.block$data(vH.nil,de);else for(let Xe of f)(0,yH.checkReportMissingProp)(s,Xe)}t(G,"allErrorsMode");function be(){let Xe=o.let("missing");if(W||x){let Ue=o.let("valid",!0);s.block$data(Ue,()=>se(Xe,Ue)),s.ok(Ue)}else o.if((0,yH.checkMissingProp)(s,f,Xe)),(0,yH.reportMissingProp)(s,Xe),o.else()}t(be,"exitOnErrorMode");function de(){o.forOf("prop",d,Xe=>{s.setParams({missingProperty:Xe}),o.if((0,yH.noPropertyInData)(o,y,Xe,F.ownProperties),()=>s.error())})}t(de,"loopAllRequired");function se(Xe,Ue){s.setParams({missingProperty:Xe}),o.forOf(Xe,d,()=>{o.assign(Ue,(0,yH.propertyInData)(o,y,Xe,F.ownProperties)),o.if((0,vH.not)(Ue),()=>{s.error(),o.break()})},vH.nil)}t(se,"loopUntilMissing")}};K6e.default=nsr});var Mot=or(X6e=>{"use strict";Object.defineProperty(X6e,"__esModule",{value:!0});var bH=Ec(),isr={message({keyword:s,schemaCode:o}){let f=s==="maxItems"?"more":"fewer";return(0,bH.str)`must NOT have ${f} than ${o} items`},params:t(({schemaCode:s})=>(0,bH._)`{limit: ${s}}`,"params")},ssr={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:isr,code(s){let{keyword:o,data:f,schemaCode:d}=s,y=o==="maxItems"?bH.operators.GT:bH.operators.LT;s.fail$data((0,bH._)`${f}.length ${y} ${d}`)}};X6e.default=ssr});var Wce=or(Z6e=>{"use strict";Object.defineProperty(Z6e,"__esModule",{value:!0});var jot=b6e();jot.code='require("ajv/dist/runtime/equal").default';Z6e.default=jot});var Bot=or(eNe=>{"use strict";Object.defineProperty(eNe,"__esModule",{value:!0});var Q6e=aH(),C0=Ec(),asr=tu(),osr=Wce(),csr={message:t(({params:{i:s,j:o}})=>(0,C0.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,"message"),params:t(({params:{i:s,j:o}})=>(0,C0._)`{i: ${s}, j: ${o}}`,"params")},lsr={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:csr,code(s){let{gen:o,data:f,$data:d,schema:y,parentSchema:x,schemaCode:A,it:F}=s;if(!d&&!y)return;let W=o.let("valid"),G=x.items?(0,Q6e.getSchemaTypes)(x.items):[];s.block$data(W,be,(0,C0._)`${A} === false`),s.ok(W);function be(){let Ue=o.let("i",(0,C0._)`${f}.length`),je=o.let("j");s.setParams({i:Ue,j:je}),o.assign(W,!0),o.if((0,C0._)`${Ue} > 1`,()=>(de()?se:Xe)(Ue,je))}t(be,"validateUniqueItems");function de(){return G.length>0&&!G.some(Ue=>Ue==="object"||Ue==="array")}t(de,"canOptimize");function se(Ue,je){let Vt=o.name("item"),Ut=(0,Q6e.checkDataTypes)(G,Vt,F.opts.strictNumbers,Q6e.DataType.Wrong),Ir=o.const("indices",(0,C0._)`{}`);o.for((0,C0._)`;${Ue}--;`,()=>{o.let(Vt,(0,C0._)`${f}[${Ue}]`),o.if(Ut,(0,C0._)`continue`),G.length>1&&o.if((0,C0._)`typeof ${Vt} == "string"`,(0,C0._)`${Vt} += "_"`),o.if((0,C0._)`typeof ${Ir}[${Vt}] == "number"`,()=>{o.assign(je,(0,C0._)`${Ir}[${Vt}]`),s.error(),o.assign(W,!1).break()}).code((0,C0._)`${Ir}[${Vt}] = ${Ue}`)})}t(se,"loopN");function Xe(Ue,je){let Vt=(0,asr.useFunc)(o,osr.default),Ut=o.name("outer");o.label(Ut).for((0,C0._)`;${Ue}--;`,()=>o.for((0,C0._)`${je} = ${Ue}; ${je}--;`,()=>o.if((0,C0._)`${Vt}(${f}[${Ue}], ${f}[${je}])`,()=>{s.error(),o.assign(W,!1).break(Ut)})))}t(Xe,"loopN2")}};eNe.default=lsr});var Uot=or(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});var tNe=Ec(),usr=tu(),fsr=Wce(),_sr={message:"must be equal to constant",params:t(({schemaCode:s})=>(0,tNe._)`{allowedValue: ${s}}`,"params")},psr={keyword:"const",$data:!0,error:_sr,code(s){let{gen:o,data:f,$data:d,schemaCode:y,schema:x}=s;d||x&&typeof x=="object"?s.fail$data((0,tNe._)`!${(0,usr.useFunc)(o,fsr.default)}(${f}, ${y})`):s.fail((0,tNe._)`${x} !== ${f}`)}};rNe.default=psr});var zot=or(nNe=>{"use strict";Object.defineProperty(nNe,"__esModule",{value:!0});var SH=Ec(),dsr=tu(),msr=Wce(),hsr={message:"must be equal to one of the allowed values",params:t(({schemaCode:s})=>(0,SH._)`{allowedValues: ${s}}`,"params")},gsr={keyword:"enum",schemaType:"array",$data:!0,error:hsr,code(s){let{gen:o,data:f,$data:d,schema:y,schemaCode:x,it:A}=s;if(!d&&y.length===0)throw new Error("enum must have non-empty array");let F=y.length>=A.opts.loopEnum,W,G=t(()=>W??(W=(0,dsr.useFunc)(o,msr.default)),"getEql"),be;if(F||d)be=o.let("valid"),s.block$data(be,de);else{if(!Array.isArray(y))throw new Error("ajv implementation error");let Xe=o.const("vSchema",x);be=(0,SH.or)(...y.map((Ue,je)=>se(Xe,je)))}s.pass(be);function de(){o.assign(be,!1),o.forOf("v",x,Xe=>o.if((0,SH._)`${G()}(${f}, ${Xe})`,()=>o.assign(be,!0).break()))}t(de,"loopEnum");function se(Xe,Ue){let je=y[Ue];return typeof je=="object"&&je!==null?(0,SH._)`${G()}(${f}, ${Xe}[${Ue}])`:(0,SH._)`${f} === ${je}`}t(se,"equalCode")}};nNe.default=gsr});var sNe=or(iNe=>{"use strict";Object.defineProperty(iNe,"__esModule",{value:!0});var ysr=Pot(),vsr=Aot(),bsr=Oot(),Ssr=Fot(),Tsr=Lot(),xsr=Rot(),Esr=Mot(),Csr=Bot(),ksr=Uot(),wsr=zot(),Dsr=[ysr.default,vsr.default,bsr.default,Ssr.default,Tsr.default,xsr.default,Esr.default,Csr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ksr.default,wsr.default];iNe.default=Dsr});var oNe=or(TH=>{"use strict";Object.defineProperty(TH,"__esModule",{value:!0});TH.validateAdditionalItems=void 0;var NO=Ec(),aNe=tu(),Psr={message:t(({params:{len:s}})=>(0,NO.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,NO._)`{limit: ${s}}`,"params")},Asr={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Psr,code(s){let{parentSchema:o,it:f}=s,{items:d}=o;if(!Array.isArray(d)){(0,aNe.checkStrictMode)(f,'"additionalItems" is ignored when "items" is not an array of schemas');return}$ot(s,d)}};function $ot(s,o){let{gen:f,schema:d,data:y,keyword:x,it:A}=s;A.items=!0;let F=f.const("len",(0,NO._)`${y}.length`);if(d===!1)s.setParams({len:o.length}),s.pass((0,NO._)`${F} <= ${o.length}`);else if(typeof d=="object"&&!(0,aNe.alwaysValidSchema)(A,d)){let G=f.var("valid",(0,NO._)`${F} <= ${o.length}`);f.if((0,NO.not)(G),()=>W(G)),s.ok(G)}function W(G){f.forRange("i",o.length,F,be=>{s.subschema({keyword:x,dataProp:be,dataPropType:aNe.Type.Num},G),A.allErrors||f.if((0,NO.not)(G),()=>f.break())})}t(W,"validateItems")}t($ot,"validateAdditionalItems");TH.validateAdditionalItems=$ot;TH.default=Asr});var cNe=or(xH=>{"use strict";Object.defineProperty(xH,"__esModule",{value:!0});xH.validateTuple=void 0;var Jot=Ec(),qce=tu(),Nsr=dT(),Isr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){let{schema:o,it:f}=s;if(Array.isArray(o))return Wot(s,"additionalItems",o);f.items=!0,!(0,qce.alwaysValidSchema)(f,o)&&s.ok((0,Nsr.validateArray)(s))}};function Wot(s,o,f=s.schema){let{gen:d,parentSchema:y,data:x,keyword:A,it:F}=s;be(y),F.opts.unevaluated&&f.length&&F.items!==!0&&(F.items=qce.mergeEvaluated.items(d,f.length,F.items));let W=d.name("valid"),G=d.const("len",(0,Jot._)`${x}.length`);f.forEach((de,se)=>{(0,qce.alwaysValidSchema)(F,de)||(d.if((0,Jot._)`${G} > ${se}`,()=>s.subschema({keyword:A,schemaProp:se,dataProp:se},W)),s.ok(W))});function be(de){let{opts:se,errSchemaPath:Xe}=F,Ue=f.length,je=Ue===de.minItems&&(Ue===de.maxItems||de[o]===!1);if(se.strictTuples&&!je){let Vt=`"${A}" is ${Ue}-tuple, but minItems or maxItems/${o} are not specified or different at path "${Xe}"`;(0,qce.checkStrictMode)(F,Vt,se.strictTuples)}}t(be,"checkStrictTuple")}t(Wot,"validateTuple");xH.validateTuple=Wot;xH.default=Isr});var qot=or(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});var Osr=cNe(),Fsr={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t(s=>(0,Osr.validateTuple)(s,"items"),"code")};lNe.default=Fsr});var Hot=or(uNe=>{"use strict";Object.defineProperty(uNe,"__esModule",{value:!0});var Vot=Ec(),Lsr=tu(),Rsr=dT(),Msr=oNe(),jsr={message:t(({params:{len:s}})=>(0,Vot.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,Vot._)`{limit: ${s}}`,"params")},Bsr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:jsr,code(s){let{schema:o,parentSchema:f,it:d}=s,{prefixItems:y}=f;d.items=!0,!(0,Lsr.alwaysValidSchema)(d,o)&&(y?(0,Msr.validateAdditionalItems)(s,y):s.ok((0,Rsr.validateArray)(s)))}};uNe.default=Bsr});var Got=or(fNe=>{"use strict";Object.defineProperty(fNe,"__esModule",{value:!0});var hT=Ec(),Vce=tu(),Usr={message:t(({params:{min:s,max:o}})=>o===void 0?(0,hT.str)`must contain at least ${s} valid item(s)`:(0,hT.str)`must contain at least ${s} and no more than ${o} valid item(s)`,"message"),params:t(({params:{min:s,max:o}})=>o===void 0?(0,hT._)`{minContains: ${s}}`:(0,hT._)`{minContains: ${s}, maxContains: ${o}}`,"params")},zsr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Usr,code(s){let{gen:o,schema:f,parentSchema:d,data:y,it:x}=s,A,F,{minContains:W,maxContains:G}=d;x.opts.next?(A=W===void 0?1:W,F=G):A=1;let be=o.const("len",(0,hT._)`${y}.length`);if(s.setParams({min:A,max:F}),F===void 0&&A===0){(0,Vce.checkStrictMode)(x,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(F!==void 0&&A>F){(0,Vce.checkStrictMode)(x,'"minContains" > "maxContains" is always invalid'),s.fail();return}if((0,Vce.alwaysValidSchema)(x,f)){let je=(0,hT._)`${be} >= ${A}`;F!==void 0&&(je=(0,hT._)`${je} && ${be} <= ${F}`),s.pass(je);return}x.items=!0;let de=o.name("valid");F===void 0&&A===1?Xe(de,()=>o.if(de,()=>o.break())):A===0?(o.let(de,!0),F!==void 0&&o.if((0,hT._)`${y}.length > 0`,se)):(o.let(de,!1),se()),s.result(de,()=>s.reset());function se(){let je=o.name("_valid"),Vt=o.let("count",0);Xe(je,()=>o.if(je,()=>Ue(Vt)))}t(se,"validateItemsWithCount");function Xe(je,Vt){o.forRange("i",0,be,Ut=>{s.subschema({keyword:"contains",dataProp:Ut,dataPropType:Vce.Type.Num,compositeRule:!0},je),Vt()})}t(Xe,"validateItems");function Ue(je){o.code((0,hT._)`${je}++`),F===void 0?o.if((0,hT._)`${je} >= ${A}`,()=>o.assign(de,!0).break()):(o.if((0,hT._)`${je} > ${F}`,()=>o.assign(de,!1).break()),A===1?o.assign(de,!0):o.if((0,hT._)`${je} >= ${A}`,()=>o.assign(de,!0)))}t(Ue,"checkLimits")}};fNe.default=zsr});var Hce=or(Mk=>{"use strict";Object.defineProperty(Mk,"__esModule",{value:!0});Mk.validateSchemaDeps=Mk.validatePropertyDeps=Mk.error=void 0;var _Ne=Ec(),$sr=tu(),EH=dT();Mk.error={message:t(({params:{property:s,depsCount:o,deps:f}})=>{let d=o===1?"property":"properties";return(0,_Ne.str)`must have ${d} ${f} when property ${s} is present`},"message"),params:t(({params:{property:s,depsCount:o,deps:f,missingProperty:d}})=>(0,_Ne._)`{property: ${s},
|
|
64
64
|
missingProperty: ${d},
|
|
65
65
|
depsCount: ${o},
|
|
66
|
-
deps: ${f}}`,"params")};var Jsr={keyword:"dependencies",type:"object",schemaType:"object",error:Mk.error,code(s){let[o,f]=Wsr(s);Yot(s,o),Kot(s,f)}};function Wsr({schema:s}){let o={},f={};for(let d in s){if(d==="__proto__")continue;let y=Array.isArray(s[d])?o:f;y[d]=s[d]}return[o,f]}t(Wsr,"splitDependencies");function Yot(s,o=s.schema){let{gen:f,data:d,it:y}=s;if(Object.keys(o).length===0)return;let x=f.let("missing");for(let A in o){let F=o[A];if(F.length===0)continue;let W=(0,EH.propertyInData)(f,d,A,y.opts.ownProperties);s.setParams({property:A,depsCount:F.length,deps:F.join(", ")}),y.allErrors?f.if(W,()=>{for(let G of F)(0,EH.checkReportMissingProp)(s,G)}):(f.if((0,_Ne._)`${W} && (${(0,EH.checkMissingProp)(s,F,x)})`),(0,EH.reportMissingProp)(s,x),f.else())}}t(Yot,"validatePropertyDeps");Mk.validatePropertyDeps=Yot;function Kot(s,o=s.schema){let{gen:f,data:d,keyword:y,it:x}=s,A=f.name("valid");for(let F in o)(0,$sr.alwaysValidSchema)(x,o[F])||(f.if((0,EH.propertyInData)(f,d,F,x.opts.ownProperties),()=>{let W=s.subschema({keyword:y,schemaProp:F},A);s.mergeValidEvaluated(W,A)},()=>f.var(A,!0)),s.ok(A))}t(Kot,"validateSchemaDeps");Mk.validateSchemaDeps=Kot;Mk.default=Jsr});var Zot=or(pNe=>{"use strict";Object.defineProperty(pNe,"__esModule",{value:!0});var Xot=Ec(),qsr=tu(),Vsr={message:"property name must be valid",params:t(({params:s})=>(0,Xot._)`{propertyName: ${s.propertyName}}`,"params")},Hsr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Vsr,code(s){let{gen:o,schema:f,data:d,it:y}=s;if((0,qsr.alwaysValidSchema)(y,f))return;let x=o.name("valid");o.forIn("key",d,A=>{s.setParams({propertyName:A}),s.subschema({keyword:"propertyNames",data:A,dataTypes:["string"],propertyName:A,compositeRule:!0},x),o.if((0,Xot.not)(x),()=>{s.error(!0),y.allErrors||o.break()})}),s.ok(x)}};pNe.default=Hsr});var mNe=or(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});var Gce=dT(),xE=Ec(),Gsr=pT(),Yce=tu(),Ysr={message:"must NOT have additional properties",params:t(({params:s})=>(0,xE._)`{additionalProperty: ${s.additionalProperty}}`,"params")},Ksr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Ysr,code(s){let{gen:o,schema:f,parentSchema:d,data:y,errsCount:x,it:A}=s;if(!x)throw new Error("ajv implementation error");let{allErrors:F,opts:W}=A;if(A.props=!0,W.removeAdditional!=="all"&&(0,Yce.alwaysValidSchema)(A,f))return;let G=(0,Gce.allSchemaProperties)(d.properties),be=(0,Gce.allSchemaProperties)(d.patternProperties);de(),s.ok((0,xE._)`${x} === ${Gsr.default.errors}`);function de(){o.forIn("key",y,Vt=>{!G.length&&!be.length?Ue(Vt):o.if(se(Vt),()=>Ue(Vt))})}t(de,"checkAdditionalProperties");function se(Vt){let Ut;if(G.length>8){let Ir=(0,Yce.schemaRefOrVal)(A,d.properties,"properties");Ut=(0,Gce.isOwnProperty)(o,Ir,Vt)}else G.length?Ut=(0,xE.or)(...G.map(Ir=>(0,xE._)`${Vt} === ${Ir}`)):Ut=xE.nil;return be.length&&(Ut=(0,xE.or)(Ut,...be.map(Ir=>(0,xE._)`${(0,Gce.usePattern)(s,Ir)}.test(${Vt})`))),(0,xE.not)(Ut)}t(se,"isAdditional");function Xe(Vt){o.code((0,xE._)`delete ${y}[${Vt}]`)}t(Xe,"deleteAdditional");function Ue(Vt){if(W.removeAdditional==="all"||W.removeAdditional&&f===!1){Xe(Vt);return}if(f===!1){s.setParams({additionalProperty:Vt}),s.error(),F||o.break();return}if(typeof f=="object"&&!(0,Yce.alwaysValidSchema)(A,f)){let Ut=o.name("valid");W.removeAdditional==="failing"?(je(Vt,Ut,!1),o.if((0,xE.not)(Ut),()=>{s.reset(),Xe(Vt)})):(je(Vt,Ut),F||o.if((0,xE.not)(Ut),()=>o.break()))}}t(Ue,"additionalPropertyCode");function je(Vt,Ut,Ir){let wn={keyword:"additionalProperties",dataProp:Vt,dataPropType:Yce.Type.Str};Ir===!1&&Object.assign(wn,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(wn,Ut)}t(je,"applyAdditionalSchema")}};dNe.default=Ksr});var tct=or(gNe=>{"use strict";Object.defineProperty(gNe,"__esModule",{value:!0});var Xsr=lM(),Qot=dT(),hNe=tu(),ect=mNe(),Zsr={keyword:"properties",type:"object",schemaType:"object",code(s){let{gen:o,schema:f,parentSchema:d,data:y,it:x}=s;x.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&ect.default.code(new Xsr.KeywordCxt(x,ect.default,"additionalProperties"));let A=(0,Qot.allSchemaProperties)(f);for(let de of A)x.definedProperties.add(de);x.opts.unevaluated&&A.length&&x.props!==!0&&(x.props=hNe.mergeEvaluated.props(o,(0,hNe.toHash)(A),x.props));let F=A.filter(de=>!(0,hNe.alwaysValidSchema)(x,f[de]));if(F.length===0)return;let W=o.name("valid");for(let de of F)G(de)?be(de):(o.if((0,Qot.propertyInData)(o,y,de,x.opts.ownProperties)),be(de),x.allErrors||o.else().var(W,!0),o.endIf()),s.it.definedProperties.add(de),s.ok(W);function G(de){return x.opts.useDefaults&&!x.compositeRule&&f[de].default!==void 0}t(G,"hasDefault");function be(de){s.subschema({keyword:"properties",schemaProp:de,dataProp:de},W)}t(be,"applyPropertySchema")}};gNe.default=Zsr});var sct=or(yNe=>{"use strict";Object.defineProperty(yNe,"__esModule",{value:!0});var rct=dT(),Kce=Ec(),nct=tu(),ict=tu(),Qsr={keyword:"patternProperties",type:"object",schemaType:"object",code(s){let{gen:o,schema:f,data:d,parentSchema:y,it:x}=s,{opts:A}=x,F=(0,rct.allSchemaProperties)(f),W=F.filter(je=>(0,nct.alwaysValidSchema)(x,f[je]));if(F.length===0||W.length===F.length&&(!x.opts.unevaluated||x.props===!0))return;let G=A.strictSchema&&!A.allowMatchingProperties&&y.properties,be=o.name("valid");x.props!==!0&&!(x.props instanceof Kce.Name)&&(x.props=(0,ict.evaluatedPropsToName)(o,x.props));let{props:de}=x;se();function se(){for(let je of F)G&&Xe(je),x.allErrors?Ue(je):(o.var(be,!0),Ue(je),o.if(be))}t(se,"validatePatternProperties");function Xe(je){for(let Vt in G)new RegExp(je).test(Vt)&&(0,nct.checkStrictMode)(x,`property ${Vt} matches pattern ${je} (use allowMatchingProperties)`)}t(Xe,"checkMatchingProperties");function Ue(je){o.forIn("key",d,Vt=>{o.if((0,Kce._)`${(0,rct.usePattern)(s,je)}.test(${Vt})`,()=>{let Ut=W.includes(je);Ut||s.subschema({keyword:"patternProperties",schemaProp:je,dataProp:Vt,dataPropType:ict.Type.Str},be),x.opts.unevaluated&&de!==!0?o.assign((0,Kce._)`${de}[${Vt}]`,!0):!Ut&&!x.allErrors&&o.if((0,Kce.not)(be),()=>o.break())})})}t(Ue,"validateProperties")}};yNe.default=Qsr});var act=or(vNe=>{"use strict";Object.defineProperty(vNe,"__esModule",{value:!0});var ear=tu(),tar={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(s){let{gen:o,schema:f,it:d}=s;if((0,ear.alwaysValidSchema)(d,f)){s.fail();return}let y=o.name("valid");s.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},y),s.failResult(y,()=>s.reset(),()=>s.error())},error:{message:"must NOT be valid"}};vNe.default=tar});var oct=or(bNe=>{"use strict";Object.defineProperty(bNe,"__esModule",{value:!0});var rar=dT(),nar={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rar.validateUnion,error:{message:"must match a schema in anyOf"}};bNe.default=nar});var cct=or(SNe=>{"use strict";Object.defineProperty(SNe,"__esModule",{value:!0});var Xce=Ec(),iar=tu(),sar={message:"must match exactly one schema in oneOf",params:t(({params:s})=>(0,Xce._)`{passingSchemas: ${s.passing}}`,"params")},aar={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:sar,code(s){let{gen:o,schema:f,parentSchema:d,it:y}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");if(y.opts.discriminator&&d.discriminator)return;let x=f,A=o.let("valid",!1),F=o.let("passing",null),W=o.name("_valid");s.setParams({passing:F}),o.block(G),s.result(A,()=>s.reset(),()=>s.error(!0));function G(){x.forEach((be,de)=>{let se;(0,iar.alwaysValidSchema)(y,be)?o.var(W,!0):se=s.subschema({keyword:"oneOf",schemaProp:de,compositeRule:!0},W),de>0&&o.if((0,Xce._)`${W} && ${A}`).assign(A,!1).assign(F,(0,Xce._)`[${F}, ${de}]`).else(),o.if(W,()=>{o.assign(A,!0),o.assign(F,de),se&&s.mergeEvaluated(se,Xce.Name)})})}t(G,"validateOneOf")}};SNe.default=aar});var lct=or(TNe=>{"use strict";Object.defineProperty(TNe,"__esModule",{value:!0});var oar=tu(),car={keyword:"allOf",schemaType:"array",code(s){let{gen:o,schema:f,it:d}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");let y=o.name("valid");f.forEach((x,A)=>{if((0,oar.alwaysValidSchema)(d,x))return;let F=s.subschema({keyword:"allOf",schemaProp:A},y);s.ok(y),s.mergeEvaluated(F)})}};TNe.default=car});var _ct=or(xNe=>{"use strict";Object.defineProperty(xNe,"__esModule",{value:!0});var Zce=Ec(),fct=tu(),lar={message:t(({params:s})=>(0,Zce.str)`must match "${s.ifClause}" schema`,"message"),params:t(({params:s})=>(0,Zce._)`{failingKeyword: ${s.ifClause}}`,"params")},uar={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:lar,code(s){let{gen:o,parentSchema:f,it:d}=s;f.then===void 0&&f.else===void 0&&(0,fct.checkStrictMode)(d,'"if" without "then" and "else" is ignored');let y=uct(d,"then"),x=uct(d,"else");if(!y&&!x)return;let A=o.let("valid",!0),F=o.name("_valid");if(W(),s.reset(),y&&x){let be=o.let("ifClause");s.setParams({ifClause:be}),o.if(F,G("then",be),G("else",be))}else y?o.if(F,G("then")):o.if((0,Zce.not)(F),G("else"));s.pass(A,()=>s.error(!0));function W(){let be=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},F);s.mergeEvaluated(be)}t(W,"validateIf");function G(be,de){return()=>{let se=s.subschema({keyword:be},F);o.assign(A,F),s.mergeValidEvaluated(se,A),de?o.assign(de,(0,Zce._)`${be}`):s.setParams({ifClause:be})}}t(G,"validateClause")}};function uct(s,o){let f=s.schema[o];return f!==void 0&&!(0,fct.alwaysValidSchema)(s,f)}t(uct,"hasSchema");xNe.default=uar});var pct=or(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});var far=tu(),_ar={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:s,parentSchema:o,it:f}){o.if===void 0&&(0,far.checkStrictMode)(f,`"${s}" without "if" is ignored`)}};ENe.default=_ar});var kNe=or(CNe=>{"use strict";Object.defineProperty(CNe,"__esModule",{value:!0});var par=oNe(),dar=qot(),mar=cNe(),har=Hot(),gar=Got(),yar=Hce(),bar=Zot(),Sar=mNe(),Tar=tct(),xar=sct(),Ear=act(),Car=oct(),kar=cct(),war=lct(),Dar=_ct(),Par=pct();function Aar(s=!1){let o=[Ear.default,Car.default,kar.default,war.default,Dar.default,Par.default,bar.default,Sar.default,yar.default,Tar.default,xar.default];return s?o.push(dar.default,har.default):o.push(par.default,mar.default),o.push(gar.default),o}t(Aar,"getApplicator");CNe.default=Aar});var DNe=or(CH=>{"use strict";Object.defineProperty(CH,"__esModule",{value:!0});CH.dynamicAnchor=void 0;var wNe=Ec(),Nar=pT(),dct=fH(),Iar=Uce(),Oar={keyword:"$dynamicAnchor",schemaType:"string",code:t(s=>mct(s,s.schema),"code")};function mct(s,o){let{gen:f,it:d}=s;d.schemaEnv.root.dynamicAnchors[o]=!0;let y=(0,wNe._)`${Nar.default.dynamicAnchors}${(0,wNe.getProperty)(o)}`,x=d.errSchemaPath==="#"?d.validateName:Far(s);f.if((0,wNe._)`!${y}`,()=>f.assign(y,x))}t(mct,"dynamicAnchor");CH.dynamicAnchor=mct;function Far(s){let{schemaEnv:o,schema:f,self:d}=s.it,{root:y,baseId:x,localRefs:A,meta:F}=o.root,{schemaId:W}=d.opts,G=new dct.SchemaEnv({schema:f,schemaId:W,root:y,baseId:x,localRefs:A,meta:F});return dct.compileSchema.call(d,G),(0,Iar.getValidate)(s,G)}t(Far,"_getValidate");CH.default=Oar});var PNe=or(kH=>{"use strict";Object.defineProperty(kH,"__esModule",{value:!0});kH.dynamicRef=void 0;var hct=Ec(),Lar=pT(),gct=Uce(),Rar={keyword:"$dynamicRef",schemaType:"string",code:t(s=>yct(s,s.schema),"code")};function yct(s,o){let{gen:f,keyword:d,it:y}=s;if(o[0]!=="#")throw new Error(`"${d}" only supports hash fragment reference`);let x=o.slice(1);if(y.allErrors)A();else{let W=f.let("valid",!1);A(W),s.ok(W)}function A(W){if(y.schemaEnv.root.dynamicAnchors[x]){let G=f.let("_v",(0,hct._)`${Lar.default.dynamicAnchors}${(0,hct.getProperty)(x)}`);f.if(G,F(G,W),F(y.validateName,W))}else F(y.validateName,W)()}t(A,"_dynamicRef");function F(W,G){return G?()=>f.block(()=>{(0,gct.callRef)(s,W),f.let(G,!0)}):()=>(0,gct.callRef)(s,W)}t(F,"_callRef")}t(yct,"dynamicRef");kH.dynamicRef=yct;kH.default=Rar});var vct=or(ANe=>{"use strict";Object.defineProperty(ANe,"__esModule",{value:!0});var Mar=DNe(),jar=tu(),Bar={keyword:"$recursiveAnchor",schemaType:"boolean",code(s){s.schema?(0,Mar.dynamicAnchor)(s,""):(0,jar.checkStrictMode)(s.it,"$recursiveAnchor: false is ignored")}};ANe.default=Bar});var bct=or(NNe=>{"use strict";Object.defineProperty(NNe,"__esModule",{value:!0});var Uar=PNe(),zar={keyword:"$recursiveRef",schemaType:"string",code:t(s=>(0,Uar.dynamicRef)(s,s.schema),"code")};NNe.default=zar});var Sct=or(INe=>{"use strict";Object.defineProperty(INe,"__esModule",{value:!0});var $ar=DNe(),Jar=PNe(),War=vct(),qar=bct(),Var=[$ar.default,Jar.default,War.default,qar.default];INe.default=Var});var xct=or(ONe=>{"use strict";Object.defineProperty(ONe,"__esModule",{value:!0});var Tct=Hce(),Har={keyword:"dependentRequired",type:"object",schemaType:"object",error:Tct.error,code:t(s=>(0,Tct.validatePropertyDeps)(s),"code")};ONe.default=Har});var Ect=or(FNe=>{"use strict";Object.defineProperty(FNe,"__esModule",{value:!0});var Gar=Hce(),Yar={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t(s=>(0,Gar.validateSchemaDeps)(s),"code")};FNe.default=Yar});var Cct=or(LNe=>{"use strict";Object.defineProperty(LNe,"__esModule",{value:!0});var Kar=tu(),Xar={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:s,parentSchema:o,it:f}){o.contains===void 0&&(0,Kar.checkStrictMode)(f,`"${s}" without "contains" is ignored`)}};LNe.default=Xar});var kct=or(RNe=>{"use strict";Object.defineProperty(RNe,"__esModule",{value:!0});var Zar=xct(),Qar=Ect(),eor=Cct(),tor=[Zar.default,Qar.default,eor.default];RNe.default=tor});var Dct=or(MNe=>{"use strict";Object.defineProperty(MNe,"__esModule",{value:!0});var uI=Ec(),wct=tu(),ror=pT(),nor={message:"must NOT have unevaluated properties",params:t(({params:s})=>(0,uI._)`{unevaluatedProperty: ${s.unevaluatedProperty}}`,"params")},ior={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:nor,code(s){let{gen:o,schema:f,data:d,errsCount:y,it:x}=s;if(!y)throw new Error("ajv implementation error");let{allErrors:A,props:F}=x;F instanceof uI.Name?o.if((0,uI._)`${F} !== true`,()=>o.forIn("key",d,de=>o.if(G(F,de),()=>W(de)))):F!==!0&&o.forIn("key",d,de=>F===void 0?W(de):o.if(be(F,de),()=>W(de))),x.props=!0,s.ok((0,uI._)`${y} === ${ror.default.errors}`);function W(de){if(f===!1){s.setParams({unevaluatedProperty:de}),s.error(),A||o.break();return}if(!(0,wct.alwaysValidSchema)(x,f)){let se=o.name("valid");s.subschema({keyword:"unevaluatedProperties",dataProp:de,dataPropType:wct.Type.Str},se),A||o.if((0,uI.not)(se),()=>o.break())}}t(W,"unevaluatedPropCode");function G(de,se){return(0,uI._)`!${de} || !${de}[${se}]`}t(G,"unevaluatedDynamic");function be(de,se){let Xe=[];for(let Ue in de)de[Ue]===!0&&Xe.push((0,uI._)`${se} !== ${Ue}`);return(0,uI.and)(...Xe)}t(be,"unevaluatedStatic")}};MNe.default=ior});var Act=or(jNe=>{"use strict";Object.defineProperty(jNe,"__esModule",{value:!0});var IO=Ec(),Pct=tu(),sor={message:t(({params:{len:s}})=>(0,IO.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,IO._)`{limit: ${s}}`,"params")},aor={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:sor,code(s){let{gen:o,schema:f,data:d,it:y}=s,x=y.items||0;if(x===!0)return;let A=o.const("len",(0,IO._)`${d}.length`);if(f===!1)s.setParams({len:x}),s.fail((0,IO._)`${A} > ${x}`);else if(typeof f=="object"&&!(0,Pct.alwaysValidSchema)(y,f)){let W=o.var("valid",(0,IO._)`${A} <= ${x}`);o.if((0,IO.not)(W),()=>F(W,x)),s.ok(W)}y.items=!0;function F(W,G){o.forRange("i",G,A,be=>{s.subschema({keyword:"unevaluatedItems",dataProp:be,dataPropType:Pct.Type.Num},W),y.allErrors||o.if((0,IO.not)(W),()=>o.break())})}t(F,"validateItems")}};jNe.default=aor});var Nct=or(BNe=>{"use strict";Object.defineProperty(BNe,"__esModule",{value:!0});var oor=Dct(),cor=Act(),lor=[oor.default,cor.default];BNe.default=lor});var Ict=or(UNe=>{"use strict";Object.defineProperty(UNe,"__esModule",{value:!0});var km=Ec(),uor={message:t(({schemaCode:s})=>(0,km.str)`must match format "${s}"`,"message"),params:t(({schemaCode:s})=>(0,km._)`{format: ${s}}`,"params")},_or={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:uor,code(s,o){let{gen:f,data:d,$data:y,schema:x,schemaCode:A,it:F}=s,{opts:W,errSchemaPath:G,schemaEnv:be,self:de}=F;if(!W.validateFormats)return;y?se():Xe();function se(){let Ue=f.scopeValue("formats",{ref:de.formats,code:W.code.formats}),je=f.const("fDef",(0,km._)`${Ue}[${A}]`),Vt=f.let("fType"),Ut=f.let("format");f.if((0,km._)`typeof ${je} == "object" && !(${je} instanceof RegExp)`,()=>f.assign(Vt,(0,km._)`${je}.type || "string"`).assign(Ut,(0,km._)`${je}.validate`),()=>f.assign(Vt,(0,km._)`"string"`).assign(Ut,je)),s.fail$data((0,km.or)(Ir(),wn()));function Ir(){return W.strictSchema===!1?km.nil:(0,km._)`${A} && !${Ut}`}t(Ir,"unknownFmt");function wn(){let sn=be.$async?(0,km._)`(${je}.async ? await ${Ut}(${d}) : ${Ut}(${d}))`:(0,km._)`${Ut}(${d})`,Jn=(0,km._)`(typeof ${Ut} == "function" ? ${sn} : ${Ut}.test(${d}))`;return(0,km._)`${Ut} && ${Ut} !== true && ${Vt} === ${o} && !${Jn}`}t(wn,"invalidFmt")}t(se,"validate$DataFormat");function Xe(){let Ue=de.formats[x];if(!Ue){Ir();return}if(Ue===!0)return;let[je,Vt,Ut]=wn(Ue);je===o&&s.pass(sn());function Ir(){if(W.strictSchema===!1){de.logger.warn(Jn());return}throw new Error(Jn());function Jn(){return`unknown format "${x}" ignored in schema at path "${G}"`}}t(Ir,"unknownFormat");function wn(Jn){let kr=Jn instanceof RegExp?(0,km.regexpCode)(Jn):W.code.formats?(0,km._)`${W.code.formats}${(0,km.getProperty)(x)}`:void 0,yr=f.scopeValue("formats",{key:x,ref:Jn,code:kr});return typeof Jn=="object"&&!(Jn instanceof RegExp)?[Jn.type||"string",Jn.validate,(0,km._)`${yr}.validate`]:["string",Jn,yr]}t(wn,"getFormat");function sn(){if(typeof Ue=="object"&&!(Ue instanceof RegExp)&&Ue.async){if(!be.$async)throw new Error("async format in sync schema");return(0,km._)`await ${Ut}(${d})`}return typeof Vt=="function"?(0,km._)`${Ut}(${d})`:(0,km._)`${Ut}.test(${d})`}t(sn,"validCondition")}t(Xe,"validateFormat")}};UNe.default=_or});var $Ne=or(zNe=>{"use strict";Object.defineProperty(zNe,"__esModule",{value:!0});var por=Ict(),dor=[por.default];zNe.default=dor});var JNe=or(dM=>{"use strict";Object.defineProperty(dM,"__esModule",{value:!0});dM.contentVocabulary=dM.metadataVocabulary=void 0;dM.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];dM.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Fct=or(WNe=>{"use strict";Object.defineProperty(WNe,"__esModule",{value:!0});var mor=J6e(),hor=sNe(),gor=kNe(),yor=Sct(),vor=kct(),bor=Nct(),Sor=$Ne(),Oct=JNe(),Tor=[yor.default,mor.default,hor.default,(0,gor.default)(!0),Sor.default,Oct.metadataVocabulary,Oct.contentVocabulary,vor.default,bor.default];WNe.default=Tor});var Rct=or(Qce=>{"use strict";Object.defineProperty(Qce,"__esModule",{value:!0});Qce.DiscrError=void 0;var Lct;(function(s){s.Tag="tag",s.Mapping="mapping"})(Lct||(Qce.DiscrError=Lct={}))});var HNe=or(VNe=>{"use strict";Object.defineProperty(VNe,"__esModule",{value:!0});var mM=Ec(),qNe=Rct(),Mct=fH(),xor=uM(),Eor=tu(),Cor={message:t(({params:{discrError:s,tagName:o}})=>s===qNe.DiscrError.Tag?`tag "${o}" must be string`:`value of tag "${o}" must be in oneOf`,"message"),params:t(({params:{discrError:s,tag:o,tagName:f}})=>(0,mM._)`{error: ${s}, tag: ${f}, tagValue: ${o}}`,"params")},kor={keyword:"discriminator",type:"object",schemaType:"object",error:Cor,code(s){let{gen:o,data:f,schema:d,parentSchema:y,it:x}=s,{oneOf:A}=y;if(!x.opts.discriminator)throw new Error("discriminator: requires discriminator option");let F=d.propertyName;if(typeof F!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!A)throw new Error("discriminator: requires oneOf keyword");let W=o.let("valid",!1),G=o.const("tag",(0,mM._)`${f}${(0,mM.getProperty)(F)}`);o.if((0,mM._)`typeof ${G} == "string"`,()=>be(),()=>s.error(!1,{discrError:qNe.DiscrError.Tag,tag:G,tagName:F})),s.ok(W);function be(){let Xe=se();o.if(!1);for(let Ue in Xe)o.elseIf((0,mM._)`${G} === ${Ue}`),o.assign(W,de(Xe[Ue]));o.else(),s.error(!1,{discrError:qNe.DiscrError.Mapping,tag:G,tagName:F}),o.endIf()}t(be,"validateMapping");function de(Xe){let Ue=o.name("valid"),je=s.subschema({keyword:"oneOf",schemaProp:Xe},Ue);return s.mergeEvaluated(je,mM.Name),Ue}t(de,"applyTagSchema");function se(){var Xe;let Ue={},je=Ut(y),Vt=!0;for(let sn=0;sn<A.length;sn++){let Jn=A[sn];if(Jn?.$ref&&!(0,Eor.schemaHasRulesButRef)(Jn,x.self.RULES)){let yr=Jn.$ref;if(Jn=Mct.resolveRef.call(x.self,x.schemaEnv.root,x.baseId,yr),Jn instanceof Mct.SchemaEnv&&(Jn=Jn.schema),Jn===void 0)throw new xor.default(x.opts.uriResolver,x.baseId,yr)}let kr=(Xe=Jn?.properties)===null||Xe===void 0?void 0:Xe[F];if(typeof kr!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${F}"`);Vt=Vt&&(je||Ut(Jn)),Ir(kr,sn)}if(!Vt)throw new Error(`discriminator: "${F}" must be required`);return Ue;function Ut({required:sn}){return Array.isArray(sn)&&sn.includes(F)}function Ir(sn,Jn){if(sn.const)wn(sn.const,Jn);else if(sn.enum)for(let kr of sn.enum)wn(kr,Jn);else throw new Error(`discriminator: "properties/${F}" must have "const" or "enum"`)}function wn(sn,Jn){if(typeof sn!="string"||sn in Ue)throw new Error(`discriminator: "${F}" values must be unique strings`);Ue[sn]=Jn}}t(se,"getMapping")}};VNe.default=kor});var jct=or((XAr,wor)=>{wor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var Bct=or((ZAr,Dor)=>{Dor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Uct=or((QAr,Por)=>{Por.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var zct=or((e6r,Aor)=>{Aor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var $ct=or((t6r,Nor)=>{Nor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Jct=or((r6r,Ior)=>{Ior.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Wct=or((n6r,Oor)=>{Oor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var qct=or((i6r,For)=>{For.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Vct=or(GNe=>{"use strict";Object.defineProperty(GNe,"__esModule",{value:!0});var Lor=jct(),Ror=Bct(),Mor=Uct(),jor=zct(),Bor=$ct(),Uor=Jct(),zor=Wct(),$or=qct(),Jor=["/properties"];function Wor(s){return[Lor,Ror,Mor,jor,Bor,o(this,Uor),zor,o(this,$or)].forEach(f=>this.addMetaSchema(f,void 0,!1)),this;function o(f,d){return s?f.$dataMetaSchema(d,Jor):d}t(o,"with$data")}t(Wor,"addMetaSchema2020");GNe.default=Wor});var ele=or((Np,KNe)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.MissingRefError=Np.ValidationError=Np.CodeGen=Np.Name=Np.nil=Np.stringify=Np.str=Np._=Np.KeywordCxt=Np.Ajv2020=void 0;var qor=U6e(),Vor=Fct(),Hor=HNe(),Gor=Vct(),YNe="https://json-schema.org/draft/2020-12/schema",hM=class extends qor.default{static{t(this,"Ajv2020")}constructor(o={}){super({...o,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Vor.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(Hor.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:o,meta:f}=this.opts;f&&(Gor.default.call(this,o),this.refs["http://json-schema.org/schema"]=YNe)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(YNe)?YNe:void 0)}};Np.Ajv2020=hM;KNe.exports=Np=hM;KNe.exports.Ajv2020=hM;Object.defineProperty(Np,"__esModule",{value:!0});Np.default=hM;var Yor=lM();Object.defineProperty(Np,"KeywordCxt",{enumerable:!0,get:t(function(){return Yor.KeywordCxt},"get")});var gM=Ec();Object.defineProperty(Np,"_",{enumerable:!0,get:t(function(){return gM._},"get")});Object.defineProperty(Np,"str",{enumerable:!0,get:t(function(){return gM.str},"get")});Object.defineProperty(Np,"stringify",{enumerable:!0,get:t(function(){return gM.stringify},"get")});Object.defineProperty(Np,"nil",{enumerable:!0,get:t(function(){return gM.nil},"get")});Object.defineProperty(Np,"Name",{enumerable:!0,get:t(function(){return gM.Name},"get")});Object.defineProperty(Np,"CodeGen",{enumerable:!0,get:t(function(){return gM.CodeGen},"get")});var Kor=uH();Object.defineProperty(Np,"ValidationError",{enumerable:!0,get:t(function(){return Kor.default},"get")});var Xor=uM();Object.defineProperty(Np,"MissingRefError",{enumerable:!0,get:t(function(){return Xor.default},"get")})});var elt=or(Bk=>{"use strict";Object.defineProperty(Bk,"__esModule",{value:!0});Bk.formatNames=Bk.fastFormats=Bk.fullFormats=void 0;function jk(s,o){return{validate:s,compare:o}}t(jk,"fmtDef");Bk.fullFormats={date:jk(Kct,eIe),time:jk(ZNe(!0),tIe),"date-time":jk(Hct(!0),Zct),"iso-time":jk(ZNe(),Xct),"iso-date-time":jk(Hct(),Qct),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:ncr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:ucr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:icr,int32:{type:"number",validate:ocr},int64:{type:"number",validate:ccr},float:{type:"number",validate:Yct},double:{type:"number",validate:Yct},password:!0,binary:!0};Bk.fastFormats={...Bk.fullFormats,date:jk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,eIe),time:jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,tIe),"date-time":jk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Zct),"iso-time":jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Xct),"iso-date-time":jk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Qct),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Bk.formatNames=Object.keys(Bk.fullFormats);function Zor(s){return s%4===0&&(s%100!==0||s%400===0)}t(Zor,"isLeapYear");var Qor=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ecr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Kct(s){let o=Qor.exec(s);if(!o)return!1;let f=+o[1],d=+o[2],y=+o[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&Zor(f)?29:ecr[d])}t(Kct,"date");function eIe(s,o){if(s&&o)return s>o?1:s<o?-1:0}t(eIe,"compareDate");var XNe=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function ZNe(s){return t(function(f){let d=XNe.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],A=+d[3],F=d[4],W=d[5]==="-"?-1:1,G=+(d[6]||0),be=+(d[7]||0);if(G>23||be>59||s&&!F)return!1;if(y<=23&&x<=59&&A<60)return!0;let de=x-be*W,se=y-G*W-(de<0?1:0);return(se===23||se===-1)&&(de===59||de===-1)&&A<61},"time")}t(ZNe,"getTime");function tIe(s,o){if(!(s&&o))return;let f=new Date("2020-01-01T"+s).valueOf(),d=new Date("2020-01-01T"+o).valueOf();if(f&&d)return f-d}t(tIe,"compareTime");function Xct(s,o){if(!(s&&o))return;let f=XNe.exec(s),d=XNe.exec(o);if(f&&d)return s=f[1]+f[2]+f[3],o=d[1]+d[2]+d[3],s>o?1:s<o?-1:0}t(Xct,"compareIsoTime");var QNe=/t|\s/i;function Hct(s){let o=ZNe(s);return t(function(d){let y=d.split(QNe);return y.length===2&&Kct(y[0])&&o(y[1])},"date_time")}t(Hct,"getDateTime");function Zct(s,o){if(!(s&&o))return;let f=new Date(s).valueOf(),d=new Date(o).valueOf();if(f&&d)return f-d}t(Zct,"compareDateTime");function Qct(s,o){if(!(s&&o))return;let[f,d]=s.split(QNe),[y,x]=o.split(QNe),A=eIe(f,y);if(A!==void 0)return A||tIe(d,x)}t(Qct,"compareIsoDateTime");var tcr=/\/|:/,rcr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function ncr(s){return tcr.test(s)&&rcr.test(s)}t(ncr,"uri");var Gct=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function icr(s){return Gct.lastIndex=0,Gct.test(s)}t(icr,"byte");var scr=-(2**31),acr=2**31-1;function ocr(s){return Number.isInteger(s)&&s<=acr&&s>=scr}t(ocr,"validateInt32");function ccr(s){return Number.isInteger(s)}t(ccr,"validateInt64");function Yct(){return!0}t(Yct,"validateNumber");var lcr=/[^\\]\\Z/;function ucr(s){if(lcr.test(s))return!1;try{return new RegExp(s),!0}catch{return!1}}t(ucr,"regex")});var rlt=or(rIe=>{"use strict";Object.defineProperty(rIe,"__esModule",{value:!0});var fcr=J6e(),_cr=sNe(),pcr=kNe(),dcr=$Ne(),tlt=JNe(),mcr=[fcr.default,_cr.default,(0,pcr.default)(),dcr.default,tlt.metadataVocabulary,tlt.contentVocabulary];rIe.default=mcr});var nlt=or((f6r,hcr)=>{hcr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var wH=or((Ip,nIe)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.MissingRefError=Ip.ValidationError=Ip.CodeGen=Ip.Name=Ip.nil=Ip.stringify=Ip.str=Ip._=Ip.KeywordCxt=Ip.Ajv=void 0;var gcr=U6e(),ycr=rlt(),vcr=HNe(),ilt=nlt(),bcr=["/properties"],tle="http://json-schema.org/draft-07/schema",yM=class extends gcr.default{static{t(this,"Ajv")}_addVocabularies(){super._addVocabularies(),ycr.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(vcr.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let o=this.opts.$data?this.$dataMetaSchema(ilt,bcr):ilt;this.addMetaSchema(o,tle,!1),this.refs["http://json-schema.org/schema"]=tle}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(tle)?tle:void 0)}};Ip.Ajv=yM;nIe.exports=Ip=yM;nIe.exports.Ajv=yM;Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=yM;var Scr=lM();Object.defineProperty(Ip,"KeywordCxt",{enumerable:!0,get:t(function(){return Scr.KeywordCxt},"get")});var vM=Ec();Object.defineProperty(Ip,"_",{enumerable:!0,get:t(function(){return vM._},"get")});Object.defineProperty(Ip,"str",{enumerable:!0,get:t(function(){return vM.str},"get")});Object.defineProperty(Ip,"stringify",{enumerable:!0,get:t(function(){return vM.stringify},"get")});Object.defineProperty(Ip,"nil",{enumerable:!0,get:t(function(){return vM.nil},"get")});Object.defineProperty(Ip,"Name",{enumerable:!0,get:t(function(){return vM.Name},"get")});Object.defineProperty(Ip,"CodeGen",{enumerable:!0,get:t(function(){return vM.CodeGen},"get")});var Tcr=uH();Object.defineProperty(Ip,"ValidationError",{enumerable:!0,get:t(function(){return Tcr.default},"get")});var xcr=uM();Object.defineProperty(Ip,"MissingRefError",{enumerable:!0,get:t(function(){return xcr.default},"get")})});var slt=or(bM=>{"use strict";Object.defineProperty(bM,"__esModule",{value:!0});bM.formatLimitDefinition=void 0;var Ecr=wH(),EE=Ec(),fI=EE.operators,rle={formatMaximum:{okStr:"<=",ok:fI.LTE,fail:fI.GT},formatMinimum:{okStr:">=",ok:fI.GTE,fail:fI.LT},formatExclusiveMaximum:{okStr:"<",ok:fI.LT,fail:fI.GTE},formatExclusiveMinimum:{okStr:">",ok:fI.GT,fail:fI.LTE}},Ccr={message:t(({keyword:s,schemaCode:o})=>(0,EE.str)`should be ${rle[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,EE._)`{comparison: ${rle[s].okStr}, limit: ${o}}`,"params")};bM.formatLimitDefinition={keyword:Object.keys(rle),type:"string",schemaType:"string",$data:!0,error:Ccr,code(s){let{gen:o,data:f,schemaCode:d,keyword:y,it:x}=s,{opts:A,self:F}=x;if(!A.validateFormats)return;let W=new Ecr.KeywordCxt(x,F.RULES.all.format.definition,"format");W.$data?G():be();function G(){let se=o.scopeValue("formats",{ref:F.formats,code:A.code.formats}),Xe=o.const("fmt",(0,EE._)`${se}[${W.schemaCode}]`);s.fail$data((0,EE.or)((0,EE._)`typeof ${Xe} != "object"`,(0,EE._)`${Xe} instanceof RegExp`,(0,EE._)`typeof ${Xe}.compare != "function"`,de(Xe)))}t(G,"validate$DataFormat");function be(){let se=W.schema,Xe=F.formats[se];if(!Xe||Xe===!0)return;if(typeof Xe!="object"||Xe instanceof RegExp||typeof Xe.compare!="function")throw new Error(`"${y}": format "${se}" does not define "compare" function`);let Ue=o.scopeValue("formats",{key:se,ref:Xe,code:A.code.formats?(0,EE._)`${A.code.formats}${(0,EE.getProperty)(se)}`:void 0});s.fail$data(de(Ue))}t(be,"validateFormat");function de(se){return(0,EE._)`${se}.compare(${f}, ${d}) ${rle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var kcr=t(s=>(s.addKeyword(bM.formatLimitDefinition),s),"formatLimitPlugin");bM.default=kcr});var llt=or((DH,clt)=>{"use strict";Object.defineProperty(DH,"__esModule",{value:!0});var SM=elt(),wcr=slt(),iIe=Ec(),alt=new iIe.Name("fullFormats"),Dcr=new iIe.Name("fastFormats"),sIe=t((s,o={keywords:!0})=>{if(Array.isArray(o))return olt(s,o,SM.fullFormats,alt),s;let[f,d]=o.mode==="fast"?[SM.fastFormats,Dcr]:[SM.fullFormats,alt],y=o.formats||SM.formatNames;return olt(s,y,f,d),o.keywords&&(0,wcr.default)(s),s},"formatsPlugin");sIe.get=(s,o="full")=>{let d=(o==="fast"?SM.fastFormats:SM.fullFormats)[s];if(!d)throw new Error(`Unknown format "${s}"`);return d};function olt(s,o,f,d){var y,x;(y=(x=s.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,iIe._)`require("ajv-formats/dist/formats").${d}`);for(let A of o)s.addFormat(A,f[A])}t(olt,"addFormats");clt.exports=DH=sIe;Object.defineProperty(DH,"__esModule",{value:!0});DH.default=sIe});var _le=or(TM=>{"use strict";Object.defineProperty(TM,"__esModule",{value:!0});TM.getDeepKeys=TM.toJSON=void 0;var rlr=["function","symbol","undefined"],nlr=["constructor","prototype","__proto__"],ilr=Object.getPrototypeOf({});function slr(){let s={},o=this;for(let f of Elt(o))if(typeof f=="string"){let d=o[f],y=typeof d;rlr.includes(y)||(s[f]=d)}return s}t(slr,"toJSON");TM.toJSON=slr;function Elt(s,o=[]){let f=[];for(;s&&s!==ilr;)f=f.concat(Object.getOwnPropertyNames(s),Object.getOwnPropertySymbols(s)),s=Object.getPrototypeOf(s);let d=new Set(f);for(let y of o.concat(nlr))d.delete(y);return d}t(Elt,"getDeepKeys");TM.getDeepKeys=Elt});var uIe=or(xM=>{"use strict";Object.defineProperty(xM,"__esModule",{value:!0});xM.addInspectMethod=xM.format=void 0;var Clt=uo("util"),alr=_le(),klt=Clt.inspect.custom||Symbol.for("nodejs.util.inspect.custom");xM.format=Clt.format;function olr(s){s[klt]=clr}t(olr,"addInspectMethod");xM.addInspectMethod=olr;function clr(){let s={},o=this;for(let f of alr.getDeepKeys(o)){let d=o[f];s[f]=d}return delete s[klt],s}t(clr,"inspect")});var Plt=or(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0});zk.lazyJoinStacks=zk.joinStacks=zk.isWritableStack=zk.isLazyStack=void 0;var llr=/\r?\n/,ulr=/\bono[ @]/;function flr(s){return!!(s&&s.configurable&&typeof s.get=="function")}t(flr,"isLazyStack");zk.isLazyStack=flr;function _lr(s){return!!(!s||s.writable||typeof s.set=="function")}t(_lr,"isWritableStack");zk.isWritableStack=_lr;function wlt(s,o){let f=Dlt(s.stack),d=o?o.stack:void 0;return f&&d?f+`
|
|
66
|
+
deps: ${f}}`,"params")};var Jsr={keyword:"dependencies",type:"object",schemaType:"object",error:Mk.error,code(s){let[o,f]=Wsr(s);Yot(s,o),Kot(s,f)}};function Wsr({schema:s}){let o={},f={};for(let d in s){if(d==="__proto__")continue;let y=Array.isArray(s[d])?o:f;y[d]=s[d]}return[o,f]}t(Wsr,"splitDependencies");function Yot(s,o=s.schema){let{gen:f,data:d,it:y}=s;if(Object.keys(o).length===0)return;let x=f.let("missing");for(let A in o){let F=o[A];if(F.length===0)continue;let W=(0,EH.propertyInData)(f,d,A,y.opts.ownProperties);s.setParams({property:A,depsCount:F.length,deps:F.join(", ")}),y.allErrors?f.if(W,()=>{for(let G of F)(0,EH.checkReportMissingProp)(s,G)}):(f.if((0,_Ne._)`${W} && (${(0,EH.checkMissingProp)(s,F,x)})`),(0,EH.reportMissingProp)(s,x),f.else())}}t(Yot,"validatePropertyDeps");Mk.validatePropertyDeps=Yot;function Kot(s,o=s.schema){let{gen:f,data:d,keyword:y,it:x}=s,A=f.name("valid");for(let F in o)(0,$sr.alwaysValidSchema)(x,o[F])||(f.if((0,EH.propertyInData)(f,d,F,x.opts.ownProperties),()=>{let W=s.subschema({keyword:y,schemaProp:F},A);s.mergeValidEvaluated(W,A)},()=>f.var(A,!0)),s.ok(A))}t(Kot,"validateSchemaDeps");Mk.validateSchemaDeps=Kot;Mk.default=Jsr});var Zot=or(pNe=>{"use strict";Object.defineProperty(pNe,"__esModule",{value:!0});var Xot=Ec(),qsr=tu(),Vsr={message:"property name must be valid",params:t(({params:s})=>(0,Xot._)`{propertyName: ${s.propertyName}}`,"params")},Hsr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Vsr,code(s){let{gen:o,schema:f,data:d,it:y}=s;if((0,qsr.alwaysValidSchema)(y,f))return;let x=o.name("valid");o.forIn("key",d,A=>{s.setParams({propertyName:A}),s.subschema({keyword:"propertyNames",data:A,dataTypes:["string"],propertyName:A,compositeRule:!0},x),o.if((0,Xot.not)(x),()=>{s.error(!0),y.allErrors||o.break()})}),s.ok(x)}};pNe.default=Hsr});var mNe=or(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});var Gce=dT(),xE=Ec(),Gsr=pT(),Yce=tu(),Ysr={message:"must NOT have additional properties",params:t(({params:s})=>(0,xE._)`{additionalProperty: ${s.additionalProperty}}`,"params")},Ksr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Ysr,code(s){let{gen:o,schema:f,parentSchema:d,data:y,errsCount:x,it:A}=s;if(!x)throw new Error("ajv implementation error");let{allErrors:F,opts:W}=A;if(A.props=!0,W.removeAdditional!=="all"&&(0,Yce.alwaysValidSchema)(A,f))return;let G=(0,Gce.allSchemaProperties)(d.properties),be=(0,Gce.allSchemaProperties)(d.patternProperties);de(),s.ok((0,xE._)`${x} === ${Gsr.default.errors}`);function de(){o.forIn("key",y,Vt=>{!G.length&&!be.length?Ue(Vt):o.if(se(Vt),()=>Ue(Vt))})}t(de,"checkAdditionalProperties");function se(Vt){let Ut;if(G.length>8){let Ir=(0,Yce.schemaRefOrVal)(A,d.properties,"properties");Ut=(0,Gce.isOwnProperty)(o,Ir,Vt)}else G.length?Ut=(0,xE.or)(...G.map(Ir=>(0,xE._)`${Vt} === ${Ir}`)):Ut=xE.nil;return be.length&&(Ut=(0,xE.or)(Ut,...be.map(Ir=>(0,xE._)`${(0,Gce.usePattern)(s,Ir)}.test(${Vt})`))),(0,xE.not)(Ut)}t(se,"isAdditional");function Xe(Vt){o.code((0,xE._)`delete ${y}[${Vt}]`)}t(Xe,"deleteAdditional");function Ue(Vt){if(W.removeAdditional==="all"||W.removeAdditional&&f===!1){Xe(Vt);return}if(f===!1){s.setParams({additionalProperty:Vt}),s.error(),F||o.break();return}if(typeof f=="object"&&!(0,Yce.alwaysValidSchema)(A,f)){let Ut=o.name("valid");W.removeAdditional==="failing"?(je(Vt,Ut,!1),o.if((0,xE.not)(Ut),()=>{s.reset(),Xe(Vt)})):(je(Vt,Ut),F||o.if((0,xE.not)(Ut),()=>o.break()))}}t(Ue,"additionalPropertyCode");function je(Vt,Ut,Ir){let wn={keyword:"additionalProperties",dataProp:Vt,dataPropType:Yce.Type.Str};Ir===!1&&Object.assign(wn,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(wn,Ut)}t(je,"applyAdditionalSchema")}};dNe.default=Ksr});var tct=or(gNe=>{"use strict";Object.defineProperty(gNe,"__esModule",{value:!0});var Xsr=lM(),Qot=dT(),hNe=tu(),ect=mNe(),Zsr={keyword:"properties",type:"object",schemaType:"object",code(s){let{gen:o,schema:f,parentSchema:d,data:y,it:x}=s;x.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&ect.default.code(new Xsr.KeywordCxt(x,ect.default,"additionalProperties"));let A=(0,Qot.allSchemaProperties)(f);for(let de of A)x.definedProperties.add(de);x.opts.unevaluated&&A.length&&x.props!==!0&&(x.props=hNe.mergeEvaluated.props(o,(0,hNe.toHash)(A),x.props));let F=A.filter(de=>!(0,hNe.alwaysValidSchema)(x,f[de]));if(F.length===0)return;let W=o.name("valid");for(let de of F)G(de)?be(de):(o.if((0,Qot.propertyInData)(o,y,de,x.opts.ownProperties)),be(de),x.allErrors||o.else().var(W,!0),o.endIf()),s.it.definedProperties.add(de),s.ok(W);function G(de){return x.opts.useDefaults&&!x.compositeRule&&f[de].default!==void 0}t(G,"hasDefault");function be(de){s.subschema({keyword:"properties",schemaProp:de,dataProp:de},W)}t(be,"applyPropertySchema")}};gNe.default=Zsr});var sct=or(yNe=>{"use strict";Object.defineProperty(yNe,"__esModule",{value:!0});var rct=dT(),Kce=Ec(),nct=tu(),ict=tu(),Qsr={keyword:"patternProperties",type:"object",schemaType:"object",code(s){let{gen:o,schema:f,data:d,parentSchema:y,it:x}=s,{opts:A}=x,F=(0,rct.allSchemaProperties)(f),W=F.filter(je=>(0,nct.alwaysValidSchema)(x,f[je]));if(F.length===0||W.length===F.length&&(!x.opts.unevaluated||x.props===!0))return;let G=A.strictSchema&&!A.allowMatchingProperties&&y.properties,be=o.name("valid");x.props!==!0&&!(x.props instanceof Kce.Name)&&(x.props=(0,ict.evaluatedPropsToName)(o,x.props));let{props:de}=x;se();function se(){for(let je of F)G&&Xe(je),x.allErrors?Ue(je):(o.var(be,!0),Ue(je),o.if(be))}t(se,"validatePatternProperties");function Xe(je){for(let Vt in G)new RegExp(je).test(Vt)&&(0,nct.checkStrictMode)(x,`property ${Vt} matches pattern ${je} (use allowMatchingProperties)`)}t(Xe,"checkMatchingProperties");function Ue(je){o.forIn("key",d,Vt=>{o.if((0,Kce._)`${(0,rct.usePattern)(s,je)}.test(${Vt})`,()=>{let Ut=W.includes(je);Ut||s.subschema({keyword:"patternProperties",schemaProp:je,dataProp:Vt,dataPropType:ict.Type.Str},be),x.opts.unevaluated&&de!==!0?o.assign((0,Kce._)`${de}[${Vt}]`,!0):!Ut&&!x.allErrors&&o.if((0,Kce.not)(be),()=>o.break())})})}t(Ue,"validateProperties")}};yNe.default=Qsr});var act=or(vNe=>{"use strict";Object.defineProperty(vNe,"__esModule",{value:!0});var ear=tu(),tar={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(s){let{gen:o,schema:f,it:d}=s;if((0,ear.alwaysValidSchema)(d,f)){s.fail();return}let y=o.name("valid");s.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},y),s.failResult(y,()=>s.reset(),()=>s.error())},error:{message:"must NOT be valid"}};vNe.default=tar});var oct=or(bNe=>{"use strict";Object.defineProperty(bNe,"__esModule",{value:!0});var rar=dT(),nar={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rar.validateUnion,error:{message:"must match a schema in anyOf"}};bNe.default=nar});var cct=or(SNe=>{"use strict";Object.defineProperty(SNe,"__esModule",{value:!0});var Xce=Ec(),iar=tu(),sar={message:"must match exactly one schema in oneOf",params:t(({params:s})=>(0,Xce._)`{passingSchemas: ${s.passing}}`,"params")},aar={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:sar,code(s){let{gen:o,schema:f,parentSchema:d,it:y}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");if(y.opts.discriminator&&d.discriminator)return;let x=f,A=o.let("valid",!1),F=o.let("passing",null),W=o.name("_valid");s.setParams({passing:F}),o.block(G),s.result(A,()=>s.reset(),()=>s.error(!0));function G(){x.forEach((be,de)=>{let se;(0,iar.alwaysValidSchema)(y,be)?o.var(W,!0):se=s.subschema({keyword:"oneOf",schemaProp:de,compositeRule:!0},W),de>0&&o.if((0,Xce._)`${W} && ${A}`).assign(A,!1).assign(F,(0,Xce._)`[${F}, ${de}]`).else(),o.if(W,()=>{o.assign(A,!0),o.assign(F,de),se&&s.mergeEvaluated(se,Xce.Name)})})}t(G,"validateOneOf")}};SNe.default=aar});var lct=or(TNe=>{"use strict";Object.defineProperty(TNe,"__esModule",{value:!0});var oar=tu(),car={keyword:"allOf",schemaType:"array",code(s){let{gen:o,schema:f,it:d}=s;if(!Array.isArray(f))throw new Error("ajv implementation error");let y=o.name("valid");f.forEach((x,A)=>{if((0,oar.alwaysValidSchema)(d,x))return;let F=s.subschema({keyword:"allOf",schemaProp:A},y);s.ok(y),s.mergeEvaluated(F)})}};TNe.default=car});var _ct=or(xNe=>{"use strict";Object.defineProperty(xNe,"__esModule",{value:!0});var Zce=Ec(),fct=tu(),lar={message:t(({params:s})=>(0,Zce.str)`must match "${s.ifClause}" schema`,"message"),params:t(({params:s})=>(0,Zce._)`{failingKeyword: ${s.ifClause}}`,"params")},uar={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:lar,code(s){let{gen:o,parentSchema:f,it:d}=s;f.then===void 0&&f.else===void 0&&(0,fct.checkStrictMode)(d,'"if" without "then" and "else" is ignored');let y=uct(d,"then"),x=uct(d,"else");if(!y&&!x)return;let A=o.let("valid",!0),F=o.name("_valid");if(W(),s.reset(),y&&x){let be=o.let("ifClause");s.setParams({ifClause:be}),o.if(F,G("then",be),G("else",be))}else y?o.if(F,G("then")):o.if((0,Zce.not)(F),G("else"));s.pass(A,()=>s.error(!0));function W(){let be=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},F);s.mergeEvaluated(be)}t(W,"validateIf");function G(be,de){return()=>{let se=s.subschema({keyword:be},F);o.assign(A,F),s.mergeValidEvaluated(se,A),de?o.assign(de,(0,Zce._)`${be}`):s.setParams({ifClause:be})}}t(G,"validateClause")}};function uct(s,o){let f=s.schema[o];return f!==void 0&&!(0,fct.alwaysValidSchema)(s,f)}t(uct,"hasSchema");xNe.default=uar});var pct=or(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});var far=tu(),_ar={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:s,parentSchema:o,it:f}){o.if===void 0&&(0,far.checkStrictMode)(f,`"${s}" without "if" is ignored`)}};ENe.default=_ar});var kNe=or(CNe=>{"use strict";Object.defineProperty(CNe,"__esModule",{value:!0});var par=oNe(),dar=qot(),mar=cNe(),har=Hot(),gar=Got(),yar=Hce(),bar=Zot(),Sar=mNe(),Tar=tct(),xar=sct(),Ear=act(),Car=oct(),kar=cct(),war=lct(),Dar=_ct(),Par=pct();function Aar(s=!1){let o=[Ear.default,Car.default,kar.default,war.default,Dar.default,Par.default,bar.default,Sar.default,yar.default,Tar.default,xar.default];return s?o.push(dar.default,har.default):o.push(par.default,mar.default),o.push(gar.default),o}t(Aar,"getApplicator");CNe.default=Aar});var DNe=or(CH=>{"use strict";Object.defineProperty(CH,"__esModule",{value:!0});CH.dynamicAnchor=void 0;var wNe=Ec(),Nar=pT(),dct=fH(),Iar=Uce(),Oar={keyword:"$dynamicAnchor",schemaType:"string",code:t(s=>mct(s,s.schema),"code")};function mct(s,o){let{gen:f,it:d}=s;d.schemaEnv.root.dynamicAnchors[o]=!0;let y=(0,wNe._)`${Nar.default.dynamicAnchors}${(0,wNe.getProperty)(o)}`,x=d.errSchemaPath==="#"?d.validateName:Far(s);f.if((0,wNe._)`!${y}`,()=>f.assign(y,x))}t(mct,"dynamicAnchor");CH.dynamicAnchor=mct;function Far(s){let{schemaEnv:o,schema:f,self:d}=s.it,{root:y,baseId:x,localRefs:A,meta:F}=o.root,{schemaId:W}=d.opts,G=new dct.SchemaEnv({schema:f,schemaId:W,root:y,baseId:x,localRefs:A,meta:F});return dct.compileSchema.call(d,G),(0,Iar.getValidate)(s,G)}t(Far,"_getValidate");CH.default=Oar});var PNe=or(kH=>{"use strict";Object.defineProperty(kH,"__esModule",{value:!0});kH.dynamicRef=void 0;var hct=Ec(),Lar=pT(),gct=Uce(),Rar={keyword:"$dynamicRef",schemaType:"string",code:t(s=>yct(s,s.schema),"code")};function yct(s,o){let{gen:f,keyword:d,it:y}=s;if(o[0]!=="#")throw new Error(`"${d}" only supports hash fragment reference`);let x=o.slice(1);if(y.allErrors)A();else{let W=f.let("valid",!1);A(W),s.ok(W)}function A(W){if(y.schemaEnv.root.dynamicAnchors[x]){let G=f.let("_v",(0,hct._)`${Lar.default.dynamicAnchors}${(0,hct.getProperty)(x)}`);f.if(G,F(G,W),F(y.validateName,W))}else F(y.validateName,W)()}t(A,"_dynamicRef");function F(W,G){return G?()=>f.block(()=>{(0,gct.callRef)(s,W),f.let(G,!0)}):()=>(0,gct.callRef)(s,W)}t(F,"_callRef")}t(yct,"dynamicRef");kH.dynamicRef=yct;kH.default=Rar});var vct=or(ANe=>{"use strict";Object.defineProperty(ANe,"__esModule",{value:!0});var Mar=DNe(),jar=tu(),Bar={keyword:"$recursiveAnchor",schemaType:"boolean",code(s){s.schema?(0,Mar.dynamicAnchor)(s,""):(0,jar.checkStrictMode)(s.it,"$recursiveAnchor: false is ignored")}};ANe.default=Bar});var bct=or(NNe=>{"use strict";Object.defineProperty(NNe,"__esModule",{value:!0});var Uar=PNe(),zar={keyword:"$recursiveRef",schemaType:"string",code:t(s=>(0,Uar.dynamicRef)(s,s.schema),"code")};NNe.default=zar});var Sct=or(INe=>{"use strict";Object.defineProperty(INe,"__esModule",{value:!0});var $ar=DNe(),Jar=PNe(),War=vct(),qar=bct(),Var=[$ar.default,Jar.default,War.default,qar.default];INe.default=Var});var xct=or(ONe=>{"use strict";Object.defineProperty(ONe,"__esModule",{value:!0});var Tct=Hce(),Har={keyword:"dependentRequired",type:"object",schemaType:"object",error:Tct.error,code:t(s=>(0,Tct.validatePropertyDeps)(s),"code")};ONe.default=Har});var Ect=or(FNe=>{"use strict";Object.defineProperty(FNe,"__esModule",{value:!0});var Gar=Hce(),Yar={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t(s=>(0,Gar.validateSchemaDeps)(s),"code")};FNe.default=Yar});var Cct=or(LNe=>{"use strict";Object.defineProperty(LNe,"__esModule",{value:!0});var Kar=tu(),Xar={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:s,parentSchema:o,it:f}){o.contains===void 0&&(0,Kar.checkStrictMode)(f,`"${s}" without "contains" is ignored`)}};LNe.default=Xar});var kct=or(RNe=>{"use strict";Object.defineProperty(RNe,"__esModule",{value:!0});var Zar=xct(),Qar=Ect(),eor=Cct(),tor=[Zar.default,Qar.default,eor.default];RNe.default=tor});var Dct=or(MNe=>{"use strict";Object.defineProperty(MNe,"__esModule",{value:!0});var uI=Ec(),wct=tu(),ror=pT(),nor={message:"must NOT have unevaluated properties",params:t(({params:s})=>(0,uI._)`{unevaluatedProperty: ${s.unevaluatedProperty}}`,"params")},ior={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:nor,code(s){let{gen:o,schema:f,data:d,errsCount:y,it:x}=s;if(!y)throw new Error("ajv implementation error");let{allErrors:A,props:F}=x;F instanceof uI.Name?o.if((0,uI._)`${F} !== true`,()=>o.forIn("key",d,de=>o.if(G(F,de),()=>W(de)))):F!==!0&&o.forIn("key",d,de=>F===void 0?W(de):o.if(be(F,de),()=>W(de))),x.props=!0,s.ok((0,uI._)`${y} === ${ror.default.errors}`);function W(de){if(f===!1){s.setParams({unevaluatedProperty:de}),s.error(),A||o.break();return}if(!(0,wct.alwaysValidSchema)(x,f)){let se=o.name("valid");s.subschema({keyword:"unevaluatedProperties",dataProp:de,dataPropType:wct.Type.Str},se),A||o.if((0,uI.not)(se),()=>o.break())}}t(W,"unevaluatedPropCode");function G(de,se){return(0,uI._)`!${de} || !${de}[${se}]`}t(G,"unevaluatedDynamic");function be(de,se){let Xe=[];for(let Ue in de)de[Ue]===!0&&Xe.push((0,uI._)`${se} !== ${Ue}`);return(0,uI.and)(...Xe)}t(be,"unevaluatedStatic")}};MNe.default=ior});var Act=or(jNe=>{"use strict";Object.defineProperty(jNe,"__esModule",{value:!0});var IO=Ec(),Pct=tu(),sor={message:t(({params:{len:s}})=>(0,IO.str)`must NOT have more than ${s} items`,"message"),params:t(({params:{len:s}})=>(0,IO._)`{limit: ${s}}`,"params")},aor={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:sor,code(s){let{gen:o,schema:f,data:d,it:y}=s,x=y.items||0;if(x===!0)return;let A=o.const("len",(0,IO._)`${d}.length`);if(f===!1)s.setParams({len:x}),s.fail((0,IO._)`${A} > ${x}`);else if(typeof f=="object"&&!(0,Pct.alwaysValidSchema)(y,f)){let W=o.var("valid",(0,IO._)`${A} <= ${x}`);o.if((0,IO.not)(W),()=>F(W,x)),s.ok(W)}y.items=!0;function F(W,G){o.forRange("i",G,A,be=>{s.subschema({keyword:"unevaluatedItems",dataProp:be,dataPropType:Pct.Type.Num},W),y.allErrors||o.if((0,IO.not)(W),()=>o.break())})}t(F,"validateItems")}};jNe.default=aor});var Nct=or(BNe=>{"use strict";Object.defineProperty(BNe,"__esModule",{value:!0});var oor=Dct(),cor=Act(),lor=[oor.default,cor.default];BNe.default=lor});var Ict=or(UNe=>{"use strict";Object.defineProperty(UNe,"__esModule",{value:!0});var km=Ec(),uor={message:t(({schemaCode:s})=>(0,km.str)`must match format "${s}"`,"message"),params:t(({schemaCode:s})=>(0,km._)`{format: ${s}}`,"params")},_or={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:uor,code(s,o){let{gen:f,data:d,$data:y,schema:x,schemaCode:A,it:F}=s,{opts:W,errSchemaPath:G,schemaEnv:be,self:de}=F;if(!W.validateFormats)return;y?se():Xe();function se(){let Ue=f.scopeValue("formats",{ref:de.formats,code:W.code.formats}),je=f.const("fDef",(0,km._)`${Ue}[${A}]`),Vt=f.let("fType"),Ut=f.let("format");f.if((0,km._)`typeof ${je} == "object" && !(${je} instanceof RegExp)`,()=>f.assign(Vt,(0,km._)`${je}.type || "string"`).assign(Ut,(0,km._)`${je}.validate`),()=>f.assign(Vt,(0,km._)`"string"`).assign(Ut,je)),s.fail$data((0,km.or)(Ir(),wn()));function Ir(){return W.strictSchema===!1?km.nil:(0,km._)`${A} && !${Ut}`}t(Ir,"unknownFmt");function wn(){let sn=be.$async?(0,km._)`(${je}.async ? await ${Ut}(${d}) : ${Ut}(${d}))`:(0,km._)`${Ut}(${d})`,Jn=(0,km._)`(typeof ${Ut} == "function" ? ${sn} : ${Ut}.test(${d}))`;return(0,km._)`${Ut} && ${Ut} !== true && ${Vt} === ${o} && !${Jn}`}t(wn,"invalidFmt")}t(se,"validate$DataFormat");function Xe(){let Ue=de.formats[x];if(!Ue){Ir();return}if(Ue===!0)return;let[je,Vt,Ut]=wn(Ue);je===o&&s.pass(sn());function Ir(){if(W.strictSchema===!1){de.logger.warn(Jn());return}throw new Error(Jn());function Jn(){return`unknown format "${x}" ignored in schema at path "${G}"`}}t(Ir,"unknownFormat");function wn(Jn){let kr=Jn instanceof RegExp?(0,km.regexpCode)(Jn):W.code.formats?(0,km._)`${W.code.formats}${(0,km.getProperty)(x)}`:void 0,yr=f.scopeValue("formats",{key:x,ref:Jn,code:kr});return typeof Jn=="object"&&!(Jn instanceof RegExp)?[Jn.type||"string",Jn.validate,(0,km._)`${yr}.validate`]:["string",Jn,yr]}t(wn,"getFormat");function sn(){if(typeof Ue=="object"&&!(Ue instanceof RegExp)&&Ue.async){if(!be.$async)throw new Error("async format in sync schema");return(0,km._)`await ${Ut}(${d})`}return typeof Vt=="function"?(0,km._)`${Ut}(${d})`:(0,km._)`${Ut}.test(${d})`}t(sn,"validCondition")}t(Xe,"validateFormat")}};UNe.default=_or});var $Ne=or(zNe=>{"use strict";Object.defineProperty(zNe,"__esModule",{value:!0});var por=Ict(),dor=[por.default];zNe.default=dor});var JNe=or(dM=>{"use strict";Object.defineProperty(dM,"__esModule",{value:!0});dM.contentVocabulary=dM.metadataVocabulary=void 0;dM.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];dM.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Fct=or(WNe=>{"use strict";Object.defineProperty(WNe,"__esModule",{value:!0});var mor=J6e(),hor=sNe(),gor=kNe(),yor=Sct(),vor=kct(),bor=Nct(),Sor=$Ne(),Oct=JNe(),Tor=[yor.default,mor.default,hor.default,(0,gor.default)(!0),Sor.default,Oct.metadataVocabulary,Oct.contentVocabulary,vor.default,bor.default];WNe.default=Tor});var Rct=or(Qce=>{"use strict";Object.defineProperty(Qce,"__esModule",{value:!0});Qce.DiscrError=void 0;var Lct;(function(s){s.Tag="tag",s.Mapping="mapping"})(Lct||(Qce.DiscrError=Lct={}))});var HNe=or(VNe=>{"use strict";Object.defineProperty(VNe,"__esModule",{value:!0});var mM=Ec(),qNe=Rct(),Mct=fH(),xor=uM(),Eor=tu(),Cor={message:t(({params:{discrError:s,tagName:o}})=>s===qNe.DiscrError.Tag?`tag "${o}" must be string`:`value of tag "${o}" must be in oneOf`,"message"),params:t(({params:{discrError:s,tag:o,tagName:f}})=>(0,mM._)`{error: ${s}, tag: ${f}, tagValue: ${o}}`,"params")},kor={keyword:"discriminator",type:"object",schemaType:"object",error:Cor,code(s){let{gen:o,data:f,schema:d,parentSchema:y,it:x}=s,{oneOf:A}=y;if(!x.opts.discriminator)throw new Error("discriminator: requires discriminator option");let F=d.propertyName;if(typeof F!="string")throw new Error("discriminator: requires propertyName");if(d.mapping)throw new Error("discriminator: mapping is not supported");if(!A)throw new Error("discriminator: requires oneOf keyword");let W=o.let("valid",!1),G=o.const("tag",(0,mM._)`${f}${(0,mM.getProperty)(F)}`);o.if((0,mM._)`typeof ${G} == "string"`,()=>be(),()=>s.error(!1,{discrError:qNe.DiscrError.Tag,tag:G,tagName:F})),s.ok(W);function be(){let Xe=se();o.if(!1);for(let Ue in Xe)o.elseIf((0,mM._)`${G} === ${Ue}`),o.assign(W,de(Xe[Ue]));o.else(),s.error(!1,{discrError:qNe.DiscrError.Mapping,tag:G,tagName:F}),o.endIf()}t(be,"validateMapping");function de(Xe){let Ue=o.name("valid"),je=s.subschema({keyword:"oneOf",schemaProp:Xe},Ue);return s.mergeEvaluated(je,mM.Name),Ue}t(de,"applyTagSchema");function se(){var Xe;let Ue={},je=Ut(y),Vt=!0;for(let sn=0;sn<A.length;sn++){let Jn=A[sn];if(Jn?.$ref&&!(0,Eor.schemaHasRulesButRef)(Jn,x.self.RULES)){let yr=Jn.$ref;if(Jn=Mct.resolveRef.call(x.self,x.schemaEnv.root,x.baseId,yr),Jn instanceof Mct.SchemaEnv&&(Jn=Jn.schema),Jn===void 0)throw new xor.default(x.opts.uriResolver,x.baseId,yr)}let kr=(Xe=Jn?.properties)===null||Xe===void 0?void 0:Xe[F];if(typeof kr!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${F}"`);Vt=Vt&&(je||Ut(Jn)),Ir(kr,sn)}if(!Vt)throw new Error(`discriminator: "${F}" must be required`);return Ue;function Ut({required:sn}){return Array.isArray(sn)&&sn.includes(F)}function Ir(sn,Jn){if(sn.const)wn(sn.const,Jn);else if(sn.enum)for(let kr of sn.enum)wn(kr,Jn);else throw new Error(`discriminator: "properties/${F}" must have "const" or "enum"`)}function wn(sn,Jn){if(typeof sn!="string"||sn in Ue)throw new Error(`discriminator: "${F}" values must be unique strings`);Ue[sn]=Jn}}t(se,"getMapping")}};VNe.default=kor});var jct=or((ZAr,wor)=>{wor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var Bct=or((QAr,Dor)=>{Dor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Uct=or((e6r,Por)=>{Por.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var zct=or((t6r,Aor)=>{Aor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var $ct=or((r6r,Nor)=>{Nor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Jct=or((n6r,Ior)=>{Ior.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Wct=or((i6r,Oor)=>{Oor.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var qct=or((s6r,For)=>{For.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Vct=or(GNe=>{"use strict";Object.defineProperty(GNe,"__esModule",{value:!0});var Lor=jct(),Ror=Bct(),Mor=Uct(),jor=zct(),Bor=$ct(),Uor=Jct(),zor=Wct(),$or=qct(),Jor=["/properties"];function Wor(s){return[Lor,Ror,Mor,jor,Bor,o(this,Uor),zor,o(this,$or)].forEach(f=>this.addMetaSchema(f,void 0,!1)),this;function o(f,d){return s?f.$dataMetaSchema(d,Jor):d}t(o,"with$data")}t(Wor,"addMetaSchema2020");GNe.default=Wor});var ele=or((Np,KNe)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.MissingRefError=Np.ValidationError=Np.CodeGen=Np.Name=Np.nil=Np.stringify=Np.str=Np._=Np.KeywordCxt=Np.Ajv2020=void 0;var qor=U6e(),Vor=Fct(),Hor=HNe(),Gor=Vct(),YNe="https://json-schema.org/draft/2020-12/schema",hM=class extends qor.default{static{t(this,"Ajv2020")}constructor(o={}){super({...o,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Vor.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(Hor.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:o,meta:f}=this.opts;f&&(Gor.default.call(this,o),this.refs["http://json-schema.org/schema"]=YNe)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(YNe)?YNe:void 0)}};Np.Ajv2020=hM;KNe.exports=Np=hM;KNe.exports.Ajv2020=hM;Object.defineProperty(Np,"__esModule",{value:!0});Np.default=hM;var Yor=lM();Object.defineProperty(Np,"KeywordCxt",{enumerable:!0,get:t(function(){return Yor.KeywordCxt},"get")});var gM=Ec();Object.defineProperty(Np,"_",{enumerable:!0,get:t(function(){return gM._},"get")});Object.defineProperty(Np,"str",{enumerable:!0,get:t(function(){return gM.str},"get")});Object.defineProperty(Np,"stringify",{enumerable:!0,get:t(function(){return gM.stringify},"get")});Object.defineProperty(Np,"nil",{enumerable:!0,get:t(function(){return gM.nil},"get")});Object.defineProperty(Np,"Name",{enumerable:!0,get:t(function(){return gM.Name},"get")});Object.defineProperty(Np,"CodeGen",{enumerable:!0,get:t(function(){return gM.CodeGen},"get")});var Kor=uH();Object.defineProperty(Np,"ValidationError",{enumerable:!0,get:t(function(){return Kor.default},"get")});var Xor=uM();Object.defineProperty(Np,"MissingRefError",{enumerable:!0,get:t(function(){return Xor.default},"get")})});var elt=or(Bk=>{"use strict";Object.defineProperty(Bk,"__esModule",{value:!0});Bk.formatNames=Bk.fastFormats=Bk.fullFormats=void 0;function jk(s,o){return{validate:s,compare:o}}t(jk,"fmtDef");Bk.fullFormats={date:jk(Kct,eIe),time:jk(ZNe(!0),tIe),"date-time":jk(Hct(!0),Zct),"iso-time":jk(ZNe(),Xct),"iso-date-time":jk(Hct(),Qct),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:ncr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:ucr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:icr,int32:{type:"number",validate:ocr},int64:{type:"number",validate:ccr},float:{type:"number",validate:Yct},double:{type:"number",validate:Yct},password:!0,binary:!0};Bk.fastFormats={...Bk.fullFormats,date:jk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,eIe),time:jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,tIe),"date-time":jk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Zct),"iso-time":jk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Xct),"iso-date-time":jk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Qct),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Bk.formatNames=Object.keys(Bk.fullFormats);function Zor(s){return s%4===0&&(s%100!==0||s%400===0)}t(Zor,"isLeapYear");var Qor=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ecr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Kct(s){let o=Qor.exec(s);if(!o)return!1;let f=+o[1],d=+o[2],y=+o[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&Zor(f)?29:ecr[d])}t(Kct,"date");function eIe(s,o){if(s&&o)return s>o?1:s<o?-1:0}t(eIe,"compareDate");var XNe=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function ZNe(s){return t(function(f){let d=XNe.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],A=+d[3],F=d[4],W=d[5]==="-"?-1:1,G=+(d[6]||0),be=+(d[7]||0);if(G>23||be>59||s&&!F)return!1;if(y<=23&&x<=59&&A<60)return!0;let de=x-be*W,se=y-G*W-(de<0?1:0);return(se===23||se===-1)&&(de===59||de===-1)&&A<61},"time")}t(ZNe,"getTime");function tIe(s,o){if(!(s&&o))return;let f=new Date("2020-01-01T"+s).valueOf(),d=new Date("2020-01-01T"+o).valueOf();if(f&&d)return f-d}t(tIe,"compareTime");function Xct(s,o){if(!(s&&o))return;let f=XNe.exec(s),d=XNe.exec(o);if(f&&d)return s=f[1]+f[2]+f[3],o=d[1]+d[2]+d[3],s>o?1:s<o?-1:0}t(Xct,"compareIsoTime");var QNe=/t|\s/i;function Hct(s){let o=ZNe(s);return t(function(d){let y=d.split(QNe);return y.length===2&&Kct(y[0])&&o(y[1])},"date_time")}t(Hct,"getDateTime");function Zct(s,o){if(!(s&&o))return;let f=new Date(s).valueOf(),d=new Date(o).valueOf();if(f&&d)return f-d}t(Zct,"compareDateTime");function Qct(s,o){if(!(s&&o))return;let[f,d]=s.split(QNe),[y,x]=o.split(QNe),A=eIe(f,y);if(A!==void 0)return A||tIe(d,x)}t(Qct,"compareIsoDateTime");var tcr=/\/|:/,rcr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function ncr(s){return tcr.test(s)&&rcr.test(s)}t(ncr,"uri");var Gct=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function icr(s){return Gct.lastIndex=0,Gct.test(s)}t(icr,"byte");var scr=-(2**31),acr=2**31-1;function ocr(s){return Number.isInteger(s)&&s<=acr&&s>=scr}t(ocr,"validateInt32");function ccr(s){return Number.isInteger(s)}t(ccr,"validateInt64");function Yct(){return!0}t(Yct,"validateNumber");var lcr=/[^\\]\\Z/;function ucr(s){if(lcr.test(s))return!1;try{return new RegExp(s),!0}catch{return!1}}t(ucr,"regex")});var rlt=or(rIe=>{"use strict";Object.defineProperty(rIe,"__esModule",{value:!0});var fcr=J6e(),_cr=sNe(),pcr=kNe(),dcr=$Ne(),tlt=JNe(),mcr=[fcr.default,_cr.default,(0,pcr.default)(),dcr.default,tlt.metadataVocabulary,tlt.contentVocabulary];rIe.default=mcr});var nlt=or((_6r,hcr)=>{hcr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var wH=or((Ip,nIe)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.MissingRefError=Ip.ValidationError=Ip.CodeGen=Ip.Name=Ip.nil=Ip.stringify=Ip.str=Ip._=Ip.KeywordCxt=Ip.Ajv=void 0;var gcr=U6e(),ycr=rlt(),vcr=HNe(),ilt=nlt(),bcr=["/properties"],tle="http://json-schema.org/draft-07/schema",yM=class extends gcr.default{static{t(this,"Ajv")}_addVocabularies(){super._addVocabularies(),ycr.default.forEach(o=>this.addVocabulary(o)),this.opts.discriminator&&this.addKeyword(vcr.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let o=this.opts.$data?this.$dataMetaSchema(ilt,bcr):ilt;this.addMetaSchema(o,tle,!1),this.refs["http://json-schema.org/schema"]=tle}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(tle)?tle:void 0)}};Ip.Ajv=yM;nIe.exports=Ip=yM;nIe.exports.Ajv=yM;Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=yM;var Scr=lM();Object.defineProperty(Ip,"KeywordCxt",{enumerable:!0,get:t(function(){return Scr.KeywordCxt},"get")});var vM=Ec();Object.defineProperty(Ip,"_",{enumerable:!0,get:t(function(){return vM._},"get")});Object.defineProperty(Ip,"str",{enumerable:!0,get:t(function(){return vM.str},"get")});Object.defineProperty(Ip,"stringify",{enumerable:!0,get:t(function(){return vM.stringify},"get")});Object.defineProperty(Ip,"nil",{enumerable:!0,get:t(function(){return vM.nil},"get")});Object.defineProperty(Ip,"Name",{enumerable:!0,get:t(function(){return vM.Name},"get")});Object.defineProperty(Ip,"CodeGen",{enumerable:!0,get:t(function(){return vM.CodeGen},"get")});var Tcr=uH();Object.defineProperty(Ip,"ValidationError",{enumerable:!0,get:t(function(){return Tcr.default},"get")});var xcr=uM();Object.defineProperty(Ip,"MissingRefError",{enumerable:!0,get:t(function(){return xcr.default},"get")})});var slt=or(bM=>{"use strict";Object.defineProperty(bM,"__esModule",{value:!0});bM.formatLimitDefinition=void 0;var Ecr=wH(),EE=Ec(),fI=EE.operators,rle={formatMaximum:{okStr:"<=",ok:fI.LTE,fail:fI.GT},formatMinimum:{okStr:">=",ok:fI.GTE,fail:fI.LT},formatExclusiveMaximum:{okStr:"<",ok:fI.LT,fail:fI.GTE},formatExclusiveMinimum:{okStr:">",ok:fI.GT,fail:fI.LTE}},Ccr={message:t(({keyword:s,schemaCode:o})=>(0,EE.str)`should be ${rle[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,EE._)`{comparison: ${rle[s].okStr}, limit: ${o}}`,"params")};bM.formatLimitDefinition={keyword:Object.keys(rle),type:"string",schemaType:"string",$data:!0,error:Ccr,code(s){let{gen:o,data:f,schemaCode:d,keyword:y,it:x}=s,{opts:A,self:F}=x;if(!A.validateFormats)return;let W=new Ecr.KeywordCxt(x,F.RULES.all.format.definition,"format");W.$data?G():be();function G(){let se=o.scopeValue("formats",{ref:F.formats,code:A.code.formats}),Xe=o.const("fmt",(0,EE._)`${se}[${W.schemaCode}]`);s.fail$data((0,EE.or)((0,EE._)`typeof ${Xe} != "object"`,(0,EE._)`${Xe} instanceof RegExp`,(0,EE._)`typeof ${Xe}.compare != "function"`,de(Xe)))}t(G,"validate$DataFormat");function be(){let se=W.schema,Xe=F.formats[se];if(!Xe||Xe===!0)return;if(typeof Xe!="object"||Xe instanceof RegExp||typeof Xe.compare!="function")throw new Error(`"${y}": format "${se}" does not define "compare" function`);let Ue=o.scopeValue("formats",{key:se,ref:Xe,code:A.code.formats?(0,EE._)`${A.code.formats}${(0,EE.getProperty)(se)}`:void 0});s.fail$data(de(Ue))}t(be,"validateFormat");function de(se){return(0,EE._)`${se}.compare(${f}, ${d}) ${rle[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var kcr=t(s=>(s.addKeyword(bM.formatLimitDefinition),s),"formatLimitPlugin");bM.default=kcr});var llt=or((DH,clt)=>{"use strict";Object.defineProperty(DH,"__esModule",{value:!0});var SM=elt(),wcr=slt(),iIe=Ec(),alt=new iIe.Name("fullFormats"),Dcr=new iIe.Name("fastFormats"),sIe=t((s,o={keywords:!0})=>{if(Array.isArray(o))return olt(s,o,SM.fullFormats,alt),s;let[f,d]=o.mode==="fast"?[SM.fastFormats,Dcr]:[SM.fullFormats,alt],y=o.formats||SM.formatNames;return olt(s,y,f,d),o.keywords&&(0,wcr.default)(s),s},"formatsPlugin");sIe.get=(s,o="full")=>{let d=(o==="fast"?SM.fastFormats:SM.fullFormats)[s];if(!d)throw new Error(`Unknown format "${s}"`);return d};function olt(s,o,f,d){var y,x;(y=(x=s.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,iIe._)`require("ajv-formats/dist/formats").${d}`);for(let A of o)s.addFormat(A,f[A])}t(olt,"addFormats");clt.exports=DH=sIe;Object.defineProperty(DH,"__esModule",{value:!0});DH.default=sIe});var _le=or(TM=>{"use strict";Object.defineProperty(TM,"__esModule",{value:!0});TM.getDeepKeys=TM.toJSON=void 0;var rlr=["function","symbol","undefined"],nlr=["constructor","prototype","__proto__"],ilr=Object.getPrototypeOf({});function slr(){let s={},o=this;for(let f of Elt(o))if(typeof f=="string"){let d=o[f],y=typeof d;rlr.includes(y)||(s[f]=d)}return s}t(slr,"toJSON");TM.toJSON=slr;function Elt(s,o=[]){let f=[];for(;s&&s!==ilr;)f=f.concat(Object.getOwnPropertyNames(s),Object.getOwnPropertySymbols(s)),s=Object.getPrototypeOf(s);let d=new Set(f);for(let y of o.concat(nlr))d.delete(y);return d}t(Elt,"getDeepKeys");TM.getDeepKeys=Elt});var uIe=or(xM=>{"use strict";Object.defineProperty(xM,"__esModule",{value:!0});xM.addInspectMethod=xM.format=void 0;var Clt=uo("util"),alr=_le(),klt=Clt.inspect.custom||Symbol.for("nodejs.util.inspect.custom");xM.format=Clt.format;function olr(s){s[klt]=clr}t(olr,"addInspectMethod");xM.addInspectMethod=olr;function clr(){let s={},o=this;for(let f of alr.getDeepKeys(o)){let d=o[f];s[f]=d}return delete s[klt],s}t(clr,"inspect")});var Plt=or(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0});zk.lazyJoinStacks=zk.joinStacks=zk.isWritableStack=zk.isLazyStack=void 0;var llr=/\r?\n/,ulr=/\bono[ @]/;function flr(s){return!!(s&&s.configurable&&typeof s.get=="function")}t(flr,"isLazyStack");zk.isLazyStack=flr;function _lr(s){return!!(!s||s.writable||typeof s.set=="function")}t(_lr,"isWritableStack");zk.isWritableStack=_lr;function wlt(s,o){let f=Dlt(s.stack),d=o?o.stack:void 0;return f&&d?f+`
|
|
67
67
|
|
|
68
68
|
`+d:f||d}t(wlt,"joinStacks");zk.joinStacks=wlt;function plr(s,o,f){f?Object.defineProperty(o,"stack",{get:t(()=>{let d=s.get.apply(o);return wlt({stack:d},f)},"get"),enumerable:!1,configurable:!0}):dlr(o,s)}t(plr,"lazyJoinStacks");zk.lazyJoinStacks=plr;function Dlt(s){if(s){let o=s.split(llr),f;for(let d=0;d<o.length;d++){let y=o[d];if(ulr.test(y))f===void 0&&(f=d);else if(f!==void 0){o.splice(f,d-f);break}}if(o.length>0)return o.join(`
|
|
69
69
|
`)}return s}t(Dlt,"popStack");function dlr(s,o){Object.defineProperty(s,"stack",{get:t(()=>Dlt(o.get.apply(s)),"get"),enumerable:!1,configurable:!0})}t(dlr,"lazyPopStack")});var Ilt=or(dle=>{"use strict";Object.defineProperty(dle,"__esModule",{value:!0});dle.extendError=void 0;var Alt=uIe(),ple=Plt(),Nlt=_le(),mlr=["name","message","stack"];function hlr(s,o,f){let d=s;return glr(d,o),o&&typeof o=="object"&&ylr(d,o),d.toJSON=Nlt.toJSON,Alt.addInspectMethod&&Alt.addInspectMethod(d),f&&typeof f=="object"&&Object.assign(d,f),d}t(hlr,"extendError");dle.extendError=hlr;function glr(s,o){let f=Object.getOwnPropertyDescriptor(s,"stack");ple.isLazyStack(f)?ple.lazyJoinStacks(f,s,o):ple.isWritableStack(f)&&(s.stack=ple.joinStacks(s,o))}t(glr,"extendStack");function ylr(s,o){let f=Nlt.getDeepKeys(o,mlr),d=s,y=o;for(let x of f)if(d[x]===void 0)try{d[x]=y[x]}catch{}}t(ylr,"mergeErrors")});var Olt=or(EM=>{"use strict";Object.defineProperty(EM,"__esModule",{value:!0});EM.normalizeArgs=EM.normalizeOptions=void 0;var vlr=uIe();function blr(s){return s=s||{},{concatMessages:s.concatMessages===void 0?!0:!!s.concatMessages,format:s.format===void 0?vlr.format:typeof s.format=="function"?s.format:!1}}t(blr,"normalizeOptions");EM.normalizeOptions=blr;function Slr(s,o){let f,d,y,x="";return typeof s[0]=="string"?y=s:typeof s[1]=="string"?(s[0]instanceof Error?f=s[0]:d=s[0],y=s.slice(1)):(f=s[0],d=s[1],y=s.slice(2)),y.length>0&&(o.format?x=o.format.apply(void 0,y):x=y.join(" ")),o.concatMessages&&f&&f.message&&(x+=(x?`
|
|
70
|
-
`:"")+f.message),{originalError:f,props:d,message:x}}t(Slr,"normalizeArgs");EM.normalizeArgs=Slr});var _Ie=or(hle=>{"use strict";Object.defineProperty(hle,"__esModule",{value:!0});hle.Ono=void 0;var mle=Ilt(),Flt=Olt(),Tlr=_le(),xlr=fIe;hle.Ono=xlr;function fIe(s,o){o=Flt.normalizeOptions(o);function f(...d){let{originalError:y,props:x,message:A}=Flt.normalizeArgs(d,o),F=new s(A);return mle.extendError(F,y,x)}return t(f,"ono"),f[Symbol.species]=s,f}t(fIe,"Ono");fIe.toJSON=t(function(o){return Tlr.toJSON.call(o)},"toJSON");fIe.extend=t(function(o,f,d){return d||f instanceof Error?mle.extendError(o,f,d):f?mle.extendError(o,void 0,f):mle.extendError(o)},"extend")});var Llt=or(gle=>{"use strict";Object.defineProperty(gle,"__esModule",{value:!0});gle.ono=void 0;var OO=_Ie(),Elr=$k;gle.ono=Elr;$k.error=new OO.Ono(Error);$k.eval=new OO.Ono(EvalError);$k.range=new OO.Ono(RangeError);$k.reference=new OO.Ono(ReferenceError);$k.syntax=new OO.Ono(SyntaxError);$k.type=new OO.Ono(TypeError);$k.uri=new OO.Ono(URIError);var Clr=$k;function $k(...s){let o=s[0];if(typeof o=="object"&&typeof o.name=="string"){for(let f of Object.values(Clr))if(typeof f=="function"&&f.name==="ono"){let d=f[Symbol.species];if(d&&d!==Error&&(o instanceof d||o.name===d.name))return f.apply(void 0,s)}}return $k.error.apply(void 0,s)}t($k,"ono")});var Mlt=or(Rlt=>{"use strict";Object.defineProperty(Rlt,"__esModule",{value:!0});var DNr=uo("util")});var pI=or((CE,CM)=>{"use strict";var klr=CE&&CE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f),Object.defineProperty(s,d,{enumerable:!0,get:t(function(){return o[f]},"get")})}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),wlr=CE&&CE.__exportStar||function(s,o){for(var f in s)f!=="default"&&!o.hasOwnProperty(f)&&klr(o,s,f)};Object.defineProperty(CE,"__esModule",{value:!0});CE.ono=void 0;var jlt=Llt();Object.defineProperty(CE,"ono",{enumerable:!0,get:t(function(){return jlt.ono},"get")});var Dlr=_Ie();Object.defineProperty(CE,"Ono",{enumerable:!0,get:t(function(){return Dlr.Ono},"get")});wlr(Mlt(),CE);CE.default=jlt.ono;typeof CM=="object"&&typeof CM.exports=="object"&&(CM.exports=Object.assign(CM.exports.default,CM.exports))});var pIe=or(NH=>{"use strict";var Plr=NH&&NH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(NH,"__esModule",{value:!0});NH.default=Alr;var Blt=Plr(uo("path"));function Alr(s){return s.startsWith("\\\\?\\")?s:s.split(Blt.default?.win32?.sep).join(Blt.default?.posix?.sep??"/")}t(Alr,"convertPathToPosix")});var Ult=or(yle=>{"use strict";Object.defineProperty(yle,"__esModule",{value:!0});yle.isWindows=void 0;var Nlr=/^win/.test(globalThis.process?globalThis.process.platform:""),Ilr=t(()=>Nlr,"isWindows");yle.isWindows=Ilr});var gT=or(Op=>{"use strict";var Olr=Op&&Op.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Flr=Op&&Op.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Llr=Op&&Op.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Olr(o,s,f);return Flr(o,s),o},Rlr=Op&&Op.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Op,"__esModule",{value:!0});Op.parse=void 0;Op.resolve=zlt;Op.cwd=$lt;Op.getProtocol=yIe;Op.getExtension=Wlr;Op.stripQuery=Jlt;Op.getHash=Wlt;Op.stripHash=hIe;Op.isHttp=qlr;Op.isFileSystemPath=gIe;Op.fromFileSystemPath=Vlr;Op.toFileSystemPath=Hlr;Op.safePointerToPath=Glr;Op.relative=Ylr;var ble=Rlr(pIe()),mIe=Llr(uo("path")),Mlr=/\//g,jlr=/^(\w{2,}):\/\//i,Blr=/~1/g,Ulr=/~0/g,zlr=uo("path"),vle=Ult(),$lr=[[/\?/g,"%3F"],[/#/g,"%23"]],dIe=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],Jlr=t(s=>new URL(s),"parse");Op.parse=Jlr;function zlt(s,o){let f=new URL((0,ble.default)(s),"resolve://"),d=new URL((0,ble.default)(o),f),y=o.match(/(\s*)$/)?.[1]||"";if(d.protocol==="resolve:"){let{pathname:x,search:A,hash:F}=d;return x+A+F+y}return d.toString()+y}t(zlt,"resolve");function $lt(){if(typeof window<"u")return location.href;let s=process.cwd(),o=s.slice(-1);return o==="/"||o==="\\"?s:s+"/"}t($lt,"cwd");function yIe(s){let o=jlr.exec(s||"");if(o)return o[1].toLowerCase()}t(yIe,"getProtocol");function Wlr(s){let o=s.lastIndexOf(".");return o>=0?Jlt(s.substr(o).toLowerCase()):""}t(Wlr,"getExtension");function Jlt(s){let o=s.indexOf("?");return o>=0&&(s=s.substr(0,o)),s}t(Jlt,"stripQuery");function Wlt(s){if(!s)return"#";let o=s.indexOf("#");return o>=0?s.substring(o):"#"}t(Wlt,"getHash");function hIe(s){if(!s)return"";let o=s.indexOf("#");return o>=0&&(s=s.substring(0,o)),s}t(hIe,"stripHash");function qlr(s){let o=yIe(s);return o==="http"||o==="https"?!0:o===void 0?typeof window<"u":!1}t(qlr,"isHttp");function gIe(s){if(typeof window<"u"||typeof process<"u"&&process.browser)return!1;let o=yIe(s);return o===void 0||o==="file"}t(gIe,"isFileSystemPath");function Vlr(s){if((0,vle.isWindows)()){let o=$lt(),f=s.toUpperCase(),y=(0,ble.default)(o).toUpperCase(),x=f.includes(y),A=f.includes(y),F=mIe.win32?.isAbsolute(s)||s.startsWith("http://")||s.startsWith("https://")||s.startsWith("file://");!(x||A||F)&&!o.startsWith("http")&&(s=(0,zlr.join)(o,s)),s=(0,ble.default)(s)}s=encodeURI(s);for(let o of $lr)s=s.replace(o[0],o[1]);return s}t(Vlr,"fromFileSystemPath");function Hlr(s,o){s=decodeURI(s);for(let d=0;d<dIe.length;d+=2)s=s.replace(dIe[d],dIe[d+1]);let f=s.substr(0,7).toLowerCase()==="file://";return f&&(s=s[7]==="/"?s.substr(8):s.substr(7),(0,vle.isWindows)()&&s[1]==="/"&&(s=s[0]+":"+s.substr(1)),o?s="file:///"+s:(f=!1,s=(0,vle.isWindows)()?s:"/"+s)),(0,vle.isWindows)()&&!f&&(s=s.replace(Mlr,"\\"),s.substr(1,2)===":\\"&&(s=s[0].toUpperCase()+s.substr(1))),s}t(Hlr,"toFileSystemPath");function Glr(s){return s.length<=1||s[0]!=="#"||s[1]!=="/"?[]:s.slice(2).split("/").map(o=>decodeURIComponent(o).replace(Blr,"/").replace(Ulr,"~"))}t(Glr,"safePointerToPath");function Ylr(s,o){if(!gIe(s)||!gIe(o))return zlt(s,o);let f=mIe.default.dirname(hIe(s)),d=hIe(o);return mIe.default.relative(f,d)+Wlt(o)}t(Ylr,"relative")});var yT=or(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.InvalidPointerError=Qd.TimeoutError=Qd.MissingPointerError=Qd.UnmatchedResolverError=Qd.ResolverError=Qd.UnmatchedParserError=Qd.ParserError=Qd.JSONParserErrorGroup=Qd.JSONParserError=void 0;Qd.isHandledError=Klr;Qd.normalizeError=Xlr;var qlt=pI(),kIe=gT(),kE=class extends Error{static{t(this,"JSONParserError")}constructor(o,f){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=o,this.source=f,this.path=null,qlt.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};Qd.JSONParserError=kE;var Sle=class s extends Error{static{t(this,"JSONParserErrorGroup")}constructor(o){super(),this.files=o,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,kIe.toFileSystemPath)(o.$refs._root$Ref.path)}'`,qlt.Ono.extend(this)}static getParserErrors(o){let f=[];for(let d of Object.values(o.$refs._$refs))d.errors&&f.push(...d.errors);return f}get errors(){return s.getParserErrors(this.files)}};Qd.JSONParserErrorGroup=Sle;var vIe=class extends kE{static{t(this,"ParserError")}constructor(o,f){super(`Error parsing ${f}: ${o}`,f),this.code="EPARSER",this.name="ParserError"}};Qd.ParserError=vIe;var bIe=class extends kE{static{t(this,"UnmatchedParserError")}constructor(o){super(`Could not find parser for "${o}"`,o),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};Qd.UnmatchedParserError=bIe;var SIe=class extends kE{static{t(this,"ResolverError")}constructor(o,f){super(o.message||`Error reading file "${f}"`,f),this.code="ERESOLVER",this.name="ResolverError","code"in o&&(this.ioErrorCode=String(o.code))}};Qd.ResolverError=SIe;var TIe=class extends kE{static{t(this,"UnmatchedResolverError")}constructor(o){super(`Could not find resolver for "${o}"`,o),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};Qd.UnmatchedResolverError=TIe;var xIe=class extends kE{static{t(this,"MissingPointerError")}constructor(o,f){super(`Token "${o}" does not exist.`,(0,kIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};Qd.MissingPointerError=xIe;var EIe=class extends kE{static{t(this,"TimeoutError")}constructor(o){super(`Dereferencing timeout reached: ${o}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};Qd.TimeoutError=EIe;var CIe=class extends kE{static{t(this,"InvalidPointerError")}constructor(o,f){super(`Invalid $ref pointer "${o}". Pointers must begin with "#/"`,(0,kIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}};Qd.InvalidPointerError=CIe;function Klr(s){return s instanceof kE||s instanceof Sle}t(Klr,"isHandledError");function Xlr(s){return s.path===null&&(s.path=[]),s}t(Xlr,"normalizeError")});var IH=or(wE=>{"use strict";var Zlr=wE&&wE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Qlr=wE&&wE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),eur=wE&&wE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Zlr(o,s,f);return Qlr(o,s),o},tur=wE&&wE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(wE,"__esModule",{value:!0});var wIe=tur(kM()),DIe=eur(gT()),xle=yT(),rur=/\//g,nur=/~/g,iur=/~1/g,sur=/~0/g,aur=t(s=>{try{return decodeURIComponent(s)}catch{return s}},"safeDecodeURIComponent"),Ele=class s{static{t(this,"Pointer")}constructor(o,f,d){this.$ref=o,this.path=f,this.originalPath=d||f,this.value=void 0,this.circular=!1,this.indirections=0}resolve(o,f,d){let y=s.parse(this.path,this.originalPath);this.value=Hlt(o);for(let x=0;x<y.length;x++){if(Tle(this,f,d)&&(this.path=s.join(this.path,y.slice(x))),typeof this.value=="object"&&this.value!==null&&!Glt(d)&&"$ref"in this.value)return this;let A=y[x];if(this.value[A]===void 0||this.value[A]===null&&x===y.length-1){let F=!1;for(let W=y.length-1;W>x;W--){let G=y.slice(x,W+1).join("/");if(this.value[G]!==void 0){this.value=this.value[G],x=W,F=!0;break}}if(F)continue;throw this.value=null,new xle.MissingPointerError(A,decodeURI(this.originalPath))}else this.value=this.value[A]}return(!this.value||this.value.$ref&&DIe.resolve(this.path,this.value.$ref)!==d)&&Tle(this,f,d),this}set(o,f,d){let y=s.parse(this.path),x;if(y.length===0)return this.value=f,f;this.value=Hlt(o);for(let A=0;A<y.length-1;A++)Tle(this,d),x=y[A],this.value&&this.value[x]!==void 0?this.value=this.value[x]:this.value=Vlt(this,x,{});return Tle(this,d),x=y[y.length-1],Vlt(this,x,f),o}static parse(o,f){let d=DIe.getHash(o).substring(1);if(!d)return[];let y=d.split("/");for(let x=0;x<y.length;x++)y[x]=aur(y[x].replace(iur,"/").replace(sur,"~"));if(y[0]!=="")throw new xle.InvalidPointerError(y,f===void 0?o:f);return y.slice(1)}static join(o,f){o.indexOf("#")===-1&&(o+="#"),f=Array.isArray(f)?f:[f];for(let d=0;d<f.length;d++){let y=f[d];o+="/"+encodeURIComponent(y.replace(nur,"~0").replace(rur,"~1"))}return o}};function Tle(s,o,f){if(wIe.default.isAllowed$Ref(s.value,o)){let d=DIe.resolve(s.path,s.value.$ref);if(d===s.path&&!Glt(f))s.circular=!0;else{let y=s.$ref.$refs._resolve(d,s.path,o);return y===null?!1:(s.indirections+=y.indirections+1,wIe.default.isExtended$Ref(s.value)?(s.value=wIe.default.dereference(s.value,y.value),!1):(s.$ref=y.$ref,s.path=y.path,s.value=y.value,!0))}}}t(Tle,"resolveIf$Ref");wE.default=Ele;function Vlt(s,o,f){if(s.value&&typeof s.value=="object")o==="-"&&Array.isArray(s.value)?s.value.push(f):s.value[o]=f;else throw new xle.JSONParserError(`Error assigning $ref pointer "${s.path}".
|
|
70
|
+
`:"")+f.message),{originalError:f,props:d,message:x}}t(Slr,"normalizeArgs");EM.normalizeArgs=Slr});var _Ie=or(hle=>{"use strict";Object.defineProperty(hle,"__esModule",{value:!0});hle.Ono=void 0;var mle=Ilt(),Flt=Olt(),Tlr=_le(),xlr=fIe;hle.Ono=xlr;function fIe(s,o){o=Flt.normalizeOptions(o);function f(...d){let{originalError:y,props:x,message:A}=Flt.normalizeArgs(d,o),F=new s(A);return mle.extendError(F,y,x)}return t(f,"ono"),f[Symbol.species]=s,f}t(fIe,"Ono");fIe.toJSON=t(function(o){return Tlr.toJSON.call(o)},"toJSON");fIe.extend=t(function(o,f,d){return d||f instanceof Error?mle.extendError(o,f,d):f?mle.extendError(o,void 0,f):mle.extendError(o)},"extend")});var Llt=or(gle=>{"use strict";Object.defineProperty(gle,"__esModule",{value:!0});gle.ono=void 0;var OO=_Ie(),Elr=$k;gle.ono=Elr;$k.error=new OO.Ono(Error);$k.eval=new OO.Ono(EvalError);$k.range=new OO.Ono(RangeError);$k.reference=new OO.Ono(ReferenceError);$k.syntax=new OO.Ono(SyntaxError);$k.type=new OO.Ono(TypeError);$k.uri=new OO.Ono(URIError);var Clr=$k;function $k(...s){let o=s[0];if(typeof o=="object"&&typeof o.name=="string"){for(let f of Object.values(Clr))if(typeof f=="function"&&f.name==="ono"){let d=f[Symbol.species];if(d&&d!==Error&&(o instanceof d||o.name===d.name))return f.apply(void 0,s)}}return $k.error.apply(void 0,s)}t($k,"ono")});var Mlt=or(Rlt=>{"use strict";Object.defineProperty(Rlt,"__esModule",{value:!0});var PNr=uo("util")});var pI=or((CE,CM)=>{"use strict";var klr=CE&&CE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f),Object.defineProperty(s,d,{enumerable:!0,get:t(function(){return o[f]},"get")})}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),wlr=CE&&CE.__exportStar||function(s,o){for(var f in s)f!=="default"&&!o.hasOwnProperty(f)&&klr(o,s,f)};Object.defineProperty(CE,"__esModule",{value:!0});CE.ono=void 0;var jlt=Llt();Object.defineProperty(CE,"ono",{enumerable:!0,get:t(function(){return jlt.ono},"get")});var Dlr=_Ie();Object.defineProperty(CE,"Ono",{enumerable:!0,get:t(function(){return Dlr.Ono},"get")});wlr(Mlt(),CE);CE.default=jlt.ono;typeof CM=="object"&&typeof CM.exports=="object"&&(CM.exports=Object.assign(CM.exports.default,CM.exports))});var pIe=or(NH=>{"use strict";var Plr=NH&&NH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(NH,"__esModule",{value:!0});NH.default=Alr;var Blt=Plr(uo("path"));function Alr(s){return s.startsWith("\\\\?\\")?s:s.split(Blt.default?.win32?.sep).join(Blt.default?.posix?.sep??"/")}t(Alr,"convertPathToPosix")});var Ult=or(yle=>{"use strict";Object.defineProperty(yle,"__esModule",{value:!0});yle.isWindows=void 0;var Nlr=/^win/.test(globalThis.process?globalThis.process.platform:""),Ilr=t(()=>Nlr,"isWindows");yle.isWindows=Ilr});var gT=or(Op=>{"use strict";var Olr=Op&&Op.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Flr=Op&&Op.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Llr=Op&&Op.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Olr(o,s,f);return Flr(o,s),o},Rlr=Op&&Op.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Op,"__esModule",{value:!0});Op.parse=void 0;Op.resolve=zlt;Op.cwd=$lt;Op.getProtocol=yIe;Op.getExtension=Wlr;Op.stripQuery=Jlt;Op.getHash=Wlt;Op.stripHash=hIe;Op.isHttp=qlr;Op.isFileSystemPath=gIe;Op.fromFileSystemPath=Vlr;Op.toFileSystemPath=Hlr;Op.safePointerToPath=Glr;Op.relative=Ylr;var ble=Rlr(pIe()),mIe=Llr(uo("path")),Mlr=/\//g,jlr=/^(\w{2,}):\/\//i,Blr=/~1/g,Ulr=/~0/g,zlr=uo("path"),vle=Ult(),$lr=[[/\?/g,"%3F"],[/#/g,"%23"]],dIe=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],Jlr=t(s=>new URL(s),"parse");Op.parse=Jlr;function zlt(s,o){let f=new URL((0,ble.default)(s),"resolve://"),d=new URL((0,ble.default)(o),f),y=o.match(/(\s*)$/)?.[1]||"";if(d.protocol==="resolve:"){let{pathname:x,search:A,hash:F}=d;return x+A+F+y}return d.toString()+y}t(zlt,"resolve");function $lt(){if(typeof window<"u")return location.href;let s=process.cwd(),o=s.slice(-1);return o==="/"||o==="\\"?s:s+"/"}t($lt,"cwd");function yIe(s){let o=jlr.exec(s||"");if(o)return o[1].toLowerCase()}t(yIe,"getProtocol");function Wlr(s){let o=s.lastIndexOf(".");return o>=0?Jlt(s.substr(o).toLowerCase()):""}t(Wlr,"getExtension");function Jlt(s){let o=s.indexOf("?");return o>=0&&(s=s.substr(0,o)),s}t(Jlt,"stripQuery");function Wlt(s){if(!s)return"#";let o=s.indexOf("#");return o>=0?s.substring(o):"#"}t(Wlt,"getHash");function hIe(s){if(!s)return"";let o=s.indexOf("#");return o>=0&&(s=s.substring(0,o)),s}t(hIe,"stripHash");function qlr(s){let o=yIe(s);return o==="http"||o==="https"?!0:o===void 0?typeof window<"u":!1}t(qlr,"isHttp");function gIe(s){if(typeof window<"u"||typeof process<"u"&&process.browser)return!1;let o=yIe(s);return o===void 0||o==="file"}t(gIe,"isFileSystemPath");function Vlr(s){if((0,vle.isWindows)()){let o=$lt(),f=s.toUpperCase(),y=(0,ble.default)(o).toUpperCase(),x=f.includes(y),A=f.includes(y),F=mIe.win32?.isAbsolute(s)||s.startsWith("http://")||s.startsWith("https://")||s.startsWith("file://");!(x||A||F)&&!o.startsWith("http")&&(s=(0,zlr.join)(o,s)),s=(0,ble.default)(s)}s=encodeURI(s);for(let o of $lr)s=s.replace(o[0],o[1]);return s}t(Vlr,"fromFileSystemPath");function Hlr(s,o){s=decodeURI(s);for(let d=0;d<dIe.length;d+=2)s=s.replace(dIe[d],dIe[d+1]);let f=s.substr(0,7).toLowerCase()==="file://";return f&&(s=s[7]==="/"?s.substr(8):s.substr(7),(0,vle.isWindows)()&&s[1]==="/"&&(s=s[0]+":"+s.substr(1)),o?s="file:///"+s:(f=!1,s=(0,vle.isWindows)()?s:"/"+s)),(0,vle.isWindows)()&&!f&&(s=s.replace(Mlr,"\\"),s.substr(1,2)===":\\"&&(s=s[0].toUpperCase()+s.substr(1))),s}t(Hlr,"toFileSystemPath");function Glr(s){return s.length<=1||s[0]!=="#"||s[1]!=="/"?[]:s.slice(2).split("/").map(o=>decodeURIComponent(o).replace(Blr,"/").replace(Ulr,"~"))}t(Glr,"safePointerToPath");function Ylr(s,o){if(!gIe(s)||!gIe(o))return zlt(s,o);let f=mIe.default.dirname(hIe(s)),d=hIe(o);return mIe.default.relative(f,d)+Wlt(o)}t(Ylr,"relative")});var yT=or(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.InvalidPointerError=Qd.TimeoutError=Qd.MissingPointerError=Qd.UnmatchedResolverError=Qd.ResolverError=Qd.UnmatchedParserError=Qd.ParserError=Qd.JSONParserErrorGroup=Qd.JSONParserError=void 0;Qd.isHandledError=Klr;Qd.normalizeError=Xlr;var qlt=pI(),kIe=gT(),kE=class extends Error{static{t(this,"JSONParserError")}constructor(o,f){super(),this.code="EUNKNOWN",this.name="JSONParserError",this.message=o,this.source=f,this.path=null,qlt.Ono.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};Qd.JSONParserError=kE;var Sle=class s extends Error{static{t(this,"JSONParserErrorGroup")}constructor(o){super(),this.files=o,this.name="JSONParserErrorGroup",this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${(0,kIe.toFileSystemPath)(o.$refs._root$Ref.path)}'`,qlt.Ono.extend(this)}static getParserErrors(o){let f=[];for(let d of Object.values(o.$refs._$refs))d.errors&&f.push(...d.errors);return f}get errors(){return s.getParserErrors(this.files)}};Qd.JSONParserErrorGroup=Sle;var vIe=class extends kE{static{t(this,"ParserError")}constructor(o,f){super(`Error parsing ${f}: ${o}`,f),this.code="EPARSER",this.name="ParserError"}};Qd.ParserError=vIe;var bIe=class extends kE{static{t(this,"UnmatchedParserError")}constructor(o){super(`Could not find parser for "${o}"`,o),this.code="EUNMATCHEDPARSER",this.name="UnmatchedParserError"}};Qd.UnmatchedParserError=bIe;var SIe=class extends kE{static{t(this,"ResolverError")}constructor(o,f){super(o.message||`Error reading file "${f}"`,f),this.code="ERESOLVER",this.name="ResolverError","code"in o&&(this.ioErrorCode=String(o.code))}};Qd.ResolverError=SIe;var TIe=class extends kE{static{t(this,"UnmatchedResolverError")}constructor(o){super(`Could not find resolver for "${o}"`,o),this.code="EUNMATCHEDRESOLVER",this.name="UnmatchedResolverError"}};Qd.UnmatchedResolverError=TIe;var xIe=class extends kE{static{t(this,"MissingPointerError")}constructor(o,f){super(`Token "${o}" does not exist.`,(0,kIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="MissingPointerError"}};Qd.MissingPointerError=xIe;var EIe=class extends kE{static{t(this,"TimeoutError")}constructor(o){super(`Dereferencing timeout reached: ${o}ms`),this.code="ETIMEOUT",this.name="TimeoutError"}};Qd.TimeoutError=EIe;var CIe=class extends kE{static{t(this,"InvalidPointerError")}constructor(o,f){super(`Invalid $ref pointer "${o}". Pointers must begin with "#/"`,(0,kIe.stripHash)(f)),this.code="EUNMATCHEDRESOLVER",this.name="InvalidPointerError"}};Qd.InvalidPointerError=CIe;function Klr(s){return s instanceof kE||s instanceof Sle}t(Klr,"isHandledError");function Xlr(s){return s.path===null&&(s.path=[]),s}t(Xlr,"normalizeError")});var IH=or(wE=>{"use strict";var Zlr=wE&&wE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Qlr=wE&&wE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),eur=wE&&wE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Zlr(o,s,f);return Qlr(o,s),o},tur=wE&&wE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(wE,"__esModule",{value:!0});var wIe=tur(kM()),DIe=eur(gT()),xle=yT(),rur=/\//g,nur=/~/g,iur=/~1/g,sur=/~0/g,aur=t(s=>{try{return decodeURIComponent(s)}catch{return s}},"safeDecodeURIComponent"),Ele=class s{static{t(this,"Pointer")}constructor(o,f,d){this.$ref=o,this.path=f,this.originalPath=d||f,this.value=void 0,this.circular=!1,this.indirections=0}resolve(o,f,d){let y=s.parse(this.path,this.originalPath);this.value=Hlt(o);for(let x=0;x<y.length;x++){if(Tle(this,f,d)&&(this.path=s.join(this.path,y.slice(x))),typeof this.value=="object"&&this.value!==null&&!Glt(d)&&"$ref"in this.value)return this;let A=y[x];if(this.value[A]===void 0||this.value[A]===null&&x===y.length-1){let F=!1;for(let W=y.length-1;W>x;W--){let G=y.slice(x,W+1).join("/");if(this.value[G]!==void 0){this.value=this.value[G],x=W,F=!0;break}}if(F)continue;throw this.value=null,new xle.MissingPointerError(A,decodeURI(this.originalPath))}else this.value=this.value[A]}return(!this.value||this.value.$ref&&DIe.resolve(this.path,this.value.$ref)!==d)&&Tle(this,f,d),this}set(o,f,d){let y=s.parse(this.path),x;if(y.length===0)return this.value=f,f;this.value=Hlt(o);for(let A=0;A<y.length-1;A++)Tle(this,d),x=y[A],this.value&&this.value[x]!==void 0?this.value=this.value[x]:this.value=Vlt(this,x,{});return Tle(this,d),x=y[y.length-1],Vlt(this,x,f),o}static parse(o,f){let d=DIe.getHash(o).substring(1);if(!d)return[];let y=d.split("/");for(let x=0;x<y.length;x++)y[x]=aur(y[x].replace(iur,"/").replace(sur,"~"));if(y[0]!=="")throw new xle.InvalidPointerError(y,f===void 0?o:f);return y.slice(1)}static join(o,f){o.indexOf("#")===-1&&(o+="#"),f=Array.isArray(f)?f:[f];for(let d=0;d<f.length;d++){let y=f[d];o+="/"+encodeURIComponent(y.replace(nur,"~0").replace(rur,"~1"))}return o}};function Tle(s,o,f){if(wIe.default.isAllowed$Ref(s.value,o)){let d=DIe.resolve(s.path,s.value.$ref);if(d===s.path&&!Glt(f))s.circular=!0;else{let y=s.$ref.$refs._resolve(d,s.path,o);return y===null?!1:(s.indirections+=y.indirections+1,wIe.default.isExtended$Ref(s.value)?(s.value=wIe.default.dereference(s.value,y.value),!1):(s.$ref=y.$ref,s.path=y.path,s.value=y.value,!0))}}}t(Tle,"resolveIf$Ref");wE.default=Ele;function Vlt(s,o,f){if(s.value&&typeof s.value=="object")o==="-"&&Array.isArray(s.value)?s.value.push(f):s.value[o]=f;else throw new xle.JSONParserError(`Error assigning $ref pointer "${s.path}".
|
|
71
71
|
Cannot set "${o}" of a non-object.`);return f}t(Vlt,"setValue");function Hlt(s){if((0,xle.isHandledError)(s))throw s;return s}t(Hlt,"unwrapOrThrow");function Glt(s){return typeof s=="string"&&Ele.parse(s).length==0}t(Glt,"isRootPath")});var kM=or(OH=>{"use strict";var our=OH&&OH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(OH,"__esModule",{value:!0});var Ylt=our(IH()),Cle=yT(),PIe=gT(),AIe=class s{static{t(this,"$Ref")}constructor(o){this.errors=[],this.$refs=o}addError(o){this.errors===void 0&&(this.errors=[]);let f=this.errors.map(({footprint:d})=>d);"errors"in o&&Array.isArray(o.errors)?this.errors.push(...o.errors.map(Cle.normalizeError).filter(({footprint:d})=>!f.includes(d))):(!("footprint"in o)||!f.includes(o.footprint))&&this.errors.push((0,Cle.normalizeError)(o))}exists(o,f){try{return this.resolve(o,f),!0}catch{return!1}}get(o,f){return this.resolve(o,f)?.value}resolve(o,f,d,y){let x=new Ylt.default(this,o,d);try{return x.resolve(this.value,f,y)}catch(A){if(!f||!f.continueOnError||!(0,Cle.isHandledError)(A))throw A;return A.path===null&&(A.path=(0,PIe.safePointerToPath)((0,PIe.getHash)(y))),A instanceof Cle.InvalidPointerError&&(A.source=decodeURI((0,PIe.stripHash)(y))),this.addError(A),null}}set(o,f){let d=new Ylt.default(this,o);this.value=d.set(this.value,f)}static is$Ref(o){return!!o&&typeof o=="object"&&o!==null&&"$ref"in o&&typeof o.$ref=="string"&&o.$ref.length>0}static isExternal$Ref(o){return s.is$Ref(o)&&o.$ref[0]!=="#"}static isAllowed$Ref(o,f){if(this.is$Ref(o)){if(o.$ref.substring(0,2)==="#/"||o.$ref==="#")return!0;if(o.$ref[0]!=="#"&&(!f||f.resolve?.external))return!0}}static isExtended$Ref(o){return s.is$Ref(o)&&Object.keys(o).length>1}static dereference(o,f){if(f&&typeof f=="object"&&s.isExtended$Ref(o)){let d={};for(let y of Object.keys(o))y!=="$ref"&&(d[y]=o[y]);for(let y of Object.keys(f))y in d||(d[y]=f[y]);return d}else return f}};OH.default=AIe});var eut=or(DE=>{"use strict";var cur=DE&&DE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),lur=DE&&DE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),uur=DE&&DE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&cur(o,s,f);return lur(o,s),o},Qlt=DE&&DE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(DE,"__esModule",{value:!0});var Klt=pI(),fur=Qlt(kM()),dI=uur(gT()),Xlt=Qlt(pIe()),NIe=class{static{t(this,"$Refs")}paths(...o){return Zlt(this._$refs,o.flat()).map(d=>(0,Xlt.default)(d.decoded))}values(...o){let f=this._$refs;return Zlt(f,o.flat()).reduce((y,x)=>(y[(0,Xlt.default)(x.decoded)]=f[x.encoded].value,y),{})}exists(o,f){try{return this._resolve(o,"",f),!0}catch{return!1}}get(o,f){return this._resolve(o,"",f).value}set(o,f){let d=dI.resolve(this._root$Ref.path,o),y=dI.stripHash(d),x=this._$refs[y];if(!x)throw(0,Klt.ono)(`Error resolving $ref pointer "${o}".
|
|
72
72
|
"${y}" not found.`);x.set(d,f)}_get$Ref(o){o=dI.resolve(this._root$Ref.path,o);let f=dI.stripHash(o);return this._$refs[f]}_add(o){let f=dI.stripHash(o),d=new fur.default(this);return d.path=f,this._$refs[f]=d,this._root$Ref=this._root$Ref||d,d}_resolve(o,f,d){let y=dI.resolve(this._root$Ref.path,o),x=dI.stripHash(y),A=this._$refs[x];if(!A)throw(0,Klt.ono)(`Error resolving $ref pointer "${o}".
|
|
73
73
|
"${x}" not found.`);return A.resolve(y,d,o,f)}constructor(){this._$refs={},this.toJSON=this.values,this.circular=!1,this._$refs={},this._root$Ref=null}};DE.default=NIe;function Zlt(s,o){let f=Object.keys(s);return o=Array.isArray(o[0])?o[0]:Array.prototype.slice.call(o),o.length>0&&o[0]&&(f=f.filter(d=>o.includes(s[d].pathType))),f.map(d=>({encoded:d,decoded:s[d].pathType==="file"?dI.toFileSystemPath(d,!0):d}))}t(Zlt,"getPaths")});var rut=or(wM=>{"use strict";Object.defineProperty(wM,"__esModule",{value:!0});wM.all=_ur;wM.filter=pur;wM.sort=dur;wM.run=mur;function _ur(s){return Object.keys(s||{}).filter(o=>typeof s[o]=="object").map(o=>(s[o].name=o,s[o]))}t(_ur,"all");function pur(s,o,f){return s.filter(d=>!!tut(d,o,f))}t(pur,"filter");function dur(s){for(let o of s)o.order=o.order||Number.MAX_SAFE_INTEGER;return s.sort((o,f)=>o.order-f.order)}t(dur,"sort");async function mur(s,o,f,d){let y,x,A=0;return new Promise((F,W)=>{G();function G(){if(y=s[A++],!y)return W(x);try{let Xe=tut(y,o,f,be,d);if(Xe&&typeof Xe.then=="function")Xe.then(de,se);else if(Xe!==void 0)de(Xe);else if(A===s.length)throw new Error("No promise has been returned or callback has been called.")}catch(Xe){se(Xe)}}t(G,"runNextPlugin");function be(Xe,Ue){Xe?se(Xe):de(Ue)}t(be,"callback");function de(Xe){F({plugin:y,result:Xe})}t(de,"onSuccess");function se(Xe){x={plugin:y,error:Xe},G()}t(se,"onError")})}t(mur,"run");function tut(s,o,f,d,y){let x=s[o];if(typeof x=="function")return x.apply(s,[f,d,y]);if(!d){if(x instanceof RegExp)return x.test(f.url);if(typeof x=="string")return x===f.extension;if(Array.isArray(x))return x.indexOf(f.extension)!==-1}return x}t(tut,"getResult")});var OIe=or(QP=>{"use strict";var hur=QP&&QP.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),gur=QP&&QP.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),nut=QP&&QP.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&hur(o,s,f);return gur(o,s),o};Object.defineProperty(QP,"__esModule",{value:!0});var IIe=pI(),yur=nut(gT()),mI=nut(rut()),FO=yT();async function vur(s,o,f){let d=s.indexOf("#"),y="";d>=0&&(y=s.substring(d),s=s.substring(0,d));let x=o._add(s),A={url:s,hash:y,extension:yur.getExtension(s)};try{let F=await bur(A,f,o);x.pathType=F.plugin.name,A.data=F.result;let W=await Sur(A,f,o);return x.value=W.result,W.result}catch(F){throw(0,FO.isHandledError)(F)&&(x.value=F),F}}t(vur,"parse");async function bur(s,o,f){let d=mI.all(o.resolve);d=mI.filter(d,"canRead",s),mI.sort(d);try{return await mI.run(d,"read",s,f)}catch(y){throw!y&&o.continueOnError?new FO.UnmatchedResolverError(s.url):!y||!("error"in y)?IIe.ono.syntax(`Unable to resolve $ref pointer "${s.url}"`):y.error instanceof FO.ResolverError?y.error:new FO.ResolverError(y,s.url)}}t(bur,"readFile");async function Sur(s,o,f){let d=mI.all(o.parse),y=mI.filter(d,"canParse",s),x=y.length>0?y:d;mI.sort(x);try{let A=await mI.run(x,"parse",s,f);if(!A.plugin.allowEmpty&&Tur(A.result))throw IIe.ono.syntax(`Error parsing "${s.url}" as ${A.plugin.name}.
|
|
74
|
-
Parsed value is empty`);return A}catch(A){throw!A&&o.continueOnError?new FO.UnmatchedParserError(s.url):A&&A.message&&A.message.startsWith("Error parsing")?A:!A||!("error"in A)?IIe.ono.syntax(`Unable to parse ${s.url}`):A.error instanceof FO.ParserError?A.error:new FO.ParserError(A.error.message,s.url)}}t(Sur,"parseFile");function Tur(s){return s===void 0||typeof s=="object"&&Object.keys(s).length===0||typeof s=="string"&&s.trim().length===0||Buffer.isBuffer(s)&&s.length===0}t(Tur,"isEmpty");QP.default=vur});var sut=or(FIe=>{"use strict";Object.defineProperty(FIe,"__esModule",{value:!0});var iut=yT();FIe.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(s){let o=s.data;if(Buffer.isBuffer(o)&&(o=o.toString()),typeof o=="string"){if(o.trim().length===0)return;try{return JSON.parse(o)}catch(f){if(this.allowBOM)try{let d=o.indexOf("{");return o=o.slice(d),JSON.parse(o)}catch(d){throw new iut.ParserError(d.message,s.url)}throw new iut.ParserError(f.message,s.url)}}else return o}}});var DM=or((
|
|
74
|
+
Parsed value is empty`);return A}catch(A){throw!A&&o.continueOnError?new FO.UnmatchedParserError(s.url):A&&A.message&&A.message.startsWith("Error parsing")?A:!A||!("error"in A)?IIe.ono.syntax(`Unable to parse ${s.url}`):A.error instanceof FO.ParserError?A.error:new FO.ParserError(A.error.message,s.url)}}t(Sur,"parseFile");function Tur(s){return s===void 0||typeof s=="object"&&Object.keys(s).length===0||typeof s=="string"&&s.trim().length===0||Buffer.isBuffer(s)&&s.length===0}t(Tur,"isEmpty");QP.default=vur});var sut=or(FIe=>{"use strict";Object.defineProperty(FIe,"__esModule",{value:!0});var iut=yT();FIe.default={order:100,allowEmpty:!0,canParse:".json",allowBOM:!0,async parse(s){let o=s.data;if(Buffer.isBuffer(o)&&(o=o.toString()),typeof o=="string"){if(o.trim().length===0)return;try{return JSON.parse(o)}catch(f){if(this.allowBOM)try{let d=o.indexOf("{");return o=o.slice(d),JSON.parse(o)}catch(d){throw new iut.ParserError(d.message,s.url)}throw new iut.ParserError(f.message,s.url)}}else return o}}});var DM=or((XNr,LO)=>{"use strict";function aut(s){return typeof s>"u"||s===null}t(aut,"isNothing");function xur(s){return typeof s=="object"&&s!==null}t(xur,"isObject");function Eur(s){return Array.isArray(s)?s:aut(s)?[]:[s]}t(Eur,"toArray");function Cur(s,o){if(o){let f=Object.keys(o);for(let d=0,y=f.length;d<y;d+=1){let x=f[d];s[x]=o[x]}}return s}t(Cur,"extend");function kur(s,o){let f="";for(let d=0;d<o;d+=1)f+=s;return f}t(kur,"repeat");function wur(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}t(wur,"isNegativeZero");LO.exports.isNothing=aut;LO.exports.isObject=xur;LO.exports.toArray=Eur;LO.exports.repeat=kur;LO.exports.isNegativeZero=wur;LO.exports.extend=Cur});var PM=or((QNr,cut)=>{"use strict";function out(s,o){let f="",d=s.reason||"(unknown reason)";return s.mark?(s.mark.name&&(f+='in "'+s.mark.name+'" '),f+="("+(s.mark.line+1)+":"+(s.mark.column+1)+")",!o&&s.mark.snippet&&(f+=`
|
|
75
75
|
|
|
76
|
-
`+s.mark.snippet),d+" "+f):d}t(out,"formatError");function FH(s,o){Error.call(this),this.name="YAMLException",this.reason=s,this.mark=o,this.message=out(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}t(FH,"YAMLException");FH.prototype=Object.create(Error.prototype);FH.prototype.constructor=FH;FH.prototype.toString=t(function(o){return this.name+": "+out(this,o)},"toString");cut.exports=FH});var uut=or((
|
|
76
|
+
`+s.mark.snippet),d+" "+f):d}t(out,"formatError");function FH(s,o){Error.call(this),this.name="YAMLException",this.reason=s,this.mark=o,this.message=out(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}t(FH,"YAMLException");FH.prototype=Object.create(Error.prototype);FH.prototype.constructor=FH;FH.prototype.toString=t(function(o){return this.name+": "+out(this,o)},"toString");cut.exports=FH});var uut=or((tIr,lut)=>{"use strict";var LH=DM();function LIe(s,o,f,d,y){let x="",A="",F=Math.floor(y/2)-1;return d-o>F&&(x=" ... ",o=d-F+x.length),f-d>F&&(A=" ...",f=d+F-A.length),{str:x+s.slice(o,f).replace(/\t/g,"\u2192")+A,pos:d-o+x.length}}t(LIe,"getLine");function RIe(s,o){return LH.repeat(" ",o-s.length)+s}t(RIe,"padStart");function Dur(s,o){if(o=Object.create(o||null),!s.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);let f=/\r?\n|\r|\0/g,d=[0],y=[],x,A=-1;for(;x=f.exec(s.buffer);)y.push(x.index),d.push(x.index+x[0].length),s.position<=x.index&&A<0&&(A=d.length-2);A<0&&(A=d.length-1);let F="",W=Math.min(s.line+o.linesAfter,y.length).toString().length,G=o.maxLength-(o.indent+W+3);for(let de=1;de<=o.linesBefore&&!(A-de<0);de++){let se=LIe(s.buffer,d[A-de],y[A-de],s.position-(d[A]-d[A-de]),G);F=LH.repeat(" ",o.indent)+RIe((s.line-de+1).toString(),W)+" | "+se.str+`
|
|
77
77
|
`+F}let be=LIe(s.buffer,d[A],y[A],s.position,G);F+=LH.repeat(" ",o.indent)+RIe((s.line+1).toString(),W)+" | "+be.str+`
|
|
78
78
|
`,F+=LH.repeat("-",o.indent+W+3+be.pos)+`^
|
|
79
79
|
`;for(let de=1;de<=o.linesAfter&&!(A+de>=y.length);de++){let se=LIe(s.buffer,d[A+de],y[A+de],s.position-(d[A]-d[A+de]),G);F+=LH.repeat(" ",o.indent)+RIe((s.line+de+1).toString(),W)+" | "+se.str+`
|
|
80
|
-
`}return F.replace(/\n$/,"")}t(Dur,"makeSnippet");lut.exports=Dur});var Dy=or((
|
|
81
|
-
\r`;function mfr(s){if(s===null)return!1;let o=0,f=s.length,d=ZIe;for(let y=0;y<f;y++){let x=d.indexOf(s.charAt(y));if(!(x>64)){if(x<0)return!1;o+=6}}return o%8===0}t(mfr,"resolveYamlBinary");function hfr(s){let o=s.replace(/[\r\n=]/g,""),f=o.length,d=ZIe,y=0,x=[];for(let F=0;F<f;F++)F%4===0&&F&&(x.push(y>>16&255),x.push(y>>8&255),x.push(y&255)),y=y<<6|d.indexOf(o.charAt(F));let A=f%4*6;return A===0?(x.push(y>>16&255),x.push(y>>8&255),x.push(y&255)):A===18?(x.push(y>>10&255),x.push(y>>2&255)):A===12&&x.push(y>>4&255),new Uint8Array(x)}t(hfr,"constructYamlBinary");function gfr(s){let o="",f=0,d=s.length,y=ZIe;for(let A=0;A<d;A++)A%3===0&&A&&(o+=y[f>>18&63],o+=y[f>>12&63],o+=y[f>>6&63],o+=y[f&63]),f=(f<<8)+s[A];let x=d%3;return x===0?(o+=y[f>>18&63],o+=y[f>>12&63],o+=y[f>>6&63],o+=y[f&63]):x===2?(o+=y[f>>10&63],o+=y[f>>4&63],o+=y[f<<2&63],o+=y[64]):x===1&&(o+=y[f>>2&63],o+=y[f<<4&63],o+=y[64],o+=y[64]),o}t(gfr,"representYamlBinary");function yfr(s){return Object.prototype.toString.call(s)==="[object Uint8Array]"}t(yfr,"isBinary");Aut.exports=new dfr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:mfr,construct:hfr,predicate:yfr,represent:gfr})});var e4e=or((
|
|
80
|
+
`}return F.replace(/\n$/,"")}t(Dur,"makeSnippet");lut.exports=Dur});var Dy=or((nIr,_ut)=>{"use strict";var fut=PM(),Pur=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Aur=["scalar","sequence","mapping"];function Nur(s){let o={};return s!==null&&Object.keys(s).forEach(function(f){s[f].forEach(function(d){o[String(d)]=f})}),o}t(Nur,"compileStyleAliases");function Iur(s,o){if(o=o||{},Object.keys(o).forEach(function(f){if(Pur.indexOf(f)===-1)throw new fut('Unknown option "'+f+'" is met in definition of "'+s+'" YAML type.')}),this.options=o,this.tag=s,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(f){return f},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=Nur(o.styleAliases||null),Aur.indexOf(this.kind)===-1)throw new fut('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}t(Iur,"Type");_ut.exports=Iur});var BIe=or((sIr,dut)=>{"use strict";var RH=PM(),MIe=Dy();function put(s,o){let f=[];return s[o].forEach(function(d){let y=f.length;f.forEach(function(x,A){x.tag===d.tag&&x.kind===d.kind&&x.multi===d.multi&&(y=A)}),f[y]=d}),f}t(put,"compileList");function Our(){let s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(f){f.multi?(s.multi[f.kind].push(f),s.multi.fallback.push(f)):s[f.kind][f.tag]=s.fallback[f.tag]=f}t(o,"collectType");for(let f=0,d=arguments.length;f<d;f+=1)arguments[f].forEach(o);return s}t(Our,"compileMap");function jIe(s){return this.extend(s)}t(jIe,"Schema");jIe.prototype.extend=t(function(o){let f=[],d=[];if(o instanceof MIe)d.push(o);else if(Array.isArray(o))d=d.concat(o);else if(o&&(Array.isArray(o.implicit)||Array.isArray(o.explicit)))o.implicit&&(f=f.concat(o.implicit)),o.explicit&&(d=d.concat(o.explicit));else throw new RH("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(x){if(!(x instanceof MIe))throw new RH("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(x.loadKind&&x.loadKind!=="scalar")throw new RH("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(x.multi)throw new RH("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(x){if(!(x instanceof MIe))throw new RH("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let y=Object.create(jIe.prototype);return y.implicit=(this.implicit||[]).concat(f),y.explicit=(this.explicit||[]).concat(d),y.compiledImplicit=put(y,"implicit"),y.compiledExplicit=put(y,"explicit"),y.compiledTypeMap=Our(y.compiledImplicit,y.compiledExplicit),y},"extend");dut.exports=jIe});var UIe=or((oIr,mut)=>{"use strict";var Fur=Dy();mut.exports=new Fur("tag:yaml.org,2002:str",{kind:"scalar",construct:t(function(s){return s!==null?s:""},"construct")})});var zIe=or((lIr,hut)=>{"use strict";var Lur=Dy();hut.exports=new Lur("tag:yaml.org,2002:seq",{kind:"sequence",construct:t(function(s){return s!==null?s:[]},"construct")})});var $Ie=or((fIr,gut)=>{"use strict";var Rur=Dy();gut.exports=new Rur("tag:yaml.org,2002:map",{kind:"mapping",construct:t(function(s){return s!==null?s:{}},"construct")})});var JIe=or((pIr,yut)=>{"use strict";var Mur=BIe();yut.exports=new Mur({explicit:[UIe(),zIe(),$Ie()]})});var WIe=or((dIr,vut)=>{"use strict";var jur=Dy();function Bur(s){if(s===null)return!0;let o=s.length;return o===1&&s==="~"||o===4&&(s==="null"||s==="Null"||s==="NULL")}t(Bur,"resolveYamlNull");function Uur(){return null}t(Uur,"constructYamlNull");function zur(s){return s===null}t(zur,"isNull");vut.exports=new jur("tag:yaml.org,2002:null",{kind:"scalar",resolve:Bur,construct:Uur,predicate:zur,represent:{canonical:t(function(){return"~"},"canonical"),lowercase:t(function(){return"null"},"lowercase"),uppercase:t(function(){return"NULL"},"uppercase"),camelcase:t(function(){return"Null"},"camelcase"),empty:t(function(){return""},"empty")},defaultStyle:"lowercase"})});var qIe=or((hIr,but)=>{"use strict";var $ur=Dy();function Jur(s){if(s===null)return!1;let o=s.length;return o===4&&(s==="true"||s==="True"||s==="TRUE")||o===5&&(s==="false"||s==="False"||s==="FALSE")}t(Jur,"resolveYamlBoolean");function Wur(s){return s==="true"||s==="True"||s==="TRUE"}t(Wur,"constructYamlBoolean");function qur(s){return Object.prototype.toString.call(s)==="[object Boolean]"}t(qur,"isBoolean");but.exports=new $ur("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Jur,construct:Wur,predicate:qur,represent:{lowercase:t(function(s){return s?"true":"false"},"lowercase"),uppercase:t(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:t(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var VIe=or((yIr,Sut)=>{"use strict";var Vur=DM(),Hur=Dy();function Gur(s){return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102}t(Gur,"isHexCode");function Yur(s){return s>=48&&s<=55}t(Yur,"isOctCode");function Kur(s){return s>=48&&s<=57}t(Kur,"isDecCode");function Xur(s){if(s===null)return!1;let o=s.length,f=0,d=!1;if(!o)return!1;let y=s[f];if((y==="-"||y==="+")&&(y=s[++f]),y==="0"){if(f+1===o)return!0;if(y=s[++f],y==="b"){for(f++;f<o;f++){if(y=s[f],y!=="0"&&y!=="1")return!1;d=!0}return d&&isFinite(MH(s))}if(y==="x"){for(f++;f<o;f++){if(!Gur(s.charCodeAt(f)))return!1;d=!0}return d&&isFinite(MH(s))}if(y==="o"){for(f++;f<o;f++){if(!Yur(s.charCodeAt(f)))return!1;d=!0}return d&&isFinite(MH(s))}}for(;f<o;f++){if(!Kur(s.charCodeAt(f)))return!1;d=!0}return d?isFinite(MH(s)):!1}t(Xur,"resolveYamlInteger");function MH(s){let o=s,f=1,d=o[0];if((d==="-"||d==="+")&&(d==="-"&&(f=-1),o=o.slice(1),d=o[0]),o==="0")return 0;if(d==="0"){if(o[1]==="b")return f*parseInt(o.slice(2),2);if(o[1]==="x")return f*parseInt(o.slice(2),16);if(o[1]==="o")return f*parseInt(o.slice(2),8)}return f*parseInt(o,10)}t(MH,"parseYamlInteger");function Zur(s){return MH(s)}t(Zur,"constructYamlInteger");function Qur(s){return Object.prototype.toString.call(s)==="[object Number]"&&s%1===0&&!Vur.isNegativeZero(s)}t(Qur,"isInteger");Sut.exports=new Hur("tag:yaml.org,2002:int",{kind:"scalar",resolve:Xur,construct:Zur,predicate:Qur,represent:{binary:t(function(s){return s>=0?"0b"+s.toString(2):"-0b"+s.toString(2).slice(1)},"binary"),octal:t(function(s){return s>=0?"0o"+s.toString(8):"-0o"+s.toString(8).slice(1)},"octal"),decimal:t(function(s){return s.toString(10)},"decimal"),hexadecimal:t(function(s){return s>=0?"0x"+s.toString(16).toUpperCase():"-0x"+s.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var HIe=or((bIr,xut)=>{"use strict";var Tut=DM(),efr=Dy(),tfr=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),rfr=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function nfr(s){return s===null||!tfr.test(s)?!1:isFinite(parseFloat(s,10))?!0:rfr.test(s)}t(nfr,"resolveYamlFloat");function ifr(s){let o=s.toLowerCase(),f=o[0]==="-"?-1:1;return"+-".indexOf(o[0])>=0&&(o=o.slice(1)),o===".inf"?f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:o===".nan"?NaN:f*parseFloat(o,10)}t(ifr,"constructYamlFloat");var sfr=/^[-+]?[0-9]+e/;function afr(s,o){if(isNaN(s))switch(o){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===s)switch(o){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===s)switch(o){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Tut.isNegativeZero(s))return"-0.0";let f=s.toString(10);return sfr.test(f)?f.replace("e",".e"):f}t(afr,"representYamlFloat");function ofr(s){return Object.prototype.toString.call(s)==="[object Number]"&&(s%1!==0||Tut.isNegativeZero(s))}t(ofr,"isFloat");xut.exports=new efr("tag:yaml.org,2002:float",{kind:"scalar",resolve:nfr,construct:ifr,predicate:ofr,represent:afr,defaultStyle:"lowercase"})});var GIe=or((TIr,Eut)=>{"use strict";Eut.exports=JIe().extend({implicit:[WIe(),qIe(),VIe(),HIe()]})});var YIe=or((xIr,Cut)=>{"use strict";Cut.exports=GIe()});var KIe=or((EIr,Dut)=>{"use strict";var cfr=Dy(),kut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),wut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function lfr(s){return s===null?!1:kut.exec(s)!==null||wut.exec(s)!==null}t(lfr,"resolveYamlTimestamp");function ufr(s){let o=0,f=null,d=kut.exec(s);if(d===null&&(d=wut.exec(s)),d===null)throw new Error("Date resolve error");let y=+d[1],x=+d[2]-1,A=+d[3];if(!d[4])return new Date(Date.UTC(y,x,A));let F=+d[4],W=+d[5],G=+d[6];if(d[7]){for(o=d[7].slice(0,3);o.length<3;)o+="0";o=+o}if(d[9]){let de=+d[10],se=+(d[11]||0);f=(de*60+se)*6e4,d[9]==="-"&&(f=-f)}let be=new Date(Date.UTC(y,x,A,F,W,G,o));return f&&be.setTime(be.getTime()-f),be}t(ufr,"constructYamlTimestamp");function ffr(s){return s.toISOString()}t(ffr,"representYamlTimestamp");Dut.exports=new cfr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lfr,construct:ufr,instanceOf:Date,represent:ffr})});var XIe=or((kIr,Put)=>{"use strict";var _fr=Dy();function pfr(s){return s==="<<"||s===null}t(pfr,"resolveYamlMerge");Put.exports=new _fr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:pfr})});var QIe=or((DIr,Aut)=>{"use strict";var dfr=Dy(),ZIe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
81
|
+
\r`;function mfr(s){if(s===null)return!1;let o=0,f=s.length,d=ZIe;for(let y=0;y<f;y++){let x=d.indexOf(s.charAt(y));if(!(x>64)){if(x<0)return!1;o+=6}}return o%8===0}t(mfr,"resolveYamlBinary");function hfr(s){let o=s.replace(/[\r\n=]/g,""),f=o.length,d=ZIe,y=0,x=[];for(let F=0;F<f;F++)F%4===0&&F&&(x.push(y>>16&255),x.push(y>>8&255),x.push(y&255)),y=y<<6|d.indexOf(o.charAt(F));let A=f%4*6;return A===0?(x.push(y>>16&255),x.push(y>>8&255),x.push(y&255)):A===18?(x.push(y>>10&255),x.push(y>>2&255)):A===12&&x.push(y>>4&255),new Uint8Array(x)}t(hfr,"constructYamlBinary");function gfr(s){let o="",f=0,d=s.length,y=ZIe;for(let A=0;A<d;A++)A%3===0&&A&&(o+=y[f>>18&63],o+=y[f>>12&63],o+=y[f>>6&63],o+=y[f&63]),f=(f<<8)+s[A];let x=d%3;return x===0?(o+=y[f>>18&63],o+=y[f>>12&63],o+=y[f>>6&63],o+=y[f&63]):x===2?(o+=y[f>>10&63],o+=y[f>>4&63],o+=y[f<<2&63],o+=y[64]):x===1&&(o+=y[f>>2&63],o+=y[f<<4&63],o+=y[64],o+=y[64]),o}t(gfr,"representYamlBinary");function yfr(s){return Object.prototype.toString.call(s)==="[object Uint8Array]"}t(yfr,"isBinary");Aut.exports=new dfr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:mfr,construct:hfr,predicate:yfr,represent:gfr})});var e4e=or((AIr,Nut)=>{"use strict";var vfr=Dy(),bfr=Object.prototype.hasOwnProperty,Sfr=Object.prototype.toString;function Tfr(s){if(s===null)return!0;let o=[],f=s;for(let d=0,y=f.length;d<y;d+=1){let x=f[d],A=!1;if(Sfr.call(x)!=="[object Object]")return!1;let F;for(F in x)if(bfr.call(x,F))if(!A)A=!0;else return!1;if(!A)return!1;if(o.indexOf(F)===-1)o.push(F);else return!1}return!0}t(Tfr,"resolveYamlOmap");function xfr(s){return s!==null?s:[]}t(xfr,"constructYamlOmap");Nut.exports=new vfr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Tfr,construct:xfr})});var t4e=or((IIr,Iut)=>{"use strict";var Efr=Dy(),Cfr=Object.prototype.toString;function kfr(s){if(s===null)return!0;let o=s,f=new Array(o.length);for(let d=0,y=o.length;d<y;d+=1){let x=o[d];if(Cfr.call(x)!=="[object Object]")return!1;let A=Object.keys(x);if(A.length!==1)return!1;f[d]=[A[0],x[A[0]]]}return!0}t(kfr,"resolveYamlPairs");function wfr(s){if(s===null)return[];let o=s,f=new Array(o.length);for(let d=0,y=o.length;d<y;d+=1){let x=o[d],A=Object.keys(x);f[d]=[A[0],x[A[0]]]}return f}t(wfr,"constructYamlPairs");Iut.exports=new Efr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:kfr,construct:wfr})});var r4e=or((FIr,Out)=>{"use strict";var Dfr=Dy(),Pfr=Object.prototype.hasOwnProperty;function Afr(s){if(s===null)return!0;let o=s;for(let f in o)if(Pfr.call(o,f)&&o[f]!==null)return!1;return!0}t(Afr,"resolveYamlSet");function Nfr(s){return s!==null?s:{}}t(Nfr,"constructYamlSet");Out.exports=new Dfr("tag:yaml.org,2002:set",{kind:"mapping",resolve:Afr,construct:Nfr})});var kle=or((RIr,Fut)=>{"use strict";Fut.exports=YIe().extend({implicit:[KIe(),XIe()],explicit:[QIe(),e4e(),t4e(),r4e()]})});var eft=or((MIr,a4e)=>{"use strict";var RO=DM(),$ut=PM(),Ifr=uut(),Ofr=kle(),PE=Object.prototype.hasOwnProperty,wle=1,Jut=2,Wut=3,Dle=4,n4e=1,Ffr=2,Lut=3,Lfr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rfr=/[\x85\u2028\u2029]/,Mfr=/[,\[\]{}]/,qut=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Vut=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function Rut(s){return Object.prototype.toString.call(s)}t(Rut,"_class");function Jk(s){return s===10||s===13}t(Jk,"isEol");function eA(s){return s===9||s===32}t(eA,"isWhiteSpace");function Qv(s){return s===9||s===32||s===10||s===13}t(Qv,"isWsOrEol");function AM(s){return s===44||s===91||s===93||s===123||s===125}t(AM,"isFlowIndicator");function jfr(s){if(s>=48&&s<=57)return s-48;let o=s|32;return o>=97&&o<=102?o-97+10:-1}t(jfr,"fromHexCode");function Bfr(s){return s===120?2:s===117?4:s===85?8:0}t(Bfr,"escapedHexLen");function Ufr(s){return s>=48&&s<=57?s-48:-1}t(Ufr,"fromDecimalCode");function Mut(s){switch(s){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
82
82
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}t(Mut,"simpleEscapeSequence");function zfr(s){return s<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320)}t(zfr,"charFromCodepoint");function Hut(s,o,f){o==="__proto__"?Object.defineProperty(s,o,{configurable:!0,enumerable:!0,writable:!0,value:f}):s[o]=f}t(Hut,"setProperty");var Gut=new Array(256),Yut=new Array(256);for(let s=0;s<256;s++)Gut[s]=Mut(s)?1:0,Yut[s]=Mut(s);function $fr(s,o){this.input=s,this.filename=o.filename||null,this.schema=o.schema||Ofr,this.onWarning=o.onWarning||null,this.legacy=o.legacy||!1,this.json=o.json||!1,this.listener=o.listener||null,this.maxDepth=typeof o.maxDepth=="number"?o.maxDepth:100,this.maxTotalMergeKeys=typeof o.maxTotalMergeKeys=="number"?o.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=s.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}t($fr,"State");function Kut(s,o){let f={name:s.filename,buffer:s.input.slice(0,-1),position:s.position,line:s.line,column:s.position-s.lineStart};return f.snippet=Ifr(f),new $ut(o,f)}t(Kut,"generateError");function bo(s,o){throw Kut(s,o)}t(bo,"throwError");function Ple(s,o){s.onWarning&&s.onWarning.call(null,Kut(s,o))}t(Ple,"throwWarning");function MO(s,o,f){let d=s.anchorMapTransactions;if(d.length!==0){let y=d[d.length-1];PE.call(y,o)||(y[o]={existed:PE.call(s.anchorMap,o),value:s.anchorMap[o]})}s.anchorMap[o]=f}t(MO,"storeAnchor");function Jfr(s){s.anchorMapTransactions.push(Object.create(null))}t(Jfr,"beginAnchorTransaction");function Wfr(s){let o=s.anchorMapTransactions.pop(),f=s.anchorMapTransactions;if(f.length===0)return;let d=f[f.length-1],y=Object.keys(o);for(let x=0,A=y.length;x<A;x+=1){let F=y[x];PE.call(d,F)||(d[F]=o[F])}}t(Wfr,"commitAnchorTransaction");function qfr(s){let o=s.anchorMapTransactions.pop(),f=Object.keys(o);for(let d=f.length-1;d>=0;d-=1){let y=o[f[d]];y.existed?s.anchorMap[f[d]]=y.value:delete s.anchorMap[f[d]]}}t(qfr,"rollbackAnchorTransaction");function Xut(s){return{position:s.position,line:s.line,lineStart:s.lineStart,lineIndent:s.lineIndent,firstTabInLine:s.firstTabInLine,tag:s.tag,anchor:s.anchor,kind:s.kind,result:s.result}}t(Xut,"snapshotState");function jut(s,o){s.position=o.position,s.line=o.line,s.lineStart=o.lineStart,s.lineIndent=o.lineIndent,s.firstTabInLine=o.firstTabInLine,s.tag=o.tag,s.anchor=o.anchor,s.kind=o.kind,s.result=o.result}t(jut,"restoreState");var But={YAML:t(function(o,f,d){o.version!==null&&bo(o,"duplication of %YAML directive"),d.length!==1&&bo(o,"YAML directive accepts exactly one argument");let y=/^([0-9]+)\.([0-9]+)$/.exec(d[0]);y===null&&bo(o,"ill-formed argument of the YAML directive");let x=parseInt(y[1],10),A=parseInt(y[2],10);x!==1&&bo(o,"unacceptable YAML version of the document"),o.version=d[0],o.checkLineBreaks=A<2,A!==1&&A!==2&&Ple(o,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:t(function(o,f,d){let y;d.length!==2&&bo(o,"TAG directive accepts exactly two arguments");let x=d[0];y=d[1],qut.test(x)||bo(o,"ill-formed tag handle (first argument) of the TAG directive"),PE.call(o.tagMap,x)&&bo(o,'there is a previously declared suffix for "'+x+'" tag handle'),Vut.test(y)||bo(o,"ill-formed tag prefix (second argument) of the TAG directive");try{y=decodeURIComponent(y)}catch{bo(o,"tag prefix is malformed: "+y)}o.tagMap[x]=y},"handleTagDirective")};function hI(s,o,f,d){if(o<f){let y=s.input.slice(o,f);if(d)for(let x=0,A=y.length;x<A;x+=1){let F=y.charCodeAt(x);F===9||F>=32&&F<=1114111||bo(s,"expected valid JSON character")}else Lfr.test(y)&&bo(s,"the stream contains non-printable characters");s.result+=y}}t(hI,"captureSegment");function Uut(s,o,f,d){RO.isObject(f)||bo(s,"cannot merge mappings; the provided source object is unacceptable");let y=Object.keys(f);for(let x=0,A=y.length;x<A;x+=1){let F=y[x];s.maxTotalMergeKeys!==-1&&++s.totalMergeKeys>s.maxTotalMergeKeys&&bo(s,"merge keys exceeded maxTotalMergeKeys ("+s.maxTotalMergeKeys+")"),PE.call(o,F)||(Hut(o,F,f[F]),d[F]=!0)}}t(Uut,"mergeMappings");function NM(s,o,f,d,y,x,A,F,W){if(Array.isArray(y)){y=Array.prototype.slice.call(y);for(let G=0,be=y.length;G<be;G+=1)Array.isArray(y[G])&&bo(s,"nested arrays are not supported inside keys"),typeof y=="object"&&Rut(y[G])==="[object Object]"&&(y[G]="[object Object]")}if(typeof y=="object"&&Rut(y)==="[object Object]"&&(y="[object Object]"),y=String(y),o===null&&(o={}),d==="tag:yaml.org,2002:merge")if(Array.isArray(x))for(let G=0,be=x.length;G<be;G+=1)Uut(s,o,x[G],f);else Uut(s,o,x,f);else!s.json&&!PE.call(f,y)&&PE.call(o,y)&&(s.line=A||s.line,s.lineStart=F||s.lineStart,s.position=W||s.position,bo(s,"duplicated mapping key")),Hut(o,y,x),delete f[y];return o}t(NM,"storeMappingPair");function i4e(s){let o=s.input.charCodeAt(s.position);o===10?s.position++:o===13?(s.position++,s.input.charCodeAt(s.position)===10&&s.position++):bo(s,"a line break is expected"),s.line+=1,s.lineStart=s.position,s.firstTabInLine=-1}t(i4e,"readLineBreak");function Gm(s,o,f){let d=0,y=s.input.charCodeAt(s.position);for(;y!==0;){for(;eA(y);)y===9&&s.firstTabInLine===-1&&(s.firstTabInLine=s.position),y=s.input.charCodeAt(++s.position);if(o&&y===35)do y=s.input.charCodeAt(++s.position);while(y!==10&&y!==13&&y!==0);if(Jk(y))for(i4e(s),y=s.input.charCodeAt(s.position),d++,s.lineIndent=0;y===32;)s.lineIndent++,y=s.input.charCodeAt(++s.position);else break}return f!==-1&&d!==0&&s.lineIndent<f&&Ple(s,"deficient indentation"),d}t(Gm,"skipSeparationSpace");function Ale(s){let o=s.position,f=s.input.charCodeAt(o);return!!((f===45||f===46)&&f===s.input.charCodeAt(o+1)&&f===s.input.charCodeAt(o+2)&&(o+=3,f=s.input.charCodeAt(o),f===0||Qv(f)))}t(Ale,"testDocumentSeparator");function s4e(s,o){o===1?s.result+=" ":o>1&&(s.result+=RO.repeat(`
|
|
83
83
|
`,o-1))}t(s4e,"writeFoldedLines");function Vfr(s,o,f){let d,y,x,A,F,W,G=s.kind,be=s.result,de=s.input.charCodeAt(s.position);if(Qv(de)||AM(de)||de===35||de===38||de===42||de===33||de===124||de===62||de===39||de===34||de===37||de===64||de===96)return!1;if(de===63||de===45){let se=s.input.charCodeAt(s.position+1);if(Qv(se)||f&&AM(se))return!1}for(s.kind="scalar",s.result="",d=y=s.position,x=!1;de!==0;){if(de===58){let se=s.input.charCodeAt(s.position+1);if(Qv(se)||f&&AM(se))break}else if(de===35){let se=s.input.charCodeAt(s.position-1);if(Qv(se))break}else{if(s.position===s.lineStart&&Ale(s)||f&&AM(de))break;if(Jk(de))if(A=s.line,F=s.lineStart,W=s.lineIndent,Gm(s,!1,-1),s.lineIndent>=o){x=!0,de=s.input.charCodeAt(s.position);continue}else{s.position=y,s.line=A,s.lineStart=F,s.lineIndent=W;break}}x&&(hI(s,d,y,!1),s4e(s,s.line-A),d=y=s.position,x=!1),eA(de)||(y=s.position+1),de=s.input.charCodeAt(++s.position)}return hI(s,d,y,!1),s.result?!0:(s.kind=G,s.result=be,!1)}t(Vfr,"readPlainScalar");function Hfr(s,o){let f,d,y=s.input.charCodeAt(s.position);if(y!==39)return!1;for(s.kind="scalar",s.result="",s.position++,f=d=s.position;(y=s.input.charCodeAt(s.position))!==0;)if(y===39)if(hI(s,f,s.position,!0),y=s.input.charCodeAt(++s.position),y===39)f=s.position,s.position++,d=s.position;else return!0;else Jk(y)?(hI(s,f,d,!0),s4e(s,Gm(s,!1,o)),f=d=s.position):s.position===s.lineStart&&Ale(s)?bo(s,"unexpected end of the document within a single quoted scalar"):(s.position++,eA(y)||(d=s.position));bo(s,"unexpected end of the stream within a single quoted scalar")}t(Hfr,"readSingleQuotedScalar");function Gfr(s,o){let f,d,y,x=s.input.charCodeAt(s.position);if(x!==34)return!1;for(s.kind="scalar",s.result="",s.position++,f=d=s.position;(x=s.input.charCodeAt(s.position))!==0;){if(x===34)return hI(s,f,s.position,!0),s.position++,!0;if(x===92){if(hI(s,f,s.position,!0),x=s.input.charCodeAt(++s.position),Jk(x))Gm(s,!1,o);else if(x<256&&Gut[x])s.result+=Yut[x],s.position++;else if((y=Bfr(x))>0){let A=y,F=0;for(;A>0;A--)x=s.input.charCodeAt(++s.position),(y=jfr(x))>=0?F=(F<<4)+y:bo(s,"expected hexadecimal character");s.result+=zfr(F),s.position++}else bo(s,"unknown escape sequence");f=d=s.position}else Jk(x)?(hI(s,f,d,!0),s4e(s,Gm(s,!1,o)),f=d=s.position):s.position===s.lineStart&&Ale(s)?bo(s,"unexpected end of the document within a double quoted scalar"):(s.position++,eA(x)||(d=s.position))}bo(s,"unexpected end of the stream within a double quoted scalar")}t(Gfr,"readDoubleQuotedScalar");function Yfr(s,o){let f=!0,d,y,x,A=s.tag,F,W=s.anchor,G,be,de,se,Xe=Object.create(null),Ue,je,Vt,Ut=s.input.charCodeAt(s.position);if(Ut===91)G=93,se=!1,F=[];else if(Ut===123)G=125,se=!0,F={};else return!1;for(s.anchor!==null&&MO(s,s.anchor,F),Ut=s.input.charCodeAt(++s.position);Ut!==0;){if(Gm(s,!0,o),Ut=s.input.charCodeAt(s.position),Ut===G)return s.position++,s.tag=A,s.anchor=W,s.kind=se?"mapping":"sequence",s.result=F,!0;if(f?Ut===44&&bo(s,"expected the node content, but found ','"):bo(s,"missed comma between flow collection entries"),je=Ue=Vt=null,be=de=!1,Ut===63){let Ir=s.input.charCodeAt(s.position+1);Qv(Ir)&&(be=de=!0,s.position++,Gm(s,!0,o))}d=s.line,y=s.lineStart,x=s.position,IM(s,o,wle,!1,!0),je=s.tag,Ue=s.result,Gm(s,!0,o),Ut=s.input.charCodeAt(s.position),(de||s.line===d)&&Ut===58&&(be=!0,Ut=s.input.charCodeAt(++s.position),Gm(s,!0,o),IM(s,o,wle,!1,!0),Vt=s.result),se?NM(s,F,Xe,je,Ue,Vt,d,y,x):be?F.push(NM(s,null,Xe,je,Ue,Vt,d,y,x)):F.push(Ue),Gm(s,!0,o),Ut=s.input.charCodeAt(s.position),Ut===44?(f=!0,Ut=s.input.charCodeAt(++s.position)):f=!1}bo(s,"unexpected end of the stream within a flow collection")}t(Yfr,"readFlowCollection");function Kfr(s,o){let f,d=n4e,y=!1,x=!1,A=o,F=0,W=!1,G,be=s.input.charCodeAt(s.position);if(be===124)f=!1;else if(be===62)f=!0;else return!1;for(s.kind="scalar",s.result="";be!==0;)if(be=s.input.charCodeAt(++s.position),be===43||be===45)n4e===d?d=be===43?Lut:Ffr:bo(s,"repeat of a chomping mode identifier");else if((G=Ufr(be))>=0)G===0?bo(s,"bad explicit indentation width of a block scalar; it cannot be less than one"):x?bo(s,"repeat of an indentation width identifier"):(A=o+G-1,x=!0);else break;if(eA(be)){do be=s.input.charCodeAt(++s.position);while(eA(be));if(be===35)do be=s.input.charCodeAt(++s.position);while(!Jk(be)&&be!==0)}for(;be!==0;){for(i4e(s),s.lineIndent=0,be=s.input.charCodeAt(s.position);(!x||s.lineIndent<A)&&be===32;)s.lineIndent++,be=s.input.charCodeAt(++s.position);if(!x&&s.lineIndent>A&&(A=s.lineIndent),Jk(be)){F++;continue}if(!x&&A===0&&bo(s,"missing indentation for block scalar"),s.lineIndent<A){d===Lut?s.result+=RO.repeat(`
|
|
84
84
|
`,y?1+F:F):d===n4e&&y&&(s.result+=`
|
|
@@ -87,7 +87,7 @@ Parsed value is empty`);return A}catch(A){throw!A&&o.continueOnError?new FO.Unma
|
|
|
87
87
|
`,F+1)):F===0?y&&(s.result+=" "):s.result+=RO.repeat(`
|
|
88
88
|
`,F):s.result+=RO.repeat(`
|
|
89
89
|
`,y?1+F:F),y=!0,x=!0,F=0;let de=s.position;for(;!Jk(be)&&be!==0;)be=s.input.charCodeAt(++s.position);hI(s,de,s.position,!1)}return!0}t(Kfr,"readBlockScalar");function zut(s,o){let f=s.tag,d=s.anchor,y=[],x=!1;if(s.firstTabInLine!==-1)return!1;s.anchor!==null&&MO(s,s.anchor,y);let A=s.input.charCodeAt(s.position);for(;A!==0&&(s.firstTabInLine!==-1&&(s.position=s.firstTabInLine,bo(s,"tab characters must not be used in indentation")),A===45);){let F=s.input.charCodeAt(s.position+1);if(!Qv(F))break;if(x=!0,s.position++,Gm(s,!0,-1)&&s.lineIndent<=o){y.push(null),A=s.input.charCodeAt(s.position);continue}let W=s.line;if(IM(s,o,Wut,!1,!0),y.push(s.result),Gm(s,!0,-1),A=s.input.charCodeAt(s.position),(s.line===W||s.lineIndent>o)&&A!==0)bo(s,"bad indentation of a sequence entry");else if(s.lineIndent<o)break}return x?(s.tag=f,s.anchor=d,s.kind="sequence",s.result=y,!0):!1}t(zut,"readBlockSequence");function Zut(s,o,f){let d,y,x,A,F=s.tag,W=s.anchor,G={},be=Object.create(null),de=null,se=null,Xe=null,Ue=!1,je=!1;if(s.firstTabInLine!==-1)return!1;s.anchor!==null&&MO(s,s.anchor,G);let Vt=s.input.charCodeAt(s.position);for(;Vt!==0;){!Ue&&s.firstTabInLine!==-1&&(s.position=s.firstTabInLine,bo(s,"tab characters must not be used in indentation"));let Ut=s.input.charCodeAt(s.position+1),Ir=s.line;if((Vt===63||Vt===58)&&Qv(Ut))Vt===63?(Ue&&(NM(s,G,be,de,se,null,y,x,A),de=se=Xe=null),je=!0,Ue=!0,d=!0):Ue?(Ue=!1,d=!0):bo(s,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),s.position+=1,Vt=Ut;else{if(y=s.line,x=s.lineStart,A=s.position,!IM(s,f,Jut,!1,!0))break;if(s.line===Ir){for(Vt=s.input.charCodeAt(s.position);eA(Vt);)Vt=s.input.charCodeAt(++s.position);if(Vt===58)Vt=s.input.charCodeAt(++s.position),Qv(Vt)||bo(s,"a whitespace character is expected after the key-value separator within a block mapping"),Ue&&(NM(s,G,be,de,se,null,y,x,A),de=se=Xe=null),je=!0,Ue=!1,d=!1,de=s.tag,se=s.result;else if(je)bo(s,"can not read an implicit mapping pair; a colon is missed");else return s.tag=F,s.anchor=W,!0}else if(je)bo(s,"can not read a block mapping entry; a multiline key may not be an implicit key");else return s.tag=F,s.anchor=W,!0}if((s.line===Ir||s.lineIndent>o)&&(Ue&&(y=s.line,x=s.lineStart,A=s.position),IM(s,o,Dle,!0,d)&&(Ue?se=s.result:Xe=s.result),Ue||(NM(s,G,be,de,se,Xe,y,x,A),de=se=Xe=null),Gm(s,!0,-1),Vt=s.input.charCodeAt(s.position)),(s.line===Ir||s.lineIndent>o)&&Vt!==0)bo(s,"bad indentation of a mapping entry");else if(s.lineIndent<o)break}return Ue&&NM(s,G,be,de,se,null,y,x,A),je&&(s.tag=F,s.anchor=W,s.kind="mapping",s.result=G),je}t(Zut,"readBlockMapping");function Xfr(s){let o=!1,f=!1,d,y,x=s.input.charCodeAt(s.position);if(x!==33)return!1;s.tag!==null&&bo(s,"duplication of a tag property"),x=s.input.charCodeAt(++s.position),x===60?(o=!0,x=s.input.charCodeAt(++s.position)):x===33?(f=!0,d="!!",x=s.input.charCodeAt(++s.position)):d="!";let A=s.position;if(o){do x=s.input.charCodeAt(++s.position);while(x!==0&&x!==62);s.position<s.length?(y=s.input.slice(A,s.position),x=s.input.charCodeAt(++s.position)):bo(s,"unexpected end of the stream within a verbatim tag")}else{for(;x!==0&&!Qv(x);)x===33&&(f?bo(s,"tag suffix cannot contain exclamation marks"):(d=s.input.slice(A-1,s.position+1),qut.test(d)||bo(s,"named tag handle cannot contain such characters"),f=!0,A=s.position+1)),x=s.input.charCodeAt(++s.position);y=s.input.slice(A,s.position),Mfr.test(y)&&bo(s,"tag suffix cannot contain flow indicator characters")}y&&!Vut.test(y)&&bo(s,"tag name cannot contain such characters: "+y);try{y=decodeURIComponent(y)}catch{bo(s,"tag name is malformed: "+y)}return o?s.tag=y:PE.call(s.tagMap,d)?s.tag=s.tagMap[d]+y:d==="!"?s.tag="!"+y:d==="!!"?s.tag="tag:yaml.org,2002:"+y:bo(s,'undeclared tag handle "'+d+'"'),!0}t(Xfr,"readTagProperty");function Zfr(s){let o=s.input.charCodeAt(s.position);if(o!==38)return!1;s.anchor!==null&&bo(s,"duplication of an anchor property"),o=s.input.charCodeAt(++s.position);let f=s.position;for(;o!==0&&!Qv(o)&&!AM(o);)o=s.input.charCodeAt(++s.position);return s.position===f&&bo(s,"name of an anchor node must contain at least one character"),s.anchor=s.input.slice(f,s.position),!0}t(Zfr,"readAnchorProperty");function Qfr(s){let o=s.input.charCodeAt(s.position);if(o!==42)return!1;o=s.input.charCodeAt(++s.position);let f=s.position;for(;o!==0&&!Qv(o)&&!AM(o);)o=s.input.charCodeAt(++s.position);s.position===f&&bo(s,"name of an alias node must contain at least one character");let d=s.input.slice(f,s.position);return PE.call(s.anchorMap,d)||bo(s,'unidentified alias "'+d+'"'),s.result=s.anchorMap[d],Gm(s,!0,-1),!0}t(Qfr,"readAlias");function e_r(s,o,f,d){let y=Xut(s);return Jfr(s),jut(s,o),s.tag=null,s.anchor=null,s.kind=null,s.result=null,Zut(s,f,d)&&s.kind==="mapping"?(Wfr(s),!0):(qfr(s),jut(s,y),!1)}t(e_r,"tryReadBlockMappingFromProperty");function IM(s,o,f,d,y){let x,A,F=1,W=!1,G=!1,be=null,de,se,Xe;s.depth>=s.maxDepth&&bo(s,"nesting exceeded maxDepth ("+s.maxDepth+")"),s.depth+=1,s.listener!==null&&s.listener("open",s),s.tag=null,s.anchor=null,s.kind=null,s.result=null;let Ue=x=A=Dle===f||Wut===f;if(d&&Gm(s,!0,-1)&&(W=!0,s.lineIndent>o?F=1:s.lineIndent===o?F=0:s.lineIndent<o&&(F=-1)),F===1)for(;;){let je=s.input.charCodeAt(s.position),Vt=Xut(s);if(W&&(je===33&&s.tag!==null||je===38&&s.anchor!==null)||!Xfr(s)&&!Zfr(s))break;be===null&&(be=Vt),Gm(s,!0,-1)?(W=!0,A=Ue,s.lineIndent>o?F=1:s.lineIndent===o?F=0:s.lineIndent<o&&(F=-1)):A=!1}if(A&&(A=W||y),F===1||Dle===f)if(wle===f||Jut===f?se=o:se=o+1,Xe=s.position-s.lineStart,F===1)if(A&&(zut(s,Xe)||Zut(s,Xe,se))||Yfr(s,se))G=!0;else{let je=s.input.charCodeAt(s.position);be!==null&&Ue&&!A&&je!==124&&je!==62&&e_r(s,be,be.position-be.lineStart,se)||x&&Kfr(s,se)||Hfr(s,se)||Gfr(s,se)?G=!0:Qfr(s)?(G=!0,(s.tag!==null||s.anchor!==null)&&bo(s,"alias node should not have any properties")):Vfr(s,se,wle===f)&&(G=!0,s.tag===null&&(s.tag="?")),s.anchor!==null&&MO(s,s.anchor,s.result)}else F===0&&(G=A&&zut(s,Xe));if(s.tag===null)s.anchor!==null&&MO(s,s.anchor,s.result);else if(s.tag==="?"){s.result!==null&&s.kind!=="scalar"&&bo(s,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+s.kind+'"');for(let je=0,Vt=s.implicitTypes.length;je<Vt;je+=1)if(de=s.implicitTypes[je],de.resolve(s.result)){s.result=de.construct(s.result),s.tag=de.tag,s.anchor!==null&&MO(s,s.anchor,s.result);break}}else if(s.tag!=="!"){if(PE.call(s.typeMap[s.kind||"fallback"],s.tag))de=s.typeMap[s.kind||"fallback"][s.tag];else{de=null;let je=s.typeMap.multi[s.kind||"fallback"];for(let Vt=0,Ut=je.length;Vt<Ut;Vt+=1)if(s.tag.slice(0,je[Vt].tag.length)===je[Vt].tag){de=je[Vt];break}}de||bo(s,"unknown tag !<"+s.tag+">"),s.result!==null&&de.kind!==s.kind&&bo(s,"unacceptable node kind for !<"+s.tag+'> tag; it should be "'+de.kind+'", not "'+s.kind+'"'),de.resolve(s.result,s.tag)?(s.result=de.construct(s.result,s.tag),s.anchor!==null&&MO(s,s.anchor,s.result)):bo(s,"cannot resolve a node with !<"+s.tag+"> explicit tag")}return s.listener!==null&&s.listener("close",s),s.depth-=1,s.tag!==null||s.anchor!==null||G}t(IM,"composeNode");function t_r(s){let o=s.position,f=!1,d;for(s.version=null,s.checkLineBreaks=s.legacy,s.tagMap=Object.create(null),s.anchorMap=Object.create(null);(d=s.input.charCodeAt(s.position))!==0&&(Gm(s,!0,-1),d=s.input.charCodeAt(s.position),!(s.lineIndent>0||d!==37));){f=!0,d=s.input.charCodeAt(++s.position);let y=s.position;for(;d!==0&&!Qv(d);)d=s.input.charCodeAt(++s.position);let x=s.input.slice(y,s.position),A=[];for(x.length<1&&bo(s,"directive name must not be less than one character in length");d!==0;){for(;eA(d);)d=s.input.charCodeAt(++s.position);if(d===35){do d=s.input.charCodeAt(++s.position);while(d!==0&&!Jk(d));break}if(Jk(d))break;for(y=s.position;d!==0&&!Qv(d);)d=s.input.charCodeAt(++s.position);A.push(s.input.slice(y,s.position))}d!==0&&i4e(s),PE.call(But,x)?But[x](s,x,A):Ple(s,'unknown document directive "'+x+'"')}if(Gm(s,!0,-1),s.lineIndent===0&&s.input.charCodeAt(s.position)===45&&s.input.charCodeAt(s.position+1)===45&&s.input.charCodeAt(s.position+2)===45?(s.position+=3,Gm(s,!0,-1)):f&&bo(s,"directives end mark is expected"),IM(s,s.lineIndent-1,Dle,!1,!0),Gm(s,!0,-1),s.checkLineBreaks&&Rfr.test(s.input.slice(o,s.position))&&Ple(s,"non-ASCII line breaks are interpreted as content"),s.documents.push(s.result),s.position===s.lineStart&&Ale(s)){s.input.charCodeAt(s.position)===46&&(s.position+=3,Gm(s,!0,-1));return}s.position<s.length-1&&bo(s,"end of the stream or a document separator is expected")}t(t_r,"readDocument");function Qut(s,o){s=String(s),o=o||{},s.length!==0&&(s.charCodeAt(s.length-1)!==10&&s.charCodeAt(s.length-1)!==13&&(s+=`
|
|
90
|
-
`),s.charCodeAt(0)===65279&&(s=s.slice(1)));let f=new $fr(s,o),d=s.indexOf("\0");for(d!==-1&&(f.position=d,bo(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)t_r(f);return f.documents}t(Qut,"loadDocuments");function r_r(s,o,f){o!==null&&typeof o=="object"&&typeof f>"u"&&(f=o,o=null);let d=Qut(s,f);if(typeof o!="function")return d;for(let y=0,x=d.length;y<x;y+=1)o(d[y])}t(r_r,"loadAll");function n_r(s,o){let f=Qut(s,o);if(f.length!==0){if(f.length===1)return f[0];throw new $ut("expected a single document in the stream, but found more")}}t(n_r,"load");a4e.exports.loadAll=r_r;a4e.exports.load=n_r});var Sft=or((
|
|
90
|
+
`),s.charCodeAt(0)===65279&&(s=s.slice(1)));let f=new $fr(s,o),d=s.indexOf("\0");for(d!==-1&&(f.position=d,bo(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)t_r(f);return f.documents}t(Qut,"loadDocuments");function r_r(s,o,f){o!==null&&typeof o=="object"&&typeof f>"u"&&(f=o,o=null);let d=Qut(s,f);if(typeof o!="function")return d;for(let y=0,x=d.length;y<x;y+=1)o(d[y])}t(r_r,"loadAll");function n_r(s,o){let f=Qut(s,o);if(f.length!==0){if(f.length===1)return f[0];throw new $ut("expected a single document in the stream, but found more")}}t(n_r,"load");a4e.exports.loadAll=r_r;a4e.exports.load=n_r});var Sft=or((BIr,bft)=>{"use strict";var Ole=DM(),$H=PM(),i_r=kle(),lft=Object.prototype.toString,uft=Object.prototype.hasOwnProperty,f4e=65279,s_r=9,BH=10,a_r=13,o_r=32,c_r=33,l_r=34,o4e=35,u_r=37,f_r=38,__r=39,p_r=42,fft=44,d_r=45,Nle=58,m_r=61,h_r=62,g_r=63,y_r=64,_ft=91,pft=93,v_r=96,dft=123,b_r=124,mft=125,Py={};Py[0]="\\0";Py[7]="\\a";Py[8]="\\b";Py[9]="\\t";Py[10]="\\n";Py[11]="\\v";Py[12]="\\f";Py[13]="\\r";Py[27]="\\e";Py[34]='\\"';Py[92]="\\\\";Py[133]="\\N";Py[160]="\\_";Py[8232]="\\L";Py[8233]="\\P";var S_r=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],T_r=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function x_r(s,o){if(o===null)return{};let f={},d=Object.keys(o);for(let y=0,x=d.length;y<x;y+=1){let A=d[y],F=String(o[A]);A.slice(0,2)==="!!"&&(A="tag:yaml.org,2002:"+A.slice(2));let W=s.compiledTypeMap.fallback[A];W&&uft.call(W.styleAliases,F)&&(F=W.styleAliases[F]),f[A]=F}return f}t(x_r,"compileStyleMap");function E_r(s){let o,f,d=s.toString(16).toUpperCase();if(s<=255)o="x",f=2;else if(s<=65535)o="u",f=4;else if(s<=4294967295)o="U",f=8;else throw new $H("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+o+Ole.repeat("0",f-d.length)+d}t(E_r,"encodeHex");var C_r=1,UH=2;function k_r(s){this.schema=s.schema||i_r,this.indent=Math.max(1,s.indent||2),this.noArrayIndent=s.noArrayIndent||!1,this.skipInvalid=s.skipInvalid||!1,this.flowLevel=Ole.isNothing(s.flowLevel)?-1:s.flowLevel,this.styleMap=x_r(this.schema,s.styles||null),this.sortKeys=s.sortKeys||!1,this.lineWidth=s.lineWidth||80,this.noRefs=s.noRefs||!1,this.noCompatMode=s.noCompatMode||!1,this.condenseFlow=s.condenseFlow||!1,this.quotingType=s.quotingType==='"'?UH:C_r,this.forceQuotes=s.forceQuotes||!1,this.replacer=typeof s.replacer=="function"?s.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}t(k_r,"State");function tft(s,o){let f=Ole.repeat(" ",o),d=0,y="",x=s.length;for(;d<x;){let A,F=s.indexOf(`
|
|
91
91
|
`,d);F===-1?(A=s.slice(d),d=x):(A=s.slice(d,F+1),d=F+1),A.length&&A!==`
|
|
92
92
|
`&&(y+=f),y+=A}return y}t(tft,"indentString");function c4e(s,o){return`
|
|
93
93
|
`+Ole.repeat(" ",s.indent*o)}t(c4e,"generateNextLine");function w_r(s,o){for(let f=0,d=s.implicitTypes.length;f<d;f+=1)if(s.implicitTypes[f].resolve(o))return!0;return!1}t(w_r,"testImplicitResolving");function Ile(s){return s===o_r||s===s_r}t(Ile,"isWhitespace");function zH(s){return s>=32&&s<=126||s>=161&&s<=55295&&s!==8232&&s!==8233||s>=57344&&s<=65533&&s!==f4e||s>=65536&&s<=1114111}t(zH,"isPrintable");function rft(s){return zH(s)&&s!==f4e&&s!==a_r&&s!==BH}t(rft,"isNsCharOrWhitespace");function nft(s,o,f){let d=rft(s),y=d&&!Ile(s);return(f?d:d&&s!==fft&&s!==_ft&&s!==pft&&s!==dft&&s!==mft)&&s!==o4e&&!(o===Nle&&!y)||rft(o)&&!Ile(o)&&s===o4e||o===Nle&&y}t(nft,"isPlainSafe");function D_r(s){return zH(s)&&s!==f4e&&!Ile(s)&&s!==d_r&&s!==g_r&&s!==Nle&&s!==fft&&s!==_ft&&s!==pft&&s!==dft&&s!==mft&&s!==o4e&&s!==f_r&&s!==p_r&&s!==c_r&&s!==b_r&&s!==m_r&&s!==h_r&&s!==__r&&s!==l_r&&s!==u_r&&s!==y_r&&s!==v_r}t(D_r,"isPlainSafeFirst");function P_r(s){return!Ile(s)&&s!==Nle}t(P_r,"isPlainSafeLast");function jH(s,o){let f=s.charCodeAt(o),d;return f>=55296&&f<=56319&&o+1<s.length&&(d=s.charCodeAt(o+1),d>=56320&&d<=57343)?(f-55296)*1024+d-56320+65536:f}t(jH,"codePointAt");function hft(s){return/^\n* /.test(s)}t(hft,"needIndentIndicator");var gft=1,l4e=2,yft=3,vft=4,OM=5;function A_r(s,o,f,d,y,x,A,F){let W,G=0,be=null,de=!1,se=!1,Xe=d!==-1,Ue=-1,je=D_r(jH(s,0))&&P_r(jH(s,s.length-1));if(o||A)for(W=0;W<s.length;G>=65536?W+=2:W++){if(G=jH(s,W),!zH(G))return OM;je=je&&nft(G,be,F),be=G}else{for(W=0;W<s.length;G>=65536?W+=2:W++){if(G=jH(s,W),G===BH)de=!0,Xe&&(se=se||W-Ue-1>d&&s[Ue+1]!==" ",Ue=W);else if(!zH(G))return OM;je=je&&nft(G,be,F),be=G}se=se||Xe&&W-Ue-1>d&&s[Ue+1]!==" "}return!de&&!se?je&&!A&&!y(s)?gft:x===UH?OM:l4e:f>9&&hft(s)?OM:A?x===UH?OM:l4e:se?vft:yft}t(A_r,"chooseScalarStyle");function N_r(s,o,f,d,y){s.dump=(function(){if(o.length===0)return s.quotingType===UH?'""':"''";if(!s.noCompatMode&&(S_r.indexOf(o)!==-1||T_r.test(o)))return s.quotingType===UH?'"'+o+'"':"'"+o+"'";let x=s.indent*Math.max(1,f),A=s.lineWidth===-1?-1:Math.max(Math.min(s.lineWidth,40),s.lineWidth-x),F=d||s.flowLevel>-1&&f>=s.flowLevel;function W(G){return w_r(s,G)}switch(t(W,"testAmbiguity"),A_r(o,F,s.indent,A,W,s.quotingType,s.forceQuotes&&!d,y)){case gft:return o;case l4e:return"'"+o.replace(/'/g,"''")+"'";case yft:return"|"+ift(o,s.indent)+sft(tft(o,x));case vft:return">"+ift(o,s.indent)+sft(tft(I_r(o,A),x));case OM:return'"'+O_r(o,A)+'"';default:throw new $H("impossible error: invalid scalar style")}})()}t(N_r,"writeScalar");function ift(s,o){let f=hft(s)?String(o):"",d=s[s.length-1]===`
|
|
@@ -102,13 +102,13 @@ Parsed value is empty`);return A}catch(A){throw!A&&o.continueOnError?new FO.Unma
|
|
|
102
102
|
`+s.slice(y,x),y=x+1),A=F;return W+=`
|
|
103
103
|
`,s.length-y>o&&A>y?W+=s.slice(y,A)+`
|
|
104
104
|
`+s.slice(A+1):W+=s.slice(y),W.slice(1)}t(aft,"foldLine");function O_r(s){let o="",f=0;for(let d=0;d<s.length;f>=65536?d+=2:d++){f=jH(s,d);let y=Py[f];!y&&zH(f)?(o+=s[d],f>=65536&&(o+=s[d+1])):o+=y||E_r(f)}return o}t(O_r,"escapeString");function F_r(s,o,f){let d="",y=s.tag;for(let x=0,A=f.length;x<A;x+=1){let F=f[x];s.replacer&&(F=s.replacer.call(f,String(x),F)),(tA(s,o,F,!1,!1)||typeof F>"u"&&tA(s,o,null,!1,!1))&&(d!==""&&(d+=","+(s.condenseFlow?"":" ")),d+=s.dump)}s.tag=y,s.dump="["+d+"]"}t(F_r,"writeFlowSequence");function oft(s,o,f,d){let y="",x=s.tag;for(let A=0,F=f.length;A<F;A+=1){let W=f[A];s.replacer&&(W=s.replacer.call(f,String(A),W)),(tA(s,o+1,W,!0,!0,!1,!0)||typeof W>"u"&&tA(s,o+1,null,!0,!0,!1,!0))&&((!d||y!=="")&&(y+=c4e(s,o)),s.dump&&BH===s.dump.charCodeAt(0)?y+="-":y+="- ",y+=s.dump)}s.tag=x,s.dump=y||"[]"}t(oft,"writeBlockSequence");function L_r(s,o,f){let d="",y=s.tag,x=Object.keys(f);for(let A=0,F=x.length;A<F;A+=1){let W="";d!==""&&(W+=", "),s.condenseFlow&&(W+='"');let G=x[A],be=f[G];s.replacer&&(be=s.replacer.call(f,G,be)),tA(s,o,G,!1,!1)&&(s.dump.length>1024&&(W+="? "),W+=s.dump+(s.condenseFlow?'"':"")+":"+(s.condenseFlow?"":" "),tA(s,o,be,!1,!1)&&(W+=s.dump,d+=W))}s.tag=y,s.dump="{"+d+"}"}t(L_r,"writeFlowMapping");function R_r(s,o,f,d){let y="",x=s.tag,A=Object.keys(f);if(s.sortKeys===!0)A.sort();else if(typeof s.sortKeys=="function")A.sort(s.sortKeys);else if(s.sortKeys)throw new $H("sortKeys must be a boolean or a function");for(let F=0,W=A.length;F<W;F+=1){let G="";(!d||y!=="")&&(G+=c4e(s,o));let be=A[F],de=f[be];if(s.replacer&&(de=s.replacer.call(f,be,de)),!tA(s,o+1,be,!0,!0,!0))continue;let se=s.tag!==null&&s.tag!=="?"||s.dump&&s.dump.length>1024;se&&(s.dump&&BH===s.dump.charCodeAt(0)?G+="?":G+="? "),G+=s.dump,se&&(G+=c4e(s,o)),tA(s,o+1,de,!0,se)&&(s.dump&&BH===s.dump.charCodeAt(0)?G+=":":G+=": ",G+=s.dump,y+=G)}s.tag=x,s.dump=y||"{}"}t(R_r,"writeBlockMapping");function cft(s,o,f){let d=f?s.explicitTypes:s.implicitTypes;for(let y=0,x=d.length;y<x;y+=1){let A=d[y];if((A.instanceOf||A.predicate)&&(!A.instanceOf||typeof o=="object"&&o instanceof A.instanceOf)&&(!A.predicate||A.predicate(o))){if(f?A.multi&&A.representName?s.tag=A.representName(o):s.tag=A.tag:s.tag="?",A.represent){let F=s.styleMap[A.tag]||A.defaultStyle,W;if(lft.call(A.represent)==="[object Function]")W=A.represent(o,F);else if(uft.call(A.represent,F))W=A.represent[F](o,F);else throw new $H("!<"+A.tag+'> tag resolver accepts not "'+F+'" style');s.dump=W}return!0}}return!1}t(cft,"detectType");function tA(s,o,f,d,y,x,A){s.tag=null,s.dump=f,cft(s,f,!1)||cft(s,f,!0);let F=lft.call(s.dump),W=d;d&&(d=s.flowLevel<0||s.flowLevel>o);let G=F==="[object Object]"||F==="[object Array]",be,de;if(G&&(be=s.duplicates.indexOf(f),de=be!==-1),(s.tag!==null&&s.tag!=="?"||de||s.indent!==2&&o>0)&&(y=!1),de&&s.usedDuplicates[be])s.dump="*ref_"+be;else{if(G&&de&&!s.usedDuplicates[be]&&(s.usedDuplicates[be]=!0),F==="[object Object]")d&&Object.keys(s.dump).length!==0?(R_r(s,o,s.dump,y),de&&(s.dump="&ref_"+be+s.dump)):(L_r(s,o,s.dump),de&&(s.dump="&ref_"+be+" "+s.dump));else if(F==="[object Array]")d&&s.dump.length!==0?(s.noArrayIndent&&!A&&o>0?oft(s,o-1,s.dump,y):oft(s,o,s.dump,y),de&&(s.dump="&ref_"+be+s.dump)):(F_r(s,o,s.dump),de&&(s.dump="&ref_"+be+" "+s.dump));else if(F==="[object String]")s.tag!=="?"&&N_r(s,s.dump,o,x,W);else{if(F==="[object Undefined]")return!1;if(s.skipInvalid)return!1;throw new $H("unacceptable kind of an object to dump "+F)}if(s.tag!==null&&s.tag!=="?"){let se=encodeURI(s.tag[0]==="!"?s.tag.slice(1):s.tag).replace(/!/g,"%21");s.tag[0]==="!"?se="!"+se:se.slice(0,18)==="tag:yaml.org,2002:"?se="!!"+se.slice(18):se="!<"+se+">",s.dump=se+" "+s.dump}}return!0}t(tA,"writeNode");function M_r(s,o){let f=[],d=[];u4e(s,f,d);let y=d.length;for(let x=0;x<y;x+=1)o.duplicates.push(f[d[x]]);o.usedDuplicates=new Array(y)}t(M_r,"getDuplicateReferences");function u4e(s,o,f){if(s!==null&&typeof s=="object"){let d=o.indexOf(s);if(d!==-1)f.indexOf(d)===-1&&f.push(d);else if(o.push(s),Array.isArray(s))for(let y=0,x=s.length;y<x;y+=1)u4e(s[y],o,f);else{let y=Object.keys(s);for(let x=0,A=y.length;x<A;x+=1)u4e(s[y[x]],o,f)}}}t(u4e,"inspectNode");function j_r(s,o){o=o||{};let f=new k_r(o);f.noRefs||M_r(s,f);let d=s;return f.replacer&&(d=f.replacer.call({"":d},"",d)),tA(f,0,d,!0,!0)?f.dump+`
|
|
105
|
-
`:""}t(j_r,"dump");bft.exports.dump=j_r});var p4e=or((
|
|
105
|
+
`:""}t(j_r,"dump");bft.exports.dump=j_r});var p4e=or((zIr,M1)=>{"use strict";var Tft=eft(),B_r=Sft();function _4e(s,o){return function(){throw new Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}t(_4e,"renamed");M1.exports.Type=Dy();M1.exports.Schema=BIe();M1.exports.FAILSAFE_SCHEMA=JIe();M1.exports.JSON_SCHEMA=GIe();M1.exports.CORE_SCHEMA=YIe();M1.exports.DEFAULT_SCHEMA=kle();M1.exports.load=Tft.load;M1.exports.loadAll=Tft.loadAll;M1.exports.dump=B_r.dump;M1.exports.YAMLException=PM();M1.exports.types={binary:QIe(),float:HIe(),map:$Ie(),null:WIe(),pairs:t4e(),set:r4e(),timestamp:KIe(),bool:qIe(),int:VIe(),merge:XIe(),omap:e4e(),seq:zIe(),str:UIe()};M1.exports.safeLoad=_4e("safeLoad","load");M1.exports.safeLoadAll=_4e("safeLoadAll","loadAll");M1.exports.safeDump=_4e("safeDump","dump")});var xft=or(JH=>{"use strict";var U_r=JH&&JH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(JH,"__esModule",{value:!0});var z_r=yT(),$_r=U_r(p4e()),J_r=p4e();JH.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(s){let o=s.data;if(Buffer.isBuffer(o)&&(o=o.toString()),typeof o=="string")try{return $_r.default.load(o,{schema:J_r.JSON_SCHEMA})}catch(f){throw new z_r.ParserError(f?.message||"Parser Error",s.url)}else return o}}});var Eft=or(d4e=>{"use strict";Object.defineProperty(d4e,"__esModule",{value:!0});var W_r=yT(),q_r=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;d4e.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(s){return(typeof s.data=="string"||Buffer.isBuffer(s.data))&&q_r.test(s.url)},parse(s){if(typeof s.data=="string")return s.data;if(Buffer.isBuffer(s.data))return s.data.toString(this.encoding);throw new W_r.ParserError("data is not text",s.url)}}});var Cft=or(m4e=>{"use strict";Object.defineProperty(m4e,"__esModule",{value:!0});var V_r=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;m4e.default={order:400,allowEmpty:!0,canParse(s){return Buffer.isBuffer(s.data)&&V_r.test(s.url)},parse(s){return Buffer.isBuffer(s.data)?s.data:Buffer.from(s.data)}}});var Pft=or(AE=>{"use strict";var H_r=AE&&AE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),G_r=AE&&AE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Y_r=AE&&AE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&H_r(o,s,f);return G_r(o,s),o},K_r=AE&&AE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(AE,"__esModule",{value:!0});var X_r=K_r(uo("fs")),kft=pI(),wft=Y_r(gT()),Dft=yT();AE.default={order:100,canRead(s){return wft.isFileSystemPath(s.url)},async read(s){let o;try{o=wft.toFileSystemPath(s.url)}catch(f){throw new Dft.ResolverError(kft.ono.uri(f,`Malformed URI: ${s.url}`),s.url)}try{return await X_r.default.promises.readFile(o)}catch(f){throw new Dft.ResolverError((0,kft.ono)(f,`Error opening file "${o}"`),o)}}}});var Ift=or(rA=>{"use strict";var Z_r=rA&&rA.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Q_r=rA&&rA.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),epr=rA&&rA.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Z_r(o,s,f);return Q_r(o,s),o};Object.defineProperty(rA,"__esModule",{value:!0});var Fle=pI(),WH=epr(gT()),Aft=yT();rA.default={order:200,headers:null,timeout:6e4,redirects:5,withCredentials:!1,canRead(s){return WH.isHttp(s.url)},read(s){let o=WH.parse(s.url);return typeof window<"u"&&!o.protocol&&(o.protocol=WH.parse(location.href).protocol),Nft(o,this)}};async function Nft(s,o,f){s=WH.parse(s);let d=f||[];d.push(s.href);try{let y=await tpr(s,o);if(y.status>=400)throw(0,Fle.ono)({status:y.status},`HTTP ERROR ${y.status}`);if(y.status>=300){if(!Number.isNaN(o.redirects)&&d.length>o.redirects)throw new Aft.ResolverError((0,Fle.ono)({status:y.status},`Error downloading ${d[0]}.
|
|
106
106
|
Too many redirects:
|
|
107
107
|
${d.join(`
|
|
108
|
-
`)}`));if(!("location"in y.headers)||!y.headers.location)throw(0,Fle.ono)({status:y.status},`HTTP ${y.status} redirect with no location header`);{let x=WH.resolve(s.href,y.headers.location);return Nft(x,o,d)}}else{if(y.body){let x=await y.arrayBuffer();return Buffer.from(x)}return Buffer.alloc(0)}}catch(y){throw new Aft.ResolverError((0,Fle.ono)(y,`Error downloading ${s.href}`),s.href)}}t(Nft,"download");async function tpr(s,o){let f,d;o.timeout&&(f=new AbortController,d=setTimeout(()=>f.abort(),o.timeout));let y=await fetch(s,{method:"GET",headers:o.headers||{},credentials:o.withCredentials?"include":"same-origin",signal:f?f.signal:null});return d&&clearTimeout(d),y}t(tpr,"get")});var h4e=or(nA=>{"use strict";var FM=nA&&nA.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(nA,"__esModule",{value:!0});nA.getNewOptions=nA.getJsonSchemaRefParserDefaultOptions=void 0;var rpr=FM(sut()),npr=FM(xft()),ipr=FM(Eft()),spr=FM(Cft()),apr=FM(Pft()),opr=FM(Ift()),cpr=t(()=>({parse:{json:{...rpr.default},yaml:{...npr.default},text:{...ipr.default},binary:{...spr.default}},resolve:{file:{...apr.default},http:{...opr.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:t(()=>!1,"excludedPathMatcher"),referenceResolution:"relative"},mutateInputSchema:!0}),"getJsonSchemaRefParserDefaultOptions");nA.getJsonSchemaRefParserDefaultOptions=cpr;var lpr=t(s=>{let o=(0,nA.getJsonSchemaRefParserDefaultOptions)();return s&&Fft(o,s),o},"getNewOptions");nA.getNewOptions=lpr;function Fft(s,o){if(Oft(o)){let f=Object.keys(o).filter(d=>!["__proto__","constructor","prototype"].includes(d));for(let d=0;d<f.length;d++){let y=f[d],x=o[y],A=s[y];Oft(x)?s[y]=Fft(A||{},x):x!==void 0&&(s[y]=x)}}return s}t(Fft,"merge");function Oft(s){return s&&typeof s=="object"&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}t(Oft,"isMergeable")});var Rft=or(Lle=>{"use strict";Object.defineProperty(Lle,"__esModule",{value:!0});Lle.normalizeArgs=Lft;var upr=h4e();function Lft(s){let o,f,d,y,x=Array.prototype.slice.call(s);typeof x[x.length-1]=="function"&&(y=x.pop()),typeof x[0]=="string"?(o=x[0],typeof x[2]=="object"?(f=x[1],d=x[2]):(f=void 0,d=x[1])):(o="",f=x[0],d=x[1]);try{d=(0,upr.getNewOptions)(d)}catch(A){console.error(`JSON Schema Ref Parser: Error normalizing options: ${A}`)}return!d.mutateInputSchema&&typeof f=="object"&&(f=JSON.parse(JSON.stringify(f))),{path:o,schema:f,options:d,callback:y}}t(Lft,"normalizeArgs");Lle.default=Lft});var Mft=or(NE=>{"use strict";var fpr=NE&&NE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),_pr=NE&&NE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),ppr=NE&&NE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&fpr(o,s,f);return _pr(o,s),o},g4e=NE&&NE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(NE,"__esModule",{value:!0});var dpr=g4e(kM()),mpr=g4e(IH()),hpr=g4e(OIe()),LM=ppr(gT()),gpr=yT();function ypr(s,o){if(!o.resolve?.external)return Promise.resolve();try{let f=y4e(s.schema,s.$refs._root$Ref.path+"#",s.$refs,o);return Promise.all(f)}catch(f){return Promise.reject(f)}}t(ypr,"resolveExternal");function y4e(s,o,f,d,y,x){y||(y=new Set);let A=[];if(s&&typeof s=="object"&&!ArrayBuffer.isView(s)&&!y.has(s)){y.add(s),dpr.default.isExternal$Ref(s)&&A.push(vpr(s,o,f,d));let F=Object.keys(s);for(let W of F){let G=mpr.default.join(o,W),be=s[W];A=A.concat(y4e(be,G,f,d,y,x))}}return A}t(y4e,"crawl");async function vpr(s,o,f,d){let y=d.dereference?.externalReferenceResolution==="root",x=LM.resolve(y?LM.cwd():o,s.$ref),A=LM.stripHash(x),F=f._$refs[A];if(F)return Promise.resolve(F.value);try{let W=await(0,hpr.default)(x,f,d),G=y4e(W,A+"#",f,d,new Set,!0);return Promise.all(G)}catch(W){if(!d?.continueOnError||!(0,gpr.isHandledError)(W))throw W;return f._$refs[A]&&(W.source=decodeURI(LM.stripHash(o)),W.path=LM.safePointerToPath(LM.getHash(o))),[]}}t(vpr,"resolve$Ref");NE.default=ypr});var Uft=or(IE=>{"use strict";var bpr=IE&&IE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Spr=IE&&IE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Tpr=IE&&IE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&bpr(o,s,f);return Spr(o,s),o},Bft=IE&&IE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(IE,"__esModule",{value:!0});var Rle=Bft(kM()),qH=Bft(IH()),v4e=Tpr(gT());function xpr(s,o){let f=[];b4e(s,"schema",s.$refs._root$Ref.path+"#","#",0,f,s.$refs,o),Epr(f)}t(xpr,"bundle");function b4e(s,o,f,d,y,x,A,F){let W=o===null?s:s[o];if(W&&typeof W=="object"&&!ArrayBuffer.isView(W))if(Rle.default.isAllowed$Ref(W))jft(s,o,f,d,y,x,A,F);else{let G=Object.keys(W).sort((be,de)=>be==="definitions"?-1:de==="definitions"?1:be.length-de.length);for(let be of G){let de=qH.default.join(f,be),se=qH.default.join(d,be),Xe=W[be];Rle.default.isAllowed$Ref(Xe)?jft(W,be,f,se,y,x,A,F):b4e(W,be,de,se,y,x,A,F)}}}t(b4e,"crawl");function jft(s,o,f,d,y,x,A,F){let W=o===null?s:s[o],G=v4e.resolve(f,W.$ref),be=A._resolve(G,d,F);if(be===null)return;let se=qH.default.parse(d).length,Xe=v4e.stripHash(be.path),Ue=v4e.getHash(be.path),je=Xe!==A._root$Ref.path,Vt=Rle.default.isExtended$Ref(W);y+=be.indirections;let Ut=Cpr(x,s,o);if(Ut)if(se<Ut.depth||y<Ut.indirections)kpr(x,Ut);else return;x.push({$ref:W,parent:s,key:o,pathFromRoot:d,depth:se,file:Xe,hash:Ue,value:be.value,circular:be.circular,extended:Vt,external:je,indirections:y}),(!Ut||je)&&b4e(be.value,null,be.path,d,y+1,x,A,F)}t(jft,"inventory$Ref");function Epr(s){s.sort((y,x)=>{if(y.file!==x.file)return y.file<x.file?-1:1;if(y.hash!==x.hash)return y.hash<x.hash?-1:1;if(y.circular!==x.circular)return y.circular?-1:1;if(y.extended!==x.extended)return y.extended?1:-1;if(y.indirections!==x.indirections)return y.indirections-x.indirections;if(y.depth!==x.depth)return y.depth-x.depth;{let A=y.pathFromRoot.lastIndexOf("/definitions"),F=x.pathFromRoot.lastIndexOf("/definitions");return A!==F?F-A:y.pathFromRoot.length-x.pathFromRoot.length}});let o,f,d;for(let y of s)y.external?y.file===o&&y.hash===f?y.$ref.$ref=d:y.file===o&&y.hash.indexOf(f+"/")===0?y.$ref.$ref=qH.default.join(d,qH.default.parse(y.hash.replace(f,"#"))):(o=y.file,f=y.hash,d=y.pathFromRoot,y.$ref=y.parent[y.key]=Rle.default.dereference(y.$ref,y.value),y.circular&&(y.$ref.$ref=y.pathFromRoot)):y.$ref.$ref=y.hash}t(Epr,"remap");function Cpr(s,o,f){for(let d of s)if(d&&d.parent===o&&d.key===f)return d}t(Cpr,"findInInventory");function kpr(s,o){let f=s.indexOf(o);s.splice(f,1)}t(kpr,"removeFromInventory");IE.default=xpr});var Vft=or(OE=>{"use strict";var wpr=OE&&OE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Dpr=OE&&OE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Ppr=OE&&OE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&wpr(o,s,f);return Dpr(o,s),o},Wft=OE&&OE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(OE,"__esModule",{value:!0});var Mle=Wft(kM()),zft=Wft(IH()),Apr=pI(),$ft=Ppr(gT()),Npr=yT();OE.default=Ipr;function Ipr(s,o){let f=Date.now(),d=S4e(s.schema,s.$refs._root$Ref.path,"#",new Set,new Set,new Map,s.$refs,o,f);s.$refs.circular=d.circular,s.schema=d.value}t(Ipr,"dereference");function S4e(s,o,f,d,y,x,A,F,W){let G,be={value:s,circular:!1};if(F&&F.timeoutMs&&Date.now()-W>F.timeoutMs)throw new Npr.TimeoutError(F.timeoutMs);let de=F.dereference||{},se=de.excludedPathMatcher||(()=>!1);if((de?.circular==="ignore"||!y.has(s))&&s&&typeof s=="object"&&!ArrayBuffer.isView(s)&&!se(f)){if(d.add(s),y.add(s),Mle.default.isAllowed$Ref(s,F))G=Jft(s,o,f,d,y,x,A,F,W),be.circular=G.circular,be.value=G.value;else for(let Xe of Object.keys(s)){let Ue=zft.default.join(o,Xe),je=zft.default.join(f,Xe);if(se(je))continue;let Vt=s[Xe],Ut=!1;Mle.default.isAllowed$Ref(Vt,F)?(G=Jft(Vt,Ue,je,d,y,x,A,F,W),Ut=G.circular,s[Xe]!==G.value&&(s[Xe]=G.value,de?.onDereference?.(Vt.$ref,s[Xe],s,Xe))):d.has(Vt)?Ut=qft(Ue,A,F):(G=S4e(Vt,Ue,je,d,y,x,A,F,W),Ut=G.circular,s[Xe]!==G.value&&(s[Xe]=G.value)),be.circular=be.circular||Ut}d.delete(s)}return be}t(S4e,"crawl");function Jft(s,o,f,d,y,x,A,F,W){let be=Mle.default.isExternal$Ref(s)&&F?.dereference?.externalReferenceResolution==="root",de=$ft.resolve(be?$ft.cwd():o,s.$ref),se=x.get(de);if(se&&!se.circular){let Ir=Object.keys(s);if(Ir.length>1){let wn={};for(let sn of Ir)sn!=="$ref"&&!(sn in se.value)&&(wn[sn]=s[sn]);return{circular:se.circular,value:Object.assign({},se.value,wn)}}return se}let Xe=A._resolve(de,o,F);if(Xe===null)return{circular:!1,value:null};let Ue=Xe.circular,je=Ue||d.has(Xe.value);je&&qft(o,A,F);let Vt=Mle.default.dereference(s,Xe.value);if(!je){let Ir=S4e(Vt,Xe.path,f,d,y,x,A,F,W);je=Ir.circular,Vt=Ir.value}je&&!Ue&&F.dereference?.circular==="ignore"&&(Vt=s),Ue&&(Vt.$ref=f);let Ut={circular:je,value:Vt};return Object.keys(s).length===1&&x.set(de,Ut),Ut}t(Jft,"dereference$Ref");function qft(s,o,f){if(o.circular=!0,!f.dereference.circular)throw Apr.ono.reference(`Circular $ref pointer found at ${s}`);return!0}t(qft,"foundCircularReference")});var Hft=or(T4e=>{"use strict";Object.defineProperty(T4e,"__esModule",{value:!0});function Opr(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:t(function(o){setTimeout(o,0)},"next")}t(Opr,"makeNext");T4e.default=Opr()});var Yft=or(VH=>{"use strict";var Fpr=VH&&VH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(VH,"__esModule",{value:!0});VH.default=Lpr;var Gft=Fpr(Hft());function Lpr(s,o){if(s){o.then(function(f){(0,Gft.default)(function(){s(null,f)})},function(f){(0,Gft.default)(function(){s(f)})});return}else return o}t(Lpr,"maybe")});var E4e=or(Uc=>{"use strict";var Rpr=Uc&&Uc.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Mpr=Uc&&Uc.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),jpr=Uc&&Uc.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Rpr(o,s,f);return Mpr(o,s),o},BO=Uc&&Uc.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Uc,"__esModule",{value:!0});Uc.getJsonSchemaRefParserDefaultOptions=Uc.jsonSchemaParserNormalizeArgs=Uc.dereferenceInternal=Uc.JSONParserErrorGroup=Uc.isHandledError=Uc.UnmatchedParserError=Uc.ParserError=Uc.ResolverError=Uc.MissingPointerError=Uc.InvalidPointerError=Uc.JSONParserError=Uc.UnmatchedResolverError=Uc.dereference=Uc.bundle=Uc.resolve=Uc.parse=Uc.$RefParser=void 0;var Kft=BO(eut()),Bpr=BO(OIe()),HH=BO(Rft());Uc.jsonSchemaParserNormalizeArgs=HH.default;var Upr=BO(Mft()),zpr=BO(Uft()),Zft=BO(Vft());Uc.dereferenceInternal=Zft.default;var jO=jpr(gT()),vT=yT();Object.defineProperty(Uc,"JSONParserError",{enumerable:!0,get:t(function(){return vT.JSONParserError},"get")});Object.defineProperty(Uc,"InvalidPointerError",{enumerable:!0,get:t(function(){return vT.InvalidPointerError},"get")});Object.defineProperty(Uc,"MissingPointerError",{enumerable:!0,get:t(function(){return vT.MissingPointerError},"get")});Object.defineProperty(Uc,"ResolverError",{enumerable:!0,get:t(function(){return vT.ResolverError},"get")});Object.defineProperty(Uc,"ParserError",{enumerable:!0,get:t(function(){return vT.ParserError},"get")});Object.defineProperty(Uc,"UnmatchedParserError",{enumerable:!0,get:t(function(){return vT.UnmatchedParserError},"get")});Object.defineProperty(Uc,"UnmatchedResolverError",{enumerable:!0,get:t(function(){return vT.UnmatchedResolverError},"get")});Object.defineProperty(Uc,"isHandledError",{enumerable:!0,get:t(function(){return vT.isHandledError},"get")});Object.defineProperty(Uc,"JSONParserErrorGroup",{enumerable:!0,get:t(function(){return vT.JSONParserErrorGroup},"get")});var Xft=pI(),FE=BO(Yft()),$pr=h4e();Object.defineProperty(Uc,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:t(function(){return $pr.getJsonSchemaRefParserDefaultOptions},"get")});var gI=class s{static{t(this,"$RefParser")}constructor(){this.schema=null,this.$refs=new Kft.default}async parse(){let o=(0,HH.default)(arguments),f;if(!o.path&&!o.schema){let y=(0,Xft.ono)(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return(0,FE.default)(o.callback,Promise.reject(y))}this.schema=null,this.$refs=new Kft.default;let d="http";if(jO.isFileSystemPath(o.path))o.path=jO.fromFileSystemPath(o.path),d="file";else if(!o.path&&o.schema&&"$id"in o.schema&&o.schema.$id){let y=jO.parse(o.schema.$id),x=y.protocol==="https:"?443:80;o.path=`${y.protocol}//${y.hostname}:${x}`}if(o.path=jO.resolve(jO.cwd(),o.path),o.schema&&typeof o.schema=="object"){let y=this.$refs._add(o.path);y.value=o.schema,y.pathType=d,f=Promise.resolve(o.schema)}else f=(0,Bpr.default)(o.path,this.$refs,o.options);try{let y=await f;if(y!==null&&typeof y=="object"&&!Buffer.isBuffer(y))return this.schema=y,(0,FE.default)(o.callback,Promise.resolve(this.schema));if(o.options.continueOnError)return this.schema=null,(0,FE.default)(o.callback,Promise.resolve(this.schema));throw Xft.ono.syntax(`"${this.$refs._root$Ref.path||y}" is not a valid JSON Schema`)}catch(y){return!o.options.continueOnError||!(0,vT.isHandledError)(y)?(0,FE.default)(o.callback,Promise.reject(y)):(this.$refs._$refs[jO.stripHash(o.path)]&&this.$refs._$refs[jO.stripHash(o.path)].addError(y),(0,FE.default)(o.callback,Promise.resolve(null)))}}static parse(){let o=new s;return o.parse.apply(o,arguments)}async resolve(){let o=(0,HH.default)(arguments);try{return await this.parse(o.path,o.schema,o.options),await(0,Upr.default)(this,o.options),x4e(this),(0,FE.default)(o.callback,Promise.resolve(this.$refs))}catch(f){return(0,FE.default)(o.callback,Promise.reject(f))}}static resolve(){let o=new s;return o.resolve.apply(o,arguments)}static bundle(){let o=new s;return o.bundle.apply(o,arguments)}async bundle(){let o=(0,HH.default)(arguments);try{return await this.resolve(o.path,o.schema,o.options),(0,zpr.default)(this,o.options),x4e(this),(0,FE.default)(o.callback,Promise.resolve(this.schema))}catch(f){return(0,FE.default)(o.callback,Promise.reject(f))}}static dereference(){let o=new s;return o.dereference.apply(o,arguments)}async dereference(){let o=(0,HH.default)(arguments);try{return await this.resolve(o.path,o.schema,o.options),(0,Zft.default)(this,o.options),x4e(this),(0,FE.default)(o.callback,Promise.resolve(this.schema))}catch(f){return(0,FE.default)(o.callback,Promise.reject(f))}}};Uc.$RefParser=gI;Uc.default=gI;function x4e(s){if(vT.JSONParserErrorGroup.getParserErrors(s).length>0)throw new vT.JSONParserErrorGroup(s)}t(x4e,"finalize");Uc.parse=gI.parse;Uc.resolve=gI.resolve;Uc.bundle=gI.bundle;Uc.dereference=gI.dereference});var I4e=or((KH,T_t)=>{"use strict";Object.defineProperty(KH,"__esModule",{value:!0});var YH=Tce(),RE=tM();function S_t(s,o){if(!s.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:f}=s.scope.opts;return typeof o=="function"?y(o.source):o!==void 0?x(o,d):x(s.schemas,F=>F.meta?void 0:s.compile(F.schema));function d(F){let W=s.getSchema(F);if(!W)throw new Error(`moduleCode: no schema with id ${F}`);return W}function y(F){let W={},G=F?.validateName,be=A(W,F);return s.opts.code.esm?`"use strict";${f}export const validate = ${G};${f}export default ${G};${f}${be}`:`"use strict";${f}module.exports = ${G};${f}module.exports.default = ${G};${f}${be}`}function x(F,W){var G;let be={},de=(0,RE._)`"use strict";`;for(let se in F){let Xe=W(F[se]);if(Xe){let Ue=A(be,Xe.source),je=s.opts.code.esm?(0,RE._)`export const ${(0,RE.getEsmExportName)(se)}`:(0,RE._)`exports${(0,RE.getProperty)(se)}`;de=(0,RE._)`${de}${f}${je} = ${(G=Xe.source)===null||G===void 0?void 0:G.validateName};${f}${Ue}`}}return`${de}`}function A(F,W){if(!W)throw new Error('moduleCode: function does not have "source" property');if(se(W.validateName)===YH.UsedValueState.Completed)return RE.nil;Xe(W.validateName,YH.UsedValueState.Started);let G=s.scope.scopeCode(W.scopeValues,F,de),be=new RE._Code(`${G}${f}${W.validateCode}`);return W.evaluated?(0,RE._)`${be}${W.validateName}.evaluated = ${W.evaluated};${f}`:be;function de(Ue){var je;let Vt=(je=Ue.value)===null||je===void 0?void 0:je.ref;if(Ue.prefix==="validate"&&typeof Vt=="function")return A(F,Vt.source);if((Ue.prefix==="root"||Ue.prefix==="wrapper")&&typeof Vt=="object"){let{validate:Ut,validateName:Ir}=Vt;if(!Ir)throw new Error("ajv internal error");let wn=s.opts.code.es5?YH.varKinds.var:YH.varKinds.const,sn=(0,RE._)`${wn} ${Ue} = {validate: ${Ir}};`;if(se(Ir)===YH.UsedValueState.Started)return sn;let Jn=A(F,Ut?.source);return(0,RE._)`${sn}${f}${Jn}`}}function se(Ue){var je;return(je=F[Ue.prefix])===null||je===void 0?void 0:je.get(Ue)}function Xe(Ue,je){let{prefix:Vt}=Ue;(F[Vt]=F[Vt]||new Map).set(Ue,je)}}}t(S_t,"standaloneCode");T_t.exports=KH=S_t;Object.defineProperty(KH,"__esModule",{value:!0});KH.default=S_t});var A_t=or(qk=>{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});qk.formatNames=qk.fastFormats=qk.fullFormats=void 0;function Wk(s,o){return{validate:s,compare:o}}t(Wk,"fmtDef");qk.fullFormats={date:Wk(k_t,R4e),time:Wk(F4e(!0),M4e),"date-time":Wk(x_t(!0),D_t),"iso-time":Wk(F4e(),w_t),"iso-date-time":Wk(x_t(),P_t),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:hdr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:xdr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:gdr,int32:{type:"number",validate:bdr},int64:{type:"number",validate:Sdr},float:{type:"number",validate:C_t},double:{type:"number",validate:C_t},password:!0,binary:!0};qk.fastFormats={...qk.fullFormats,date:Wk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,R4e),time:Wk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,M4e),"date-time":Wk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,D_t),"iso-time":Wk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,w_t),"iso-date-time":Wk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,P_t),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};qk.formatNames=Object.keys(qk.fullFormats);function fdr(s){return s%4===0&&(s%100!==0||s%400===0)}t(fdr,"isLeapYear");var _dr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,pdr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function k_t(s){let o=_dr.exec(s);if(!o)return!1;let f=+o[1],d=+o[2],y=+o[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&fdr(f)?29:pdr[d])}t(k_t,"date");function R4e(s,o){if(s&&o)return s>o?1:s<o?-1:0}t(R4e,"compareDate");var O4e=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function F4e(s){return t(function(f){let d=O4e.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],A=+d[3],F=d[4],W=d[5]==="-"?-1:1,G=+(d[6]||0),be=+(d[7]||0);if(G>23||be>59||s&&!F)return!1;if(y<=23&&x<=59&&A<60)return!0;let de=x-be*W,se=y-G*W-(de<0?1:0);return(se===23||se===-1)&&(de===59||de===-1)&&A<61},"time")}t(F4e,"getTime");function M4e(s,o){if(!(s&&o))return;let f=new Date("2020-01-01T"+s).valueOf(),d=new Date("2020-01-01T"+o).valueOf();if(f&&d)return f-d}t(M4e,"compareTime");function w_t(s,o){if(!(s&&o))return;let f=O4e.exec(s),d=O4e.exec(o);if(f&&d)return s=f[1]+f[2]+f[3],o=d[1]+d[2]+d[3],s>o?1:s<o?-1:0}t(w_t,"compareIsoTime");var L4e=/t|\s/i;function x_t(s){let o=F4e(s);return t(function(d){let y=d.split(L4e);return y.length===2&&k_t(y[0])&&o(y[1])},"date_time")}t(x_t,"getDateTime");function D_t(s,o){if(!(s&&o))return;let f=new Date(s).valueOf(),d=new Date(o).valueOf();if(f&&d)return f-d}t(D_t,"compareDateTime");function P_t(s,o){if(!(s&&o))return;let[f,d]=s.split(L4e),[y,x]=o.split(L4e),A=R4e(f,y);if(A!==void 0)return A||M4e(d,x)}t(P_t,"compareIsoDateTime");var ddr=/\/|:/,mdr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function hdr(s){return ddr.test(s)&&mdr.test(s)}t(hdr,"uri");var E_t=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function gdr(s){return E_t.lastIndex=0,E_t.test(s)}t(gdr,"byte");var ydr=-(2**31),vdr=2**31-1;function bdr(s){return Number.isInteger(s)&&s<=vdr&&s>=ydr}t(bdr,"validateInt32");function Sdr(s){return Number.isInteger(s)}t(Sdr,"validateInt64");function C_t(){return!0}t(C_t,"validateNumber");var Tdr=/[^\\]\\Z/;function xdr(s){if(Tdr.test(s))return!1;try{return new RegExp(s),!0}catch{return!1}}t(xdr,"regex")});var N_t=or(jM=>{"use strict";Object.defineProperty(jM,"__esModule",{value:!0});jM.formatLimitDefinition=void 0;var Edr=wH(),ME=Ec(),vI=ME.operators,$le={formatMaximum:{okStr:"<=",ok:vI.LTE,fail:vI.GT},formatMinimum:{okStr:">=",ok:vI.GTE,fail:vI.LT},formatExclusiveMaximum:{okStr:"<",ok:vI.LT,fail:vI.GTE},formatExclusiveMinimum:{okStr:">",ok:vI.GT,fail:vI.LTE}},Cdr={message:t(({keyword:s,schemaCode:o})=>(0,ME.str)`should be ${$le[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,ME._)`{comparison: ${$le[s].okStr}, limit: ${o}}`,"params")};jM.formatLimitDefinition={keyword:Object.keys($le),type:"string",schemaType:"string",$data:!0,error:Cdr,code(s){let{gen:o,data:f,schemaCode:d,keyword:y,it:x}=s,{opts:A,self:F}=x;if(!A.validateFormats)return;let W=new Edr.KeywordCxt(x,F.RULES.all.format.definition,"format");W.$data?G():be();function G(){let se=o.scopeValue("formats",{ref:F.formats,code:A.code.formats}),Xe=o.const("fmt",(0,ME._)`${se}[${W.schemaCode}]`);s.fail$data((0,ME.or)((0,ME._)`typeof ${Xe} != "object"`,(0,ME._)`${Xe} instanceof RegExp`,(0,ME._)`typeof ${Xe}.compare != "function"`,de(Xe)))}t(G,"validate$DataFormat");function be(){let se=W.schema,Xe=F.formats[se];if(!Xe||Xe===!0)return;if(typeof Xe!="object"||Xe instanceof RegExp||typeof Xe.compare!="function")throw new Error(`"${y}": format "${se}" does not define "compare" function`);let Ue=o.scopeValue("formats",{key:se,ref:Xe,code:A.code.formats?(0,ME._)`${A.code.formats}${(0,ME.getProperty)(se)}`:void 0});s.fail$data(de(Ue))}t(be,"validateFormat");function de(se){return(0,ME._)`${se}.compare(${f}, ${d}) ${$le[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var kdr=t(s=>(s.addKeyword(jM.formatLimitDefinition),s),"formatLimitPlugin");jM.default=kdr});var U4e=or((XH,F_t)=>{"use strict";Object.defineProperty(XH,"__esModule",{value:!0});var BM=A_t(),wdr=N_t(),j4e=Ec(),I_t=new j4e.Name("fullFormats"),Ddr=new j4e.Name("fastFormats"),B4e=t((s,o={keywords:!0})=>{if(Array.isArray(o))return O_t(s,o,BM.fullFormats,I_t),s;let[f,d]=o.mode==="fast"?[BM.fastFormats,Ddr]:[BM.fullFormats,I_t],y=o.formats||BM.formatNames;return O_t(s,y,f,d),o.keywords&&(0,wdr.default)(s),s},"formatsPlugin");B4e.get=(s,o="full")=>{let d=(o==="fast"?BM.fastFormats:BM.fullFormats)[s];if(!d)throw new Error(`Unknown format "${s}"`);return d};function O_t(s,o,f,d){var y,x;(y=(x=s.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,j4e._)`require("ajv-formats/dist/formats").${d}`);for(let A of o)s.addFormat(A,f[A])}t(O_t,"addFormats");F_t.exports=XH=B4e;Object.defineProperty(XH,"__esModule",{value:!0});XH.default=B4e});var kpt=or((p7r,Cpt)=>{var xmr=Object.prototype.toString,Z4e=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Emr(s){return xmr.call(s).slice(8,-1)==="ArrayBuffer"}t(Emr,"isArrayBuffer");function Cmr(s,o,f){o>>>=0;var d=s.byteLength-o;if(d<0)throw new RangeError("'offset' is out of bounds");if(f===void 0)f=d;else if(f>>>=0,f>d)throw new RangeError("'length' is out of bounds");return Z4e?Buffer.from(s.slice(o,o+f)):new Buffer(new Uint8Array(s.slice(o,o+f)))}t(Cmr,"fromArrayBuffer");function kmr(s,o){if((typeof o!="string"||o==="")&&(o="utf8"),!Buffer.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');return Z4e?Buffer.from(s,o):new Buffer(s,o)}t(kmr,"fromString");function wmr(s,o,f){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return Emr(s)?Cmr(s,o,f):typeof s=="string"?kmr(s,o):Z4e?Buffer.from(s):new Buffer(s)}t(wmr,"bufferFrom");Cpt.exports=wmr});var Fpt=or((qO,r3e)=>{var Dmr=uo("source-map").SourceMapConsumer,Q4e=uo("path"),Gk;try{Gk=uo("fs"),(!Gk.existsSync||!Gk.readFileSync)&&(Gk=null)}catch{}var Pmr=kpt();function wpt(s,o){return s.require(o)}t(wpt,"dynamicRequire");var Dpt=!1,Ppt=!1,e3e=!1,iG="auto",WO={},sG={},Amr=/^data:application\/json[^,]+base64,/,xI=[],EI=[];function n3e(){return iG==="browser"?!0:iG==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}t(n3e,"isInBrowser");function Nmr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}t(Nmr,"hasGlobalProcessEventEmitter");function Imr(){return typeof process=="object"&&process!==null?process.version:""}t(Imr,"globalProcessVersion");function Omr(){if(typeof process=="object"&&process!==null)return process.stderr}t(Omr,"globalProcessStderr");function Fmr(s){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(s)}t(Fmr,"globalProcessExit");function Kle(s){return function(o){for(var f=0;f<s.length;f++){var d=s[f](o);if(d)return d}return null}}t(Kle,"handlerExec");var i3e=Kle(xI);xI.push(function(s){if(s=s.trim(),/^file:/.test(s)&&(s=s.replace(/file:\/\/\/(\w:)?/,function(d,y){return y?"":"/"})),s in WO)return WO[s];var o="";try{if(Gk)Gk.existsSync(s)&&(o=Gk.readFileSync(s,"utf8"));else{var f=new XMLHttpRequest;f.open("GET",s,!1),f.send(null),f.readyState===4&&f.status===200&&(o=f.responseText)}}catch{}return WO[s]=o});function t3e(s,o){if(!s)return o;var f=Q4e.dirname(s),d=/^\w+:\/\/[^\/]*/.exec(f),y=d?d[0]:"",x=f.slice(y.length);return y&&/^\/\w\:/.test(x)?(y+="/",y+Q4e.resolve(f.slice(y.length),o).replace(/\\/g,"/")):y+Q4e.resolve(f.slice(y.length),o)}t(t3e,"supportRelativeURL");function Lmr(s){var o;if(n3e())try{var f=new XMLHttpRequest;f.open("GET",s,!1),f.send(null),o=f.readyState===4?f.responseText:null;var d=f.getResponseHeader("SourceMap")||f.getResponseHeader("X-SourceMap");if(d)return d}catch{}o=i3e(s);for(var y=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,x,A;A=y.exec(o);)x=A;return x?x[1]:null}t(Lmr,"retrieveSourceMapURL");var s3e=Kle(EI);EI.push(function(s){var o=Lmr(s);if(!o)return null;var f;if(Amr.test(o)){var d=o.slice(o.indexOf(",")+1);f=Pmr(d,"base64").toString(),o=s}else o=t3e(s,o),f=i3e(o);return f?{url:o,map:f}:null});function a3e(s){var o=sG[s.source];if(!o){var f=s3e(s.source);f?(o=sG[s.source]={url:f.url,map:new Dmr(f.map)},o.map.sourcesContent&&o.map.sources.forEach(function(y,x){var A=o.map.sourcesContent[x];if(A){var F=t3e(o.url,y);WO[F]=A}})):o=sG[s.source]={url:null,map:null}}if(o&&o.map&&typeof o.map.originalPositionFor=="function"){var d=o.map.originalPositionFor(s);if(d.source!==null)return d.source=t3e(o.url,d.source),d}return s}t(a3e,"mapSourcePosition");function Npt(s){var o=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(s);if(o){var f=a3e({source:o[2],line:+o[3],column:o[4]-1});return"eval at "+o[1]+" ("+f.source+":"+f.line+":"+(f.column+1)+")"}return o=/^eval at ([^(]+) \((.+)\)$/.exec(s),o?"eval at "+o[1]+" ("+Npt(o[2])+")":s}t(Npt,"mapEvalOrigin");function Rmr(){var s,o="";if(this.isNative())o="native";else{s=this.getScriptNameOrSourceURL(),!s&&this.isEval()&&(o=this.getEvalOrigin(),o+=", "),s?o+=s:o+="<anonymous>";var f=this.getLineNumber();if(f!=null){o+=":"+f;var d=this.getColumnNumber();d&&(o+=":"+d)}}var y="",x=this.getFunctionName(),A=!0,F=this.isConstructor(),W=!(this.isToplevel()||F);if(W){var G=this.getTypeName();G==="[object Object]"&&(G="null");var be=this.getMethodName();x?(G&&x.indexOf(G)!=0&&(y+=G+"."),y+=x,be&&x.indexOf("."+be)!=x.length-be.length-1&&(y+=" [as "+be+"]")):y+=G+"."+(be||"<anonymous>")}else F?y+="new "+(x||"<anonymous>"):x?y+=x:(y+=o,A=!1);return A&&(y+=" ("+o+")"),y}t(Rmr,"CallSiteToString");function Apt(s){var o={};return Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(function(f){o[f]=/^(?:is|get)/.test(f)?function(){return s[f].call(s)}:s[f]}),o.toString=Rmr,o}t(Apt,"cloneCallSite");function Ipt(s,o){if(o===void 0&&(o={nextPosition:null,curPosition:null}),s.isNative())return o.curPosition=null,s;var f=s.getFileName()||s.getScriptNameOrSourceURL();if(f){var d=s.getLineNumber(),y=s.getColumnNumber()-1,x=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,A=x.test(Imr())?0:62;d===1&&y>A&&!n3e()&&!s.isEval()&&(y-=A);var F=a3e({source:f,line:d,column:y});o.curPosition=F,s=Apt(s);var W=s.getFunctionName;return s.getFunctionName=function(){return o.nextPosition==null?W():o.nextPosition.name||W()},s.getFileName=function(){return F.source},s.getLineNumber=function(){return F.line},s.getColumnNumber=function(){return F.column+1},s.getScriptNameOrSourceURL=function(){return F.source},s}var G=s.isEval()&&s.getEvalOrigin();return G&&(G=Npt(G),s=Apt(s),s.getEvalOrigin=function(){return G}),s}t(Ipt,"wrapCallSite");function Mmr(s,o){e3e&&(WO={},sG={});for(var f=s.name||"Error",d=s.message||"",y=f+": "+d,x={nextPosition:null,curPosition:null},A=[],F=o.length-1;F>=0;F--)A.push(`
|
|
108
|
+
`)}`));if(!("location"in y.headers)||!y.headers.location)throw(0,Fle.ono)({status:y.status},`HTTP ${y.status} redirect with no location header`);{let x=WH.resolve(s.href,y.headers.location);return Nft(x,o,d)}}else{if(y.body){let x=await y.arrayBuffer();return Buffer.from(x)}return Buffer.alloc(0)}}catch(y){throw new Aft.ResolverError((0,Fle.ono)(y,`Error downloading ${s.href}`),s.href)}}t(Nft,"download");async function tpr(s,o){let f,d;o.timeout&&(f=new AbortController,d=setTimeout(()=>f.abort(),o.timeout));let y=await fetch(s,{method:"GET",headers:o.headers||{},credentials:o.withCredentials?"include":"same-origin",signal:f?f.signal:null});return d&&clearTimeout(d),y}t(tpr,"get")});var h4e=or(nA=>{"use strict";var FM=nA&&nA.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(nA,"__esModule",{value:!0});nA.getNewOptions=nA.getJsonSchemaRefParserDefaultOptions=void 0;var rpr=FM(sut()),npr=FM(xft()),ipr=FM(Eft()),spr=FM(Cft()),apr=FM(Pft()),opr=FM(Ift()),cpr=t(()=>({parse:{json:{...rpr.default},yaml:{...npr.default},text:{...ipr.default},binary:{...spr.default}},resolve:{file:{...apr.default},http:{...opr.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:t(()=>!1,"excludedPathMatcher"),referenceResolution:"relative"},mutateInputSchema:!0}),"getJsonSchemaRefParserDefaultOptions");nA.getJsonSchemaRefParserDefaultOptions=cpr;var lpr=t(s=>{let o=(0,nA.getJsonSchemaRefParserDefaultOptions)();return s&&Fft(o,s),o},"getNewOptions");nA.getNewOptions=lpr;function Fft(s,o){if(Oft(o)){let f=Object.keys(o).filter(d=>!["__proto__","constructor","prototype"].includes(d));for(let d=0;d<f.length;d++){let y=f[d],x=o[y],A=s[y];Oft(x)?s[y]=Fft(A||{},x):x!==void 0&&(s[y]=x)}}return s}t(Fft,"merge");function Oft(s){return s&&typeof s=="object"&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}t(Oft,"isMergeable")});var Rft=or(Lle=>{"use strict";Object.defineProperty(Lle,"__esModule",{value:!0});Lle.normalizeArgs=Lft;var upr=h4e();function Lft(s){let o,f,d,y,x=Array.prototype.slice.call(s);typeof x[x.length-1]=="function"&&(y=x.pop()),typeof x[0]=="string"?(o=x[0],typeof x[2]=="object"?(f=x[1],d=x[2]):(f=void 0,d=x[1])):(o="",f=x[0],d=x[1]);try{d=(0,upr.getNewOptions)(d)}catch(A){console.error(`JSON Schema Ref Parser: Error normalizing options: ${A}`)}return!d.mutateInputSchema&&typeof f=="object"&&(f=JSON.parse(JSON.stringify(f))),{path:o,schema:f,options:d,callback:y}}t(Lft,"normalizeArgs");Lle.default=Lft});var Mft=or(NE=>{"use strict";var fpr=NE&&NE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),_pr=NE&&NE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),ppr=NE&&NE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&fpr(o,s,f);return _pr(o,s),o},g4e=NE&&NE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(NE,"__esModule",{value:!0});var dpr=g4e(kM()),mpr=g4e(IH()),hpr=g4e(OIe()),LM=ppr(gT()),gpr=yT();function ypr(s,o){if(!o.resolve?.external)return Promise.resolve();try{let f=y4e(s.schema,s.$refs._root$Ref.path+"#",s.$refs,o);return Promise.all(f)}catch(f){return Promise.reject(f)}}t(ypr,"resolveExternal");function y4e(s,o,f,d,y,x){y||(y=new Set);let A=[];if(s&&typeof s=="object"&&!ArrayBuffer.isView(s)&&!y.has(s)){y.add(s),dpr.default.isExternal$Ref(s)&&A.push(vpr(s,o,f,d));let F=Object.keys(s);for(let W of F){let G=mpr.default.join(o,W),be=s[W];A=A.concat(y4e(be,G,f,d,y,x))}}return A}t(y4e,"crawl");async function vpr(s,o,f,d){let y=d.dereference?.externalReferenceResolution==="root",x=LM.resolve(y?LM.cwd():o,s.$ref),A=LM.stripHash(x),F=f._$refs[A];if(F)return Promise.resolve(F.value);try{let W=await(0,hpr.default)(x,f,d),G=y4e(W,A+"#",f,d,new Set,!0);return Promise.all(G)}catch(W){if(!d?.continueOnError||!(0,gpr.isHandledError)(W))throw W;return f._$refs[A]&&(W.source=decodeURI(LM.stripHash(o)),W.path=LM.safePointerToPath(LM.getHash(o))),[]}}t(vpr,"resolve$Ref");NE.default=ypr});var Uft=or(IE=>{"use strict";var bpr=IE&&IE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Spr=IE&&IE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Tpr=IE&&IE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&bpr(o,s,f);return Spr(o,s),o},Bft=IE&&IE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(IE,"__esModule",{value:!0});var Rle=Bft(kM()),qH=Bft(IH()),v4e=Tpr(gT());function xpr(s,o){let f=[];b4e(s,"schema",s.$refs._root$Ref.path+"#","#",0,f,s.$refs,o),Epr(f)}t(xpr,"bundle");function b4e(s,o,f,d,y,x,A,F){let W=o===null?s:s[o];if(W&&typeof W=="object"&&!ArrayBuffer.isView(W))if(Rle.default.isAllowed$Ref(W))jft(s,o,f,d,y,x,A,F);else{let G=Object.keys(W).sort((be,de)=>be==="definitions"?-1:de==="definitions"?1:be.length-de.length);for(let be of G){let de=qH.default.join(f,be),se=qH.default.join(d,be),Xe=W[be];Rle.default.isAllowed$Ref(Xe)?jft(W,be,f,se,y,x,A,F):b4e(W,be,de,se,y,x,A,F)}}}t(b4e,"crawl");function jft(s,o,f,d,y,x,A,F){let W=o===null?s:s[o],G=v4e.resolve(f,W.$ref),be=A._resolve(G,d,F);if(be===null)return;let se=qH.default.parse(d).length,Xe=v4e.stripHash(be.path),Ue=v4e.getHash(be.path),je=Xe!==A._root$Ref.path,Vt=Rle.default.isExtended$Ref(W);y+=be.indirections;let Ut=Cpr(x,s,o);if(Ut)if(se<Ut.depth||y<Ut.indirections)kpr(x,Ut);else return;x.push({$ref:W,parent:s,key:o,pathFromRoot:d,depth:se,file:Xe,hash:Ue,value:be.value,circular:be.circular,extended:Vt,external:je,indirections:y}),(!Ut||je)&&b4e(be.value,null,be.path,d,y+1,x,A,F)}t(jft,"inventory$Ref");function Epr(s){s.sort((y,x)=>{if(y.file!==x.file)return y.file<x.file?-1:1;if(y.hash!==x.hash)return y.hash<x.hash?-1:1;if(y.circular!==x.circular)return y.circular?-1:1;if(y.extended!==x.extended)return y.extended?1:-1;if(y.indirections!==x.indirections)return y.indirections-x.indirections;if(y.depth!==x.depth)return y.depth-x.depth;{let A=y.pathFromRoot.lastIndexOf("/definitions"),F=x.pathFromRoot.lastIndexOf("/definitions");return A!==F?F-A:y.pathFromRoot.length-x.pathFromRoot.length}});let o,f,d;for(let y of s)y.external?y.file===o&&y.hash===f?y.$ref.$ref=d:y.file===o&&y.hash.indexOf(f+"/")===0?y.$ref.$ref=qH.default.join(d,qH.default.parse(y.hash.replace(f,"#"))):(o=y.file,f=y.hash,d=y.pathFromRoot,y.$ref=y.parent[y.key]=Rle.default.dereference(y.$ref,y.value),y.circular&&(y.$ref.$ref=y.pathFromRoot)):y.$ref.$ref=y.hash}t(Epr,"remap");function Cpr(s,o,f){for(let d of s)if(d&&d.parent===o&&d.key===f)return d}t(Cpr,"findInInventory");function kpr(s,o){let f=s.indexOf(o);s.splice(f,1)}t(kpr,"removeFromInventory");IE.default=xpr});var Vft=or(OE=>{"use strict";var wpr=OE&&OE.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Dpr=OE&&OE.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),Ppr=OE&&OE.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&wpr(o,s,f);return Dpr(o,s),o},Wft=OE&&OE.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(OE,"__esModule",{value:!0});var Mle=Wft(kM()),zft=Wft(IH()),Apr=pI(),$ft=Ppr(gT()),Npr=yT();OE.default=Ipr;function Ipr(s,o){let f=Date.now(),d=S4e(s.schema,s.$refs._root$Ref.path,"#",new Set,new Set,new Map,s.$refs,o,f);s.$refs.circular=d.circular,s.schema=d.value}t(Ipr,"dereference");function S4e(s,o,f,d,y,x,A,F,W){let G,be={value:s,circular:!1};if(F&&F.timeoutMs&&Date.now()-W>F.timeoutMs)throw new Npr.TimeoutError(F.timeoutMs);let de=F.dereference||{},se=de.excludedPathMatcher||(()=>!1);if((de?.circular==="ignore"||!y.has(s))&&s&&typeof s=="object"&&!ArrayBuffer.isView(s)&&!se(f)){if(d.add(s),y.add(s),Mle.default.isAllowed$Ref(s,F))G=Jft(s,o,f,d,y,x,A,F,W),be.circular=G.circular,be.value=G.value;else for(let Xe of Object.keys(s)){let Ue=zft.default.join(o,Xe),je=zft.default.join(f,Xe);if(se(je))continue;let Vt=s[Xe],Ut=!1;Mle.default.isAllowed$Ref(Vt,F)?(G=Jft(Vt,Ue,je,d,y,x,A,F,W),Ut=G.circular,s[Xe]!==G.value&&(s[Xe]=G.value,de?.onDereference?.(Vt.$ref,s[Xe],s,Xe))):d.has(Vt)?Ut=qft(Ue,A,F):(G=S4e(Vt,Ue,je,d,y,x,A,F,W),Ut=G.circular,s[Xe]!==G.value&&(s[Xe]=G.value)),be.circular=be.circular||Ut}d.delete(s)}return be}t(S4e,"crawl");function Jft(s,o,f,d,y,x,A,F,W){let be=Mle.default.isExternal$Ref(s)&&F?.dereference?.externalReferenceResolution==="root",de=$ft.resolve(be?$ft.cwd():o,s.$ref),se=x.get(de);if(se&&!se.circular){let Ir=Object.keys(s);if(Ir.length>1){let wn={};for(let sn of Ir)sn!=="$ref"&&!(sn in se.value)&&(wn[sn]=s[sn]);return{circular:se.circular,value:Object.assign({},se.value,wn)}}return se}let Xe=A._resolve(de,o,F);if(Xe===null)return{circular:!1,value:null};let Ue=Xe.circular,je=Ue||d.has(Xe.value);je&&qft(o,A,F);let Vt=Mle.default.dereference(s,Xe.value);if(!je){let Ir=S4e(Vt,Xe.path,f,d,y,x,A,F,W);je=Ir.circular,Vt=Ir.value}je&&!Ue&&F.dereference?.circular==="ignore"&&(Vt=s),Ue&&(Vt.$ref=f);let Ut={circular:je,value:Vt};return Object.keys(s).length===1&&x.set(de,Ut),Ut}t(Jft,"dereference$Ref");function qft(s,o,f){if(o.circular=!0,!f.dereference.circular)throw Apr.ono.reference(`Circular $ref pointer found at ${s}`);return!0}t(qft,"foundCircularReference")});var Hft=or(T4e=>{"use strict";Object.defineProperty(T4e,"__esModule",{value:!0});function Opr(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:t(function(o){setTimeout(o,0)},"next")}t(Opr,"makeNext");T4e.default=Opr()});var Yft=or(VH=>{"use strict";var Fpr=VH&&VH.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(VH,"__esModule",{value:!0});VH.default=Lpr;var Gft=Fpr(Hft());function Lpr(s,o){if(s){o.then(function(f){(0,Gft.default)(function(){s(null,f)})},function(f){(0,Gft.default)(function(){s(f)})});return}else return o}t(Lpr,"maybe")});var E4e=or(Uc=>{"use strict";var Rpr=Uc&&Uc.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),Mpr=Uc&&Uc.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),jpr=Uc&&Uc.__importStar||function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f in s)f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)&&Rpr(o,s,f);return Mpr(o,s),o},BO=Uc&&Uc.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Uc,"__esModule",{value:!0});Uc.getJsonSchemaRefParserDefaultOptions=Uc.jsonSchemaParserNormalizeArgs=Uc.dereferenceInternal=Uc.JSONParserErrorGroup=Uc.isHandledError=Uc.UnmatchedParserError=Uc.ParserError=Uc.ResolverError=Uc.MissingPointerError=Uc.InvalidPointerError=Uc.JSONParserError=Uc.UnmatchedResolverError=Uc.dereference=Uc.bundle=Uc.resolve=Uc.parse=Uc.$RefParser=void 0;var Kft=BO(eut()),Bpr=BO(OIe()),HH=BO(Rft());Uc.jsonSchemaParserNormalizeArgs=HH.default;var Upr=BO(Mft()),zpr=BO(Uft()),Zft=BO(Vft());Uc.dereferenceInternal=Zft.default;var jO=jpr(gT()),vT=yT();Object.defineProperty(Uc,"JSONParserError",{enumerable:!0,get:t(function(){return vT.JSONParserError},"get")});Object.defineProperty(Uc,"InvalidPointerError",{enumerable:!0,get:t(function(){return vT.InvalidPointerError},"get")});Object.defineProperty(Uc,"MissingPointerError",{enumerable:!0,get:t(function(){return vT.MissingPointerError},"get")});Object.defineProperty(Uc,"ResolverError",{enumerable:!0,get:t(function(){return vT.ResolverError},"get")});Object.defineProperty(Uc,"ParserError",{enumerable:!0,get:t(function(){return vT.ParserError},"get")});Object.defineProperty(Uc,"UnmatchedParserError",{enumerable:!0,get:t(function(){return vT.UnmatchedParserError},"get")});Object.defineProperty(Uc,"UnmatchedResolverError",{enumerable:!0,get:t(function(){return vT.UnmatchedResolverError},"get")});Object.defineProperty(Uc,"isHandledError",{enumerable:!0,get:t(function(){return vT.isHandledError},"get")});Object.defineProperty(Uc,"JSONParserErrorGroup",{enumerable:!0,get:t(function(){return vT.JSONParserErrorGroup},"get")});var Xft=pI(),FE=BO(Yft()),$pr=h4e();Object.defineProperty(Uc,"getJsonSchemaRefParserDefaultOptions",{enumerable:!0,get:t(function(){return $pr.getJsonSchemaRefParserDefaultOptions},"get")});var gI=class s{static{t(this,"$RefParser")}constructor(){this.schema=null,this.$refs=new Kft.default}async parse(){let o=(0,HH.default)(arguments),f;if(!o.path&&!o.schema){let y=(0,Xft.ono)(`Expected a file path, URL, or object. Got ${o.path||o.schema}`);return(0,FE.default)(o.callback,Promise.reject(y))}this.schema=null,this.$refs=new Kft.default;let d="http";if(jO.isFileSystemPath(o.path))o.path=jO.fromFileSystemPath(o.path),d="file";else if(!o.path&&o.schema&&"$id"in o.schema&&o.schema.$id){let y=jO.parse(o.schema.$id),x=y.protocol==="https:"?443:80;o.path=`${y.protocol}//${y.hostname}:${x}`}if(o.path=jO.resolve(jO.cwd(),o.path),o.schema&&typeof o.schema=="object"){let y=this.$refs._add(o.path);y.value=o.schema,y.pathType=d,f=Promise.resolve(o.schema)}else f=(0,Bpr.default)(o.path,this.$refs,o.options);try{let y=await f;if(y!==null&&typeof y=="object"&&!Buffer.isBuffer(y))return this.schema=y,(0,FE.default)(o.callback,Promise.resolve(this.schema));if(o.options.continueOnError)return this.schema=null,(0,FE.default)(o.callback,Promise.resolve(this.schema));throw Xft.ono.syntax(`"${this.$refs._root$Ref.path||y}" is not a valid JSON Schema`)}catch(y){return!o.options.continueOnError||!(0,vT.isHandledError)(y)?(0,FE.default)(o.callback,Promise.reject(y)):(this.$refs._$refs[jO.stripHash(o.path)]&&this.$refs._$refs[jO.stripHash(o.path)].addError(y),(0,FE.default)(o.callback,Promise.resolve(null)))}}static parse(){let o=new s;return o.parse.apply(o,arguments)}async resolve(){let o=(0,HH.default)(arguments);try{return await this.parse(o.path,o.schema,o.options),await(0,Upr.default)(this,o.options),x4e(this),(0,FE.default)(o.callback,Promise.resolve(this.$refs))}catch(f){return(0,FE.default)(o.callback,Promise.reject(f))}}static resolve(){let o=new s;return o.resolve.apply(o,arguments)}static bundle(){let o=new s;return o.bundle.apply(o,arguments)}async bundle(){let o=(0,HH.default)(arguments);try{return await this.resolve(o.path,o.schema,o.options),(0,zpr.default)(this,o.options),x4e(this),(0,FE.default)(o.callback,Promise.resolve(this.schema))}catch(f){return(0,FE.default)(o.callback,Promise.reject(f))}}static dereference(){let o=new s;return o.dereference.apply(o,arguments)}async dereference(){let o=(0,HH.default)(arguments);try{return await this.resolve(o.path,o.schema,o.options),(0,Zft.default)(this,o.options),x4e(this),(0,FE.default)(o.callback,Promise.resolve(this.schema))}catch(f){return(0,FE.default)(o.callback,Promise.reject(f))}}};Uc.$RefParser=gI;Uc.default=gI;function x4e(s){if(vT.JSONParserErrorGroup.getParserErrors(s).length>0)throw new vT.JSONParserErrorGroup(s)}t(x4e,"finalize");Uc.parse=gI.parse;Uc.resolve=gI.resolve;Uc.bundle=gI.bundle;Uc.dereference=gI.dereference});var I4e=or((KH,T_t)=>{"use strict";Object.defineProperty(KH,"__esModule",{value:!0});var YH=Tce(),RE=tM();function S_t(s,o){if(!s.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:f}=s.scope.opts;return typeof o=="function"?y(o.source):o!==void 0?x(o,d):x(s.schemas,F=>F.meta?void 0:s.compile(F.schema));function d(F){let W=s.getSchema(F);if(!W)throw new Error(`moduleCode: no schema with id ${F}`);return W}function y(F){let W={},G=F?.validateName,be=A(W,F);return s.opts.code.esm?`"use strict";${f}export const validate = ${G};${f}export default ${G};${f}${be}`:`"use strict";${f}module.exports = ${G};${f}module.exports.default = ${G};${f}${be}`}function x(F,W){var G;let be={},de=(0,RE._)`"use strict";`;for(let se in F){let Xe=W(F[se]);if(Xe){let Ue=A(be,Xe.source),je=s.opts.code.esm?(0,RE._)`export const ${(0,RE.getEsmExportName)(se)}`:(0,RE._)`exports${(0,RE.getProperty)(se)}`;de=(0,RE._)`${de}${f}${je} = ${(G=Xe.source)===null||G===void 0?void 0:G.validateName};${f}${Ue}`}}return`${de}`}function A(F,W){if(!W)throw new Error('moduleCode: function does not have "source" property');if(se(W.validateName)===YH.UsedValueState.Completed)return RE.nil;Xe(W.validateName,YH.UsedValueState.Started);let G=s.scope.scopeCode(W.scopeValues,F,de),be=new RE._Code(`${G}${f}${W.validateCode}`);return W.evaluated?(0,RE._)`${be}${W.validateName}.evaluated = ${W.evaluated};${f}`:be;function de(Ue){var je;let Vt=(je=Ue.value)===null||je===void 0?void 0:je.ref;if(Ue.prefix==="validate"&&typeof Vt=="function")return A(F,Vt.source);if((Ue.prefix==="root"||Ue.prefix==="wrapper")&&typeof Vt=="object"){let{validate:Ut,validateName:Ir}=Vt;if(!Ir)throw new Error("ajv internal error");let wn=s.opts.code.es5?YH.varKinds.var:YH.varKinds.const,sn=(0,RE._)`${wn} ${Ue} = {validate: ${Ir}};`;if(se(Ir)===YH.UsedValueState.Started)return sn;let Jn=A(F,Ut?.source);return(0,RE._)`${sn}${f}${Jn}`}}function se(Ue){var je;return(je=F[Ue.prefix])===null||je===void 0?void 0:je.get(Ue)}function Xe(Ue,je){let{prefix:Vt}=Ue;(F[Vt]=F[Vt]||new Map).set(Ue,je)}}}t(S_t,"standaloneCode");T_t.exports=KH=S_t;Object.defineProperty(KH,"__esModule",{value:!0});KH.default=S_t});var A_t=or(qk=>{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});qk.formatNames=qk.fastFormats=qk.fullFormats=void 0;function Wk(s,o){return{validate:s,compare:o}}t(Wk,"fmtDef");qk.fullFormats={date:Wk(k_t,R4e),time:Wk(F4e(!0),M4e),"date-time":Wk(x_t(!0),D_t),"iso-time":Wk(F4e(),w_t),"iso-date-time":Wk(x_t(),P_t),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:hdr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:xdr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:gdr,int32:{type:"number",validate:bdr},int64:{type:"number",validate:Sdr},float:{type:"number",validate:C_t},double:{type:"number",validate:C_t},password:!0,binary:!0};qk.fastFormats={...qk.fullFormats,date:Wk(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,R4e),time:Wk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,M4e),"date-time":Wk(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,D_t),"iso-time":Wk(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,w_t),"iso-date-time":Wk(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,P_t),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};qk.formatNames=Object.keys(qk.fullFormats);function fdr(s){return s%4===0&&(s%100!==0||s%400===0)}t(fdr,"isLeapYear");var _dr=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,pdr=[0,31,28,31,30,31,30,31,31,30,31,30,31];function k_t(s){let o=_dr.exec(s);if(!o)return!1;let f=+o[1],d=+o[2],y=+o[3];return d>=1&&d<=12&&y>=1&&y<=(d===2&&fdr(f)?29:pdr[d])}t(k_t,"date");function R4e(s,o){if(s&&o)return s>o?1:s<o?-1:0}t(R4e,"compareDate");var O4e=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function F4e(s){return t(function(f){let d=O4e.exec(f);if(!d)return!1;let y=+d[1],x=+d[2],A=+d[3],F=d[4],W=d[5]==="-"?-1:1,G=+(d[6]||0),be=+(d[7]||0);if(G>23||be>59||s&&!F)return!1;if(y<=23&&x<=59&&A<60)return!0;let de=x-be*W,se=y-G*W-(de<0?1:0);return(se===23||se===-1)&&(de===59||de===-1)&&A<61},"time")}t(F4e,"getTime");function M4e(s,o){if(!(s&&o))return;let f=new Date("2020-01-01T"+s).valueOf(),d=new Date("2020-01-01T"+o).valueOf();if(f&&d)return f-d}t(M4e,"compareTime");function w_t(s,o){if(!(s&&o))return;let f=O4e.exec(s),d=O4e.exec(o);if(f&&d)return s=f[1]+f[2]+f[3],o=d[1]+d[2]+d[3],s>o?1:s<o?-1:0}t(w_t,"compareIsoTime");var L4e=/t|\s/i;function x_t(s){let o=F4e(s);return t(function(d){let y=d.split(L4e);return y.length===2&&k_t(y[0])&&o(y[1])},"date_time")}t(x_t,"getDateTime");function D_t(s,o){if(!(s&&o))return;let f=new Date(s).valueOf(),d=new Date(o).valueOf();if(f&&d)return f-d}t(D_t,"compareDateTime");function P_t(s,o){if(!(s&&o))return;let[f,d]=s.split(L4e),[y,x]=o.split(L4e),A=R4e(f,y);if(A!==void 0)return A||M4e(d,x)}t(P_t,"compareIsoDateTime");var ddr=/\/|:/,mdr=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function hdr(s){return ddr.test(s)&&mdr.test(s)}t(hdr,"uri");var E_t=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function gdr(s){return E_t.lastIndex=0,E_t.test(s)}t(gdr,"byte");var ydr=-(2**31),vdr=2**31-1;function bdr(s){return Number.isInteger(s)&&s<=vdr&&s>=ydr}t(bdr,"validateInt32");function Sdr(s){return Number.isInteger(s)}t(Sdr,"validateInt64");function C_t(){return!0}t(C_t,"validateNumber");var Tdr=/[^\\]\\Z/;function xdr(s){if(Tdr.test(s))return!1;try{return new RegExp(s),!0}catch{return!1}}t(xdr,"regex")});var N_t=or(jM=>{"use strict";Object.defineProperty(jM,"__esModule",{value:!0});jM.formatLimitDefinition=void 0;var Edr=wH(),ME=Ec(),vI=ME.operators,$le={formatMaximum:{okStr:"<=",ok:vI.LTE,fail:vI.GT},formatMinimum:{okStr:">=",ok:vI.GTE,fail:vI.LT},formatExclusiveMaximum:{okStr:"<",ok:vI.LT,fail:vI.GTE},formatExclusiveMinimum:{okStr:">",ok:vI.GT,fail:vI.LTE}},Cdr={message:t(({keyword:s,schemaCode:o})=>(0,ME.str)`should be ${$le[s].okStr} ${o}`,"message"),params:t(({keyword:s,schemaCode:o})=>(0,ME._)`{comparison: ${$le[s].okStr}, limit: ${o}}`,"params")};jM.formatLimitDefinition={keyword:Object.keys($le),type:"string",schemaType:"string",$data:!0,error:Cdr,code(s){let{gen:o,data:f,schemaCode:d,keyword:y,it:x}=s,{opts:A,self:F}=x;if(!A.validateFormats)return;let W=new Edr.KeywordCxt(x,F.RULES.all.format.definition,"format");W.$data?G():be();function G(){let se=o.scopeValue("formats",{ref:F.formats,code:A.code.formats}),Xe=o.const("fmt",(0,ME._)`${se}[${W.schemaCode}]`);s.fail$data((0,ME.or)((0,ME._)`typeof ${Xe} != "object"`,(0,ME._)`${Xe} instanceof RegExp`,(0,ME._)`typeof ${Xe}.compare != "function"`,de(Xe)))}t(G,"validate$DataFormat");function be(){let se=W.schema,Xe=F.formats[se];if(!Xe||Xe===!0)return;if(typeof Xe!="object"||Xe instanceof RegExp||typeof Xe.compare!="function")throw new Error(`"${y}": format "${se}" does not define "compare" function`);let Ue=o.scopeValue("formats",{key:se,ref:Xe,code:A.code.formats?(0,ME._)`${A.code.formats}${(0,ME.getProperty)(se)}`:void 0});s.fail$data(de(Ue))}t(be,"validateFormat");function de(se){return(0,ME._)`${se}.compare(${f}, ${d}) ${$le[y].fail} 0`}t(de,"compareCode")},dependencies:["format"]};var kdr=t(s=>(s.addKeyword(jM.formatLimitDefinition),s),"formatLimitPlugin");jM.default=kdr});var U4e=or((XH,F_t)=>{"use strict";Object.defineProperty(XH,"__esModule",{value:!0});var BM=A_t(),wdr=N_t(),j4e=Ec(),I_t=new j4e.Name("fullFormats"),Ddr=new j4e.Name("fastFormats"),B4e=t((s,o={keywords:!0})=>{if(Array.isArray(o))return O_t(s,o,BM.fullFormats,I_t),s;let[f,d]=o.mode==="fast"?[BM.fastFormats,Ddr]:[BM.fullFormats,I_t],y=o.formats||BM.formatNames;return O_t(s,y,f,d),o.keywords&&(0,wdr.default)(s),s},"formatsPlugin");B4e.get=(s,o="full")=>{let d=(o==="fast"?BM.fastFormats:BM.fullFormats)[s];if(!d)throw new Error(`Unknown format "${s}"`);return d};function O_t(s,o,f,d){var y,x;(y=(x=s.opts.code).formats)!==null&&y!==void 0||(x.formats=(0,j4e._)`require("ajv-formats/dist/formats").${d}`);for(let A of o)s.addFormat(A,f[A])}t(O_t,"addFormats");F_t.exports=XH=B4e;Object.defineProperty(XH,"__esModule",{value:!0});XH.default=B4e});var kpt=or((d7r,Cpt)=>{var xmr=Object.prototype.toString,Z4e=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Emr(s){return xmr.call(s).slice(8,-1)==="ArrayBuffer"}t(Emr,"isArrayBuffer");function Cmr(s,o,f){o>>>=0;var d=s.byteLength-o;if(d<0)throw new RangeError("'offset' is out of bounds");if(f===void 0)f=d;else if(f>>>=0,f>d)throw new RangeError("'length' is out of bounds");return Z4e?Buffer.from(s.slice(o,o+f)):new Buffer(new Uint8Array(s.slice(o,o+f)))}t(Cmr,"fromArrayBuffer");function kmr(s,o){if((typeof o!="string"||o==="")&&(o="utf8"),!Buffer.isEncoding(o))throw new TypeError('"encoding" must be a valid string encoding');return Z4e?Buffer.from(s,o):new Buffer(s,o)}t(kmr,"fromString");function wmr(s,o,f){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return Emr(s)?Cmr(s,o,f):typeof s=="string"?kmr(s,o):Z4e?Buffer.from(s):new Buffer(s)}t(wmr,"bufferFrom");Cpt.exports=wmr});var Fpt=or((qO,r3e)=>{var Dmr=uo("source-map").SourceMapConsumer,Q4e=uo("path"),Gk;try{Gk=uo("fs"),(!Gk.existsSync||!Gk.readFileSync)&&(Gk=null)}catch{}var Pmr=kpt();function wpt(s,o){return s.require(o)}t(wpt,"dynamicRequire");var Dpt=!1,Ppt=!1,e3e=!1,iG="auto",WO={},sG={},Amr=/^data:application\/json[^,]+base64,/,xI=[],EI=[];function n3e(){return iG==="browser"?!0:iG==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}t(n3e,"isInBrowser");function Nmr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}t(Nmr,"hasGlobalProcessEventEmitter");function Imr(){return typeof process=="object"&&process!==null?process.version:""}t(Imr,"globalProcessVersion");function Omr(){if(typeof process=="object"&&process!==null)return process.stderr}t(Omr,"globalProcessStderr");function Fmr(s){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(s)}t(Fmr,"globalProcessExit");function Kle(s){return function(o){for(var f=0;f<s.length;f++){var d=s[f](o);if(d)return d}return null}}t(Kle,"handlerExec");var i3e=Kle(xI);xI.push(function(s){if(s=s.trim(),/^file:/.test(s)&&(s=s.replace(/file:\/\/\/(\w:)?/,function(d,y){return y?"":"/"})),s in WO)return WO[s];var o="";try{if(Gk)Gk.existsSync(s)&&(o=Gk.readFileSync(s,"utf8"));else{var f=new XMLHttpRequest;f.open("GET",s,!1),f.send(null),f.readyState===4&&f.status===200&&(o=f.responseText)}}catch{}return WO[s]=o});function t3e(s,o){if(!s)return o;var f=Q4e.dirname(s),d=/^\w+:\/\/[^\/]*/.exec(f),y=d?d[0]:"",x=f.slice(y.length);return y&&/^\/\w\:/.test(x)?(y+="/",y+Q4e.resolve(f.slice(y.length),o).replace(/\\/g,"/")):y+Q4e.resolve(f.slice(y.length),o)}t(t3e,"supportRelativeURL");function Lmr(s){var o;if(n3e())try{var f=new XMLHttpRequest;f.open("GET",s,!1),f.send(null),o=f.readyState===4?f.responseText:null;var d=f.getResponseHeader("SourceMap")||f.getResponseHeader("X-SourceMap");if(d)return d}catch{}o=i3e(s);for(var y=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,x,A;A=y.exec(o);)x=A;return x?x[1]:null}t(Lmr,"retrieveSourceMapURL");var s3e=Kle(EI);EI.push(function(s){var o=Lmr(s);if(!o)return null;var f;if(Amr.test(o)){var d=o.slice(o.indexOf(",")+1);f=Pmr(d,"base64").toString(),o=s}else o=t3e(s,o),f=i3e(o);return f?{url:o,map:f}:null});function a3e(s){var o=sG[s.source];if(!o){var f=s3e(s.source);f?(o=sG[s.source]={url:f.url,map:new Dmr(f.map)},o.map.sourcesContent&&o.map.sources.forEach(function(y,x){var A=o.map.sourcesContent[x];if(A){var F=t3e(o.url,y);WO[F]=A}})):o=sG[s.source]={url:null,map:null}}if(o&&o.map&&typeof o.map.originalPositionFor=="function"){var d=o.map.originalPositionFor(s);if(d.source!==null)return d.source=t3e(o.url,d.source),d}return s}t(a3e,"mapSourcePosition");function Npt(s){var o=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(s);if(o){var f=a3e({source:o[2],line:+o[3],column:o[4]-1});return"eval at "+o[1]+" ("+f.source+":"+f.line+":"+(f.column+1)+")"}return o=/^eval at ([^(]+) \((.+)\)$/.exec(s),o?"eval at "+o[1]+" ("+Npt(o[2])+")":s}t(Npt,"mapEvalOrigin");function Rmr(){var s,o="";if(this.isNative())o="native";else{s=this.getScriptNameOrSourceURL(),!s&&this.isEval()&&(o=this.getEvalOrigin(),o+=", "),s?o+=s:o+="<anonymous>";var f=this.getLineNumber();if(f!=null){o+=":"+f;var d=this.getColumnNumber();d&&(o+=":"+d)}}var y="",x=this.getFunctionName(),A=!0,F=this.isConstructor(),W=!(this.isToplevel()||F);if(W){var G=this.getTypeName();G==="[object Object]"&&(G="null");var be=this.getMethodName();x?(G&&x.indexOf(G)!=0&&(y+=G+"."),y+=x,be&&x.indexOf("."+be)!=x.length-be.length-1&&(y+=" [as "+be+"]")):y+=G+"."+(be||"<anonymous>")}else F?y+="new "+(x||"<anonymous>"):x?y+=x:(y+=o,A=!1);return A&&(y+=" ("+o+")"),y}t(Rmr,"CallSiteToString");function Apt(s){var o={};return Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(function(f){o[f]=/^(?:is|get)/.test(f)?function(){return s[f].call(s)}:s[f]}),o.toString=Rmr,o}t(Apt,"cloneCallSite");function Ipt(s,o){if(o===void 0&&(o={nextPosition:null,curPosition:null}),s.isNative())return o.curPosition=null,s;var f=s.getFileName()||s.getScriptNameOrSourceURL();if(f){var d=s.getLineNumber(),y=s.getColumnNumber()-1,x=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,A=x.test(Imr())?0:62;d===1&&y>A&&!n3e()&&!s.isEval()&&(y-=A);var F=a3e({source:f,line:d,column:y});o.curPosition=F,s=Apt(s);var W=s.getFunctionName;return s.getFunctionName=function(){return o.nextPosition==null?W():o.nextPosition.name||W()},s.getFileName=function(){return F.source},s.getLineNumber=function(){return F.line},s.getColumnNumber=function(){return F.column+1},s.getScriptNameOrSourceURL=function(){return F.source},s}var G=s.isEval()&&s.getEvalOrigin();return G&&(G=Npt(G),s=Apt(s),s.getEvalOrigin=function(){return G}),s}t(Ipt,"wrapCallSite");function Mmr(s,o){e3e&&(WO={},sG={});for(var f=s.name||"Error",d=s.message||"",y=f+": "+d,x={nextPosition:null,curPosition:null},A=[],F=o.length-1;F>=0;F--)A.push(`
|
|
109
109
|
at `+Ipt(o[F],x)),x.nextPosition=x.curPosition;return x.curPosition=x.nextPosition=null,y+A.reverse().join("")}t(Mmr,"prepareStackTrace");function Opt(s){var o=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(s.stack);if(o){var f=o[1],d=+o[2],y=+o[3],x=WO[f];if(!x&&Gk&&Gk.existsSync(f))try{x=Gk.readFileSync(f,"utf8")}catch{x=""}if(x){var A=x.split(/(?:\r\n|\r|\n)/)[d-1];if(A)return f+":"+d+`
|
|
110
110
|
`+A+`
|
|
111
|
-
`+new Array(y).join(" ")+"^"}}return null}t(Opt,"getErrorSource");function jmr(s){var o=Opt(s),f=Omr();f&&f._handle&&f._handle.setBlocking&&f._handle.setBlocking(!0),o&&(console.error(),console.error(o)),console.error(s.stack),Fmr(1)}t(jmr,"printErrorAndExit");function Bmr(){var s=process.emit;process.emit=function(o){if(o==="uncaughtException"){var f=arguments[1]&&arguments[1].stack,d=this.listeners(o).length>0;if(f&&!d)return jmr(arguments[1])}return s.apply(this,arguments)}}t(Bmr,"shimEmitUncaughtException");var Umr=xI.slice(0),zmr=EI.slice(0);qO.wrapCallSite=Ipt;qO.getErrorSource=Opt;qO.mapSourcePosition=a3e;qO.retrieveSourceMap=s3e;qO.install=function(s){if(s=s||{},s.environment&&(iG=s.environment,["node","browser","auto"].indexOf(iG)===-1))throw new Error("environment "+iG+" was unknown. Available options are {auto, browser, node}");if(s.retrieveFile&&(s.overrideRetrieveFile&&(xI.length=0),xI.unshift(s.retrieveFile)),s.retrieveSourceMap&&(s.overrideRetrieveSourceMap&&(EI.length=0),EI.unshift(s.retrieveSourceMap)),s.hookRequire&&!n3e()){var o=wpt(r3e,"module"),f=o.prototype._compile;f.__sourceMapSupport||(o.prototype._compile=function(x,A){return WO[A]=x,sG[A]=void 0,f.call(this,x,A)},o.prototype._compile.__sourceMapSupport=!0)}if(e3e||(e3e="emptyCacheBetweenOperations"in s?s.emptyCacheBetweenOperations:!1),Dpt||(Dpt=!0,Error.prepareStackTrace=Mmr),!Ppt){var d="handleUncaughtExceptions"in s?s.handleUncaughtExceptions:!0;try{var y=wpt(r3e,"worker_threads");y.isMainThread===!1&&(d=!1)}catch{}d&&Nmr()&&(Ppt=!0,Bmr())}};qO.resetRetrieveHandlers=function(){xI.length=0,EI.length=0,xI=Umr.slice(0),EI=zmr.slice(0),s3e=Kle(EI),i3e=Kle(xI)}});var _3e=or((h7r,Zle)=>{var Lpt={};(s=>{"use strict";var o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,x=t((e,r)=>{for(var i in r)o(e,i,{get:r[i],enumerable:!0})},"__export"),A=t((e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of d(r))!y.call(e,c)&&c!==i&&o(e,c,{get:t(()=>r[c],"get"),enumerable:!(a=f(r,c))||a.enumerable});return e},"__copyProps"),F=t(e=>e,"__toCommonJS"),W={};x(W,{ANONYMOUS:t(()=>yre,"ANONYMOUS"),AccessFlags:t(()=>ope,"AccessFlags"),AssertionLevel:t(()=>g_e,"AssertionLevel"),AssignmentDeclarationKind:t(()=>hpe,"AssignmentDeclarationKind"),AssignmentKind:t(()=>zme,"AssignmentKind"),Associativity:t(()=>Yme,"Associativity"),BreakpointResolver:t(()=>hne,"BreakpointResolver"),BuilderFileEmit:t(()=>V1e,"BuilderFileEmit"),BuilderProgramKind:t(()=>eve,"BuilderProgramKind"),BuilderState:t(()=>fh,"BuilderState"),CallHierarchy:t(()=>AD,"CallHierarchy"),CharacterCodes:t(()=>wpe,"CharacterCodes"),CheckFlags:t(()=>npe,"CheckFlags"),CheckMode:t(()=>BQ,"CheckMode"),ClassificationType:t(()=>wte,"ClassificationType"),ClassificationTypeNames:t(()=>rbe,"ClassificationTypeNames"),CommentDirectiveType:t(()=>$_e,"CommentDirectiveType"),Comparison:t(()=>de,"Comparison"),CompletionInfoFlags:t(()=>Yve,"CompletionInfoFlags"),CompletionTriggerKind:t(()=>Cte,"CompletionTriggerKind"),Completions:t(()=>LD,"Completions"),ContainerFlags:t(()=>kye,"ContainerFlags"),ContextFlags:t(()=>Y_e,"ContextFlags"),Debug:t(()=>L,"Debug"),DiagnosticCategory:t(()=>Wj,"DiagnosticCategory"),Diagnostics:t(()=>v,"Diagnostics"),DocumentHighlights:t(()=>UJ,"DocumentHighlights"),ElementFlags:t(()=>ape,"ElementFlags"),EmitFlags:t(()=>EY,"EmitFlags"),EmitHint:t(()=>Npe,"EmitHint"),EmitOnly:t(()=>W_e,"EmitOnly"),EndOfLineState:t(()=>Zve,"EndOfLineState"),ExitStatus:t(()=>q_e,"ExitStatus"),ExportKind:t(()=>Gbe,"ExportKind"),Extension:t(()=>Dpe,"Extension"),ExternalEmitHelpers:t(()=>Ape,"ExternalEmitHelpers"),FileIncludeKind:t(()=>dY,"FileIncludeKind"),FilePreprocessingDiagnosticsKind:t(()=>J_e,"FilePreprocessingDiagnosticsKind"),FileSystemEntryKind:t(()=>Upe,"FileSystemEntryKind"),FileWatcherEventKind:t(()=>Mpe,"FileWatcherEventKind"),FindAllReferences:t(()=>ec,"FindAllReferences"),FlattenLevel:t(()=>Gye,"FlattenLevel"),FlowFlags:t(()=>Jj,"FlowFlags"),ForegroundColorEscapeSequences:t(()=>R1e,"ForegroundColorEscapeSequences"),FunctionFlags:t(()=>Hme,"FunctionFlags"),GeneratedIdentifierFlags:t(()=>pY,"GeneratedIdentifierFlags"),GetLiteralTextFlags:t(()=>ime,"GetLiteralTextFlags"),GoToDefinition:t(()=>Q6,"GoToDefinition"),HighlightSpanKind:t(()=>Hve,"HighlightSpanKind"),IdentifierNameMap:t(()=>D6,"IdentifierNameMap"),ImportKind:t(()=>Hbe,"ImportKind"),ImportsNotUsedAsValues:t(()=>Tpe,"ImportsNotUsedAsValues"),IndentStyle:t(()=>Gve,"IndentStyle"),IndexFlags:t(()=>cpe,"IndexFlags"),IndexKind:t(()=>fpe,"IndexKind"),InferenceFlags:t(()=>dpe,"InferenceFlags"),InferencePriority:t(()=>ppe,"InferencePriority"),InlayHintKind:t(()=>Vve,"InlayHintKind"),InlayHints:t(()=>oie,"InlayHints"),InternalEmitFlags:t(()=>Ppe,"InternalEmitFlags"),InternalNodeBuilderFlags:t(()=>X_e,"InternalNodeBuilderFlags"),InternalSymbolName:t(()=>ipe,"InternalSymbolName"),IntersectionFlags:t(()=>G_e,"IntersectionFlags"),InvalidatedProjectKind:t(()=>xve,"InvalidatedProjectKind"),JSDocParsingMode:t(()=>Rpe,"JSDocParsingMode"),JsDoc:t(()=>v2,"JsDoc"),JsTyping:t(()=>Xb,"JsTyping"),JsxEmit:t(()=>Spe,"JsxEmit"),JsxFlags:t(()=>j_e,"JsxFlags"),JsxReferenceKind:t(()=>lpe,"JsxReferenceKind"),LanguageFeatureMinimumTarget:t(()=>du,"LanguageFeatureMinimumTarget"),LanguageServiceMode:t(()=>Wve,"LanguageServiceMode"),LanguageVariant:t(()=>Cpe,"LanguageVariant"),LexicalEnvironmentFlags:t(()=>Ope,"LexicalEnvironmentFlags"),ListFormat:t(()=>Fpe,"ListFormat"),LogLevel:t(()=>w_e,"LogLevel"),MapCode:t(()=>cie,"MapCode"),MemberOverrideStatus:t(()=>V_e,"MemberOverrideStatus"),ModifierFlags:t(()=>fY,"ModifierFlags"),ModuleDetectionKind:t(()=>gpe,"ModuleDetectionKind"),ModuleInstanceState:t(()=>Eye,"ModuleInstanceState"),ModuleKind:t(()=>hA,"ModuleKind"),ModuleResolutionKind:t(()=>mA,"ModuleResolutionKind"),ModuleSpecifierEnding:t(()=>qhe,"ModuleSpecifierEnding"),NavigateTo:t(()=>ySe,"NavigateTo"),NavigationBar:t(()=>bSe,"NavigationBar"),NewLineKind:t(()=>xpe,"NewLineKind"),NodeBuilderFlags:t(()=>K_e,"NodeBuilderFlags"),NodeCheckFlags:t(()=>gY,"NodeCheckFlags"),NodeFactoryFlags:t(()=>bge,"NodeFactoryFlags"),NodeFlags:t(()=>uY,"NodeFlags"),NodeResolutionFeatures:t(()=>dye,"NodeResolutionFeatures"),ObjectFlags:t(()=>vY,"ObjectFlags"),OperationCanceledException:t(()=>QI,"OperationCanceledException"),OperatorPrecedence:t(()=>Kme,"OperatorPrecedence"),OrganizeImports:t(()=>b2,"OrganizeImports"),OrganizeImportsMode:t(()=>Ete,"OrganizeImportsMode"),OuterExpressionKinds:t(()=>Ipe,"OuterExpressionKinds"),OutliningElementsCollector:t(()=>uie,"OutliningElementsCollector"),OutliningSpanKind:t(()=>Kve,"OutliningSpanKind"),OutputFileType:t(()=>Xve,"OutputFileType"),PackageJsonAutoImportPreference:t(()=>Jve,"PackageJsonAutoImportPreference"),PackageJsonDependencyGroup:t(()=>$ve,"PackageJsonDependencyGroup"),PatternMatchKind:t(()=>Mre,"PatternMatchKind"),PollingInterval:t(()=>CY,"PollingInterval"),PollingWatchKind:t(()=>bpe,"PollingWatchKind"),PragmaKindFlags:t(()=>Lpe,"PragmaKindFlags"),PredicateSemantics:t(()=>B_e,"PredicateSemantics"),PreparePasteEdits:t(()=>Cie,"PreparePasteEdits"),PrivateIdentifierKind:t(()=>Age,"PrivateIdentifierKind"),ProcessLevel:t(()=>Zye,"ProcessLevel"),ProgramUpdateLevel:t(()=>N1e,"ProgramUpdateLevel"),QuotePreference:t(()=>Ebe,"QuotePreference"),RegularExpressionFlags:t(()=>U_e,"RegularExpressionFlags"),RelationComparisonResult:t(()=>_Y,"RelationComparisonResult"),Rename:t(()=>xW,"Rename"),ScriptElementKind:t(()=>ebe,"ScriptElementKind"),ScriptElementKindModifier:t(()=>tbe,"ScriptElementKindModifier"),ScriptKind:t(()=>SY,"ScriptKind"),ScriptSnapshot:t(()=>Z$,"ScriptSnapshot"),ScriptTarget:t(()=>Epe,"ScriptTarget"),SemanticClassificationFormat:t(()=>qve,"SemanticClassificationFormat"),SemanticMeaning:t(()=>nbe,"SemanticMeaning"),SemicolonPreference:t(()=>kte,"SemicolonPreference"),SignatureCheckMode:t(()=>UQ,"SignatureCheckMode"),SignatureFlags:t(()=>bY,"SignatureFlags"),SignatureHelp:t(()=>mR,"SignatureHelp"),SignatureInfo:t(()=>q1e,"SignatureInfo"),SignatureKind:t(()=>upe,"SignatureKind"),SmartSelectionRange:t(()=>pie,"SmartSelectionRange"),SnippetKind:t(()=>xY,"SnippetKind"),StatisticType:t(()=>Ive,"StatisticType"),StructureIsReused:t(()=>mY,"StructureIsReused"),SymbolAccessibility:t(()=>epe,"SymbolAccessibility"),SymbolDisplay:t(()=>pv,"SymbolDisplay"),SymbolDisplayPartKind:t(()=>eJ,"SymbolDisplayPartKind"),SymbolFlags:t(()=>hY,"SymbolFlags"),SymbolFormatFlags:t(()=>Q_e,"SymbolFormatFlags"),SyntaxKind:t(()=>lY,"SyntaxKind"),Ternary:t(()=>mpe,"Ternary"),ThrottledCancellationToken:t(()=>D2e,"ThrottledCancellationToken"),TokenClass:t(()=>Qve,"TokenClass"),TokenFlags:t(()=>z_e,"TokenFlags"),TransformFlags:t(()=>TY,"TransformFlags"),TypeFacts:t(()=>jQ,"TypeFacts"),TypeFlags:t(()=>yY,"TypeFlags"),TypeFormatFlags:t(()=>Z_e,"TypeFormatFlags"),TypeMapKind:t(()=>_pe,"TypeMapKind"),TypePredicateKind:t(()=>tpe,"TypePredicateKind"),TypeReferenceSerializationKind:t(()=>rpe,"TypeReferenceSerializationKind"),UnionReduction:t(()=>H_e,"UnionReduction"),UpToDateStatusType:t(()=>hve,"UpToDateStatusType"),VarianceFlags:t(()=>spe,"VarianceFlags"),Version:t(()=>Zm,"Version"),VersionRange:t(()=>$j,"VersionRange"),WatchDirectoryFlags:t(()=>kpe,"WatchDirectoryFlags"),WatchDirectoryKind:t(()=>vpe,"WatchDirectoryKind"),WatchFileKind:t(()=>ype,"WatchFileKind"),WatchLogLevel:t(()=>O1e,"WatchLogLevel"),WatchType:t(()=>xu,"WatchType"),accessPrivateIdentifier:t(()=>Hye,"accessPrivateIdentifier"),addEmitFlags:t(()=>Kh,"addEmitFlags"),addEmitHelper:t(()=>Xw,"addEmitHelper"),addEmitHelpers:t(()=>H0,"addEmitHelpers"),addInternalEmitFlags:t(()=>mC,"addInternalEmitFlags"),addNodeFactoryPatcher:t(()=>TFe,"addNodeFactoryPatcher"),addObjectAllocatorPatcher:t(()=>oFe,"addObjectAllocatorPatcher"),addRange:t(()=>Zn,"addRange"),addRelatedInfo:t(()=>da,"addRelatedInfo"),addSyntheticLeadingComment:t(()=>ax,"addSyntheticLeadingComment"),addSyntheticTrailingComment:t(()=>_3,"addSyntheticTrailingComment"),addToSeen:t(()=>lm,"addToSeen"),advancedAsyncSuperHelper:t(()=>lz,"advancedAsyncSuperHelper"),affectsDeclarationPathOptionDeclarations:t(()=>M0e,"affectsDeclarationPathOptionDeclarations"),affectsEmitOptionDeclarations:t(()=>R0e,"affectsEmitOptionDeclarations"),allKeysStartWithDot:t(()=>n$,"allKeysStartWithDot"),altDirectorySeparator:t(()=>Gj,"altDirectorySeparator"),and:t(()=>Bj,"and"),append:t(()=>Kr,"append"),appendIfUnique:t(()=>Ly,"appendIfUnique"),arrayFrom:t(()=>Ps,"arrayFrom"),arrayIsEqualTo:t(()=>ed,"arrayIsEqualTo"),arrayIsHomogeneous:t(()=>Qhe,"arrayIsHomogeneous"),arrayOf:t(()=>p_e,"arrayOf"),arrayReverseIterator:t(()=>JG,"arrayReverseIterator"),arrayToMap:t(()=>fA,"arrayToMap"),arrayToMultiMap:t(()=>E7,"arrayToMultiMap"),arrayToNumericMap:t(()=>m_e,"arrayToNumericMap"),assertType:t(()=>MOe,"assertType"),assign:t(()=>$E,"assign"),asyncSuperHelper:t(()=>cz,"asyncSuperHelper"),attachFileToDiagnostics:t(()=>$w,"attachFileToDiagnostics"),base64decode:t(()=>ghe,"base64decode"),base64encode:t(()=>hhe,"base64encode"),binarySearch:t(()=>lb,"binarySearch"),binarySearchKey:t(()=>aw,"binarySearchKey"),bindSourceFile:t(()=>wye,"bindSourceFile"),breakIntoCharacterSpans:t(()=>uSe,"breakIntoCharacterSpans"),breakIntoWordSpans:t(()=>fSe,"breakIntoWordSpans"),buildLinkParts:t(()=>Ibe,"buildLinkParts"),buildOpts:t(()=>z5,"buildOpts"),buildOverload:t(()=>cGe,"buildOverload"),bundlerModuleNameResolver:t(()=>mye,"bundlerModuleNameResolver"),canBeConvertedToAsync:t(()=>Jre,"canBeConvertedToAsync"),canHaveDecorators:t(()=>hx,"canHaveDecorators"),canHaveExportModifier:t(()=>f5,"canHaveExportModifier"),canHaveFlowNode:t(()=>UA,"canHaveFlowNode"),canHaveIllegalDecorators:t(()=>HZ,"canHaveIllegalDecorators"),canHaveIllegalModifiers:t(()=>h0e,"canHaveIllegalModifiers"),canHaveIllegalType:t(()=>GFe,"canHaveIllegalType"),canHaveIllegalTypeParameters:t(()=>m0e,"canHaveIllegalTypeParameters"),canHaveJSDoc:t(()=>OF,"canHaveJSDoc"),canHaveLocals:t(()=>Wg,"canHaveLocals"),canHaveModifiers:t(()=>pm,"canHaveModifiers"),canHaveModuleSpecifier:t(()=>jme,"canHaveModuleSpecifier"),canHaveSymbol:t(()=>th,"canHaveSymbol"),canIncludeBindAndCheckDiagnostics:t(()=>r3,"canIncludeBindAndCheckDiagnostics"),canJsonReportNoInputFiles:t(()=>H5,"canJsonReportNoInputFiles"),canProduceDiagnostics:t(()=>nL,"canProduceDiagnostics"),canUsePropertyAccess:t(()=>eZ,"canUsePropertyAccess"),canWatchAffectingLocation:t(()=>cve,"canWatchAffectingLocation"),canWatchAtTypes:t(()=>ove,"canWatchAtTypes"),canWatchDirectoryOrFile:t(()=>zee,"canWatchDirectoryOrFile"),canWatchDirectoryOrFilePath:t(()=>yL,"canWatchDirectoryOrFilePath"),cartesianProduct:t(()=>C_e,"cartesianProduct"),cast:t(()=>ha,"cast"),chainBundle:t(()=>uh,"chainBundle"),chainDiagnosticMessages:t(()=>qs,"chainDiagnosticMessages"),changeAnyExtension:t(()=>N7,"changeAnyExtension"),changeCompilerHostLikeToUseCache:t(()=>G3,"changeCompilerHostLikeToUseCache"),changeExtension:t(()=>Gy,"changeExtension"),changeFullExtension:t(()=>Xj,"changeFullExtension"),changesAffectModuleResolution:t(()=>EB,"changesAffectModuleResolution"),changesAffectingProgramStructure:t(()=>Kde,"changesAffectingProgramStructure"),characterCodeToRegularExpressionFlag:t(()=>RY,"characterCodeToRegularExpressionFlag"),childIsDecorated:t(()=>w4,"childIsDecorated"),classElementOrClassElementParameterIsDecorated:t(()=>LK,"classElementOrClassElementParameterIsDecorated"),classHasClassThisAssignment:t(()=>tee,"classHasClassThisAssignment"),classHasDeclaredOrExplicitlyAssignedName:t(()=>ree,"classHasDeclaredOrExplicitlyAssignedName"),classHasExplicitlyAssignedName:t(()=>h$,"classHasExplicitlyAssignedName"),classOrConstructorParameterIsDecorated:t(()=>Y1,"classOrConstructorParameterIsDecorated"),classicNameResolver:t(()=>Tye,"classicNameResolver"),classifier:t(()=>I2e,"classifier"),cleanExtendedConfigCache:t(()=>T$,"cleanExtendedConfigCache"),clear:t(()=>bu,"clear"),clearMap:t(()=>$_,"clearMap"),clearSharedExtendedConfigFileWatcher:t(()=>hee,"clearSharedExtendedConfigFileWatcher"),climbPastPropertyAccess:t(()=>nJ,"climbPastPropertyAccess"),clone:t(()=>h_e,"clone"),cloneCompilerOptions:t(()=>Vte,"cloneCompilerOptions"),closeFileWatcher:t(()=>Om,"closeFileWatcher"),closeFileWatcherOf:t(()=>Ud,"closeFileWatcherOf"),codefix:t(()=>Af,"codefix"),collapseTextChangeRangesAcrossMultipleVersions:t(()=>lde,"collapseTextChangeRangesAcrossMultipleVersions"),collectExternalModuleInfo:t(()=>XQ,"collectExternalModuleInfo"),combine:t(()=>sw,"combine"),combinePaths:t(()=>ei,"combinePaths"),commandLineOptionOfCustomType:t(()=>U0e,"commandLineOptionOfCustomType"),commentPragmas:t(()=>qj,"commentPragmas"),commonOptionsWithBuild:t(()=>Rz,"commonOptionsWithBuild"),compact:t(()=>T7,"compact"),compareBooleans:t(()=>IS,"compareBooleans"),compareDataObjects:t(()=>DX,"compareDataObjects"),compareDiagnostics:t(()=>Y4,"compareDiagnostics"),compareEmitHelpers:t(()=>Ige,"compareEmitHelpers"),compareNumberOfDirectorySeparators:t(()=>c5,"compareNumberOfDirectorySeparators"),comparePaths:t(()=>My,"comparePaths"),comparePathsCaseInsensitive:t(()=>o7e,"comparePathsCaseInsensitive"),comparePathsCaseSensitive:t(()=>a7e,"comparePathsCaseSensitive"),comparePatternKeys:t(()=>NQ,"comparePatternKeys"),compareProperties:t(()=>S_e,"compareProperties"),compareStringsCaseInsensitive:t(()=>k7,"compareStringsCaseInsensitive"),compareStringsCaseInsensitiveEslintCompatible:t(()=>y_e,"compareStringsCaseInsensitiveEslintCompatible"),compareStringsCaseSensitive:t(()=>lf,"compareStringsCaseSensitive"),compareStringsCaseSensitiveUI:t(()=>w7,"compareStringsCaseSensitiveUI"),compareTextSpans:t(()=>Mj,"compareTextSpans"),compareValues:t(()=>Vo,"compareValues"),compilerOptionsAffectDeclarationPath:t(()=>Bhe,"compilerOptionsAffectDeclarationPath"),compilerOptionsAffectEmit:t(()=>jhe,"compilerOptionsAffectEmit"),compilerOptionsAffectSemanticDiagnostics:t(()=>Mhe,"compilerOptionsAffectSemanticDiagnostics"),compilerOptionsDidYouMeanDiagnostics:t(()=>Uz,"compilerOptionsDidYouMeanDiagnostics"),compilerOptionsIndicateEsModules:t(()=>Zte,"compilerOptionsIndicateEsModules"),computeCommonSourceDirectoryOfFilenames:t(()=>F1e,"computeCommonSourceDirectoryOfFilenames"),computeLineAndCharacterOfPosition:t(()=>vA,"computeLineAndCharacterOfPosition"),computeLineOfPosition:t(()=>i4,"computeLineOfPosition"),computeLineStarts:t(()=>mw,"computeLineStarts"),computePositionOfLineAndCharacter:t(()=>tB,"computePositionOfLineAndCharacter"),computeSignatureWithDiagnostics:t(()=>Lee,"computeSignatureWithDiagnostics"),computeSuggestionDiagnostics:t(()=>Ure,"computeSuggestionDiagnostics"),computedOptions:t(()=>K4,"computedOptions"),concatenate:t(()=>us,"concatenate"),concatenateDiagnosticMessageChains:t(()=>Ahe,"concatenateDiagnosticMessageChains"),consumesNodeCoreModules:t(()=>NJ,"consumesNodeCoreModules"),contains:t(()=>Ci,"contains"),containsIgnoredPath:t(()=>s3,"containsIgnoredPath"),containsObjectRestOrSpread:t(()=>M5,"containsObjectRestOrSpread"),containsParseError:t(()=>Cw,"containsParseError"),containsPath:t(()=>wd,"containsPath"),convertCompilerOptionsForTelemetry:t(()=>rye,"convertCompilerOptionsForTelemetry"),convertCompilerOptionsFromJson:t(()=>rLe,"convertCompilerOptionsFromJson"),convertJsonOption:t(()=>PC,"convertJsonOption"),convertToBase64:t(()=>mhe,"convertToBase64"),convertToJson:t(()=>W5,"convertToJson"),convertToObject:t(()=>Y0e,"convertToObject"),convertToOptionsWithAbsolutePaths:t(()=>Wz,"convertToOptionsWithAbsolutePaths"),convertToRelativePath:t(()=>r4,"convertToRelativePath"),convertToTSConfig:t(()=>dQ,"convertToTSConfig"),convertTypeAcquisitionFromJson:t(()=>nLe,"convertTypeAcquisitionFromJson"),copyComments:t(()=>jC,"copyComments"),copyEntries:t(()=>CB,"copyEntries"),copyLeadingComments:t(()=>q6,"copyLeadingComments"),copyProperties:t(()=>YG,"copyProperties"),copyTrailingAsLeadingComments:t(()=>UL,"copyTrailingAsLeadingComments"),copyTrailingComments:t(()=>u8,"copyTrailingComments"),couldStartTrivia:t(()=>Ype,"couldStartTrivia"),countWhere:t(()=>Bf,"countWhere"),createAbstractBuilder:t(()=>l9e,"createAbstractBuilder"),createAccessorPropertyBackingField:t(()=>KZ,"createAccessorPropertyBackingField"),createAccessorPropertyGetRedirector:t(()=>E0e,"createAccessorPropertyGetRedirector"),createAccessorPropertySetRedirector:t(()=>C0e,"createAccessorPropertySetRedirector"),createBaseNodeFactory:t(()=>mge,"createBaseNodeFactory"),createBinaryExpressionTrampoline:t(()=>Nz,"createBinaryExpressionTrampoline"),createBuilderProgram:t(()=>Ree,"createBuilderProgram"),createBuilderProgramUsingIncrementalBuildInfo:t(()=>ive,"createBuilderProgramUsingIncrementalBuildInfo"),createBuilderStatusReporter:t(()=>W$,"createBuilderStatusReporter"),createCacheableExportInfoMap:t(()=>Pre,"createCacheableExportInfoMap"),createCachedDirectoryStructureHost:t(()=>b$,"createCachedDirectoryStructureHost"),createClassifier:t(()=>UMe,"createClassifier"),createCommentDirectivesMap:t(()=>rme,"createCommentDirectivesMap"),createCompilerDiagnostic:t(()=>kc,"createCompilerDiagnostic"),createCompilerDiagnosticForInvalidCustomType:t(()=>z0e,"createCompilerDiagnosticForInvalidCustomType"),createCompilerDiagnosticFromMessageChain:t(()=>PU,"createCompilerDiagnosticFromMessageChain"),createCompilerHost:t(()=>L1e,"createCompilerHost"),createCompilerHostFromProgramHost:t(()=>rte,"createCompilerHostFromProgramHost"),createCompilerHostWorker:t(()=>x$,"createCompilerHostWorker"),createDetachedDiagnostic:t(()=>zw,"createDetachedDiagnostic"),createDiagnosticCollection:t(()=>B4,"createDiagnosticCollection"),createDiagnosticForFileFromMessageChain:t(()=>AK,"createDiagnosticForFileFromMessageChain"),createDiagnosticForNode:t(()=>Sn,"createDiagnosticForNode"),createDiagnosticForNodeArray:t(()=>IA,"createDiagnosticForNodeArray"),createDiagnosticForNodeArrayFromMessageChain:t(()=>lF,"createDiagnosticForNodeArrayFromMessageChain"),createDiagnosticForNodeFromMessageChain:t(()=>M0,"createDiagnosticForNodeFromMessageChain"),createDiagnosticForNodeInSourceFile:t(()=>Pd,"createDiagnosticForNodeInSourceFile"),createDiagnosticForRange:t(()=>hme,"createDiagnosticForRange"),createDiagnosticMessageChainFromDiagnostic:t(()=>mme,"createDiagnosticMessageChainFromDiagnostic"),createDiagnosticReporter:t(()=>TD,"createDiagnosticReporter"),createDocumentPositionMapper:t(()=>$ye,"createDocumentPositionMapper"),createDocumentRegistry:t(()=>Qbe,"createDocumentRegistry"),createDocumentRegistryInternal:t(()=>Fre,"createDocumentRegistryInternal"),createEmitAndSemanticDiagnosticsBuilderProgram:t(()=>Uee,"createEmitAndSemanticDiagnosticsBuilderProgram"),createEmitHelperFactory:t(()=>Nge,"createEmitHelperFactory"),createEmptyExports:t(()=>P5,"createEmptyExports"),createEvaluator:t(()=>lge,"createEvaluator"),createExpressionForJsxElement:t(()=>l0e,"createExpressionForJsxElement"),createExpressionForJsxFragment:t(()=>u0e,"createExpressionForJsxFragment"),createExpressionForObjectLiteralElementLike:t(()=>f0e,"createExpressionForObjectLiteralElementLike"),createExpressionForPropertyName:t(()=>zZ,"createExpressionForPropertyName"),createExpressionFromEntityName:t(()=>A5,"createExpressionFromEntityName"),createExternalHelpersImportDeclarationIfNeeded:t(()=>WZ,"createExternalHelpersImportDeclarationIfNeeded"),createFileDiagnostic:t(()=>su,"createFileDiagnostic"),createFileDiagnosticFromMessageChain:t(()=>LB,"createFileDiagnosticFromMessageChain"),createFlowNode:t(()=>Qg,"createFlowNode"),createForOfBindingStatement:t(()=>UZ,"createForOfBindingStatement"),createFutureSourceFile:t(()=>MJ,"createFutureSourceFile"),createGetCanonicalFileName:t(()=>Hu,"createGetCanonicalFileName"),createGetIsolatedDeclarationErrors:t(()=>S1e,"createGetIsolatedDeclarationErrors"),createGetSourceFile:t(()=>See,"createGetSourceFile"),createGetSymbolAccessibilityDiagnosticForNode:t(()=>c2,"createGetSymbolAccessibilityDiagnosticForNode"),createGetSymbolAccessibilityDiagnosticForNodeName:t(()=>b1e,"createGetSymbolAccessibilityDiagnosticForNodeName"),createGetSymbolWalker:t(()=>Dye,"createGetSymbolWalker"),createIncrementalCompilerHost:t(()=>J$,"createIncrementalCompilerHost"),createIncrementalProgram:t(()=>mve,"createIncrementalProgram"),createJsxFactoryExpression:t(()=>BZ,"createJsxFactoryExpression"),createLanguageService:t(()=>P2e,"createLanguageService"),createLanguageServiceSourceFile:t(()=>rW,"createLanguageServiceSourceFile"),createMemberAccessForPropertyName:t(()=>wC,"createMemberAccessForPropertyName"),createModeAwareCache:t(()=>x6,"createModeAwareCache"),createModeAwareCacheKey:t(()=>F3,"createModeAwareCacheKey"),createModeMismatchDetails:t(()=>dK,"createModeMismatchDetails"),createModuleNotFoundChain:t(()=>wB,"createModuleNotFoundChain"),createModuleResolutionCache:t(()=>E6,"createModuleResolutionCache"),createModuleResolutionLoader:t(()=>wee,"createModuleResolutionLoader"),createModuleResolutionLoaderUsingGlobalCache:t(()=>_ve,"createModuleResolutionLoaderUsingGlobalCache"),createModuleSpecifierResolutionHost:t(()=>_2,"createModuleSpecifierResolutionHost"),createMultiMap:t(()=>rm,"createMultiMap"),createNameResolver:t(()=>sZ,"createNameResolver"),createNodeConverters:t(()=>yge,"createNodeConverters"),createNodeFactory:t(()=>m5,"createNodeFactory"),createOptionNameMap:t(()=>jz,"createOptionNameMap"),createOverload:t(()=>wie,"createOverload"),createPackageJsonImportFilter:t(()=>V6,"createPackageJsonImportFilter"),createPackageJsonInfo:t(()=>Sre,"createPackageJsonInfo"),createParenthesizerRules:t(()=>hge,"createParenthesizerRules"),createPatternMatcher:t(()=>iSe,"createPatternMatcher"),createPrinter:t(()=>Yb,"createPrinter"),createPrinterWithDefaults:t(()=>P1e,"createPrinterWithDefaults"),createPrinterWithRemoveComments:t(()=>bx,"createPrinterWithRemoveComments"),createPrinterWithRemoveCommentsNeverAsciiEscape:t(()=>A1e,"createPrinterWithRemoveCommentsNeverAsciiEscape"),createPrinterWithRemoveCommentsOmitTrailingSemicolon:t(()=>mee,"createPrinterWithRemoveCommentsOmitTrailingSemicolon"),createProgram:t(()=>mL,"createProgram"),createProgramDiagnostics:t(()=>J1e,"createProgramDiagnostics"),createProgramHost:t(()=>nte,"createProgramHost"),createPropertyNameNodeForIdentifierOrLiteral:t(()=>YU,"createPropertyNameNodeForIdentifierOrLiteral"),createQueue:t(()=>C7,"createQueue"),createRange:t(()=>Id,"createRange"),createRedirectedBuilderProgram:t(()=>Bee,"createRedirectedBuilderProgram"),createResolutionCache:t(()=>Jee,"createResolutionCache"),createRuntimeTypeSerializer:t(()=>n1e,"createRuntimeTypeSerializer"),createScanner:t(()=>N0,"createScanner"),createSemanticDiagnosticsBuilderProgram:t(()=>c9e,"createSemanticDiagnosticsBuilderProgram"),createSet:t(()=>KG,"createSet"),createSolutionBuilder:t(()=>bve,"createSolutionBuilder"),createSolutionBuilderHost:t(()=>yve,"createSolutionBuilderHost"),createSolutionBuilderWithWatch:t(()=>Sve,"createSolutionBuilderWithWatch"),createSolutionBuilderWithWatchHost:t(()=>vve,"createSolutionBuilderWithWatchHost"),createSortedArray:t(()=>$G,"createSortedArray"),createSourceFile:t(()=>pD,"createSourceFile"),createSourceMapGenerator:t(()=>Mye,"createSourceMapGenerator"),createSourceMapSource:t(()=>kFe,"createSourceMapSource"),createSuperAccessVariableStatement:t(()=>y$,"createSuperAccessVariableStatement"),createSymbolTable:t(()=>ga,"createSymbolTable"),createSymlinkCache:t(()=>jX,"createSymlinkCache"),createSyntacticTypeNodeBuilder:t(()=>Bve,"createSyntacticTypeNodeBuilder"),createSystemWatchFunctions:t(()=>zpe,"createSystemWatchFunctions"),createTextChange:t(()=>IL,"createTextChange"),createTextChangeFromStartLength:t(()=>hJ,"createTextChangeFromStartLength"),createTextChangeRange:t(()=>z7,"createTextChangeRange"),createTextRangeFromNode:t(()=>Yte,"createTextRangeFromNode"),createTextRangeFromSpan:t(()=>mJ,"createTextRangeFromSpan"),createTextSpan:t(()=>Gu,"createTextSpan"),createTextSpanFromBounds:t(()=>ul,"createTextSpanFromBounds"),createTextSpanFromNode:t(()=>f_,"createTextSpanFromNode"),createTextSpanFromRange:t(()=>uv,"createTextSpanFromRange"),createTextSpanFromStringLiteralLikeContent:t(()=>Gte,"createTextSpanFromStringLiteralLikeContent"),createTextWriter:t(()=>qF,"createTextWriter"),createTokenRange:t(()=>xX,"createTokenRange"),createTypeChecker:t(()=>Lye,"createTypeChecker"),createTypeReferenceDirectiveResolutionCache:t(()=>e$,"createTypeReferenceDirectiveResolutionCache"),createTypeReferenceResolutionLoader:t(()=>k$,"createTypeReferenceResolutionLoader"),createWatchCompilerHost:t(()=>v9e,"createWatchCompilerHost"),createWatchCompilerHostOfConfigFile:t(()=>ite,"createWatchCompilerHostOfConfigFile"),createWatchCompilerHostOfFilesAndCompilerOptions:t(()=>ste,"createWatchCompilerHostOfFilesAndCompilerOptions"),createWatchFactory:t(()=>tte,"createWatchFactory"),createWatchHost:t(()=>ete,"createWatchHost"),createWatchProgram:t(()=>ate,"createWatchProgram"),createWatchStatusReporter:t(()=>Wee,"createWatchStatusReporter"),createWriteFileMeasuringIO:t(()=>Tee,"createWriteFileMeasuringIO"),declarationNameToString:t(()=>zo,"declarationNameToString"),decodeMappings:t(()=>GQ,"decodeMappings"),decodedTextSpanIntersectsWith:t(()=>U7,"decodedTextSpanIntersectsWith"),deduplicate:t(()=>NT,"deduplicate"),defaultInitCompilerOptions:t(()=>oQ,"defaultInitCompilerOptions"),defaultMaximumTruncationLength:t(()=>b4,"defaultMaximumTruncationLength"),diagnosticCategoryName:t(()=>WE,"diagnosticCategoryName"),diagnosticToString:t(()=>kx,"diagnosticToString"),diagnosticsEqualityComparer:t(()=>AU,"diagnosticsEqualityComparer"),directoryProbablyExists:t(()=>ih,"directoryProbablyExists"),directorySeparator:t(()=>Xo,"directorySeparator"),displayPart:t(()=>q_,"displayPart"),displayPartsToString:t(()=>QL,"displayPartsToString"),disposeEmitNodes:t(()=>dZ,"disposeEmitNodes"),documentSpansEqual:t(()=>sre,"documentSpansEqual"),dumpTracingLegend:t(()=>M_e,"dumpTracingLegend"),elementAt:t(()=>cb,"elementAt"),elideNodes:t(()=>x0e,"elideNodes"),emitDetachedComments:t(()=>she,"emitDetachedComments"),emitFiles:t(()=>pee,"emitFiles"),emitFilesAndReportErrors:t(()=>B$,"emitFilesAndReportErrors"),emitFilesAndReportErrorsAndGetExitStatus:t(()=>Qee,"emitFilesAndReportErrorsAndGetExitStatus"),emitModuleKindIsNonNodeESM:t(()=>i5,"emitModuleKindIsNonNodeESM"),emitNewLineBeforeLeadingCommentOfPosition:t(()=>ihe,"emitNewLineBeforeLeadingCommentOfPosition"),emitResolverSkipsTypeChecking:t(()=>_ee,"emitResolverSkipsTypeChecking"),emitSkippedWithNoDiagnostics:t(()=>Aee,"emitSkippedWithNoDiagnostics"),emptyArray:t(()=>se,"emptyArray"),emptyFileSystemEntries:t(()=>VX,"emptyFileSystemEntries"),emptyMap:t(()=>Xe,"emptyMap"),emptyOptions:t(()=>dm,"emptyOptions"),endsWith:t(()=>ic,"endsWith"),ensurePathIsNonModuleName:t(()=>qE,"ensurePathIsNonModuleName"),ensureScriptKind:t(()=>UU,"ensureScriptKind"),ensureTrailingDirectorySeparator:t(()=>nu,"ensureTrailingDirectorySeparator"),entityNameToString:t(()=>cp,"entityNameToString"),enumerateInsertsAndDeletes:t(()=>zj,"enumerateInsertsAndDeletes"),equalOwnProperties:t(()=>d_e,"equalOwnProperties"),equateStringsCaseInsensitive:t(()=>pb,"equateStringsCaseInsensitive"),equateStringsCaseSensitive:t(()=>FT,"equateStringsCaseSensitive"),equateValues:t(()=>_b,"equateValues"),escapeJsxAttributeString:t(()=>sX,"escapeJsxAttributeString"),escapeLeadingUnderscores:t(()=>Lc,"escapeLeadingUnderscores"),escapeNonAsciiString:t(()=>cU,"escapeNonAsciiString"),escapeSnippetText:t(()=>sx,"escapeSnippetText"),escapeString:t(()=>Yg,"escapeString"),escapeTemplateSubstitution:t(()=>nX,"escapeTemplateSubstitution"),evaluatorResult:t(()=>au,"evaluatorResult"),every:t(()=>kr,"every"),exclusivelyPrefixedNodeCoreModules:t(()=>rz,"exclusivelyPrefixedNodeCoreModules"),executeCommandLine:t(()=>Z9e,"executeCommandLine"),expandPreOrPostfixIncrementOrDecrementExpression:t(()=>kz,"expandPreOrPostfixIncrementOrDecrementExpression"),explainFiles:t(()=>Gee,"explainFiles"),explainIfFileIsRedirectAndImpliedFormat:t(()=>Yee,"explainIfFileIsRedirectAndImpliedFormat"),exportAssignmentIsAlias:t(()=>MF,"exportAssignmentIsAlias"),expressionResultIsUnused:t(()=>tge,"expressionResultIsUnused"),extend:t(()=>Rj,"extend"),extensionFromPath:t(()=>e3,"extensionFromPath"),extensionIsTS:t(()=>qU,"extensionIsTS"),extensionsNotSupportingExtensionlessResolution:t(()=>WU,"extensionsNotSupportingExtensionlessResolution"),externalHelpersModuleNameText:t(()=>kb,"externalHelpersModuleNameText"),factory:t(()=>B,"factory"),fileExtensionIs:t(()=>bc,"fileExtensionIs"),fileExtensionIsOneOf:t(()=>ll,"fileExtensionIsOneOf"),fileIncludeReasonToDiagnostics:t(()=>Zee,"fileIncludeReasonToDiagnostics"),fileShouldUseJavaScriptRequire:t(()=>Dre,"fileShouldUseJavaScriptRequire"),filter:t(()=>In,"filter"),filterMutate:t(()=>PT,"filterMutate"),filterSemanticDiagnostics:t(()=>A$,"filterSemanticDiagnostics"),find:t(()=>yr,"find"),findAncestor:t(()=>Ar,"findAncestor"),findBestPatternMatch:t(()=>rY,"findBestPatternMatch"),findChildOfKind:t(()=>Po,"findChildOfKind"),findComputedPropertyNameCacheAssignment:t(()=>Iz,"findComputedPropertyNameCacheAssignment"),findConfigFile:t(()=>vee,"findConfigFile"),findConstructorDeclaration:t(()=>d5,"findConstructorDeclaration"),findContainingList:t(()=>cJ,"findContainingList"),findDiagnosticForNode:t(()=>Wbe,"findDiagnosticForNode"),findFirstNonJsxWhitespaceToken:t(()=>fbe,"findFirstNonJsxWhitespaceToken"),findIndex:t(()=>bi,"findIndex"),findLast:t(()=>xs,"findLast"),findLastIndex:t(()=>fc,"findLastIndex"),findListItemInfo:t(()=>ube,"findListItemInfo"),findModifier:t(()=>$6,"findModifier"),findNextToken:t(()=>Ex,"findNextToken"),findPackageJson:t(()=>Jbe,"findPackageJson"),findPackageJsons:t(()=>bre,"findPackageJsons"),findPrecedingMatchingToken:t(()=>pJ,"findPrecedingMatchingToken"),findPrecedingToken:t(()=>Yl,"findPrecedingToken"),findSuperStatementIndexPath:t(()=>_$,"findSuperStatementIndexPath"),findTokenOnLeftOfPosition:t(()=>n8,"findTokenOnLeftOfPosition"),findUseStrictPrologue:t(()=>JZ,"findUseStrictPrologue"),first:t(()=>Ga,"first"),firstDefined:t(()=>Ut,"firstDefined"),firstDefinedIterator:t(()=>Ir,"firstDefinedIterator"),firstIterator:t(()=>qG,"firstIterator"),firstOrOnly:t(()=>Ere,"firstOrOnly"),firstOrUndefined:t(()=>Fl,"firstOrUndefined"),firstOrUndefinedIterator:t(()=>x7,"firstOrUndefinedIterator"),fixupCompilerOptions:t(()=>Wre,"fixupCompilerOptions"),flatMap:t(()=>ka,"flatMap"),flatMapIterator:t(()=>Oy,"flatMapIterator"),flatMapToMutable:t(()=>tm,"flatMapToMutable"),flatten:t(()=>Sf,"flatten"),flattenCommaList:t(()=>k0e,"flattenCommaList"),flattenDestructuringAssignment:t(()=>OC,"flattenDestructuringAssignment"),flattenDestructuringBinding:t(()=>vx,"flattenDestructuringBinding"),flattenDiagnosticMessageText:t(()=>sg,"flattenDiagnosticMessageText"),forEach:t(()=>je,"forEach"),forEachAncestor:t(()=>Xde,"forEachAncestor"),forEachAncestorDirectory:t(()=>n4,"forEachAncestorDirectory"),forEachAncestorDirectoryStoppingAtGlobalCache:t(()=>Zg,"forEachAncestorDirectoryStoppingAtGlobalCache"),forEachChild:t(()=>Hs,"forEachChild"),forEachChildRecursively:t(()=>_D,"forEachChildRecursively"),forEachDynamicImportOrRequireCall:t(()=>nz,"forEachDynamicImportOrRequireCall"),forEachEmittedFile:t(()=>cee,"forEachEmittedFile"),forEachEnclosingBlockScopeContainer:t(()=>_me,"forEachEnclosingBlockScopeContainer"),forEachEntry:t(()=>iu,"forEachEntry"),forEachExternalModuleToImportFrom:t(()=>Nre,"forEachExternalModuleToImportFrom"),forEachImportClauseDeclaration:t(()=>Bme,"forEachImportClauseDeclaration"),forEachKey:t(()=>L0,"forEachKey"),forEachLeadingCommentRange:t(()=>F7,"forEachLeadingCommentRange"),forEachNameInAccessChainWalkingLeft:t(()=>Che,"forEachNameInAccessChainWalkingLeft"),forEachNameOfDefaultExport:t(()=>BJ,"forEachNameOfDefaultExport"),forEachOptionsSyntaxByName:t(()=>fZ,"forEachOptionsSyntaxByName"),forEachProjectReference:t(()=>u3,"forEachProjectReference"),forEachPropertyAssignment:t(()=>LA,"forEachPropertyAssignment"),forEachResolvedProjectReference:t(()=>lZ,"forEachResolvedProjectReference"),forEachReturnStatement:t(()=>Ab,"forEachReturnStatement"),forEachRight:t(()=>Vt,"forEachRight"),forEachTrailingCommentRange:t(()=>L7,"forEachTrailingCommentRange"),forEachTsConfigPropArray:t(()=>dF,"forEachTsConfigPropArray"),forEachUnique:t(()=>ore,"forEachUnique"),forEachYieldExpression:t(()=>bme,"forEachYieldExpression"),formatColorAndReset:t(()=>Sx,"formatColorAndReset"),formatDiagnostic:t(()=>xee,"formatDiagnostic"),formatDiagnostics:t(()=>RRe,"formatDiagnostics"),formatDiagnosticsWithColorAndContext:t(()=>B1e,"formatDiagnosticsWithColorAndContext"),formatGeneratedName:t(()=>n2,"formatGeneratedName"),formatGeneratedNamePart:t(()=>v6,"formatGeneratedNamePart"),formatLocation:t(()=>Eee,"formatLocation"),formatMessage:t(()=>Jw,"formatMessage"),formatStringFromArgs:t(()=>$0,"formatStringFromArgs"),formatting:t(()=>zl,"formatting"),generateDjb2Hash:t(()=>e4,"generateDjb2Hash"),generateTSConfig:t(()=>X0e,"generateTSConfig"),getAdjustedReferenceLocation:t(()=>Ute,"getAdjustedReferenceLocation"),getAdjustedRenameLocation:t(()=>uJ,"getAdjustedRenameLocation"),getAliasDeclarationFromName:t(()=>HK,"getAliasDeclarationFromName"),getAllAccessorDeclarations:t(()=>ex,"getAllAccessorDeclarations"),getAllDecoratorsOfClass:t(()=>QQ,"getAllDecoratorsOfClass"),getAllDecoratorsOfClassElement:t(()=>d$,"getAllDecoratorsOfClassElement"),getAllJSDocTags:t(()=>cB,"getAllJSDocTags"),getAllJSDocTagsOfKind:t(()=>A7e,"getAllJSDocTagsOfKind"),getAllKeys:t(()=>OOe,"getAllKeys"),getAllProjectOutputs:t(()=>v$,"getAllProjectOutputs"),getAllSuperTypeNodes:t(()=>F4,"getAllSuperTypeNodes"),getAllowImportingTsExtensions:t(()=>Ihe,"getAllowImportingTsExtensions"),getAllowJSCompilerOption:t(()=>Mb,"getAllowJSCompilerOption"),getAllowSyntheticDefaultImports:t(()=>Ww,"getAllowSyntheticDefaultImports"),getAncestor:t(()=>JS,"getAncestor"),getAnyExtensionFromPath:t(()=>_w,"getAnyExtensionFromPath"),getAreDeclarationMapsEnabled:t(()=>NU,"getAreDeclarationMapsEnabled"),getAssignedExpandoInitializer:t(()=>Dw,"getAssignedExpandoInitializer"),getAssignedName:t(()=>sB,"getAssignedName"),getAssignmentDeclarationKind:t(()=>fl,"getAssignmentDeclarationKind"),getAssignmentDeclarationPropertyAccessKind:t(()=>wF,"getAssignmentDeclarationPropertyAccessKind"),getAssignmentTargetKind:t(()=>Nb,"getAssignmentTargetKind"),getAutomaticTypeDirectiveNames:t(()=>Zz,"getAutomaticTypeDirectiveNames"),getBaseFileName:t(()=>Ll,"getBaseFileName"),getBinaryOperatorPrecedence:t(()=>$F,"getBinaryOperatorPrecedence"),getBuildInfo:t(()=>dee,"getBuildInfo"),getBuildInfoFileVersionMap:t(()=>jee,"getBuildInfoFileVersionMap"),getBuildInfoText:t(()=>w1e,"getBuildInfoText"),getBuildOrderFromAnyBuildOrder:t(()=>bL,"getBuildOrderFromAnyBuildOrder"),getBuilderCreationParameters:t(()=>F$,"getBuilderCreationParameters"),getBuilderFileEmit:t(()=>Kb,"getBuilderFileEmit"),getCanonicalDiagnostic:t(()=>gme,"getCanonicalDiagnostic"),getCheckFlags:t(()=>$c,"getCheckFlags"),getClassExtendsHeritageElement:t(()=>KT,"getClassExtendsHeritageElement"),getClassLikeDeclarationOfSymbol:t(()=>Hy,"getClassLikeDeclarationOfSymbol"),getCombinedLocalAndExportSymbolFlags:t(()=>YA,"getCombinedLocalAndExportSymbolFlags"),getCombinedModifierFlags:t(()=>FS,"getCombinedModifierFlags"),getCombinedNodeFlags:t(()=>By,"getCombinedNodeFlags"),getCombinedNodeFlagsAlwaysIncludeJSDoc:t(()=>$Y,"getCombinedNodeFlagsAlwaysIncludeJSDoc"),getCommentRange:t(()=>Xh,"getCommentRange"),getCommonSourceDirectory:t(()=>H3,"getCommonSourceDirectory"),getCommonSourceDirectoryOfConfig:t(()=>FC,"getCommonSourceDirectoryOfConfig"),getCompilerOptionValue:t(()=>FU,"getCompilerOptionValue"),getCompilerOptionsDiffValue:t(()=>K0e,"getCompilerOptionsDiffValue"),getConditions:t(()=>Vb,"getConditions"),getConfigFileParsingDiagnostics:t(()=>Tx,"getConfigFileParsingDiagnostics"),getConstantValue:t(()=>xge,"getConstantValue"),getContainerFlags:t(()=>OQ,"getContainerFlags"),getContainerNode:t(()=>MC,"getContainerNode"),getContainingClass:t(()=>Mu,"getContainingClass"),getContainingClassExcludingClassDecorators:t(()=>JB,"getContainingClassExcludingClassDecorators"),getContainingClassStaticBlock:t(()=>Dme,"getContainingClassStaticBlock"),getContainingFunction:t(()=>rd,"getContainingFunction"),getContainingFunctionDeclaration:t(()=>wme,"getContainingFunctionDeclaration"),getContainingFunctionOrClassStaticBlock:t(()=>$B,"getContainingFunctionOrClassStaticBlock"),getContainingNodeArray:t(()=>rge,"getContainingNodeArray"),getContainingObjectLiteralElement:t(()=>eR,"getContainingObjectLiteralElement"),getContextualTypeFromParent:t(()=>CJ,"getContextualTypeFromParent"),getContextualTypeFromParentOrAncestorTypeNode:t(()=>lJ,"getContextualTypeFromParentOrAncestorTypeNode"),getDeclarationDiagnostics:t(()=>T1e,"getDeclarationDiagnostics"),getDeclarationEmitExtensionForPath:t(()=>fU,"getDeclarationEmitExtensionForPath"),getDeclarationEmitOutputFilePath:t(()=>ehe,"getDeclarationEmitOutputFilePath"),getDeclarationEmitOutputFilePathWorker:t(()=>uU,"getDeclarationEmitOutputFilePathWorker"),getDeclarationFileExtension:t(()=>Fz,"getDeclarationFileExtension"),getDeclarationFromName:t(()=>O4,"getDeclarationFromName"),getDeclarationModifierFlagsFromSymbol:t(()=>Fd,"getDeclarationModifierFlagsFromSymbol"),getDeclarationOfKind:t(()=>dc,"getDeclarationOfKind"),getDeclarationsOfKind:t(()=>Yde,"getDeclarationsOfKind"),getDeclaredExpandoInitializer:t(()=>A4,"getDeclaredExpandoInitializer"),getDecorators:t(()=>yb,"getDecorators"),getDefaultCompilerOptions:t(()=>tW,"getDefaultCompilerOptions"),getDefaultFormatCodeSettings:t(()=>Q$,"getDefaultFormatCodeSettings"),getDefaultLibFileName:t(()=>M7,"getDefaultLibFileName"),getDefaultLibFilePath:t(()=>A2e,"getDefaultLibFilePath"),getDefaultLikeExportInfo:t(()=>jJ,"getDefaultLikeExportInfo"),getDefaultLikeExportNameFromDeclaration:t(()=>Cre,"getDefaultLikeExportNameFromDeclaration"),getDefaultResolutionModeForFileWorker:t(()=>P$,"getDefaultResolutionModeForFileWorker"),getDiagnosticText:t(()=>A_,"getDiagnosticText"),getDiagnosticsWithinSpan:t(()=>qbe,"getDiagnosticsWithinSpan"),getDirectoryPath:t(()=>_i,"getDirectoryPath"),getDirectoryToWatchFailedLookupLocation:t(()=>$ee,"getDirectoryToWatchFailedLookupLocation"),getDirectoryToWatchFailedLookupLocationFromTypeRoot:t(()=>uve,"getDirectoryToWatchFailedLookupLocationFromTypeRoot"),getDocumentPositionMapper:t(()=>Bre,"getDocumentPositionMapper"),getDocumentSpansEqualityComparer:t(()=>are,"getDocumentSpansEqualityComparer"),getESModuleInterop:t(()=>J0,"getESModuleInterop"),getEditsForFileRename:t(()=>tSe,"getEditsForFileRename"),getEffectiveBaseTypeNode:t(()=>Wh,"getEffectiveBaseTypeNode"),getEffectiveConstraintOfTypeParameter:t(()=>xA,"getEffectiveConstraintOfTypeParameter"),getEffectiveContainerForJSDocTemplateTag:t(()=>tU,"getEffectiveContainerForJSDocTemplateTag"),getEffectiveImplementsTypeNodes:t(()=>$A,"getEffectiveImplementsTypeNodes"),getEffectiveInitializer:t(()=>EF,"getEffectiveInitializer"),getEffectiveJSDocHost:t(()=>$S,"getEffectiveJSDocHost"),getEffectiveModifierFlags:t(()=>Wf,"getEffectiveModifierFlags"),getEffectiveModifierFlagsAlwaysIncludeJSDoc:t(()=>lhe,"getEffectiveModifierFlagsAlwaysIncludeJSDoc"),getEffectiveModifierFlagsNoCache:t(()=>uhe,"getEffectiveModifierFlagsNoCache"),getEffectiveReturnTypeNode:t(()=>jp,"getEffectiveReturnTypeNode"),getEffectiveSetAccessorTypeAnnotationNode:t(()=>pX,"getEffectiveSetAccessorTypeAnnotationNode"),getEffectiveTypeAnnotationNode:t(()=>Rl,"getEffectiveTypeAnnotationNode"),getEffectiveTypeParameterDeclarations:t(()=>bb,"getEffectiveTypeParameterDeclarations"),getEffectiveTypeRoots:t(()=>O3,"getEffectiveTypeRoots"),getElementOrPropertyAccessArgumentExpressionOrName:t(()=>eU,"getElementOrPropertyAccessArgumentExpressionOrName"),getElementOrPropertyAccessName:t(()=>$y,"getElementOrPropertyAccessName"),getElementsOfBindingOrAssignmentPattern:t(()=>y6,"getElementsOfBindingOrAssignmentPattern"),getEmitDeclarations:t(()=>J_,"getEmitDeclarations"),getEmitFlags:t(()=>Ya,"getEmitFlags"),getEmitHelpers:t(()=>mZ,"getEmitHelpers"),getEmitModuleDetectionKind:t(()=>Ohe,"getEmitModuleDetectionKind"),getEmitModuleFormatOfFileWorker:t(()=>X3,"getEmitModuleFormatOfFileWorker"),getEmitModuleKind:t(()=>qf,"getEmitModuleKind"),getEmitModuleResolutionKind:t(()=>Cf,"getEmitModuleResolutionKind"),getEmitScriptTarget:t(()=>Ja,"getEmitScriptTarget"),getEmitStandardClassFields:t(()=>RX,"getEmitStandardClassFields"),getEnclosingBlockScopeContainer:t(()=>rh,"getEnclosingBlockScopeContainer"),getEnclosingContainer:t(()=>FB,"getEnclosingContainer"),getEncodedSemanticClassifications:t(()=>Ire,"getEncodedSemanticClassifications"),getEncodedSyntacticClassifications:t(()=>Ore,"getEncodedSyntacticClassifications"),getEndLinePosition:t(()=>iF,"getEndLinePosition"),getEntityNameFromTypeNode:t(()=>gF,"getEntityNameFromTypeNode"),getEntrypointsFromPackageJsonInfo:t(()=>DQ,"getEntrypointsFromPackageJsonInfo"),getErrorCountForSummary:t(()=>M$,"getErrorCountForSummary"),getErrorSpanForNode:t(()=>tC,"getErrorSpanForNode"),getErrorSummaryText:t(()=>Vee,"getErrorSummaryText"),getEscapedTextOfIdentifierOrLiteral:t(()=>M4,"getEscapedTextOfIdentifierOrLiteral"),getEscapedTextOfJsxAttributeName:t(()=>c3,"getEscapedTextOfJsxAttributeName"),getEscapedTextOfJsxNamespacedName:t(()=>Gw,"getEscapedTextOfJsxNamespacedName"),getExpandoInitializer:t(()=>US,"getExpandoInitializer"),getExportAssignmentExpression:t(()=>GK,"getExportAssignmentExpression"),getExportInfoMap:t(()=>VL,"getExportInfoMap"),getExportNeedsImportStarHelper:t(()=>Jye,"getExportNeedsImportStarHelper"),getExpressionAssociativity:t(()=>tX,"getExpressionAssociativity"),getExpressionPrecedence:t(()=>j4,"getExpressionPrecedence"),getExternalHelpersModuleName:t(()=>I5,"getExternalHelpersModuleName"),getExternalModuleImportEqualsDeclarationExpression:t(()=>D4,"getExternalModuleImportEqualsDeclarationExpression"),getExternalModuleName:t(()=>Aw,"getExternalModuleName"),getExternalModuleNameFromDeclaration:t(()=>Zme,"getExternalModuleNameFromDeclaration"),getExternalModuleNameFromPath:t(()=>cX,"getExternalModuleNameFromPath"),getExternalModuleNameLiteral:t(()=>fD,"getExternalModuleNameLiteral"),getExternalModuleRequireArgument:t(()=>MK,"getExternalModuleRequireArgument"),getFallbackOptions:t(()=>_L,"getFallbackOptions"),getFileEmitOutput:t(()=>W1e,"getFileEmitOutput"),getFileMatcherPatterns:t(()=>BU,"getFileMatcherPatterns"),getFileNamesFromConfigSpecs:t(()=>N3,"getFileNamesFromConfigSpecs"),getFileWatcherEventKind:t(()=>DY,"getFileWatcherEventKind"),getFilesInErrorForSummary:t(()=>j$,"getFilesInErrorForSummary"),getFirstConstructorWithBody:t(()=>U0,"getFirstConstructorWithBody"),getFirstIdentifier:t(()=>s_,"getFirstIdentifier"),getFirstNonSpaceCharacterPosition:t(()=>Lbe,"getFirstNonSpaceCharacterPosition"),getFirstProjectOutput:t(()=>fee,"getFirstProjectOutput"),getFixableErrorSpanExpression:t(()=>Tre,"getFixableErrorSpanExpression"),getFormatCodeSettingsForWriting:t(()=>LJ,"getFormatCodeSettingsForWriting"),getFullWidth:t(()=>rF,"getFullWidth"),getFunctionFlags:t(()=>gl,"getFunctionFlags"),getHeritageClause:t(()=>jF,"getHeritageClause"),getHostSignatureFromJSDoc:t(()=>zS,"getHostSignatureFromJSDoc"),getIdentifierAutoGenerate:t(()=>PFe,"getIdentifierAutoGenerate"),getIdentifierGeneratedImportReference:t(()=>Pge,"getIdentifierGeneratedImportReference"),getIdentifierTypeArguments:t(()=>hC,"getIdentifierTypeArguments"),getImmediatelyInvokedFunctionExpression:t(()=>qT,"getImmediatelyInvokedFunctionExpression"),getImpliedNodeFormatForEmitWorker:t(()=>LC,"getImpliedNodeFormatForEmitWorker"),getImpliedNodeFormatForFile:t(()=>dL,"getImpliedNodeFormatForFile"),getImpliedNodeFormatForFileWorker:t(()=>D$,"getImpliedNodeFormatForFileWorker"),getImportNeedsImportDefaultHelper:t(()=>KQ,"getImportNeedsImportDefaultHelper"),getImportNeedsImportStarHelper:t(()=>u$,"getImportNeedsImportStarHelper"),getIndentString:t(()=>lU,"getIndentString"),getInferredLibraryNameResolveFrom:t(()=>w$,"getInferredLibraryNameResolveFrom"),getInitializedVariables:t(()=>V4,"getInitializedVariables"),getInitializerOfBinaryExpression:t(()=>zK,"getInitializerOfBinaryExpression"),getInitializerOfBindingOrAssignmentElement:t(()=>F5,"getInitializerOfBindingOrAssignmentElement"),getInterfaceBaseTypeNodes:t(()=>L4,"getInterfaceBaseTypeNodes"),getInternalEmitFlags:t(()=>Nm,"getInternalEmitFlags"),getInvokedExpression:t(()=>VB,"getInvokedExpression"),getIsFileExcluded:t(()=>Kbe,"getIsFileExcluded"),getIsolatedModules:t(()=>um,"getIsolatedModules"),getJSDocAugmentsTag:t(()=>vde,"getJSDocAugmentsTag"),getJSDocClassTag:t(()=>qY,"getJSDocClassTag"),getJSDocCommentRanges:t(()=>IK,"getJSDocCommentRanges"),getJSDocCommentsAndTags:t(()=>$K,"getJSDocCommentsAndTags"),getJSDocDeprecatedTag:t(()=>VY,"getJSDocDeprecatedTag"),getJSDocDeprecatedTagNoCache:t(()=>kde,"getJSDocDeprecatedTagNoCache"),getJSDocEnumTag:t(()=>HY,"getJSDocEnumTag"),getJSDocHost:t(()=>GT,"getJSDocHost"),getJSDocImplementsTags:t(()=>bde,"getJSDocImplementsTags"),getJSDocOverloadTags:t(()=>WK,"getJSDocOverloadTags"),getJSDocOverrideTagNoCache:t(()=>Cde,"getJSDocOverrideTagNoCache"),getJSDocParameterTags:t(()=>TA,"getJSDocParameterTags"),getJSDocParameterTagsNoCache:t(()=>mde,"getJSDocParameterTagsNoCache"),getJSDocPrivateTag:t(()=>k7e,"getJSDocPrivateTag"),getJSDocPrivateTagNoCache:t(()=>Tde,"getJSDocPrivateTagNoCache"),getJSDocProtectedTag:t(()=>w7e,"getJSDocProtectedTag"),getJSDocProtectedTagNoCache:t(()=>xde,"getJSDocProtectedTagNoCache"),getJSDocPublicTag:t(()=>C7e,"getJSDocPublicTag"),getJSDocPublicTagNoCache:t(()=>Sde,"getJSDocPublicTagNoCache"),getJSDocReadonlyTag:t(()=>D7e,"getJSDocReadonlyTag"),getJSDocReadonlyTagNoCache:t(()=>Ede,"getJSDocReadonlyTagNoCache"),getJSDocReturnTag:t(()=>wde,"getJSDocReturnTag"),getJSDocReturnType:t(()=>J7,"getJSDocReturnType"),getJSDocRoot:t(()=>zA,"getJSDocRoot"),getJSDocSatisfiesExpressionType:t(()=>rZ,"getJSDocSatisfiesExpressionType"),getJSDocSatisfiesTag:t(()=>GY,"getJSDocSatisfiesTag"),getJSDocTags:t(()=>RS,"getJSDocTags"),getJSDocTemplateTag:t(()=>P7e,"getJSDocTemplateTag"),getJSDocThisTag:t(()=>aB,"getJSDocThisTag"),getJSDocType:t(()=>vb,"getJSDocType"),getJSDocTypeAliasName:t(()=>VZ,"getJSDocTypeAliasName"),getJSDocTypeAssertionType:t(()=>h6,"getJSDocTypeAssertionType"),getJSDocTypeParameterDeclarations:t(()=>hU,"getJSDocTypeParameterDeclarations"),getJSDocTypeParameterTags:t(()=>hde,"getJSDocTypeParameterTags"),getJSDocTypeParameterTagsNoCache:t(()=>gde,"getJSDocTypeParameterTagsNoCache"),getJSDocTypeTag:t(()=>LS,"getJSDocTypeTag"),getJSXImplicitImportBase:t(()=>s5,"getJSXImplicitImportBase"),getJSXRuntimeImport:t(()=>RU,"getJSXRuntimeImport"),getJSXTransformEnabled:t(()=>LU,"getJSXTransformEnabled"),getKeyForCompilerOptions:t(()=>xQ,"getKeyForCompilerOptions"),getLanguageVariant:t(()=>QF,"getLanguageVariant"),getLastChild:t(()=>PX,"getLastChild"),getLeadingCommentRanges:t(()=>A0,"getLeadingCommentRanges"),getLeadingCommentRangesOfNode:t(()=>NK,"getLeadingCommentRangesOfNode"),getLeftmostAccessExpression:t(()=>KA,"getLeftmostAccessExpression"),getLeftmostExpression:t(()=>XA,"getLeftmostExpression"),getLibFileNameFromLibReference:t(()=>cZ,"getLibFileNameFromLibReference"),getLibNameFromLibReference:t(()=>oZ,"getLibNameFromLibReference"),getLibraryNameFromLibFileName:t(()=>Dee,"getLibraryNameFromLibFileName"),getLineAndCharacterOfPosition:t(()=>_a,"getLineAndCharacterOfPosition"),getLineInfo:t(()=>HQ,"getLineInfo"),getLineOfLocalPosition:t(()=>U4,"getLineOfLocalPosition"),getLineStartPositionForPosition:t(()=>mm,"getLineStartPositionForPosition"),getLineStarts:t(()=>D0,"getLineStarts"),getLinesBetweenPositionAndNextNonWhitespaceCharacter:t(()=>The,"getLinesBetweenPositionAndNextNonWhitespaceCharacter"),getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:t(()=>She,"getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter"),getLinesBetweenPositions:t(()=>s4,"getLinesBetweenPositions"),getLinesBetweenRangeEndAndRangeStart:t(()=>EX,"getLinesBetweenRangeEndAndRangeStart"),getLinesBetweenRangeEndPositions:t(()=>sFe,"getLinesBetweenRangeEndPositions"),getLiteralText:t(()=>sme,"getLiteralText"),getLocalNameForExternalImport:t(()=>g6,"getLocalNameForExternalImport"),getLocalSymbolForExportDefault:t(()=>W4,"getLocalSymbolForExportDefault"),getLocaleSpecificMessage:t(()=>Js,"getLocaleSpecificMessage"),getLocaleTimeString:t(()=>vL,"getLocaleTimeString"),getMappedContextSpan:t(()=>cre,"getMappedContextSpan"),getMappedDocumentSpan:t(()=>TJ,"getMappedDocumentSpan"),getMappedLocation:t(()=>o8,"getMappedLocation"),getMatchedFileSpec:t(()=>Kee,"getMatchedFileSpec"),getMatchedIncludeSpec:t(()=>Xee,"getMatchedIncludeSpec"),getMeaningFromDeclaration:t(()=>tJ,"getMeaningFromDeclaration"),getMeaningFromLocation:t(()=>RC,"getMeaningFromLocation"),getMembersOfDeclaration:t(()=>Sme,"getMembersOfDeclaration"),getModeForFileReference:t(()=>U1e,"getModeForFileReference"),getModeForResolutionAtIndex:t(()=>$Re,"getModeForResolutionAtIndex"),getModeForUsageLocation:t(()=>kee,"getModeForUsageLocation"),getModifiedTime:t(()=>fw,"getModifiedTime"),getModifiers:t(()=>RT,"getModifiers"),getModuleInstanceState:t(()=>Zy,"getModuleInstanceState"),getModuleNameStringLiteralAt:t(()=>hL,"getModuleNameStringLiteralAt"),getModuleSpecifierEndingPreference:t(()=>Vhe,"getModuleSpecifierEndingPreference"),getModuleSpecifierResolverHost:t(()=>Qte,"getModuleSpecifierResolverHost"),getNameForExportedSymbol:t(()=>IJ,"getNameForExportedSymbol"),getNameFromImportAttribute:t(()=>QU,"getNameFromImportAttribute"),getNameFromIndexInfo:t(()=>pme,"getNameFromIndexInfo"),getNameFromPropertyName:t(()=>FL,"getNameFromPropertyName"),getNameOfAccessExpression:t(()=>NX,"getNameOfAccessExpression"),getNameOfCompilerOptionValue:t(()=>mQ,"getNameOfCompilerOptionValue"),getNameOfDeclaration:t(()=>Ls,"getNameOfDeclaration"),getNameOfExpando:t(()=>jK,"getNameOfExpando"),getNameOfJSDocTypedef:t(()=>dde,"getNameOfJSDocTypedef"),getNameOfScriptTarget:t(()=>OU,"getNameOfScriptTarget"),getNameOrArgument:t(()=>kF,"getNameOrArgument"),getNameTable:t(()=>mne,"getNameTable"),getNamespaceDeclarationNode:t(()=>BA,"getNamespaceDeclarationNode"),getNewLineCharacter:t(()=>Z1,"getNewLineCharacter"),getNewLineKind:t(()=>qL,"getNewLineKind"),getNewLineOrDefaultFromHost:t(()=>e1,"getNewLineOrDefaultFromHost"),getNewTargetContainer:t(()=>Ame,"getNewTargetContainer"),getNextJSDocCommentLocation:t(()=>JK,"getNextJSDocCommentLocation"),getNodeChildren:t(()=>MZ,"getNodeChildren"),getNodeForGeneratedName:t(()=>R5,"getNodeForGeneratedName"),getNodeId:t(()=>so,"getNodeId"),getNodeKind:t(()=>xx,"getNodeKind"),getNodeModifiers:t(()=>i8,"getNodeModifiers"),getNodeModulePathParts:t(()=>KU,"getNodeModulePathParts"),getNonAssignedNameOfDeclaration:t(()=>iB,"getNonAssignedNameOfDeclaration"),getNonAssignmentOperatorForCompoundAssignment:t(()=>z3,"getNonAssignmentOperatorForCompoundAssignment"),getNonAugmentationDeclaration:t(()=>EK,"getNonAugmentationDeclaration"),getNonDecoratorTokenPosOfNode:t(()=>yK,"getNonDecoratorTokenPosOfNode"),getNonIncrementalBuildInfoRoots:t(()=>sve,"getNonIncrementalBuildInfoRoots"),getNonModifierTokenPosOfNode:t(()=>nme,"getNonModifierTokenPosOfNode"),getNormalizedAbsolutePath:t(()=>bs,"getNormalizedAbsolutePath"),getNormalizedAbsolutePathWithoutRoot:t(()=>IY,"getNormalizedAbsolutePathWithoutRoot"),getNormalizedPathComponents:t(()=>Kj,"getNormalizedPathComponents"),getObjectFlags:t(()=>Gn,"getObjectFlags"),getOperatorAssociativity:t(()=>rX,"getOperatorAssociativity"),getOperatorPrecedence:t(()=>zF,"getOperatorPrecedence"),getOptionFromName:t(()=>lQ,"getOptionFromName"),getOptionsForLibraryResolution:t(()=>EQ,"getOptionsForLibraryResolution"),getOptionsNameMap:t(()=>S6,"getOptionsNameMap"),getOptionsSyntaxByArrayElementValue:t(()=>uZ,"getOptionsSyntaxByArrayElementValue"),getOptionsSyntaxByValue:t(()=>dge,"getOptionsSyntaxByValue"),getOrCreateEmitNode:t(()=>pf,"getOrCreateEmitNode"),getOrUpdate:t(()=>zE,"getOrUpdate"),getOriginalNode:t(()=>Sc,"getOriginalNode"),getOriginalNodeId:t(()=>u_,"getOriginalNodeId"),getOutputDeclarationFileName:t(()=>A6,"getOutputDeclarationFileName"),getOutputDeclarationFileNameWorker:t(()=>lee,"getOutputDeclarationFileNameWorker"),getOutputExtension:t(()=>lL,"getOutputExtension"),getOutputFileNames:t(()=>FRe,"getOutputFileNames"),getOutputJSFileNameWorker:t(()=>uee,"getOutputJSFileNameWorker"),getOutputPathsFor:t(()=>V3,"getOutputPathsFor"),getOwnEmitOutputFilePath:t(()=>Qme,"getOwnEmitOutputFilePath"),getOwnKeys:t(()=>Rh,"getOwnKeys"),getOwnValues:t(()=>ow,"getOwnValues"),getPackageJsonTypesVersionsPaths:t(()=>Xz,"getPackageJsonTypesVersionsPaths"),getPackageNameFromTypesPackageName:t(()=>M3,"getPackageNameFromTypesPackageName"),getPackageScopeForPath:t(()=>R3,"getPackageScopeForPath"),getParameterSymbolFromJSDoc:t(()=>FF,"getParameterSymbolFromJSDoc"),getParentNodeInSpan:t(()=>RL,"getParentNodeInSpan"),getParseTreeNode:t(()=>zs,"getParseTreeNode"),getParsedCommandLineOfConfigFile:t(()=>$5,"getParsedCommandLineOfConfigFile"),getPathComponents:t(()=>uf,"getPathComponents"),getPathFromPathComponents:t(()=>OS,"getPathFromPathComponents"),getPathUpdater:t(()=>Rre,"getPathUpdater"),getPathsBasePath:t(()=>_U,"getPathsBasePath"),getPatternFromSpec:t(()=>zX,"getPatternFromSpec"),getPendingEmitKindWithSeen:t(()=>O$,"getPendingEmitKindWithSeen"),getPositionOfLineAndCharacter:t(()=>I7,"getPositionOfLineAndCharacter"),getPossibleGenericSignatures:t(()=>$te,"getPossibleGenericSignatures"),getPossibleOriginalInputExtensionForExtension:t(()=>lX,"getPossibleOriginalInputExtensionForExtension"),getPossibleOriginalInputPathWithoutChangingExt:t(()=>uX,"getPossibleOriginalInputPathWithoutChangingExt"),getPossibleTypeArgumentsInfo:t(()=>Jte,"getPossibleTypeArgumentsInfo"),getPreEmitDiagnostics:t(()=>LRe,"getPreEmitDiagnostics"),getPrecedingNonSpaceCharacterPosition:t(()=>xJ,"getPrecedingNonSpaceCharacterPosition"),getPrivateIdentifier:t(()=>eee,"getPrivateIdentifier"),getProperties:t(()=>ZQ,"getProperties"),getProperty:t(()=>Lj,"getProperty"),getPropertyAssignmentAliasLikeExpression:t(()=>Vme,"getPropertyAssignmentAliasLikeExpression"),getPropertyNameForPropertyNameNode:t(()=>lC,"getPropertyNameForPropertyNameNode"),getPropertyNameFromType:t(()=>Rd,"getPropertyNameFromType"),getPropertyNameOfBindingOrAssignmentElement:t(()=>qZ,"getPropertyNameOfBindingOrAssignmentElement"),getPropertySymbolFromBindingElement:t(()=>SJ,"getPropertySymbolFromBindingElement"),getPropertySymbolsFromContextualType:t(()=>nW,"getPropertySymbolsFromContextualType"),getQuoteFromPreference:t(()=>tre,"getQuoteFromPreference"),getQuotePreference:t(()=>hp,"getQuotePreference"),getRangesWhere:t(()=>zG,"getRangesWhere"),getRefactorContextSpan:t(()=>kD,"getRefactorContextSpan"),getReferencedFileLocation:t(()=>K3,"getReferencedFileLocation"),getRegexFromPattern:t(()=>Q1,"getRegexFromPattern"),getRegularExpressionForWildcard:t(()=>X4,"getRegularExpressionForWildcard"),getRegularExpressionsForWildcards:t(()=>MU,"getRegularExpressionsForWildcards"),getRelativePathFromDirectory:t(()=>td,"getRelativePathFromDirectory"),getRelativePathFromFile:t(()=>yA,"getRelativePathFromFile"),getRelativePathToDirectoryOrUrl:t(()=>dw,"getRelativePathToDirectoryOrUrl"),getRenameLocation:t(()=>BL,"getRenameLocation"),getReplacementSpanForContextToken:t(()=>Hte,"getReplacementSpanForContextToken"),getResolutionDiagnostic:t(()=>Iee,"getResolutionDiagnostic"),getResolutionModeOverride:t(()=>N6,"getResolutionModeOverride"),getResolveJsonModule:t(()=>rx,"getResolveJsonModule"),getResolvePackageJsonExports:t(()=>t5,"getResolvePackageJsonExports"),getResolvePackageJsonImports:t(()=>r5,"getResolvePackageJsonImports"),getResolvedExternalModuleName:t(()=>oX,"getResolvedExternalModuleName"),getResolvedModuleFromResolution:t(()=>Ew,"getResolvedModuleFromResolution"),getResolvedTypeReferenceDirectiveFromResolution:t(()=>kB,"getResolvedTypeReferenceDirectiveFromResolution"),getRestIndicatorOfBindingOrAssignmentElement:t(()=>Pz,"getRestIndicatorOfBindingOrAssignmentElement"),getRestParameterElementType:t(()=>OK,"getRestParameterElementType"),getRightMostAssignedExpression:t(()=>CF,"getRightMostAssignedExpression"),getRootDeclaration:t(()=>Vh,"getRootDeclaration"),getRootDirectoryOfResolutionCache:t(()=>fve,"getRootDirectoryOfResolutionCache"),getRootLength:t(()=>Qm,"getRootLength"),getScriptKind:t(()=>_re,"getScriptKind"),getScriptKindFromFileName:t(()=>zU,"getScriptKindFromFileName"),getScriptTargetFeatures:t(()=>vK,"getScriptTargetFeatures"),getSelectedEffectiveModifierFlags:t(()=>Rw,"getSelectedEffectiveModifierFlags"),getSelectedSyntacticModifierFlags:t(()=>ohe,"getSelectedSyntacticModifierFlags"),getSemanticClassifications:t(()=>Xbe,"getSemanticClassifications"),getSemanticJsxChildren:t(()=>WA,"getSemanticJsxChildren"),getSetAccessorTypeAnnotationNode:t(()=>rhe,"getSetAccessorTypeAnnotationNode"),getSetAccessorValueParameter:t(()=>z4,"getSetAccessorValueParameter"),getSetExternalModuleIndicator:t(()=>e5,"getSetExternalModuleIndicator"),getShebang:t(()=>rB,"getShebang"),getSingleVariableOfVariableStatement:t(()=>Ow,"getSingleVariableOfVariableStatement"),getSnapshotText:t(()=>CD,"getSnapshotText"),getSnippetElement:t(()=>hZ,"getSnippetElement"),getSourceFileOfModule:t(()=>nF,"getSourceFileOfModule"),getSourceFileOfNode:t(()=>Hr,"getSourceFileOfNode"),getSourceFilePathInNewDir:t(()=>dU,"getSourceFilePathInNewDir"),getSourceFileVersionAsHashFromText:t(()=>U$,"getSourceFileVersionAsHashFromText"),getSourceFilesToEmit:t(()=>pU,"getSourceFilesToEmit"),getSourceMapRange:t(()=>tv,"getSourceMapRange"),getSourceMapper:t(()=>pSe,"getSourceMapper"),getSourceTextOfNodeFromSourceFile:t(()=>zT,"getSourceTextOfNodeFromSourceFile"),getSpanOfTokenAtPosition:t(()=>zh,"getSpanOfTokenAtPosition"),getSpellingSuggestion:t(()=>LT,"getSpellingSuggestion"),getStartPositionOfLine:t(()=>wb,"getStartPositionOfLine"),getStartPositionOfRange:t(()=>q4,"getStartPositionOfRange"),getStartsOnNewLine:t(()=>f3,"getStartsOnNewLine"),getStaticPropertiesAndClassStaticBlock:t(()=>p$,"getStaticPropertiesAndClassStaticBlock"),getStrictOptionValue:t(()=>_f,"getStrictOptionValue"),getStringComparer:t(()=>pA,"getStringComparer"),getSubPatternFromSpec:t(()=>jU,"getSubPatternFromSpec"),getSuperCallFromStatement:t(()=>f$,"getSuperCallFromStatement"),getSuperContainer:t(()=>mF,"getSuperContainer"),getSupportedCodeFixes:t(()=>pne,"getSupportedCodeFixes"),getSupportedExtensions:t(()=>Z4,"getSupportedExtensions"),getSupportedExtensionsWithJsonIfResolveJsonModule:t(()=>o5,"getSupportedExtensionsWithJsonIfResolveJsonModule"),getSwitchedType:t(()=>gre,"getSwitchedType"),getSymbolId:t(()=>Da,"getSymbolId"),getSymbolNameForPrivateIdentifier:t(()=>BF,"getSymbolNameForPrivateIdentifier"),getSymbolTarget:t(()=>pre,"getSymbolTarget"),getSyntacticClassifications:t(()=>Zbe,"getSyntacticClassifications"),getSyntacticModifierFlags:t(()=>K1,"getSyntacticModifierFlags"),getSyntacticModifierFlagsNoCache:t(()=>hX,"getSyntacticModifierFlagsNoCache"),getSynthesizedDeepClone:t(()=>yo,"getSynthesizedDeepClone"),getSynthesizedDeepCloneWithReplacements:t(()=>jL,"getSynthesizedDeepCloneWithReplacements"),getSynthesizedDeepClones:t(()=>Cx,"getSynthesizedDeepClones"),getSynthesizedDeepClonesWithReplacements:t(()=>dre,"getSynthesizedDeepClonesWithReplacements"),getSyntheticLeadingComments:t(()=>n6,"getSyntheticLeadingComments"),getSyntheticTrailingComments:t(()=>v5,"getSyntheticTrailingComments"),getTargetLabel:t(()=>iJ,"getTargetLabel"),getTargetOfBindingOrAssignmentElement:t(()=>Wb,"getTargetOfBindingOrAssignmentElement"),getTemporaryModuleResolutionState:t(()=>L3,"getTemporaryModuleResolutionState"),getTextOfConstantValue:t(()=>ame,"getTextOfConstantValue"),getTextOfIdentifierOrLiteral:t(()=>Nd,"getTextOfIdentifierOrLiteral"),getTextOfJSDocComment:t(()=>W7,"getTextOfJSDocComment"),getTextOfJsxAttributeName:t(()=>p5,"getTextOfJsxAttributeName"),getTextOfJsxNamespacedName:t(()=>l3,"getTextOfJsxNamespacedName"),getTextOfNode:t(()=>Cc,"getTextOfNode"),getTextOfNodeFromSourceText:t(()=>T4,"getTextOfNodeFromSourceText"),getTextOfPropertyName:t(()=>ww,"getTextOfPropertyName"),getThisContainer:t(()=>Jf,"getThisContainer"),getThisParameter:t(()=>ZT,"getThisParameter"),getTokenAtPosition:t(()=>ji,"getTokenAtPosition"),getTokenPosOfNode:t(()=>Db,"getTokenPosOfNode"),getTokenSourceMapRange:t(()=>wFe,"getTokenSourceMapRange"),getTouchingPropertyName:t(()=>N_,"getTouchingPropertyName"),getTouchingToken:t(()=>U6,"getTouchingToken"),getTrailingCommentRanges:t(()=>gb,"getTrailingCommentRanges"),getTrailingSemicolonDeferringWriter:t(()=>aX,"getTrailingSemicolonDeferringWriter"),getTransformers:t(()=>E1e,"getTransformers"),getTsBuildInfoEmitOutputFilePath:t(()=>l2,"getTsBuildInfoEmitOutputFilePath"),getTsConfigObjectLiteralExpression:t(()=>k4,"getTsConfigObjectLiteralExpression"),getTsConfigPropArrayElementValue:t(()=>zB,"getTsConfigPropArrayElementValue"),getTypeAnnotationNode:t(()=>nhe,"getTypeAnnotationNode"),getTypeArgumentOrTypeParameterList:t(()=>ybe,"getTypeArgumentOrTypeParameterList"),getTypeKeywordOfTypeOnlyImport:t(()=>ire,"getTypeKeywordOfTypeOnlyImport"),getTypeNode:t(()=>wge,"getTypeNode"),getTypeNodeIfAccessible:t(()=>_8,"getTypeNodeIfAccessible"),getTypeParameterFromJsDoc:t(()=>Ume,"getTypeParameterFromJsDoc"),getTypeParameterOwner:t(()=>S7e,"getTypeParameterOwner"),getTypesPackageName:t(()=>i$,"getTypesPackageName"),getUILocale:t(()=>v_e,"getUILocale"),getUniqueName:t(()=>BC,"getUniqueName"),getUniqueSymbolId:t(()=>Fbe,"getUniqueSymbolId"),getUseDefineForClassFields:t(()=>n5,"getUseDefineForClassFields"),getWatchErrorSummaryDiagnosticMessage:t(()=>qee,"getWatchErrorSummaryDiagnosticMessage"),getWatchFactory:t(()=>yee,"getWatchFactory"),group:t(()=>_A,"group"),groupBy:t(()=>GG,"groupBy"),guessIndentation:t(()=>Hde,"guessIndentation"),handleNoEmitOptions:t(()=>Nee,"handleNoEmitOptions"),handleWatchOptionsConfigDirTemplateSubstitution:t(()=>qz,"handleWatchOptionsConfigDirTemplateSubstitution"),hasAbstractModifier:t(()=>tx,"hasAbstractModifier"),hasAccessorModifier:t(()=>Hh,"hasAccessorModifier"),hasAmbientModifier:t(()=>mX,"hasAmbientModifier"),hasChangesInResolutions:t(()=>mK,"hasChangesInResolutions"),hasContextSensitiveParameters:t(()=>GU,"hasContextSensitiveParameters"),hasDecorators:t(()=>id,"hasDecorators"),hasDocComment:t(()=>hbe,"hasDocComment"),hasDynamicName:t(()=>Jy,"hasDynamicName"),hasEffectiveModifier:t(()=>fp,"hasEffectiveModifier"),hasEffectiveModifiers:t(()=>dX,"hasEffectiveModifiers"),hasEffectiveReadonlyModifier:t(()=>fC,"hasEffectiveReadonlyModifier"),hasExtension:t(()=>gA,"hasExtension"),hasImplementationTSFileExtension:t(()=>Whe,"hasImplementationTSFileExtension"),hasIndexSignature:t(()=>hre,"hasIndexSignature"),hasInferredType:t(()=>tz,"hasInferredType"),hasInitializer:t(()=>H1,"hasInitializer"),hasInvalidEscape:t(()=>iX,"hasInvalidEscape"),hasJSDocNodes:t(()=>Rp,"hasJSDocNodes"),hasJSDocParameterTags:t(()=>yde,"hasJSDocParameterTags"),hasJSFileExtension:t(()=>W0,"hasJSFileExtension"),hasJsonModuleEmitEnabled:t(()=>IU,"hasJsonModuleEmitEnabled"),hasOnlyExpressionInitializer:t(()=>QE,"hasOnlyExpressionInitializer"),hasOverrideModifier:t(()=>gU,"hasOverrideModifier"),hasPossibleExternalModuleReference:t(()=>fme,"hasPossibleExternalModuleReference"),hasProperty:t(()=>Ro,"hasProperty"),hasPropertyAccessExpressionWithName:t(()=>kL,"hasPropertyAccessExpressionWithName"),hasQuestionToken:t(()=>Nw,"hasQuestionToken"),hasRecordedExternalHelpers:t(()=>d0e,"hasRecordedExternalHelpers"),hasResolutionModeOverride:t(()=>oge,"hasResolutionModeOverride"),hasRestParameter:t(()=>uK,"hasRestParameter"),hasScopeMarker:t(()=>jde,"hasScopeMarker"),hasStaticModifier:t(()=>Hl,"hasStaticModifier"),hasSyntacticModifier:t(()=>di,"hasSyntacticModifier"),hasSyntacticModifiers:t(()=>ahe,"hasSyntacticModifiers"),hasTSFileExtension:t(()=>pC,"hasTSFileExtension"),hasTabstop:t(()=>ige,"hasTabstop"),hasTrailingDirectorySeparator:t(()=>mb,"hasTrailingDirectorySeparator"),hasType:t(()=>SB,"hasType"),hasTypeArguments:t(()=>Y7e,"hasTypeArguments"),hasZeroOrOneAsteriskCharacter:t(()=>MX,"hasZeroOrOneAsteriskCharacter"),hostGetCanonicalFileName:t(()=>Wy,"hostGetCanonicalFileName"),hostUsesCaseSensitiveFileNames:t(()=>uC,"hostUsesCaseSensitiveFileNames"),idText:t(()=>Xn,"idText"),identifierIsThisKeyword:t(()=>_X,"identifierIsThisKeyword"),identifierToKeywordKind:t(()=>HE,"identifierToKeywordKind"),identity:t(()=>qo,"identity"),identitySourceMapConsumer:t(()=>YQ,"identitySourceMapConsumer"),ignoreSourceNewlines:t(()=>yZ,"ignoreSourceNewlines"),ignoredPaths:t(()=>Hj,"ignoredPaths"),importFromModuleSpecifier:t(()=>N4,"importFromModuleSpecifier"),importSyntaxAffectsModuleResolution:t(()=>LX,"importSyntaxAffectsModuleResolution"),indexOfAnyCharCode:t(()=>bf,"indexOfAnyCharCode"),indexOfNode:t(()=>AA,"indexOfNode"),indicesOf:t(()=>Fj,"indicesOf"),inferredTypesContainingFile:t(()=>Y3,"inferredTypesContainingFile"),injectClassNamedEvaluationHelperBlockIfMissing:t(()=>g$,"injectClassNamedEvaluationHelperBlockIfMissing"),injectClassThisAssignmentIfMissing:t(()=>Xye,"injectClassThisAssignmentIfMissing"),insertImports:t(()=>nre,"insertImports"),insertSorted:t(()=>ob,"insertSorted"),insertStatementAfterCustomPrologue:t(()=>eC,"insertStatementAfterCustomPrologue"),insertStatementAfterStandardPrologue:t(()=>$7e,"insertStatementAfterStandardPrologue"),insertStatementsAfterCustomPrologue:t(()=>hK,"insertStatementsAfterCustomPrologue"),insertStatementsAfterStandardPrologue:t(()=>R0,"insertStatementsAfterStandardPrologue"),intersperse:t(()=>Jn,"intersperse"),intrinsicTagNameToString:t(()=>nZ,"intrinsicTagNameToString"),introducesArgumentsExoticObject:t(()=>Eme,"introducesArgumentsExoticObject"),inverseJsxOptionMap:t(()=>U5,"inverseJsxOptionMap"),isAbstractConstructorSymbol:t(()=>xhe,"isAbstractConstructorSymbol"),isAbstractModifier:t(()=>Bge,"isAbstractModifier"),isAccessExpression:t(()=>Zo,"isAccessExpression"),isAccessibilityModifier:t(()=>qte,"isAccessibilityModifier"),isAccessor:t(()=>Eb,"isAccessor"),isAccessorModifier:t(()=>zge,"isAccessorModifier"),isAliasableExpression:t(()=>rU,"isAliasableExpression"),isAmbientModule:t(()=>$f,"isAmbientModule"),isAmbientPropertyDeclaration:t(()=>kK,"isAmbientPropertyDeclaration"),isAnyDirectorySeparator:t(()=>PY,"isAnyDirectorySeparator"),isAnyImportOrBareOrAccessedRequire:t(()=>lme,"isAnyImportOrBareOrAccessedRequire"),isAnyImportOrReExport:t(()=>oF,"isAnyImportOrReExport"),isAnyImportOrRequireStatement:t(()=>ume,"isAnyImportOrRequireStatement"),isAnyImportSyntax:t(()=>kw,"isAnyImportSyntax"),isAnySupportedFileExtension:t(()=>vFe,"isAnySupportedFileExtension"),isApplicableVersionedTypesKey:t(()=>K5,"isApplicableVersionedTypesKey"),isArgumentExpressionOfElementAccess:t(()=>Fte,"isArgumentExpressionOfElementAccess"),isArray:t(()=>Bs,"isArray"),isArrayBindingElement:t(()=>mB,"isArrayBindingElement"),isArrayBindingOrAssignmentElement:t(()=>K7,"isArrayBindingOrAssignmentElement"),isArrayBindingOrAssignmentPattern:t(()=>iK,"isArrayBindingOrAssignmentPattern"),isArrayBindingPattern:t(()=>sv,"isArrayBindingPattern"),isArrayLiteralExpression:t(()=>Xu,"isArrayLiteralExpression"),isArrayLiteralOrObjectLiteralDestructuringPattern:t(()=>lv,"isArrayLiteralOrObjectLiteralDestructuringPattern"),isArrayTypeNode:t(()=>E5,"isArrayTypeNode"),isArrowFunction:t(()=>Qo,"isArrowFunction"),isAsExpression:t(()=>o6,"isAsExpression"),isAssertClause:t(()=>Gge,"isAssertClause"),isAssertEntry:t(()=>jFe,"isAssertEntry"),isAssertionExpression:t(()=>UT,"isAssertionExpression"),isAssertsKeyword:t(()=>Mge,"isAssertsKeyword"),isAssignmentDeclaration:t(()=>P4,"isAssignmentDeclaration"),isAssignmentExpression:t(()=>Su,"isAssignmentExpression"),isAssignmentOperator:t(()=>qy,"isAssignmentOperator"),isAssignmentPattern:t(()=>y4,"isAssignmentPattern"),isAssignmentTarget:t(()=>Ib,"isAssignmentTarget"),isAsteriskToken:t(()=>S5,"isAsteriskToken"),isAsyncFunction:t(()=>R4,"isAsyncFunction"),isAsyncModifier:t(()=>m3,"isAsyncModifier"),isAutoAccessorPropertyDeclaration:t(()=>E_,"isAutoAccessorPropertyDeclaration"),isAwaitExpression:t(()=>$b,"isAwaitExpression"),isAwaitKeyword:t(()=>xZ,"isAwaitKeyword"),isBigIntLiteral:t(()=>d3,"isBigIntLiteral"),isBinaryExpression:t(()=>Fn,"isBinaryExpression"),isBinaryLogicalOperator:t(()=>VF,"isBinaryLogicalOperator"),isBinaryOperatorToken:t(()=>T0e,"isBinaryOperatorToken"),isBindableObjectDefinePropertyCall:t(()=>sC,"isBindableObjectDefinePropertyCall"),isBindableStaticAccessExpression:t(()=>HT,"isBindableStaticAccessExpression"),isBindableStaticElementAccessExpression:t(()=>QB,"isBindableStaticElementAccessExpression"),isBindableStaticNameExpression:t(()=>aC,"isBindableStaticNameExpression"),isBindingElement:t(()=>qa,"isBindingElement"),isBindingElementOfBareOrAccessedRequire:t(()=>Ome,"isBindingElementOfBareOrAccessedRequire"),isBindingName:t(()=>XE,"isBindingName"),isBindingOrAssignmentElement:t(()=>Fde,"isBindingOrAssignmentElement"),isBindingOrAssignmentPattern:t(()=>G7,"isBindingOrAssignmentPattern"),isBindingPattern:t(()=>ra,"isBindingPattern"),isBlock:t(()=>Zs,"isBlock"),isBlockLike:t(()=>wD,"isBlockLike"),isBlockOrCatchScoped:t(()=>bK,"isBlockOrCatchScoped"),isBlockScope:t(()=>wK,"isBlockScope"),isBlockScopedContainerTopLevel:t(()=>cme,"isBlockScopedContainerTopLevel"),isBooleanLiteral:t(()=>g4,"isBooleanLiteral"),isBreakOrContinueStatement:t(()=>p4,"isBreakOrContinueStatement"),isBreakStatement:t(()=>LFe,"isBreakStatement"),isBuildCommand:t(()=>Ove,"isBuildCommand"),isBuildInfoFile:t(()=>C1e,"isBuildInfoFile"),isBuilderProgram:t(()=>Hee,"isBuilderProgram"),isBundle:t(()=>Zge,"isBundle"),isCallChain:t(()=>GE,"isCallChain"),isCallExpression:t(()=>la,"isCallExpression"),isCallExpressionTarget:t(()=>Dte,"isCallExpressionTarget"),isCallLikeExpression:t(()=>BT,"isCallLikeExpression"),isCallLikeOrFunctionLikeExpression:t(()=>sK,"isCallLikeOrFunctionLikeExpression"),isCallOrNewExpression:t(()=>Bh,"isCallOrNewExpression"),isCallOrNewExpressionTarget:t(()=>Pte,"isCallOrNewExpressionTarget"),isCallSignatureDeclaration:t(()=>rD,"isCallSignatureDeclaration"),isCallToHelper:t(()=>p3,"isCallToHelper"),isCaseBlock:t(()=>T3,"isCaseBlock"),isCaseClause:t(()=>f6,"isCaseClause"),isCaseKeyword:t(()=>$ge,"isCaseKeyword"),isCaseOrDefaultClause:t(()=>vB,"isCaseOrDefaultClause"),isCatchClause:t(()=>dx,"isCatchClause"),isCatchClauseVariableDeclaration:t(()=>nge,"isCatchClauseVariableDeclaration"),isCatchClauseVariableDeclarationOrBindingElement:t(()=>SK,"isCatchClauseVariableDeclarationOrBindingElement"),isCheckJsEnabledForFile:t(()=>t3,"isCheckJsEnabledForFile"),isCircularBuildOrder:t(()=>xD,"isCircularBuildOrder"),isClassDeclaration:t(()=>Bl,"isClassDeclaration"),isClassElement:t(()=>xl,"isClassElement"),isClassExpression:t(()=>jl,"isClassExpression"),isClassInstanceProperty:t(()=>Ide,"isClassInstanceProperty"),isClassLike:t(()=>yi,"isClassLike"),isClassMemberModifier:t(()=>tK,"isClassMemberModifier"),isClassNamedEvaluationHelperBlock:t(()=>bD,"isClassNamedEvaluationHelperBlock"),isClassOrTypeElement:t(()=>dB,"isClassOrTypeElement"),isClassStaticBlockDeclaration:t(()=>Xc,"isClassStaticBlockDeclaration"),isClassThisAssignmentBlock:t(()=>J3,"isClassThisAssignmentBlock"),isColonToken:t(()=>Lge,"isColonToken"),isCommaExpression:t(()=>N5,"isCommaExpression"),isCommaListExpression:t(()=>b3,"isCommaListExpression"),isCommaSequence:t(()=>w3,"isCommaSequence"),isCommaToken:t(()=>Fge,"isCommaToken"),isComment:t(()=>dJ,"isComment"),isCommonJsExportPropertyAssignment:t(()=>BB,"isCommonJsExportPropertyAssignment"),isCommonJsExportedExpression:t(()=>Tme,"isCommonJsExportedExpression"),isCompoundAssignment:t(()=>U3,"isCompoundAssignment"),isComputedNonLiteralName:t(()=>cF,"isComputedNonLiteralName"),isComputedPropertyName:t(()=>Ia,"isComputedPropertyName"),isConciseBody:t(()=>gB,"isConciseBody"),isConditionalExpression:t(()=>SC,"isConditionalExpression"),isConditionalTypeNode:t(()=>cx,"isConditionalTypeNode"),isConstAssertion:t(()=>iZ,"isConstAssertion"),isConstTypeReference:t(()=>Pm,"isConstTypeReference"),isConstructSignatureDeclaration:t(()=>x5,"isConstructSignatureDeclaration"),isConstructorDeclaration:t(()=>wc,"isConstructorDeclaration"),isConstructorTypeNode:t(()=>i6,"isConstructorTypeNode"),isContextualKeyword:t(()=>iU,"isContextualKeyword"),isContinueStatement:t(()=>FFe,"isContinueStatement"),isCustomPrologue:t(()=>pF,"isCustomPrologue"),isDebuggerStatement:t(()=>RFe,"isDebuggerStatement"),isDeclaration:t(()=>gu,"isDeclaration"),isDeclarationBindingElement:t(()=>H7,"isDeclarationBindingElement"),isDeclarationFileName:t(()=>uu,"isDeclarationFileName"),isDeclarationName:t(()=>Gg,"isDeclarationName"),isDeclarationNameOfEnumOrNamespace:t(()=>kX,"isDeclarationNameOfEnumOrNamespace"),isDeclarationReadonly:t(()=>uF,"isDeclarationReadonly"),isDeclarationStatement:t(()=>$de,"isDeclarationStatement"),isDeclarationWithTypeParameterChildren:t(()=>PK,"isDeclarationWithTypeParameterChildren"),isDeclarationWithTypeParameters:t(()=>DK,"isDeclarationWithTypeParameters"),isDecorator:t(()=>ou,"isDecorator"),isDecoratorTarget:t(()=>sbe,"isDecoratorTarget"),isDefaultClause:t(()=>x3,"isDefaultClause"),isDefaultImport:t(()=>oC,"isDefaultImport"),isDefaultModifier:t(()=>pz,"isDefaultModifier"),isDefaultedExpandoInitializer:t(()=>Fme,"isDefaultedExpandoInitializer"),isDeleteExpression:t(()=>Wge,"isDeleteExpression"),isDeleteTarget:t(()=>VK,"isDeleteTarget"),isDeprecatedDeclaration:t(()=>OJ,"isDeprecatedDeclaration"),isDestructuringAssignment:t(()=>X1,"isDestructuringAssignment"),isDiskPathRoot:t(()=>AY,"isDiskPathRoot"),isDoStatement:t(()=>OFe,"isDoStatement"),isDocumentRegistryEntry:t(()=>HL,"isDocumentRegistryEntry"),isDotDotDotToken:t(()=>fz,"isDotDotDotToken"),isDottedName:t(()=>GF,"isDottedName"),isDynamicName:t(()=>aU,"isDynamicName"),isEffectiveExternalModule:t(()=>NA,"isEffectiveExternalModule"),isEffectiveStrictModeSourceFile:t(()=>CK,"isEffectiveStrictModeSourceFile"),isElementAccessChain:t(()=>YY,"isElementAccessChain"),isElementAccessExpression:t(()=>$o,"isElementAccessExpression"),isEmittedFileOfProgram:t(()=>I1e,"isEmittedFileOfProgram"),isEmptyArrayLiteral:t(()=>dhe,"isEmptyArrayLiteral"),isEmptyBindingElement:t(()=>fde,"isEmptyBindingElement"),isEmptyBindingPattern:t(()=>ude,"isEmptyBindingPattern"),isEmptyObjectLiteral:t(()=>SX,"isEmptyObjectLiteral"),isEmptyStatement:t(()=>kZ,"isEmptyStatement"),isEmptyStringLiteral:t(()=>RK,"isEmptyStringLiteral"),isEntityName:t(()=>n_,"isEntityName"),isEntityNameExpression:t(()=>No,"isEntityNameExpression"),isEnumConst:t(()=>jS,"isEnumConst"),isEnumDeclaration:t(()=>fx,"isEnumDeclaration"),isEnumMember:t(()=>av,"isEnumMember"),isEqualityOperatorKind:t(()=>kJ,"isEqualityOperatorKind"),isEqualsGreaterThanToken:t(()=>Rge,"isEqualsGreaterThanToken"),isExclamationToken:t(()=>T5,"isExclamationToken"),isExcludedFile:t(()=>Q0e,"isExcludedFile"),isExclusivelyTypeOnlyImportOrExport:t(()=>Cee,"isExclusivelyTypeOnlyImportOrExport"),isExpandoPropertyDeclaration:t(()=>Yw,"isExpandoPropertyDeclaration"),isExportAssignment:t(()=>lc,"isExportAssignment"),isExportDeclaration:t(()=>yl,"isExportDeclaration"),isExportModifier:t(()=>eD,"isExportModifier"),isExportName:t(()=>wz,"isExportName"),isExportNamespaceAsDefaultDeclaration:t(()=>NB,"isExportNamespaceAsDefaultDeclaration"),isExportOrDefaultModifier:t(()=>L5,"isExportOrDefaultModifier"),isExportSpecifier:t(()=>kf,"isExportSpecifier"),isExportsIdentifier:t(()=>iC,"isExportsIdentifier"),isExportsOrModuleExportsOrAlias:t(()=>gx,"isExportsOrModuleExportsOrAlias"),isExpression:t(()=>kt,"isExpression"),isExpressionNode:t(()=>nh,"isExpressionNode"),isExpressionOfExternalModuleImportEqualsDeclaration:t(()=>cbe,"isExpressionOfExternalModuleImportEqualsDeclaration"),isExpressionOfOptionalChainRoot:t(()=>uB,"isExpressionOfOptionalChainRoot"),isExpressionStatement:t(()=>Tu,"isExpressionStatement"),isExpressionWithTypeArguments:t(()=>Yy,"isExpressionWithTypeArguments"),isExpressionWithTypeArgumentsInClassExtendsClause:t(()=>vU,"isExpressionWithTypeArgumentsInClassExtendsClause"),isExternalModule:t(()=>Gl,"isExternalModule"),isExternalModuleAugmentation:t(()=>JT,"isExternalModuleAugmentation"),isExternalModuleImportEqualsDeclaration:t(()=>BS,"isExternalModuleImportEqualsDeclaration"),isExternalModuleIndicator:t(()=>Z7,"isExternalModuleIndicator"),isExternalModuleNameRelative:t(()=>mu,"isExternalModuleNameRelative"),isExternalModuleReference:t(()=>Ky,"isExternalModuleReference"),isExternalModuleSymbol:t(()=>Tw,"isExternalModuleSymbol"),isExternalOrCommonJsModule:t(()=>lp,"isExternalOrCommonJsModule"),isFileLevelReservedGeneratedIdentifier:t(()=>V7,"isFileLevelReservedGeneratedIdentifier"),isFileLevelUniqueName:t(()=>PB,"isFileLevelUniqueName"),isFileProbablyExternalModule:t(()=>j5,"isFileProbablyExternalModule"),isFirstDeclarationOfSymbolParameter:t(()=>lre,"isFirstDeclarationOfSymbolParameter"),isFixablePromiseHandler:t(()=>$re,"isFixablePromiseHandler"),isForInOrOfStatement:t(()=>ZE,"isForInOrOfStatement"),isForInStatement:t(()=>yz,"isForInStatement"),isForInitializer:t(()=>Dd,"isForInitializer"),isForOfStatement:t(()=>k5,"isForOfStatement"),isForStatement:t(()=>QS,"isForStatement"),isFullSourceFile:t(()=>j0,"isFullSourceFile"),isFunctionBlock:t(()=>WT,"isFunctionBlock"),isFunctionBody:t(()=>oK,"isFunctionBody"),isFunctionDeclaration:t(()=>nl,"isFunctionDeclaration"),isFunctionExpression:t(()=>Ho,"isFunctionExpression"),isFunctionExpressionOrArrowFunction:t(()=>jb,"isFunctionExpressionOrArrowFunction"),isFunctionLike:t(()=>Gs,"isFunctionLike"),isFunctionLikeDeclaration:t(()=>Uo,"isFunctionLikeDeclaration"),isFunctionLikeKind:t(()=>yw,"isFunctionLikeKind"),isFunctionLikeOrClassStaticBlockDeclaration:t(()=>kA,"isFunctionLikeOrClassStaticBlockDeclaration"),isFunctionOrConstructorTypeNode:t(()=>Ode,"isFunctionOrConstructorTypeNode"),isFunctionOrModuleBlock:t(()=>rK,"isFunctionOrModuleBlock"),isFunctionSymbol:t(()=>Mme,"isFunctionSymbol"),isFunctionTypeNode:t(()=>Kg,"isFunctionTypeNode"),isGeneratedIdentifier:t(()=>_c,"isGeneratedIdentifier"),isGeneratedPrivateIdentifier:t(()=>KE,"isGeneratedPrivateIdentifier"),isGetAccessor:t(()=>O0,"isGetAccessor"),isGetAccessorDeclaration:t(()=>Md,"isGetAccessorDeclaration"),isGetOrSetAccessorDeclaration:t(()=>q7,"isGetOrSetAccessorDeclaration"),isGlobalScopeAugmentation:t(()=>Hg,"isGlobalScopeAugmentation"),isGlobalSourceFile:t(()=>G1,"isGlobalSourceFile"),isGrammarError:t(()=>tme,"isGrammarError"),isHeritageClause:t(()=>pp,"isHeritageClause"),isHoistedFunction:t(()=>MB,"isHoistedFunction"),isHoistedVariableStatement:t(()=>jB,"isHoistedVariableStatement"),isIdentifier:t(()=>Ye,"isIdentifier"),isIdentifierANonContextualKeyword:t(()=>XK,"isIdentifierANonContextualKeyword"),isIdentifierName:t(()=>qme,"isIdentifierName"),isIdentifierOrThisTypeNode:t(()=>y0e,"isIdentifierOrThisTypeNode"),isIdentifierPart:t(()=>jy,"isIdentifierPart"),isIdentifierStart:t(()=>Jg,"isIdentifierStart"),isIdentifierText:t(()=>U_,"isIdentifierText"),isIdentifierTypePredicate:t(()=>Cme,"isIdentifierTypePredicate"),isIdentifierTypeReference:t(()=>Zhe,"isIdentifierTypeReference"),isIfStatement:t(()=>ZS,"isIfStatement"),isIgnoredFileFromWildCardWatching:t(()=>fL,"isIgnoredFileFromWildCardWatching"),isImplicitGlob:t(()=>UX,"isImplicitGlob"),isImportAttribute:t(()=>Yge,"isImportAttribute"),isImportAttributeName:t(()=>Nde,"isImportAttributeName"),isImportAttributes:t(()=>xC,"isImportAttributes"),isImportCall:t(()=>Mp,"isImportCall"),isImportClause:t(()=>Lm,"isImportClause"),isImportDeclaration:t(()=>Tc,"isImportDeclaration"),isImportEqualsDeclaration:t(()=>lu,"isImportEqualsDeclaration"),isImportKeyword:t(()=>g3,"isImportKeyword"),isImportMeta:t(()=>FA,"isImportMeta"),isImportOrExportSpecifier:t(()=>Tb,"isImportOrExportSpecifier"),isImportOrExportSpecifierName:t(()=>Obe,"isImportOrExportSpecifierName"),isImportSpecifier:t(()=>Gf,"isImportSpecifier"),isImportTypeAssertionContainer:t(()=>MFe,"isImportTypeAssertionContainer"),isImportTypeNode:t(()=>Zh,"isImportTypeNode"),isImportable:t(()=>Are,"isImportable"),isInComment:t(()=>cv,"isInComment"),isInCompoundLikeAssignment:t(()=>qK,"isInCompoundLikeAssignment"),isInExpressionContext:t(()=>HB,"isInExpressionContext"),isInJSDoc:t(()=>bF,"isInJSDoc"),isInJSFile:t(()=>xn,"isInJSFile"),isInJSXText:t(()=>mbe,"isInJSXText"),isInJsonFile:t(()=>YB,"isInJsonFile"),isInNonReferenceComment:t(()=>Sbe,"isInNonReferenceComment"),isInReferenceComment:t(()=>bbe,"isInReferenceComment"),isInRightSideOfInternalImportEqualsDeclaration:t(()=>rJ,"isInRightSideOfInternalImportEqualsDeclaration"),isInString:t(()=>ED,"isInString"),isInTemplateString:t(()=>zte,"isInTemplateString"),isInTopLevelContext:t(()=>WB,"isInTopLevelContext"),isInTypeQuery:t(()=>Lw,"isInTypeQuery"),isIncrementalBuildInfo:t(()=>gL,"isIncrementalBuildInfo"),isIncrementalBundleEmitBuildInfo:t(()=>Q1e,"isIncrementalBundleEmitBuildInfo"),isIncrementalCompilation:t(()=>nx,"isIncrementalCompilation"),isIndexSignatureDeclaration:t(()=>zb,"isIndexSignatureDeclaration"),isIndexedAccessTypeNode:t(()=>lx,"isIndexedAccessTypeNode"),isInferTypeNode:t(()=>yC,"isInferTypeNode"),isInfinityOrNaNString:t(()=>a3,"isInfinityOrNaNString"),isInitializedProperty:t(()=>tL,"isInitializedProperty"),isInitializedVariable:t(()=>ZF,"isInitializedVariable"),isInsideJsxElement:t(()=>_J,"isInsideJsxElement"),isInsideJsxElementOrAttribute:t(()=>dbe,"isInsideJsxElementOrAttribute"),isInsideNodeModules:t(()=>$L,"isInsideNodeModules"),isInsideTemplateLiteral:t(()=>NL,"isInsideTemplateLiteral"),isInstanceOfExpression:t(()=>bU,"isInstanceOfExpression"),isInstantiatedModule:t(()=>$Q,"isInstantiatedModule"),isInterfaceDeclaration:t(()=>Zu,"isInterfaceDeclaration"),isInternalDeclaration:t(()=>Gde,"isInternalDeclaration"),isInternalModuleImportEqualsDeclaration:t(()=>nC,"isInternalModuleImportEqualsDeclaration"),isInternalName:t(()=>$Z,"isInternalName"),isIntersectionTypeNode:t(()=>sD,"isIntersectionTypeNode"),isIntrinsicJsxName:t(()=>qA,"isIntrinsicJsxName"),isIterationStatement:t(()=>Cb,"isIterationStatement"),isJSDoc:t(()=>lh,"isJSDoc"),isJSDocAllType:t(()=>t0e,"isJSDocAllType"),isJSDocAugmentsTag:t(()=>uD,"isJSDocAugmentsTag"),isJSDocAuthorTag:t(()=>$Fe,"isJSDocAuthorTag"),isJSDocCallbackTag:t(()=>AZ,"isJSDocCallbackTag"),isJSDocClassTag:t(()=>n0e,"isJSDocClassTag"),isJSDocCommentContainingNode:t(()=>bB,"isJSDocCommentContainingNode"),isJSDocConstructSignature:t(()=>Iw,"isJSDocConstructSignature"),isJSDocDeprecatedTag:t(()=>LZ,"isJSDocDeprecatedTag"),isJSDocEnumTag:t(()=>D5,"isJSDocEnumTag"),isJSDocFunctionType:t(()=>p6,"isJSDocFunctionType"),isJSDocImplementsTag:t(()=>Ez,"isJSDocImplementsTag"),isJSDocImportTag:t(()=>ng,"isJSDocImportTag"),isJSDocIndexSignature:t(()=>XB,"isJSDocIndexSignature"),isJSDocLikeText:t(()=>XZ,"isJSDocLikeText"),isJSDocLink:t(()=>Qge,"isJSDocLink"),isJSDocLinkCode:t(()=>e0e,"isJSDocLinkCode"),isJSDocLinkLike:t(()=>Sw,"isJSDocLinkLike"),isJSDocLinkPlain:t(()=>UFe,"isJSDocLinkPlain"),isJSDocMemberName:t(()=>r2,"isJSDocMemberName"),isJSDocNameReference:t(()=>E3,"isJSDocNameReference"),isJSDocNamepathType:t(()=>zFe,"isJSDocNamepathType"),isJSDocNamespaceBody:t(()=>L7e,"isJSDocNamespaceBody"),isJSDocNode:t(()=>wA,"isJSDocNode"),isJSDocNonNullableType:t(()=>bz,"isJSDocNonNullableType"),isJSDocNullableType:t(()=>_6,"isJSDocNullableType"),isJSDocOptionalParameter:t(()=>XU,"isJSDocOptionalParameter"),isJSDocOptionalType:t(()=>PZ,"isJSDocOptionalType"),isJSDocOverloadTag:t(()=>d6,"isJSDocOverloadTag"),isJSDocOverrideTag:t(()=>Tz,"isJSDocOverrideTag"),isJSDocParameterTag:t(()=>ad,"isJSDocParameterTag"),isJSDocPrivateTag:t(()=>IZ,"isJSDocPrivateTag"),isJSDocPropertyLikeTag:t(()=>d4,"isJSDocPropertyLikeTag"),isJSDocPropertyTag:t(()=>i0e,"isJSDocPropertyTag"),isJSDocProtectedTag:t(()=>OZ,"isJSDocProtectedTag"),isJSDocPublicTag:t(()=>NZ,"isJSDocPublicTag"),isJSDocReadonlyTag:t(()=>FZ,"isJSDocReadonlyTag"),isJSDocReturnTag:t(()=>xz,"isJSDocReturnTag"),isJSDocSatisfiesExpression:t(()=>tZ,"isJSDocSatisfiesExpression"),isJSDocSatisfiesTag:t(()=>Cz,"isJSDocSatisfiesTag"),isJSDocSeeTag:t(()=>JFe,"isJSDocSeeTag"),isJSDocSignature:t(()=>ov,"isJSDocSignature"),isJSDocTag:t(()=>DA,"isJSDocTag"),isJSDocTemplateTag:t(()=>_m,"isJSDocTemplateTag"),isJSDocThisTag:t(()=>RZ,"isJSDocThisTag"),isJSDocThrowsTag:t(()=>qFe,"isJSDocThrowsTag"),isJSDocTypeAlias:t(()=>om,"isJSDocTypeAlias"),isJSDocTypeAssertion:t(()=>mx,"isJSDocTypeAssertion"),isJSDocTypeExpression:t(()=>t2,"isJSDocTypeExpression"),isJSDocTypeLiteral:t(()=>CC,"isJSDocTypeLiteral"),isJSDocTypeTag:t(()=>C3,"isJSDocTypeTag"),isJSDocTypedefTag:t(()=>kC,"isJSDocTypedefTag"),isJSDocUnknownTag:t(()=>WFe,"isJSDocUnknownTag"),isJSDocUnknownType:t(()=>r0e,"isJSDocUnknownType"),isJSDocVariadicType:t(()=>Sz,"isJSDocVariadicType"),isJSXTagName:t(()=>MA,"isJSXTagName"),isJsonEqual:t(()=>VU,"isJsonEqual"),isJsonSourceFile:t(()=>Ad,"isJsonSourceFile"),isJsxAttribute:t(()=>rg,"isJsxAttribute"),isJsxAttributeLike:t(()=>yB,"isJsxAttributeLike"),isJsxAttributeName:t(()=>age,"isJsxAttributeName"),isJsxAttributes:t(()=>px,"isJsxAttributes"),isJsxCallLike:t(()=>Vde,"isJsxCallLike"),isJsxChild:t(()=>tF,"isJsxChild"),isJsxClosingElement:t(()=>_x,"isJsxClosingElement"),isJsxClosingFragment:t(()=>Xge,"isJsxClosingFragment"),isJsxElement:t(()=>tg,"isJsxElement"),isJsxExpression:t(()=>u6,"isJsxExpression"),isJsxFragment:t(()=>e2,"isJsxFragment"),isJsxNamespacedName:t(()=>ch,"isJsxNamespacedName"),isJsxOpeningElement:t(()=>oh,"isJsxOpeningElement"),isJsxOpeningFragment:t(()=>Rm,"isJsxOpeningFragment"),isJsxOpeningLikeElement:t(()=>Ef,"isJsxOpeningLikeElement"),isJsxOpeningLikeElementTagName:t(()=>abe,"isJsxOpeningLikeElementTagName"),isJsxSelfClosingElement:t(()=>EC,"isJsxSelfClosingElement"),isJsxSpreadAttribute:t(()=>lD,"isJsxSpreadAttribute"),isJsxTagNameExpression:t(()=>v4,"isJsxTagNameExpression"),isJsxText:t(()=>Zw,"isJsxText"),isJumpStatementTarget:t(()=>wL,"isJumpStatementTarget"),isKeyword:t(()=>w_,"isKeyword"),isKeywordOrPunctuation:t(()=>nU,"isKeywordOrPunctuation"),isKnownSymbol:t(()=>UF,"isKnownSymbol"),isLabelName:t(()=>Ite,"isLabelName"),isLabelOfLabeledStatement:t(()=>Nte,"isLabelOfLabeledStatement"),isLabeledStatement:t(()=>Jb,"isLabeledStatement"),isLateVisibilityPaintedStatement:t(()=>OB,"isLateVisibilityPaintedStatement"),isLeftHandSideExpression:t(()=>C_,"isLeftHandSideExpression"),isLet:t(()=>RB,"isLet"),isLineBreak:t(()=>Tf,"isLineBreak"),isLiteralComputedPropertyDeclarationName:t(()=>RF,"isLiteralComputedPropertyDeclarationName"),isLiteralExpression:t(()=>YE,"isLiteralExpression"),isLiteralExpressionOfObject:t(()=>QY,"isLiteralExpressionOfObject"),isLiteralImportTypeNode:t(()=>zy,"isLiteralImportTypeNode"),isLiteralKind:t(()=>m4,"isLiteralKind"),isLiteralNameOfPropertyDeclarationOrIndexAccess:t(()=>sJ,"isLiteralNameOfPropertyDeclarationOrIndexAccess"),isLiteralTypeLiteral:t(()=>Mde,"isLiteralTypeLiteral"),isLiteralTypeNode:t(()=>iv,"isLiteralTypeNode"),isLocalName:t(()=>Xy,"isLocalName"),isLogicalOperator:t(()=>fhe,"isLogicalOperator"),isLogicalOrCoalescingAssignmentExpression:t(()=>gX,"isLogicalOrCoalescingAssignmentExpression"),isLogicalOrCoalescingAssignmentOperator:t(()=>$4,"isLogicalOrCoalescingAssignmentOperator"),isLogicalOrCoalescingBinaryExpression:t(()=>HF,"isLogicalOrCoalescingBinaryExpression"),isLogicalOrCoalescingBinaryOperator:t(()=>yU,"isLogicalOrCoalescingBinaryOperator"),isMappedTypeNode:t(()=>bC,"isMappedTypeNode"),isMemberName:t(()=>I0,"isMemberName"),isMetaProperty:t(()=>v3,"isMetaProperty"),isMethodDeclaration:t(()=>Jc,"isMethodDeclaration"),isMethodOrAccessor:t(()=>vw,"isMethodOrAccessor"),isMethodSignature:t(()=>Fm,"isMethodSignature"),isMinusToken:t(()=>TZ,"isMinusToken"),isMissingDeclaration:t(()=>BFe,"isMissingDeclaration"),isMissingPackageJsonInfo:t(()=>fye,"isMissingPackageJsonInfo"),isModifier:t(()=>wa,"isModifier"),isModifierKind:t(()=>xb,"isModifierKind"),isModifierLike:t(()=>pc,"isModifierLike"),isModuleAugmentationExternal:t(()=>xK,"isModuleAugmentationExternal"),isModuleBlock:t(()=>Qh,"isModuleBlock"),isModuleBody:t(()=>Bde,"isModuleBody"),isModuleDeclaration:t(()=>El,"isModuleDeclaration"),isModuleExportName:t(()=>vz,"isModuleExportName"),isModuleExportsAccessExpression:t(()=>B0,"isModuleExportsAccessExpression"),isModuleIdentifier:t(()=>BK,"isModuleIdentifier"),isModuleName:t(()=>S0e,"isModuleName"),isModuleOrEnumDeclaration:t(()=>Q7,"isModuleOrEnumDeclaration"),isModuleReference:t(()=>Wde,"isModuleReference"),isModuleSpecifierLike:t(()=>bJ,"isModuleSpecifierLike"),isModuleWithStringLiteralName:t(()=>IB,"isModuleWithStringLiteralName"),isNameOfFunctionDeclaration:t(()=>Rte,"isNameOfFunctionDeclaration"),isNameOfModuleDeclaration:t(()=>Lte,"isNameOfModuleDeclaration"),isNamedDeclaration:t(()=>hu,"isNamedDeclaration"),isNamedEvaluation:t(()=>up,"isNamedEvaluation"),isNamedEvaluationSource:t(()=>ZK,"isNamedEvaluationSource"),isNamedExportBindings:t(()=>XY,"isNamedExportBindings"),isNamedExports:t(()=>Bd,"isNamedExports"),isNamedImportBindings:t(()=>cK,"isNamedImportBindings"),isNamedImports:t(()=>eg,"isNamedImports"),isNamedImportsOrExports:t(()=>wU,"isNamedImportsOrExports"),isNamedTupleMember:t(()=>s6,"isNamedTupleMember"),isNamespaceBody:t(()=>F7e,"isNamespaceBody"),isNamespaceExport:t(()=>Xg,"isNamespaceExport"),isNamespaceExportDeclaration:t(()=>w5,"isNamespaceExportDeclaration"),isNamespaceImport:t(()=>G0,"isNamespaceImport"),isNamespaceReexportDeclaration:t(()=>Ime,"isNamespaceReexportDeclaration"),isNewExpression:t(()=>ux,"isNewExpression"),isNewExpressionTarget:t(()=>t8,"isNewExpressionTarget"),isNewScopeNode:t(()=>pge,"isNewScopeNode"),isNoSubstitutionTemplateLiteral:t(()=>gC,"isNoSubstitutionTemplateLiteral"),isNodeArray:t(()=>MT,"isNodeArray"),isNodeArrayMultiLine:t(()=>bhe,"isNodeArrayMultiLine"),isNodeDescendantOf:t(()=>YT,"isNodeDescendantOf"),isNodeKind:t(()=>_B,"isNodeKind"),isNodeLikeSystem:t(()=>sY,"isNodeLikeSystem"),isNodeModulesDirectory:t(()=>Zj,"isNodeModulesDirectory"),isNodeWithPossibleHoistedDeclaration:t(()=>Jme,"isNodeWithPossibleHoistedDeclaration"),isNonContextualKeyword:t(()=>KK,"isNonContextualKeyword"),isNonGlobalAmbientModule:t(()=>TK,"isNonGlobalAmbientModule"),isNonNullAccess:t(()=>sge,"isNonNullAccess"),isNonNullChain:t(()=>fB,"isNonNullChain"),isNonNullExpression:t(()=>oD,"isNonNullExpression"),isNonStaticMethodOrAccessorWithPrivateName:t(()=>Wye,"isNonStaticMethodOrAccessorWithPrivateName"),isNotEmittedStatement:t(()=>Kge,"isNotEmittedStatement"),isNullishCoalesce:t(()=>KY,"isNullishCoalesce"),isNumber:t(()=>ub,"isNumber"),isNumericLiteral:t(()=>P_,"isNumericLiteral"),isNumericLiteralName:t(()=>V0,"isNumericLiteralName"),isObjectBindingElementWithoutPropertyName:t(()=>LL,"isObjectBindingElementWithoutPropertyName"),isObjectBindingOrAssignmentElement:t(()=>Y7,"isObjectBindingOrAssignmentElement"),isObjectBindingOrAssignmentPattern:t(()=>nK,"isObjectBindingOrAssignmentPattern"),isObjectBindingPattern:t(()=>sd,"isObjectBindingPattern"),isObjectLiteralElement:t(()=>lK,"isObjectLiteralElement"),isObjectLiteralElementLike:t(()=>Uy,"isObjectLiteralElementLike"),isObjectLiteralExpression:t(()=>ja,"isObjectLiteralExpression"),isObjectLiteralMethod:t(()=>am,"isObjectLiteralMethod"),isObjectLiteralOrClassExpressionMethodOrAccessor:t(()=>UB,"isObjectLiteralOrClassExpressionMethodOrAccessor"),isObjectTypeDeclaration:t(()=>Uw,"isObjectTypeDeclaration"),isOmittedExpression:t(()=>cu,"isOmittedExpression"),isOptionalChain:t(()=>xf,"isOptionalChain"),isOptionalChainRoot:t(()=>f4,"isOptionalChainRoot"),isOptionalDeclaration:t(()=>Hw,"isOptionalDeclaration"),isOptionalJSDocPropertyLikeTag:t(()=>_5,"isOptionalJSDocPropertyLikeTag"),isOptionalTypeNode:t(()=>dz,"isOptionalTypeNode"),isOuterExpression:t(()=>Dz,"isOuterExpression"),isOutermostOptionalChain:t(()=>_4,"isOutermostOptionalChain"),isOverrideModifier:t(()=>Uge,"isOverrideModifier"),isPackageJsonInfo:t(()=>Qz,"isPackageJsonInfo"),isPackedArrayLiteral:t(()=>QX,"isPackedArrayLiteral"),isParameter:t(()=>rs,"isParameter"),isParameterPropertyDeclaration:t(()=>op,"isParameterPropertyDeclaration"),isParameterPropertyModifier:t(()=>h4,"isParameterPropertyModifier"),isParenthesizedExpression:t(()=>c_,"isParenthesizedExpression"),isParenthesizedTypeNode:t(()=>vC,"isParenthesizedTypeNode"),isParseTreeNode:t(()=>u4,"isParseTreeNode"),isPartOfParameterDeclaration:t(()=>WS,"isPartOfParameterDeclaration"),isPartOfTypeNode:t(()=>Jh,"isPartOfTypeNode"),isPartOfTypeOnlyImportOrExportDeclaration:t(()=>Ade,"isPartOfTypeOnlyImportOrExportDeclaration"),isPartOfTypeQuery:t(()=>GB,"isPartOfTypeQuery"),isPartiallyEmittedExpression:t(()=>qge,"isPartiallyEmittedExpression"),isPatternMatch:t(()=>jj,"isPatternMatch"),isPinnedComment:t(()=>AB,"isPinnedComment"),isPlainJsFile:t(()=>S4,"isPlainJsFile"),isPlusToken:t(()=>SZ,"isPlusToken"),isPossiblyTypeArgumentPosition:t(()=>AL,"isPossiblyTypeArgumentPosition"),isPostfixUnaryExpression:t(()=>CZ,"isPostfixUnaryExpression"),isPrefixUnaryExpression:t(()=>XS,"isPrefixUnaryExpression"),isPrimitiveLiteralValue:t(()=>ez,"isPrimitiveLiteralValue"),isPrivateIdentifier:t(()=>Qi,"isPrivateIdentifier"),isPrivateIdentifierClassElementDeclaration:t(()=>zf,"isPrivateIdentifierClassElementDeclaration"),isPrivateIdentifierPropertyAccessExpression:t(()=>CA,"isPrivateIdentifierPropertyAccessExpression"),isPrivateIdentifierSymbol:t(()=>Gme,"isPrivateIdentifierSymbol"),isProgramUptoDate:t(()=>Pee,"isProgramUptoDate"),isPrologueDirective:t(()=>$h,"isPrologueDirective"),isPropertyAccessChain:t(()=>lB,"isPropertyAccessChain"),isPropertyAccessEntityNameExpression:t(()=>YF,"isPropertyAccessEntityNameExpression"),isPropertyAccessExpression:t(()=>Hn,"isPropertyAccessExpression"),isPropertyAccessOrQualifiedName:t(()=>X7,"isPropertyAccessOrQualifiedName"),isPropertyAccessOrQualifiedNameOrImportTypeNode:t(()=>Lde,"isPropertyAccessOrQualifiedNameOrImportTypeNode"),isPropertyAssignment:t(()=>Ul,"isPropertyAssignment"),isPropertyDeclaration:t(()=>As,"isPropertyDeclaration"),isPropertyName:t(()=>Tl,"isPropertyName"),isPropertyNameLiteral:t(()=>qh,"isPropertyNameLiteral"),isPropertySignature:t(()=>Hf,"isPropertySignature"),isPrototypeAccess:t(()=>Lb,"isPrototypeAccess"),isPrototypePropertyAssignment:t(()=>DF,"isPrototypePropertyAssignment"),isPunctuation:t(()=>YK,"isPunctuation"),isPushOrUnshiftIdentifier:t(()=>QK,"isPushOrUnshiftIdentifier"),isQualifiedName:t(()=>a_,"isQualifiedName"),isQuestionDotToken:t(()=>_z,"isQuestionDotToken"),isQuestionOrExclamationToken:t(()=>g0e,"isQuestionOrExclamationToken"),isQuestionOrPlusOrMinusToken:t(()=>b0e,"isQuestionOrPlusOrMinusToken"),isQuestionToken:t(()=>Ub,"isQuestionToken"),isReadonlyKeyword:t(()=>jge,"isReadonlyKeyword"),isReadonlyKeywordOrPlusOrMinusToken:t(()=>v0e,"isReadonlyKeywordOrPlusOrMinusToken"),isRecognizedTripleSlashComment:t(()=>gK,"isRecognizedTripleSlashComment"),isReferenceFileLocation:t(()=>I6,"isReferenceFileLocation"),isReferencedFile:t(()=>u2,"isReferencedFile"),isRegularExpressionLiteral:t(()=>vZ,"isRegularExpressionLiteral"),isRequireCall:t(()=>k_,"isRequireCall"),isRequireVariableStatement:t(()=>TF,"isRequireVariableStatement"),isRestParameter:t(()=>qg,"isRestParameter"),isRestTypeNode:t(()=>mz,"isRestTypeNode"),isReturnStatement:t(()=>Bp,"isReturnStatement"),isReturnStatementWithFixablePromiseHandler:t(()=>zJ,"isReturnStatementWithFixablePromiseHandler"),isRightSideOfAccessExpression:t(()=>bX,"isRightSideOfAccessExpression"),isRightSideOfInstanceofExpression:t(()=>phe,"isRightSideOfInstanceofExpression"),isRightSideOfPropertyAccess:t(()=>M6,"isRightSideOfPropertyAccess"),isRightSideOfQualifiedName:t(()=>obe,"isRightSideOfQualifiedName"),isRightSideOfQualifiedNameOrPropertyAccess:t(()=>J4,"isRightSideOfQualifiedNameOrPropertyAccess"),isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:t(()=>_he,"isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName"),isRootedDiskPath:t(()=>ap,"isRootedDiskPath"),isSameEntityName:t(()=>jA,"isSameEntityName"),isSatisfiesExpression:t(()=>c6,"isSatisfiesExpression"),isSemicolonClassElement:t(()=>Vge,"isSemicolonClassElement"),isSetAccessor:t(()=>Uh,"isSetAccessor"),isSetAccessorDeclaration:t(()=>W_,"isSetAccessorDeclaration"),isShiftOperatorOrHigher:t(()=>GZ,"isShiftOperatorOrHigher"),isShorthandAmbientModuleSymbol:t(()=>aF,"isShorthandAmbientModuleSymbol"),isShorthandPropertyAssignment:t(()=>df,"isShorthandPropertyAssignment"),isSideEffectImport:t(()=>aZ,"isSideEffectImport"),isSignedNumericLiteral:t(()=>sU,"isSignedNumericLiteral"),isSimpleCopiableExpression:t(()=>yx,"isSimpleCopiableExpression"),isSimpleInlineableExpression:t(()=>ig,"isSimpleInlineableExpression"),isSimpleParameterList:t(()=>rL,"isSimpleParameterList"),isSingleOrDoubleQuote:t(()=>xF,"isSingleOrDoubleQuote"),isSolutionConfig:t(()=>yQ,"isSolutionConfig"),isSourceElement:t(()=>cge,"isSourceElement"),isSourceFile:t(()=>Yi,"isSourceFile"),isSourceFileFromLibrary:t(()=>H6,"isSourceFileFromLibrary"),isSourceFileJS:t(()=>i_,"isSourceFileJS"),isSourceFileNotJson:t(()=>KB,"isSourceFileNotJson"),isSourceMapping:t(()=>zye,"isSourceMapping"),isSpecialPropertyDeclaration:t(()=>Rme,"isSpecialPropertyDeclaration"),isSpreadAssignment:t(()=>Y0,"isSpreadAssignment"),isSpreadElement:t(()=>jd,"isSpreadElement"),isStatement:t(()=>$i,"isStatement"),isStatementButNotDeclaration:t(()=>eF,"isStatementButNotDeclaration"),isStatementOrBlock:t(()=>Jde,"isStatementOrBlock"),isStatementWithLocals:t(()=>eme,"isStatementWithLocals"),isStatic:t(()=>pa,"isStatic"),isStaticModifier:t(()=>tD,"isStaticModifier"),isString:t(()=>Fs,"isString"),isStringANonContextualKeyword:t(()=>Fw,"isStringANonContextualKeyword"),isStringAndEmptyAnonymousObjectIntersection:t(()=>vbe,"isStringAndEmptyAnonymousObjectIntersection"),isStringDoubleQuoted:t(()=>ZB,"isStringDoubleQuoted"),isStringLiteral:t(()=>Na,"isStringLiteral"),isStringLiteralLike:t(()=>fo,"isStringLiteralLike"),isStringLiteralOrJsxExpression:t(()=>qde,"isStringLiteralOrJsxExpression"),isStringLiteralOrTemplate:t(()=>Bbe,"isStringLiteralOrTemplate"),isStringOrNumericLiteralLike:t(()=>nd,"isStringOrNumericLiteralLike"),isStringOrRegularExpressionOrTemplateLiteral:t(()=>Wte,"isStringOrRegularExpressionOrTemplateLiteral"),isStringTextContainingNode:t(()=>eK,"isStringTextContainingNode"),isSuperCall:t(()=>rC,"isSuperCall"),isSuperKeyword:t(()=>h3,"isSuperKeyword"),isSuperProperty:t(()=>z_,"isSuperProperty"),isSupportedSourceFileName:t(()=>qX,"isSupportedSourceFileName"),isSwitchStatement:t(()=>S3,"isSwitchStatement"),isSyntaxList:t(()=>m6,"isSyntaxList"),isSyntheticExpression:t(()=>IFe,"isSyntheticExpression"),isSyntheticReference:t(()=>cD,"isSyntheticReference"),isTagName:t(()=>Ote,"isTagName"),isTaggedTemplateExpression:t(()=>KS,"isTaggedTemplateExpression"),isTaggedTemplateTag:t(()=>ibe,"isTaggedTemplateTag"),isTemplateExpression:t(()=>gz,"isTemplateExpression"),isTemplateHead:t(()=>Qw,"isTemplateHead"),isTemplateLiteral:t(()=>bw,"isTemplateLiteral"),isTemplateLiteralKind:t(()=>Sb,"isTemplateLiteralKind"),isTemplateLiteralToken:t(()=>Dde,"isTemplateLiteralToken"),isTemplateLiteralTypeNode:t(()=>Jge,"isTemplateLiteralTypeNode"),isTemplateLiteralTypeSpan:t(()=>EZ,"isTemplateLiteralTypeSpan"),isTemplateMiddle:t(()=>bZ,"isTemplateMiddle"),isTemplateMiddleOrTemplateTail:t(()=>pB,"isTemplateMiddleOrTemplateTail"),isTemplateSpan:t(()=>l6,"isTemplateSpan"),isTemplateTail:t(()=>uz,"isTemplateTail"),isTextWhiteSpaceLike:t(()=>Cbe,"isTextWhiteSpaceLike"),isThis:t(()=>j6,"isThis"),isThisContainerOrFunctionBlock:t(()=>Pme,"isThisContainerOrFunctionBlock"),isThisIdentifier:t(()=>Fb,"isThisIdentifier"),isThisInTypeQuery:t(()=>QT,"isThisInTypeQuery"),isThisInitializedDeclaration:t(()=>qB,"isThisInitializedDeclaration"),isThisInitializedObjectBindingExpression:t(()=>Nme,"isThisInitializedObjectBindingExpression"),isThisProperty:t(()=>hF,"isThisProperty"),isThisTypeNode:t(()=>y3,"isThisTypeNode"),isThisTypeParameter:t(()=>o3,"isThisTypeParameter"),isThisTypePredicate:t(()=>kme,"isThisTypePredicate"),isThrowStatement:t(()=>DZ,"isThrowStatement"),isToken:t(()=>gw,"isToken"),isTokenKind:t(()=>ZY,"isTokenKind"),isTraceEnabled:t(()=>qb,"isTraceEnabled"),isTransientSymbol:t(()=>F0,"isTransientSymbol"),isTrivia:t(()=>JA,"isTrivia"),isTryStatement:t(()=>TC,"isTryStatement"),isTupleTypeNode:t(()=>iD,"isTupleTypeNode"),isTypeAlias:t(()=>IF,"isTypeAlias"),isTypeAliasDeclaration:t(()=>fm,"isTypeAliasDeclaration"),isTypeAssertionExpression:t(()=>hz,"isTypeAssertionExpression"),isTypeDeclaration:t(()=>Vw,"isTypeDeclaration"),isTypeElement:t(()=>jT,"isTypeElement"),isTypeKeyword:t(()=>s8,"isTypeKeyword"),isTypeKeywordTokenOrIdentifier:t(()=>gJ,"isTypeKeywordTokenOrIdentifier"),isTypeLiteralNode:t(()=>o_,"isTypeLiteralNode"),isTypeNode:t(()=>Ai,"isTypeNode"),isTypeNodeKind:t(()=>AX,"isTypeNodeKind"),isTypeOfExpression:t(()=>a6,"isTypeOfExpression"),isTypeOnlyExportDeclaration:t(()=>Pde,"isTypeOnlyExportDeclaration"),isTypeOnlyImportDeclaration:t(()=>EA,"isTypeOnlyImportDeclaration"),isTypeOnlyImportOrExportDeclaration:t(()=>V1,"isTypeOnlyImportOrExportDeclaration"),isTypeOperatorNode:t(()=>YS,"isTypeOperatorNode"),isTypeParameterDeclaration:t(()=>cc,"isTypeParameterDeclaration"),isTypePredicateNode:t(()=>nD,"isTypePredicateNode"),isTypeQueryNode:t(()=>ox,"isTypeQueryNode"),isTypeReferenceNode:t(()=>_p,"isTypeReferenceNode"),isTypeReferenceType:t(()=>TB,"isTypeReferenceType"),isTypeUsableAsPropertyName:t(()=>Ld,"isTypeUsableAsPropertyName"),isUMDExportSymbol:t(()=>kU,"isUMDExportSymbol"),isUnaryExpression:t(()=>aK,"isUnaryExpression"),isUnaryExpressionWithWrite:t(()=>Rde,"isUnaryExpressionWithWrite"),isUnicodeIdentifierStart:t(()=>eB,"isUnicodeIdentifierStart"),isUnionTypeNode:t(()=>nv,"isUnionTypeNode"),isUrl:t(()=>Jpe,"isUrl"),isValidBigIntString:t(()=>HU,"isValidBigIntString"),isValidESSymbolDeclaration:t(()=>xme,"isValidESSymbolDeclaration"),isValidTypeOnlyAliasUseSite:t(()=>VS,"isValidTypeOnlyAliasUseSite"),isValueSignatureDeclaration:t(()=>cC,"isValueSignatureDeclaration"),isVarAwaitUsing:t(()=>fF,"isVarAwaitUsing"),isVarConst:t(()=>OA,"isVarConst"),isVarConstLike:t(()=>vme,"isVarConstLike"),isVarUsing:t(()=>_F,"isVarUsing"),isVariableDeclaration:t(()=>Ti,"isVariableDeclaration"),isVariableDeclarationInVariableStatement:t(()=>C4,"isVariableDeclarationInVariableStatement"),isVariableDeclarationInitializedToBareOrAccessedRequire:t(()=>VT,"isVariableDeclarationInitializedToBareOrAccessedRequire"),isVariableDeclarationInitializedToRequire:t(()=>SF,"isVariableDeclarationInitializedToRequire"),isVariableDeclarationList:t(()=>ju,"isVariableDeclarationList"),isVariableLike:t(()=>E4,"isVariableLike"),isVariableStatement:t(()=>rl,"isVariableStatement"),isVoidExpression:t(()=>aD,"isVoidExpression"),isWatchSet:t(()=>wX,"isWatchSet"),isWhileStatement:t(()=>wZ,"isWhileStatement"),isWhiteSpaceLike:t(()=>P0,"isWhiteSpaceLike"),isWhiteSpaceSingleLine:t(()=>jh,"isWhiteSpaceSingleLine"),isWithStatement:t(()=>Hge,"isWithStatement"),isWriteAccess:t(()=>Bw,"isWriteAccess"),isWriteOnlyAccess:t(()=>CU,"isWriteOnlyAccess"),isYieldExpression:t(()=>C5,"isYieldExpression"),jsxModeNeedsExplicitImport:t(()=>wre,"jsxModeNeedsExplicitImport"),keywordPart:t(()=>gp,"keywordPart"),last:t(()=>za,"last"),lastOrUndefined:t(()=>nc,"lastOrUndefined"),length:t(()=>Ue,"length"),libMap:t(()=>rQ,"libMap"),libs:t(()=>Lz,"libs"),lineBreakPart:t(()=>W6,"lineBreakPart"),loadModuleFromGlobalCache:t(()=>xye,"loadModuleFromGlobalCache"),loadWithModeAwareCache:t(()=>pL,"loadWithModeAwareCache"),makeIdentifierFromModuleName:t(()=>ome,"makeIdentifierFromModuleName"),makeImport:t(()=>Zb,"makeImport"),makeStringLiteral:t(()=>a8,"makeStringLiteral"),mangleScopedPackageName:t(()=>k6,"mangleScopedPackageName"),map:t(()=>Dr,"map"),mapAllOrFail:t(()=>WI,"mapAllOrFail"),mapDefined:t(()=>Wi,"mapDefined"),mapDefinedIterator:t(()=>Fh,"mapDefinedIterator"),mapEntries:t(()=>u_e,"mapEntries"),mapIterator:t(()=>AT,"mapIterator"),mapOneOrMany:t(()=>xre,"mapOneOrMany"),mapToDisplayParts:t(()=>p2,"mapToDisplayParts"),matchFiles:t(()=>$X,"matchFiles"),matchPatternOrExact:t(()=>HX,"matchPatternOrExact"),matchedText:t(()=>E_e,"matchedText"),matchesExclude:t(()=>Gz,"matchesExclude"),matchesExcludeWorker:t(()=>Yz,"matchesExcludeWorker"),maxBy:t(()=>XG,"maxBy"),maybeBind:t(()=>ca,"maybeBind"),maybeSetLocalizedDiagnosticMessages:t(()=>Phe,"maybeSetLocalizedDiagnosticMessages"),memoize:t(()=>Uf,"memoize"),memoizeOne:t(()=>Mh,"memoizeOne"),min:t(()=>ZG,"min"),minAndMax:t(()=>Yhe,"minAndMax"),missingFileModifiedTime:t(()=>sp,"missingFileModifiedTime"),modifierToFlag:t(()=>Mw,"modifierToFlag"),modifiersToFlags:t(()=>Gh,"modifiersToFlags"),moduleExportNameIsDefault:t(()=>Vg,"moduleExportNameIsDefault"),moduleExportNameTextEscaped:t(()=>$T,"moduleExportNameTextEscaped"),moduleExportNameTextUnescaped:t(()=>Pb,"moduleExportNameTextUnescaped"),moduleOptionDeclaration:t(()=>O0e,"moduleOptionDeclaration"),moduleResolutionIsEqualTo:t(()=>Zde,"moduleResolutionIsEqualTo"),moduleResolutionNameAndModeGetter:t(()=>C$,"moduleResolutionNameAndModeGetter"),moduleResolutionOptionDeclarations:t(()=>iQ,"moduleResolutionOptionDeclarations"),moduleResolutionSupportsPackageJsonExportsAndImports:t(()=>ZA,"moduleResolutionSupportsPackageJsonExportsAndImports"),moduleResolutionUsesNodeModules:t(()=>yJ,"moduleResolutionUsesNodeModules"),moduleSpecifierToValidIdentifier:t(()=>WL,"moduleSpecifierToValidIdentifier"),moduleSpecifiers:t(()=>Qy,"moduleSpecifiers"),moduleSupportsImportAttributes:t(()=>Rhe,"moduleSupportsImportAttributes"),moduleSymbolToValidIdentifier:t(()=>JL,"moduleSymbolToValidIdentifier"),moveEmitHelpers:t(()=>Cge,"moveEmitHelpers"),moveRangeEnd:t(()=>xU,"moveRangeEnd"),moveRangePastDecorators:t(()=>Vy,"moveRangePastDecorators"),moveRangePastModifiers:t(()=>Yh,"moveRangePastModifiers"),moveRangePos:t(()=>qS,"moveRangePos"),moveSyntheticComments:t(()=>Tge,"moveSyntheticComments"),mutateMap:t(()=>G4,"mutateMap"),mutateMapSkippingNewValues:t(()=>z0,"mutateMapSkippingNewValues"),needsParentheses:t(()=>EJ,"needsParentheses"),needsScopeMarker:t(()=>hB,"needsScopeMarker"),newCaseClauseTracker:t(()=>RJ,"newCaseClauseTracker"),newPrivateEnvironment:t(()=>Vye,"newPrivateEnvironment"),noEmitNotification:t(()=>aL,"noEmitNotification"),noEmitSubstitution:t(()=>q3,"noEmitSubstitution"),noTransformers:t(()=>x1e,"noTransformers"),noTruncationMaximumTruncationLength:t(()=>_K,"noTruncationMaximumTruncationLength"),nodeCanBeDecorated:t(()=>yF,"nodeCanBeDecorated"),nodeCoreModules:t(()=>r6,"nodeCoreModules"),nodeHasName:t(()=>$7,"nodeHasName"),nodeIsDecorated:t(()=>RA,"nodeIsDecorated"),nodeIsMissing:t(()=>zc,"nodeIsMissing"),nodeIsPresent:t(()=>sm,"nodeIsPresent"),nodeIsSynthesized:t(()=>Mo,"nodeIsSynthesized"),nodeModuleNameResolver:t(()=>hye,"nodeModuleNameResolver"),nodeModulesPathPart:t(()=>K0,"nodeModulesPathPart"),nodeNextJsonConfigResolver:t(()=>gye,"nodeNextJsonConfigResolver"),nodeOrChildIsDecorated:t(()=>vF,"nodeOrChildIsDecorated"),nodeOverlapsWithStartEnd:t(()=>aJ,"nodeOverlapsWithStartEnd"),nodePosToString:t(()=>j7e,"nodePosToString"),nodeSeenTracker:t(()=>z6,"nodeSeenTracker"),nodeStartsNewLexicalEnvironment:t(()=>eX,"nodeStartsNewLexicalEnvironment"),noop:t(()=>go,"noop"),noopFileWatcher:t(()=>L6,"noopFileWatcher"),normalizePath:t(()=>ba,"normalizePath"),normalizeSlashes:t(()=>Ru,"normalizeSlashes"),normalizeSpans:t(()=>zY,"normalizeSpans"),not:t(()=>Uj,"not"),notImplemented:t(()=>va,"notImplemented"),notImplementedResolver:t(()=>D1e,"notImplementedResolver"),nullNodeConverters:t(()=>vge,"nullNodeConverters"),nullParenthesizerRules:t(()=>gge,"nullParenthesizerRules"),nullTransformationContext:t(()=>cL,"nullTransformationContext"),objectAllocator:t(()=>Ku,"objectAllocator"),operatorPart:t(()=>c8,"operatorPart"),optionDeclarations:t(()=>Mm,"optionDeclarations"),optionMapToObject:t(()=>$z,"optionMapToObject"),optionsAffectingProgramStructure:t(()=>j0e,"optionsAffectingProgramStructure"),optionsForBuild:t(()=>aQ,"optionsForBuild"),optionsForWatch:t(()=>mD,"optionsForWatch"),optionsHaveChanges:t(()=>xw,"optionsHaveChanges"),or:t(()=>ip,"or"),orderedRemoveItem:t(()=>VI,"orderedRemoveItem"),orderedRemoveItemAt:t(()=>db,"orderedRemoveItemAt"),packageIdToPackageName:t(()=>DB,"packageIdToPackageName"),packageIdToString:t(()=>MS,"packageIdToString"),parameterIsThisKeyword:t(()=>Ob,"parameterIsThisKeyword"),parameterNamePart:t(()=>wbe,"parameterNamePart"),parseBaseNodeFactory:t(()=>w0e,"parseBaseNodeFactory"),parseBigInt:t(()=>Xhe,"parseBigInt"),parseBuildCommand:t(()=>V0e,"parseBuildCommand"),parseCommandLine:t(()=>W0e,"parseCommandLine"),parseCommandLineWorker:t(()=>cQ,"parseCommandLineWorker"),parseConfigFileTextToJson:t(()=>uQ,"parseConfigFileTextToJson"),parseConfigFileWithSystem:t(()=>pve,"parseConfigFileWithSystem"),parseConfigHostFromCompilerHostLike:t(()=>N$,"parseConfigHostFromCompilerHostLike"),parseCustomTypeOption:t(()=>Bz,"parseCustomTypeOption"),parseIsolatedEntityName:t(()=>dD,"parseIsolatedEntityName"),parseIsolatedJSDocComment:t(()=>P0e,"parseIsolatedJSDocComment"),parseJSDocTypeExpressionForTests:t(()=>m5e,"parseJSDocTypeExpressionForTests"),parseJsonConfigFileContent:t(()=>W5e,"parseJsonConfigFileContent"),parseJsonSourceFileConfigFileContent:t(()=>q5,"parseJsonSourceFileConfigFileContent"),parseJsonText:t(()=>B5,"parseJsonText"),parseListTypeOption:t(()=>$0e,"parseListTypeOption"),parseNodeFactory:t(()=>i2,"parseNodeFactory"),parseNodeModuleFromPath:t(()=>Y5,"parseNodeModuleFromPath"),parsePackageName:t(()=>r$,"parsePackageName"),parsePseudoBigInt:t(()=>n3,"parsePseudoBigInt"),parseValidBigInt:t(()=>XX,"parseValidBigInt"),pasteEdits:t(()=>kie,"pasteEdits"),patchWriteFileEnsuringDirectory:t(()=>$pe,"patchWriteFileEnsuringDirectory"),pathContainsNodeModules:t(()=>Hb,"pathContainsNodeModules"),pathIsAbsolute:t(()=>t4,"pathIsAbsolute"),pathIsBareSpecifier:t(()=>NY,"pathIsBareSpecifier"),pathIsRelative:t(()=>Lp,"pathIsRelative"),patternText:t(()=>x_e,"patternText"),performIncrementalCompilation:t(()=>dve,"performIncrementalCompilation"),performance:t(()=>I_e,"performance"),positionBelongsToNode:t(()=>Mte,"positionBelongsToNode"),positionIsASICandidate:t(()=>wJ,"positionIsASICandidate"),positionIsSynthesized:t(()=>sh,"positionIsSynthesized"),positionsAreOnSameLine:t(()=>Od,"positionsAreOnSameLine"),preProcessFile:t(()=>eje,"preProcessFile"),probablyUsesSemicolons:t(()=>zL,"probablyUsesSemicolons"),processCommentPragmas:t(()=>eQ,"processCommentPragmas"),processPragmasIntoFields:t(()=>tQ,"processPragmasIntoFields"),processTaggedTemplateExpression:t(()=>nee,"processTaggedTemplateExpression"),programContainsEsModules:t(()=>xbe,"programContainsEsModules"),programContainsModules:t(()=>Tbe,"programContainsModules"),projectReferenceIsEqualTo:t(()=>pK,"projectReferenceIsEqualTo"),propertyNamePart:t(()=>Dbe,"propertyNamePart"),pseudoBigIntToString:t(()=>ix,"pseudoBigIntToString"),punctuationPart:t(()=>Pf,"punctuationPart"),pushIfUnique:t(()=>Cd,"pushIfUnique"),quote:t(()=>f8,"quote"),quotePreferenceFromString:t(()=>ere,"quotePreferenceFromString"),rangeContainsPosition:t(()=>B6,"rangeContainsPosition"),rangeContainsPositionExclusive:t(()=>DL,"rangeContainsPositionExclusive"),rangeContainsRange:t(()=>D_,"rangeContainsRange"),rangeContainsRangeExclusive:t(()=>lbe,"rangeContainsRangeExclusive"),rangeContainsStartEnd:t(()=>PL,"rangeContainsStartEnd"),rangeEndIsOnSameLineAsRangeStart:t(()=>XF,"rangeEndIsOnSameLineAsRangeStart"),rangeEndPositionsAreOnSameLine:t(()=>yhe,"rangeEndPositionsAreOnSameLine"),rangeEquals:t(()=>WG,"rangeEquals"),rangeIsOnSingleLine:t(()=>_C,"rangeIsOnSingleLine"),rangeOfNode:t(()=>YX,"rangeOfNode"),rangeOfTypeParameters:t(()=>KX,"rangeOfTypeParameters"),rangeOverlapsWithStartEnd:t(()=>r8,"rangeOverlapsWithStartEnd"),rangeStartIsOnSameLineAsRangeEnd:t(()=>vhe,"rangeStartIsOnSameLineAsRangeEnd"),rangeStartPositionsAreOnSameLine:t(()=>EU,"rangeStartPositionsAreOnSameLine"),readBuilderProgram:t(()=>$$,"readBuilderProgram"),readConfigFile:t(()=>J5,"readConfigFile"),readJson:t(()=>GA,"readJson"),readJsonConfigFile:t(()=>H0e,"readJsonConfigFile"),readJsonOrUndefined:t(()=>TX,"readJsonOrUndefined"),reduceEachLeadingCommentRange:t(()=>Xpe,"reduceEachLeadingCommentRange"),reduceEachTrailingCommentRange:t(()=>Zpe,"reduceEachTrailingCommentRange"),reduceLeft:t(()=>r_,"reduceLeft"),reduceLeftIterator:t(()=>wn,"reduceLeftIterator"),reducePathComponents:t(()=>pw,"reducePathComponents"),refactor:t(()=>PD,"refactor"),regExpEscape:t(()=>pFe,"regExpEscape"),regularExpressionFlagToCharacterCode:t(()=>_7e,"regularExpressionFlagToCharacterCode"),relativeComplement:t(()=>f_e,"relativeComplement"),removeAllComments:t(()=>g5,"removeAllComments"),removeEmitHelper:t(()=>DFe,"removeEmitHelper"),removeExtension:t(()=>l5,"removeExtension"),removeFileExtension:t(()=>Vf,"removeFileExtension"),removeIgnoredPath:t(()=>L$,"removeIgnoredPath"),removeMinAndVersionNumbers:t(()=>tY,"removeMinAndVersionNumbers"),removePrefix:t(()=>HI,"removePrefix"),removeSuffix:t(()=>dA,"removeSuffix"),removeTrailingDirectorySeparator:t(()=>q1,"removeTrailingDirectorySeparator"),repeatString:t(()=>OL,"repeatString"),replaceElement:t(()=>HG,"replaceElement"),replaceFirstStar:t(()=>dC,"replaceFirstStar"),resolutionExtensionIsTSOrJson:t(()=>Q4,"resolutionExtensionIsTSOrJson"),resolveConfigFileProjectName:t(()=>ote,"resolveConfigFileProjectName"),resolveJSModule:t(()=>pye,"resolveJSModule"),resolveLibrary:t(()=>t$,"resolveLibrary"),resolveModuleName:t(()=>AC,"resolveModuleName"),resolveModuleNameFromCache:t(()=>bLe,"resolveModuleNameFromCache"),resolvePackageNameToPackageJson:t(()=>TQ,"resolvePackageNameToPackageJson"),resolvePath:t(()=>hb,"resolvePath"),resolveProjectReferencePath:t(()=>SD,"resolveProjectReferencePath"),resolveTripleslashReference:t(()=>bee,"resolveTripleslashReference"),resolveTypeReferenceDirective:t(()=>lye,"resolveTypeReferenceDirective"),resolvingEmptyArray:t(()=>fK,"resolvingEmptyArray"),returnFalse:t(()=>Ry,"returnFalse"),returnNoopFileWatcher:t(()=>Z3,"returnNoopFileWatcher"),returnTrue:t(()=>IT,"returnTrue"),returnUndefined:t(()=>OT,"returnUndefined"),returnsPromise:t(()=>zre,"returnsPromise"),rewriteModuleSpecifier:t(()=>yD,"rewriteModuleSpecifier"),sameFlatMap:t(()=>Fy,"sameFlatMap"),sameMap:t(()=>el,"sameMap"),sameMapping:t(()=>uRe,"sameMapping"),scanTokenAtPosition:t(()=>yme,"scanTokenAtPosition"),scanner:t(()=>Bu,"scanner"),semanticDiagnosticsOptionDeclarations:t(()=>L0e,"semanticDiagnosticsOptionDeclarations"),serializeCompilerOptions:t(()=>Jz,"serializeCompilerOptions"),server:t(()=>rYe,"server"),servicesVersion:t(()=>JBe,"servicesVersion"),setCommentRange:t(()=>Ml,"setCommentRange"),setConfigFileInOptions:t(()=>hQ,"setConfigFileInOptions"),setConstantValue:t(()=>Ege,"setConstantValue"),setEmitFlags:t(()=>Dn,"setEmitFlags"),setGetSourceFileAsHashVersioned:t(()=>z$,"setGetSourceFileAsHashVersioned"),setIdentifierAutoGenerate:t(()=>b5,"setIdentifierAutoGenerate"),setIdentifierGeneratedImportReference:t(()=>Dge,"setIdentifierGeneratedImportReference"),setIdentifierTypeArguments:t(()=>rv,"setIdentifierTypeArguments"),setInternalEmitFlags:t(()=>y5,"setInternalEmitFlags"),setLocalizedDiagnosticMessages:t(()=>Dhe,"setLocalizedDiagnosticMessages"),setNodeChildren:t(()=>s0e,"setNodeChildren"),setNodeFlags:t(()=>ege,"setNodeFlags"),setObjectAllocator:t(()=>whe,"setObjectAllocator"),setOriginalNode:t(()=>Vn,"setOriginalNode"),setParent:t(()=>mo,"setParent"),setParentRecursive:t(()=>HS,"setParentRecursive"),setPrivateIdentifier:t(()=>IC,"setPrivateIdentifier"),setSnippetElement:t(()=>gZ,"setSnippetElement"),setSourceMapRange:t(()=>Wa,"setSourceMapRange"),setStackTraceLimit:t(()=>YOe,"setStackTraceLimit"),setStartsOnNewLine:t(()=>az,"setStartsOnNewLine"),setSyntheticLeadingComments:t(()=>GS,"setSyntheticLeadingComments"),setSyntheticTrailingComments:t(()=>Kw,"setSyntheticTrailingComments"),setSys:t(()=>t7e,"setSys"),setSysLog:t(()=>Bpe,"setSysLog"),setTextRange:t(()=>Et,"setTextRange"),setTextRangeEnd:t(()=>t6,"setTextRangeEnd"),setTextRangePos:t(()=>i3,"setTextRangePos"),setTextRangePosEnd:t(()=>ah,"setTextRangePosEnd"),setTextRangePosWidth:t(()=>ZX,"setTextRangePosWidth"),setTokenSourceMapRange:t(()=>Sge,"setTokenSourceMapRange"),setTypeNode:t(()=>kge,"setTypeNode"),setUILocale:t(()=>b_e,"setUILocale"),setValueDeclaration:t(()=>PF,"setValueDeclaration"),shouldAllowImportingTsExtension:t(()=>w6,"shouldAllowImportingTsExtension"),shouldPreserveConstEnums:t(()=>Rb,"shouldPreserveConstEnums"),shouldRewriteModuleSpecifier:t(()=>NF,"shouldRewriteModuleSpecifier"),shouldUseUriStyleNodeCoreModules:t(()=>FJ,"shouldUseUriStyleNodeCoreModules"),showModuleSpecifier:t(()=>Ehe,"showModuleSpecifier"),signatureHasRestParameter:t(()=>Df,"signatureHasRestParameter"),signatureToDisplayParts:t(()=>fre,"signatureToDisplayParts"),single:t(()=>VG,"single"),singleElementArray:t(()=>uw,"singleElementArray"),singleIterator:t(()=>l_e,"singleIterator"),singleOrMany:t(()=>zg,"singleOrMany"),singleOrUndefined:t(()=>Ug,"singleOrUndefined"),skipAlias:t(()=>Yu,"skipAlias"),skipConstraint:t(()=>Xte,"skipConstraint"),skipOuterExpressions:t(()=>il,"skipOuterExpressions"),skipParentheses:t(()=>po,"skipParentheses"),skipPartiallyEmittedExpressions:t(()=>Am,"skipPartiallyEmittedExpressions"),skipTrivia:t(()=>Ma,"skipTrivia"),skipTypeChecking:t(()=>e6,"skipTypeChecking"),skipTypeCheckingIgnoringNoCheck:t(()=>Khe,"skipTypeCheckingIgnoringNoCheck"),skipTypeParentheses:t(()=>I4,"skipTypeParentheses"),skipWhile:t(()=>k_e,"skipWhile"),sliceAfter:t(()=>GX,"sliceAfter"),some:t(()=>xt,"some"),sortAndDeduplicate:t(()=>qI,"sortAndDeduplicate"),sortAndDeduplicateDiagnostics:t(()=>SA,"sortAndDeduplicateDiagnostics"),sourceFileAffectingCompilerOptions:t(()=>sQ,"sourceFileAffectingCompilerOptions"),sourceFileMayBeEmitted:t(()=>XT,"sourceFileMayBeEmitted"),sourceMapCommentRegExp:t(()=>qQ,"sourceMapCommentRegExp"),sourceMapCommentRegExpDontCareLineStart:t(()=>jye,"sourceMapCommentRegExpDontCareLineStart"),spacePart:t(()=>Zc,"spacePart"),spanMap:t(()=>UG,"spanMap"),startEndContainsRange:t(()=>CX,"startEndContainsRange"),startEndOverlapsWithStartEnd:t(()=>oJ,"startEndOverlapsWithStartEnd"),startOnNewLine:t(()=>wf,"startOnNewLine"),startTracing:t(()=>R_e,"startTracing"),startsWith:t(()=>fs,"startsWith"),startsWithDirectory:t(()=>FY,"startsWithDirectory"),startsWithUnderscore:t(()=>kre,"startsWithUnderscore"),startsWithUseStrict:t(()=>_0e,"startsWithUseStrict"),stringContainsAt:t(()=>Vbe,"stringContainsAt"),stringToToken:t(()=>VE,"stringToToken"),stripQuotes:t(()=>cm,"stripQuotes"),supportedDeclarationExtensions:t(()=>JU,"supportedDeclarationExtensions"),supportedJSExtensionsFlat:t(()=>QA,"supportedJSExtensionsFlat"),supportedLocaleDirectories:t(()=>pde,"supportedLocaleDirectories"),supportedTSExtensionsFlat:t(()=>JX,"supportedTSExtensionsFlat"),supportedTSImplementationExtensions:t(()=>a5,"supportedTSImplementationExtensions"),suppressLeadingAndTrailingTrivia:t(()=>yp,"suppressLeadingAndTrailingTrivia"),suppressLeadingTrivia:t(()=>mre,"suppressLeadingTrivia"),suppressTrailingTrivia:t(()=>Rbe,"suppressTrailingTrivia"),symbolEscapedNameNoDefault:t(()=>vJ,"symbolEscapedNameNoDefault"),symbolName:t(()=>tl,"symbolName"),symbolNameNoDefault:t(()=>rre,"symbolNameNoDefault"),symbolToDisplayParts:t(()=>l8,"symbolToDisplayParts"),sys:t(()=>ru,"sys"),sysLog:t(()=>A7,"sysLog"),tagNamesAreEquivalent:t(()=>a2,"tagNamesAreEquivalent"),takeWhile:t(()=>iY,"takeWhile"),targetOptionDeclaration:t(()=>nQ,"targetOptionDeclaration"),targetToLibMap:t(()=>Qpe,"targetToLibMap"),testFormatSettings:t(()=>SMe,"testFormatSettings"),textChangeRangeIsUnchanged:t(()=>cde,"textChangeRangeIsUnchanged"),textChangeRangeNewSpan:t(()=>l4,"textChangeRangeNewSpan"),textChanges:t(()=>Cn,"textChanges"),textOrKeywordPart:t(()=>ure,"textOrKeywordPart"),textPart:t(()=>ud,"textPart"),textRangeContainsPositionInclusive:t(()=>j7,"textRangeContainsPositionInclusive"),textRangeContainsTextSpan:t(()=>rde,"textRangeContainsTextSpan"),textRangeIntersectsWithTextSpan:t(()=>ade,"textRangeIntersectsWithTextSpan"),textSpanContainsPosition:t(()=>BY,"textSpanContainsPosition"),textSpanContainsTextRange:t(()=>UY,"textSpanContainsTextRange"),textSpanContainsTextSpan:t(()=>tde,"textSpanContainsTextSpan"),textSpanEnd:t(()=>Fc,"textSpanEnd"),textSpanIntersection:t(()=>ode,"textSpanIntersection"),textSpanIntersectsWith:t(()=>B7,"textSpanIntersectsWith"),textSpanIntersectsWithPosition:t(()=>sde,"textSpanIntersectsWithPosition"),textSpanIntersectsWithTextSpan:t(()=>ide,"textSpanIntersectsWithTextSpan"),textSpanIsEmpty:t(()=>ede,"textSpanIsEmpty"),textSpanOverlap:t(()=>nde,"textSpanOverlap"),textSpanOverlapsWith:t(()=>b7e,"textSpanOverlapsWith"),textSpansEqual:t(()=>J6,"textSpansEqual"),textToKeywordObj:t(()=>Qj,"textToKeywordObj"),timestamp:t(()=>jo,"timestamp"),toArray:t(()=>cw,"toArray"),toBuilderFileEmit:t(()=>rve,"toBuilderFileEmit"),toBuilderStateFileInfoForMultiEmit:t(()=>tve,"toBuilderStateFileInfoForMultiEmit"),toEditorSettings:t(()=>ZL,"toEditorSettings"),toFileNameLowerCase:t(()=>fb,"toFileNameLowerCase"),toPath:t(()=>Bo,"toPath"),toProgramEmitPending:t(()=>nve,"toProgramEmitPending"),toSorted:t(()=>np,"toSorted"),tokenIsIdentifierOrKeyword:t(()=>x_,"tokenIsIdentifierOrKeyword"),tokenIsIdentifierOrKeywordOrGreaterThan:t(()=>qpe,"tokenIsIdentifierOrKeywordOrGreaterThan"),tokenToString:t(()=>Ta,"tokenToString"),trace:t(()=>ks,"trace"),tracing:t(()=>En,"tracing"),tracingEnabled:t(()=>P7,"tracingEnabled"),transferSourceFileChildren:t(()=>a0e,"transferSourceFileChildren"),transform:t(()=>QBe,"transform"),transformClassFields:t(()=>r1e,"transformClassFields"),transformDeclarations:t(()=>oee,"transformDeclarations"),transformECMAScriptModule:t(()=>aee,"transformECMAScriptModule"),transformES2015:t(()=>h1e,"transformES2015"),transformES2016:t(()=>m1e,"transformES2016"),transformES2017:t(()=>a1e,"transformES2017"),transformES2018:t(()=>o1e,"transformES2018"),transformES2019:t(()=>c1e,"transformES2019"),transformES2020:t(()=>l1e,"transformES2020"),transformES2021:t(()=>u1e,"transformES2021"),transformESDecorators:t(()=>s1e,"transformESDecorators"),transformESNext:t(()=>f1e,"transformESNext"),transformGenerators:t(()=>g1e,"transformGenerators"),transformImpliedNodeFormatDependentModule:t(()=>v1e,"transformImpliedNodeFormatDependentModule"),transformJsx:t(()=>d1e,"transformJsx"),transformLegacyDecorators:t(()=>i1e,"transformLegacyDecorators"),transformModule:t(()=>see,"transformModule"),transformNamedEvaluation:t(()=>dp,"transformNamedEvaluation"),transformNodes:t(()=>oL,"transformNodes"),transformSystemModule:t(()=>y1e,"transformSystemModule"),transformTypeScript:t(()=>t1e,"transformTypeScript"),transpile:t(()=>lje,"transpile"),transpileDeclaration:t(()=>oje,"transpileDeclaration"),transpileModule:t(()=>mSe,"transpileModule"),transpileOptionValueCompilerOptions:t(()=>B0e,"transpileOptionValueCompilerOptions"),tryAddToSet:t(()=>Lh,"tryAddToSet"),tryAndIgnoreErrors:t(()=>AJ,"tryAndIgnoreErrors"),tryCast:t(()=>si,"tryCast"),tryDirectoryExists:t(()=>PJ,"tryDirectoryExists"),tryExtractTSExtension:t(()=>SU,"tryExtractTSExtension"),tryFileExists:t(()=>p8,"tryFileExists"),tryGetClassExtendingExpressionWithTypeArguments:t(()=>yX,"tryGetClassExtendingExpressionWithTypeArguments"),tryGetClassImplementingOrExtendingExpressionWithTypeArguments:t(()=>vX,"tryGetClassImplementingOrExtendingExpressionWithTypeArguments"),tryGetDirectories:t(()=>DJ,"tryGetDirectories"),tryGetExtensionFromPath:t(()=>q0,"tryGetExtensionFromPath"),tryGetImportFromModuleSpecifier:t(()=>AF,"tryGetImportFromModuleSpecifier"),tryGetJSDocSatisfiesTypeNode:t(()=>ZU,"tryGetJSDocSatisfiesTypeNode"),tryGetModuleNameFromFile:t(()=>O5,"tryGetModuleNameFromFile"),tryGetModuleSpecifierFromDeclaration:t(()=>Pw,"tryGetModuleSpecifierFromDeclaration"),tryGetNativePerformanceHooks:t(()=>N_e,"tryGetNativePerformanceHooks"),tryGetPropertyAccessOrIdentifierToString:t(()=>KF,"tryGetPropertyAccessOrIdentifierToString"),tryGetPropertyNameOfBindingOrAssignmentElement:t(()=>Az,"tryGetPropertyNameOfBindingOrAssignmentElement"),tryGetSourceMappingURL:t(()=>Bye,"tryGetSourceMappingURL"),tryGetTextOfPropertyName:t(()=>x4,"tryGetTextOfPropertyName"),tryParseJson:t(()=>TU,"tryParseJson"),tryParsePattern:t(()=>qw,"tryParsePattern"),tryParsePatterns:t(()=>u5,"tryParsePatterns"),tryParseRawSourceMap:t(()=>Uye,"tryParseRawSourceMap"),tryReadDirectory:t(()=>vre,"tryReadDirectory"),tryReadFile:t(()=>A3,"tryReadFile"),tryRemoveDirectoryPrefix:t(()=>BX,"tryRemoveDirectoryPrefix"),tryRemoveExtension:t(()=>Ghe,"tryRemoveExtension"),tryRemovePrefix:t(()=>nY,"tryRemovePrefix"),tryRemoveSuffix:t(()=>T_e,"tryRemoveSuffix"),tscBuildOption:t(()=>DC,"tscBuildOption"),typeAcquisitionDeclarations:t(()=>Mz,"typeAcquisitionDeclarations"),typeAliasNamePart:t(()=>Pbe,"typeAliasNamePart"),typeDirectiveIsEqualTo:t(()=>Qde,"typeDirectiveIsEqualTo"),typeKeywords:t(()=>Kte,"typeKeywords"),typeParameterNamePart:t(()=>Abe,"typeParameterNamePart"),typeToDisplayParts:t(()=>ML,"typeToDisplayParts"),unchangedPollThresholds:t(()=>Vj,"unchangedPollThresholds"),unchangedTextChangeRange:t(()=>nB,"unchangedTextChangeRange"),unescapeLeadingUnderscores:t(()=>Zi,"unescapeLeadingUnderscores"),unmangleScopedPackageName:t(()=>X5,"unmangleScopedPackageName"),unorderedRemoveItem:t(()=>lw,"unorderedRemoveItem"),unprefixedNodeCoreModules:t(()=>_ge,"unprefixedNodeCoreModules"),unreachableCodeIsError:t(()=>Fhe,"unreachableCodeIsError"),unsetNodeChildren:t(()=>jZ,"unsetNodeChildren"),unusedLabelIsError:t(()=>Lhe,"unusedLabelIsError"),unwrapInnermostStatementOfLabel:t(()=>FK,"unwrapInnermostStatementOfLabel"),unwrapParenthesizedExpression:t(()=>uge,"unwrapParenthesizedExpression"),updateErrorForNoInputFiles:t(()=>Hz,"updateErrorForNoInputFiles"),updateLanguageServiceSourceFile:t(()=>dne,"updateLanguageServiceSourceFile"),updateMissingFilePathsWatch:t(()=>gee,"updateMissingFilePathsWatch"),updateResolutionField:t(()=>T6,"updateResolutionField"),updateSharedExtendedConfigFileWatcher:t(()=>S$,"updateSharedExtendedConfigFileWatcher"),updateSourceFile:t(()=>ZZ,"updateSourceFile"),updateWatchingWildcardDirectories:t(()=>uL,"updateWatchingWildcardDirectories"),usingSingleLineStringWriter:t(()=>PA,"usingSingleLineStringWriter"),utf16EncodeAsString:t(()=>c4,"utf16EncodeAsString"),validateLocaleAndSetLanguage:t(()=>JY,"validateLocaleAndSetLanguage"),version:t(()=>be,"version"),versionMajorMinor:t(()=>G,"versionMajorMinor"),visitArray:t(()=>j3,"visitArray"),visitCommaListElements:t(()=>eL,"visitCommaListElements"),visitEachChild:t(()=>Ur,"visitEachChild"),visitFunctionBody:t(()=>ld,"visitFunctionBody"),visitIterationBody:t(()=>l_,"visitIterationBody"),visitLexicalEnvironment:t(()=>WQ,"visitLexicalEnvironment"),visitNode:t(()=>ut,"visitNode"),visitNodes:t(()=>rn,"visitNodes"),visitParameterList:t(()=>Wc,"visitParameterList"),walkUpBindingElementsAndPatterns:t(()=>hw,"walkUpBindingElementsAndPatterns"),walkUpOuterExpressions:t(()=>p0e,"walkUpOuterExpressions"),walkUpParenthesizedExpressions:t(()=>Im,"walkUpParenthesizedExpressions"),walkUpParenthesizedTypes:t(()=>LF,"walkUpParenthesizedTypes"),walkUpParenthesizedTypesAndGetParentAndChild:t(()=>Wme,"walkUpParenthesizedTypesAndGetParentAndChild"),whitespaceOrMapCommentRegExp:t(()=>VQ,"whitespaceOrMapCommentRegExp"),writeCommentRange:t(()=>HA,"writeCommentRange"),writeFile:t(()=>mU,"writeFile"),writeFileEnsuringDirectories:t(()=>fX,"writeFileEnsuringDirectories"),zipWith:t(()=>sn,"zipWith")}),s.exports=F(W);var G="5.8",be="5.8.2",de=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(de||{}),se=[],Xe=new Map;function Ue(e){return e!==void 0?e.length:0}t(Ue,"length");function je(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a)return a}}t(je,"forEach");function Vt(e,r){if(e!==void 0)for(let i=e.length-1;i>=0;i--){let a=r(e[i],i);if(a)return a}}t(Vt,"forEachRight");function Ut(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a!==void 0)return a}}t(Ut,"firstDefined");function Ir(e,r){for(let i of e){let a=r(i);if(a!==void 0)return a}}t(Ir,"firstDefinedIterator");function wn(e,r,i){let a=i;if(e){let c=0;for(let u of e)a=r(a,u,c),c++}return a}t(wn,"reduceLeftIterator");function sn(e,r,i){let a=[];L.assertEqual(e.length,r.length);for(let c=0;c<e.length;c++)a.push(i(e[c],r[c],c));return a}t(sn,"zipWith");function Jn(e,r){if(e.length<=1)return e;let i=[];for(let a=0,c=e.length;a<c;a++)a!==0&&i.push(r),i.push(e[a]);return i}t(Jn,"intersperse");function kr(e,r){if(e!==void 0){for(let i=0;i<e.length;i++)if(!r(e[i],i))return!1}return!0}t(kr,"every");function yr(e,r,i){if(e!==void 0)for(let a=i??0;a<e.length;a++){let c=e[a];if(r(c,a))return c}}t(yr,"find");function xs(e,r,i){if(e!==void 0)for(let a=i??e.length-1;a>=0;a--){let c=e[a];if(r(c,a))return c}}t(xs,"findLast");function bi(e,r,i){if(e===void 0)return-1;for(let a=i??0;a<e.length;a++)if(r(e[a],a))return a;return-1}t(bi,"findIndex");function fc(e,r,i){if(e===void 0)return-1;for(let a=i??e.length-1;a>=0;a--)if(r(e[a],a))return a;return-1}t(fc,"findLastIndex");function Ci(e,r,i=_b){if(e!==void 0){for(let a=0;a<e.length;a++)if(i(e[a],r))return!0}return!1}t(Ci,"contains");function bf(e,r,i){for(let a=i??0;a<e.length;a++)if(Ci(r,e.charCodeAt(a)))return a;return-1}t(bf,"indexOfAnyCharCode");function Bf(e,r){let i=0;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a];r(c,a)&&i++}return i}t(Bf,"countWhere");function In(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;if(a<i){let c=e.slice(0,a);for(a++;a<i;){let u=e[a];r(u)&&c.push(u),a++}return c}}return e}t(In,"filter");function PT(e,r){let i=0;for(let a=0;a<e.length;a++)r(e[a],a,e)&&(e[i]=e[a],i++);e.length=i}t(PT,"filterMutate");function bu(e){e.length=0}t(bu,"clear");function Dr(e,r){let i;if(e!==void 0){i=[];for(let a=0;a<e.length;a++)i.push(r(e[a],a))}return i}t(Dr,"map");function*AT(e,r){for(let i of e)yield r(i)}t(AT,"mapIterator");function el(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i],c=r(a,i);if(a!==c){let u=e.slice(0,i);for(u.push(c),i++;i<e.length;i++)u.push(r(e[i],i));return u}}return e}t(el,"sameMap");function Sf(e){let r=[];for(let i=0;i<e.length;i++){let a=e[i];a&&(Bs(a)?Zn(r,a):r.push(a))}return r}t(Sf,"flatten");function ka(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?i=Zn(i,c):i=Kr(i,c))}return i??se}t(ka,"flatMap");function tm(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?Zn(i,c):i.push(c))}return i}t(tm,"flatMapToMutable");function*Oy(e,r){for(let i of e){let a=r(i);a&&(yield*a)}}t(Oy,"flatMapIterator");function Fy(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=r(c,a);(i||c!==u||Bs(u))&&(i||(i=e.slice(0,a)),Bs(u)?Zn(i,u):i.push(u))}return i??e}t(Fy,"sameFlatMap");function WI(e,r){let i=[];for(let a=0;a<e.length;a++){let c=r(e[a],a);if(c===void 0)return;i.push(c)}return i}t(WI,"mapAllOrFail");function Wi(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c!==void 0&&i.push(c)}return i}t(Wi,"mapDefined");function*Fh(e,r){for(let i of e){let a=r(i);a!==void 0&&(yield a)}}t(Fh,"mapDefinedIterator");function zE(e,r,i){if(e.has(r))return e.get(r);let a=i();return e.set(r,a),a}t(zE,"getOrUpdate");function Lh(e,r){return e.has(r)?!1:(e.add(r),!0)}t(Lh,"tryAddToSet");function*l_e(e){yield e}t(l_e,"singleIterator");function UG(e,r,i){let a;if(e!==void 0){a=[];let c=e.length,u,_,h=0,m=0;for(;h<c;){for(;m<c;){let T=e[m];if(_=r(T,m),m===0)u=_;else if(_!==u)break;m++}if(h<m){let T=i(e.slice(h,m),u,h,m);T&&a.push(T),h=m}u=_,m++}}return a}t(UG,"spanMap");function u_e(e,r){if(e===void 0)return;let i=new Map;return e.forEach((a,c)=>{let[u,_]=r(c,a);i.set(u,_)}),i}t(u_e,"mapEntries");function xt(e,r){if(e!==void 0)if(r!==void 0){for(let i=0;i<e.length;i++)if(r(e[i]))return!0}else return e.length>0;return!1}t(xt,"some");function zG(e,r,i){let a;for(let c=0;c<e.length;c++)r(e[c])?a=a===void 0?c:a:a!==void 0&&(i(a,c),a=void 0);a!==void 0&&i(a,e.length)}t(zG,"getRangesWhere");function us(e,r){return r===void 0||r.length===0?e:e===void 0||e.length===0?r:[...e,...r]}t(us,"concatenate");function FSt(e,r){return r}t(FSt,"selectIndex");function Fj(e){return e.map(FSt)}t(Fj,"indicesOf");function LSt(e,r,i){let a=Fj(e);jSt(e,a,i);let c=e[a[0]],u=[a[0]];for(let _=1;_<a.length;_++){let h=a[_],m=e[h];r(c,m)||(u.push(h),c=m)}return u.sort(),u.map(_=>e[_])}t(LSt,"deduplicateRelational");function RSt(e,r){let i=[];for(let a=0;a<e.length;a++)Cd(i,e[a],r);return i}t(RSt,"deduplicateEquality");function NT(e,r,i){return e.length===0?[]:e.length===1?e.slice():i?LSt(e,r,i):RSt(e,r)}t(NT,"deduplicate");function MSt(e,r){if(e.length===0)return se;let i=e[0],a=[i];for(let c=1;c<e.length;c++){let u=e[c];switch(r(u,i)){case!0:case 0:continue;case-1:return L.fail("Array is unsorted.")}a.push(i=u)}return a}t(MSt,"deduplicateSorted");function $G(){return[]}t($G,"createSortedArray");function ob(e,r,i,a,c){if(e.length===0)return e.push(r),!0;let u=lb(e,r,qo,i);if(u<0){if(a&&!c){let _=~u;if(_>0&&a(r,e[_-1]))return!1;if(_<e.length&&a(r,e[_]))return e.splice(_,1,r),!0}return e.splice(~u,0,r),!0}return c?(e.splice(u,0,r),!0):!1}t(ob,"insertSorted");function qI(e,r,i){return MSt(np(e,r),i??r??lf)}t(qI,"sortAndDeduplicate");function ed(e,r,i=_b){if(e===void 0||r===void 0)return e===r;if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++)if(!i(e[a],r[a],a))return!1;return!0}t(ed,"arrayIsEqualTo");function T7(e){let r;if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i];(r??!a)&&(r??(r=e.slice(0,i)),a&&r.push(a))}return r??e}t(T7,"compact");function f_e(e,r,i){if(!r||!e||r.length===0||e.length===0)return r;let a=[];e:for(let c=0,u=0;u<r.length;u++){u>0&&L.assertGreaterThanOrEqual(i(r[u],r[u-1]),0);t:for(let _=c;c<e.length;c++)switch(c>_&&L.assertGreaterThanOrEqual(i(e[c],e[c-1]),0),i(r[u],e[c])){case-1:a.push(r[u]);continue e;case 0:continue e;case 1:continue t}}return a}t(f_e,"relativeComplement");function Kr(e,r){return r===void 0?e:e===void 0?[r]:(e.push(r),e)}t(Kr,"append");function sw(e,r){return e===void 0?r:r===void 0?e:Bs(e)?Bs(r)?us(e,r):Kr(e,r):Bs(r)?Kr(r,e):[e,r]}t(sw,"combine");function __e(e,r){return r<0?e.length+r:r}t(__e,"toOffset");function Zn(e,r,i,a){if(r===void 0||r.length===0)return e;if(e===void 0)return r.slice(i,a);i=i===void 0?0:__e(r,i),a=a===void 0?r.length:__e(r,a);for(let c=i;c<a&&c<r.length;c++)r[c]!==void 0&&e.push(r[c]);return e}t(Zn,"addRange");function Cd(e,r,i){return Ci(e,r,i)?!1:(e.push(r),!0)}t(Cd,"pushIfUnique");function Ly(e,r,i){return e!==void 0?(Cd(e,r,i),e):[r]}t(Ly,"appendIfUnique");function jSt(e,r,i){r.sort((a,c)=>i(e[a],e[c])||Vo(a,c))}t(jSt,"stableSortIndices");function np(e,r){return e.length===0?se:e.slice().sort(r)}t(np,"toSorted");function*JG(e){for(let r=e.length-1;r>=0;r--)yield e[r]}t(JG,"arrayReverseIterator");function WG(e,r,i,a){for(;i<a;){if(e[i]!==r[i])return!1;i++}return!0}t(WG,"rangeEquals");var cb=Array.prototype.at?(e,r)=>e?.at(r):(e,r)=>{if(e!==void 0&&(r=__e(e,r),r<e.length))return e[r]};function Fl(e){return e===void 0||e.length===0?void 0:e[0]}t(Fl,"firstOrUndefined");function x7(e){if(e!==void 0)for(let r of e)return r}t(x7,"firstOrUndefinedIterator");function Ga(e){return L.assert(e.length!==0),e[0]}t(Ga,"first");function qG(e){for(let r of e)return r;L.fail("iterator is empty")}t(qG,"firstIterator");function nc(e){return e===void 0||e.length===0?void 0:e[e.length-1]}t(nc,"lastOrUndefined");function za(e){return L.assert(e.length!==0),e[e.length-1]}t(za,"last");function Ug(e){return e!==void 0&&e.length===1?e[0]:void 0}t(Ug,"singleOrUndefined");function VG(e){return L.checkDefined(Ug(e))}t(VG,"single");function zg(e){return e!==void 0&&e.length===1?e[0]:e}t(zg,"singleOrMany");function HG(e,r,i){let a=e.slice(0);return a[r]=i,a}t(HG,"replaceElement");function lb(e,r,i,a,c){return aw(e,i(r),i,a,c)}t(lb,"binarySearch");function aw(e,r,i,a,c){if(!xt(e))return-1;let u=c??0,_=e.length-1;for(;u<=_;){let h=u+(_-u>>1),m=i(e[h],h);switch(a(m,r)){case-1:u=h+1;break;case 0:return h;case 1:_=h-1;break}}return~u}t(aw,"binarySearchKey");function r_(e,r,i,a,c){if(e&&e.length>0){let u=e.length;if(u>0){let _=a===void 0||a<0?0:a,h=c===void 0||_+c>u-1?u-1:_+c,m;for(arguments.length<=2?(m=e[_],_++):m=i;_<=h;)m=r(m,e[_],_),_++;return m}}return i}t(r_,"reduceLeft");var NS=Object.prototype.hasOwnProperty;function Ro(e,r){return NS.call(e,r)}t(Ro,"hasProperty");function Lj(e,r){return NS.call(e,r)?e[r]:void 0}t(Lj,"getProperty");function Rh(e){let r=[];for(let i in e)NS.call(e,i)&&r.push(i);return r}t(Rh,"getOwnKeys");function OOe(e){let r=[];do{let i=Object.getOwnPropertyNames(e);for(let a of i)Cd(r,a)}while(e=Object.getPrototypeOf(e));return r}t(OOe,"getAllKeys");function ow(e){let r=[];for(let i in e)NS.call(e,i)&&r.push(e[i]);return r}t(ow,"getOwnValues");function p_e(e,r){let i=new Array(e);for(let a=0;a<e;a++)i[a]=r(a);return i}t(p_e,"arrayOf");function Ps(e,r){let i=[];for(let a of e)i.push(r?r(a):a);return i}t(Ps,"arrayFrom");function $E(e,...r){for(let i of r)if(i!==void 0)for(let a in i)Ro(i,a)&&(e[a]=i[a]);return e}t($E,"assign");function d_e(e,r,i=_b){if(e===r)return!0;if(!e||!r)return!1;for(let a in e)if(NS.call(e,a)&&(!NS.call(r,a)||!i(e[a],r[a])))return!1;for(let a in r)if(NS.call(r,a)&&!NS.call(e,a))return!1;return!0}t(d_e,"equalOwnProperties");function fA(e,r,i=qo){let a=new Map;for(let c=0;c<e.length;c++){let u=e[c],_=r(u);_!==void 0&&a.set(_,i(u))}return a}t(fA,"arrayToMap");function m_e(e,r,i=qo){let a=[];for(let c=0;c<e.length;c++){let u=e[c];a[r(u)]=i(u)}return a}t(m_e,"arrayToNumericMap");function E7(e,r,i=qo){let a=rm();for(let c=0;c<e.length;c++){let u=e[c];a.add(r(u),i(u))}return a}t(E7,"arrayToMultiMap");function _A(e,r,i=qo){return Ps(E7(e,r).values(),i)}t(_A,"group");function GG(e,r){let i={};if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=`${r(c)}`;(i[u]??(i[u]=[])).push(c)}return i}t(GG,"groupBy");function h_e(e){let r={};for(let i in e)NS.call(e,i)&&(r[i]=e[i]);return r}t(h_e,"clone");function Rj(e,r){let i={};for(let a in r)NS.call(r,a)&&(i[a]=r[a]);for(let a in e)NS.call(e,a)&&(i[a]=e[a]);return i}t(Rj,"extend");function YG(e,r){for(let i in r)NS.call(r,i)&&(e[i]=r[i])}t(YG,"copyProperties");function ca(e,r){return r?.bind(e)}t(ca,"maybeBind");function rm(){let e=new Map;return e.add=BSt,e.remove=USt,e}t(rm,"createMultiMap");function BSt(e,r){let i=this.get(e);return i!==void 0?i.push(r):this.set(e,i=[r]),i}t(BSt,"multiMapAdd");function USt(e,r){let i=this.get(e);i!==void 0&&(lw(i,r),i.length||this.delete(e))}t(USt,"multiMapRemove");function C7(e){let r=e?.slice()??[],i=0;function a(){return i===r.length}t(a,"isEmpty");function c(..._){r.push(..._)}t(c,"enqueue");function u(){if(a())throw new Error("Queue is empty");let _=r[i];if(r[i]=void 0,i++,i>100&&i>r.length>>1){let h=r.length-i;r.copyWithin(0,i),r.length=h,i=0}return _}return t(u,"dequeue"),{enqueue:c,dequeue:u,isEmpty:a}}t(C7,"createQueue");function KG(e,r){let i=new Map,a=0;function*c(){for(let _ of i.values())Bs(_)?yield*_:yield _}t(c,"getElementIterator");let u={has(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);return Bs(m)?Ci(m,_,r):r(m,_)},add(_){let h=e(_);if(i.has(h)){let m=i.get(h);if(Bs(m))Ci(m,_,r)||(m.push(_),a++);else{let T=m;r(T,_)||(i.set(h,[T,_]),a++)}}else i.set(h,_),a++;return this},delete(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);if(Bs(m)){for(let T=0;T<m.length;T++)if(r(m[T],_))return m.length===1?i.delete(h):m.length===2?i.set(h,m[1-T]):ROe(m,T),a--,!0}else if(r(m,_))return i.delete(h),a--,!0;return!1},clear(){i.clear(),a=0},get size(){return a},forEach(_){for(let h of Ps(i.values()))if(Bs(h))for(let m of h)_(m,m,u);else{let m=h;_(m,m,u)}},keys(){return c()},values(){return c()},*entries(){for(let _ of c())yield[_,_]},[Symbol.iterator]:()=>c(),[Symbol.toStringTag]:i[Symbol.toStringTag]};return u}t(KG,"createSet");function Bs(e){return Array.isArray(e)}t(Bs,"isArray");function cw(e){return Bs(e)?e:[e]}t(cw,"toArray");function Fs(e){return typeof e=="string"}t(Fs,"isString");function ub(e){return typeof e=="number"}t(ub,"isNumber");function si(e,r){return e!==void 0&&r(e)?e:void 0}t(si,"tryCast");function ha(e,r){return e!==void 0&&r(e)?e:L.fail(`Invalid cast. The supplied value ${e} did not pass the test '${L.getFunctionName(r)}'.`)}t(ha,"cast");function go(e){}t(go,"noop");function Ry(){return!1}t(Ry,"returnFalse");function IT(){return!0}t(IT,"returnTrue");function OT(){}t(OT,"returnUndefined");function qo(e){return e}t(qo,"identity");function zSt(e){return e.toLowerCase()}t(zSt,"toLowerCase");var FOe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function fb(e){return FOe.test(e)?e.replace(FOe,zSt):e}t(fb,"toFileNameLowerCase");function va(){throw new Error("Not implemented")}t(va,"notImplemented");function Uf(e){let r;return()=>(e&&(r=e(),e=void 0),r)}t(Uf,"memoize");function Mh(e){let r=new Map;return i=>{let a=`${typeof i}:${i}`,c=r.get(a);return c===void 0&&!r.has(a)&&(c=e(i),r.set(a,c)),c}}t(Mh,"memoizeOne");var g_e=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(g_e||{});function _b(e,r){return e===r}t(_b,"equateValues");function pb(e,r){return e===r||e!==void 0&&r!==void 0&&e.toUpperCase()===r.toUpperCase()}t(pb,"equateStringsCaseInsensitive");function FT(e,r){return _b(e,r)}t(FT,"equateStringsCaseSensitive");function LOe(e,r){return e===r?0:e===void 0?-1:r===void 0?1:e<r?-1:1}t(LOe,"compareComparableValues");function Vo(e,r){return LOe(e,r)}t(Vo,"compareValues");function Mj(e,r){return Vo(e?.start,r?.start)||Vo(e?.length,r?.length)}t(Mj,"compareTextSpans");function XG(e,r,i){for(let a=0;a<e.length;a++)r=Math.max(r,i(e[a]));return r}t(XG,"maxBy");function ZG(e,r){return r_(e,(i,a)=>r(i,a)===-1?i:a)}t(ZG,"min");function k7(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toUpperCase(),r=r.toUpperCase(),e<r?-1:e>r?1:0)}t(k7,"compareStringsCaseInsensitive");function y_e(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toLowerCase(),r=r.toLowerCase(),e<r?-1:e>r?1:0)}t(y_e,"compareStringsCaseInsensitiveEslintCompatible");function lf(e,r){return LOe(e,r)}t(lf,"compareStringsCaseSensitive");function pA(e){return e?k7:lf}t(pA,"getStringComparer");var $St=(()=>{return r;function e(i,a,c){if(i===a)return 0;if(i===void 0)return-1;if(a===void 0)return 1;let u=c(i,a);return u<0?-1:u>0?1:0}function r(i){let a=new Intl.Collator(i,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(c,u)=>e(c,u,a)}})(),QG,eY;function v_e(){return eY}t(v_e,"getUILocale");function b_e(e){eY!==e&&(eY=e,QG=void 0)}t(b_e,"setUILocale");function w7(e,r){return QG??(QG=$St(eY)),QG(e,r)}t(w7,"compareStringsCaseSensitiveUI");function S_e(e,r,i,a){return e===r?0:e===void 0?-1:r===void 0?1:a(e[i],r[i])}t(S_e,"compareProperties");function IS(e,r){return Vo(e?1:0,r?1:0)}t(IS,"compareBooleans");function LT(e,r,i){let a=Math.max(2,Math.floor(e.length*.34)),c=Math.floor(e.length*.4)+1,u;for(let _ of r){let h=i(_);if(h!==void 0&&Math.abs(h.length-e.length)<=a){if(h===e||h.length<3&&h.toLowerCase()!==e.toLowerCase())continue;let m=JSt(e,h,c-.1);if(m===void 0)continue;L.assert(m<c),c=m,u=_}}return u}t(LT,"getSpellingSuggestion");function JSt(e,r,i){let a=new Array(r.length+1),c=new Array(r.length+1),u=i+.01;for(let h=0;h<=r.length;h++)a[h]=h;for(let h=1;h<=e.length;h++){let m=e.charCodeAt(h-1),T=Math.ceil(h>i?h-i:1),S=Math.floor(r.length>i+h?i+h:r.length);c[0]=h;let E=h;for(let P=1;P<T;P++)c[P]=u;for(let P=T;P<=S;P++){let I=e[h-1].toLowerCase()===r[P-1].toLowerCase()?a[P-1]+.1:a[P-1]+2,R=m===r.charCodeAt(P-1)?a[P-1]:Math.min(a[P]+1,c[P-1]+1,I);c[P]=R,E=Math.min(E,R)}for(let P=S+1;P<=r.length;P++)c[P]=u;if(E>i)return;let D=a;a=c,c=D}let _=a[r.length];return _>i?void 0:_}t(JSt,"levenshteinWithMax");function ic(e,r,i){let a=e.length-r.length;return a>=0&&(i?pb(e.slice(a),r):e.indexOf(r,a)===a)}t(ic,"endsWith");function dA(e,r){return ic(e,r)?e.slice(0,e.length-r.length):e}t(dA,"removeSuffix");function T_e(e,r){return ic(e,r)?e.slice(0,e.length-r.length):void 0}t(T_e,"tryRemoveSuffix");function tY(e){let r=e.length;for(let i=r-1;i>0;i--){let a=e.charCodeAt(i);if(a>=48&&a<=57)do--i,a=e.charCodeAt(i);while(i>0&&a>=48&&a<=57);else if(i>4&&(a===110||a===78)){if(--i,a=e.charCodeAt(i),a!==105&&a!==73||(--i,a=e.charCodeAt(i),a!==109&&a!==77))break;--i,a=e.charCodeAt(i)}else break;if(a!==45&&a!==46)break;r=i}return r===e.length?e:e.slice(0,r)}t(tY,"removeMinAndVersionNumbers");function VI(e,r){for(let i=0;i<e.length;i++)if(e[i]===r)return db(e,i),!0;return!1}t(VI,"orderedRemoveItem");function db(e,r){for(let i=r;i<e.length-1;i++)e[i]=e[i+1];e.pop()}t(db,"orderedRemoveItemAt");function ROe(e,r){e[r]=e[e.length-1],e.pop()}t(ROe,"unorderedRemoveItemAt");function lw(e,r){return WSt(e,i=>i===r)}t(lw,"unorderedRemoveItem");function WSt(e,r){for(let i=0;i<e.length;i++)if(r(e[i]))return ROe(e,i),!0;return!1}t(WSt,"unorderedRemoveFirstItemWhere");function Hu(e){return e?qo:fb}t(Hu,"createGetCanonicalFileName");function x_e({prefix:e,suffix:r}){return`${e}*${r}`}t(x_e,"patternText");function E_e(e,r){return L.assert(jj(e,r)),r.substring(e.prefix.length,r.length-e.suffix.length)}t(E_e,"matchedText");function rY(e,r,i){let a,c=-1;for(let u=0;u<e.length;u++){let _=e[u],h=r(_);h.prefix.length>c&&jj(h,i)&&(c=h.prefix.length,a=_)}return a}t(rY,"findBestPatternMatch");function fs(e,r,i){return i?pb(e.slice(0,r.length),r):e.lastIndexOf(r,0)===0}t(fs,"startsWith");function HI(e,r){return fs(e,r)?e.substr(r.length):e}t(HI,"removePrefix");function nY(e,r,i=qo){return fs(i(e),i(r))?e.substring(r.length):void 0}t(nY,"tryRemovePrefix");function jj({prefix:e,suffix:r},i){return i.length>=e.length+r.length&&fs(i,e)&&ic(i,r)}t(jj,"isPatternMatch");function Bj(e,r){return i=>e(i)&&r(i)}t(Bj,"and");function ip(...e){return(...r)=>{let i;for(let a of e)if(i=a(...r),i)return i;return i}}t(ip,"or");function Uj(e){return(...r)=>!e(...r)}t(Uj,"not");function MOe(e){}t(MOe,"assertType");function uw(e){return e===void 0?void 0:[e]}t(uw,"singleElementArray");function zj(e,r,i,a,c,u){u??(u=go);let _=0,h=0,m=e.length,T=r.length,S=!1;for(;_<m&&h<T;){let E=e[_],D=r[h],P=i(E,D);P===-1?(a(E),_++,S=!0):P===1?(c(D),h++,S=!0):(u(D,E),_++,h++)}for(;_<m;)a(e[_++]),S=!0;for(;h<T;)c(r[h++]),S=!0;return S}t(zj,"enumerateInsertsAndDeletes");function C_e(e){let r=[];return jOe(e,r,void 0,0),r}t(C_e,"cartesianProduct");function jOe(e,r,i,a){for(let c of e[a]){let u;i?(u=i.slice(),u.push(c)):u=[c],a===e.length-1?r.push(u):jOe(e,r,u,a+1)}}t(jOe,"cartesianProductWorker");function iY(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(0,a)}}t(iY,"takeWhile");function k_e(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(a)}}t(k_e,"skipWhile");function sY(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof uo<"u"}t(sY,"isNodeLikeSystem");var w_e=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(w_e||{}),L;(e=>{let r=0;e.currentLogLevel=2,e.isDebugging=!1;function i(rt){return e.currentLogLevel<=rt}t(i,"shouldLog"),e.shouldLog=i;function a(rt,Pt){e.loggingHost&&i(rt)&&e.loggingHost.log(rt,Pt)}t(a,"logMessage");function c(rt){a(3,rt)}t(c,"log"),e.log=c,(rt=>{function Pt(fi){a(1,fi)}t(Pt,"error2"),rt.error=Pt;function br(fi){a(2,fi)}t(br,"warn"),rt.warn=br;function pn(fi){a(3,fi)}t(pn,"log2"),rt.log=pn;function pi(fi){a(4,fi)}t(pi,"trace2"),rt.trace=pi})(c=e.log||(e.log={}));let u={};function _(){return r}t(_,"getAssertionLevel"),e.getAssertionLevel=_;function h(rt){let Pt=r;if(r=rt,rt>Pt)for(let br of Rh(u)){let pn=u[br];pn!==void 0&&e[br]!==pn.assertion&&rt>=pn.level&&(e[br]=pn,u[br]=void 0)}}t(h,"setAssertionLevel"),e.setAssertionLevel=h;function m(rt){return r>=rt}t(m,"shouldAssert"),e.shouldAssert=m;function T(rt,Pt){return m(rt)?!0:(u[Pt]={level:rt,assertion:e[Pt]},e[Pt]=go,!1)}t(T,"shouldAssertFunction");function S(rt,Pt){debugger;let br=new Error(rt?`Debug Failure. ${rt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(br,Pt||S),br}t(S,"fail"),e.fail=S;function E(rt,Pt,br){return S(`${Pt||"Unexpected node."}\r
|
|
111
|
+
`+new Array(y).join(" ")+"^"}}return null}t(Opt,"getErrorSource");function jmr(s){var o=Opt(s),f=Omr();f&&f._handle&&f._handle.setBlocking&&f._handle.setBlocking(!0),o&&(console.error(),console.error(o)),console.error(s.stack),Fmr(1)}t(jmr,"printErrorAndExit");function Bmr(){var s=process.emit;process.emit=function(o){if(o==="uncaughtException"){var f=arguments[1]&&arguments[1].stack,d=this.listeners(o).length>0;if(f&&!d)return jmr(arguments[1])}return s.apply(this,arguments)}}t(Bmr,"shimEmitUncaughtException");var Umr=xI.slice(0),zmr=EI.slice(0);qO.wrapCallSite=Ipt;qO.getErrorSource=Opt;qO.mapSourcePosition=a3e;qO.retrieveSourceMap=s3e;qO.install=function(s){if(s=s||{},s.environment&&(iG=s.environment,["node","browser","auto"].indexOf(iG)===-1))throw new Error("environment "+iG+" was unknown. Available options are {auto, browser, node}");if(s.retrieveFile&&(s.overrideRetrieveFile&&(xI.length=0),xI.unshift(s.retrieveFile)),s.retrieveSourceMap&&(s.overrideRetrieveSourceMap&&(EI.length=0),EI.unshift(s.retrieveSourceMap)),s.hookRequire&&!n3e()){var o=wpt(r3e,"module"),f=o.prototype._compile;f.__sourceMapSupport||(o.prototype._compile=function(x,A){return WO[A]=x,sG[A]=void 0,f.call(this,x,A)},o.prototype._compile.__sourceMapSupport=!0)}if(e3e||(e3e="emptyCacheBetweenOperations"in s?s.emptyCacheBetweenOperations:!1),Dpt||(Dpt=!0,Error.prepareStackTrace=Mmr),!Ppt){var d="handleUncaughtExceptions"in s?s.handleUncaughtExceptions:!0;try{var y=wpt(r3e,"worker_threads");y.isMainThread===!1&&(d=!1)}catch{}d&&Nmr()&&(Ppt=!0,Bmr())}};qO.resetRetrieveHandlers=function(){xI.length=0,EI.length=0,xI=Umr.slice(0),EI=zmr.slice(0),s3e=Kle(EI),i3e=Kle(xI)}});var _3e=or((g7r,Zle)=>{var Lpt={};(s=>{"use strict";var o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,x=t((e,r)=>{for(var i in r)o(e,i,{get:r[i],enumerable:!0})},"__export"),A=t((e,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of d(r))!y.call(e,c)&&c!==i&&o(e,c,{get:t(()=>r[c],"get"),enumerable:!(a=f(r,c))||a.enumerable});return e},"__copyProps"),F=t(e=>e,"__toCommonJS"),W={};x(W,{ANONYMOUS:t(()=>yre,"ANONYMOUS"),AccessFlags:t(()=>ope,"AccessFlags"),AssertionLevel:t(()=>g_e,"AssertionLevel"),AssignmentDeclarationKind:t(()=>hpe,"AssignmentDeclarationKind"),AssignmentKind:t(()=>zme,"AssignmentKind"),Associativity:t(()=>Yme,"Associativity"),BreakpointResolver:t(()=>hne,"BreakpointResolver"),BuilderFileEmit:t(()=>V1e,"BuilderFileEmit"),BuilderProgramKind:t(()=>eve,"BuilderProgramKind"),BuilderState:t(()=>fh,"BuilderState"),CallHierarchy:t(()=>AD,"CallHierarchy"),CharacterCodes:t(()=>wpe,"CharacterCodes"),CheckFlags:t(()=>npe,"CheckFlags"),CheckMode:t(()=>BQ,"CheckMode"),ClassificationType:t(()=>wte,"ClassificationType"),ClassificationTypeNames:t(()=>rbe,"ClassificationTypeNames"),CommentDirectiveType:t(()=>$_e,"CommentDirectiveType"),Comparison:t(()=>de,"Comparison"),CompletionInfoFlags:t(()=>Yve,"CompletionInfoFlags"),CompletionTriggerKind:t(()=>Cte,"CompletionTriggerKind"),Completions:t(()=>LD,"Completions"),ContainerFlags:t(()=>kye,"ContainerFlags"),ContextFlags:t(()=>Y_e,"ContextFlags"),Debug:t(()=>L,"Debug"),DiagnosticCategory:t(()=>Wj,"DiagnosticCategory"),Diagnostics:t(()=>v,"Diagnostics"),DocumentHighlights:t(()=>UJ,"DocumentHighlights"),ElementFlags:t(()=>ape,"ElementFlags"),EmitFlags:t(()=>EY,"EmitFlags"),EmitHint:t(()=>Npe,"EmitHint"),EmitOnly:t(()=>W_e,"EmitOnly"),EndOfLineState:t(()=>Zve,"EndOfLineState"),ExitStatus:t(()=>q_e,"ExitStatus"),ExportKind:t(()=>Gbe,"ExportKind"),Extension:t(()=>Dpe,"Extension"),ExternalEmitHelpers:t(()=>Ape,"ExternalEmitHelpers"),FileIncludeKind:t(()=>dY,"FileIncludeKind"),FilePreprocessingDiagnosticsKind:t(()=>J_e,"FilePreprocessingDiagnosticsKind"),FileSystemEntryKind:t(()=>Upe,"FileSystemEntryKind"),FileWatcherEventKind:t(()=>Mpe,"FileWatcherEventKind"),FindAllReferences:t(()=>ec,"FindAllReferences"),FlattenLevel:t(()=>Gye,"FlattenLevel"),FlowFlags:t(()=>Jj,"FlowFlags"),ForegroundColorEscapeSequences:t(()=>R1e,"ForegroundColorEscapeSequences"),FunctionFlags:t(()=>Hme,"FunctionFlags"),GeneratedIdentifierFlags:t(()=>pY,"GeneratedIdentifierFlags"),GetLiteralTextFlags:t(()=>ime,"GetLiteralTextFlags"),GoToDefinition:t(()=>Q6,"GoToDefinition"),HighlightSpanKind:t(()=>Hve,"HighlightSpanKind"),IdentifierNameMap:t(()=>D6,"IdentifierNameMap"),ImportKind:t(()=>Hbe,"ImportKind"),ImportsNotUsedAsValues:t(()=>Tpe,"ImportsNotUsedAsValues"),IndentStyle:t(()=>Gve,"IndentStyle"),IndexFlags:t(()=>cpe,"IndexFlags"),IndexKind:t(()=>fpe,"IndexKind"),InferenceFlags:t(()=>dpe,"InferenceFlags"),InferencePriority:t(()=>ppe,"InferencePriority"),InlayHintKind:t(()=>Vve,"InlayHintKind"),InlayHints:t(()=>oie,"InlayHints"),InternalEmitFlags:t(()=>Ppe,"InternalEmitFlags"),InternalNodeBuilderFlags:t(()=>X_e,"InternalNodeBuilderFlags"),InternalSymbolName:t(()=>ipe,"InternalSymbolName"),IntersectionFlags:t(()=>G_e,"IntersectionFlags"),InvalidatedProjectKind:t(()=>xve,"InvalidatedProjectKind"),JSDocParsingMode:t(()=>Rpe,"JSDocParsingMode"),JsDoc:t(()=>v2,"JsDoc"),JsTyping:t(()=>Xb,"JsTyping"),JsxEmit:t(()=>Spe,"JsxEmit"),JsxFlags:t(()=>j_e,"JsxFlags"),JsxReferenceKind:t(()=>lpe,"JsxReferenceKind"),LanguageFeatureMinimumTarget:t(()=>du,"LanguageFeatureMinimumTarget"),LanguageServiceMode:t(()=>Wve,"LanguageServiceMode"),LanguageVariant:t(()=>Cpe,"LanguageVariant"),LexicalEnvironmentFlags:t(()=>Ope,"LexicalEnvironmentFlags"),ListFormat:t(()=>Fpe,"ListFormat"),LogLevel:t(()=>w_e,"LogLevel"),MapCode:t(()=>cie,"MapCode"),MemberOverrideStatus:t(()=>V_e,"MemberOverrideStatus"),ModifierFlags:t(()=>fY,"ModifierFlags"),ModuleDetectionKind:t(()=>gpe,"ModuleDetectionKind"),ModuleInstanceState:t(()=>Eye,"ModuleInstanceState"),ModuleKind:t(()=>hA,"ModuleKind"),ModuleResolutionKind:t(()=>mA,"ModuleResolutionKind"),ModuleSpecifierEnding:t(()=>qhe,"ModuleSpecifierEnding"),NavigateTo:t(()=>ySe,"NavigateTo"),NavigationBar:t(()=>bSe,"NavigationBar"),NewLineKind:t(()=>xpe,"NewLineKind"),NodeBuilderFlags:t(()=>K_e,"NodeBuilderFlags"),NodeCheckFlags:t(()=>gY,"NodeCheckFlags"),NodeFactoryFlags:t(()=>bge,"NodeFactoryFlags"),NodeFlags:t(()=>uY,"NodeFlags"),NodeResolutionFeatures:t(()=>dye,"NodeResolutionFeatures"),ObjectFlags:t(()=>vY,"ObjectFlags"),OperationCanceledException:t(()=>QI,"OperationCanceledException"),OperatorPrecedence:t(()=>Kme,"OperatorPrecedence"),OrganizeImports:t(()=>b2,"OrganizeImports"),OrganizeImportsMode:t(()=>Ete,"OrganizeImportsMode"),OuterExpressionKinds:t(()=>Ipe,"OuterExpressionKinds"),OutliningElementsCollector:t(()=>uie,"OutliningElementsCollector"),OutliningSpanKind:t(()=>Kve,"OutliningSpanKind"),OutputFileType:t(()=>Xve,"OutputFileType"),PackageJsonAutoImportPreference:t(()=>Jve,"PackageJsonAutoImportPreference"),PackageJsonDependencyGroup:t(()=>$ve,"PackageJsonDependencyGroup"),PatternMatchKind:t(()=>Mre,"PatternMatchKind"),PollingInterval:t(()=>CY,"PollingInterval"),PollingWatchKind:t(()=>bpe,"PollingWatchKind"),PragmaKindFlags:t(()=>Lpe,"PragmaKindFlags"),PredicateSemantics:t(()=>B_e,"PredicateSemantics"),PreparePasteEdits:t(()=>Cie,"PreparePasteEdits"),PrivateIdentifierKind:t(()=>Age,"PrivateIdentifierKind"),ProcessLevel:t(()=>Zye,"ProcessLevel"),ProgramUpdateLevel:t(()=>N1e,"ProgramUpdateLevel"),QuotePreference:t(()=>Ebe,"QuotePreference"),RegularExpressionFlags:t(()=>U_e,"RegularExpressionFlags"),RelationComparisonResult:t(()=>_Y,"RelationComparisonResult"),Rename:t(()=>xW,"Rename"),ScriptElementKind:t(()=>ebe,"ScriptElementKind"),ScriptElementKindModifier:t(()=>tbe,"ScriptElementKindModifier"),ScriptKind:t(()=>SY,"ScriptKind"),ScriptSnapshot:t(()=>Z$,"ScriptSnapshot"),ScriptTarget:t(()=>Epe,"ScriptTarget"),SemanticClassificationFormat:t(()=>qve,"SemanticClassificationFormat"),SemanticMeaning:t(()=>nbe,"SemanticMeaning"),SemicolonPreference:t(()=>kte,"SemicolonPreference"),SignatureCheckMode:t(()=>UQ,"SignatureCheckMode"),SignatureFlags:t(()=>bY,"SignatureFlags"),SignatureHelp:t(()=>mR,"SignatureHelp"),SignatureInfo:t(()=>q1e,"SignatureInfo"),SignatureKind:t(()=>upe,"SignatureKind"),SmartSelectionRange:t(()=>pie,"SmartSelectionRange"),SnippetKind:t(()=>xY,"SnippetKind"),StatisticType:t(()=>Ive,"StatisticType"),StructureIsReused:t(()=>mY,"StructureIsReused"),SymbolAccessibility:t(()=>epe,"SymbolAccessibility"),SymbolDisplay:t(()=>pv,"SymbolDisplay"),SymbolDisplayPartKind:t(()=>eJ,"SymbolDisplayPartKind"),SymbolFlags:t(()=>hY,"SymbolFlags"),SymbolFormatFlags:t(()=>Q_e,"SymbolFormatFlags"),SyntaxKind:t(()=>lY,"SyntaxKind"),Ternary:t(()=>mpe,"Ternary"),ThrottledCancellationToken:t(()=>D2e,"ThrottledCancellationToken"),TokenClass:t(()=>Qve,"TokenClass"),TokenFlags:t(()=>z_e,"TokenFlags"),TransformFlags:t(()=>TY,"TransformFlags"),TypeFacts:t(()=>jQ,"TypeFacts"),TypeFlags:t(()=>yY,"TypeFlags"),TypeFormatFlags:t(()=>Z_e,"TypeFormatFlags"),TypeMapKind:t(()=>_pe,"TypeMapKind"),TypePredicateKind:t(()=>tpe,"TypePredicateKind"),TypeReferenceSerializationKind:t(()=>rpe,"TypeReferenceSerializationKind"),UnionReduction:t(()=>H_e,"UnionReduction"),UpToDateStatusType:t(()=>hve,"UpToDateStatusType"),VarianceFlags:t(()=>spe,"VarianceFlags"),Version:t(()=>Zm,"Version"),VersionRange:t(()=>$j,"VersionRange"),WatchDirectoryFlags:t(()=>kpe,"WatchDirectoryFlags"),WatchDirectoryKind:t(()=>vpe,"WatchDirectoryKind"),WatchFileKind:t(()=>ype,"WatchFileKind"),WatchLogLevel:t(()=>O1e,"WatchLogLevel"),WatchType:t(()=>xu,"WatchType"),accessPrivateIdentifier:t(()=>Hye,"accessPrivateIdentifier"),addEmitFlags:t(()=>Kh,"addEmitFlags"),addEmitHelper:t(()=>Xw,"addEmitHelper"),addEmitHelpers:t(()=>H0,"addEmitHelpers"),addInternalEmitFlags:t(()=>mC,"addInternalEmitFlags"),addNodeFactoryPatcher:t(()=>TFe,"addNodeFactoryPatcher"),addObjectAllocatorPatcher:t(()=>oFe,"addObjectAllocatorPatcher"),addRange:t(()=>Zn,"addRange"),addRelatedInfo:t(()=>da,"addRelatedInfo"),addSyntheticLeadingComment:t(()=>ax,"addSyntheticLeadingComment"),addSyntheticTrailingComment:t(()=>_3,"addSyntheticTrailingComment"),addToSeen:t(()=>lm,"addToSeen"),advancedAsyncSuperHelper:t(()=>lz,"advancedAsyncSuperHelper"),affectsDeclarationPathOptionDeclarations:t(()=>M0e,"affectsDeclarationPathOptionDeclarations"),affectsEmitOptionDeclarations:t(()=>R0e,"affectsEmitOptionDeclarations"),allKeysStartWithDot:t(()=>n$,"allKeysStartWithDot"),altDirectorySeparator:t(()=>Gj,"altDirectorySeparator"),and:t(()=>Bj,"and"),append:t(()=>Kr,"append"),appendIfUnique:t(()=>Ly,"appendIfUnique"),arrayFrom:t(()=>Ps,"arrayFrom"),arrayIsEqualTo:t(()=>ed,"arrayIsEqualTo"),arrayIsHomogeneous:t(()=>Qhe,"arrayIsHomogeneous"),arrayOf:t(()=>p_e,"arrayOf"),arrayReverseIterator:t(()=>JG,"arrayReverseIterator"),arrayToMap:t(()=>fA,"arrayToMap"),arrayToMultiMap:t(()=>E7,"arrayToMultiMap"),arrayToNumericMap:t(()=>m_e,"arrayToNumericMap"),assertType:t(()=>MOe,"assertType"),assign:t(()=>$E,"assign"),asyncSuperHelper:t(()=>cz,"asyncSuperHelper"),attachFileToDiagnostics:t(()=>$w,"attachFileToDiagnostics"),base64decode:t(()=>ghe,"base64decode"),base64encode:t(()=>hhe,"base64encode"),binarySearch:t(()=>lb,"binarySearch"),binarySearchKey:t(()=>aw,"binarySearchKey"),bindSourceFile:t(()=>wye,"bindSourceFile"),breakIntoCharacterSpans:t(()=>uSe,"breakIntoCharacterSpans"),breakIntoWordSpans:t(()=>fSe,"breakIntoWordSpans"),buildLinkParts:t(()=>Ibe,"buildLinkParts"),buildOpts:t(()=>z5,"buildOpts"),buildOverload:t(()=>cGe,"buildOverload"),bundlerModuleNameResolver:t(()=>mye,"bundlerModuleNameResolver"),canBeConvertedToAsync:t(()=>Jre,"canBeConvertedToAsync"),canHaveDecorators:t(()=>hx,"canHaveDecorators"),canHaveExportModifier:t(()=>f5,"canHaveExportModifier"),canHaveFlowNode:t(()=>UA,"canHaveFlowNode"),canHaveIllegalDecorators:t(()=>HZ,"canHaveIllegalDecorators"),canHaveIllegalModifiers:t(()=>h0e,"canHaveIllegalModifiers"),canHaveIllegalType:t(()=>GFe,"canHaveIllegalType"),canHaveIllegalTypeParameters:t(()=>m0e,"canHaveIllegalTypeParameters"),canHaveJSDoc:t(()=>OF,"canHaveJSDoc"),canHaveLocals:t(()=>Wg,"canHaveLocals"),canHaveModifiers:t(()=>pm,"canHaveModifiers"),canHaveModuleSpecifier:t(()=>jme,"canHaveModuleSpecifier"),canHaveSymbol:t(()=>th,"canHaveSymbol"),canIncludeBindAndCheckDiagnostics:t(()=>r3,"canIncludeBindAndCheckDiagnostics"),canJsonReportNoInputFiles:t(()=>H5,"canJsonReportNoInputFiles"),canProduceDiagnostics:t(()=>nL,"canProduceDiagnostics"),canUsePropertyAccess:t(()=>eZ,"canUsePropertyAccess"),canWatchAffectingLocation:t(()=>cve,"canWatchAffectingLocation"),canWatchAtTypes:t(()=>ove,"canWatchAtTypes"),canWatchDirectoryOrFile:t(()=>zee,"canWatchDirectoryOrFile"),canWatchDirectoryOrFilePath:t(()=>yL,"canWatchDirectoryOrFilePath"),cartesianProduct:t(()=>C_e,"cartesianProduct"),cast:t(()=>ha,"cast"),chainBundle:t(()=>uh,"chainBundle"),chainDiagnosticMessages:t(()=>qs,"chainDiagnosticMessages"),changeAnyExtension:t(()=>N7,"changeAnyExtension"),changeCompilerHostLikeToUseCache:t(()=>G3,"changeCompilerHostLikeToUseCache"),changeExtension:t(()=>Gy,"changeExtension"),changeFullExtension:t(()=>Xj,"changeFullExtension"),changesAffectModuleResolution:t(()=>EB,"changesAffectModuleResolution"),changesAffectingProgramStructure:t(()=>Kde,"changesAffectingProgramStructure"),characterCodeToRegularExpressionFlag:t(()=>RY,"characterCodeToRegularExpressionFlag"),childIsDecorated:t(()=>w4,"childIsDecorated"),classElementOrClassElementParameterIsDecorated:t(()=>LK,"classElementOrClassElementParameterIsDecorated"),classHasClassThisAssignment:t(()=>tee,"classHasClassThisAssignment"),classHasDeclaredOrExplicitlyAssignedName:t(()=>ree,"classHasDeclaredOrExplicitlyAssignedName"),classHasExplicitlyAssignedName:t(()=>h$,"classHasExplicitlyAssignedName"),classOrConstructorParameterIsDecorated:t(()=>Y1,"classOrConstructorParameterIsDecorated"),classicNameResolver:t(()=>Tye,"classicNameResolver"),classifier:t(()=>I2e,"classifier"),cleanExtendedConfigCache:t(()=>T$,"cleanExtendedConfigCache"),clear:t(()=>bu,"clear"),clearMap:t(()=>$_,"clearMap"),clearSharedExtendedConfigFileWatcher:t(()=>hee,"clearSharedExtendedConfigFileWatcher"),climbPastPropertyAccess:t(()=>nJ,"climbPastPropertyAccess"),clone:t(()=>h_e,"clone"),cloneCompilerOptions:t(()=>Vte,"cloneCompilerOptions"),closeFileWatcher:t(()=>Om,"closeFileWatcher"),closeFileWatcherOf:t(()=>Ud,"closeFileWatcherOf"),codefix:t(()=>Af,"codefix"),collapseTextChangeRangesAcrossMultipleVersions:t(()=>lde,"collapseTextChangeRangesAcrossMultipleVersions"),collectExternalModuleInfo:t(()=>XQ,"collectExternalModuleInfo"),combine:t(()=>sw,"combine"),combinePaths:t(()=>ei,"combinePaths"),commandLineOptionOfCustomType:t(()=>U0e,"commandLineOptionOfCustomType"),commentPragmas:t(()=>qj,"commentPragmas"),commonOptionsWithBuild:t(()=>Rz,"commonOptionsWithBuild"),compact:t(()=>T7,"compact"),compareBooleans:t(()=>IS,"compareBooleans"),compareDataObjects:t(()=>DX,"compareDataObjects"),compareDiagnostics:t(()=>Y4,"compareDiagnostics"),compareEmitHelpers:t(()=>Ige,"compareEmitHelpers"),compareNumberOfDirectorySeparators:t(()=>c5,"compareNumberOfDirectorySeparators"),comparePaths:t(()=>My,"comparePaths"),comparePathsCaseInsensitive:t(()=>o7e,"comparePathsCaseInsensitive"),comparePathsCaseSensitive:t(()=>a7e,"comparePathsCaseSensitive"),comparePatternKeys:t(()=>NQ,"comparePatternKeys"),compareProperties:t(()=>S_e,"compareProperties"),compareStringsCaseInsensitive:t(()=>k7,"compareStringsCaseInsensitive"),compareStringsCaseInsensitiveEslintCompatible:t(()=>y_e,"compareStringsCaseInsensitiveEslintCompatible"),compareStringsCaseSensitive:t(()=>lf,"compareStringsCaseSensitive"),compareStringsCaseSensitiveUI:t(()=>w7,"compareStringsCaseSensitiveUI"),compareTextSpans:t(()=>Mj,"compareTextSpans"),compareValues:t(()=>Vo,"compareValues"),compilerOptionsAffectDeclarationPath:t(()=>Bhe,"compilerOptionsAffectDeclarationPath"),compilerOptionsAffectEmit:t(()=>jhe,"compilerOptionsAffectEmit"),compilerOptionsAffectSemanticDiagnostics:t(()=>Mhe,"compilerOptionsAffectSemanticDiagnostics"),compilerOptionsDidYouMeanDiagnostics:t(()=>Uz,"compilerOptionsDidYouMeanDiagnostics"),compilerOptionsIndicateEsModules:t(()=>Zte,"compilerOptionsIndicateEsModules"),computeCommonSourceDirectoryOfFilenames:t(()=>F1e,"computeCommonSourceDirectoryOfFilenames"),computeLineAndCharacterOfPosition:t(()=>vA,"computeLineAndCharacterOfPosition"),computeLineOfPosition:t(()=>i4,"computeLineOfPosition"),computeLineStarts:t(()=>mw,"computeLineStarts"),computePositionOfLineAndCharacter:t(()=>tB,"computePositionOfLineAndCharacter"),computeSignatureWithDiagnostics:t(()=>Lee,"computeSignatureWithDiagnostics"),computeSuggestionDiagnostics:t(()=>Ure,"computeSuggestionDiagnostics"),computedOptions:t(()=>K4,"computedOptions"),concatenate:t(()=>us,"concatenate"),concatenateDiagnosticMessageChains:t(()=>Ahe,"concatenateDiagnosticMessageChains"),consumesNodeCoreModules:t(()=>NJ,"consumesNodeCoreModules"),contains:t(()=>Ci,"contains"),containsIgnoredPath:t(()=>s3,"containsIgnoredPath"),containsObjectRestOrSpread:t(()=>M5,"containsObjectRestOrSpread"),containsParseError:t(()=>Cw,"containsParseError"),containsPath:t(()=>wd,"containsPath"),convertCompilerOptionsForTelemetry:t(()=>rye,"convertCompilerOptionsForTelemetry"),convertCompilerOptionsFromJson:t(()=>rLe,"convertCompilerOptionsFromJson"),convertJsonOption:t(()=>PC,"convertJsonOption"),convertToBase64:t(()=>mhe,"convertToBase64"),convertToJson:t(()=>W5,"convertToJson"),convertToObject:t(()=>Y0e,"convertToObject"),convertToOptionsWithAbsolutePaths:t(()=>Wz,"convertToOptionsWithAbsolutePaths"),convertToRelativePath:t(()=>r4,"convertToRelativePath"),convertToTSConfig:t(()=>dQ,"convertToTSConfig"),convertTypeAcquisitionFromJson:t(()=>nLe,"convertTypeAcquisitionFromJson"),copyComments:t(()=>jC,"copyComments"),copyEntries:t(()=>CB,"copyEntries"),copyLeadingComments:t(()=>q6,"copyLeadingComments"),copyProperties:t(()=>YG,"copyProperties"),copyTrailingAsLeadingComments:t(()=>UL,"copyTrailingAsLeadingComments"),copyTrailingComments:t(()=>u8,"copyTrailingComments"),couldStartTrivia:t(()=>Ype,"couldStartTrivia"),countWhere:t(()=>Bf,"countWhere"),createAbstractBuilder:t(()=>l9e,"createAbstractBuilder"),createAccessorPropertyBackingField:t(()=>KZ,"createAccessorPropertyBackingField"),createAccessorPropertyGetRedirector:t(()=>E0e,"createAccessorPropertyGetRedirector"),createAccessorPropertySetRedirector:t(()=>C0e,"createAccessorPropertySetRedirector"),createBaseNodeFactory:t(()=>mge,"createBaseNodeFactory"),createBinaryExpressionTrampoline:t(()=>Nz,"createBinaryExpressionTrampoline"),createBuilderProgram:t(()=>Ree,"createBuilderProgram"),createBuilderProgramUsingIncrementalBuildInfo:t(()=>ive,"createBuilderProgramUsingIncrementalBuildInfo"),createBuilderStatusReporter:t(()=>W$,"createBuilderStatusReporter"),createCacheableExportInfoMap:t(()=>Pre,"createCacheableExportInfoMap"),createCachedDirectoryStructureHost:t(()=>b$,"createCachedDirectoryStructureHost"),createClassifier:t(()=>UMe,"createClassifier"),createCommentDirectivesMap:t(()=>rme,"createCommentDirectivesMap"),createCompilerDiagnostic:t(()=>kc,"createCompilerDiagnostic"),createCompilerDiagnosticForInvalidCustomType:t(()=>z0e,"createCompilerDiagnosticForInvalidCustomType"),createCompilerDiagnosticFromMessageChain:t(()=>PU,"createCompilerDiagnosticFromMessageChain"),createCompilerHost:t(()=>L1e,"createCompilerHost"),createCompilerHostFromProgramHost:t(()=>rte,"createCompilerHostFromProgramHost"),createCompilerHostWorker:t(()=>x$,"createCompilerHostWorker"),createDetachedDiagnostic:t(()=>zw,"createDetachedDiagnostic"),createDiagnosticCollection:t(()=>B4,"createDiagnosticCollection"),createDiagnosticForFileFromMessageChain:t(()=>AK,"createDiagnosticForFileFromMessageChain"),createDiagnosticForNode:t(()=>Sn,"createDiagnosticForNode"),createDiagnosticForNodeArray:t(()=>IA,"createDiagnosticForNodeArray"),createDiagnosticForNodeArrayFromMessageChain:t(()=>lF,"createDiagnosticForNodeArrayFromMessageChain"),createDiagnosticForNodeFromMessageChain:t(()=>M0,"createDiagnosticForNodeFromMessageChain"),createDiagnosticForNodeInSourceFile:t(()=>Pd,"createDiagnosticForNodeInSourceFile"),createDiagnosticForRange:t(()=>hme,"createDiagnosticForRange"),createDiagnosticMessageChainFromDiagnostic:t(()=>mme,"createDiagnosticMessageChainFromDiagnostic"),createDiagnosticReporter:t(()=>TD,"createDiagnosticReporter"),createDocumentPositionMapper:t(()=>$ye,"createDocumentPositionMapper"),createDocumentRegistry:t(()=>Qbe,"createDocumentRegistry"),createDocumentRegistryInternal:t(()=>Fre,"createDocumentRegistryInternal"),createEmitAndSemanticDiagnosticsBuilderProgram:t(()=>Uee,"createEmitAndSemanticDiagnosticsBuilderProgram"),createEmitHelperFactory:t(()=>Nge,"createEmitHelperFactory"),createEmptyExports:t(()=>P5,"createEmptyExports"),createEvaluator:t(()=>lge,"createEvaluator"),createExpressionForJsxElement:t(()=>l0e,"createExpressionForJsxElement"),createExpressionForJsxFragment:t(()=>u0e,"createExpressionForJsxFragment"),createExpressionForObjectLiteralElementLike:t(()=>f0e,"createExpressionForObjectLiteralElementLike"),createExpressionForPropertyName:t(()=>zZ,"createExpressionForPropertyName"),createExpressionFromEntityName:t(()=>A5,"createExpressionFromEntityName"),createExternalHelpersImportDeclarationIfNeeded:t(()=>WZ,"createExternalHelpersImportDeclarationIfNeeded"),createFileDiagnostic:t(()=>su,"createFileDiagnostic"),createFileDiagnosticFromMessageChain:t(()=>LB,"createFileDiagnosticFromMessageChain"),createFlowNode:t(()=>Qg,"createFlowNode"),createForOfBindingStatement:t(()=>UZ,"createForOfBindingStatement"),createFutureSourceFile:t(()=>MJ,"createFutureSourceFile"),createGetCanonicalFileName:t(()=>Hu,"createGetCanonicalFileName"),createGetIsolatedDeclarationErrors:t(()=>S1e,"createGetIsolatedDeclarationErrors"),createGetSourceFile:t(()=>See,"createGetSourceFile"),createGetSymbolAccessibilityDiagnosticForNode:t(()=>c2,"createGetSymbolAccessibilityDiagnosticForNode"),createGetSymbolAccessibilityDiagnosticForNodeName:t(()=>b1e,"createGetSymbolAccessibilityDiagnosticForNodeName"),createGetSymbolWalker:t(()=>Dye,"createGetSymbolWalker"),createIncrementalCompilerHost:t(()=>J$,"createIncrementalCompilerHost"),createIncrementalProgram:t(()=>mve,"createIncrementalProgram"),createJsxFactoryExpression:t(()=>BZ,"createJsxFactoryExpression"),createLanguageService:t(()=>P2e,"createLanguageService"),createLanguageServiceSourceFile:t(()=>rW,"createLanguageServiceSourceFile"),createMemberAccessForPropertyName:t(()=>wC,"createMemberAccessForPropertyName"),createModeAwareCache:t(()=>x6,"createModeAwareCache"),createModeAwareCacheKey:t(()=>F3,"createModeAwareCacheKey"),createModeMismatchDetails:t(()=>dK,"createModeMismatchDetails"),createModuleNotFoundChain:t(()=>wB,"createModuleNotFoundChain"),createModuleResolutionCache:t(()=>E6,"createModuleResolutionCache"),createModuleResolutionLoader:t(()=>wee,"createModuleResolutionLoader"),createModuleResolutionLoaderUsingGlobalCache:t(()=>_ve,"createModuleResolutionLoaderUsingGlobalCache"),createModuleSpecifierResolutionHost:t(()=>_2,"createModuleSpecifierResolutionHost"),createMultiMap:t(()=>rm,"createMultiMap"),createNameResolver:t(()=>sZ,"createNameResolver"),createNodeConverters:t(()=>yge,"createNodeConverters"),createNodeFactory:t(()=>m5,"createNodeFactory"),createOptionNameMap:t(()=>jz,"createOptionNameMap"),createOverload:t(()=>wie,"createOverload"),createPackageJsonImportFilter:t(()=>V6,"createPackageJsonImportFilter"),createPackageJsonInfo:t(()=>Sre,"createPackageJsonInfo"),createParenthesizerRules:t(()=>hge,"createParenthesizerRules"),createPatternMatcher:t(()=>iSe,"createPatternMatcher"),createPrinter:t(()=>Yb,"createPrinter"),createPrinterWithDefaults:t(()=>P1e,"createPrinterWithDefaults"),createPrinterWithRemoveComments:t(()=>bx,"createPrinterWithRemoveComments"),createPrinterWithRemoveCommentsNeverAsciiEscape:t(()=>A1e,"createPrinterWithRemoveCommentsNeverAsciiEscape"),createPrinterWithRemoveCommentsOmitTrailingSemicolon:t(()=>mee,"createPrinterWithRemoveCommentsOmitTrailingSemicolon"),createProgram:t(()=>mL,"createProgram"),createProgramDiagnostics:t(()=>J1e,"createProgramDiagnostics"),createProgramHost:t(()=>nte,"createProgramHost"),createPropertyNameNodeForIdentifierOrLiteral:t(()=>YU,"createPropertyNameNodeForIdentifierOrLiteral"),createQueue:t(()=>C7,"createQueue"),createRange:t(()=>Id,"createRange"),createRedirectedBuilderProgram:t(()=>Bee,"createRedirectedBuilderProgram"),createResolutionCache:t(()=>Jee,"createResolutionCache"),createRuntimeTypeSerializer:t(()=>n1e,"createRuntimeTypeSerializer"),createScanner:t(()=>N0,"createScanner"),createSemanticDiagnosticsBuilderProgram:t(()=>c9e,"createSemanticDiagnosticsBuilderProgram"),createSet:t(()=>KG,"createSet"),createSolutionBuilder:t(()=>bve,"createSolutionBuilder"),createSolutionBuilderHost:t(()=>yve,"createSolutionBuilderHost"),createSolutionBuilderWithWatch:t(()=>Sve,"createSolutionBuilderWithWatch"),createSolutionBuilderWithWatchHost:t(()=>vve,"createSolutionBuilderWithWatchHost"),createSortedArray:t(()=>$G,"createSortedArray"),createSourceFile:t(()=>pD,"createSourceFile"),createSourceMapGenerator:t(()=>Mye,"createSourceMapGenerator"),createSourceMapSource:t(()=>kFe,"createSourceMapSource"),createSuperAccessVariableStatement:t(()=>y$,"createSuperAccessVariableStatement"),createSymbolTable:t(()=>ga,"createSymbolTable"),createSymlinkCache:t(()=>jX,"createSymlinkCache"),createSyntacticTypeNodeBuilder:t(()=>Bve,"createSyntacticTypeNodeBuilder"),createSystemWatchFunctions:t(()=>zpe,"createSystemWatchFunctions"),createTextChange:t(()=>IL,"createTextChange"),createTextChangeFromStartLength:t(()=>hJ,"createTextChangeFromStartLength"),createTextChangeRange:t(()=>z7,"createTextChangeRange"),createTextRangeFromNode:t(()=>Yte,"createTextRangeFromNode"),createTextRangeFromSpan:t(()=>mJ,"createTextRangeFromSpan"),createTextSpan:t(()=>Gu,"createTextSpan"),createTextSpanFromBounds:t(()=>ul,"createTextSpanFromBounds"),createTextSpanFromNode:t(()=>f_,"createTextSpanFromNode"),createTextSpanFromRange:t(()=>uv,"createTextSpanFromRange"),createTextSpanFromStringLiteralLikeContent:t(()=>Gte,"createTextSpanFromStringLiteralLikeContent"),createTextWriter:t(()=>qF,"createTextWriter"),createTokenRange:t(()=>xX,"createTokenRange"),createTypeChecker:t(()=>Lye,"createTypeChecker"),createTypeReferenceDirectiveResolutionCache:t(()=>e$,"createTypeReferenceDirectiveResolutionCache"),createTypeReferenceResolutionLoader:t(()=>k$,"createTypeReferenceResolutionLoader"),createWatchCompilerHost:t(()=>v9e,"createWatchCompilerHost"),createWatchCompilerHostOfConfigFile:t(()=>ite,"createWatchCompilerHostOfConfigFile"),createWatchCompilerHostOfFilesAndCompilerOptions:t(()=>ste,"createWatchCompilerHostOfFilesAndCompilerOptions"),createWatchFactory:t(()=>tte,"createWatchFactory"),createWatchHost:t(()=>ete,"createWatchHost"),createWatchProgram:t(()=>ate,"createWatchProgram"),createWatchStatusReporter:t(()=>Wee,"createWatchStatusReporter"),createWriteFileMeasuringIO:t(()=>Tee,"createWriteFileMeasuringIO"),declarationNameToString:t(()=>zo,"declarationNameToString"),decodeMappings:t(()=>GQ,"decodeMappings"),decodedTextSpanIntersectsWith:t(()=>U7,"decodedTextSpanIntersectsWith"),deduplicate:t(()=>NT,"deduplicate"),defaultInitCompilerOptions:t(()=>oQ,"defaultInitCompilerOptions"),defaultMaximumTruncationLength:t(()=>b4,"defaultMaximumTruncationLength"),diagnosticCategoryName:t(()=>WE,"diagnosticCategoryName"),diagnosticToString:t(()=>kx,"diagnosticToString"),diagnosticsEqualityComparer:t(()=>AU,"diagnosticsEqualityComparer"),directoryProbablyExists:t(()=>ih,"directoryProbablyExists"),directorySeparator:t(()=>Xo,"directorySeparator"),displayPart:t(()=>q_,"displayPart"),displayPartsToString:t(()=>QL,"displayPartsToString"),disposeEmitNodes:t(()=>dZ,"disposeEmitNodes"),documentSpansEqual:t(()=>sre,"documentSpansEqual"),dumpTracingLegend:t(()=>M_e,"dumpTracingLegend"),elementAt:t(()=>cb,"elementAt"),elideNodes:t(()=>x0e,"elideNodes"),emitDetachedComments:t(()=>she,"emitDetachedComments"),emitFiles:t(()=>pee,"emitFiles"),emitFilesAndReportErrors:t(()=>B$,"emitFilesAndReportErrors"),emitFilesAndReportErrorsAndGetExitStatus:t(()=>Qee,"emitFilesAndReportErrorsAndGetExitStatus"),emitModuleKindIsNonNodeESM:t(()=>i5,"emitModuleKindIsNonNodeESM"),emitNewLineBeforeLeadingCommentOfPosition:t(()=>ihe,"emitNewLineBeforeLeadingCommentOfPosition"),emitResolverSkipsTypeChecking:t(()=>_ee,"emitResolverSkipsTypeChecking"),emitSkippedWithNoDiagnostics:t(()=>Aee,"emitSkippedWithNoDiagnostics"),emptyArray:t(()=>se,"emptyArray"),emptyFileSystemEntries:t(()=>VX,"emptyFileSystemEntries"),emptyMap:t(()=>Xe,"emptyMap"),emptyOptions:t(()=>dm,"emptyOptions"),endsWith:t(()=>ic,"endsWith"),ensurePathIsNonModuleName:t(()=>qE,"ensurePathIsNonModuleName"),ensureScriptKind:t(()=>UU,"ensureScriptKind"),ensureTrailingDirectorySeparator:t(()=>nu,"ensureTrailingDirectorySeparator"),entityNameToString:t(()=>cp,"entityNameToString"),enumerateInsertsAndDeletes:t(()=>zj,"enumerateInsertsAndDeletes"),equalOwnProperties:t(()=>d_e,"equalOwnProperties"),equateStringsCaseInsensitive:t(()=>pb,"equateStringsCaseInsensitive"),equateStringsCaseSensitive:t(()=>FT,"equateStringsCaseSensitive"),equateValues:t(()=>_b,"equateValues"),escapeJsxAttributeString:t(()=>sX,"escapeJsxAttributeString"),escapeLeadingUnderscores:t(()=>Lc,"escapeLeadingUnderscores"),escapeNonAsciiString:t(()=>cU,"escapeNonAsciiString"),escapeSnippetText:t(()=>sx,"escapeSnippetText"),escapeString:t(()=>Yg,"escapeString"),escapeTemplateSubstitution:t(()=>nX,"escapeTemplateSubstitution"),evaluatorResult:t(()=>au,"evaluatorResult"),every:t(()=>kr,"every"),exclusivelyPrefixedNodeCoreModules:t(()=>rz,"exclusivelyPrefixedNodeCoreModules"),executeCommandLine:t(()=>Z9e,"executeCommandLine"),expandPreOrPostfixIncrementOrDecrementExpression:t(()=>kz,"expandPreOrPostfixIncrementOrDecrementExpression"),explainFiles:t(()=>Gee,"explainFiles"),explainIfFileIsRedirectAndImpliedFormat:t(()=>Yee,"explainIfFileIsRedirectAndImpliedFormat"),exportAssignmentIsAlias:t(()=>MF,"exportAssignmentIsAlias"),expressionResultIsUnused:t(()=>tge,"expressionResultIsUnused"),extend:t(()=>Rj,"extend"),extensionFromPath:t(()=>e3,"extensionFromPath"),extensionIsTS:t(()=>qU,"extensionIsTS"),extensionsNotSupportingExtensionlessResolution:t(()=>WU,"extensionsNotSupportingExtensionlessResolution"),externalHelpersModuleNameText:t(()=>kb,"externalHelpersModuleNameText"),factory:t(()=>B,"factory"),fileExtensionIs:t(()=>bc,"fileExtensionIs"),fileExtensionIsOneOf:t(()=>ll,"fileExtensionIsOneOf"),fileIncludeReasonToDiagnostics:t(()=>Zee,"fileIncludeReasonToDiagnostics"),fileShouldUseJavaScriptRequire:t(()=>Dre,"fileShouldUseJavaScriptRequire"),filter:t(()=>In,"filter"),filterMutate:t(()=>PT,"filterMutate"),filterSemanticDiagnostics:t(()=>A$,"filterSemanticDiagnostics"),find:t(()=>yr,"find"),findAncestor:t(()=>Ar,"findAncestor"),findBestPatternMatch:t(()=>rY,"findBestPatternMatch"),findChildOfKind:t(()=>Po,"findChildOfKind"),findComputedPropertyNameCacheAssignment:t(()=>Iz,"findComputedPropertyNameCacheAssignment"),findConfigFile:t(()=>vee,"findConfigFile"),findConstructorDeclaration:t(()=>d5,"findConstructorDeclaration"),findContainingList:t(()=>cJ,"findContainingList"),findDiagnosticForNode:t(()=>Wbe,"findDiagnosticForNode"),findFirstNonJsxWhitespaceToken:t(()=>fbe,"findFirstNonJsxWhitespaceToken"),findIndex:t(()=>bi,"findIndex"),findLast:t(()=>xs,"findLast"),findLastIndex:t(()=>fc,"findLastIndex"),findListItemInfo:t(()=>ube,"findListItemInfo"),findModifier:t(()=>$6,"findModifier"),findNextToken:t(()=>Ex,"findNextToken"),findPackageJson:t(()=>Jbe,"findPackageJson"),findPackageJsons:t(()=>bre,"findPackageJsons"),findPrecedingMatchingToken:t(()=>pJ,"findPrecedingMatchingToken"),findPrecedingToken:t(()=>Yl,"findPrecedingToken"),findSuperStatementIndexPath:t(()=>_$,"findSuperStatementIndexPath"),findTokenOnLeftOfPosition:t(()=>n8,"findTokenOnLeftOfPosition"),findUseStrictPrologue:t(()=>JZ,"findUseStrictPrologue"),first:t(()=>Ga,"first"),firstDefined:t(()=>Ut,"firstDefined"),firstDefinedIterator:t(()=>Ir,"firstDefinedIterator"),firstIterator:t(()=>qG,"firstIterator"),firstOrOnly:t(()=>Ere,"firstOrOnly"),firstOrUndefined:t(()=>Fl,"firstOrUndefined"),firstOrUndefinedIterator:t(()=>x7,"firstOrUndefinedIterator"),fixupCompilerOptions:t(()=>Wre,"fixupCompilerOptions"),flatMap:t(()=>ka,"flatMap"),flatMapIterator:t(()=>Oy,"flatMapIterator"),flatMapToMutable:t(()=>tm,"flatMapToMutable"),flatten:t(()=>Sf,"flatten"),flattenCommaList:t(()=>k0e,"flattenCommaList"),flattenDestructuringAssignment:t(()=>OC,"flattenDestructuringAssignment"),flattenDestructuringBinding:t(()=>vx,"flattenDestructuringBinding"),flattenDiagnosticMessageText:t(()=>sg,"flattenDiagnosticMessageText"),forEach:t(()=>je,"forEach"),forEachAncestor:t(()=>Xde,"forEachAncestor"),forEachAncestorDirectory:t(()=>n4,"forEachAncestorDirectory"),forEachAncestorDirectoryStoppingAtGlobalCache:t(()=>Zg,"forEachAncestorDirectoryStoppingAtGlobalCache"),forEachChild:t(()=>Hs,"forEachChild"),forEachChildRecursively:t(()=>_D,"forEachChildRecursively"),forEachDynamicImportOrRequireCall:t(()=>nz,"forEachDynamicImportOrRequireCall"),forEachEmittedFile:t(()=>cee,"forEachEmittedFile"),forEachEnclosingBlockScopeContainer:t(()=>_me,"forEachEnclosingBlockScopeContainer"),forEachEntry:t(()=>iu,"forEachEntry"),forEachExternalModuleToImportFrom:t(()=>Nre,"forEachExternalModuleToImportFrom"),forEachImportClauseDeclaration:t(()=>Bme,"forEachImportClauseDeclaration"),forEachKey:t(()=>L0,"forEachKey"),forEachLeadingCommentRange:t(()=>F7,"forEachLeadingCommentRange"),forEachNameInAccessChainWalkingLeft:t(()=>Che,"forEachNameInAccessChainWalkingLeft"),forEachNameOfDefaultExport:t(()=>BJ,"forEachNameOfDefaultExport"),forEachOptionsSyntaxByName:t(()=>fZ,"forEachOptionsSyntaxByName"),forEachProjectReference:t(()=>u3,"forEachProjectReference"),forEachPropertyAssignment:t(()=>LA,"forEachPropertyAssignment"),forEachResolvedProjectReference:t(()=>lZ,"forEachResolvedProjectReference"),forEachReturnStatement:t(()=>Ab,"forEachReturnStatement"),forEachRight:t(()=>Vt,"forEachRight"),forEachTrailingCommentRange:t(()=>L7,"forEachTrailingCommentRange"),forEachTsConfigPropArray:t(()=>dF,"forEachTsConfigPropArray"),forEachUnique:t(()=>ore,"forEachUnique"),forEachYieldExpression:t(()=>bme,"forEachYieldExpression"),formatColorAndReset:t(()=>Sx,"formatColorAndReset"),formatDiagnostic:t(()=>xee,"formatDiagnostic"),formatDiagnostics:t(()=>RRe,"formatDiagnostics"),formatDiagnosticsWithColorAndContext:t(()=>B1e,"formatDiagnosticsWithColorAndContext"),formatGeneratedName:t(()=>n2,"formatGeneratedName"),formatGeneratedNamePart:t(()=>v6,"formatGeneratedNamePart"),formatLocation:t(()=>Eee,"formatLocation"),formatMessage:t(()=>Jw,"formatMessage"),formatStringFromArgs:t(()=>$0,"formatStringFromArgs"),formatting:t(()=>zl,"formatting"),generateDjb2Hash:t(()=>e4,"generateDjb2Hash"),generateTSConfig:t(()=>X0e,"generateTSConfig"),getAdjustedReferenceLocation:t(()=>Ute,"getAdjustedReferenceLocation"),getAdjustedRenameLocation:t(()=>uJ,"getAdjustedRenameLocation"),getAliasDeclarationFromName:t(()=>HK,"getAliasDeclarationFromName"),getAllAccessorDeclarations:t(()=>ex,"getAllAccessorDeclarations"),getAllDecoratorsOfClass:t(()=>QQ,"getAllDecoratorsOfClass"),getAllDecoratorsOfClassElement:t(()=>d$,"getAllDecoratorsOfClassElement"),getAllJSDocTags:t(()=>cB,"getAllJSDocTags"),getAllJSDocTagsOfKind:t(()=>A7e,"getAllJSDocTagsOfKind"),getAllKeys:t(()=>OOe,"getAllKeys"),getAllProjectOutputs:t(()=>v$,"getAllProjectOutputs"),getAllSuperTypeNodes:t(()=>F4,"getAllSuperTypeNodes"),getAllowImportingTsExtensions:t(()=>Ihe,"getAllowImportingTsExtensions"),getAllowJSCompilerOption:t(()=>Mb,"getAllowJSCompilerOption"),getAllowSyntheticDefaultImports:t(()=>Ww,"getAllowSyntheticDefaultImports"),getAncestor:t(()=>JS,"getAncestor"),getAnyExtensionFromPath:t(()=>_w,"getAnyExtensionFromPath"),getAreDeclarationMapsEnabled:t(()=>NU,"getAreDeclarationMapsEnabled"),getAssignedExpandoInitializer:t(()=>Dw,"getAssignedExpandoInitializer"),getAssignedName:t(()=>sB,"getAssignedName"),getAssignmentDeclarationKind:t(()=>fl,"getAssignmentDeclarationKind"),getAssignmentDeclarationPropertyAccessKind:t(()=>wF,"getAssignmentDeclarationPropertyAccessKind"),getAssignmentTargetKind:t(()=>Nb,"getAssignmentTargetKind"),getAutomaticTypeDirectiveNames:t(()=>Zz,"getAutomaticTypeDirectiveNames"),getBaseFileName:t(()=>Ll,"getBaseFileName"),getBinaryOperatorPrecedence:t(()=>$F,"getBinaryOperatorPrecedence"),getBuildInfo:t(()=>dee,"getBuildInfo"),getBuildInfoFileVersionMap:t(()=>jee,"getBuildInfoFileVersionMap"),getBuildInfoText:t(()=>w1e,"getBuildInfoText"),getBuildOrderFromAnyBuildOrder:t(()=>bL,"getBuildOrderFromAnyBuildOrder"),getBuilderCreationParameters:t(()=>F$,"getBuilderCreationParameters"),getBuilderFileEmit:t(()=>Kb,"getBuilderFileEmit"),getCanonicalDiagnostic:t(()=>gme,"getCanonicalDiagnostic"),getCheckFlags:t(()=>$c,"getCheckFlags"),getClassExtendsHeritageElement:t(()=>KT,"getClassExtendsHeritageElement"),getClassLikeDeclarationOfSymbol:t(()=>Hy,"getClassLikeDeclarationOfSymbol"),getCombinedLocalAndExportSymbolFlags:t(()=>YA,"getCombinedLocalAndExportSymbolFlags"),getCombinedModifierFlags:t(()=>FS,"getCombinedModifierFlags"),getCombinedNodeFlags:t(()=>By,"getCombinedNodeFlags"),getCombinedNodeFlagsAlwaysIncludeJSDoc:t(()=>$Y,"getCombinedNodeFlagsAlwaysIncludeJSDoc"),getCommentRange:t(()=>Xh,"getCommentRange"),getCommonSourceDirectory:t(()=>H3,"getCommonSourceDirectory"),getCommonSourceDirectoryOfConfig:t(()=>FC,"getCommonSourceDirectoryOfConfig"),getCompilerOptionValue:t(()=>FU,"getCompilerOptionValue"),getCompilerOptionsDiffValue:t(()=>K0e,"getCompilerOptionsDiffValue"),getConditions:t(()=>Vb,"getConditions"),getConfigFileParsingDiagnostics:t(()=>Tx,"getConfigFileParsingDiagnostics"),getConstantValue:t(()=>xge,"getConstantValue"),getContainerFlags:t(()=>OQ,"getContainerFlags"),getContainerNode:t(()=>MC,"getContainerNode"),getContainingClass:t(()=>Mu,"getContainingClass"),getContainingClassExcludingClassDecorators:t(()=>JB,"getContainingClassExcludingClassDecorators"),getContainingClassStaticBlock:t(()=>Dme,"getContainingClassStaticBlock"),getContainingFunction:t(()=>rd,"getContainingFunction"),getContainingFunctionDeclaration:t(()=>wme,"getContainingFunctionDeclaration"),getContainingFunctionOrClassStaticBlock:t(()=>$B,"getContainingFunctionOrClassStaticBlock"),getContainingNodeArray:t(()=>rge,"getContainingNodeArray"),getContainingObjectLiteralElement:t(()=>eR,"getContainingObjectLiteralElement"),getContextualTypeFromParent:t(()=>CJ,"getContextualTypeFromParent"),getContextualTypeFromParentOrAncestorTypeNode:t(()=>lJ,"getContextualTypeFromParentOrAncestorTypeNode"),getDeclarationDiagnostics:t(()=>T1e,"getDeclarationDiagnostics"),getDeclarationEmitExtensionForPath:t(()=>fU,"getDeclarationEmitExtensionForPath"),getDeclarationEmitOutputFilePath:t(()=>ehe,"getDeclarationEmitOutputFilePath"),getDeclarationEmitOutputFilePathWorker:t(()=>uU,"getDeclarationEmitOutputFilePathWorker"),getDeclarationFileExtension:t(()=>Fz,"getDeclarationFileExtension"),getDeclarationFromName:t(()=>O4,"getDeclarationFromName"),getDeclarationModifierFlagsFromSymbol:t(()=>Fd,"getDeclarationModifierFlagsFromSymbol"),getDeclarationOfKind:t(()=>dc,"getDeclarationOfKind"),getDeclarationsOfKind:t(()=>Yde,"getDeclarationsOfKind"),getDeclaredExpandoInitializer:t(()=>A4,"getDeclaredExpandoInitializer"),getDecorators:t(()=>yb,"getDecorators"),getDefaultCompilerOptions:t(()=>tW,"getDefaultCompilerOptions"),getDefaultFormatCodeSettings:t(()=>Q$,"getDefaultFormatCodeSettings"),getDefaultLibFileName:t(()=>M7,"getDefaultLibFileName"),getDefaultLibFilePath:t(()=>A2e,"getDefaultLibFilePath"),getDefaultLikeExportInfo:t(()=>jJ,"getDefaultLikeExportInfo"),getDefaultLikeExportNameFromDeclaration:t(()=>Cre,"getDefaultLikeExportNameFromDeclaration"),getDefaultResolutionModeForFileWorker:t(()=>P$,"getDefaultResolutionModeForFileWorker"),getDiagnosticText:t(()=>A_,"getDiagnosticText"),getDiagnosticsWithinSpan:t(()=>qbe,"getDiagnosticsWithinSpan"),getDirectoryPath:t(()=>_i,"getDirectoryPath"),getDirectoryToWatchFailedLookupLocation:t(()=>$ee,"getDirectoryToWatchFailedLookupLocation"),getDirectoryToWatchFailedLookupLocationFromTypeRoot:t(()=>uve,"getDirectoryToWatchFailedLookupLocationFromTypeRoot"),getDocumentPositionMapper:t(()=>Bre,"getDocumentPositionMapper"),getDocumentSpansEqualityComparer:t(()=>are,"getDocumentSpansEqualityComparer"),getESModuleInterop:t(()=>J0,"getESModuleInterop"),getEditsForFileRename:t(()=>tSe,"getEditsForFileRename"),getEffectiveBaseTypeNode:t(()=>Wh,"getEffectiveBaseTypeNode"),getEffectiveConstraintOfTypeParameter:t(()=>xA,"getEffectiveConstraintOfTypeParameter"),getEffectiveContainerForJSDocTemplateTag:t(()=>tU,"getEffectiveContainerForJSDocTemplateTag"),getEffectiveImplementsTypeNodes:t(()=>$A,"getEffectiveImplementsTypeNodes"),getEffectiveInitializer:t(()=>EF,"getEffectiveInitializer"),getEffectiveJSDocHost:t(()=>$S,"getEffectiveJSDocHost"),getEffectiveModifierFlags:t(()=>Wf,"getEffectiveModifierFlags"),getEffectiveModifierFlagsAlwaysIncludeJSDoc:t(()=>lhe,"getEffectiveModifierFlagsAlwaysIncludeJSDoc"),getEffectiveModifierFlagsNoCache:t(()=>uhe,"getEffectiveModifierFlagsNoCache"),getEffectiveReturnTypeNode:t(()=>jp,"getEffectiveReturnTypeNode"),getEffectiveSetAccessorTypeAnnotationNode:t(()=>pX,"getEffectiveSetAccessorTypeAnnotationNode"),getEffectiveTypeAnnotationNode:t(()=>Rl,"getEffectiveTypeAnnotationNode"),getEffectiveTypeParameterDeclarations:t(()=>bb,"getEffectiveTypeParameterDeclarations"),getEffectiveTypeRoots:t(()=>O3,"getEffectiveTypeRoots"),getElementOrPropertyAccessArgumentExpressionOrName:t(()=>eU,"getElementOrPropertyAccessArgumentExpressionOrName"),getElementOrPropertyAccessName:t(()=>$y,"getElementOrPropertyAccessName"),getElementsOfBindingOrAssignmentPattern:t(()=>y6,"getElementsOfBindingOrAssignmentPattern"),getEmitDeclarations:t(()=>J_,"getEmitDeclarations"),getEmitFlags:t(()=>Ya,"getEmitFlags"),getEmitHelpers:t(()=>mZ,"getEmitHelpers"),getEmitModuleDetectionKind:t(()=>Ohe,"getEmitModuleDetectionKind"),getEmitModuleFormatOfFileWorker:t(()=>X3,"getEmitModuleFormatOfFileWorker"),getEmitModuleKind:t(()=>qf,"getEmitModuleKind"),getEmitModuleResolutionKind:t(()=>Cf,"getEmitModuleResolutionKind"),getEmitScriptTarget:t(()=>Ja,"getEmitScriptTarget"),getEmitStandardClassFields:t(()=>RX,"getEmitStandardClassFields"),getEnclosingBlockScopeContainer:t(()=>rh,"getEnclosingBlockScopeContainer"),getEnclosingContainer:t(()=>FB,"getEnclosingContainer"),getEncodedSemanticClassifications:t(()=>Ire,"getEncodedSemanticClassifications"),getEncodedSyntacticClassifications:t(()=>Ore,"getEncodedSyntacticClassifications"),getEndLinePosition:t(()=>iF,"getEndLinePosition"),getEntityNameFromTypeNode:t(()=>gF,"getEntityNameFromTypeNode"),getEntrypointsFromPackageJsonInfo:t(()=>DQ,"getEntrypointsFromPackageJsonInfo"),getErrorCountForSummary:t(()=>M$,"getErrorCountForSummary"),getErrorSpanForNode:t(()=>tC,"getErrorSpanForNode"),getErrorSummaryText:t(()=>Vee,"getErrorSummaryText"),getEscapedTextOfIdentifierOrLiteral:t(()=>M4,"getEscapedTextOfIdentifierOrLiteral"),getEscapedTextOfJsxAttributeName:t(()=>c3,"getEscapedTextOfJsxAttributeName"),getEscapedTextOfJsxNamespacedName:t(()=>Gw,"getEscapedTextOfJsxNamespacedName"),getExpandoInitializer:t(()=>US,"getExpandoInitializer"),getExportAssignmentExpression:t(()=>GK,"getExportAssignmentExpression"),getExportInfoMap:t(()=>VL,"getExportInfoMap"),getExportNeedsImportStarHelper:t(()=>Jye,"getExportNeedsImportStarHelper"),getExpressionAssociativity:t(()=>tX,"getExpressionAssociativity"),getExpressionPrecedence:t(()=>j4,"getExpressionPrecedence"),getExternalHelpersModuleName:t(()=>I5,"getExternalHelpersModuleName"),getExternalModuleImportEqualsDeclarationExpression:t(()=>D4,"getExternalModuleImportEqualsDeclarationExpression"),getExternalModuleName:t(()=>Aw,"getExternalModuleName"),getExternalModuleNameFromDeclaration:t(()=>Zme,"getExternalModuleNameFromDeclaration"),getExternalModuleNameFromPath:t(()=>cX,"getExternalModuleNameFromPath"),getExternalModuleNameLiteral:t(()=>fD,"getExternalModuleNameLiteral"),getExternalModuleRequireArgument:t(()=>MK,"getExternalModuleRequireArgument"),getFallbackOptions:t(()=>_L,"getFallbackOptions"),getFileEmitOutput:t(()=>W1e,"getFileEmitOutput"),getFileMatcherPatterns:t(()=>BU,"getFileMatcherPatterns"),getFileNamesFromConfigSpecs:t(()=>N3,"getFileNamesFromConfigSpecs"),getFileWatcherEventKind:t(()=>DY,"getFileWatcherEventKind"),getFilesInErrorForSummary:t(()=>j$,"getFilesInErrorForSummary"),getFirstConstructorWithBody:t(()=>U0,"getFirstConstructorWithBody"),getFirstIdentifier:t(()=>s_,"getFirstIdentifier"),getFirstNonSpaceCharacterPosition:t(()=>Lbe,"getFirstNonSpaceCharacterPosition"),getFirstProjectOutput:t(()=>fee,"getFirstProjectOutput"),getFixableErrorSpanExpression:t(()=>Tre,"getFixableErrorSpanExpression"),getFormatCodeSettingsForWriting:t(()=>LJ,"getFormatCodeSettingsForWriting"),getFullWidth:t(()=>rF,"getFullWidth"),getFunctionFlags:t(()=>gl,"getFunctionFlags"),getHeritageClause:t(()=>jF,"getHeritageClause"),getHostSignatureFromJSDoc:t(()=>zS,"getHostSignatureFromJSDoc"),getIdentifierAutoGenerate:t(()=>PFe,"getIdentifierAutoGenerate"),getIdentifierGeneratedImportReference:t(()=>Pge,"getIdentifierGeneratedImportReference"),getIdentifierTypeArguments:t(()=>hC,"getIdentifierTypeArguments"),getImmediatelyInvokedFunctionExpression:t(()=>qT,"getImmediatelyInvokedFunctionExpression"),getImpliedNodeFormatForEmitWorker:t(()=>LC,"getImpliedNodeFormatForEmitWorker"),getImpliedNodeFormatForFile:t(()=>dL,"getImpliedNodeFormatForFile"),getImpliedNodeFormatForFileWorker:t(()=>D$,"getImpliedNodeFormatForFileWorker"),getImportNeedsImportDefaultHelper:t(()=>KQ,"getImportNeedsImportDefaultHelper"),getImportNeedsImportStarHelper:t(()=>u$,"getImportNeedsImportStarHelper"),getIndentString:t(()=>lU,"getIndentString"),getInferredLibraryNameResolveFrom:t(()=>w$,"getInferredLibraryNameResolveFrom"),getInitializedVariables:t(()=>V4,"getInitializedVariables"),getInitializerOfBinaryExpression:t(()=>zK,"getInitializerOfBinaryExpression"),getInitializerOfBindingOrAssignmentElement:t(()=>F5,"getInitializerOfBindingOrAssignmentElement"),getInterfaceBaseTypeNodes:t(()=>L4,"getInterfaceBaseTypeNodes"),getInternalEmitFlags:t(()=>Nm,"getInternalEmitFlags"),getInvokedExpression:t(()=>VB,"getInvokedExpression"),getIsFileExcluded:t(()=>Kbe,"getIsFileExcluded"),getIsolatedModules:t(()=>um,"getIsolatedModules"),getJSDocAugmentsTag:t(()=>vde,"getJSDocAugmentsTag"),getJSDocClassTag:t(()=>qY,"getJSDocClassTag"),getJSDocCommentRanges:t(()=>IK,"getJSDocCommentRanges"),getJSDocCommentsAndTags:t(()=>$K,"getJSDocCommentsAndTags"),getJSDocDeprecatedTag:t(()=>VY,"getJSDocDeprecatedTag"),getJSDocDeprecatedTagNoCache:t(()=>kde,"getJSDocDeprecatedTagNoCache"),getJSDocEnumTag:t(()=>HY,"getJSDocEnumTag"),getJSDocHost:t(()=>GT,"getJSDocHost"),getJSDocImplementsTags:t(()=>bde,"getJSDocImplementsTags"),getJSDocOverloadTags:t(()=>WK,"getJSDocOverloadTags"),getJSDocOverrideTagNoCache:t(()=>Cde,"getJSDocOverrideTagNoCache"),getJSDocParameterTags:t(()=>TA,"getJSDocParameterTags"),getJSDocParameterTagsNoCache:t(()=>mde,"getJSDocParameterTagsNoCache"),getJSDocPrivateTag:t(()=>k7e,"getJSDocPrivateTag"),getJSDocPrivateTagNoCache:t(()=>Tde,"getJSDocPrivateTagNoCache"),getJSDocProtectedTag:t(()=>w7e,"getJSDocProtectedTag"),getJSDocProtectedTagNoCache:t(()=>xde,"getJSDocProtectedTagNoCache"),getJSDocPublicTag:t(()=>C7e,"getJSDocPublicTag"),getJSDocPublicTagNoCache:t(()=>Sde,"getJSDocPublicTagNoCache"),getJSDocReadonlyTag:t(()=>D7e,"getJSDocReadonlyTag"),getJSDocReadonlyTagNoCache:t(()=>Ede,"getJSDocReadonlyTagNoCache"),getJSDocReturnTag:t(()=>wde,"getJSDocReturnTag"),getJSDocReturnType:t(()=>J7,"getJSDocReturnType"),getJSDocRoot:t(()=>zA,"getJSDocRoot"),getJSDocSatisfiesExpressionType:t(()=>rZ,"getJSDocSatisfiesExpressionType"),getJSDocSatisfiesTag:t(()=>GY,"getJSDocSatisfiesTag"),getJSDocTags:t(()=>RS,"getJSDocTags"),getJSDocTemplateTag:t(()=>P7e,"getJSDocTemplateTag"),getJSDocThisTag:t(()=>aB,"getJSDocThisTag"),getJSDocType:t(()=>vb,"getJSDocType"),getJSDocTypeAliasName:t(()=>VZ,"getJSDocTypeAliasName"),getJSDocTypeAssertionType:t(()=>h6,"getJSDocTypeAssertionType"),getJSDocTypeParameterDeclarations:t(()=>hU,"getJSDocTypeParameterDeclarations"),getJSDocTypeParameterTags:t(()=>hde,"getJSDocTypeParameterTags"),getJSDocTypeParameterTagsNoCache:t(()=>gde,"getJSDocTypeParameterTagsNoCache"),getJSDocTypeTag:t(()=>LS,"getJSDocTypeTag"),getJSXImplicitImportBase:t(()=>s5,"getJSXImplicitImportBase"),getJSXRuntimeImport:t(()=>RU,"getJSXRuntimeImport"),getJSXTransformEnabled:t(()=>LU,"getJSXTransformEnabled"),getKeyForCompilerOptions:t(()=>xQ,"getKeyForCompilerOptions"),getLanguageVariant:t(()=>QF,"getLanguageVariant"),getLastChild:t(()=>PX,"getLastChild"),getLeadingCommentRanges:t(()=>A0,"getLeadingCommentRanges"),getLeadingCommentRangesOfNode:t(()=>NK,"getLeadingCommentRangesOfNode"),getLeftmostAccessExpression:t(()=>KA,"getLeftmostAccessExpression"),getLeftmostExpression:t(()=>XA,"getLeftmostExpression"),getLibFileNameFromLibReference:t(()=>cZ,"getLibFileNameFromLibReference"),getLibNameFromLibReference:t(()=>oZ,"getLibNameFromLibReference"),getLibraryNameFromLibFileName:t(()=>Dee,"getLibraryNameFromLibFileName"),getLineAndCharacterOfPosition:t(()=>_a,"getLineAndCharacterOfPosition"),getLineInfo:t(()=>HQ,"getLineInfo"),getLineOfLocalPosition:t(()=>U4,"getLineOfLocalPosition"),getLineStartPositionForPosition:t(()=>mm,"getLineStartPositionForPosition"),getLineStarts:t(()=>D0,"getLineStarts"),getLinesBetweenPositionAndNextNonWhitespaceCharacter:t(()=>The,"getLinesBetweenPositionAndNextNonWhitespaceCharacter"),getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:t(()=>She,"getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter"),getLinesBetweenPositions:t(()=>s4,"getLinesBetweenPositions"),getLinesBetweenRangeEndAndRangeStart:t(()=>EX,"getLinesBetweenRangeEndAndRangeStart"),getLinesBetweenRangeEndPositions:t(()=>sFe,"getLinesBetweenRangeEndPositions"),getLiteralText:t(()=>sme,"getLiteralText"),getLocalNameForExternalImport:t(()=>g6,"getLocalNameForExternalImport"),getLocalSymbolForExportDefault:t(()=>W4,"getLocalSymbolForExportDefault"),getLocaleSpecificMessage:t(()=>Js,"getLocaleSpecificMessage"),getLocaleTimeString:t(()=>vL,"getLocaleTimeString"),getMappedContextSpan:t(()=>cre,"getMappedContextSpan"),getMappedDocumentSpan:t(()=>TJ,"getMappedDocumentSpan"),getMappedLocation:t(()=>o8,"getMappedLocation"),getMatchedFileSpec:t(()=>Kee,"getMatchedFileSpec"),getMatchedIncludeSpec:t(()=>Xee,"getMatchedIncludeSpec"),getMeaningFromDeclaration:t(()=>tJ,"getMeaningFromDeclaration"),getMeaningFromLocation:t(()=>RC,"getMeaningFromLocation"),getMembersOfDeclaration:t(()=>Sme,"getMembersOfDeclaration"),getModeForFileReference:t(()=>U1e,"getModeForFileReference"),getModeForResolutionAtIndex:t(()=>$Re,"getModeForResolutionAtIndex"),getModeForUsageLocation:t(()=>kee,"getModeForUsageLocation"),getModifiedTime:t(()=>fw,"getModifiedTime"),getModifiers:t(()=>RT,"getModifiers"),getModuleInstanceState:t(()=>Zy,"getModuleInstanceState"),getModuleNameStringLiteralAt:t(()=>hL,"getModuleNameStringLiteralAt"),getModuleSpecifierEndingPreference:t(()=>Vhe,"getModuleSpecifierEndingPreference"),getModuleSpecifierResolverHost:t(()=>Qte,"getModuleSpecifierResolverHost"),getNameForExportedSymbol:t(()=>IJ,"getNameForExportedSymbol"),getNameFromImportAttribute:t(()=>QU,"getNameFromImportAttribute"),getNameFromIndexInfo:t(()=>pme,"getNameFromIndexInfo"),getNameFromPropertyName:t(()=>FL,"getNameFromPropertyName"),getNameOfAccessExpression:t(()=>NX,"getNameOfAccessExpression"),getNameOfCompilerOptionValue:t(()=>mQ,"getNameOfCompilerOptionValue"),getNameOfDeclaration:t(()=>Ls,"getNameOfDeclaration"),getNameOfExpando:t(()=>jK,"getNameOfExpando"),getNameOfJSDocTypedef:t(()=>dde,"getNameOfJSDocTypedef"),getNameOfScriptTarget:t(()=>OU,"getNameOfScriptTarget"),getNameOrArgument:t(()=>kF,"getNameOrArgument"),getNameTable:t(()=>mne,"getNameTable"),getNamespaceDeclarationNode:t(()=>BA,"getNamespaceDeclarationNode"),getNewLineCharacter:t(()=>Z1,"getNewLineCharacter"),getNewLineKind:t(()=>qL,"getNewLineKind"),getNewLineOrDefaultFromHost:t(()=>e1,"getNewLineOrDefaultFromHost"),getNewTargetContainer:t(()=>Ame,"getNewTargetContainer"),getNextJSDocCommentLocation:t(()=>JK,"getNextJSDocCommentLocation"),getNodeChildren:t(()=>MZ,"getNodeChildren"),getNodeForGeneratedName:t(()=>R5,"getNodeForGeneratedName"),getNodeId:t(()=>so,"getNodeId"),getNodeKind:t(()=>xx,"getNodeKind"),getNodeModifiers:t(()=>i8,"getNodeModifiers"),getNodeModulePathParts:t(()=>KU,"getNodeModulePathParts"),getNonAssignedNameOfDeclaration:t(()=>iB,"getNonAssignedNameOfDeclaration"),getNonAssignmentOperatorForCompoundAssignment:t(()=>z3,"getNonAssignmentOperatorForCompoundAssignment"),getNonAugmentationDeclaration:t(()=>EK,"getNonAugmentationDeclaration"),getNonDecoratorTokenPosOfNode:t(()=>yK,"getNonDecoratorTokenPosOfNode"),getNonIncrementalBuildInfoRoots:t(()=>sve,"getNonIncrementalBuildInfoRoots"),getNonModifierTokenPosOfNode:t(()=>nme,"getNonModifierTokenPosOfNode"),getNormalizedAbsolutePath:t(()=>bs,"getNormalizedAbsolutePath"),getNormalizedAbsolutePathWithoutRoot:t(()=>IY,"getNormalizedAbsolutePathWithoutRoot"),getNormalizedPathComponents:t(()=>Kj,"getNormalizedPathComponents"),getObjectFlags:t(()=>Gn,"getObjectFlags"),getOperatorAssociativity:t(()=>rX,"getOperatorAssociativity"),getOperatorPrecedence:t(()=>zF,"getOperatorPrecedence"),getOptionFromName:t(()=>lQ,"getOptionFromName"),getOptionsForLibraryResolution:t(()=>EQ,"getOptionsForLibraryResolution"),getOptionsNameMap:t(()=>S6,"getOptionsNameMap"),getOptionsSyntaxByArrayElementValue:t(()=>uZ,"getOptionsSyntaxByArrayElementValue"),getOptionsSyntaxByValue:t(()=>dge,"getOptionsSyntaxByValue"),getOrCreateEmitNode:t(()=>pf,"getOrCreateEmitNode"),getOrUpdate:t(()=>zE,"getOrUpdate"),getOriginalNode:t(()=>Sc,"getOriginalNode"),getOriginalNodeId:t(()=>u_,"getOriginalNodeId"),getOutputDeclarationFileName:t(()=>A6,"getOutputDeclarationFileName"),getOutputDeclarationFileNameWorker:t(()=>lee,"getOutputDeclarationFileNameWorker"),getOutputExtension:t(()=>lL,"getOutputExtension"),getOutputFileNames:t(()=>FRe,"getOutputFileNames"),getOutputJSFileNameWorker:t(()=>uee,"getOutputJSFileNameWorker"),getOutputPathsFor:t(()=>V3,"getOutputPathsFor"),getOwnEmitOutputFilePath:t(()=>Qme,"getOwnEmitOutputFilePath"),getOwnKeys:t(()=>Rh,"getOwnKeys"),getOwnValues:t(()=>ow,"getOwnValues"),getPackageJsonTypesVersionsPaths:t(()=>Xz,"getPackageJsonTypesVersionsPaths"),getPackageNameFromTypesPackageName:t(()=>M3,"getPackageNameFromTypesPackageName"),getPackageScopeForPath:t(()=>R3,"getPackageScopeForPath"),getParameterSymbolFromJSDoc:t(()=>FF,"getParameterSymbolFromJSDoc"),getParentNodeInSpan:t(()=>RL,"getParentNodeInSpan"),getParseTreeNode:t(()=>zs,"getParseTreeNode"),getParsedCommandLineOfConfigFile:t(()=>$5,"getParsedCommandLineOfConfigFile"),getPathComponents:t(()=>uf,"getPathComponents"),getPathFromPathComponents:t(()=>OS,"getPathFromPathComponents"),getPathUpdater:t(()=>Rre,"getPathUpdater"),getPathsBasePath:t(()=>_U,"getPathsBasePath"),getPatternFromSpec:t(()=>zX,"getPatternFromSpec"),getPendingEmitKindWithSeen:t(()=>O$,"getPendingEmitKindWithSeen"),getPositionOfLineAndCharacter:t(()=>I7,"getPositionOfLineAndCharacter"),getPossibleGenericSignatures:t(()=>$te,"getPossibleGenericSignatures"),getPossibleOriginalInputExtensionForExtension:t(()=>lX,"getPossibleOriginalInputExtensionForExtension"),getPossibleOriginalInputPathWithoutChangingExt:t(()=>uX,"getPossibleOriginalInputPathWithoutChangingExt"),getPossibleTypeArgumentsInfo:t(()=>Jte,"getPossibleTypeArgumentsInfo"),getPreEmitDiagnostics:t(()=>LRe,"getPreEmitDiagnostics"),getPrecedingNonSpaceCharacterPosition:t(()=>xJ,"getPrecedingNonSpaceCharacterPosition"),getPrivateIdentifier:t(()=>eee,"getPrivateIdentifier"),getProperties:t(()=>ZQ,"getProperties"),getProperty:t(()=>Lj,"getProperty"),getPropertyAssignmentAliasLikeExpression:t(()=>Vme,"getPropertyAssignmentAliasLikeExpression"),getPropertyNameForPropertyNameNode:t(()=>lC,"getPropertyNameForPropertyNameNode"),getPropertyNameFromType:t(()=>Rd,"getPropertyNameFromType"),getPropertyNameOfBindingOrAssignmentElement:t(()=>qZ,"getPropertyNameOfBindingOrAssignmentElement"),getPropertySymbolFromBindingElement:t(()=>SJ,"getPropertySymbolFromBindingElement"),getPropertySymbolsFromContextualType:t(()=>nW,"getPropertySymbolsFromContextualType"),getQuoteFromPreference:t(()=>tre,"getQuoteFromPreference"),getQuotePreference:t(()=>hp,"getQuotePreference"),getRangesWhere:t(()=>zG,"getRangesWhere"),getRefactorContextSpan:t(()=>kD,"getRefactorContextSpan"),getReferencedFileLocation:t(()=>K3,"getReferencedFileLocation"),getRegexFromPattern:t(()=>Q1,"getRegexFromPattern"),getRegularExpressionForWildcard:t(()=>X4,"getRegularExpressionForWildcard"),getRegularExpressionsForWildcards:t(()=>MU,"getRegularExpressionsForWildcards"),getRelativePathFromDirectory:t(()=>td,"getRelativePathFromDirectory"),getRelativePathFromFile:t(()=>yA,"getRelativePathFromFile"),getRelativePathToDirectoryOrUrl:t(()=>dw,"getRelativePathToDirectoryOrUrl"),getRenameLocation:t(()=>BL,"getRenameLocation"),getReplacementSpanForContextToken:t(()=>Hte,"getReplacementSpanForContextToken"),getResolutionDiagnostic:t(()=>Iee,"getResolutionDiagnostic"),getResolutionModeOverride:t(()=>N6,"getResolutionModeOverride"),getResolveJsonModule:t(()=>rx,"getResolveJsonModule"),getResolvePackageJsonExports:t(()=>t5,"getResolvePackageJsonExports"),getResolvePackageJsonImports:t(()=>r5,"getResolvePackageJsonImports"),getResolvedExternalModuleName:t(()=>oX,"getResolvedExternalModuleName"),getResolvedModuleFromResolution:t(()=>Ew,"getResolvedModuleFromResolution"),getResolvedTypeReferenceDirectiveFromResolution:t(()=>kB,"getResolvedTypeReferenceDirectiveFromResolution"),getRestIndicatorOfBindingOrAssignmentElement:t(()=>Pz,"getRestIndicatorOfBindingOrAssignmentElement"),getRestParameterElementType:t(()=>OK,"getRestParameterElementType"),getRightMostAssignedExpression:t(()=>CF,"getRightMostAssignedExpression"),getRootDeclaration:t(()=>Vh,"getRootDeclaration"),getRootDirectoryOfResolutionCache:t(()=>fve,"getRootDirectoryOfResolutionCache"),getRootLength:t(()=>Qm,"getRootLength"),getScriptKind:t(()=>_re,"getScriptKind"),getScriptKindFromFileName:t(()=>zU,"getScriptKindFromFileName"),getScriptTargetFeatures:t(()=>vK,"getScriptTargetFeatures"),getSelectedEffectiveModifierFlags:t(()=>Rw,"getSelectedEffectiveModifierFlags"),getSelectedSyntacticModifierFlags:t(()=>ohe,"getSelectedSyntacticModifierFlags"),getSemanticClassifications:t(()=>Xbe,"getSemanticClassifications"),getSemanticJsxChildren:t(()=>WA,"getSemanticJsxChildren"),getSetAccessorTypeAnnotationNode:t(()=>rhe,"getSetAccessorTypeAnnotationNode"),getSetAccessorValueParameter:t(()=>z4,"getSetAccessorValueParameter"),getSetExternalModuleIndicator:t(()=>e5,"getSetExternalModuleIndicator"),getShebang:t(()=>rB,"getShebang"),getSingleVariableOfVariableStatement:t(()=>Ow,"getSingleVariableOfVariableStatement"),getSnapshotText:t(()=>CD,"getSnapshotText"),getSnippetElement:t(()=>hZ,"getSnippetElement"),getSourceFileOfModule:t(()=>nF,"getSourceFileOfModule"),getSourceFileOfNode:t(()=>Hr,"getSourceFileOfNode"),getSourceFilePathInNewDir:t(()=>dU,"getSourceFilePathInNewDir"),getSourceFileVersionAsHashFromText:t(()=>U$,"getSourceFileVersionAsHashFromText"),getSourceFilesToEmit:t(()=>pU,"getSourceFilesToEmit"),getSourceMapRange:t(()=>tv,"getSourceMapRange"),getSourceMapper:t(()=>pSe,"getSourceMapper"),getSourceTextOfNodeFromSourceFile:t(()=>zT,"getSourceTextOfNodeFromSourceFile"),getSpanOfTokenAtPosition:t(()=>zh,"getSpanOfTokenAtPosition"),getSpellingSuggestion:t(()=>LT,"getSpellingSuggestion"),getStartPositionOfLine:t(()=>wb,"getStartPositionOfLine"),getStartPositionOfRange:t(()=>q4,"getStartPositionOfRange"),getStartsOnNewLine:t(()=>f3,"getStartsOnNewLine"),getStaticPropertiesAndClassStaticBlock:t(()=>p$,"getStaticPropertiesAndClassStaticBlock"),getStrictOptionValue:t(()=>_f,"getStrictOptionValue"),getStringComparer:t(()=>pA,"getStringComparer"),getSubPatternFromSpec:t(()=>jU,"getSubPatternFromSpec"),getSuperCallFromStatement:t(()=>f$,"getSuperCallFromStatement"),getSuperContainer:t(()=>mF,"getSuperContainer"),getSupportedCodeFixes:t(()=>pne,"getSupportedCodeFixes"),getSupportedExtensions:t(()=>Z4,"getSupportedExtensions"),getSupportedExtensionsWithJsonIfResolveJsonModule:t(()=>o5,"getSupportedExtensionsWithJsonIfResolveJsonModule"),getSwitchedType:t(()=>gre,"getSwitchedType"),getSymbolId:t(()=>Da,"getSymbolId"),getSymbolNameForPrivateIdentifier:t(()=>BF,"getSymbolNameForPrivateIdentifier"),getSymbolTarget:t(()=>pre,"getSymbolTarget"),getSyntacticClassifications:t(()=>Zbe,"getSyntacticClassifications"),getSyntacticModifierFlags:t(()=>K1,"getSyntacticModifierFlags"),getSyntacticModifierFlagsNoCache:t(()=>hX,"getSyntacticModifierFlagsNoCache"),getSynthesizedDeepClone:t(()=>yo,"getSynthesizedDeepClone"),getSynthesizedDeepCloneWithReplacements:t(()=>jL,"getSynthesizedDeepCloneWithReplacements"),getSynthesizedDeepClones:t(()=>Cx,"getSynthesizedDeepClones"),getSynthesizedDeepClonesWithReplacements:t(()=>dre,"getSynthesizedDeepClonesWithReplacements"),getSyntheticLeadingComments:t(()=>n6,"getSyntheticLeadingComments"),getSyntheticTrailingComments:t(()=>v5,"getSyntheticTrailingComments"),getTargetLabel:t(()=>iJ,"getTargetLabel"),getTargetOfBindingOrAssignmentElement:t(()=>Wb,"getTargetOfBindingOrAssignmentElement"),getTemporaryModuleResolutionState:t(()=>L3,"getTemporaryModuleResolutionState"),getTextOfConstantValue:t(()=>ame,"getTextOfConstantValue"),getTextOfIdentifierOrLiteral:t(()=>Nd,"getTextOfIdentifierOrLiteral"),getTextOfJSDocComment:t(()=>W7,"getTextOfJSDocComment"),getTextOfJsxAttributeName:t(()=>p5,"getTextOfJsxAttributeName"),getTextOfJsxNamespacedName:t(()=>l3,"getTextOfJsxNamespacedName"),getTextOfNode:t(()=>Cc,"getTextOfNode"),getTextOfNodeFromSourceText:t(()=>T4,"getTextOfNodeFromSourceText"),getTextOfPropertyName:t(()=>ww,"getTextOfPropertyName"),getThisContainer:t(()=>Jf,"getThisContainer"),getThisParameter:t(()=>ZT,"getThisParameter"),getTokenAtPosition:t(()=>ji,"getTokenAtPosition"),getTokenPosOfNode:t(()=>Db,"getTokenPosOfNode"),getTokenSourceMapRange:t(()=>wFe,"getTokenSourceMapRange"),getTouchingPropertyName:t(()=>N_,"getTouchingPropertyName"),getTouchingToken:t(()=>U6,"getTouchingToken"),getTrailingCommentRanges:t(()=>gb,"getTrailingCommentRanges"),getTrailingSemicolonDeferringWriter:t(()=>aX,"getTrailingSemicolonDeferringWriter"),getTransformers:t(()=>E1e,"getTransformers"),getTsBuildInfoEmitOutputFilePath:t(()=>l2,"getTsBuildInfoEmitOutputFilePath"),getTsConfigObjectLiteralExpression:t(()=>k4,"getTsConfigObjectLiteralExpression"),getTsConfigPropArrayElementValue:t(()=>zB,"getTsConfigPropArrayElementValue"),getTypeAnnotationNode:t(()=>nhe,"getTypeAnnotationNode"),getTypeArgumentOrTypeParameterList:t(()=>ybe,"getTypeArgumentOrTypeParameterList"),getTypeKeywordOfTypeOnlyImport:t(()=>ire,"getTypeKeywordOfTypeOnlyImport"),getTypeNode:t(()=>wge,"getTypeNode"),getTypeNodeIfAccessible:t(()=>_8,"getTypeNodeIfAccessible"),getTypeParameterFromJsDoc:t(()=>Ume,"getTypeParameterFromJsDoc"),getTypeParameterOwner:t(()=>S7e,"getTypeParameterOwner"),getTypesPackageName:t(()=>i$,"getTypesPackageName"),getUILocale:t(()=>v_e,"getUILocale"),getUniqueName:t(()=>BC,"getUniqueName"),getUniqueSymbolId:t(()=>Fbe,"getUniqueSymbolId"),getUseDefineForClassFields:t(()=>n5,"getUseDefineForClassFields"),getWatchErrorSummaryDiagnosticMessage:t(()=>qee,"getWatchErrorSummaryDiagnosticMessage"),getWatchFactory:t(()=>yee,"getWatchFactory"),group:t(()=>_A,"group"),groupBy:t(()=>GG,"groupBy"),guessIndentation:t(()=>Hde,"guessIndentation"),handleNoEmitOptions:t(()=>Nee,"handleNoEmitOptions"),handleWatchOptionsConfigDirTemplateSubstitution:t(()=>qz,"handleWatchOptionsConfigDirTemplateSubstitution"),hasAbstractModifier:t(()=>tx,"hasAbstractModifier"),hasAccessorModifier:t(()=>Hh,"hasAccessorModifier"),hasAmbientModifier:t(()=>mX,"hasAmbientModifier"),hasChangesInResolutions:t(()=>mK,"hasChangesInResolutions"),hasContextSensitiveParameters:t(()=>GU,"hasContextSensitiveParameters"),hasDecorators:t(()=>id,"hasDecorators"),hasDocComment:t(()=>hbe,"hasDocComment"),hasDynamicName:t(()=>Jy,"hasDynamicName"),hasEffectiveModifier:t(()=>fp,"hasEffectiveModifier"),hasEffectiveModifiers:t(()=>dX,"hasEffectiveModifiers"),hasEffectiveReadonlyModifier:t(()=>fC,"hasEffectiveReadonlyModifier"),hasExtension:t(()=>gA,"hasExtension"),hasImplementationTSFileExtension:t(()=>Whe,"hasImplementationTSFileExtension"),hasIndexSignature:t(()=>hre,"hasIndexSignature"),hasInferredType:t(()=>tz,"hasInferredType"),hasInitializer:t(()=>H1,"hasInitializer"),hasInvalidEscape:t(()=>iX,"hasInvalidEscape"),hasJSDocNodes:t(()=>Rp,"hasJSDocNodes"),hasJSDocParameterTags:t(()=>yde,"hasJSDocParameterTags"),hasJSFileExtension:t(()=>W0,"hasJSFileExtension"),hasJsonModuleEmitEnabled:t(()=>IU,"hasJsonModuleEmitEnabled"),hasOnlyExpressionInitializer:t(()=>QE,"hasOnlyExpressionInitializer"),hasOverrideModifier:t(()=>gU,"hasOverrideModifier"),hasPossibleExternalModuleReference:t(()=>fme,"hasPossibleExternalModuleReference"),hasProperty:t(()=>Ro,"hasProperty"),hasPropertyAccessExpressionWithName:t(()=>kL,"hasPropertyAccessExpressionWithName"),hasQuestionToken:t(()=>Nw,"hasQuestionToken"),hasRecordedExternalHelpers:t(()=>d0e,"hasRecordedExternalHelpers"),hasResolutionModeOverride:t(()=>oge,"hasResolutionModeOverride"),hasRestParameter:t(()=>uK,"hasRestParameter"),hasScopeMarker:t(()=>jde,"hasScopeMarker"),hasStaticModifier:t(()=>Hl,"hasStaticModifier"),hasSyntacticModifier:t(()=>di,"hasSyntacticModifier"),hasSyntacticModifiers:t(()=>ahe,"hasSyntacticModifiers"),hasTSFileExtension:t(()=>pC,"hasTSFileExtension"),hasTabstop:t(()=>ige,"hasTabstop"),hasTrailingDirectorySeparator:t(()=>mb,"hasTrailingDirectorySeparator"),hasType:t(()=>SB,"hasType"),hasTypeArguments:t(()=>Y7e,"hasTypeArguments"),hasZeroOrOneAsteriskCharacter:t(()=>MX,"hasZeroOrOneAsteriskCharacter"),hostGetCanonicalFileName:t(()=>Wy,"hostGetCanonicalFileName"),hostUsesCaseSensitiveFileNames:t(()=>uC,"hostUsesCaseSensitiveFileNames"),idText:t(()=>Xn,"idText"),identifierIsThisKeyword:t(()=>_X,"identifierIsThisKeyword"),identifierToKeywordKind:t(()=>HE,"identifierToKeywordKind"),identity:t(()=>qo,"identity"),identitySourceMapConsumer:t(()=>YQ,"identitySourceMapConsumer"),ignoreSourceNewlines:t(()=>yZ,"ignoreSourceNewlines"),ignoredPaths:t(()=>Hj,"ignoredPaths"),importFromModuleSpecifier:t(()=>N4,"importFromModuleSpecifier"),importSyntaxAffectsModuleResolution:t(()=>LX,"importSyntaxAffectsModuleResolution"),indexOfAnyCharCode:t(()=>bf,"indexOfAnyCharCode"),indexOfNode:t(()=>AA,"indexOfNode"),indicesOf:t(()=>Fj,"indicesOf"),inferredTypesContainingFile:t(()=>Y3,"inferredTypesContainingFile"),injectClassNamedEvaluationHelperBlockIfMissing:t(()=>g$,"injectClassNamedEvaluationHelperBlockIfMissing"),injectClassThisAssignmentIfMissing:t(()=>Xye,"injectClassThisAssignmentIfMissing"),insertImports:t(()=>nre,"insertImports"),insertSorted:t(()=>ob,"insertSorted"),insertStatementAfterCustomPrologue:t(()=>eC,"insertStatementAfterCustomPrologue"),insertStatementAfterStandardPrologue:t(()=>$7e,"insertStatementAfterStandardPrologue"),insertStatementsAfterCustomPrologue:t(()=>hK,"insertStatementsAfterCustomPrologue"),insertStatementsAfterStandardPrologue:t(()=>R0,"insertStatementsAfterStandardPrologue"),intersperse:t(()=>Jn,"intersperse"),intrinsicTagNameToString:t(()=>nZ,"intrinsicTagNameToString"),introducesArgumentsExoticObject:t(()=>Eme,"introducesArgumentsExoticObject"),inverseJsxOptionMap:t(()=>U5,"inverseJsxOptionMap"),isAbstractConstructorSymbol:t(()=>xhe,"isAbstractConstructorSymbol"),isAbstractModifier:t(()=>Bge,"isAbstractModifier"),isAccessExpression:t(()=>Zo,"isAccessExpression"),isAccessibilityModifier:t(()=>qte,"isAccessibilityModifier"),isAccessor:t(()=>Eb,"isAccessor"),isAccessorModifier:t(()=>zge,"isAccessorModifier"),isAliasableExpression:t(()=>rU,"isAliasableExpression"),isAmbientModule:t(()=>$f,"isAmbientModule"),isAmbientPropertyDeclaration:t(()=>kK,"isAmbientPropertyDeclaration"),isAnyDirectorySeparator:t(()=>PY,"isAnyDirectorySeparator"),isAnyImportOrBareOrAccessedRequire:t(()=>lme,"isAnyImportOrBareOrAccessedRequire"),isAnyImportOrReExport:t(()=>oF,"isAnyImportOrReExport"),isAnyImportOrRequireStatement:t(()=>ume,"isAnyImportOrRequireStatement"),isAnyImportSyntax:t(()=>kw,"isAnyImportSyntax"),isAnySupportedFileExtension:t(()=>vFe,"isAnySupportedFileExtension"),isApplicableVersionedTypesKey:t(()=>K5,"isApplicableVersionedTypesKey"),isArgumentExpressionOfElementAccess:t(()=>Fte,"isArgumentExpressionOfElementAccess"),isArray:t(()=>Bs,"isArray"),isArrayBindingElement:t(()=>mB,"isArrayBindingElement"),isArrayBindingOrAssignmentElement:t(()=>K7,"isArrayBindingOrAssignmentElement"),isArrayBindingOrAssignmentPattern:t(()=>iK,"isArrayBindingOrAssignmentPattern"),isArrayBindingPattern:t(()=>sv,"isArrayBindingPattern"),isArrayLiteralExpression:t(()=>Xu,"isArrayLiteralExpression"),isArrayLiteralOrObjectLiteralDestructuringPattern:t(()=>lv,"isArrayLiteralOrObjectLiteralDestructuringPattern"),isArrayTypeNode:t(()=>E5,"isArrayTypeNode"),isArrowFunction:t(()=>Qo,"isArrowFunction"),isAsExpression:t(()=>o6,"isAsExpression"),isAssertClause:t(()=>Gge,"isAssertClause"),isAssertEntry:t(()=>jFe,"isAssertEntry"),isAssertionExpression:t(()=>UT,"isAssertionExpression"),isAssertsKeyword:t(()=>Mge,"isAssertsKeyword"),isAssignmentDeclaration:t(()=>P4,"isAssignmentDeclaration"),isAssignmentExpression:t(()=>Su,"isAssignmentExpression"),isAssignmentOperator:t(()=>qy,"isAssignmentOperator"),isAssignmentPattern:t(()=>y4,"isAssignmentPattern"),isAssignmentTarget:t(()=>Ib,"isAssignmentTarget"),isAsteriskToken:t(()=>S5,"isAsteriskToken"),isAsyncFunction:t(()=>R4,"isAsyncFunction"),isAsyncModifier:t(()=>m3,"isAsyncModifier"),isAutoAccessorPropertyDeclaration:t(()=>E_,"isAutoAccessorPropertyDeclaration"),isAwaitExpression:t(()=>$b,"isAwaitExpression"),isAwaitKeyword:t(()=>xZ,"isAwaitKeyword"),isBigIntLiteral:t(()=>d3,"isBigIntLiteral"),isBinaryExpression:t(()=>Fn,"isBinaryExpression"),isBinaryLogicalOperator:t(()=>VF,"isBinaryLogicalOperator"),isBinaryOperatorToken:t(()=>T0e,"isBinaryOperatorToken"),isBindableObjectDefinePropertyCall:t(()=>sC,"isBindableObjectDefinePropertyCall"),isBindableStaticAccessExpression:t(()=>HT,"isBindableStaticAccessExpression"),isBindableStaticElementAccessExpression:t(()=>QB,"isBindableStaticElementAccessExpression"),isBindableStaticNameExpression:t(()=>aC,"isBindableStaticNameExpression"),isBindingElement:t(()=>qa,"isBindingElement"),isBindingElementOfBareOrAccessedRequire:t(()=>Ome,"isBindingElementOfBareOrAccessedRequire"),isBindingName:t(()=>XE,"isBindingName"),isBindingOrAssignmentElement:t(()=>Fde,"isBindingOrAssignmentElement"),isBindingOrAssignmentPattern:t(()=>G7,"isBindingOrAssignmentPattern"),isBindingPattern:t(()=>ra,"isBindingPattern"),isBlock:t(()=>Zs,"isBlock"),isBlockLike:t(()=>wD,"isBlockLike"),isBlockOrCatchScoped:t(()=>bK,"isBlockOrCatchScoped"),isBlockScope:t(()=>wK,"isBlockScope"),isBlockScopedContainerTopLevel:t(()=>cme,"isBlockScopedContainerTopLevel"),isBooleanLiteral:t(()=>g4,"isBooleanLiteral"),isBreakOrContinueStatement:t(()=>p4,"isBreakOrContinueStatement"),isBreakStatement:t(()=>LFe,"isBreakStatement"),isBuildCommand:t(()=>Ove,"isBuildCommand"),isBuildInfoFile:t(()=>C1e,"isBuildInfoFile"),isBuilderProgram:t(()=>Hee,"isBuilderProgram"),isBundle:t(()=>Zge,"isBundle"),isCallChain:t(()=>GE,"isCallChain"),isCallExpression:t(()=>la,"isCallExpression"),isCallExpressionTarget:t(()=>Dte,"isCallExpressionTarget"),isCallLikeExpression:t(()=>BT,"isCallLikeExpression"),isCallLikeOrFunctionLikeExpression:t(()=>sK,"isCallLikeOrFunctionLikeExpression"),isCallOrNewExpression:t(()=>Bh,"isCallOrNewExpression"),isCallOrNewExpressionTarget:t(()=>Pte,"isCallOrNewExpressionTarget"),isCallSignatureDeclaration:t(()=>rD,"isCallSignatureDeclaration"),isCallToHelper:t(()=>p3,"isCallToHelper"),isCaseBlock:t(()=>T3,"isCaseBlock"),isCaseClause:t(()=>f6,"isCaseClause"),isCaseKeyword:t(()=>$ge,"isCaseKeyword"),isCaseOrDefaultClause:t(()=>vB,"isCaseOrDefaultClause"),isCatchClause:t(()=>dx,"isCatchClause"),isCatchClauseVariableDeclaration:t(()=>nge,"isCatchClauseVariableDeclaration"),isCatchClauseVariableDeclarationOrBindingElement:t(()=>SK,"isCatchClauseVariableDeclarationOrBindingElement"),isCheckJsEnabledForFile:t(()=>t3,"isCheckJsEnabledForFile"),isCircularBuildOrder:t(()=>xD,"isCircularBuildOrder"),isClassDeclaration:t(()=>Bl,"isClassDeclaration"),isClassElement:t(()=>xl,"isClassElement"),isClassExpression:t(()=>jl,"isClassExpression"),isClassInstanceProperty:t(()=>Ide,"isClassInstanceProperty"),isClassLike:t(()=>yi,"isClassLike"),isClassMemberModifier:t(()=>tK,"isClassMemberModifier"),isClassNamedEvaluationHelperBlock:t(()=>bD,"isClassNamedEvaluationHelperBlock"),isClassOrTypeElement:t(()=>dB,"isClassOrTypeElement"),isClassStaticBlockDeclaration:t(()=>Xc,"isClassStaticBlockDeclaration"),isClassThisAssignmentBlock:t(()=>J3,"isClassThisAssignmentBlock"),isColonToken:t(()=>Lge,"isColonToken"),isCommaExpression:t(()=>N5,"isCommaExpression"),isCommaListExpression:t(()=>b3,"isCommaListExpression"),isCommaSequence:t(()=>w3,"isCommaSequence"),isCommaToken:t(()=>Fge,"isCommaToken"),isComment:t(()=>dJ,"isComment"),isCommonJsExportPropertyAssignment:t(()=>BB,"isCommonJsExportPropertyAssignment"),isCommonJsExportedExpression:t(()=>Tme,"isCommonJsExportedExpression"),isCompoundAssignment:t(()=>U3,"isCompoundAssignment"),isComputedNonLiteralName:t(()=>cF,"isComputedNonLiteralName"),isComputedPropertyName:t(()=>Ia,"isComputedPropertyName"),isConciseBody:t(()=>gB,"isConciseBody"),isConditionalExpression:t(()=>SC,"isConditionalExpression"),isConditionalTypeNode:t(()=>cx,"isConditionalTypeNode"),isConstAssertion:t(()=>iZ,"isConstAssertion"),isConstTypeReference:t(()=>Pm,"isConstTypeReference"),isConstructSignatureDeclaration:t(()=>x5,"isConstructSignatureDeclaration"),isConstructorDeclaration:t(()=>wc,"isConstructorDeclaration"),isConstructorTypeNode:t(()=>i6,"isConstructorTypeNode"),isContextualKeyword:t(()=>iU,"isContextualKeyword"),isContinueStatement:t(()=>FFe,"isContinueStatement"),isCustomPrologue:t(()=>pF,"isCustomPrologue"),isDebuggerStatement:t(()=>RFe,"isDebuggerStatement"),isDeclaration:t(()=>gu,"isDeclaration"),isDeclarationBindingElement:t(()=>H7,"isDeclarationBindingElement"),isDeclarationFileName:t(()=>uu,"isDeclarationFileName"),isDeclarationName:t(()=>Gg,"isDeclarationName"),isDeclarationNameOfEnumOrNamespace:t(()=>kX,"isDeclarationNameOfEnumOrNamespace"),isDeclarationReadonly:t(()=>uF,"isDeclarationReadonly"),isDeclarationStatement:t(()=>$de,"isDeclarationStatement"),isDeclarationWithTypeParameterChildren:t(()=>PK,"isDeclarationWithTypeParameterChildren"),isDeclarationWithTypeParameters:t(()=>DK,"isDeclarationWithTypeParameters"),isDecorator:t(()=>ou,"isDecorator"),isDecoratorTarget:t(()=>sbe,"isDecoratorTarget"),isDefaultClause:t(()=>x3,"isDefaultClause"),isDefaultImport:t(()=>oC,"isDefaultImport"),isDefaultModifier:t(()=>pz,"isDefaultModifier"),isDefaultedExpandoInitializer:t(()=>Fme,"isDefaultedExpandoInitializer"),isDeleteExpression:t(()=>Wge,"isDeleteExpression"),isDeleteTarget:t(()=>VK,"isDeleteTarget"),isDeprecatedDeclaration:t(()=>OJ,"isDeprecatedDeclaration"),isDestructuringAssignment:t(()=>X1,"isDestructuringAssignment"),isDiskPathRoot:t(()=>AY,"isDiskPathRoot"),isDoStatement:t(()=>OFe,"isDoStatement"),isDocumentRegistryEntry:t(()=>HL,"isDocumentRegistryEntry"),isDotDotDotToken:t(()=>fz,"isDotDotDotToken"),isDottedName:t(()=>GF,"isDottedName"),isDynamicName:t(()=>aU,"isDynamicName"),isEffectiveExternalModule:t(()=>NA,"isEffectiveExternalModule"),isEffectiveStrictModeSourceFile:t(()=>CK,"isEffectiveStrictModeSourceFile"),isElementAccessChain:t(()=>YY,"isElementAccessChain"),isElementAccessExpression:t(()=>$o,"isElementAccessExpression"),isEmittedFileOfProgram:t(()=>I1e,"isEmittedFileOfProgram"),isEmptyArrayLiteral:t(()=>dhe,"isEmptyArrayLiteral"),isEmptyBindingElement:t(()=>fde,"isEmptyBindingElement"),isEmptyBindingPattern:t(()=>ude,"isEmptyBindingPattern"),isEmptyObjectLiteral:t(()=>SX,"isEmptyObjectLiteral"),isEmptyStatement:t(()=>kZ,"isEmptyStatement"),isEmptyStringLiteral:t(()=>RK,"isEmptyStringLiteral"),isEntityName:t(()=>n_,"isEntityName"),isEntityNameExpression:t(()=>No,"isEntityNameExpression"),isEnumConst:t(()=>jS,"isEnumConst"),isEnumDeclaration:t(()=>fx,"isEnumDeclaration"),isEnumMember:t(()=>av,"isEnumMember"),isEqualityOperatorKind:t(()=>kJ,"isEqualityOperatorKind"),isEqualsGreaterThanToken:t(()=>Rge,"isEqualsGreaterThanToken"),isExclamationToken:t(()=>T5,"isExclamationToken"),isExcludedFile:t(()=>Q0e,"isExcludedFile"),isExclusivelyTypeOnlyImportOrExport:t(()=>Cee,"isExclusivelyTypeOnlyImportOrExport"),isExpandoPropertyDeclaration:t(()=>Yw,"isExpandoPropertyDeclaration"),isExportAssignment:t(()=>lc,"isExportAssignment"),isExportDeclaration:t(()=>yl,"isExportDeclaration"),isExportModifier:t(()=>eD,"isExportModifier"),isExportName:t(()=>wz,"isExportName"),isExportNamespaceAsDefaultDeclaration:t(()=>NB,"isExportNamespaceAsDefaultDeclaration"),isExportOrDefaultModifier:t(()=>L5,"isExportOrDefaultModifier"),isExportSpecifier:t(()=>kf,"isExportSpecifier"),isExportsIdentifier:t(()=>iC,"isExportsIdentifier"),isExportsOrModuleExportsOrAlias:t(()=>gx,"isExportsOrModuleExportsOrAlias"),isExpression:t(()=>kt,"isExpression"),isExpressionNode:t(()=>nh,"isExpressionNode"),isExpressionOfExternalModuleImportEqualsDeclaration:t(()=>cbe,"isExpressionOfExternalModuleImportEqualsDeclaration"),isExpressionOfOptionalChainRoot:t(()=>uB,"isExpressionOfOptionalChainRoot"),isExpressionStatement:t(()=>Tu,"isExpressionStatement"),isExpressionWithTypeArguments:t(()=>Yy,"isExpressionWithTypeArguments"),isExpressionWithTypeArgumentsInClassExtendsClause:t(()=>vU,"isExpressionWithTypeArgumentsInClassExtendsClause"),isExternalModule:t(()=>Gl,"isExternalModule"),isExternalModuleAugmentation:t(()=>JT,"isExternalModuleAugmentation"),isExternalModuleImportEqualsDeclaration:t(()=>BS,"isExternalModuleImportEqualsDeclaration"),isExternalModuleIndicator:t(()=>Z7,"isExternalModuleIndicator"),isExternalModuleNameRelative:t(()=>mu,"isExternalModuleNameRelative"),isExternalModuleReference:t(()=>Ky,"isExternalModuleReference"),isExternalModuleSymbol:t(()=>Tw,"isExternalModuleSymbol"),isExternalOrCommonJsModule:t(()=>lp,"isExternalOrCommonJsModule"),isFileLevelReservedGeneratedIdentifier:t(()=>V7,"isFileLevelReservedGeneratedIdentifier"),isFileLevelUniqueName:t(()=>PB,"isFileLevelUniqueName"),isFileProbablyExternalModule:t(()=>j5,"isFileProbablyExternalModule"),isFirstDeclarationOfSymbolParameter:t(()=>lre,"isFirstDeclarationOfSymbolParameter"),isFixablePromiseHandler:t(()=>$re,"isFixablePromiseHandler"),isForInOrOfStatement:t(()=>ZE,"isForInOrOfStatement"),isForInStatement:t(()=>yz,"isForInStatement"),isForInitializer:t(()=>Dd,"isForInitializer"),isForOfStatement:t(()=>k5,"isForOfStatement"),isForStatement:t(()=>QS,"isForStatement"),isFullSourceFile:t(()=>j0,"isFullSourceFile"),isFunctionBlock:t(()=>WT,"isFunctionBlock"),isFunctionBody:t(()=>oK,"isFunctionBody"),isFunctionDeclaration:t(()=>nl,"isFunctionDeclaration"),isFunctionExpression:t(()=>Ho,"isFunctionExpression"),isFunctionExpressionOrArrowFunction:t(()=>jb,"isFunctionExpressionOrArrowFunction"),isFunctionLike:t(()=>Gs,"isFunctionLike"),isFunctionLikeDeclaration:t(()=>Uo,"isFunctionLikeDeclaration"),isFunctionLikeKind:t(()=>yw,"isFunctionLikeKind"),isFunctionLikeOrClassStaticBlockDeclaration:t(()=>kA,"isFunctionLikeOrClassStaticBlockDeclaration"),isFunctionOrConstructorTypeNode:t(()=>Ode,"isFunctionOrConstructorTypeNode"),isFunctionOrModuleBlock:t(()=>rK,"isFunctionOrModuleBlock"),isFunctionSymbol:t(()=>Mme,"isFunctionSymbol"),isFunctionTypeNode:t(()=>Kg,"isFunctionTypeNode"),isGeneratedIdentifier:t(()=>_c,"isGeneratedIdentifier"),isGeneratedPrivateIdentifier:t(()=>KE,"isGeneratedPrivateIdentifier"),isGetAccessor:t(()=>O0,"isGetAccessor"),isGetAccessorDeclaration:t(()=>Md,"isGetAccessorDeclaration"),isGetOrSetAccessorDeclaration:t(()=>q7,"isGetOrSetAccessorDeclaration"),isGlobalScopeAugmentation:t(()=>Hg,"isGlobalScopeAugmentation"),isGlobalSourceFile:t(()=>G1,"isGlobalSourceFile"),isGrammarError:t(()=>tme,"isGrammarError"),isHeritageClause:t(()=>pp,"isHeritageClause"),isHoistedFunction:t(()=>MB,"isHoistedFunction"),isHoistedVariableStatement:t(()=>jB,"isHoistedVariableStatement"),isIdentifier:t(()=>Ye,"isIdentifier"),isIdentifierANonContextualKeyword:t(()=>XK,"isIdentifierANonContextualKeyword"),isIdentifierName:t(()=>qme,"isIdentifierName"),isIdentifierOrThisTypeNode:t(()=>y0e,"isIdentifierOrThisTypeNode"),isIdentifierPart:t(()=>jy,"isIdentifierPart"),isIdentifierStart:t(()=>Jg,"isIdentifierStart"),isIdentifierText:t(()=>U_,"isIdentifierText"),isIdentifierTypePredicate:t(()=>Cme,"isIdentifierTypePredicate"),isIdentifierTypeReference:t(()=>Zhe,"isIdentifierTypeReference"),isIfStatement:t(()=>ZS,"isIfStatement"),isIgnoredFileFromWildCardWatching:t(()=>fL,"isIgnoredFileFromWildCardWatching"),isImplicitGlob:t(()=>UX,"isImplicitGlob"),isImportAttribute:t(()=>Yge,"isImportAttribute"),isImportAttributeName:t(()=>Nde,"isImportAttributeName"),isImportAttributes:t(()=>xC,"isImportAttributes"),isImportCall:t(()=>Mp,"isImportCall"),isImportClause:t(()=>Lm,"isImportClause"),isImportDeclaration:t(()=>Tc,"isImportDeclaration"),isImportEqualsDeclaration:t(()=>lu,"isImportEqualsDeclaration"),isImportKeyword:t(()=>g3,"isImportKeyword"),isImportMeta:t(()=>FA,"isImportMeta"),isImportOrExportSpecifier:t(()=>Tb,"isImportOrExportSpecifier"),isImportOrExportSpecifierName:t(()=>Obe,"isImportOrExportSpecifierName"),isImportSpecifier:t(()=>Gf,"isImportSpecifier"),isImportTypeAssertionContainer:t(()=>MFe,"isImportTypeAssertionContainer"),isImportTypeNode:t(()=>Zh,"isImportTypeNode"),isImportable:t(()=>Are,"isImportable"),isInComment:t(()=>cv,"isInComment"),isInCompoundLikeAssignment:t(()=>qK,"isInCompoundLikeAssignment"),isInExpressionContext:t(()=>HB,"isInExpressionContext"),isInJSDoc:t(()=>bF,"isInJSDoc"),isInJSFile:t(()=>xn,"isInJSFile"),isInJSXText:t(()=>mbe,"isInJSXText"),isInJsonFile:t(()=>YB,"isInJsonFile"),isInNonReferenceComment:t(()=>Sbe,"isInNonReferenceComment"),isInReferenceComment:t(()=>bbe,"isInReferenceComment"),isInRightSideOfInternalImportEqualsDeclaration:t(()=>rJ,"isInRightSideOfInternalImportEqualsDeclaration"),isInString:t(()=>ED,"isInString"),isInTemplateString:t(()=>zte,"isInTemplateString"),isInTopLevelContext:t(()=>WB,"isInTopLevelContext"),isInTypeQuery:t(()=>Lw,"isInTypeQuery"),isIncrementalBuildInfo:t(()=>gL,"isIncrementalBuildInfo"),isIncrementalBundleEmitBuildInfo:t(()=>Q1e,"isIncrementalBundleEmitBuildInfo"),isIncrementalCompilation:t(()=>nx,"isIncrementalCompilation"),isIndexSignatureDeclaration:t(()=>zb,"isIndexSignatureDeclaration"),isIndexedAccessTypeNode:t(()=>lx,"isIndexedAccessTypeNode"),isInferTypeNode:t(()=>yC,"isInferTypeNode"),isInfinityOrNaNString:t(()=>a3,"isInfinityOrNaNString"),isInitializedProperty:t(()=>tL,"isInitializedProperty"),isInitializedVariable:t(()=>ZF,"isInitializedVariable"),isInsideJsxElement:t(()=>_J,"isInsideJsxElement"),isInsideJsxElementOrAttribute:t(()=>dbe,"isInsideJsxElementOrAttribute"),isInsideNodeModules:t(()=>$L,"isInsideNodeModules"),isInsideTemplateLiteral:t(()=>NL,"isInsideTemplateLiteral"),isInstanceOfExpression:t(()=>bU,"isInstanceOfExpression"),isInstantiatedModule:t(()=>$Q,"isInstantiatedModule"),isInterfaceDeclaration:t(()=>Zu,"isInterfaceDeclaration"),isInternalDeclaration:t(()=>Gde,"isInternalDeclaration"),isInternalModuleImportEqualsDeclaration:t(()=>nC,"isInternalModuleImportEqualsDeclaration"),isInternalName:t(()=>$Z,"isInternalName"),isIntersectionTypeNode:t(()=>sD,"isIntersectionTypeNode"),isIntrinsicJsxName:t(()=>qA,"isIntrinsicJsxName"),isIterationStatement:t(()=>Cb,"isIterationStatement"),isJSDoc:t(()=>lh,"isJSDoc"),isJSDocAllType:t(()=>t0e,"isJSDocAllType"),isJSDocAugmentsTag:t(()=>uD,"isJSDocAugmentsTag"),isJSDocAuthorTag:t(()=>$Fe,"isJSDocAuthorTag"),isJSDocCallbackTag:t(()=>AZ,"isJSDocCallbackTag"),isJSDocClassTag:t(()=>n0e,"isJSDocClassTag"),isJSDocCommentContainingNode:t(()=>bB,"isJSDocCommentContainingNode"),isJSDocConstructSignature:t(()=>Iw,"isJSDocConstructSignature"),isJSDocDeprecatedTag:t(()=>LZ,"isJSDocDeprecatedTag"),isJSDocEnumTag:t(()=>D5,"isJSDocEnumTag"),isJSDocFunctionType:t(()=>p6,"isJSDocFunctionType"),isJSDocImplementsTag:t(()=>Ez,"isJSDocImplementsTag"),isJSDocImportTag:t(()=>ng,"isJSDocImportTag"),isJSDocIndexSignature:t(()=>XB,"isJSDocIndexSignature"),isJSDocLikeText:t(()=>XZ,"isJSDocLikeText"),isJSDocLink:t(()=>Qge,"isJSDocLink"),isJSDocLinkCode:t(()=>e0e,"isJSDocLinkCode"),isJSDocLinkLike:t(()=>Sw,"isJSDocLinkLike"),isJSDocLinkPlain:t(()=>UFe,"isJSDocLinkPlain"),isJSDocMemberName:t(()=>r2,"isJSDocMemberName"),isJSDocNameReference:t(()=>E3,"isJSDocNameReference"),isJSDocNamepathType:t(()=>zFe,"isJSDocNamepathType"),isJSDocNamespaceBody:t(()=>L7e,"isJSDocNamespaceBody"),isJSDocNode:t(()=>wA,"isJSDocNode"),isJSDocNonNullableType:t(()=>bz,"isJSDocNonNullableType"),isJSDocNullableType:t(()=>_6,"isJSDocNullableType"),isJSDocOptionalParameter:t(()=>XU,"isJSDocOptionalParameter"),isJSDocOptionalType:t(()=>PZ,"isJSDocOptionalType"),isJSDocOverloadTag:t(()=>d6,"isJSDocOverloadTag"),isJSDocOverrideTag:t(()=>Tz,"isJSDocOverrideTag"),isJSDocParameterTag:t(()=>ad,"isJSDocParameterTag"),isJSDocPrivateTag:t(()=>IZ,"isJSDocPrivateTag"),isJSDocPropertyLikeTag:t(()=>d4,"isJSDocPropertyLikeTag"),isJSDocPropertyTag:t(()=>i0e,"isJSDocPropertyTag"),isJSDocProtectedTag:t(()=>OZ,"isJSDocProtectedTag"),isJSDocPublicTag:t(()=>NZ,"isJSDocPublicTag"),isJSDocReadonlyTag:t(()=>FZ,"isJSDocReadonlyTag"),isJSDocReturnTag:t(()=>xz,"isJSDocReturnTag"),isJSDocSatisfiesExpression:t(()=>tZ,"isJSDocSatisfiesExpression"),isJSDocSatisfiesTag:t(()=>Cz,"isJSDocSatisfiesTag"),isJSDocSeeTag:t(()=>JFe,"isJSDocSeeTag"),isJSDocSignature:t(()=>ov,"isJSDocSignature"),isJSDocTag:t(()=>DA,"isJSDocTag"),isJSDocTemplateTag:t(()=>_m,"isJSDocTemplateTag"),isJSDocThisTag:t(()=>RZ,"isJSDocThisTag"),isJSDocThrowsTag:t(()=>qFe,"isJSDocThrowsTag"),isJSDocTypeAlias:t(()=>om,"isJSDocTypeAlias"),isJSDocTypeAssertion:t(()=>mx,"isJSDocTypeAssertion"),isJSDocTypeExpression:t(()=>t2,"isJSDocTypeExpression"),isJSDocTypeLiteral:t(()=>CC,"isJSDocTypeLiteral"),isJSDocTypeTag:t(()=>C3,"isJSDocTypeTag"),isJSDocTypedefTag:t(()=>kC,"isJSDocTypedefTag"),isJSDocUnknownTag:t(()=>WFe,"isJSDocUnknownTag"),isJSDocUnknownType:t(()=>r0e,"isJSDocUnknownType"),isJSDocVariadicType:t(()=>Sz,"isJSDocVariadicType"),isJSXTagName:t(()=>MA,"isJSXTagName"),isJsonEqual:t(()=>VU,"isJsonEqual"),isJsonSourceFile:t(()=>Ad,"isJsonSourceFile"),isJsxAttribute:t(()=>rg,"isJsxAttribute"),isJsxAttributeLike:t(()=>yB,"isJsxAttributeLike"),isJsxAttributeName:t(()=>age,"isJsxAttributeName"),isJsxAttributes:t(()=>px,"isJsxAttributes"),isJsxCallLike:t(()=>Vde,"isJsxCallLike"),isJsxChild:t(()=>tF,"isJsxChild"),isJsxClosingElement:t(()=>_x,"isJsxClosingElement"),isJsxClosingFragment:t(()=>Xge,"isJsxClosingFragment"),isJsxElement:t(()=>tg,"isJsxElement"),isJsxExpression:t(()=>u6,"isJsxExpression"),isJsxFragment:t(()=>e2,"isJsxFragment"),isJsxNamespacedName:t(()=>ch,"isJsxNamespacedName"),isJsxOpeningElement:t(()=>oh,"isJsxOpeningElement"),isJsxOpeningFragment:t(()=>Rm,"isJsxOpeningFragment"),isJsxOpeningLikeElement:t(()=>Ef,"isJsxOpeningLikeElement"),isJsxOpeningLikeElementTagName:t(()=>abe,"isJsxOpeningLikeElementTagName"),isJsxSelfClosingElement:t(()=>EC,"isJsxSelfClosingElement"),isJsxSpreadAttribute:t(()=>lD,"isJsxSpreadAttribute"),isJsxTagNameExpression:t(()=>v4,"isJsxTagNameExpression"),isJsxText:t(()=>Zw,"isJsxText"),isJumpStatementTarget:t(()=>wL,"isJumpStatementTarget"),isKeyword:t(()=>w_,"isKeyword"),isKeywordOrPunctuation:t(()=>nU,"isKeywordOrPunctuation"),isKnownSymbol:t(()=>UF,"isKnownSymbol"),isLabelName:t(()=>Ite,"isLabelName"),isLabelOfLabeledStatement:t(()=>Nte,"isLabelOfLabeledStatement"),isLabeledStatement:t(()=>Jb,"isLabeledStatement"),isLateVisibilityPaintedStatement:t(()=>OB,"isLateVisibilityPaintedStatement"),isLeftHandSideExpression:t(()=>C_,"isLeftHandSideExpression"),isLet:t(()=>RB,"isLet"),isLineBreak:t(()=>Tf,"isLineBreak"),isLiteralComputedPropertyDeclarationName:t(()=>RF,"isLiteralComputedPropertyDeclarationName"),isLiteralExpression:t(()=>YE,"isLiteralExpression"),isLiteralExpressionOfObject:t(()=>QY,"isLiteralExpressionOfObject"),isLiteralImportTypeNode:t(()=>zy,"isLiteralImportTypeNode"),isLiteralKind:t(()=>m4,"isLiteralKind"),isLiteralNameOfPropertyDeclarationOrIndexAccess:t(()=>sJ,"isLiteralNameOfPropertyDeclarationOrIndexAccess"),isLiteralTypeLiteral:t(()=>Mde,"isLiteralTypeLiteral"),isLiteralTypeNode:t(()=>iv,"isLiteralTypeNode"),isLocalName:t(()=>Xy,"isLocalName"),isLogicalOperator:t(()=>fhe,"isLogicalOperator"),isLogicalOrCoalescingAssignmentExpression:t(()=>gX,"isLogicalOrCoalescingAssignmentExpression"),isLogicalOrCoalescingAssignmentOperator:t(()=>$4,"isLogicalOrCoalescingAssignmentOperator"),isLogicalOrCoalescingBinaryExpression:t(()=>HF,"isLogicalOrCoalescingBinaryExpression"),isLogicalOrCoalescingBinaryOperator:t(()=>yU,"isLogicalOrCoalescingBinaryOperator"),isMappedTypeNode:t(()=>bC,"isMappedTypeNode"),isMemberName:t(()=>I0,"isMemberName"),isMetaProperty:t(()=>v3,"isMetaProperty"),isMethodDeclaration:t(()=>Jc,"isMethodDeclaration"),isMethodOrAccessor:t(()=>vw,"isMethodOrAccessor"),isMethodSignature:t(()=>Fm,"isMethodSignature"),isMinusToken:t(()=>TZ,"isMinusToken"),isMissingDeclaration:t(()=>BFe,"isMissingDeclaration"),isMissingPackageJsonInfo:t(()=>fye,"isMissingPackageJsonInfo"),isModifier:t(()=>wa,"isModifier"),isModifierKind:t(()=>xb,"isModifierKind"),isModifierLike:t(()=>pc,"isModifierLike"),isModuleAugmentationExternal:t(()=>xK,"isModuleAugmentationExternal"),isModuleBlock:t(()=>Qh,"isModuleBlock"),isModuleBody:t(()=>Bde,"isModuleBody"),isModuleDeclaration:t(()=>El,"isModuleDeclaration"),isModuleExportName:t(()=>vz,"isModuleExportName"),isModuleExportsAccessExpression:t(()=>B0,"isModuleExportsAccessExpression"),isModuleIdentifier:t(()=>BK,"isModuleIdentifier"),isModuleName:t(()=>S0e,"isModuleName"),isModuleOrEnumDeclaration:t(()=>Q7,"isModuleOrEnumDeclaration"),isModuleReference:t(()=>Wde,"isModuleReference"),isModuleSpecifierLike:t(()=>bJ,"isModuleSpecifierLike"),isModuleWithStringLiteralName:t(()=>IB,"isModuleWithStringLiteralName"),isNameOfFunctionDeclaration:t(()=>Rte,"isNameOfFunctionDeclaration"),isNameOfModuleDeclaration:t(()=>Lte,"isNameOfModuleDeclaration"),isNamedDeclaration:t(()=>hu,"isNamedDeclaration"),isNamedEvaluation:t(()=>up,"isNamedEvaluation"),isNamedEvaluationSource:t(()=>ZK,"isNamedEvaluationSource"),isNamedExportBindings:t(()=>XY,"isNamedExportBindings"),isNamedExports:t(()=>Bd,"isNamedExports"),isNamedImportBindings:t(()=>cK,"isNamedImportBindings"),isNamedImports:t(()=>eg,"isNamedImports"),isNamedImportsOrExports:t(()=>wU,"isNamedImportsOrExports"),isNamedTupleMember:t(()=>s6,"isNamedTupleMember"),isNamespaceBody:t(()=>F7e,"isNamespaceBody"),isNamespaceExport:t(()=>Xg,"isNamespaceExport"),isNamespaceExportDeclaration:t(()=>w5,"isNamespaceExportDeclaration"),isNamespaceImport:t(()=>G0,"isNamespaceImport"),isNamespaceReexportDeclaration:t(()=>Ime,"isNamespaceReexportDeclaration"),isNewExpression:t(()=>ux,"isNewExpression"),isNewExpressionTarget:t(()=>t8,"isNewExpressionTarget"),isNewScopeNode:t(()=>pge,"isNewScopeNode"),isNoSubstitutionTemplateLiteral:t(()=>gC,"isNoSubstitutionTemplateLiteral"),isNodeArray:t(()=>MT,"isNodeArray"),isNodeArrayMultiLine:t(()=>bhe,"isNodeArrayMultiLine"),isNodeDescendantOf:t(()=>YT,"isNodeDescendantOf"),isNodeKind:t(()=>_B,"isNodeKind"),isNodeLikeSystem:t(()=>sY,"isNodeLikeSystem"),isNodeModulesDirectory:t(()=>Zj,"isNodeModulesDirectory"),isNodeWithPossibleHoistedDeclaration:t(()=>Jme,"isNodeWithPossibleHoistedDeclaration"),isNonContextualKeyword:t(()=>KK,"isNonContextualKeyword"),isNonGlobalAmbientModule:t(()=>TK,"isNonGlobalAmbientModule"),isNonNullAccess:t(()=>sge,"isNonNullAccess"),isNonNullChain:t(()=>fB,"isNonNullChain"),isNonNullExpression:t(()=>oD,"isNonNullExpression"),isNonStaticMethodOrAccessorWithPrivateName:t(()=>Wye,"isNonStaticMethodOrAccessorWithPrivateName"),isNotEmittedStatement:t(()=>Kge,"isNotEmittedStatement"),isNullishCoalesce:t(()=>KY,"isNullishCoalesce"),isNumber:t(()=>ub,"isNumber"),isNumericLiteral:t(()=>P_,"isNumericLiteral"),isNumericLiteralName:t(()=>V0,"isNumericLiteralName"),isObjectBindingElementWithoutPropertyName:t(()=>LL,"isObjectBindingElementWithoutPropertyName"),isObjectBindingOrAssignmentElement:t(()=>Y7,"isObjectBindingOrAssignmentElement"),isObjectBindingOrAssignmentPattern:t(()=>nK,"isObjectBindingOrAssignmentPattern"),isObjectBindingPattern:t(()=>sd,"isObjectBindingPattern"),isObjectLiteralElement:t(()=>lK,"isObjectLiteralElement"),isObjectLiteralElementLike:t(()=>Uy,"isObjectLiteralElementLike"),isObjectLiteralExpression:t(()=>ja,"isObjectLiteralExpression"),isObjectLiteralMethod:t(()=>am,"isObjectLiteralMethod"),isObjectLiteralOrClassExpressionMethodOrAccessor:t(()=>UB,"isObjectLiteralOrClassExpressionMethodOrAccessor"),isObjectTypeDeclaration:t(()=>Uw,"isObjectTypeDeclaration"),isOmittedExpression:t(()=>cu,"isOmittedExpression"),isOptionalChain:t(()=>xf,"isOptionalChain"),isOptionalChainRoot:t(()=>f4,"isOptionalChainRoot"),isOptionalDeclaration:t(()=>Hw,"isOptionalDeclaration"),isOptionalJSDocPropertyLikeTag:t(()=>_5,"isOptionalJSDocPropertyLikeTag"),isOptionalTypeNode:t(()=>dz,"isOptionalTypeNode"),isOuterExpression:t(()=>Dz,"isOuterExpression"),isOutermostOptionalChain:t(()=>_4,"isOutermostOptionalChain"),isOverrideModifier:t(()=>Uge,"isOverrideModifier"),isPackageJsonInfo:t(()=>Qz,"isPackageJsonInfo"),isPackedArrayLiteral:t(()=>QX,"isPackedArrayLiteral"),isParameter:t(()=>rs,"isParameter"),isParameterPropertyDeclaration:t(()=>op,"isParameterPropertyDeclaration"),isParameterPropertyModifier:t(()=>h4,"isParameterPropertyModifier"),isParenthesizedExpression:t(()=>c_,"isParenthesizedExpression"),isParenthesizedTypeNode:t(()=>vC,"isParenthesizedTypeNode"),isParseTreeNode:t(()=>u4,"isParseTreeNode"),isPartOfParameterDeclaration:t(()=>WS,"isPartOfParameterDeclaration"),isPartOfTypeNode:t(()=>Jh,"isPartOfTypeNode"),isPartOfTypeOnlyImportOrExportDeclaration:t(()=>Ade,"isPartOfTypeOnlyImportOrExportDeclaration"),isPartOfTypeQuery:t(()=>GB,"isPartOfTypeQuery"),isPartiallyEmittedExpression:t(()=>qge,"isPartiallyEmittedExpression"),isPatternMatch:t(()=>jj,"isPatternMatch"),isPinnedComment:t(()=>AB,"isPinnedComment"),isPlainJsFile:t(()=>S4,"isPlainJsFile"),isPlusToken:t(()=>SZ,"isPlusToken"),isPossiblyTypeArgumentPosition:t(()=>AL,"isPossiblyTypeArgumentPosition"),isPostfixUnaryExpression:t(()=>CZ,"isPostfixUnaryExpression"),isPrefixUnaryExpression:t(()=>XS,"isPrefixUnaryExpression"),isPrimitiveLiteralValue:t(()=>ez,"isPrimitiveLiteralValue"),isPrivateIdentifier:t(()=>Qi,"isPrivateIdentifier"),isPrivateIdentifierClassElementDeclaration:t(()=>zf,"isPrivateIdentifierClassElementDeclaration"),isPrivateIdentifierPropertyAccessExpression:t(()=>CA,"isPrivateIdentifierPropertyAccessExpression"),isPrivateIdentifierSymbol:t(()=>Gme,"isPrivateIdentifierSymbol"),isProgramUptoDate:t(()=>Pee,"isProgramUptoDate"),isPrologueDirective:t(()=>$h,"isPrologueDirective"),isPropertyAccessChain:t(()=>lB,"isPropertyAccessChain"),isPropertyAccessEntityNameExpression:t(()=>YF,"isPropertyAccessEntityNameExpression"),isPropertyAccessExpression:t(()=>Hn,"isPropertyAccessExpression"),isPropertyAccessOrQualifiedName:t(()=>X7,"isPropertyAccessOrQualifiedName"),isPropertyAccessOrQualifiedNameOrImportTypeNode:t(()=>Lde,"isPropertyAccessOrQualifiedNameOrImportTypeNode"),isPropertyAssignment:t(()=>Ul,"isPropertyAssignment"),isPropertyDeclaration:t(()=>As,"isPropertyDeclaration"),isPropertyName:t(()=>Tl,"isPropertyName"),isPropertyNameLiteral:t(()=>qh,"isPropertyNameLiteral"),isPropertySignature:t(()=>Hf,"isPropertySignature"),isPrototypeAccess:t(()=>Lb,"isPrototypeAccess"),isPrototypePropertyAssignment:t(()=>DF,"isPrototypePropertyAssignment"),isPunctuation:t(()=>YK,"isPunctuation"),isPushOrUnshiftIdentifier:t(()=>QK,"isPushOrUnshiftIdentifier"),isQualifiedName:t(()=>a_,"isQualifiedName"),isQuestionDotToken:t(()=>_z,"isQuestionDotToken"),isQuestionOrExclamationToken:t(()=>g0e,"isQuestionOrExclamationToken"),isQuestionOrPlusOrMinusToken:t(()=>b0e,"isQuestionOrPlusOrMinusToken"),isQuestionToken:t(()=>Ub,"isQuestionToken"),isReadonlyKeyword:t(()=>jge,"isReadonlyKeyword"),isReadonlyKeywordOrPlusOrMinusToken:t(()=>v0e,"isReadonlyKeywordOrPlusOrMinusToken"),isRecognizedTripleSlashComment:t(()=>gK,"isRecognizedTripleSlashComment"),isReferenceFileLocation:t(()=>I6,"isReferenceFileLocation"),isReferencedFile:t(()=>u2,"isReferencedFile"),isRegularExpressionLiteral:t(()=>vZ,"isRegularExpressionLiteral"),isRequireCall:t(()=>k_,"isRequireCall"),isRequireVariableStatement:t(()=>TF,"isRequireVariableStatement"),isRestParameter:t(()=>qg,"isRestParameter"),isRestTypeNode:t(()=>mz,"isRestTypeNode"),isReturnStatement:t(()=>Bp,"isReturnStatement"),isReturnStatementWithFixablePromiseHandler:t(()=>zJ,"isReturnStatementWithFixablePromiseHandler"),isRightSideOfAccessExpression:t(()=>bX,"isRightSideOfAccessExpression"),isRightSideOfInstanceofExpression:t(()=>phe,"isRightSideOfInstanceofExpression"),isRightSideOfPropertyAccess:t(()=>M6,"isRightSideOfPropertyAccess"),isRightSideOfQualifiedName:t(()=>obe,"isRightSideOfQualifiedName"),isRightSideOfQualifiedNameOrPropertyAccess:t(()=>J4,"isRightSideOfQualifiedNameOrPropertyAccess"),isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:t(()=>_he,"isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName"),isRootedDiskPath:t(()=>ap,"isRootedDiskPath"),isSameEntityName:t(()=>jA,"isSameEntityName"),isSatisfiesExpression:t(()=>c6,"isSatisfiesExpression"),isSemicolonClassElement:t(()=>Vge,"isSemicolonClassElement"),isSetAccessor:t(()=>Uh,"isSetAccessor"),isSetAccessorDeclaration:t(()=>W_,"isSetAccessorDeclaration"),isShiftOperatorOrHigher:t(()=>GZ,"isShiftOperatorOrHigher"),isShorthandAmbientModuleSymbol:t(()=>aF,"isShorthandAmbientModuleSymbol"),isShorthandPropertyAssignment:t(()=>df,"isShorthandPropertyAssignment"),isSideEffectImport:t(()=>aZ,"isSideEffectImport"),isSignedNumericLiteral:t(()=>sU,"isSignedNumericLiteral"),isSimpleCopiableExpression:t(()=>yx,"isSimpleCopiableExpression"),isSimpleInlineableExpression:t(()=>ig,"isSimpleInlineableExpression"),isSimpleParameterList:t(()=>rL,"isSimpleParameterList"),isSingleOrDoubleQuote:t(()=>xF,"isSingleOrDoubleQuote"),isSolutionConfig:t(()=>yQ,"isSolutionConfig"),isSourceElement:t(()=>cge,"isSourceElement"),isSourceFile:t(()=>Yi,"isSourceFile"),isSourceFileFromLibrary:t(()=>H6,"isSourceFileFromLibrary"),isSourceFileJS:t(()=>i_,"isSourceFileJS"),isSourceFileNotJson:t(()=>KB,"isSourceFileNotJson"),isSourceMapping:t(()=>zye,"isSourceMapping"),isSpecialPropertyDeclaration:t(()=>Rme,"isSpecialPropertyDeclaration"),isSpreadAssignment:t(()=>Y0,"isSpreadAssignment"),isSpreadElement:t(()=>jd,"isSpreadElement"),isStatement:t(()=>$i,"isStatement"),isStatementButNotDeclaration:t(()=>eF,"isStatementButNotDeclaration"),isStatementOrBlock:t(()=>Jde,"isStatementOrBlock"),isStatementWithLocals:t(()=>eme,"isStatementWithLocals"),isStatic:t(()=>pa,"isStatic"),isStaticModifier:t(()=>tD,"isStaticModifier"),isString:t(()=>Fs,"isString"),isStringANonContextualKeyword:t(()=>Fw,"isStringANonContextualKeyword"),isStringAndEmptyAnonymousObjectIntersection:t(()=>vbe,"isStringAndEmptyAnonymousObjectIntersection"),isStringDoubleQuoted:t(()=>ZB,"isStringDoubleQuoted"),isStringLiteral:t(()=>Na,"isStringLiteral"),isStringLiteralLike:t(()=>fo,"isStringLiteralLike"),isStringLiteralOrJsxExpression:t(()=>qde,"isStringLiteralOrJsxExpression"),isStringLiteralOrTemplate:t(()=>Bbe,"isStringLiteralOrTemplate"),isStringOrNumericLiteralLike:t(()=>nd,"isStringOrNumericLiteralLike"),isStringOrRegularExpressionOrTemplateLiteral:t(()=>Wte,"isStringOrRegularExpressionOrTemplateLiteral"),isStringTextContainingNode:t(()=>eK,"isStringTextContainingNode"),isSuperCall:t(()=>rC,"isSuperCall"),isSuperKeyword:t(()=>h3,"isSuperKeyword"),isSuperProperty:t(()=>z_,"isSuperProperty"),isSupportedSourceFileName:t(()=>qX,"isSupportedSourceFileName"),isSwitchStatement:t(()=>S3,"isSwitchStatement"),isSyntaxList:t(()=>m6,"isSyntaxList"),isSyntheticExpression:t(()=>IFe,"isSyntheticExpression"),isSyntheticReference:t(()=>cD,"isSyntheticReference"),isTagName:t(()=>Ote,"isTagName"),isTaggedTemplateExpression:t(()=>KS,"isTaggedTemplateExpression"),isTaggedTemplateTag:t(()=>ibe,"isTaggedTemplateTag"),isTemplateExpression:t(()=>gz,"isTemplateExpression"),isTemplateHead:t(()=>Qw,"isTemplateHead"),isTemplateLiteral:t(()=>bw,"isTemplateLiteral"),isTemplateLiteralKind:t(()=>Sb,"isTemplateLiteralKind"),isTemplateLiteralToken:t(()=>Dde,"isTemplateLiteralToken"),isTemplateLiteralTypeNode:t(()=>Jge,"isTemplateLiteralTypeNode"),isTemplateLiteralTypeSpan:t(()=>EZ,"isTemplateLiteralTypeSpan"),isTemplateMiddle:t(()=>bZ,"isTemplateMiddle"),isTemplateMiddleOrTemplateTail:t(()=>pB,"isTemplateMiddleOrTemplateTail"),isTemplateSpan:t(()=>l6,"isTemplateSpan"),isTemplateTail:t(()=>uz,"isTemplateTail"),isTextWhiteSpaceLike:t(()=>Cbe,"isTextWhiteSpaceLike"),isThis:t(()=>j6,"isThis"),isThisContainerOrFunctionBlock:t(()=>Pme,"isThisContainerOrFunctionBlock"),isThisIdentifier:t(()=>Fb,"isThisIdentifier"),isThisInTypeQuery:t(()=>QT,"isThisInTypeQuery"),isThisInitializedDeclaration:t(()=>qB,"isThisInitializedDeclaration"),isThisInitializedObjectBindingExpression:t(()=>Nme,"isThisInitializedObjectBindingExpression"),isThisProperty:t(()=>hF,"isThisProperty"),isThisTypeNode:t(()=>y3,"isThisTypeNode"),isThisTypeParameter:t(()=>o3,"isThisTypeParameter"),isThisTypePredicate:t(()=>kme,"isThisTypePredicate"),isThrowStatement:t(()=>DZ,"isThrowStatement"),isToken:t(()=>gw,"isToken"),isTokenKind:t(()=>ZY,"isTokenKind"),isTraceEnabled:t(()=>qb,"isTraceEnabled"),isTransientSymbol:t(()=>F0,"isTransientSymbol"),isTrivia:t(()=>JA,"isTrivia"),isTryStatement:t(()=>TC,"isTryStatement"),isTupleTypeNode:t(()=>iD,"isTupleTypeNode"),isTypeAlias:t(()=>IF,"isTypeAlias"),isTypeAliasDeclaration:t(()=>fm,"isTypeAliasDeclaration"),isTypeAssertionExpression:t(()=>hz,"isTypeAssertionExpression"),isTypeDeclaration:t(()=>Vw,"isTypeDeclaration"),isTypeElement:t(()=>jT,"isTypeElement"),isTypeKeyword:t(()=>s8,"isTypeKeyword"),isTypeKeywordTokenOrIdentifier:t(()=>gJ,"isTypeKeywordTokenOrIdentifier"),isTypeLiteralNode:t(()=>o_,"isTypeLiteralNode"),isTypeNode:t(()=>Ai,"isTypeNode"),isTypeNodeKind:t(()=>AX,"isTypeNodeKind"),isTypeOfExpression:t(()=>a6,"isTypeOfExpression"),isTypeOnlyExportDeclaration:t(()=>Pde,"isTypeOnlyExportDeclaration"),isTypeOnlyImportDeclaration:t(()=>EA,"isTypeOnlyImportDeclaration"),isTypeOnlyImportOrExportDeclaration:t(()=>V1,"isTypeOnlyImportOrExportDeclaration"),isTypeOperatorNode:t(()=>YS,"isTypeOperatorNode"),isTypeParameterDeclaration:t(()=>cc,"isTypeParameterDeclaration"),isTypePredicateNode:t(()=>nD,"isTypePredicateNode"),isTypeQueryNode:t(()=>ox,"isTypeQueryNode"),isTypeReferenceNode:t(()=>_p,"isTypeReferenceNode"),isTypeReferenceType:t(()=>TB,"isTypeReferenceType"),isTypeUsableAsPropertyName:t(()=>Ld,"isTypeUsableAsPropertyName"),isUMDExportSymbol:t(()=>kU,"isUMDExportSymbol"),isUnaryExpression:t(()=>aK,"isUnaryExpression"),isUnaryExpressionWithWrite:t(()=>Rde,"isUnaryExpressionWithWrite"),isUnicodeIdentifierStart:t(()=>eB,"isUnicodeIdentifierStart"),isUnionTypeNode:t(()=>nv,"isUnionTypeNode"),isUrl:t(()=>Jpe,"isUrl"),isValidBigIntString:t(()=>HU,"isValidBigIntString"),isValidESSymbolDeclaration:t(()=>xme,"isValidESSymbolDeclaration"),isValidTypeOnlyAliasUseSite:t(()=>VS,"isValidTypeOnlyAliasUseSite"),isValueSignatureDeclaration:t(()=>cC,"isValueSignatureDeclaration"),isVarAwaitUsing:t(()=>fF,"isVarAwaitUsing"),isVarConst:t(()=>OA,"isVarConst"),isVarConstLike:t(()=>vme,"isVarConstLike"),isVarUsing:t(()=>_F,"isVarUsing"),isVariableDeclaration:t(()=>Ti,"isVariableDeclaration"),isVariableDeclarationInVariableStatement:t(()=>C4,"isVariableDeclarationInVariableStatement"),isVariableDeclarationInitializedToBareOrAccessedRequire:t(()=>VT,"isVariableDeclarationInitializedToBareOrAccessedRequire"),isVariableDeclarationInitializedToRequire:t(()=>SF,"isVariableDeclarationInitializedToRequire"),isVariableDeclarationList:t(()=>ju,"isVariableDeclarationList"),isVariableLike:t(()=>E4,"isVariableLike"),isVariableStatement:t(()=>rl,"isVariableStatement"),isVoidExpression:t(()=>aD,"isVoidExpression"),isWatchSet:t(()=>wX,"isWatchSet"),isWhileStatement:t(()=>wZ,"isWhileStatement"),isWhiteSpaceLike:t(()=>P0,"isWhiteSpaceLike"),isWhiteSpaceSingleLine:t(()=>jh,"isWhiteSpaceSingleLine"),isWithStatement:t(()=>Hge,"isWithStatement"),isWriteAccess:t(()=>Bw,"isWriteAccess"),isWriteOnlyAccess:t(()=>CU,"isWriteOnlyAccess"),isYieldExpression:t(()=>C5,"isYieldExpression"),jsxModeNeedsExplicitImport:t(()=>wre,"jsxModeNeedsExplicitImport"),keywordPart:t(()=>gp,"keywordPart"),last:t(()=>za,"last"),lastOrUndefined:t(()=>nc,"lastOrUndefined"),length:t(()=>Ue,"length"),libMap:t(()=>rQ,"libMap"),libs:t(()=>Lz,"libs"),lineBreakPart:t(()=>W6,"lineBreakPart"),loadModuleFromGlobalCache:t(()=>xye,"loadModuleFromGlobalCache"),loadWithModeAwareCache:t(()=>pL,"loadWithModeAwareCache"),makeIdentifierFromModuleName:t(()=>ome,"makeIdentifierFromModuleName"),makeImport:t(()=>Zb,"makeImport"),makeStringLiteral:t(()=>a8,"makeStringLiteral"),mangleScopedPackageName:t(()=>k6,"mangleScopedPackageName"),map:t(()=>Dr,"map"),mapAllOrFail:t(()=>WI,"mapAllOrFail"),mapDefined:t(()=>Wi,"mapDefined"),mapDefinedIterator:t(()=>Fh,"mapDefinedIterator"),mapEntries:t(()=>u_e,"mapEntries"),mapIterator:t(()=>AT,"mapIterator"),mapOneOrMany:t(()=>xre,"mapOneOrMany"),mapToDisplayParts:t(()=>p2,"mapToDisplayParts"),matchFiles:t(()=>$X,"matchFiles"),matchPatternOrExact:t(()=>HX,"matchPatternOrExact"),matchedText:t(()=>E_e,"matchedText"),matchesExclude:t(()=>Gz,"matchesExclude"),matchesExcludeWorker:t(()=>Yz,"matchesExcludeWorker"),maxBy:t(()=>XG,"maxBy"),maybeBind:t(()=>ca,"maybeBind"),maybeSetLocalizedDiagnosticMessages:t(()=>Phe,"maybeSetLocalizedDiagnosticMessages"),memoize:t(()=>Uf,"memoize"),memoizeOne:t(()=>Mh,"memoizeOne"),min:t(()=>ZG,"min"),minAndMax:t(()=>Yhe,"minAndMax"),missingFileModifiedTime:t(()=>sp,"missingFileModifiedTime"),modifierToFlag:t(()=>Mw,"modifierToFlag"),modifiersToFlags:t(()=>Gh,"modifiersToFlags"),moduleExportNameIsDefault:t(()=>Vg,"moduleExportNameIsDefault"),moduleExportNameTextEscaped:t(()=>$T,"moduleExportNameTextEscaped"),moduleExportNameTextUnescaped:t(()=>Pb,"moduleExportNameTextUnescaped"),moduleOptionDeclaration:t(()=>O0e,"moduleOptionDeclaration"),moduleResolutionIsEqualTo:t(()=>Zde,"moduleResolutionIsEqualTo"),moduleResolutionNameAndModeGetter:t(()=>C$,"moduleResolutionNameAndModeGetter"),moduleResolutionOptionDeclarations:t(()=>iQ,"moduleResolutionOptionDeclarations"),moduleResolutionSupportsPackageJsonExportsAndImports:t(()=>ZA,"moduleResolutionSupportsPackageJsonExportsAndImports"),moduleResolutionUsesNodeModules:t(()=>yJ,"moduleResolutionUsesNodeModules"),moduleSpecifierToValidIdentifier:t(()=>WL,"moduleSpecifierToValidIdentifier"),moduleSpecifiers:t(()=>Qy,"moduleSpecifiers"),moduleSupportsImportAttributes:t(()=>Rhe,"moduleSupportsImportAttributes"),moduleSymbolToValidIdentifier:t(()=>JL,"moduleSymbolToValidIdentifier"),moveEmitHelpers:t(()=>Cge,"moveEmitHelpers"),moveRangeEnd:t(()=>xU,"moveRangeEnd"),moveRangePastDecorators:t(()=>Vy,"moveRangePastDecorators"),moveRangePastModifiers:t(()=>Yh,"moveRangePastModifiers"),moveRangePos:t(()=>qS,"moveRangePos"),moveSyntheticComments:t(()=>Tge,"moveSyntheticComments"),mutateMap:t(()=>G4,"mutateMap"),mutateMapSkippingNewValues:t(()=>z0,"mutateMapSkippingNewValues"),needsParentheses:t(()=>EJ,"needsParentheses"),needsScopeMarker:t(()=>hB,"needsScopeMarker"),newCaseClauseTracker:t(()=>RJ,"newCaseClauseTracker"),newPrivateEnvironment:t(()=>Vye,"newPrivateEnvironment"),noEmitNotification:t(()=>aL,"noEmitNotification"),noEmitSubstitution:t(()=>q3,"noEmitSubstitution"),noTransformers:t(()=>x1e,"noTransformers"),noTruncationMaximumTruncationLength:t(()=>_K,"noTruncationMaximumTruncationLength"),nodeCanBeDecorated:t(()=>yF,"nodeCanBeDecorated"),nodeCoreModules:t(()=>r6,"nodeCoreModules"),nodeHasName:t(()=>$7,"nodeHasName"),nodeIsDecorated:t(()=>RA,"nodeIsDecorated"),nodeIsMissing:t(()=>zc,"nodeIsMissing"),nodeIsPresent:t(()=>sm,"nodeIsPresent"),nodeIsSynthesized:t(()=>Mo,"nodeIsSynthesized"),nodeModuleNameResolver:t(()=>hye,"nodeModuleNameResolver"),nodeModulesPathPart:t(()=>K0,"nodeModulesPathPart"),nodeNextJsonConfigResolver:t(()=>gye,"nodeNextJsonConfigResolver"),nodeOrChildIsDecorated:t(()=>vF,"nodeOrChildIsDecorated"),nodeOverlapsWithStartEnd:t(()=>aJ,"nodeOverlapsWithStartEnd"),nodePosToString:t(()=>j7e,"nodePosToString"),nodeSeenTracker:t(()=>z6,"nodeSeenTracker"),nodeStartsNewLexicalEnvironment:t(()=>eX,"nodeStartsNewLexicalEnvironment"),noop:t(()=>go,"noop"),noopFileWatcher:t(()=>L6,"noopFileWatcher"),normalizePath:t(()=>ba,"normalizePath"),normalizeSlashes:t(()=>Ru,"normalizeSlashes"),normalizeSpans:t(()=>zY,"normalizeSpans"),not:t(()=>Uj,"not"),notImplemented:t(()=>va,"notImplemented"),notImplementedResolver:t(()=>D1e,"notImplementedResolver"),nullNodeConverters:t(()=>vge,"nullNodeConverters"),nullParenthesizerRules:t(()=>gge,"nullParenthesizerRules"),nullTransformationContext:t(()=>cL,"nullTransformationContext"),objectAllocator:t(()=>Ku,"objectAllocator"),operatorPart:t(()=>c8,"operatorPart"),optionDeclarations:t(()=>Mm,"optionDeclarations"),optionMapToObject:t(()=>$z,"optionMapToObject"),optionsAffectingProgramStructure:t(()=>j0e,"optionsAffectingProgramStructure"),optionsForBuild:t(()=>aQ,"optionsForBuild"),optionsForWatch:t(()=>mD,"optionsForWatch"),optionsHaveChanges:t(()=>xw,"optionsHaveChanges"),or:t(()=>ip,"or"),orderedRemoveItem:t(()=>VI,"orderedRemoveItem"),orderedRemoveItemAt:t(()=>db,"orderedRemoveItemAt"),packageIdToPackageName:t(()=>DB,"packageIdToPackageName"),packageIdToString:t(()=>MS,"packageIdToString"),parameterIsThisKeyword:t(()=>Ob,"parameterIsThisKeyword"),parameterNamePart:t(()=>wbe,"parameterNamePart"),parseBaseNodeFactory:t(()=>w0e,"parseBaseNodeFactory"),parseBigInt:t(()=>Xhe,"parseBigInt"),parseBuildCommand:t(()=>V0e,"parseBuildCommand"),parseCommandLine:t(()=>W0e,"parseCommandLine"),parseCommandLineWorker:t(()=>cQ,"parseCommandLineWorker"),parseConfigFileTextToJson:t(()=>uQ,"parseConfigFileTextToJson"),parseConfigFileWithSystem:t(()=>pve,"parseConfigFileWithSystem"),parseConfigHostFromCompilerHostLike:t(()=>N$,"parseConfigHostFromCompilerHostLike"),parseCustomTypeOption:t(()=>Bz,"parseCustomTypeOption"),parseIsolatedEntityName:t(()=>dD,"parseIsolatedEntityName"),parseIsolatedJSDocComment:t(()=>P0e,"parseIsolatedJSDocComment"),parseJSDocTypeExpressionForTests:t(()=>m5e,"parseJSDocTypeExpressionForTests"),parseJsonConfigFileContent:t(()=>W5e,"parseJsonConfigFileContent"),parseJsonSourceFileConfigFileContent:t(()=>q5,"parseJsonSourceFileConfigFileContent"),parseJsonText:t(()=>B5,"parseJsonText"),parseListTypeOption:t(()=>$0e,"parseListTypeOption"),parseNodeFactory:t(()=>i2,"parseNodeFactory"),parseNodeModuleFromPath:t(()=>Y5,"parseNodeModuleFromPath"),parsePackageName:t(()=>r$,"parsePackageName"),parsePseudoBigInt:t(()=>n3,"parsePseudoBigInt"),parseValidBigInt:t(()=>XX,"parseValidBigInt"),pasteEdits:t(()=>kie,"pasteEdits"),patchWriteFileEnsuringDirectory:t(()=>$pe,"patchWriteFileEnsuringDirectory"),pathContainsNodeModules:t(()=>Hb,"pathContainsNodeModules"),pathIsAbsolute:t(()=>t4,"pathIsAbsolute"),pathIsBareSpecifier:t(()=>NY,"pathIsBareSpecifier"),pathIsRelative:t(()=>Lp,"pathIsRelative"),patternText:t(()=>x_e,"patternText"),performIncrementalCompilation:t(()=>dve,"performIncrementalCompilation"),performance:t(()=>I_e,"performance"),positionBelongsToNode:t(()=>Mte,"positionBelongsToNode"),positionIsASICandidate:t(()=>wJ,"positionIsASICandidate"),positionIsSynthesized:t(()=>sh,"positionIsSynthesized"),positionsAreOnSameLine:t(()=>Od,"positionsAreOnSameLine"),preProcessFile:t(()=>eje,"preProcessFile"),probablyUsesSemicolons:t(()=>zL,"probablyUsesSemicolons"),processCommentPragmas:t(()=>eQ,"processCommentPragmas"),processPragmasIntoFields:t(()=>tQ,"processPragmasIntoFields"),processTaggedTemplateExpression:t(()=>nee,"processTaggedTemplateExpression"),programContainsEsModules:t(()=>xbe,"programContainsEsModules"),programContainsModules:t(()=>Tbe,"programContainsModules"),projectReferenceIsEqualTo:t(()=>pK,"projectReferenceIsEqualTo"),propertyNamePart:t(()=>Dbe,"propertyNamePart"),pseudoBigIntToString:t(()=>ix,"pseudoBigIntToString"),punctuationPart:t(()=>Pf,"punctuationPart"),pushIfUnique:t(()=>Cd,"pushIfUnique"),quote:t(()=>f8,"quote"),quotePreferenceFromString:t(()=>ere,"quotePreferenceFromString"),rangeContainsPosition:t(()=>B6,"rangeContainsPosition"),rangeContainsPositionExclusive:t(()=>DL,"rangeContainsPositionExclusive"),rangeContainsRange:t(()=>D_,"rangeContainsRange"),rangeContainsRangeExclusive:t(()=>lbe,"rangeContainsRangeExclusive"),rangeContainsStartEnd:t(()=>PL,"rangeContainsStartEnd"),rangeEndIsOnSameLineAsRangeStart:t(()=>XF,"rangeEndIsOnSameLineAsRangeStart"),rangeEndPositionsAreOnSameLine:t(()=>yhe,"rangeEndPositionsAreOnSameLine"),rangeEquals:t(()=>WG,"rangeEquals"),rangeIsOnSingleLine:t(()=>_C,"rangeIsOnSingleLine"),rangeOfNode:t(()=>YX,"rangeOfNode"),rangeOfTypeParameters:t(()=>KX,"rangeOfTypeParameters"),rangeOverlapsWithStartEnd:t(()=>r8,"rangeOverlapsWithStartEnd"),rangeStartIsOnSameLineAsRangeEnd:t(()=>vhe,"rangeStartIsOnSameLineAsRangeEnd"),rangeStartPositionsAreOnSameLine:t(()=>EU,"rangeStartPositionsAreOnSameLine"),readBuilderProgram:t(()=>$$,"readBuilderProgram"),readConfigFile:t(()=>J5,"readConfigFile"),readJson:t(()=>GA,"readJson"),readJsonConfigFile:t(()=>H0e,"readJsonConfigFile"),readJsonOrUndefined:t(()=>TX,"readJsonOrUndefined"),reduceEachLeadingCommentRange:t(()=>Xpe,"reduceEachLeadingCommentRange"),reduceEachTrailingCommentRange:t(()=>Zpe,"reduceEachTrailingCommentRange"),reduceLeft:t(()=>r_,"reduceLeft"),reduceLeftIterator:t(()=>wn,"reduceLeftIterator"),reducePathComponents:t(()=>pw,"reducePathComponents"),refactor:t(()=>PD,"refactor"),regExpEscape:t(()=>pFe,"regExpEscape"),regularExpressionFlagToCharacterCode:t(()=>_7e,"regularExpressionFlagToCharacterCode"),relativeComplement:t(()=>f_e,"relativeComplement"),removeAllComments:t(()=>g5,"removeAllComments"),removeEmitHelper:t(()=>DFe,"removeEmitHelper"),removeExtension:t(()=>l5,"removeExtension"),removeFileExtension:t(()=>Vf,"removeFileExtension"),removeIgnoredPath:t(()=>L$,"removeIgnoredPath"),removeMinAndVersionNumbers:t(()=>tY,"removeMinAndVersionNumbers"),removePrefix:t(()=>HI,"removePrefix"),removeSuffix:t(()=>dA,"removeSuffix"),removeTrailingDirectorySeparator:t(()=>q1,"removeTrailingDirectorySeparator"),repeatString:t(()=>OL,"repeatString"),replaceElement:t(()=>HG,"replaceElement"),replaceFirstStar:t(()=>dC,"replaceFirstStar"),resolutionExtensionIsTSOrJson:t(()=>Q4,"resolutionExtensionIsTSOrJson"),resolveConfigFileProjectName:t(()=>ote,"resolveConfigFileProjectName"),resolveJSModule:t(()=>pye,"resolveJSModule"),resolveLibrary:t(()=>t$,"resolveLibrary"),resolveModuleName:t(()=>AC,"resolveModuleName"),resolveModuleNameFromCache:t(()=>bLe,"resolveModuleNameFromCache"),resolvePackageNameToPackageJson:t(()=>TQ,"resolvePackageNameToPackageJson"),resolvePath:t(()=>hb,"resolvePath"),resolveProjectReferencePath:t(()=>SD,"resolveProjectReferencePath"),resolveTripleslashReference:t(()=>bee,"resolveTripleslashReference"),resolveTypeReferenceDirective:t(()=>lye,"resolveTypeReferenceDirective"),resolvingEmptyArray:t(()=>fK,"resolvingEmptyArray"),returnFalse:t(()=>Ry,"returnFalse"),returnNoopFileWatcher:t(()=>Z3,"returnNoopFileWatcher"),returnTrue:t(()=>IT,"returnTrue"),returnUndefined:t(()=>OT,"returnUndefined"),returnsPromise:t(()=>zre,"returnsPromise"),rewriteModuleSpecifier:t(()=>yD,"rewriteModuleSpecifier"),sameFlatMap:t(()=>Fy,"sameFlatMap"),sameMap:t(()=>el,"sameMap"),sameMapping:t(()=>uRe,"sameMapping"),scanTokenAtPosition:t(()=>yme,"scanTokenAtPosition"),scanner:t(()=>Bu,"scanner"),semanticDiagnosticsOptionDeclarations:t(()=>L0e,"semanticDiagnosticsOptionDeclarations"),serializeCompilerOptions:t(()=>Jz,"serializeCompilerOptions"),server:t(()=>rYe,"server"),servicesVersion:t(()=>JBe,"servicesVersion"),setCommentRange:t(()=>Ml,"setCommentRange"),setConfigFileInOptions:t(()=>hQ,"setConfigFileInOptions"),setConstantValue:t(()=>Ege,"setConstantValue"),setEmitFlags:t(()=>Dn,"setEmitFlags"),setGetSourceFileAsHashVersioned:t(()=>z$,"setGetSourceFileAsHashVersioned"),setIdentifierAutoGenerate:t(()=>b5,"setIdentifierAutoGenerate"),setIdentifierGeneratedImportReference:t(()=>Dge,"setIdentifierGeneratedImportReference"),setIdentifierTypeArguments:t(()=>rv,"setIdentifierTypeArguments"),setInternalEmitFlags:t(()=>y5,"setInternalEmitFlags"),setLocalizedDiagnosticMessages:t(()=>Dhe,"setLocalizedDiagnosticMessages"),setNodeChildren:t(()=>s0e,"setNodeChildren"),setNodeFlags:t(()=>ege,"setNodeFlags"),setObjectAllocator:t(()=>whe,"setObjectAllocator"),setOriginalNode:t(()=>Vn,"setOriginalNode"),setParent:t(()=>mo,"setParent"),setParentRecursive:t(()=>HS,"setParentRecursive"),setPrivateIdentifier:t(()=>IC,"setPrivateIdentifier"),setSnippetElement:t(()=>gZ,"setSnippetElement"),setSourceMapRange:t(()=>Wa,"setSourceMapRange"),setStackTraceLimit:t(()=>YOe,"setStackTraceLimit"),setStartsOnNewLine:t(()=>az,"setStartsOnNewLine"),setSyntheticLeadingComments:t(()=>GS,"setSyntheticLeadingComments"),setSyntheticTrailingComments:t(()=>Kw,"setSyntheticTrailingComments"),setSys:t(()=>t7e,"setSys"),setSysLog:t(()=>Bpe,"setSysLog"),setTextRange:t(()=>Et,"setTextRange"),setTextRangeEnd:t(()=>t6,"setTextRangeEnd"),setTextRangePos:t(()=>i3,"setTextRangePos"),setTextRangePosEnd:t(()=>ah,"setTextRangePosEnd"),setTextRangePosWidth:t(()=>ZX,"setTextRangePosWidth"),setTokenSourceMapRange:t(()=>Sge,"setTokenSourceMapRange"),setTypeNode:t(()=>kge,"setTypeNode"),setUILocale:t(()=>b_e,"setUILocale"),setValueDeclaration:t(()=>PF,"setValueDeclaration"),shouldAllowImportingTsExtension:t(()=>w6,"shouldAllowImportingTsExtension"),shouldPreserveConstEnums:t(()=>Rb,"shouldPreserveConstEnums"),shouldRewriteModuleSpecifier:t(()=>NF,"shouldRewriteModuleSpecifier"),shouldUseUriStyleNodeCoreModules:t(()=>FJ,"shouldUseUriStyleNodeCoreModules"),showModuleSpecifier:t(()=>Ehe,"showModuleSpecifier"),signatureHasRestParameter:t(()=>Df,"signatureHasRestParameter"),signatureToDisplayParts:t(()=>fre,"signatureToDisplayParts"),single:t(()=>VG,"single"),singleElementArray:t(()=>uw,"singleElementArray"),singleIterator:t(()=>l_e,"singleIterator"),singleOrMany:t(()=>zg,"singleOrMany"),singleOrUndefined:t(()=>Ug,"singleOrUndefined"),skipAlias:t(()=>Yu,"skipAlias"),skipConstraint:t(()=>Xte,"skipConstraint"),skipOuterExpressions:t(()=>il,"skipOuterExpressions"),skipParentheses:t(()=>po,"skipParentheses"),skipPartiallyEmittedExpressions:t(()=>Am,"skipPartiallyEmittedExpressions"),skipTrivia:t(()=>Ma,"skipTrivia"),skipTypeChecking:t(()=>e6,"skipTypeChecking"),skipTypeCheckingIgnoringNoCheck:t(()=>Khe,"skipTypeCheckingIgnoringNoCheck"),skipTypeParentheses:t(()=>I4,"skipTypeParentheses"),skipWhile:t(()=>k_e,"skipWhile"),sliceAfter:t(()=>GX,"sliceAfter"),some:t(()=>xt,"some"),sortAndDeduplicate:t(()=>qI,"sortAndDeduplicate"),sortAndDeduplicateDiagnostics:t(()=>SA,"sortAndDeduplicateDiagnostics"),sourceFileAffectingCompilerOptions:t(()=>sQ,"sourceFileAffectingCompilerOptions"),sourceFileMayBeEmitted:t(()=>XT,"sourceFileMayBeEmitted"),sourceMapCommentRegExp:t(()=>qQ,"sourceMapCommentRegExp"),sourceMapCommentRegExpDontCareLineStart:t(()=>jye,"sourceMapCommentRegExpDontCareLineStart"),spacePart:t(()=>Zc,"spacePart"),spanMap:t(()=>UG,"spanMap"),startEndContainsRange:t(()=>CX,"startEndContainsRange"),startEndOverlapsWithStartEnd:t(()=>oJ,"startEndOverlapsWithStartEnd"),startOnNewLine:t(()=>wf,"startOnNewLine"),startTracing:t(()=>R_e,"startTracing"),startsWith:t(()=>fs,"startsWith"),startsWithDirectory:t(()=>FY,"startsWithDirectory"),startsWithUnderscore:t(()=>kre,"startsWithUnderscore"),startsWithUseStrict:t(()=>_0e,"startsWithUseStrict"),stringContainsAt:t(()=>Vbe,"stringContainsAt"),stringToToken:t(()=>VE,"stringToToken"),stripQuotes:t(()=>cm,"stripQuotes"),supportedDeclarationExtensions:t(()=>JU,"supportedDeclarationExtensions"),supportedJSExtensionsFlat:t(()=>QA,"supportedJSExtensionsFlat"),supportedLocaleDirectories:t(()=>pde,"supportedLocaleDirectories"),supportedTSExtensionsFlat:t(()=>JX,"supportedTSExtensionsFlat"),supportedTSImplementationExtensions:t(()=>a5,"supportedTSImplementationExtensions"),suppressLeadingAndTrailingTrivia:t(()=>yp,"suppressLeadingAndTrailingTrivia"),suppressLeadingTrivia:t(()=>mre,"suppressLeadingTrivia"),suppressTrailingTrivia:t(()=>Rbe,"suppressTrailingTrivia"),symbolEscapedNameNoDefault:t(()=>vJ,"symbolEscapedNameNoDefault"),symbolName:t(()=>tl,"symbolName"),symbolNameNoDefault:t(()=>rre,"symbolNameNoDefault"),symbolToDisplayParts:t(()=>l8,"symbolToDisplayParts"),sys:t(()=>ru,"sys"),sysLog:t(()=>A7,"sysLog"),tagNamesAreEquivalent:t(()=>a2,"tagNamesAreEquivalent"),takeWhile:t(()=>iY,"takeWhile"),targetOptionDeclaration:t(()=>nQ,"targetOptionDeclaration"),targetToLibMap:t(()=>Qpe,"targetToLibMap"),testFormatSettings:t(()=>SMe,"testFormatSettings"),textChangeRangeIsUnchanged:t(()=>cde,"textChangeRangeIsUnchanged"),textChangeRangeNewSpan:t(()=>l4,"textChangeRangeNewSpan"),textChanges:t(()=>Cn,"textChanges"),textOrKeywordPart:t(()=>ure,"textOrKeywordPart"),textPart:t(()=>ud,"textPart"),textRangeContainsPositionInclusive:t(()=>j7,"textRangeContainsPositionInclusive"),textRangeContainsTextSpan:t(()=>rde,"textRangeContainsTextSpan"),textRangeIntersectsWithTextSpan:t(()=>ade,"textRangeIntersectsWithTextSpan"),textSpanContainsPosition:t(()=>BY,"textSpanContainsPosition"),textSpanContainsTextRange:t(()=>UY,"textSpanContainsTextRange"),textSpanContainsTextSpan:t(()=>tde,"textSpanContainsTextSpan"),textSpanEnd:t(()=>Fc,"textSpanEnd"),textSpanIntersection:t(()=>ode,"textSpanIntersection"),textSpanIntersectsWith:t(()=>B7,"textSpanIntersectsWith"),textSpanIntersectsWithPosition:t(()=>sde,"textSpanIntersectsWithPosition"),textSpanIntersectsWithTextSpan:t(()=>ide,"textSpanIntersectsWithTextSpan"),textSpanIsEmpty:t(()=>ede,"textSpanIsEmpty"),textSpanOverlap:t(()=>nde,"textSpanOverlap"),textSpanOverlapsWith:t(()=>b7e,"textSpanOverlapsWith"),textSpansEqual:t(()=>J6,"textSpansEqual"),textToKeywordObj:t(()=>Qj,"textToKeywordObj"),timestamp:t(()=>jo,"timestamp"),toArray:t(()=>cw,"toArray"),toBuilderFileEmit:t(()=>rve,"toBuilderFileEmit"),toBuilderStateFileInfoForMultiEmit:t(()=>tve,"toBuilderStateFileInfoForMultiEmit"),toEditorSettings:t(()=>ZL,"toEditorSettings"),toFileNameLowerCase:t(()=>fb,"toFileNameLowerCase"),toPath:t(()=>Bo,"toPath"),toProgramEmitPending:t(()=>nve,"toProgramEmitPending"),toSorted:t(()=>np,"toSorted"),tokenIsIdentifierOrKeyword:t(()=>x_,"tokenIsIdentifierOrKeyword"),tokenIsIdentifierOrKeywordOrGreaterThan:t(()=>qpe,"tokenIsIdentifierOrKeywordOrGreaterThan"),tokenToString:t(()=>Ta,"tokenToString"),trace:t(()=>ks,"trace"),tracing:t(()=>En,"tracing"),tracingEnabled:t(()=>P7,"tracingEnabled"),transferSourceFileChildren:t(()=>a0e,"transferSourceFileChildren"),transform:t(()=>QBe,"transform"),transformClassFields:t(()=>r1e,"transformClassFields"),transformDeclarations:t(()=>oee,"transformDeclarations"),transformECMAScriptModule:t(()=>aee,"transformECMAScriptModule"),transformES2015:t(()=>h1e,"transformES2015"),transformES2016:t(()=>m1e,"transformES2016"),transformES2017:t(()=>a1e,"transformES2017"),transformES2018:t(()=>o1e,"transformES2018"),transformES2019:t(()=>c1e,"transformES2019"),transformES2020:t(()=>l1e,"transformES2020"),transformES2021:t(()=>u1e,"transformES2021"),transformESDecorators:t(()=>s1e,"transformESDecorators"),transformESNext:t(()=>f1e,"transformESNext"),transformGenerators:t(()=>g1e,"transformGenerators"),transformImpliedNodeFormatDependentModule:t(()=>v1e,"transformImpliedNodeFormatDependentModule"),transformJsx:t(()=>d1e,"transformJsx"),transformLegacyDecorators:t(()=>i1e,"transformLegacyDecorators"),transformModule:t(()=>see,"transformModule"),transformNamedEvaluation:t(()=>dp,"transformNamedEvaluation"),transformNodes:t(()=>oL,"transformNodes"),transformSystemModule:t(()=>y1e,"transformSystemModule"),transformTypeScript:t(()=>t1e,"transformTypeScript"),transpile:t(()=>lje,"transpile"),transpileDeclaration:t(()=>oje,"transpileDeclaration"),transpileModule:t(()=>mSe,"transpileModule"),transpileOptionValueCompilerOptions:t(()=>B0e,"transpileOptionValueCompilerOptions"),tryAddToSet:t(()=>Lh,"tryAddToSet"),tryAndIgnoreErrors:t(()=>AJ,"tryAndIgnoreErrors"),tryCast:t(()=>si,"tryCast"),tryDirectoryExists:t(()=>PJ,"tryDirectoryExists"),tryExtractTSExtension:t(()=>SU,"tryExtractTSExtension"),tryFileExists:t(()=>p8,"tryFileExists"),tryGetClassExtendingExpressionWithTypeArguments:t(()=>yX,"tryGetClassExtendingExpressionWithTypeArguments"),tryGetClassImplementingOrExtendingExpressionWithTypeArguments:t(()=>vX,"tryGetClassImplementingOrExtendingExpressionWithTypeArguments"),tryGetDirectories:t(()=>DJ,"tryGetDirectories"),tryGetExtensionFromPath:t(()=>q0,"tryGetExtensionFromPath"),tryGetImportFromModuleSpecifier:t(()=>AF,"tryGetImportFromModuleSpecifier"),tryGetJSDocSatisfiesTypeNode:t(()=>ZU,"tryGetJSDocSatisfiesTypeNode"),tryGetModuleNameFromFile:t(()=>O5,"tryGetModuleNameFromFile"),tryGetModuleSpecifierFromDeclaration:t(()=>Pw,"tryGetModuleSpecifierFromDeclaration"),tryGetNativePerformanceHooks:t(()=>N_e,"tryGetNativePerformanceHooks"),tryGetPropertyAccessOrIdentifierToString:t(()=>KF,"tryGetPropertyAccessOrIdentifierToString"),tryGetPropertyNameOfBindingOrAssignmentElement:t(()=>Az,"tryGetPropertyNameOfBindingOrAssignmentElement"),tryGetSourceMappingURL:t(()=>Bye,"tryGetSourceMappingURL"),tryGetTextOfPropertyName:t(()=>x4,"tryGetTextOfPropertyName"),tryParseJson:t(()=>TU,"tryParseJson"),tryParsePattern:t(()=>qw,"tryParsePattern"),tryParsePatterns:t(()=>u5,"tryParsePatterns"),tryParseRawSourceMap:t(()=>Uye,"tryParseRawSourceMap"),tryReadDirectory:t(()=>vre,"tryReadDirectory"),tryReadFile:t(()=>A3,"tryReadFile"),tryRemoveDirectoryPrefix:t(()=>BX,"tryRemoveDirectoryPrefix"),tryRemoveExtension:t(()=>Ghe,"tryRemoveExtension"),tryRemovePrefix:t(()=>nY,"tryRemovePrefix"),tryRemoveSuffix:t(()=>T_e,"tryRemoveSuffix"),tscBuildOption:t(()=>DC,"tscBuildOption"),typeAcquisitionDeclarations:t(()=>Mz,"typeAcquisitionDeclarations"),typeAliasNamePart:t(()=>Pbe,"typeAliasNamePart"),typeDirectiveIsEqualTo:t(()=>Qde,"typeDirectiveIsEqualTo"),typeKeywords:t(()=>Kte,"typeKeywords"),typeParameterNamePart:t(()=>Abe,"typeParameterNamePart"),typeToDisplayParts:t(()=>ML,"typeToDisplayParts"),unchangedPollThresholds:t(()=>Vj,"unchangedPollThresholds"),unchangedTextChangeRange:t(()=>nB,"unchangedTextChangeRange"),unescapeLeadingUnderscores:t(()=>Zi,"unescapeLeadingUnderscores"),unmangleScopedPackageName:t(()=>X5,"unmangleScopedPackageName"),unorderedRemoveItem:t(()=>lw,"unorderedRemoveItem"),unprefixedNodeCoreModules:t(()=>_ge,"unprefixedNodeCoreModules"),unreachableCodeIsError:t(()=>Fhe,"unreachableCodeIsError"),unsetNodeChildren:t(()=>jZ,"unsetNodeChildren"),unusedLabelIsError:t(()=>Lhe,"unusedLabelIsError"),unwrapInnermostStatementOfLabel:t(()=>FK,"unwrapInnermostStatementOfLabel"),unwrapParenthesizedExpression:t(()=>uge,"unwrapParenthesizedExpression"),updateErrorForNoInputFiles:t(()=>Hz,"updateErrorForNoInputFiles"),updateLanguageServiceSourceFile:t(()=>dne,"updateLanguageServiceSourceFile"),updateMissingFilePathsWatch:t(()=>gee,"updateMissingFilePathsWatch"),updateResolutionField:t(()=>T6,"updateResolutionField"),updateSharedExtendedConfigFileWatcher:t(()=>S$,"updateSharedExtendedConfigFileWatcher"),updateSourceFile:t(()=>ZZ,"updateSourceFile"),updateWatchingWildcardDirectories:t(()=>uL,"updateWatchingWildcardDirectories"),usingSingleLineStringWriter:t(()=>PA,"usingSingleLineStringWriter"),utf16EncodeAsString:t(()=>c4,"utf16EncodeAsString"),validateLocaleAndSetLanguage:t(()=>JY,"validateLocaleAndSetLanguage"),version:t(()=>be,"version"),versionMajorMinor:t(()=>G,"versionMajorMinor"),visitArray:t(()=>j3,"visitArray"),visitCommaListElements:t(()=>eL,"visitCommaListElements"),visitEachChild:t(()=>Ur,"visitEachChild"),visitFunctionBody:t(()=>ld,"visitFunctionBody"),visitIterationBody:t(()=>l_,"visitIterationBody"),visitLexicalEnvironment:t(()=>WQ,"visitLexicalEnvironment"),visitNode:t(()=>ut,"visitNode"),visitNodes:t(()=>rn,"visitNodes"),visitParameterList:t(()=>Wc,"visitParameterList"),walkUpBindingElementsAndPatterns:t(()=>hw,"walkUpBindingElementsAndPatterns"),walkUpOuterExpressions:t(()=>p0e,"walkUpOuterExpressions"),walkUpParenthesizedExpressions:t(()=>Im,"walkUpParenthesizedExpressions"),walkUpParenthesizedTypes:t(()=>LF,"walkUpParenthesizedTypes"),walkUpParenthesizedTypesAndGetParentAndChild:t(()=>Wme,"walkUpParenthesizedTypesAndGetParentAndChild"),whitespaceOrMapCommentRegExp:t(()=>VQ,"whitespaceOrMapCommentRegExp"),writeCommentRange:t(()=>HA,"writeCommentRange"),writeFile:t(()=>mU,"writeFile"),writeFileEnsuringDirectories:t(()=>fX,"writeFileEnsuringDirectories"),zipWith:t(()=>sn,"zipWith")}),s.exports=F(W);var G="5.8",be="5.8.2",de=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(de||{}),se=[],Xe=new Map;function Ue(e){return e!==void 0?e.length:0}t(Ue,"length");function je(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a)return a}}t(je,"forEach");function Vt(e,r){if(e!==void 0)for(let i=e.length-1;i>=0;i--){let a=r(e[i],i);if(a)return a}}t(Vt,"forEachRight");function Ut(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=r(e[i],i);if(a!==void 0)return a}}t(Ut,"firstDefined");function Ir(e,r){for(let i of e){let a=r(i);if(a!==void 0)return a}}t(Ir,"firstDefinedIterator");function wn(e,r,i){let a=i;if(e){let c=0;for(let u of e)a=r(a,u,c),c++}return a}t(wn,"reduceLeftIterator");function sn(e,r,i){let a=[];L.assertEqual(e.length,r.length);for(let c=0;c<e.length;c++)a.push(i(e[c],r[c],c));return a}t(sn,"zipWith");function Jn(e,r){if(e.length<=1)return e;let i=[];for(let a=0,c=e.length;a<c;a++)a!==0&&i.push(r),i.push(e[a]);return i}t(Jn,"intersperse");function kr(e,r){if(e!==void 0){for(let i=0;i<e.length;i++)if(!r(e[i],i))return!1}return!0}t(kr,"every");function yr(e,r,i){if(e!==void 0)for(let a=i??0;a<e.length;a++){let c=e[a];if(r(c,a))return c}}t(yr,"find");function xs(e,r,i){if(e!==void 0)for(let a=i??e.length-1;a>=0;a--){let c=e[a];if(r(c,a))return c}}t(xs,"findLast");function bi(e,r,i){if(e===void 0)return-1;for(let a=i??0;a<e.length;a++)if(r(e[a],a))return a;return-1}t(bi,"findIndex");function fc(e,r,i){if(e===void 0)return-1;for(let a=i??e.length-1;a>=0;a--)if(r(e[a],a))return a;return-1}t(fc,"findLastIndex");function Ci(e,r,i=_b){if(e!==void 0){for(let a=0;a<e.length;a++)if(i(e[a],r))return!0}return!1}t(Ci,"contains");function bf(e,r,i){for(let a=i??0;a<e.length;a++)if(Ci(r,e.charCodeAt(a)))return a;return-1}t(bf,"indexOfAnyCharCode");function Bf(e,r){let i=0;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a];r(c,a)&&i++}return i}t(Bf,"countWhere");function In(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;if(a<i){let c=e.slice(0,a);for(a++;a<i;){let u=e[a];r(u)&&c.push(u),a++}return c}}return e}t(In,"filter");function PT(e,r){let i=0;for(let a=0;a<e.length;a++)r(e[a],a,e)&&(e[i]=e[a],i++);e.length=i}t(PT,"filterMutate");function bu(e){e.length=0}t(bu,"clear");function Dr(e,r){let i;if(e!==void 0){i=[];for(let a=0;a<e.length;a++)i.push(r(e[a],a))}return i}t(Dr,"map");function*AT(e,r){for(let i of e)yield r(i)}t(AT,"mapIterator");function el(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i],c=r(a,i);if(a!==c){let u=e.slice(0,i);for(u.push(c),i++;i<e.length;i++)u.push(r(e[i],i));return u}}return e}t(el,"sameMap");function Sf(e){let r=[];for(let i=0;i<e.length;i++){let a=e[i];a&&(Bs(a)?Zn(r,a):r.push(a))}return r}t(Sf,"flatten");function ka(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?i=Zn(i,c):i=Kr(i,c))}return i??se}t(ka,"flatMap");function tm(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c&&(Bs(c)?Zn(i,c):i.push(c))}return i}t(tm,"flatMapToMutable");function*Oy(e,r){for(let i of e){let a=r(i);a&&(yield*a)}}t(Oy,"flatMapIterator");function Fy(e,r){let i;if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=r(c,a);(i||c!==u||Bs(u))&&(i||(i=e.slice(0,a)),Bs(u)?Zn(i,u):i.push(u))}return i??e}t(Fy,"sameFlatMap");function WI(e,r){let i=[];for(let a=0;a<e.length;a++){let c=r(e[a],a);if(c===void 0)return;i.push(c)}return i}t(WI,"mapAllOrFail");function Wi(e,r){let i=[];if(e!==void 0)for(let a=0;a<e.length;a++){let c=r(e[a],a);c!==void 0&&i.push(c)}return i}t(Wi,"mapDefined");function*Fh(e,r){for(let i of e){let a=r(i);a!==void 0&&(yield a)}}t(Fh,"mapDefinedIterator");function zE(e,r,i){if(e.has(r))return e.get(r);let a=i();return e.set(r,a),a}t(zE,"getOrUpdate");function Lh(e,r){return e.has(r)?!1:(e.add(r),!0)}t(Lh,"tryAddToSet");function*l_e(e){yield e}t(l_e,"singleIterator");function UG(e,r,i){let a;if(e!==void 0){a=[];let c=e.length,u,_,h=0,m=0;for(;h<c;){for(;m<c;){let T=e[m];if(_=r(T,m),m===0)u=_;else if(_!==u)break;m++}if(h<m){let T=i(e.slice(h,m),u,h,m);T&&a.push(T),h=m}u=_,m++}}return a}t(UG,"spanMap");function u_e(e,r){if(e===void 0)return;let i=new Map;return e.forEach((a,c)=>{let[u,_]=r(c,a);i.set(u,_)}),i}t(u_e,"mapEntries");function xt(e,r){if(e!==void 0)if(r!==void 0){for(let i=0;i<e.length;i++)if(r(e[i]))return!0}else return e.length>0;return!1}t(xt,"some");function zG(e,r,i){let a;for(let c=0;c<e.length;c++)r(e[c])?a=a===void 0?c:a:a!==void 0&&(i(a,c),a=void 0);a!==void 0&&i(a,e.length)}t(zG,"getRangesWhere");function us(e,r){return r===void 0||r.length===0?e:e===void 0||e.length===0?r:[...e,...r]}t(us,"concatenate");function FSt(e,r){return r}t(FSt,"selectIndex");function Fj(e){return e.map(FSt)}t(Fj,"indicesOf");function LSt(e,r,i){let a=Fj(e);jSt(e,a,i);let c=e[a[0]],u=[a[0]];for(let _=1;_<a.length;_++){let h=a[_],m=e[h];r(c,m)||(u.push(h),c=m)}return u.sort(),u.map(_=>e[_])}t(LSt,"deduplicateRelational");function RSt(e,r){let i=[];for(let a=0;a<e.length;a++)Cd(i,e[a],r);return i}t(RSt,"deduplicateEquality");function NT(e,r,i){return e.length===0?[]:e.length===1?e.slice():i?LSt(e,r,i):RSt(e,r)}t(NT,"deduplicate");function MSt(e,r){if(e.length===0)return se;let i=e[0],a=[i];for(let c=1;c<e.length;c++){let u=e[c];switch(r(u,i)){case!0:case 0:continue;case-1:return L.fail("Array is unsorted.")}a.push(i=u)}return a}t(MSt,"deduplicateSorted");function $G(){return[]}t($G,"createSortedArray");function ob(e,r,i,a,c){if(e.length===0)return e.push(r),!0;let u=lb(e,r,qo,i);if(u<0){if(a&&!c){let _=~u;if(_>0&&a(r,e[_-1]))return!1;if(_<e.length&&a(r,e[_]))return e.splice(_,1,r),!0}return e.splice(~u,0,r),!0}return c?(e.splice(u,0,r),!0):!1}t(ob,"insertSorted");function qI(e,r,i){return MSt(np(e,r),i??r??lf)}t(qI,"sortAndDeduplicate");function ed(e,r,i=_b){if(e===void 0||r===void 0)return e===r;if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++)if(!i(e[a],r[a],a))return!1;return!0}t(ed,"arrayIsEqualTo");function T7(e){let r;if(e!==void 0)for(let i=0;i<e.length;i++){let a=e[i];(r??!a)&&(r??(r=e.slice(0,i)),a&&r.push(a))}return r??e}t(T7,"compact");function f_e(e,r,i){if(!r||!e||r.length===0||e.length===0)return r;let a=[];e:for(let c=0,u=0;u<r.length;u++){u>0&&L.assertGreaterThanOrEqual(i(r[u],r[u-1]),0);t:for(let _=c;c<e.length;c++)switch(c>_&&L.assertGreaterThanOrEqual(i(e[c],e[c-1]),0),i(r[u],e[c])){case-1:a.push(r[u]);continue e;case 0:continue e;case 1:continue t}}return a}t(f_e,"relativeComplement");function Kr(e,r){return r===void 0?e:e===void 0?[r]:(e.push(r),e)}t(Kr,"append");function sw(e,r){return e===void 0?r:r===void 0?e:Bs(e)?Bs(r)?us(e,r):Kr(e,r):Bs(r)?Kr(r,e):[e,r]}t(sw,"combine");function __e(e,r){return r<0?e.length+r:r}t(__e,"toOffset");function Zn(e,r,i,a){if(r===void 0||r.length===0)return e;if(e===void 0)return r.slice(i,a);i=i===void 0?0:__e(r,i),a=a===void 0?r.length:__e(r,a);for(let c=i;c<a&&c<r.length;c++)r[c]!==void 0&&e.push(r[c]);return e}t(Zn,"addRange");function Cd(e,r,i){return Ci(e,r,i)?!1:(e.push(r),!0)}t(Cd,"pushIfUnique");function Ly(e,r,i){return e!==void 0?(Cd(e,r,i),e):[r]}t(Ly,"appendIfUnique");function jSt(e,r,i){r.sort((a,c)=>i(e[a],e[c])||Vo(a,c))}t(jSt,"stableSortIndices");function np(e,r){return e.length===0?se:e.slice().sort(r)}t(np,"toSorted");function*JG(e){for(let r=e.length-1;r>=0;r--)yield e[r]}t(JG,"arrayReverseIterator");function WG(e,r,i,a){for(;i<a;){if(e[i]!==r[i])return!1;i++}return!0}t(WG,"rangeEquals");var cb=Array.prototype.at?(e,r)=>e?.at(r):(e,r)=>{if(e!==void 0&&(r=__e(e,r),r<e.length))return e[r]};function Fl(e){return e===void 0||e.length===0?void 0:e[0]}t(Fl,"firstOrUndefined");function x7(e){if(e!==void 0)for(let r of e)return r}t(x7,"firstOrUndefinedIterator");function Ga(e){return L.assert(e.length!==0),e[0]}t(Ga,"first");function qG(e){for(let r of e)return r;L.fail("iterator is empty")}t(qG,"firstIterator");function nc(e){return e===void 0||e.length===0?void 0:e[e.length-1]}t(nc,"lastOrUndefined");function za(e){return L.assert(e.length!==0),e[e.length-1]}t(za,"last");function Ug(e){return e!==void 0&&e.length===1?e[0]:void 0}t(Ug,"singleOrUndefined");function VG(e){return L.checkDefined(Ug(e))}t(VG,"single");function zg(e){return e!==void 0&&e.length===1?e[0]:e}t(zg,"singleOrMany");function HG(e,r,i){let a=e.slice(0);return a[r]=i,a}t(HG,"replaceElement");function lb(e,r,i,a,c){return aw(e,i(r),i,a,c)}t(lb,"binarySearch");function aw(e,r,i,a,c){if(!xt(e))return-1;let u=c??0,_=e.length-1;for(;u<=_;){let h=u+(_-u>>1),m=i(e[h],h);switch(a(m,r)){case-1:u=h+1;break;case 0:return h;case 1:_=h-1;break}}return~u}t(aw,"binarySearchKey");function r_(e,r,i,a,c){if(e&&e.length>0){let u=e.length;if(u>0){let _=a===void 0||a<0?0:a,h=c===void 0||_+c>u-1?u-1:_+c,m;for(arguments.length<=2?(m=e[_],_++):m=i;_<=h;)m=r(m,e[_],_),_++;return m}}return i}t(r_,"reduceLeft");var NS=Object.prototype.hasOwnProperty;function Ro(e,r){return NS.call(e,r)}t(Ro,"hasProperty");function Lj(e,r){return NS.call(e,r)?e[r]:void 0}t(Lj,"getProperty");function Rh(e){let r=[];for(let i in e)NS.call(e,i)&&r.push(i);return r}t(Rh,"getOwnKeys");function OOe(e){let r=[];do{let i=Object.getOwnPropertyNames(e);for(let a of i)Cd(r,a)}while(e=Object.getPrototypeOf(e));return r}t(OOe,"getAllKeys");function ow(e){let r=[];for(let i in e)NS.call(e,i)&&r.push(e[i]);return r}t(ow,"getOwnValues");function p_e(e,r){let i=new Array(e);for(let a=0;a<e;a++)i[a]=r(a);return i}t(p_e,"arrayOf");function Ps(e,r){let i=[];for(let a of e)i.push(r?r(a):a);return i}t(Ps,"arrayFrom");function $E(e,...r){for(let i of r)if(i!==void 0)for(let a in i)Ro(i,a)&&(e[a]=i[a]);return e}t($E,"assign");function d_e(e,r,i=_b){if(e===r)return!0;if(!e||!r)return!1;for(let a in e)if(NS.call(e,a)&&(!NS.call(r,a)||!i(e[a],r[a])))return!1;for(let a in r)if(NS.call(r,a)&&!NS.call(e,a))return!1;return!0}t(d_e,"equalOwnProperties");function fA(e,r,i=qo){let a=new Map;for(let c=0;c<e.length;c++){let u=e[c],_=r(u);_!==void 0&&a.set(_,i(u))}return a}t(fA,"arrayToMap");function m_e(e,r,i=qo){let a=[];for(let c=0;c<e.length;c++){let u=e[c];a[r(u)]=i(u)}return a}t(m_e,"arrayToNumericMap");function E7(e,r,i=qo){let a=rm();for(let c=0;c<e.length;c++){let u=e[c];a.add(r(u),i(u))}return a}t(E7,"arrayToMultiMap");function _A(e,r,i=qo){return Ps(E7(e,r).values(),i)}t(_A,"group");function GG(e,r){let i={};if(e!==void 0)for(let a=0;a<e.length;a++){let c=e[a],u=`${r(c)}`;(i[u]??(i[u]=[])).push(c)}return i}t(GG,"groupBy");function h_e(e){let r={};for(let i in e)NS.call(e,i)&&(r[i]=e[i]);return r}t(h_e,"clone");function Rj(e,r){let i={};for(let a in r)NS.call(r,a)&&(i[a]=r[a]);for(let a in e)NS.call(e,a)&&(i[a]=e[a]);return i}t(Rj,"extend");function YG(e,r){for(let i in r)NS.call(r,i)&&(e[i]=r[i])}t(YG,"copyProperties");function ca(e,r){return r?.bind(e)}t(ca,"maybeBind");function rm(){let e=new Map;return e.add=BSt,e.remove=USt,e}t(rm,"createMultiMap");function BSt(e,r){let i=this.get(e);return i!==void 0?i.push(r):this.set(e,i=[r]),i}t(BSt,"multiMapAdd");function USt(e,r){let i=this.get(e);i!==void 0&&(lw(i,r),i.length||this.delete(e))}t(USt,"multiMapRemove");function C7(e){let r=e?.slice()??[],i=0;function a(){return i===r.length}t(a,"isEmpty");function c(..._){r.push(..._)}t(c,"enqueue");function u(){if(a())throw new Error("Queue is empty");let _=r[i];if(r[i]=void 0,i++,i>100&&i>r.length>>1){let h=r.length-i;r.copyWithin(0,i),r.length=h,i=0}return _}return t(u,"dequeue"),{enqueue:c,dequeue:u,isEmpty:a}}t(C7,"createQueue");function KG(e,r){let i=new Map,a=0;function*c(){for(let _ of i.values())Bs(_)?yield*_:yield _}t(c,"getElementIterator");let u={has(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);return Bs(m)?Ci(m,_,r):r(m,_)},add(_){let h=e(_);if(i.has(h)){let m=i.get(h);if(Bs(m))Ci(m,_,r)||(m.push(_),a++);else{let T=m;r(T,_)||(i.set(h,[T,_]),a++)}}else i.set(h,_),a++;return this},delete(_){let h=e(_);if(!i.has(h))return!1;let m=i.get(h);if(Bs(m)){for(let T=0;T<m.length;T++)if(r(m[T],_))return m.length===1?i.delete(h):m.length===2?i.set(h,m[1-T]):ROe(m,T),a--,!0}else if(r(m,_))return i.delete(h),a--,!0;return!1},clear(){i.clear(),a=0},get size(){return a},forEach(_){for(let h of Ps(i.values()))if(Bs(h))for(let m of h)_(m,m,u);else{let m=h;_(m,m,u)}},keys(){return c()},values(){return c()},*entries(){for(let _ of c())yield[_,_]},[Symbol.iterator]:()=>c(),[Symbol.toStringTag]:i[Symbol.toStringTag]};return u}t(KG,"createSet");function Bs(e){return Array.isArray(e)}t(Bs,"isArray");function cw(e){return Bs(e)?e:[e]}t(cw,"toArray");function Fs(e){return typeof e=="string"}t(Fs,"isString");function ub(e){return typeof e=="number"}t(ub,"isNumber");function si(e,r){return e!==void 0&&r(e)?e:void 0}t(si,"tryCast");function ha(e,r){return e!==void 0&&r(e)?e:L.fail(`Invalid cast. The supplied value ${e} did not pass the test '${L.getFunctionName(r)}'.`)}t(ha,"cast");function go(e){}t(go,"noop");function Ry(){return!1}t(Ry,"returnFalse");function IT(){return!0}t(IT,"returnTrue");function OT(){}t(OT,"returnUndefined");function qo(e){return e}t(qo,"identity");function zSt(e){return e.toLowerCase()}t(zSt,"toLowerCase");var FOe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function fb(e){return FOe.test(e)?e.replace(FOe,zSt):e}t(fb,"toFileNameLowerCase");function va(){throw new Error("Not implemented")}t(va,"notImplemented");function Uf(e){let r;return()=>(e&&(r=e(),e=void 0),r)}t(Uf,"memoize");function Mh(e){let r=new Map;return i=>{let a=`${typeof i}:${i}`,c=r.get(a);return c===void 0&&!r.has(a)&&(c=e(i),r.set(a,c)),c}}t(Mh,"memoizeOne");var g_e=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(g_e||{});function _b(e,r){return e===r}t(_b,"equateValues");function pb(e,r){return e===r||e!==void 0&&r!==void 0&&e.toUpperCase()===r.toUpperCase()}t(pb,"equateStringsCaseInsensitive");function FT(e,r){return _b(e,r)}t(FT,"equateStringsCaseSensitive");function LOe(e,r){return e===r?0:e===void 0?-1:r===void 0?1:e<r?-1:1}t(LOe,"compareComparableValues");function Vo(e,r){return LOe(e,r)}t(Vo,"compareValues");function Mj(e,r){return Vo(e?.start,r?.start)||Vo(e?.length,r?.length)}t(Mj,"compareTextSpans");function XG(e,r,i){for(let a=0;a<e.length;a++)r=Math.max(r,i(e[a]));return r}t(XG,"maxBy");function ZG(e,r){return r_(e,(i,a)=>r(i,a)===-1?i:a)}t(ZG,"min");function k7(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toUpperCase(),r=r.toUpperCase(),e<r?-1:e>r?1:0)}t(k7,"compareStringsCaseInsensitive");function y_e(e,r){return e===r?0:e===void 0?-1:r===void 0?1:(e=e.toLowerCase(),r=r.toLowerCase(),e<r?-1:e>r?1:0)}t(y_e,"compareStringsCaseInsensitiveEslintCompatible");function lf(e,r){return LOe(e,r)}t(lf,"compareStringsCaseSensitive");function pA(e){return e?k7:lf}t(pA,"getStringComparer");var $St=(()=>{return r;function e(i,a,c){if(i===a)return 0;if(i===void 0)return-1;if(a===void 0)return 1;let u=c(i,a);return u<0?-1:u>0?1:0}function r(i){let a=new Intl.Collator(i,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(c,u)=>e(c,u,a)}})(),QG,eY;function v_e(){return eY}t(v_e,"getUILocale");function b_e(e){eY!==e&&(eY=e,QG=void 0)}t(b_e,"setUILocale");function w7(e,r){return QG??(QG=$St(eY)),QG(e,r)}t(w7,"compareStringsCaseSensitiveUI");function S_e(e,r,i,a){return e===r?0:e===void 0?-1:r===void 0?1:a(e[i],r[i])}t(S_e,"compareProperties");function IS(e,r){return Vo(e?1:0,r?1:0)}t(IS,"compareBooleans");function LT(e,r,i){let a=Math.max(2,Math.floor(e.length*.34)),c=Math.floor(e.length*.4)+1,u;for(let _ of r){let h=i(_);if(h!==void 0&&Math.abs(h.length-e.length)<=a){if(h===e||h.length<3&&h.toLowerCase()!==e.toLowerCase())continue;let m=JSt(e,h,c-.1);if(m===void 0)continue;L.assert(m<c),c=m,u=_}}return u}t(LT,"getSpellingSuggestion");function JSt(e,r,i){let a=new Array(r.length+1),c=new Array(r.length+1),u=i+.01;for(let h=0;h<=r.length;h++)a[h]=h;for(let h=1;h<=e.length;h++){let m=e.charCodeAt(h-1),T=Math.ceil(h>i?h-i:1),S=Math.floor(r.length>i+h?i+h:r.length);c[0]=h;let E=h;for(let P=1;P<T;P++)c[P]=u;for(let P=T;P<=S;P++){let I=e[h-1].toLowerCase()===r[P-1].toLowerCase()?a[P-1]+.1:a[P-1]+2,R=m===r.charCodeAt(P-1)?a[P-1]:Math.min(a[P]+1,c[P-1]+1,I);c[P]=R,E=Math.min(E,R)}for(let P=S+1;P<=r.length;P++)c[P]=u;if(E>i)return;let D=a;a=c,c=D}let _=a[r.length];return _>i?void 0:_}t(JSt,"levenshteinWithMax");function ic(e,r,i){let a=e.length-r.length;return a>=0&&(i?pb(e.slice(a),r):e.indexOf(r,a)===a)}t(ic,"endsWith");function dA(e,r){return ic(e,r)?e.slice(0,e.length-r.length):e}t(dA,"removeSuffix");function T_e(e,r){return ic(e,r)?e.slice(0,e.length-r.length):void 0}t(T_e,"tryRemoveSuffix");function tY(e){let r=e.length;for(let i=r-1;i>0;i--){let a=e.charCodeAt(i);if(a>=48&&a<=57)do--i,a=e.charCodeAt(i);while(i>0&&a>=48&&a<=57);else if(i>4&&(a===110||a===78)){if(--i,a=e.charCodeAt(i),a!==105&&a!==73||(--i,a=e.charCodeAt(i),a!==109&&a!==77))break;--i,a=e.charCodeAt(i)}else break;if(a!==45&&a!==46)break;r=i}return r===e.length?e:e.slice(0,r)}t(tY,"removeMinAndVersionNumbers");function VI(e,r){for(let i=0;i<e.length;i++)if(e[i]===r)return db(e,i),!0;return!1}t(VI,"orderedRemoveItem");function db(e,r){for(let i=r;i<e.length-1;i++)e[i]=e[i+1];e.pop()}t(db,"orderedRemoveItemAt");function ROe(e,r){e[r]=e[e.length-1],e.pop()}t(ROe,"unorderedRemoveItemAt");function lw(e,r){return WSt(e,i=>i===r)}t(lw,"unorderedRemoveItem");function WSt(e,r){for(let i=0;i<e.length;i++)if(r(e[i]))return ROe(e,i),!0;return!1}t(WSt,"unorderedRemoveFirstItemWhere");function Hu(e){return e?qo:fb}t(Hu,"createGetCanonicalFileName");function x_e({prefix:e,suffix:r}){return`${e}*${r}`}t(x_e,"patternText");function E_e(e,r){return L.assert(jj(e,r)),r.substring(e.prefix.length,r.length-e.suffix.length)}t(E_e,"matchedText");function rY(e,r,i){let a,c=-1;for(let u=0;u<e.length;u++){let _=e[u],h=r(_);h.prefix.length>c&&jj(h,i)&&(c=h.prefix.length,a=_)}return a}t(rY,"findBestPatternMatch");function fs(e,r,i){return i?pb(e.slice(0,r.length),r):e.lastIndexOf(r,0)===0}t(fs,"startsWith");function HI(e,r){return fs(e,r)?e.substr(r.length):e}t(HI,"removePrefix");function nY(e,r,i=qo){return fs(i(e),i(r))?e.substring(r.length):void 0}t(nY,"tryRemovePrefix");function jj({prefix:e,suffix:r},i){return i.length>=e.length+r.length&&fs(i,e)&&ic(i,r)}t(jj,"isPatternMatch");function Bj(e,r){return i=>e(i)&&r(i)}t(Bj,"and");function ip(...e){return(...r)=>{let i;for(let a of e)if(i=a(...r),i)return i;return i}}t(ip,"or");function Uj(e){return(...r)=>!e(...r)}t(Uj,"not");function MOe(e){}t(MOe,"assertType");function uw(e){return e===void 0?void 0:[e]}t(uw,"singleElementArray");function zj(e,r,i,a,c,u){u??(u=go);let _=0,h=0,m=e.length,T=r.length,S=!1;for(;_<m&&h<T;){let E=e[_],D=r[h],P=i(E,D);P===-1?(a(E),_++,S=!0):P===1?(c(D),h++,S=!0):(u(D,E),_++,h++)}for(;_<m;)a(e[_++]),S=!0;for(;h<T;)c(r[h++]),S=!0;return S}t(zj,"enumerateInsertsAndDeletes");function C_e(e){let r=[];return jOe(e,r,void 0,0),r}t(C_e,"cartesianProduct");function jOe(e,r,i,a){for(let c of e[a]){let u;i?(u=i.slice(),u.push(c)):u=[c],a===e.length-1?r.push(u):jOe(e,r,u,a+1)}}t(jOe,"cartesianProductWorker");function iY(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(0,a)}}t(iY,"takeWhile");function k_e(e,r){if(e!==void 0){let i=e.length,a=0;for(;a<i&&r(e[a]);)a++;return e.slice(a)}}t(k_e,"skipWhile");function sY(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof uo<"u"}t(sY,"isNodeLikeSystem");var w_e=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(w_e||{}),L;(e=>{let r=0;e.currentLogLevel=2,e.isDebugging=!1;function i(rt){return e.currentLogLevel<=rt}t(i,"shouldLog"),e.shouldLog=i;function a(rt,Pt){e.loggingHost&&i(rt)&&e.loggingHost.log(rt,Pt)}t(a,"logMessage");function c(rt){a(3,rt)}t(c,"log"),e.log=c,(rt=>{function Pt(fi){a(1,fi)}t(Pt,"error2"),rt.error=Pt;function br(fi){a(2,fi)}t(br,"warn"),rt.warn=br;function pn(fi){a(3,fi)}t(pn,"log2"),rt.log=pn;function pi(fi){a(4,fi)}t(pi,"trace2"),rt.trace=pi})(c=e.log||(e.log={}));let u={};function _(){return r}t(_,"getAssertionLevel"),e.getAssertionLevel=_;function h(rt){let Pt=r;if(r=rt,rt>Pt)for(let br of Rh(u)){let pn=u[br];pn!==void 0&&e[br]!==pn.assertion&&rt>=pn.level&&(e[br]=pn,u[br]=void 0)}}t(h,"setAssertionLevel"),e.setAssertionLevel=h;function m(rt){return r>=rt}t(m,"shouldAssert"),e.shouldAssert=m;function T(rt,Pt){return m(rt)?!0:(u[Pt]={level:rt,assertion:e[Pt]},e[Pt]=go,!1)}t(T,"shouldAssertFunction");function S(rt,Pt){debugger;let br=new Error(rt?`Debug Failure. ${rt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(br,Pt||S),br}t(S,"fail"),e.fail=S;function E(rt,Pt,br){return S(`${Pt||"Unexpected node."}\r
|
|
112
112
|
Node ${Ne(rt.kind)} was unexpected.`,br||E)}t(E,"failBadSyntaxKind"),e.failBadSyntaxKind=E;function D(rt,Pt,br,pn){rt||(Pt=Pt?`False expression: ${Pt}`:"False expression.",br&&(Pt+=`\r
|
|
113
113
|
Verbose Debug Information: `+(typeof br=="string"?br:br())),S(Pt,pn||D))}t(D,"assert"),e.assert=D;function P(rt,Pt,br,pn,pi){if(rt!==Pt){let fi=br?pn?`${br} ${pn}`:br:"";S(`Expected ${rt} === ${Pt}. ${fi}`,pi||P)}}t(P,"assertEqual"),e.assertEqual=P;function I(rt,Pt,br,pn){rt>=Pt&&S(`Expected ${rt} < ${Pt}. ${br||""}`,pn||I)}t(I,"assertLessThan"),e.assertLessThan=I;function R(rt,Pt,br){rt>Pt&&S(`Expected ${rt} <= ${Pt}`,br||R)}t(R,"assertLessThanOrEqual"),e.assertLessThanOrEqual=R;function M(rt,Pt,br){rt<Pt&&S(`Expected ${rt} >= ${Pt}`,br||M)}t(M,"assertGreaterThanOrEqual"),e.assertGreaterThanOrEqual=M;function U(rt,Pt,br){rt==null&&S(Pt,br||U)}t(U,"assertIsDefined"),e.assertIsDefined=U;function q(rt,Pt,br){return U(rt,Pt,br||q),rt}t(q,"checkDefined"),e.checkDefined=q;function J(rt,Pt,br){for(let pn of rt)U(pn,Pt,br||J)}t(J,"assertEachIsDefined"),e.assertEachIsDefined=J;function K(rt,Pt,br){return J(rt,Pt,br||K),rt}t(K,"checkEachDefined"),e.checkEachDefined=K;function Q(rt,Pt="Illegal value:",br){let pn=typeof rt=="object"&&Ro(rt,"kind")&&Ro(rt,"pos")?"SyntaxKind: "+Ne(rt.kind):JSON.stringify(rt);return S(`${Pt} ${pn}`,br||Q)}t(Q,"assertNever"),e.assertNever=Q;function ne(rt,Pt,br,pn){T(1,"assertEachNode")&&D(Pt===void 0||kr(rt,Pt),br||"Unexpected node.",()=>`Node array did not pass test '${he(Pt)}'.`,pn||ne)}t(ne,"assertEachNode"),e.assertEachNode=ne;function oe(rt,Pt,br,pn){T(1,"assertNode")&&D(rt!==void 0&&(Pt===void 0||Pt(rt)),br||"Unexpected node.",()=>`Node ${Ne(rt?.kind)} did not pass test '${he(Pt)}'.`,pn||oe)}t(oe,"assertNode"),e.assertNode=oe;function ee(rt,Pt,br,pn){T(1,"assertNotNode")&&D(rt===void 0||Pt===void 0||!Pt(rt),br||"Unexpected node.",()=>`Node ${Ne(rt.kind)} should not have passed test '${he(Pt)}'.`,pn||ee)}t(ee,"assertNotNode"),e.assertNotNode=ee;function De(rt,Pt,br,pn){T(1,"assertOptionalNode")&&D(Pt===void 0||rt===void 0||Pt(rt),br||"Unexpected node.",()=>`Node ${Ne(rt?.kind)} did not pass test '${he(Pt)}'.`,pn||De)}t(De,"assertOptionalNode"),e.assertOptionalNode=De;function fe(rt,Pt,br,pn){T(1,"assertOptionalToken")&&D(Pt===void 0||rt===void 0||rt.kind===Pt,br||"Unexpected node.",()=>`Node ${Ne(rt?.kind)} was not a '${Ne(Pt)}' token.`,pn||fe)}t(fe,"assertOptionalToken"),e.assertOptionalToken=fe;function te(rt,Pt,br){T(1,"assertMissingNode")&&D(rt===void 0,Pt||"Unexpected node.",()=>`Node ${Ne(rt.kind)} was unexpected'.`,br||te)}t(te,"assertMissingNode"),e.assertMissingNode=te;function me(rt){}t(me,"type"),e.type=me;function he(rt){if(typeof rt!="function")return"";if(Ro(rt,"name"))return rt.name;{let Pt=Function.prototype.toString.call(rt),br=/^function\s+([\w$]+)\s*\(/.exec(Pt);return br?br[1]:""}}t(he,"getFunctionName"),e.getFunctionName=he;function ve(rt){return`{ name: ${Zi(rt.escapedName)}; flags: ${Te(rt.flags)}; declarations: ${Dr(rt.declarations,Pt=>Ne(Pt.kind))} }`}t(ve,"formatSymbol"),e.formatSymbol=ve;function we(rt=0,Pt,br){let pn=ie(Pt);if(rt===0)return pn.length>0&&pn[0][0]===0?pn[0][1]:"0";if(br){let pi=[],fi=rt;for(let[qi,Ys]of pn){if(qi>rt)break;qi!==0&&qi&rt&&(pi.push(Ys),fi&=~qi)}if(fi===0)return pi.join("|")}else for(let[pi,fi]of pn)if(pi===rt)return fi;return rt.toString()}t(we,"formatEnum"),e.formatEnum=we;let Ae=new Map;function ie(rt){let Pt=Ae.get(rt);if(Pt)return Pt;let br=[];for(let pi in rt){let fi=rt[pi];typeof fi=="number"&&br.push([fi,pi])}let pn=np(br,(pi,fi)=>Vo(pi[0],fi[0]));return Ae.set(rt,pn),pn}t(ie,"getEnumMembers");function Ne(rt){return we(rt,lY,!1)}t(Ne,"formatSyntaxKind"),e.formatSyntaxKind=Ne;function tt(rt){return we(rt,xY,!1)}t(tt,"formatSnippetKind"),e.formatSnippetKind=tt;function ze(rt){return we(rt,SY,!1)}t(ze,"formatScriptKind"),e.formatScriptKind=ze;function ge(rt){return we(rt,uY,!0)}t(ge,"formatNodeFlags"),e.formatNodeFlags=ge;function Le(rt){return we(rt,gY,!0)}t(Le,"formatNodeCheckFlags"),e.formatNodeCheckFlags=Le;function Ee(rt){return we(rt,fY,!0)}t(Ee,"formatModifierFlags"),e.formatModifierFlags=Ee;function _t(rt){return we(rt,TY,!0)}t(_t,"formatTransformFlags"),e.formatTransformFlags=_t;function yt(rt){return we(rt,EY,!0)}t(yt,"formatEmitFlags"),e.formatEmitFlags=yt;function Te(rt){return we(rt,hY,!0)}t(Te,"formatSymbolFlags"),e.formatSymbolFlags=Te;function et(rt){return we(rt,yY,!0)}t(et,"formatTypeFlags"),e.formatTypeFlags=et;function _e(rt){return we(rt,bY,!0)}t(_e,"formatSignatureFlags"),e.formatSignatureFlags=_e;function qe(rt){return we(rt,vY,!0)}t(qe,"formatObjectFlags"),e.formatObjectFlags=qe;function Be(rt){return we(rt,Jj,!0)}t(Be,"formatFlowFlags"),e.formatFlowFlags=Be;function Re(rt){return we(rt,_Y,!0)}t(Re,"formatRelationComparisonResult"),e.formatRelationComparisonResult=Re;function nt(rt){return we(rt,BQ,!0)}t(nt,"formatCheckMode"),e.formatCheckMode=nt;function It(rt){return we(rt,UQ,!0)}t(It,"formatSignatureCheckMode"),e.formatSignatureCheckMode=It;function Qt(rt){return we(rt,jQ,!0)}t(Qt,"formatTypeFacts"),e.formatTypeFacts=Qt;let xr=!1,Gr;function St(rt){"__debugFlowFlags"in rt||Object.defineProperties(rt,{__tsDebuggerDisplay:{value(){let Pt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",br=this.flags&-2048;return`${Pt}${br?` (${Be(br)})`:""}`}},__debugFlowFlags:{get(){return we(this.flags,Jj,!0)}},__debugToString:{value(){return ki(this)}}})}t(St,"attachFlowNodeDebugInfoWorker");function sr(rt){return xr&&(typeof Object.setPrototypeOf=="function"?(Gr||(Gr=Object.create(Object.prototype),St(Gr)),Object.setPrototypeOf(rt,Gr)):St(rt)),rt}t(sr,"attachFlowNodeDebugInfo"),e.attachFlowNodeDebugInfo=sr;let cn;function Ii(rt){"__tsDebuggerDisplay"in rt||Object.defineProperties(rt,{__tsDebuggerDisplay:{value(Pt){return Pt=String(Pt).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${Pt}`}}})}t(Ii,"attachNodeArrayDebugInfoWorker");function ws(rt){xr&&(typeof Object.setPrototypeOf=="function"?(cn||(cn=Object.create(Array.prototype),Ii(cn)),Object.setPrototypeOf(rt,cn)):Ii(rt))}t(ws,"attachNodeArrayDebugInfo"),e.attachNodeArrayDebugInfo=ws;function zt(){if(xr)return;let rt=new WeakMap,Pt=new WeakMap;Object.defineProperties(Ku.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let pn=this.flags&33554432?"TransientSymbol":"Symbol",pi=this.flags&-33554433;return`${pn} '${tl(this)}'${pi?` (${Te(pi)})`:""}`}},__debugFlags:{get(){return Te(this.flags)}}}),Object.defineProperties(Ku.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let pn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",pi=this.flags&524288?this.objectFlags&-1344:0;return`${pn}${this.symbol?` '${tl(this.symbol)}'`:""}${pi?` (${qe(pi)})`:""}`}},__debugFlags:{get(){return et(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?qe(this.objectFlags):""}},__debugTypeToString:{value(){let pn=rt.get(this);return pn===void 0&&(pn=this.checker.typeToString(this),rt.set(this,pn)),pn}}}),Object.defineProperties(Ku.getSignatureConstructor().prototype,{__debugFlags:{get(){return _e(this.flags)}},__debugSignatureToString:{value(){var pn;return(pn=this.checker)==null?void 0:pn.signatureToString(this)}}});let br=[Ku.getNodeConstructor(),Ku.getIdentifierConstructor(),Ku.getTokenConstructor(),Ku.getSourceFileConstructor()];for(let pn of br)Ro(pn.prototype,"__debugKind")||Object.defineProperties(pn.prototype,{__tsDebuggerDisplay:{value(){return`${_c(this)?"GeneratedIdentifier":Ye(this)?`Identifier '${Xn(this)}'`:Qi(this)?`PrivateIdentifier '${Xn(this)}'`:Na(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:P_(this)?`NumericLiteral ${this.text}`:d3(this)?`BigIntLiteral ${this.text}n`:cc(this)?"TypeParameterDeclaration":rs(this)?"ParameterDeclaration":wc(this)?"ConstructorDeclaration":Md(this)?"GetAccessorDeclaration":W_(this)?"SetAccessorDeclaration":rD(this)?"CallSignatureDeclaration":x5(this)?"ConstructSignatureDeclaration":zb(this)?"IndexSignatureDeclaration":nD(this)?"TypePredicateNode":_p(this)?"TypeReferenceNode":Kg(this)?"FunctionTypeNode":i6(this)?"ConstructorTypeNode":ox(this)?"TypeQueryNode":o_(this)?"TypeLiteralNode":E5(this)?"ArrayTypeNode":iD(this)?"TupleTypeNode":dz(this)?"OptionalTypeNode":mz(this)?"RestTypeNode":nv(this)?"UnionTypeNode":sD(this)?"IntersectionTypeNode":cx(this)?"ConditionalTypeNode":yC(this)?"InferTypeNode":vC(this)?"ParenthesizedTypeNode":y3(this)?"ThisTypeNode":YS(this)?"TypeOperatorNode":lx(this)?"IndexedAccessTypeNode":bC(this)?"MappedTypeNode":iv(this)?"LiteralTypeNode":s6(this)?"NamedTupleMember":Zh(this)?"ImportTypeNode":Ne(this.kind)}${this.flags?` (${ge(this.flags)})`:""}`}},__debugKind:{get(){return Ne(this.kind)}},__debugNodeFlags:{get(){return ge(this.flags)}},__debugModifierFlags:{get(){return Ee(uhe(this))}},__debugTransformFlags:{get(){return _t(this.transformFlags)}},__debugIsParseTreeNode:{get(){return u4(this)}},__debugEmitFlags:{get(){return yt(Ya(this))}},__debugGetText:{value(pi){if(Mo(this))return"";let fi=Pt.get(this);if(fi===void 0){let qi=zs(this),Ys=qi&&Hr(qi);fi=Ys?zT(Ys,qi,pi):"",Pt.set(this,fi)}return fi}}});xr=!0}t(zt,"enableDebugInfo"),e.enableDebugInfo=zt;function ti(rt){let Pt=rt&7,br=Pt===0?"in out":Pt===3?"[bivariant]":Pt===2?"in":Pt===1?"out":Pt===4?"[independent]":"";return rt&8?br+=" (unmeasurable)":rt&16&&(br+=" (unreliable)"),br}t(ti,"formatVariance"),e.formatVariance=ti;class hs{static{t(this,"DebugTypeMapper")}__debugToString(){var Pt;switch(this.kind){case 3:return((Pt=this.debugInfo)==null?void 0:Pt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return sn(this.sources,this.targets||Dr(this.sources,()=>"any"),(br,pn)=>`${br.__debugTypeToString()} -> ${typeof pn=="string"?pn:pn.__debugTypeToString()}`).join(", ");case 2:return sn(this.sources,this.targets,(br,pn)=>`${br.__debugTypeToString()} -> ${pn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
114
114
|
`).join(`
|
|
@@ -540,11 +540,11 @@ Project '${h.projectName}' (${P8[h.projectKind]}) ${u}
|
|
|
540
540
|
`,u++},"addProjectInfo");this.projectService.externalProjects.forEach(_),this.projectService.configuredProjects.forEach(_),this.projectService.inferredProjects.forEach(_)}}this.logger.msg(c,"Err")}send(r){if(r.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${f2(r)}`);return}this.writeMessage(r)}writeMessage(r){let i=CCe(r,this.logger,this.byteLength,this.host.newLine);this.host.write(i)}event(r,i){this.send(kCe(i,r))}doOutput(r,i,a,c,u,_){let h={seq:0,type:"response",command:i,request_seq:a,success:c,performanceData:u&&KGe(u)};if(c){let m;if(Bs(r))h.body=r,m=r.metadata,delete r.metadata;else if(typeof r=="object")if(r.metadata){let{metadata:T,...S}=r;h.body=S,m=T}else h.body=r;else h.body=r;m&&(h.metadata=m)}else L.assert(r===void 0);_&&(h.message=_),this.send(h)}semanticCheck(r,i){var a,c;let u=jo();(a=En)==null||a.push(En.Phase.Session,"semanticCheck",{file:r,configFilePath:i.canonicalConfigFilePath});let _=BGe(i,r)?fu:i.getLanguageService().getSemanticDiagnostics(r).filter(h=>!!h.file);this.sendDiagnosticsEvent(r,i,_,"semanticDiag",u),(c=En)==null||c.pop()}syntacticCheck(r,i){var a,c;let u=jo();(a=En)==null||a.push(En.Phase.Session,"syntacticCheck",{file:r,configFilePath:i.canonicalConfigFilePath}),this.sendDiagnosticsEvent(r,i,i.getLanguageService().getSyntacticDiagnostics(r),"syntaxDiag",u),(c=En)==null||c.pop()}suggestionCheck(r,i){var a,c;let u=jo();(a=En)==null||a.push(En.Phase.Session,"suggestionCheck",{file:r,configFilePath:i.canonicalConfigFilePath}),this.sendDiagnosticsEvent(r,i,i.getLanguageService().getSuggestionDiagnostics(r),"suggestionDiag",u),(c=En)==null||c.pop()}regionSemanticCheck(r,i,a){var c,u,_;let h=jo();(c=En)==null||c.push(En.Phase.Session,"regionSemanticCheck",{file:r,configFilePath:i.canonicalConfigFilePath});let m;if(!this.shouldDoRegionCheck(r)||!(m=i.getLanguageService().getRegionSemanticDiagnostics(r,a))){(u=En)==null||u.pop();return}this.sendDiagnosticsEvent(r,i,m.diagnostics,"regionSemanticDiag",h,m.spans),(_=En)==null||_.pop()}shouldDoRegionCheck(r){var i;let a=(i=this.projectService.getScriptInfoForNormalizedPath(r))==null?void 0:i.textStorage.getLineInfo().getLineCount();return!!(a&&a>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(r,i,a,c,u,_){try{let h=L.checkDefined(i.getScriptInfo(r)),m=jo()-u,T={file:r,diagnostics:a.map(S=>UGe(r,i,S)),spans:_?.map(S=>ug(S,h))};this.event(T,c),this.addDiagnosticsPerformanceData(r,c,m)}catch(h){this.logError(h,c)}}updateErrorCheck(r,i,a,c=!0){if(i.length===0)return;L.assert(!this.suppressDiagnosticEvents);let u=this.changeSeq,_=Math.min(a,200),h=0,m=t(()=>{if(h++,i.length>h)return r.delay("checkOne",_,S)},"goNext"),T=t((E,D)=>{if(this.semanticCheck(E,D),this.changeSeq===u){if(this.getPreferences(E).disableSuggestions)return m();r.immediate("suggestionCheck",()=>{this.suggestionCheck(E,D),m()})}},"doSemanticCheck"),S=t(()=>{if(this.changeSeq!==u)return;let E,D=i[h];if(Fs(D)?D=this.toPendingErrorCheck(D):"ranges"in D&&(E=D.ranges,D=this.toPendingErrorCheck(D.file)),!D)return m();let{fileName:P,project:I}=D;if(hm(I),!!I.containsFile(P,c)&&(this.syntacticCheck(P,I),this.changeSeq===u)){if(I.projectService.serverMode!==0)return m();if(E)return r.immediate("regionSemanticCheck",()=>{let R=this.projectService.getScriptInfoForNormalizedPath(P);R&&this.regionSemanticCheck(P,I,E.map(M=>this.getRange({file:P,...M},R))),this.changeSeq===u&&r.immediate("semanticCheck",()=>T(P,I))});r.immediate("semanticCheck",()=>T(P,I))}},"checkOne");i.length>h&&this.changeSeq===u&&r.delay("checkOne",a,S)}cleanProjects(r,i){if(i){this.logger.info(`cleaning ${r}`);for(let a of i)a.getLanguageService(!1).cleanupSemanticCache(),a.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Ps(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r);return a.getEncodedSyntacticClassifications(i,r)}getEncodedSemanticClassifications(r){let{file:i,project:a}=this.getFileAndProject(r),c=r.format==="2020"?"2020":"original";return a.getLanguageService().getEncodedSemanticClassifications(i,r,c)}getProject(r){return r===void 0?void 0:this.projectService.findProject(r)}getConfigFileAndProject(r){let i=this.getProject(r.projectFileName),a=Io(r.file);return{configFile:i&&i.hasConfigFile(a)?a:void 0,project:i}}getConfigFileDiagnostics(r,i,a){let c=i.getAllProjectErrors(),u=i.getLanguageService().getCompilerOptionsDiagnostics(),_=In(us(c,u),h=>!!h.file&&h.file.fileName===r);return a?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(_):Dr(_,h=>PR(h,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(r){return r.map(i=>({message:sg(i.messageText,this.host.newLine),start:i.start,length:i.length,category:WE(i),code:i.code,source:i.source,startLocation:i.file&&iN(_a(i.file,i.start)),endLocation:i.file&&iN(_a(i.file,i.start+i.length)),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Dr(i.relatedInformation,Gie)}))}getCompilerOptionsDiagnostics(r){let i=this.getProject(r.projectFileName);return this.convertToDiagnosticsWithLinePosition(In(i.getLanguageService().getCompilerOptionsDiagnostics(),a=>!a.file),void 0)}convertToDiagnosticsWithLinePosition(r,i){return r.map(a=>({message:sg(a.messageText,this.host.newLine),start:a.start,length:a.length,category:WE(a),code:a.code,source:a.source,startLocation:i&&i.positionToLineOffset(a.start),endLocation:i&&i.positionToLineOffset(a.start+a.length),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,relatedInformation:Dr(a.relatedInformation,Gie)}))}getDiagnosticsWorker(r,i,a,c){let{project:u,file:_}=this.getFileAndProject(r);if(i&&BGe(u,_))return fu;let h=u.getScriptInfoForNormalizedPath(_),m=a(u,_);return c?this.convertToDiagnosticsWithLinePosition(m,h):m.map(T=>UGe(_,u,T))}getDefinition(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=this.mapDefinitionInfoLocations(c.getLanguageService().getDefinitionAtPosition(a,u)||fu,c);return i?this.mapDefinitionInfo(_,c):_.map(Xle.mapToOriginalLocation)}mapDefinitionInfoLocations(r,i){return r.map(a=>{let c=HGe(a,i);return c?{...c,containerKind:a.containerKind,containerName:a.containerName,kind:a.kind,name:a.name,failedAliasResolution:a.failedAliasResolution,...a.unverified&&{unverified:a.unverified}}:a})}getDefinitionAndBoundSpan(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=L.checkDefined(c.getScriptInfo(a)),h=c.getLanguageService().getDefinitionAndBoundSpan(a,u);if(!h||!h.definitions)return{definitions:fu,textSpan:void 0};let m=this.mapDefinitionInfoLocations(h.definitions,c),{textSpan:T}=h;return i?{definitions:this.mapDefinitionInfo(m,c),textSpan:ug(T,_)}:{definitions:m.map(Xle.mapToOriginalLocation),textSpan:T}}findSourceDefinition(r){var i;let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=c.getLanguageService().getDefinitionAtPosition(a,u),h=this.mapDefinitionInfoLocations(_||fu,c).slice();if(this.projectService.serverMode===0&&(!xt(h,P=>Io(P.fileName)!==a&&!P.isAmbient)||xt(h,P=>!!P.failedAliasResolution))){let P=KG(U=>U.textSpan.start,are(this.host.useCaseSensitiveFileNames));h?.forEach(U=>P.add(U));let I=c.getNoDtsResolutionProject(a),R=I.getLanguageService(),M=(i=R.getDefinitionAtPosition(a,u,!0,!1))==null?void 0:i.filter(U=>Io(U.fileName)!==a);if(xt(M))for(let U of M){if(U.unverified){let q=E(U,c.getLanguageService().getProgram(),R.getProgram());if(xt(q)){for(let J of q)P.add(J);continue}}P.add(U)}else{let U=h.filter(q=>Io(q.fileName)!==a&&q.isAmbient);for(let q of xt(U)?U:S()){let J=T(q.fileName,a,I);if(!J)continue;let K=this.projectService.getOrCreateScriptInfoNotOpenedByClient(J,I.currentDirectory,I.directoryStructureHost,!1);if(!K)continue;I.containsScriptInfo(K)||(I.addRoot(K),I.updateGraph());let Q=R.getProgram(),ne=L.checkDefined(Q.getSourceFile(J));for(let oe of D(q.name,ne,Q))P.add(oe)}}h=Ps(P.values())}return h=h.filter(P=>!P.isAmbient&&!P.failedAliasResolution),this.mapDefinitionInfo(h,c);function T(P,I,R){var M,U,q;let J=KU(P);if(J&&P.lastIndexOf(K0)===J.topLevelNodeModulesIndex){let K=P.substring(0,J.packageRootIndex),Q=(M=c.getModuleResolutionCache())==null?void 0:M.getPackageJsonInfoCache(),ne=c.getCompilationSettings(),oe=R3(bs(K,c.getCurrentDirectory()),L3(Q,c,ne));if(!oe)return;let ee=DQ(oe,{moduleResolution:2},c,c.getModuleResolutionCache()),De=P.substring(J.topLevelPackageNameIndex+1,J.packageRootIndex),fe=M3(X5(De)),te=c.toPath(P);if(ee&&xt(ee,me=>c.toPath(me)===te))return(U=R.resolutionCache.resolveSingleModuleNameWithoutWatching(fe,I).resolvedModule)==null?void 0:U.resolvedFileName;{let me=P.substring(J.packageRootIndex+1),he=`${fe}/${Vf(me)}`;return(q=R.resolutionCache.resolveSingleModuleNameWithoutWatching(he,I).resolvedModule)==null?void 0:q.resolvedFileName}}}t(T,"findImplementationFileFromDtsFileName");function S(){let P=c.getLanguageService(),I=P.getProgram(),R=N_(I.getSourceFile(a),u);return(fo(R)||Ye(R))&&Zo(R.parent)&&Che(R,M=>{var U;if(M===R)return;let q=(U=P.getDefinitionAtPosition(a,M.getStart(),!0,!1))==null?void 0:U.filter(J=>Io(J.fileName)!==a&&J.isAmbient).map(J=>({fileName:J.fileName,name:Nd(R)}));if(xt(q))return q})||fu}t(S,"getAmbientCandidatesByClimbingAccessChain");function E(P,I,R){var M;let U=R.getSourceFile(P.fileName);if(!U)return;let q=N_(I.getSourceFile(a),u),J=I.getTypeChecker().getSymbolAtLocation(q),K=J&&dc(J,276);if(!K)return;let Q=((M=K.propertyName)==null?void 0:M.text)||K.name.text;return D(Q,U,R)}t(E,"tryRefineDefinition");function D(P,I,R){let M=ec.Core.getTopMostDeclarationNamesInFile(P,I);return Wi(M,U=>{let q=R.getTypeChecker().getSymbolAtLocation(U),J=O4(U);if(q&&J)return Q6.createDefinitionInfo(J,R.getTypeChecker(),q,J,!0)})}t(D,"searchForDeclaration")}getEmitOutput(r){let{file:i,project:a}=this.getFileAndProject(r);if(!a.shouldEmitFile(a.getScriptInfo(i)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let c=a.getLanguageService().getEmitOutput(i);return r.richResponse?{...c,diagnostics:r.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c.diagnostics):c.diagnostics.map(u=>PR(u,!0))}:c}mapJSDocTagInfo(r,i,a){return r?r.map(c=>{var u;return{...c,text:a?this.mapDisplayParts(c.text,i):(u=c.text)==null?void 0:u.map(_=>_.text).join("")}}):[]}mapDisplayParts(r,i){return r?r.map(a=>a.kind!=="linkName"?a:{...a,target:this.toFileSpan(a.target.fileName,a.target.textSpan,i)}):[]}mapSignatureHelpItems(r,i,a){return r.map(c=>({...c,documentation:this.mapDisplayParts(c.documentation,i),parameters:c.parameters.map(u=>({...u,documentation:this.mapDisplayParts(u.documentation,i)})),tags:this.mapJSDocTagInfo(c.tags,i,a)}))}mapDefinitionInfo(r,i){return r.map(a=>({...this.toFileSpanWithContext(a.fileName,a.textSpan,a.contextSpan,i),...a.unverified&&{unverified:a.unverified}}))}static mapToOriginalLocation(r){return r.originalFileName?(L.assert(r.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...r,fileName:r.originalFileName,textSpan:r.originalTextSpan,targetFileName:r.fileName,targetTextSpan:r.textSpan,contextSpan:r.originalContextSpan,targetContextSpan:r.contextSpan}):r}toFileSpan(r,i,a){let c=a.getLanguageService(),u=c.toLineColumnOffset(r,i.start),_=c.toLineColumnOffset(r,Fc(i));return{file:r,start:{line:u.line+1,offset:u.character+1},end:{line:_.line+1,offset:_.character+1}}}toFileSpanWithContext(r,i,a,c){let u=this.toFileSpan(r,i,c),_=a&&this.toFileSpan(r,a,c);return _?{...u,contextStart:_.start,contextEnd:_.end}:u}getTypeDefinition(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.getPositionInFile(r,i),u=this.mapDefinitionInfoLocations(a.getLanguageService().getTypeDefinitionAtPosition(i,c)||fu,a);return this.mapDefinitionInfo(u,a)}mapImplementationLocations(r,i){return r.map(a=>{let c=HGe(a,i);return c?{...c,kind:a.kind,displayParts:a.displayParts}:a})}getImplementation(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=this.mapImplementationLocations(c.getLanguageService().getImplementationAtPosition(a,u)||fu,c);return i?_.map(({fileName:h,textSpan:m,contextSpan:T})=>this.toFileSpanWithContext(h,m,T,c)):_.map(Xle.mapToOriginalLocation)}getSyntacticDiagnosticsSync(r){let{configFile:i}=this.getConfigFileAndProject(r);return i?fu:this.getDiagnosticsWorker(r,!1,(a,c)=>a.getLanguageService().getSyntacticDiagnostics(c),!!r.includeLinePosition)}getSemanticDiagnosticsSync(r){let{configFile:i,project:a}=this.getConfigFileAndProject(r);return i?this.getConfigFileDiagnostics(i,a,!!r.includeLinePosition):this.getDiagnosticsWorker(r,!0,(c,u)=>c.getLanguageService().getSemanticDiagnostics(u).filter(_=>!!_.file),!!r.includeLinePosition)}getSuggestionDiagnosticsSync(r){let{configFile:i}=this.getConfigFileAndProject(r);return i?fu:this.getDiagnosticsWorker(r,!0,(a,c)=>a.getLanguageService().getSuggestionDiagnostics(c),!!r.includeLinePosition)}getJsxClosingTag(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i),u=a.getJsxClosingTagAtPosition(i,c);return u===void 0?void 0:{newText:u.newText,caretOffset:0}}getLinkedEditingRange(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i),u=a.getLinkedEditingRangeAtPosition(i,c),_=this.projectService.getScriptInfoForNormalizedPath(i);if(!(_===void 0||u===void 0))return WRt(u,_)}getDocumentHighlights(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.getPositionInFile(r,a),_=c.getLanguageService().getDocumentHighlights(a,u,r.filesToSearch);return _?i?_.map(({fileName:h,highlightSpans:m})=>{let T=c.getScriptInfo(h);return{file:h,highlightSpans:m.map(({textSpan:S,kind:E,contextSpan:D})=>({...DCe(S,D,T),kind:E}))}}):_:fu}provideInlayHints(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.projectService.getScriptInfoForNormalizedPath(i);return a.getLanguageService().provideInlayHints(i,r,this.getPreferences(i)).map(_=>{let{position:h,displayParts:m}=_;return{..._,position:c.positionToLineOffset(h),displayParts:m?.map(({text:T,span:S,file:E})=>{if(S){L.assertIsDefined(E,"Target file should be defined together with its span.");let D=this.projectService.getScriptInfo(E);return{text:T,span:{start:D.positionToLineOffset(S.start),end:D.positionToLineOffset(S.start+S.length),file:E}}}else return{text:T}})}})}mapCode(r){var i;let a=this.getHostFormatOptions(),c=this.getHostPreferences(),{file:u,languageService:_}=this.getFileAndLanguageServiceForSyntacticOperation(r),h=this.projectService.getScriptInfoForNormalizedPath(u),m=(i=r.mapping.focusLocations)==null?void 0:i.map(S=>S.map(E=>{let D=h.lineOffsetToPosition(E.start.line,E.start.offset),P=h.lineOffsetToPosition(E.end.line,E.end.offset);return{start:D,length:P-D}})),T=_.mapCode(u,r.mapping.contents,m,a,c);return this.mapTextChangesToCodeEdits(T)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(r){this.projectService.setCompilerOptionsForInferredProjects(r.options,r.projectRootPath)}getProjectInfo(r){return this.getProjectInfoWorker(r.file,r.projectFileName,r.needFileNameList,r.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(r,i,a,c,u){let{project:_}=this.getFileAndProjectWorker(r,i);return hm(_),{configFileName:_.getProjectName(),languageServiceDisabled:!_.languageServiceEnabled,fileNames:a?_.getFileNames(!1,u):void 0,configuredProjectInfo:c?this.getDefaultConfiguredProjectInfo(r):void 0}}getDefaultConfiguredProjectInfo(r){var i;let a=this.projectService.getScriptInfo(r);if(!a)return;let c=this.projectService.findDefaultConfiguredProjectWorker(a,3);if(!c)return;let u,_;return c.seenProjects.forEach((h,m)=>{m!==c.defaultProject&&(h!==3?(u??(u=[])).push(Io(m.getConfigFilePath())):(_??(_=[])).push(Io(m.getConfigFilePath())))}),(i=c.seenConfigs)==null||i.forEach(h=>(u??(u=[])).push(h)),{notMatchedByConfig:u,notInProject:_,defaultProject:c.defaultProject&&Io(c.defaultProject.getConfigFilePath())}}getRenameInfo(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.getPositionInFile(r,i),u=this.getPreferences(i);return a.getLanguageService().getRenameInfo(i,c,u)}getProjects(r,i,a){let c,u;if(r.projectFileName){let _=this.getProject(r.projectFileName);_&&(c=[_])}else{let _=i?this.projectService.getScriptInfoEnsuringProjectsUptoDate(r.file):this.projectService.getScriptInfo(r.file);if(_)i||this.projectService.ensureDefaultProjectForFile(_);else return a?fu:(this.projectService.logErrorForScriptInfoNotFound(r.file),i1.ThrowNoProject());c=_.containingProjects,u=this.projectService.getSymlinkedProjects(_)}return c=In(c,_=>_.languageServiceEnabled&&!_.isOrphan()),!a&&(!c||!c.length)&&!u?(this.projectService.logErrorForScriptInfoNotFound(r.file??r.projectFileName),i1.ThrowNoProject()):u?{projects:c,symLinkedProjects:u}:c}getDefaultProject(r){if(r.projectFileName){let a=this.getProject(r.projectFileName);if(a)return a;if(!r.file)return i1.ThrowNoProject()}return this.projectService.getScriptInfo(r.file).getDefaultProject()}getRenameLocations(r,i){let a=Io(r.file),c=this.getPositionInFile(r,a),u=this.getProjects(r),_=this.getDefaultProject(r),h=this.getPreferences(a),m=this.mapRenameInfo(_.getLanguageService().getRenameInfo(a,c,h),L.checkDefined(this.projectService.getScriptInfo(a)));if(!m.canRename)return i?{info:m,locs:[]}:[];let T=jRt(u,_,{fileName:r.file,pos:c},!!r.findInStrings,!!r.findInComments,h,this.host.useCaseSensitiveFileNames);return i?{info:m,locs:this.toSpanGroups(T)}:T}mapRenameInfo(r,i){if(r.canRename){let{canRename:a,fileToRename:c,displayName:u,fullDisplayName:_,kind:h,kindModifiers:m,triggerSpan:T}=r;return{canRename:a,fileToRename:c,displayName:u,fullDisplayName:_,kind:h,kindModifiers:m,triggerSpan:ug(T,i)}}else return r}toSpanGroups(r){let i=new Map;for(let{fileName:a,textSpan:c,contextSpan:u,originalContextSpan:_,originalTextSpan:h,originalFileName:m,...T}of r){let S=i.get(a);S||i.set(a,S={file:a,locs:[]});let E=L.checkDefined(this.projectService.getScriptInfo(a));S.locs.push({...DCe(c,u,E),...T})}return Ps(i.values())}getReferences(r,i){let a=Io(r.file),c=this.getProjects(r),u=this.getPositionInFile(r,a),_=BRt(c,this.getDefaultProject(r),{fileName:r.file,pos:u},this.host.useCaseSensitiveFileNames,this.logger);if(!i)return _;let h=this.getPreferences(a),m=this.getDefaultProject(r),T=m.getScriptInfoForNormalizedPath(a),S=m.getLanguageService().getQuickInfoAtPosition(a,u),E=S?QL(S.displayParts):"",D=S&&S.textSpan,P=D?T.positionToLineOffset(D.start).offset:0,I=D?T.getSnapshot().getText(D.start,Fc(D)):"";return{refs:ka(_,M=>M.references.map(U=>ZGe(this.projectService,U,h))),symbolName:I,symbolStartOffset:P,symbolDisplayString:E}}getFileReferences(r,i){let a=this.getProjects(r),c=Io(r.file),u=this.getPreferences(c),_={fileName:c,pos:0},h=wCe(a,this.getDefaultProject(r),_,_,WGe,S=>(this.logger.info(`Finding references to file ${c} in project ${S.getProjectName()}`),S.getLanguageService().getFileReferences(c))),m;if(Bs(h))m=h;else{m=[];let S=Yie(this.host.useCaseSensitiveFileNames);h.forEach(E=>{for(let D of E)S.has(D)||(m.push(D),S.add(D))})}return i?{refs:m.map(S=>ZGe(this.projectService,S,u)),symbolName:`"${r.file}"`}:m}openClientFile(r,i,a,c){this.projectService.openClientFileWithNormalizedPath(r,i,a,!1,c)}getPosition(r,i){return r.position!==void 0?r.position:i.lineOffsetToPosition(r.line,r.offset)}getPositionInFile(r,i){let a=this.projectService.getScriptInfoForNormalizedPath(i);return this.getPosition(r,a)}getFileAndProject(r){return this.getFileAndProjectWorker(r.file,r.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(r){let{file:i,project:a}=this.getFileAndProject(r);return{file:i,languageService:a.getLanguageService(!1)}}getFileAndProjectWorker(r,i){let a=Io(r),c=this.getProject(i)||this.projectService.ensureDefaultProjectForFile(a);return{file:a,project:c}}getOutliningSpans(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=c.getOutliningSpans(a);if(i){let _=this.projectService.getScriptInfoForNormalizedPath(a);return u.map(h=>({textSpan:ug(h.textSpan,_),hintSpan:ug(h.hintSpan,_),bannerText:h.bannerText,autoCollapse:h.autoCollapse,kind:h.kind}))}else return u}getTodoComments(r){let{file:i,project:a}=this.getFileAndProject(r);return a.getLanguageService().getTodoComments(i,r.descriptors)}getDocCommentTemplate(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i);return a.getDocCommentTemplateAtPosition(i,c,this.getPreferences(i),this.getFormatOptions(i))}getSpanOfEnclosingComment(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=r.onlyMultiLine,u=this.getPositionInFile(r,i);return a.getSpanOfEnclosingComment(i,u,c)}getIndentation(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i),u=r.options?nN(r.options):this.getFormatOptions(i),_=a.getIndentationAtPosition(i,c,u);return{position:c,indentation:_}}getBreakpointStatement(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i);return a.getBreakpointStatementAtPosition(i,c)}getNameOrDottedNameSpan(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i);return a.getNameOrDottedNameSpan(i,c,c)}isValidBraceCompletion(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.getPositionInFile(r,i);return a.isValidBraceCompletionAtPosition(i,c,r.openingBrace.charCodeAt(0))}getQuickInfoWorker(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=c.getLanguageService().getQuickInfoAtPosition(a,this.getPosition(r,u));if(!_)return;let h=!!this.getPreferences(a).displayPartsForJSDoc;if(i){let m=QL(_.displayParts);return{kind:_.kind,kindModifiers:_.kindModifiers,start:u.positionToLineOffset(_.textSpan.start),end:u.positionToLineOffset(Fc(_.textSpan)),displayString:m,documentation:h?this.mapDisplayParts(_.documentation,c):QL(_.documentation),tags:this.mapJSDocTagInfo(_.tags,c,h)}}else return h?_:{..._,tags:this.mapJSDocTagInfo(_.tags,c,!1)}}getFormattingEditsForRange(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.projectService.getScriptInfoForNormalizedPath(i),u=c.lineOffsetToPosition(r.line,r.offset),_=c.lineOffsetToPosition(r.endLine,r.endOffset),h=a.getFormattingEditsForRange(i,u,_,this.getFormatOptions(i));if(h)return h.map(m=>this.convertTextChangeToCodeEdit(m,c))}getFormattingEditsForRangeFull(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=r.options?nN(r.options):this.getFormatOptions(i);return a.getFormattingEditsForRange(i,r.position,r.endPosition,c)}getFormattingEditsForDocumentFull(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=r.options?nN(r.options):this.getFormatOptions(i);return a.getFormattingEditsForDocument(i,c)}getFormattingEditsAfterKeystrokeFull(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=r.options?nN(r.options):this.getFormatOptions(i);return a.getFormattingEditsAfterKeystroke(i,r.position,r.key,c)}getFormattingEditsAfterKeystroke(r){let{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(r),c=this.projectService.getScriptInfoForNormalizedPath(i),u=c.lineOffsetToPosition(r.line,r.offset),_=this.getFormatOptions(i),h=a.getFormattingEditsAfterKeystroke(i,u,r.key,_);if(r.key===`
|
|
541
541
|
`&&(!h||h.length===0||LRt(h,u))){let{lineText:m,absolutePosition:T}=c.textStorage.getAbsolutePositionAndLineText(r.line);if(m&&m.search("\\S")<0){let S=a.getIndentationAtPosition(i,u,_),E=0,D,P;for(D=0,P=m.length;D<P;D++)if(m.charAt(D)===" ")E++;else if(m.charAt(D)===" ")E+=_.tabSize;else break;if(S!==E){let I=T+D;h.push({span:ul(T,I),newText:zl.getIndentationString(S,_)})}}}if(h)return h.map(m=>({start:c.positionToLineOffset(m.span.start),end:c.positionToLineOffset(Fc(m.span)),newText:m.newText?m.newText:""}))}getCompletions(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getPosition(r,u),h=c.getLanguageService().getCompletionsAtPosition(a,_,{...lCe(this.getPreferences(a)),triggerCharacter:r.triggerCharacter,triggerKind:r.triggerKind,includeExternalModuleExports:r.includeExternalModuleExports,includeInsertTextCompletions:r.includeInsertTextCompletions},c.projectService.getFormatCodeOptions(a));if(h===void 0)return;if(i==="completions-full")return h;let m=r.prefix||"",T=Wi(h.entries,E=>{if(h.isMemberCompletion||fs(E.name.toLowerCase(),m.toLowerCase())){let D=E.replacementSpan?ug(E.replacementSpan,u):void 0;return{...E,replacementSpan:D,hasAction:E.hasAction||void 0,symbol:void 0}}});return i==="completions"?(h.metadata&&(T.metadata=h.metadata),T):{...h,optionalReplacementSpan:h.optionalReplacementSpan&&ug(h.optionalReplacementSpan,u),entries:T}}getCompletionEntryDetails(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getPosition(r,u),h=c.projectService.getFormatCodeOptions(a),m=!!this.getPreferences(a).displayPartsForJSDoc,T=Wi(r.entryNames,S=>{let{name:E,source:D,data:P}=typeof S=="string"?{name:S,source:void 0,data:void 0}:S;return c.getLanguageService().getCompletionEntryDetails(a,_,E,h,D,this.getPreferences(a),P?ha(P,YRt):void 0)});return i?m?T:T.map(S=>({...S,tags:this.mapJSDocTagInfo(S.tags,c,!1)})):T.map(S=>({...S,codeActions:Dr(S.codeActions,E=>this.mapCodeAction(E)),documentation:this.mapDisplayParts(S.documentation,c),tags:this.mapJSDocTagInfo(S.tags,c,m)}))}getCompileOnSaveAffectedFileList(r){let i=this.getProjects(r,!0,!0),a=this.projectService.getScriptInfo(r.file);return a?MRt(a,c=>this.projectService.getScriptInfoForPath(c),i,(c,u)=>{if(!c.compileOnSaveEnabled||!c.languageServiceEnabled||c.isOrphan())return;let _=c.getCompilationSettings();if(!(_.noEmit||uu(u.fileName)&&!FRt(_)))return{projectFileName:c.getProjectName(),fileNames:c.getCompileOnSaveAffectedFileList(u),projectUsesOutFile:!!_.outFile}}):fu}emitFile(r){let{file:i,project:a}=this.getFileAndProject(r);if(a||i1.ThrowNoProject(),!a.languageServiceEnabled)return r.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let c=a.getScriptInfo(i),{emitSkipped:u,diagnostics:_}=a.emitFile(c,(h,m,T)=>this.host.writeFile(h,m,T));return r.richResponse?{emitSkipped:u,diagnostics:r.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(_):_.map(h=>PR(h,!0))}:!u}getSignatureHelpItems(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getPosition(r,u),h=c.getLanguageService().getSignatureHelpItems(a,_,r),m=!!this.getPreferences(a).displayPartsForJSDoc;if(h&&i){let T=h.applicableSpan;return{...h,applicableSpan:{start:u.positionToLineOffset(T.start),end:u.positionToLineOffset(T.start+T.length)},items:this.mapSignatureHelpItems(h.items,c,m)}}else return m||!h?h:{...h,items:h.items.map(T=>({...T,tags:this.mapJSDocTagInfo(T.tags,c,!1)}))}}toPendingErrorCheck(r){let i=Io(r),a=this.projectService.tryGetDefaultProjectForFile(i);return a&&{fileName:i,project:a}}getDiagnostics(r,i,a){this.suppressDiagnosticEvents||a.length>0&&this.updateErrorCheck(r,a,i)}change(r){let i=this.projectService.getScriptInfo(r.file);L.assert(!!i),i.textStorage.switchToScriptVersionCache();let a=i.lineOffsetToPosition(r.line,r.offset),c=i.lineOffsetToPosition(r.endLine,r.endOffset);a>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(i,l_e({span:{start:a,length:c-a},newText:r.insertString})))}reload(r){let i=Io(r.file),a=r.tmpfile===void 0?void 0:Io(r.tmpfile),c=this.projectService.getScriptInfoForNormalizedPath(i);c&&(this.changeSeq++,c.reloadFromFile(a))}saveToTmp(r,i){let a=this.projectService.getScriptInfo(r);a&&a.saveTo(i)}closeClientFile(r){if(!r)return;let i=ba(r);this.projectService.closeClientFile(i)}mapLocationNavigationBarItems(r,i){return Dr(r,a=>({text:a.text,kind:a.kind,kindModifiers:a.kindModifiers,spans:a.spans.map(c=>ug(c,i)),childItems:this.mapLocationNavigationBarItems(a.childItems,i),indent:a.indent}))}getNavigationBarItems(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=c.getNavigationBarItems(a);return u?i?this.mapLocationNavigationBarItems(u,this.projectService.getScriptInfoForNormalizedPath(a)):u:void 0}toLocationNavigationTree(r,i){return{text:r.text,kind:r.kind,kindModifiers:r.kindModifiers,spans:r.spans.map(a=>ug(a,i)),nameSpan:r.nameSpan&&ug(r.nameSpan,i),childItems:Dr(r.childItems,a=>this.toLocationNavigationTree(a,i))}}getNavigationTree(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=c.getNavigationTree(a);return u?i?this.toLocationNavigationTree(u,this.projectService.getScriptInfoForNormalizedPath(a)):u:void 0}getNavigateToItems(r,i){let a=this.getFullNavigateToItems(r);return i?ka(a,({project:c,navigateToItems:u})=>u.map(_=>{let h=c.getScriptInfo(_.fileName),m={name:_.name,kind:_.kind,kindModifiers:_.kindModifiers,isCaseSensitive:_.isCaseSensitive,matchKind:_.matchKind,file:_.fileName,start:h.positionToLineOffset(_.textSpan.start),end:h.positionToLineOffset(Fc(_.textSpan))};return _.kindModifiers&&_.kindModifiers!==""&&(m.kindModifiers=_.kindModifiers),_.containerName&&_.containerName.length>0&&(m.containerName=_.containerName),_.containerKind&&_.containerKind.length>0&&(m.containerKind=_.containerKind),m})):ka(a,({navigateToItems:c})=>c)}getFullNavigateToItems(r){let{currentFileOnly:i,searchValue:a,maxResultCount:c,projectFileName:u}=r;if(i){L.assertIsDefined(r.file);let{file:D,project:P}=this.getFileAndProject(r);return[{project:P,navigateToItems:P.getLanguageService().getNavigateToItems(a,c,D)}]}let _=this.getHostPreferences(),h=[],m=new Map;if(!r.file&&!u)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(D=>T(D));else{let D=this.getProjects(r);JGe(D,void 0,P=>T(P))}return h;function T(D){let P=D.getLanguageService().getNavigateToItems(a,c,void 0,D.isNonTsProject(),_.excludeLibrarySymbolsInNavTo),I=In(P,R=>S(R)&&!Kie(A8(R),D));I.length&&h.push({project:D,navigateToItems:I})}function S(D){let P=D.name;if(!m.has(P))return m.set(P,[D]),!0;let I=m.get(P);for(let R of I)if(E(R,D))return!1;return I.push(D),!0}function E(D,P){return D===P?!0:!D||!P?!1:D.containerKind===P.containerKind&&D.containerName===P.containerName&&D.fileName===P.fileName&&D.isCaseSensitive===P.isCaseSensitive&&D.kind===P.kind&&D.kindModifiers===P.kindModifiers&&D.matchKind===P.matchKind&&D.name===P.name&&D.textSpan.start===P.textSpan.start&&D.textSpan.length===P.textSpan.length}}getSupportedCodeFixes(r){if(!r)return pne();if(r.file){let{file:a,project:c}=this.getFileAndProject(r);return c.getLanguageService().getSupportedCodeFixes(a)}let i=this.getProject(r.projectFileName);return i||i1.ThrowNoProject(),i.getLanguageService().getSupportedCodeFixes()}isLocation(r){return r.line!==void 0}extractPositionOrRange(r,i){let a,c;return this.isLocation(r)?a=u(r):c=this.getRange(r,i),L.checkDefined(a===void 0?c:a);function u(_){return _.position!==void 0?_.position:i.lineOffsetToPosition(_.line,_.offset)}t(u,"getPosition")}getRange(r,i){let{startPosition:a,endPosition:c}=this.getStartAndEndPosition(r,i);return{pos:a,end:c}}getApplicableRefactors(r){let{file:i,project:a}=this.getFileAndProject(r),c=a.getScriptInfoForNormalizedPath(i);return a.getLanguageService().getApplicableRefactors(i,this.extractPositionOrRange(r,c),this.getPreferences(i),r.triggerReason,r.kind,r.includeInteractiveActions).map(_=>({..._,actions:_.actions.map(h=>({...h,range:h.range?{start:iN({line:h.range.start.line,character:h.range.start.offset}),end:iN({line:h.range.end.line,character:h.range.end.offset})}:void 0}))}))}getEditsForRefactor(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=c.getScriptInfoForNormalizedPath(a),_=c.getLanguageService().getEditsForRefactor(a,this.getFormatOptions(a),this.extractPositionOrRange(r,u),r.refactor,r.action,this.getPreferences(a),r.interactiveRefactorArguments);if(_===void 0)return{edits:[]};if(i){let{renameFilename:h,renameLocation:m,edits:T}=_,S;if(h!==void 0&&m!==void 0){let E=c.getScriptInfoForNormalizedPath(Io(h));S=PCe(CD(E.getSnapshot()),h,m,T)}return{renameLocation:S,renameFilename:h,edits:this.mapTextChangesToCodeEdits(T),notApplicableReason:_.notApplicableReason}}return _}getMoveToRefactoringFileSuggestions(r){let{file:i,project:a}=this.getFileAndProject(r),c=a.getScriptInfoForNormalizedPath(i);return a.getLanguageService().getMoveToRefactoringFileSuggestions(i,this.extractPositionOrRange(r,c),this.getPreferences(i))}preparePasteEdits(r){let{file:i,project:a}=this.getFileAndProject(r);return a.getLanguageService().preparePasteEditsForFile(i,r.copiedTextSpan.map(c=>this.getRange({file:i,startLine:c.start.line,startOffset:c.start.offset,endLine:c.end.line,endOffset:c.end.offset},this.projectService.getScriptInfoForNormalizedPath(i))))}getPasteEdits(r){let{file:i,project:a}=this.getFileAndProject(r);if(D8(i))return;let c=r.copiedFrom?{file:r.copiedFrom.file,range:r.copiedFrom.spans.map(_=>this.getRange({file:r.copiedFrom.file,startLine:_.start.line,startOffset:_.start.offset,endLine:_.end.line,endOffset:_.end.offset},a.getScriptInfoForNormalizedPath(Io(r.copiedFrom.file))))}:void 0,u=a.getLanguageService().getPasteEdits({targetFile:i,pastedText:r.pastedText,pasteLocations:r.pasteLocations.map(_=>this.getRange({file:i,startLine:_.start.line,startOffset:_.start.offset,endLine:_.end.line,endOffset:_.end.offset},a.getScriptInfoForNormalizedPath(i))),copiedFrom:c,preferences:this.getPreferences(i)},this.getFormatOptions(i));return u&&this.mapPasteEditsAction(u)}organizeImports(r,i){L.assert(r.scope.type==="file");let{file:a,project:c}=this.getFileAndProject(r.scope.args),u=c.getLanguageService().organizeImports({fileName:a,mode:r.mode??(r.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(a),this.getPreferences(a));return i?this.mapTextChangesToCodeEdits(u):u}getEditsForFileRename(r,i){let a=Io(r.oldFilePath),c=Io(r.newFilePath),u=this.getHostFormatOptions(),_=this.getHostPreferences(),h=new Set,m=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(T=>{let S=T.getLanguageService().getEditsForFileRename(a,c,u,_),E=[];for(let D of S)h.has(D.fileName)||(m.push(D),E.push(D.fileName));for(let D of E)h.add(D)}),i?m.map(T=>this.mapTextChangeToCodeEdit(T)):m}getCodeFixes(r,i){let{file:a,project:c}=this.getFileAndProject(r),u=c.getScriptInfoForNormalizedPath(a),{startPosition:_,endPosition:h}=this.getStartAndEndPosition(r,u),m;try{m=c.getLanguageService().getCodeFixesAtPosition(a,_,h,r.errorCodes,this.getFormatOptions(a),this.getPreferences(a))}catch(T){let S=T instanceof Error?T:new Error(T),E=c.getLanguageService(),D=[...E.getSyntacticDiagnostics(a),...E.getSemanticDiagnostics(a),...E.getSuggestionDiagnostics(a)].filter(I=>U7(_,h-_,I.start,I.length)).map(I=>I.code),P=r.errorCodes.find(I=>!D.includes(I));throw P!==void 0&&(S.message+=`
|
|
542
542
|
Additional information: BADCLIENT: Bad error code, ${P} not found in range ${_}..${h} (found: ${D.join(", ")})`),S}return i?m.map(T=>this.mapCodeFixAction(T)):m}getCombinedCodeFix({scope:r,fixId:i},a){L.assert(r.type==="file");let{file:c,project:u}=this.getFileAndProject(r.args),_=u.getLanguageService().getCombinedCodeFix({type:"file",fileName:c},i,this.getFormatOptions(c),this.getPreferences(c));return a?{changes:this.mapTextChangesToCodeEdits(_.changes),commands:_.commands}:_}applyCodeActionCommand(r){let i=r.command;for(let a of cw(i)){let{file:c,project:u}=this.getFileAndProject(a);u.getLanguageService().applyCodeActionCommand(a,this.getFormatOptions(c)).then(_=>{},_=>{})}return{}}getStartAndEndPosition(r,i){let a,c;return r.startPosition!==void 0?a=r.startPosition:(a=i.lineOffsetToPosition(r.startLine,r.startOffset),r.startPosition=a),r.endPosition!==void 0?c=r.endPosition:(c=i.lineOffsetToPosition(r.endLine,r.endOffset),r.endPosition=c),{startPosition:a,endPosition:c}}mapCodeAction({description:r,changes:i,commands:a}){return{description:r,changes:this.mapTextChangesToCodeEdits(i),commands:a}}mapCodeFixAction({fixName:r,description:i,changes:a,commands:c,fixId:u,fixAllDescription:_}){return{fixName:r,description:i,changes:this.mapTextChangesToCodeEdits(a),commands:c,fixId:u,fixAllDescription:_}}mapPasteEditsAction({edits:r,fixId:i}){return{edits:this.mapTextChangesToCodeEdits(r),fixId:i}}mapTextChangesToCodeEdits(r){return r.map(i=>this.mapTextChangeToCodeEdit(i))}mapTextChangeToCodeEdit(r){let i=this.projectService.getScriptInfoOrConfig(r.fileName);return!!r.isNewFile==!!i&&(i||this.projectService.logErrorForScriptInfoNotFound(r.fileName),L.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!r.isNewFile,hasScriptInfo:!!i}))),i?{fileName:r.fileName,textChanges:r.textChanges.map(a=>JRt(a,i))}:VRt(r)}convertTextChangeToCodeEdit(r,i){return{start:i.positionToLineOffset(r.span.start),end:i.positionToLineOffset(r.span.start+r.span.length),newText:r.newText?r.newText:""}}getBraceMatching(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getPosition(r,u),h=c.getBraceMatchingAtPosition(a,_);return h?i?h.map(m=>ug(m,u)):h:void 0}getDiagnosticsForProject(r,i,a){if(this.suppressDiagnosticEvents)return;let{fileNames:c,languageServiceDisabled:u}=this.getProjectInfoWorker(a,void 0,!0,void 0,!0);if(u)return;let _=c.filter(R=>!R.includes("lib.d.ts"));if(_.length===0)return;let h=[],m=[],T=[],S=[],E=Io(a),D=this.projectService.ensureDefaultProjectForFile(E);for(let R of _)this.getCanonicalFileName(R)===this.getCanonicalFileName(a)?h.push(R):this.projectService.getScriptInfo(R).isScriptOpen()?m.push(R):uu(R)?S.push(R):T.push(R);let I=[...h,...m,...T,...S].map(R=>({fileName:R,project:D}));this.updateErrorCheck(r,I,i,!1)}configurePlugin(r){this.projectService.configurePlugin(r)}getSmartSelectionRange(r,i){let{locations:a}=r,{file:c,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(r),_=L.checkDefined(this.projectService.getScriptInfo(c));return Dr(a,h=>{let m=this.getPosition(h,_),T=u.getSmartSelectionRange(c,m);return i?this.mapSelectionRange(T,_):T})}toggleLineComment(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfo(a),_=this.getRange(r,u),h=c.toggleLineComment(a,_);if(i){let m=this.projectService.getScriptInfoForNormalizedPath(a);return h.map(T=>this.convertTextChangeToCodeEdit(T,m))}return h}toggleMultilineComment(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getRange(r,u),h=c.toggleMultilineComment(a,_);if(i){let m=this.projectService.getScriptInfoForNormalizedPath(a);return h.map(T=>this.convertTextChangeToCodeEdit(T,m))}return h}commentSelection(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getRange(r,u),h=c.commentSelection(a,_);if(i){let m=this.projectService.getScriptInfoForNormalizedPath(a);return h.map(T=>this.convertTextChangeToCodeEdit(T,m))}return h}uncommentSelection(r,i){let{file:a,languageService:c}=this.getFileAndLanguageServiceForSyntacticOperation(r),u=this.projectService.getScriptInfoForNormalizedPath(a),_=this.getRange(r,u),h=c.uncommentSelection(a,_);if(i){let m=this.projectService.getScriptInfoForNormalizedPath(a);return h.map(T=>this.convertTextChangeToCodeEdit(T,m))}return h}mapSelectionRange(r,i){let a={textSpan:ug(r.textSpan,i)};return r.parent&&(a.parent=this.mapSelectionRange(r.parent,i)),a}getScriptInfoFromProjectService(r){let i=Io(r),a=this.projectService.getScriptInfoForNormalizedPath(i);return a||(this.projectService.logErrorForScriptInfoNotFound(i),i1.ThrowNoProject())}toProtocolCallHierarchyItem(r){let i=this.getScriptInfoFromProjectService(r.file);return{name:r.name,kind:r.kind,kindModifiers:r.kindModifiers,file:r.file,containerName:r.containerName,span:ug(r.span,i),selectionSpan:ug(r.selectionSpan,i)}}toProtocolCallHierarchyIncomingCall(r){let i=this.getScriptInfoFromProjectService(r.from.file);return{from:this.toProtocolCallHierarchyItem(r.from),fromSpans:r.fromSpans.map(a=>ug(a,i))}}toProtocolCallHierarchyOutgoingCall(r,i){return{to:this.toProtocolCallHierarchyItem(r.to),fromSpans:r.fromSpans.map(a=>ug(a,i))}}prepareCallHierarchy(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.projectService.getScriptInfoForNormalizedPath(i);if(c){let u=this.getPosition(r,c),_=a.getLanguageService().prepareCallHierarchy(i,u);return _&&xre(_,h=>this.toProtocolCallHierarchyItem(h))}}provideCallHierarchyIncomingCalls(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.getScriptInfoFromProjectService(i);return a.getLanguageService().provideCallHierarchyIncomingCalls(i,this.getPosition(r,c)).map(_=>this.toProtocolCallHierarchyIncomingCall(_))}provideCallHierarchyOutgoingCalls(r){let{file:i,project:a}=this.getFileAndProject(r),c=this.getScriptInfoFromProjectService(i);return a.getLanguageService().provideCallHierarchyOutgoingCalls(i,this.getPosition(r,c)).map(_=>this.toProtocolCallHierarchyOutgoingCall(_,c))}getCanonicalFileName(r){let i=this.host.useCaseSensitiveFileNames?r:fb(r);return ba(i)}exit(){}notRequired(r){return r&&this.doOutput(void 0,r.command,r.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(r){return{response:r,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(r,i){if(this.handlers.has(r))throw new Error(`Protocol handler already exists for command "${r}"`);this.handlers.set(r,i)}setCurrentRequest(r){L.assert(this.currentRequestId===void 0),this.currentRequestId=r,this.cancellationToken.setRequest(r)}resetCurrentRequest(r){L.assert(this.currentRequestId===r),this.currentRequestId=void 0,this.cancellationToken.resetRequest(r)}executeWithRequestId(r,i,a){let c=this.performanceData;try{return this.performanceData=a,this.setCurrentRequest(r),i()}finally{this.resetCurrentRequest(r),this.performanceData=c}}executeCommand(r){let i=this.handlers.get(r.command);if(i){let a=this.executeWithRequestId(r.seq,()=>i(r),void 0);return this.projectService.enableRequestedPlugins(),a}else return this.logger.msg(`Unrecognized JSON command:${f2(r)}`,"Err"),this.doOutput(void 0,"unknown",r.seq,!1,void 0,`Unrecognized JSON command: ${r.command}`),{responseRequired:!1}}onMessage(r){var i,a,c,u,_,h,m;this.gcTimer.scheduleCollect();let T,S=this.performanceData;this.logger.hasLevel(2)&&(T=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${e8(this.toStringMessage(r))}`));let E,D;try{E=this.parseMessage(r),D=E.arguments&&E.arguments.file?E.arguments:void 0,(i=En)==null||i.instant(En.Phase.Session,"request",{seq:E.seq,command:E.command}),(a=En)==null||a.push(En.Phase.Session,"executeCommand",{seq:E.seq,command:E.command},!0);let{response:P,responseRequired:I,performanceData:R}=this.executeCommand(E);if((c=En)==null||c.pop(),this.logger.hasLevel(2)){let M=ORt(this.hrtime(T)).toFixed(4);I?this.logger.perftrc(`${E.seq}::${E.command}: elapsed time (in milliseconds) ${M}`):this.logger.perftrc(`${E.seq}::${E.command}: async elapsed time (in milliseconds) ${M}`)}(u=En)==null||u.instant(En.Phase.Session,"response",{seq:E.seq,command:E.command,success:!!P}),P?this.doOutput(P,E.command,E.seq,!0,R):I&&this.doOutput(void 0,E.command,E.seq,!1,R,"No content available.")}catch(P){if((_=En)==null||_.popAll(),P instanceof QI){(h=En)==null||h.instant(En.Phase.Session,"commandCanceled",{seq:E?.seq,command:E?.command}),this.doOutput({canceled:!0},E.command,E.seq,!0,this.performanceData);return}this.logErrorWorker(P,this.toStringMessage(r),D),(m=En)==null||m.instant(En.Phase.Session,"commandError",{seq:E?.seq,command:E?.command,message:P.message}),this.doOutput(void 0,E?E.command:"unknown",E?E.seq:0,!1,this.performanceData,"Error processing request. "+P.message+`
|
|
543
|
-
`+P.stack)}finally{this.performanceData=S}}parseMessage(r){return JSON.parse(r)}toStringMessage(r){return r}getFormatOptions(r){return this.projectService.getFormatCodeOptions(r)}getPreferences(r){return this.projectService.getPreferences(r)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function KGe(e){let r=e.diagnosticsDuration&&Ps(e.diagnosticsDuration,([i,a])=>({...a,file:i}));return{...e,diagnosticsDuration:r}}t(KGe,"toProtocolPerformanceData");function ug(e,r){return{start:r.positionToLineOffset(e.start),end:r.positionToLineOffset(Fc(e))}}t(ug,"toProtocolTextSpan");function DCe(e,r,i){let a=ug(e,i),c=r&&ug(r,i);return c?{...a,contextStart:c.start,contextEnd:c.end}:a}t(DCe,"toProtocolTextSpanWithContext");function JRt(e,r){return{start:XGe(r,e.span.start),end:XGe(r,Fc(e.span)),newText:e.newText}}t(JRt,"convertTextChangeToCodeEdit");function XGe(e,r){return SCe(e)?qRt(e.getLineAndCharacterOfPosition(r)):e.positionToLineOffset(r)}t(XGe,"positionToLineOffset");function WRt(e,r){let i=e.ranges.map(a=>({start:r.positionToLineOffset(a.start),end:r.positionToLineOffset(a.start+a.length)}));return e.wordPattern?{ranges:i,wordPattern:e.wordPattern}:{ranges:i}}t(WRt,"convertLinkedEditInfoToRanges");function qRt(e){return{line:e.line+1,offset:e.character+1}}t(qRt,"locationFromLineAndCharacter");function VRt(e){L.assert(e.textChanges.length===1);let r=Ga(e.textChanges);return L.assert(r.span.start===0&&r.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:r.newText}]}}t(VRt,"convertNewFileTextChangeToCodeEdit");function PCe(e,r,i,a){let c=HRt(e,r,a),{line:u,character:_}=vA(mw(c),i);return{line:u+1,offset:_+1}}t(PCe,"getLocationInNewDocument");function HRt(e,r,i){for(let{fileName:a,textChanges:c}of i)if(a===r)for(let u=c.length-1;u>=0;u--){let{newText:_,span:{start:h,length:m}}=c[u];e=e.slice(0,h)+_+e.slice(h+m)}return e}t(HRt,"applyEdits");function ZGe(e,{fileName:r,textSpan:i,contextSpan:a,isWriteAccess:c,isDefinition:u},{disableLineTextInReferences:_}){let h=L.checkDefined(e.getScriptInfo(r)),m=DCe(i,a,h),T=_?void 0:GRt(h,m);return{file:r,...m,lineText:T,isWriteAccess:c,isDefinition:u}}t(ZGe,"referenceEntryToReferencesResponseItem");function GRt(e,r){let i=e.lineToTextSpan(r.start.line-1);return e.getSnapshot().getText(i.start,Fc(i)).replace(/\r|\n/g,"")}t(GRt,"getLineText");function YRt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}t(YRt,"isCompletionEntryData");var sN=4,ACe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(ACe||{}),KRt=class{static{t(this,"EditWalker")}constructor(){this.goSubtree=!0,this.lineIndex=new AR,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new aN,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,r){r&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let a=AR.linesFromText(e).lines;a.length>1&&a[a.length-1]===""&&a.pop();let c,u;for(let h=this.endBranch.length-1;h>=0;h--)this.endBranch[h].updateCounts(),this.endBranch[h].charCount()===0&&(u=this.endBranch[h],h>0?c=this.endBranch[h-1]:c=this.branchNode);u&&c.remove(u);let _=this.startPath[this.startPath.length-1];if(a.length>0)if(_.text=a[0],a.length>1){let h=new Array(a.length-1),m=_;for(let E=1;E<a.length;E++)h[E-1]=new IW(a[E]);let T=this.startPath.length-2;for(;T>=0;){let E=this.startPath[T];h=E.insertAt(m,h),T--,m=E}let S=h.length;for(;S>0;){let E=new aN;E.add(this.lineIndex.root),h=E.insertAt(this.lineIndex.root,h),S=h.length,this.lineIndex.root=E}this.lineIndex.root.updateCounts()}else for(let h=this.startPath.length-2;h>=0;h--)this.startPath[h].updateCounts();else{this.startPath[this.startPath.length-2].remove(_);for(let m=this.startPath.length-2;m>=0;m--)this.startPath[m].updateCounts()}return this.lineIndex}post(e,r,i){i===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,r,i,a,c){let u=this.stack[this.stack.length-1];this.state===2&&c===1&&(this.state=1,this.branchNode=u,this.lineCollectionAtBranch=i);let _;function h(m){return m.isLeaf()?new IW(""):new aN}switch(t(h,"fresh"),c){case 0:this.goSubtree=!1,this.state!==4&&u.add(i);break;case 1:this.state===4?this.goSubtree=!1:(_=h(i),u.add(_),this.startPath.push(_));break;case 2:this.state!==4?(_=h(i),u.add(_),this.startPath.push(_)):i.isLeaf()||(_=h(i),u.add(_),this.endBranch.push(_));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:i.isLeaf()||(_=h(i),u.add(_),this.endBranch.push(_));break;case 5:this.goSubtree=!1,this.state!==1&&u.add(i);break}this.goSubtree&&this.stack.push(_)}leaf(e,r,i){this.state===1?this.initialText=i.text.substring(0,e):this.state===2?(this.initialText=i.text.substring(0,e),this.trailingText=i.text.substring(e+r)):this.trailingText=i.text.substring(e+r)}},XRt=class{static{t(this,"TextChange9")}constructor(e,r,i){this.pos=e,this.deleteLen=r,this.insertedText=i}getTextChangeRange(){return z7(Gu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Xie=class Yk{static{t(this,"_ScriptVersionCache")}constructor(){this.changes=[],this.versions=new Array(Yk.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(r){if(!(r<this.minVersion||r>this.currentVersion))return r%Yk.maxVersions}currentVersionToIndex(){return this.currentVersion%Yk.maxVersions}edit(r,i,a){this.changes.push(new XRt(r,i,a)),(this.changes.length>Yk.changeNumberThreshold||i>Yk.changeLengthThreshold||a&&a.length>Yk.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let r=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let i=r.index;for(let a of this.changes)i=i.edit(a.pos,a.deleteLen,a.insertedText);r=new QGe(this.currentVersion+1,this,i,this.changes),this.currentVersion=r.version,this.versions[this.currentVersionToIndex()]=r,this.changes=[],this.currentVersion-this.minVersion>=Yk.maxVersions&&(this.minVersion=this.currentVersion-Yk.maxVersions+1)}return r}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(r){return this._getSnapshot().index.lineNumberToInfo(r)}lineOffsetToPosition(r,i){return this._getSnapshot().index.absolutePositionOfStartOfLine(r)+(i-1)}positionToLineOffset(r){return this._getSnapshot().index.positionToLineOffset(r)}lineToTextSpan(r){let i=this._getSnapshot().index,{lineText:a,absolutePosition:c}=i.lineNumberToInfo(r+1),u=a!==void 0?a.length:i.absolutePositionOfStartOfLine(r+2)-c;return Gu(c,u)}getTextChangesBetweenVersions(r,i){if(r<i)if(r>=this.minVersion){let a=[];for(let c=r+1;c<=i;c++){let u=this.versions[this.versionToIndex(c)];for(let _ of u.changesSincePreviousVersion)a.push(_.getTextChangeRange())}return lde(a)}else return;else return nB}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(r){let i=new Yk,a=new QGe(0,i,new AR);i.versions[i.currentVersion]=a;let c=AR.linesFromText(r);return a.index.load(c.lines),i}};Xie.changeNumberThreshold=8,Xie.changeLengthThreshold=256,Xie.maxVersions=8;var Zie=Xie,QGe=class zpt{static{t(this,"_LineIndexSnapshot")}constructor(r,i,a,c=fu){this.version=r,this.cache=i,this.index=a,this.changesSincePreviousVersion=c}getText(r,i){return this.index.getText(r,i-r)}getLength(){return this.index.getLength()}getChangeRange(r){if(r instanceof zpt&&this.cache===r.cache)return this.version<=r.version?nB:this.cache.getTextChangesBetweenVersions(r.version,this.version)}},AR=class u3e{static{t(this,"_LineIndex")}constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(r){return this.lineNumberToInfo(r).absolutePosition}positionToLineOffset(r){let{oneBasedLine:i,zeroBasedColumn:a}=this.root.charOffsetToLineInfo(1,r);return{line:i,offset:a+1}}positionToColumnAndLineText(r){return this.root.charOffsetToLineInfo(1,r)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(r){let i=this.getLineCount();if(r<=i){let{position:a,leaf:c}=this.root.lineNumberToInfo(r,0);return{absolutePosition:a,lineText:c&&c.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(r){if(r.length>0){let i=[];for(let a=0;a<r.length;a++)i[a]=new IW(r[a]);this.root=u3e.buildTreeFromBottom(i)}else this.root=new aN}walk(r,i,a){this.root.walk(r,i,a)}getText(r,i){let a="";return i>0&&r<this.root.charCount()&&this.walk(r,i,{goSubtree:!0,done:!1,leaf:t((c,u,_)=>{a=a.concat(_.text.substring(c,c+u))},"leaf")}),a}getLength(){return this.root.charCount()}every(r,i,a){a||(a=this.root.charCount());let c={goSubtree:!0,done:!1,leaf(u,_,h){r(h,u,_)||(this.done=!0)}};return this.walk(i,a-i,c),!c.done}edit(r,i,a){if(this.root.charCount()===0)return L.assert(i===0),a!==void 0?(this.load(u3e.linesFromText(a).lines),this):void 0;{let c;if(this.checkEdits){let h=this.getText(0,this.root.charCount());c=h.slice(0,r)+a+h.slice(r+i)}let u=new KRt,_=!1;if(r>=this.root.charCount()){r=this.root.charCount()-1;let h=this.getText(r,1);a?a=h+a:a=h,i=0,_=!0}else if(i>0){let h=r+i,{zeroBasedColumn:m,lineText:T}=this.positionToColumnAndLineText(h);m===0&&(i+=T.length,a=a?a+T:T)}if(this.root.walk(r,i,u),u.insertLines(a,_),this.checkEdits){let h=u.lineIndex.getText(0,u.lineIndex.getLength());L.assert(c===h,"buffer edit mismatch")}return u.lineIndex}}static buildTreeFromBottom(r){if(r.length<sN)return new aN(r);let i=new Array(Math.ceil(r.length/sN)),a=0;for(let c=0;c<i.length;c++){let u=Math.min(a+sN,r.length);i[c]=new aN(r.slice(a,u)),a=u}return this.buildTreeFromBottom(i)}static linesFromText(r){let i=mw(r);if(i.length===0)return{lines:[],lineMap:i};let a=new Array(i.length),c=i.length-1;for(let _=0;_<c;_++)a[_]=r.substring(i[_],i[_+1]);let u=r.substring(i[c]);return u.length>0?a[c]=u:a.pop(),{lines:a,lineMap:i}}},aN=class f3e{static{t(this,"_LineNode")}constructor(r=[]){this.children=r,this.totalChars=0,this.totalLines=0,r.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let r of this.children)this.totalChars+=r.charCount(),this.totalLines+=r.lineCount()}execWalk(r,i,a,c,u){return a.pre&&a.pre(r,i,this.children[c],this,u),a.goSubtree?(this.children[c].walk(r,i,a),a.post&&a.post(r,i,this.children[c],this,u)):a.goSubtree=!0,a.done}skipChild(r,i,a,c,u){c.pre&&!c.done&&(c.pre(r,i,this.children[a],this,u),c.goSubtree=!0)}walk(r,i,a){if(this.children.length===0)return;let c=0,u=this.children[c].charCount(),_=r;for(;_>=u;)this.skipChild(_,i,c,a,0),_-=u,c++,u=this.children[c].charCount();if(_+i<=u){if(this.execWalk(_,i,a,c,2))return}else{if(this.execWalk(_,u-_,a,c,1))return;let h=i-(u-_);for(c++,u=this.children[c].charCount();h>u;){if(this.execWalk(0,u,a,c,3))return;h-=u,c++,u=this.children[c].charCount()}if(h>0&&this.execWalk(0,h,a,c,4))return}if(a.pre){let h=this.children.length;if(c<h-1)for(let m=c+1;m<h;m++)this.skipChild(0,0,m,a,5)}}charOffsetToLineInfo(r,i){if(this.children.length===0)return{oneBasedLine:r,zeroBasedColumn:i,lineText:void 0};for(let u of this.children){if(u.charCount()>i)return u.isLeaf()?{oneBasedLine:r,zeroBasedColumn:i,lineText:u.text}:u.charOffsetToLineInfo(r,i);i-=u.charCount(),r+=u.lineCount()}let a=this.lineCount();if(a===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let c=L.checkDefined(this.lineNumberToInfo(a,0).leaf);return{oneBasedLine:a,zeroBasedColumn:c.charCount(),lineText:void 0}}lineNumberToInfo(r,i){for(let a of this.children){let c=a.lineCount();if(c>=r)return a.isLeaf()?{position:i,leaf:a}:a.lineNumberToInfo(r,i);r-=c,i+=a.charCount()}return{position:i,leaf:void 0}}splitAfter(r){let i,a=this.children.length;r++;let c=r;if(r<a){for(i=new f3e;r<a;)i.add(this.children[r]),r++;i.updateCounts()}return this.children.length=c,i}remove(r){let i=this.findChildIndex(r),a=this.children.length;if(i<a-1)for(let c=i;c<a-1;c++)this.children[c]=this.children[c+1];this.children.pop()}findChildIndex(r){let i=this.children.indexOf(r);return L.assert(i!==-1),i}insertAt(r,i){let a=this.findChildIndex(r),c=this.children.length,u=i.length;if(c<sN&&a===c-1&&u===1)return this.add(i[0]),this.updateCounts(),[];{let _=this.splitAfter(a),h=0;for(a++;a<sN&&h<u;)this.children[a]=i[h],a++,h++;let m=[],T=0;if(h<u){T=Math.ceil((u-h)/sN),m=new Array(T);let S=0;for(let D=0;D<T;D++)m[D]=new f3e;let E=m[0];for(;h<u;)E.add(i[h]),h++,E.children.length===sN&&(S++,E=m[S]);for(let D=m.length-1;D>=0;D--)m[D].children.length===0&&m.pop()}_&&m.push(_),this.updateCounts();for(let S=0;S<T;S++)m[S].updateCounts();return m}}add(r){this.children.push(r),L.assert(this.children.length<=sN)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},IW=class{static{t(this,"LineLeaf")}constructor(e){this.text=e}isLeaf(){return!0}walk(e,r,i){i.leaf(e,r,this)}charCount(){return this.text.length}lineCount(){return 1}},eYe=class $pt{static{t(this,"_TypingsInstallerAdapter")}constructor(r,i,a,c,u,_){this.telemetryEnabled=r,this.logger=i,this.host=a,this.globalTypingsCacheLocation=c,this.event=u,this.maxActiveRequestCount=_,this.activeRequestCount=0,this.requestQueue=C7(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(r){var i;return Xb.validatePackageName(r)!==Xb.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((i=this.typesRegistryCache)!=null&&i.has(r)))}installPackage(r){this.packageInstallId++;let i={kind:"installPackage",...r,id:this.packageInstallId},a=new Promise((c,u)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:c,reject:u})});return this.installer.send(i),a}attach(r){this.projectService=r,this.installer=this.createInstallerProcess()}onProjectClosed(r){this.installer.send({projectName:r.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(r,i,a){let c=MEe(r,i,a);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${f2(c)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(c):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${c.projectName}`),this.requestQueue.enqueue(c),this.requestMap.set(c.projectName,c))}handleMessage(r){var i,a;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${f2(r)}`),r.kind){case bte:this.typesRegistryCache=new Map(Object.entries(r.typesRegistry));break;case X$:{let c=(i=this.packageInstalledPromise)==null?void 0:i.get(r.id);L.assertIsDefined(c,"Should find the promise for package install"),(a=this.packageInstalledPromise)==null||a.delete(r.id),r.success?c.resolve({successMessage:r.message}):c.reject(r.message),this.projectService.updateTypingsForProject(r),this.event(r,"setTypings");break}case Uve:{let c={message:r.message};this.event(c,"typesInstallerInitializationFailed");break}case Ste:{let c={eventId:r.eventId,packages:r.packagesToInstall};this.event(c,"beginInstallTypes");break}case Tte:{if(this.telemetryEnabled){let _={telemetryEventName:"typingsInstalled",payload:{installedPackages:r.packagesToInstall.join(","),installSuccess:r.installSuccess,typingsInstallerVersion:r.typingsInstallerVersion}};this.event(_,"telemetry")}let c={eventId:r.eventId,packages:r.packagesToInstall,success:r.installSuccess};this.event(c,"endInstallTypes");break}case K$:{this.projectService.updateTypingsForProject(r);break}case Y$:{for(this.activeRequestCount>0?this.activeRequestCount--:L.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let c=this.requestQueue.dequeue();if(this.requestMap.get(c.projectName)===c){this.requestMap.delete(c.projectName),this.scheduleRequest(c);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${c.projectName}`)}this.projectService.updateTypingsForProject(r),this.event(r,"setTypings");break}case EL:this.projectService.watchTypingLocations(r);break;default:}}scheduleRequest(r){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${r.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${f2(r)}`),this.installer.send(r)},$pt.requestDelayMillis,`${r.projectName}::${r.kind}`)}};eYe.requestDelayMillis=100;var tYe=eYe,rYe={};x(rYe,{ActionInvalidate:t(()=>K$,"ActionInvalidate"),ActionPackageInstalled:t(()=>X$,"ActionPackageInstalled"),ActionSet:t(()=>Y$,"ActionSet"),ActionWatchTypingLocations:t(()=>EL,"ActionWatchTypingLocations"),Arguments:t(()=>xte,"Arguments"),AutoImportProviderProject:t(()=>iCe,"AutoImportProviderProject"),AuxiliaryProject:t(()=>rCe,"AuxiliaryProject"),CharRangeSection:t(()=>ACe,"CharRangeSection"),CloseFileWatcherEvent:t(()=>Uie,"CloseFileWatcherEvent"),CommandNames:t(()=>zGe,"CommandNames"),ConfigFileDiagEvent:t(()=>Lie,"ConfigFileDiagEvent"),ConfiguredProject:t(()=>sCe,"ConfiguredProject"),ConfiguredProjectLoadKind:t(()=>fCe,"ConfiguredProjectLoadKind"),CreateDirectoryWatcherEvent:t(()=>Bie,"CreateDirectoryWatcherEvent"),CreateFileWatcherEvent:t(()=>jie,"CreateFileWatcherEvent"),Errors:t(()=>i1,"Errors"),EventBeginInstallTypes:t(()=>Ste,"EventBeginInstallTypes"),EventEndInstallTypes:t(()=>Tte,"EventEndInstallTypes"),EventInitializationFailed:t(()=>Uve,"EventInitializationFailed"),EventTypesRegistry:t(()=>bte,"EventTypesRegistry"),ExternalProject:t(()=>Pie,"ExternalProject"),GcTimer:t(()=>WEe,"GcTimer"),InferredProject:t(()=>tCe,"InferredProject"),LargeFileReferencedEvent:t(()=>Fie,"LargeFileReferencedEvent"),LineIndex:t(()=>AR,"LineIndex"),LineLeaf:t(()=>IW,"LineLeaf"),LineNode:t(()=>aN,"LineNode"),LogLevel:t(()=>LEe,"LogLevel"),Msg:t(()=>REe,"Msg"),OpenFileInfoTelemetryEvent:t(()=>aCe,"OpenFileInfoTelemetryEvent"),Project:t(()=>BD,"Project"),ProjectInfoTelemetryEvent:t(()=>Mie,"ProjectInfoTelemetryEvent"),ProjectKind:t(()=>P8,"ProjectKind"),ProjectLanguageServiceStateEvent:t(()=>Rie,"ProjectLanguageServiceStateEvent"),ProjectLoadingFinishEvent:t(()=>Oie,"ProjectLoadingFinishEvent"),ProjectLoadingStartEvent:t(()=>Iie,"ProjectLoadingStartEvent"),ProjectService:t(()=>bCe,"ProjectService"),ProjectsUpdatedInBackgroundEvent:t(()=>PW,"ProjectsUpdatedInBackgroundEvent"),ScriptInfo:t(()=>GEe,"ScriptInfo"),ScriptVersionCache:t(()=>Zie,"ScriptVersionCache"),Session:t(()=>YGe,"Session"),TextStorage:t(()=>HEe,"TextStorage"),ThrottledOperations:t(()=>JEe,"ThrottledOperations"),TypingsInstallerAdapter:t(()=>tYe,"TypingsInstallerAdapter"),allFilesAreJsOrDts:t(()=>ZEe,"allFilesAreJsOrDts"),allRootFilesAreJsOrDts:t(()=>XEe,"allRootFilesAreJsOrDts"),asNormalizedPath:t(()=>pGe,"asNormalizedPath"),convertCompilerOptions:t(()=>AW,"convertCompilerOptions"),convertFormatOptions:t(()=>nN,"convertFormatOptions"),convertScriptKindName:t(()=>$ie,"convertScriptKindName"),convertTypeAcquisition:t(()=>cCe,"convertTypeAcquisition"),convertUserPreferences:t(()=>lCe,"convertUserPreferences"),convertWatchOptions:t(()=>DR,"convertWatchOptions"),countEachFileTypes:t(()=>ER,"countEachFileTypes"),createInstallTypingsRequest:t(()=>MEe,"createInstallTypingsRequest"),createModuleSpecifierCache:t(()=>xCe,"createModuleSpecifierCache"),createNormalizedPathMap:t(()=>dGe,"createNormalizedPathMap"),createPackageJsonCache:t(()=>ECe,"createPackageJsonCache"),createSortedArray:t(()=>$Ee,"createSortedArray"),emptyArray:t(()=>fu,"emptyArray"),findArgument:t(()=>pMe,"findArgument"),formatDiagnosticToProtocol:t(()=>PR,"formatDiagnosticToProtocol"),formatMessage:t(()=>CCe,"formatMessage"),getBaseConfigFileName:t(()=>Die,"getBaseConfigFileName"),getDetailWatchInfo:t(()=>Vie,"getDetailWatchInfo"),getLocationInNewDocument:t(()=>PCe,"getLocationInNewDocument"),hasArgument:t(()=>_Me,"hasArgument"),hasNoTypeScriptSource:t(()=>QEe,"hasNoTypeScriptSource"),indent:t(()=>e8,"indent"),isBackgroundProject:t(()=>kR,"isBackgroundProject"),isConfigFile:t(()=>SCe,"isConfigFile"),isConfiguredProject:t(()=>dv,"isConfiguredProject"),isDynamicFileName:t(()=>D8,"isDynamicFileName"),isExternalProject:t(()=>CR,"isExternalProject"),isInferredProject:t(()=>rN,"isInferredProject"),isInferredProjectName:t(()=>jEe,"isInferredProjectName"),isProjectDeferredClose:t(()=>wR,"isProjectDeferredClose"),makeAutoImportProviderProjectName:t(()=>UEe,"makeAutoImportProviderProjectName"),makeAuxiliaryProjectName:t(()=>zEe,"makeAuxiliaryProjectName"),makeInferredProjectName:t(()=>BEe,"makeInferredProjectName"),maxFileSize:t(()=>Nie,"maxFileSize"),maxProgramSizeForNonTsFiles:t(()=>Aie,"maxProgramSizeForNonTsFiles"),normalizedPathToPath:t(()=>tN,"normalizedPathToPath"),nowString:t(()=>dMe,"nowString"),nullCancellationToken:t(()=>jGe,"nullCancellationToken"),nullTypingsInstaller:t(()=>NW,"nullTypingsInstaller"),protocol:t(()=>qEe,"protocol"),scriptInfoIsContainedByBackgroundProject:t(()=>YEe,"scriptInfoIsContainedByBackgroundProject"),scriptInfoIsContainedByDeferredClosedProject:t(()=>KEe,"scriptInfoIsContainedByDeferredClosedProject"),stringifyIndented:t(()=>f2,"stringifyIndented"),toEvent:t(()=>kCe,"toEvent"),toNormalizedPath:t(()=>Io,"toNormalizedPath"),tryConvertScriptKindName:t(()=>zie,"tryConvertScriptKindName"),typingsInstaller:t(()=>FEe,"typingsInstaller"),updateProjectIfDirty:t(()=>hm,"updateProjectIfDirty")}),typeof console<"u"&&(L.loggingHost={log(e,r){switch(e){case 1:return console.error(r);case 2:return console.warn(r);case 3:return console.log(r);case 4:return console.log(r)}}})})({get exports(){return Lpt},set exports(s){Lpt=s,typeof Zle<"u"&&Zle.exports&&(Zle.exports=s)}})});var Hpt=or(aG=>{"use strict";var Hmr=aG&&aG.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(aG,"__esModule",{value:!0});aG.attachChildCleanup=ehr;var Gmr=Hmr(uo("node:os")),Ymr=["SIGINT","SIGTERM","SIGHUP"],eue=new Set,tue=new Map,VM;function Vpt(){for(let s of eue)if(!(s.exitCode!==null||s.signalCode!==null))try{s.kill("SIGKILL")}catch{}}t(Vpt,"killAllChildren");function Kmr(s){let o=Gmr.default.constants.signals[s];return typeof o=="number"?128+o:1}t(Kmr,"reRaiseExitCode");function Xmr(s){return()=>{if(Vpt(),process.listenerCount(s)<=1){let o=tue.get(s);o&&process.off(s,o);try{process.kill(process.pid,s)}catch{process.exit(Kmr(s))}}}}t(Xmr,"makeSignalListener");function Zmr(){if(!VM){VM=t(()=>{Vpt()},"exitListener"),process.on("exit",VM);for(let s of Ymr){let o=Xmr(s);tue.set(s,o),process.on(s,o)}}}t(Zmr,"installProcessListeners");function Qmr(){if(VM){process.off("exit",VM),VM=void 0;for(let[s,o]of tue)process.off(s,o);tue.clear()}}t(Qmr,"uninstallProcessListeners");function ehr(s){eue.add(s),Zmr();let o=!1,f=t(()=>{o||(o=!0,eue.delete(s),eue.size===0&&Qmr())},"detach");return s.once("exit",f),f}t(ehr,"attachChildCleanup")});var Fu={};qtt(Fu,{__addDisposableResource:()=>ydt,__assign:()=>rue,__asyncDelegator:()=>udt,__asyncGenerator:()=>ldt,__asyncValues:()=>fdt,__await:()=>HM,__awaiter:()=>ndt,__classPrivateFieldGet:()=>mdt,__classPrivateFieldIn:()=>gdt,__classPrivateFieldSet:()=>hdt,__createBinding:()=>iue,__decorate:()=>Kpt,__disposeResources:()=>vdt,__esDecorate:()=>Zpt,__exportStar:()=>sdt,__extends:()=>Gpt,__generator:()=>idt,__importDefault:()=>ddt,__importStar:()=>pdt,__makeTemplateObject:()=>_dt,__metadata:()=>rdt,__param:()=>Xpt,__propKey:()=>edt,__read:()=>h3e,__rest:()=>Ypt,__rewriteRelativeImportExtension:()=>bdt,__runInitializers:()=>Qpt,__setFunctionName:()=>tdt,__spread:()=>adt,__spreadArray:()=>cdt,__spreadArrays:()=>odt,__values:()=>nue,default:()=>nhr});function Gpt(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");d3e(s,o);function f(){this.constructor=s}t(f,"__"),s.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}function Ypt(s,o){var f={};for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&o.indexOf(d)<0&&(f[d]=s[d]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,d=Object.getOwnPropertySymbols(s);y<d.length;y++)o.indexOf(d[y])<0&&Object.prototype.propertyIsEnumerable.call(s,d[y])&&(f[d[y]]=s[d[y]]);return f}function Kpt(s,o,f,d){var y=arguments.length,x=y<3?o:d===null?d=Object.getOwnPropertyDescriptor(o,f):d,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(s,o,f,d);else for(var F=s.length-1;F>=0;F--)(A=s[F])&&(x=(y<3?A(x):y>3?A(o,f,x):A(o,f))||x);return y>3&&x&&Object.defineProperty(o,f,x),x}function Xpt(s,o){return function(f,d){o(f,d,s)}}function Zpt(s,o,f,d,y,x){function A(Ut){if(Ut!==void 0&&typeof Ut!="function")throw new TypeError("Function expected");return Ut}t(A,"accept");for(var F=d.kind,W=F==="getter"?"get":F==="setter"?"set":"value",G=!o&&s?d.static?s:s.prototype:null,be=o||(G?Object.getOwnPropertyDescriptor(G,d.name):{}),de,se=!1,Xe=f.length-1;Xe>=0;Xe--){var Ue={};for(var je in d)Ue[je]=je==="access"?{}:d[je];for(var je in d.access)Ue.access[je]=d.access[je];Ue.addInitializer=function(Ut){if(se)throw new TypeError("Cannot add initializers after decoration has completed");x.push(A(Ut||null))};var Vt=(0,f[Xe])(F==="accessor"?{get:be.get,set:be.set}:be[W],Ue);if(F==="accessor"){if(Vt===void 0)continue;if(Vt===null||typeof Vt!="object")throw new TypeError("Object expected");(de=A(Vt.get))&&(be.get=de),(de=A(Vt.set))&&(be.set=de),(de=A(Vt.init))&&y.unshift(de)}else(de=A(Vt))&&(F==="field"?y.unshift(de):be[W]=de)}G&&Object.defineProperty(G,d.name,be),se=!0}function Qpt(s,o,f){for(var d=arguments.length>2,y=0;y<o.length;y++)f=d?o[y].call(s,f):o[y].call(s);return d?f:void 0}function edt(s){return typeof s=="symbol"?s:"".concat(s)}function tdt(s,o,f){return typeof o=="symbol"&&(o=o.description?"[".concat(o.description,"]"):""),Object.defineProperty(s,"name",{configurable:!0,value:f?"".concat(f," ",o):o})}function rdt(s,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,o)}function ndt(s,o,f,d){function y(x){return x instanceof f?x:new f(function(A){A(x)})}return t(y,"adopt"),new(f||(f=Promise))(function(x,A){function F(be){try{G(d.next(be))}catch(de){A(de)}}t(F,"fulfilled");function W(be){try{G(d.throw(be))}catch(de){A(de)}}t(W,"rejected");function G(be){be.done?x(be.value):y(be.value).then(F,W)}t(G,"step"),G((d=d.apply(s,o||[])).next())})}function idt(s,o){var f={label:0,sent:t(function(){if(x[0]&1)throw x[1];return x[1]},"sent"),trys:[],ops:[]},d,y,x,A=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return A.next=F(0),A.throw=F(1),A.return=F(2),typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function F(G){return function(be){return W([G,be])}}function W(G){if(d)throw new TypeError("Generator is already executing.");for(;A&&(A=0,G[0]&&(f=0)),f;)try{if(d=1,y&&(x=G[0]&2?y.return:G[0]?y.throw||((x=y.return)&&x.call(y),0):y.next)&&!(x=x.call(y,G[1])).done)return x;switch(y=0,x&&(G=[G[0]&2,x.value]),G[0]){case 0:case 1:x=G;break;case 4:return f.label++,{value:G[1],done:!1};case 5:f.label++,y=G[1],G=[0];continue;case 7:G=f.ops.pop(),f.trys.pop();continue;default:if(x=f.trys,!(x=x.length>0&&x[x.length-1])&&(G[0]===6||G[0]===2)){f=0;continue}if(G[0]===3&&(!x||G[1]>x[0]&&G[1]<x[3])){f.label=G[1];break}if(G[0]===6&&f.label<x[1]){f.label=x[1],x=G;break}if(x&&f.label<x[2]){f.label=x[2],f.ops.push(G);break}x[2]&&f.ops.pop(),f.trys.pop();continue}G=o.call(s,f)}catch(be){G=[6,be],y=0}finally{d=x=0}if(G[0]&5)throw G[1];return{value:G[0]?G[1]:void 0,done:!0}}}function sdt(s,o){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(o,f)&&iue(o,s,f)}function nue(s){var o=typeof Symbol=="function"&&Symbol.iterator,f=o&&s[o],d=0;if(f)return f.call(s);if(s&&typeof s.length=="number")return{next:t(function(){return s&&d>=s.length&&(s=void 0),{value:s&&s[d++],done:!s}},"next")};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function h3e(s,o){var f=typeof Symbol=="function"&&s[Symbol.iterator];if(!f)return s;var d=f.call(s),y,x=[],A;try{for(;(o===void 0||o-- >0)&&!(y=d.next()).done;)x.push(y.value)}catch(F){A={error:F}}finally{try{y&&!y.done&&(f=d.return)&&f.call(d)}finally{if(A)throw A.error}}return x}function adt(){for(var s=[],o=0;o<arguments.length;o++)s=s.concat(h3e(arguments[o]));return s}function odt(){for(var s=0,o=0,f=arguments.length;o<f;o++)s+=arguments[o].length;for(var d=Array(s),y=0,o=0;o<f;o++)for(var x=arguments[o],A=0,F=x.length;A<F;A++,y++)d[y]=x[A];return d}function cdt(s,o,f){if(f||arguments.length===2)for(var d=0,y=o.length,x;d<y;d++)(x||!(d in o))&&(x||(x=Array.prototype.slice.call(o,0,d)),x[d]=o[d]);return s.concat(x||Array.prototype.slice.call(o))}function HM(s){return this instanceof HM?(this.v=s,this):new HM(s)}function ldt(s,o,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=f.apply(s,o||[]),y,x=[];return y=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),F("next"),F("throw"),F("return",A),y[Symbol.asyncIterator]=function(){return this},y;function A(Xe){return function(Ue){return Promise.resolve(Ue).then(Xe,de)}}function F(Xe,Ue){d[Xe]&&(y[Xe]=function(je){return new Promise(function(Vt,Ut){x.push([Xe,je,Vt,Ut])>1||W(Xe,je)})},Ue&&(y[Xe]=Ue(y[Xe])))}function W(Xe,Ue){try{G(d[Xe](Ue))}catch(je){se(x[0][3],je)}}function G(Xe){Xe.value instanceof HM?Promise.resolve(Xe.value.v).then(be,de):se(x[0][2],Xe)}function be(Xe){W("next",Xe)}function de(Xe){W("throw",Xe)}function se(Xe,Ue){Xe(Ue),x.shift(),x.length&&W(x[0][0],x[0][1])}}function udt(s){var o,f;return o={},d("next"),d("throw",function(y){throw y}),d("return"),o[Symbol.iterator]=function(){return this},o;function d(y,x){o[y]=s[y]?function(A){return(f=!f)?{value:HM(s[y](A)),done:!1}:x?x(A):A}:x}}function fdt(s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s[Symbol.asyncIterator],f;return o?o.call(s):(s=typeof nue=="function"?nue(s):s[Symbol.iterator](),f={},d("next"),d("throw"),d("return"),f[Symbol.asyncIterator]=function(){return this},f);function d(x){f[x]=s[x]&&function(A){return new Promise(function(F,W){A=s[x](A),y(F,W,A.done,A.value)})}}function y(x,A,F,W){Promise.resolve(W).then(function(G){x({value:G,done:F})},A)}}function _dt(s,o){return Object.defineProperty?Object.defineProperty(s,"raw",{value:o}):s.raw=o,s}function pdt(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f=m3e(s),d=0;d<f.length;d++)f[d]!=="default"&&iue(o,s,f[d]);return thr(o,s),o}function ddt(s){return s&&s.__esModule?s:{default:s}}function mdt(s,o,f,d){if(f==="a"&&!d)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?s!==o||!d:!o.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?d:f==="a"?d.call(s):d?d.value:o.get(s)}function hdt(s,o,f,d,y){if(d==="m")throw new TypeError("Private method is not writable");if(d==="a"&&!y)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?s!==o||!y:!o.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return d==="a"?y.call(s,f):y?y.value=f:o.set(s,f),f}function gdt(s,o){if(o===null||typeof o!="object"&&typeof o!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof s=="function"?o===s:s.has(o)}function ydt(s,o,f){if(o!=null){if(typeof o!="object"&&typeof o!="function")throw new TypeError("Object expected.");var d,y;if(f){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");d=o[Symbol.asyncDispose]}if(d===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");d=o[Symbol.dispose],f&&(y=d)}if(typeof d!="function")throw new TypeError("Object not disposable.");y&&(d=t(function(){try{y.call(this)}catch(x){return Promise.reject(x)}},"dispose")),s.stack.push({value:o,dispose:d,async:f})}else f&&s.stack.push({async:!0});return o}function vdt(s){function o(x){s.error=s.hasError?new rhr(x,s.error,"An error was suppressed during disposal."):x,s.hasError=!0}t(o,"fail");var f,d=0;function y(){for(;f=s.stack.pop();)try{if(!f.async&&d===1)return d=0,s.stack.push(f),Promise.resolve().then(y);if(f.dispose){var x=f.dispose.call(f.value);if(f.async)return d|=2,Promise.resolve(x).then(y,function(A){return o(A),y()})}else d|=1}catch(A){o(A)}if(d===1)return s.hasError?Promise.reject(s.error):Promise.resolve();if(s.hasError)throw s.error}return t(y,"next"),y()}function bdt(s,o){return typeof s=="string"&&/^\.\.?\//.test(s)?s.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(f,d,y,x,A){return d?o?".jsx":".js":y&&(!x||!A)?f:y+x+"."+A.toLowerCase()+"js"}):s}var d3e,rue,iue,thr,m3e,rhr,nhr,Lu=LGt(()=>{d3e=t(function(s,o){return d3e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(f[y]=d[y])},d3e(s,o)},"extendStatics");t(Gpt,"__extends");rue=t(function(){return rue=Object.assign||t(function(o){for(var f,d=1,y=arguments.length;d<y;d++){f=arguments[d];for(var x in f)Object.prototype.hasOwnProperty.call(f,x)&&(o[x]=f[x])}return o},"__assign"),rue.apply(this,arguments)},"__assign");t(Ypt,"__rest");t(Kpt,"__decorate");t(Xpt,"__param");t(Zpt,"__esDecorate");t(Qpt,"__runInitializers");t(edt,"__propKey");t(tdt,"__setFunctionName");t(rdt,"__metadata");t(ndt,"__awaiter");t(idt,"__generator");iue=Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]});t(sdt,"__exportStar");t(nue,"__values");t(h3e,"__read");t(adt,"__spread");t(odt,"__spreadArrays");t(cdt,"__spreadArray");t(HM,"__await");t(ldt,"__asyncGenerator");t(udt,"__asyncDelegator");t(fdt,"__asyncValues");t(_dt,"__makeTemplateObject");thr=Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o},m3e=t(function(s){return m3e=Object.getOwnPropertyNames||function(o){var f=[];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(f[f.length]=d);return f},m3e(s)},"ownKeys");t(pdt,"__importStar");t(ddt,"__importDefault");t(mdt,"__classPrivateFieldGet");t(hdt,"__classPrivateFieldSet");t(gdt,"__classPrivateFieldIn");t(ydt,"__addDisposableResource");rhr=typeof SuppressedError=="function"?SuppressedError:function(s,o,f){var d=new Error(f);return d.name="SuppressedError",d.error=s,d.suppressed=o,d};t(vdt,"__disposeResources");t(bdt,"__rewriteRelativeImportExtension");nhr={__extends:Gpt,__assign:rue,__rest:Ypt,__decorate:Kpt,__param:Xpt,__esDecorate:Zpt,__runInitializers:Qpt,__propKey:edt,__setFunctionName:tdt,__metadata:rdt,__awaiter:ndt,__generator:idt,__createBinding:iue,__exportStar:sdt,__values:nue,__read:h3e,__spread:adt,__spreadArrays:odt,__spreadArray:cdt,__await:HM,__asyncGenerator:ldt,__asyncDelegator:udt,__asyncValues:fdt,__makeTemplateObject:_dt,__importStar:pdt,__importDefault:ddt,__classPrivateFieldGet:mdt,__classPrivateFieldSet:hdt,__classPrivateFieldIn:gdt,__addDisposableResource:ydt,__disposeResources:vdt,__rewriteRelativeImportExtension:bdt}});var Tdt=or((kFr,Sdt)=>{var GM=1e3,YM=GM*60,KM=YM*60,GO=KM*24,ihr=GO*7,shr=GO*365.25;Sdt.exports=function(s,o){o=o||{};var f=typeof s;if(f==="string"&&s.length>0)return ahr(s);if(f==="number"&&isFinite(s))return o.long?chr(s):ohr(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function ahr(s){if(s=String(s),!(s.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(o){var f=parseFloat(o[1]),d=(o[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return f*shr;case"weeks":case"week":case"w":return f*ihr;case"days":case"day":case"d":return f*GO;case"hours":case"hour":case"hrs":case"hr":case"h":return f*KM;case"minutes":case"minute":case"mins":case"min":case"m":return f*YM;case"seconds":case"second":case"secs":case"sec":case"s":return f*GM;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}t(ahr,"parse");function ohr(s){var o=Math.abs(s);return o>=GO?Math.round(s/GO)+"d":o>=KM?Math.round(s/KM)+"h":o>=YM?Math.round(s/YM)+"m":o>=GM?Math.round(s/GM)+"s":s+"ms"}t(ohr,"fmtShort");function chr(s){var o=Math.abs(s);return o>=GO?sue(s,o,GO,"day"):o>=KM?sue(s,o,KM,"hour"):o>=YM?sue(s,o,YM,"minute"):o>=GM?sue(s,o,GM,"second"):s+" ms"}t(chr,"fmtLong");function sue(s,o,f,d){var y=o>=f*1.5;return Math.round(s/f)+" "+d+(y?"s":"")}t(sue,"plural")});var g3e=or((DFr,xdt)=>{function lhr(s){f.debug=f,f.default=f,f.coerce=W,f.disable=A,f.enable=y,f.enabled=F,f.humanize=Tdt(),f.destroy=G,Object.keys(s).forEach(be=>{f[be]=s[be]}),f.names=[],f.skips=[],f.formatters={};function o(be){let de=0;for(let se=0;se<be.length;se++)de=(de<<5)-de+be.charCodeAt(se),de|=0;return f.colors[Math.abs(de)%f.colors.length]}t(o,"selectColor"),f.selectColor=o;function f(be){let de,se=null,Xe,Ue;function je(...Vt){if(!je.enabled)return;let Ut=je,Ir=Number(new Date),wn=Ir-(de||Ir);Ut.diff=wn,Ut.prev=de,Ut.curr=Ir,de=Ir,Vt[0]=f.coerce(Vt[0]),typeof Vt[0]!="string"&&Vt.unshift("%O");let sn=0;Vt[0]=Vt[0].replace(/%([a-zA-Z%])/g,(kr,yr)=>{if(kr==="%%")return"%";sn++;let xs=f.formatters[yr];if(typeof xs=="function"){let bi=Vt[sn];kr=xs.call(Ut,bi),Vt.splice(sn,1),sn--}return kr}),f.formatArgs.call(Ut,Vt),(Ut.log||f.log).apply(Ut,Vt)}return t(je,"debug"),je.namespace=be,je.useColors=f.useColors(),je.color=f.selectColor(be),je.extend=d,je.destroy=f.destroy,Object.defineProperty(je,"enabled",{enumerable:!0,configurable:!1,get:t(()=>se!==null?se:(Xe!==f.namespaces&&(Xe=f.namespaces,Ue=f.enabled(be)),Ue),"get"),set:t(Vt=>{se=Vt},"set")}),typeof f.init=="function"&&f.init(je),je}t(f,"createDebug");function d(be,de){let se=f(this.namespace+(typeof de>"u"?":":de)+be);return se.log=this.log,se}t(d,"extend");function y(be){f.save(be),f.namespaces=be,f.names=[],f.skips=[];let de=(typeof be=="string"?be:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let se of de)se[0]==="-"?f.skips.push(se.slice(1)):f.names.push(se)}t(y,"enable");function x(be,de){let se=0,Xe=0,Ue=-1,je=0;for(;se<be.length;)if(Xe<de.length&&(de[Xe]===be[se]||de[Xe]==="*"))de[Xe]==="*"?(Ue=Xe,je=se,Xe++):(se++,Xe++);else if(Ue!==-1)Xe=Ue+1,je++,se=je;else return!1;for(;Xe<de.length&&de[Xe]==="*";)Xe++;return Xe===de.length}t(x,"matchesTemplate");function A(){let be=[...f.names,...f.skips.map(de=>"-"+de)].join(",");return f.enable(""),be}t(A,"disable");function F(be){for(let de of f.skips)if(x(be,de))return!1;for(let de of f.names)if(x(be,de))return!0;return!1}t(F,"enabled");function W(be){return be instanceof Error?be.stack||be.message:be}t(W,"coerce");function G(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t(G,"destroy"),f.enable(f.load()),f}t(lhr,"setup");xdt.exports=lhr});var Edt=or((eb,aue)=>{eb.formatArgs=fhr;eb.save=_hr;eb.load=phr;eb.useColors=uhr;eb.storage=dhr();eb.destroy=(()=>{let s=!1;return()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();eb.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function uhr(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let s;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(s=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(s[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t(uhr,"useColors");function fhr(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+aue.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;s.splice(1,0,o,"color: inherit");let f=0,d=0;s[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(f++,y==="%c"&&(d=f))}),s.splice(d,0,o)}t(fhr,"formatArgs");eb.log=console.debug||console.log||(()=>{});function _hr(s){try{s?eb.storage.setItem("debug",s):eb.storage.removeItem("debug")}catch{}}t(_hr,"save");function phr(){let s;try{s=eb.storage.getItem("debug")||eb.storage.getItem("DEBUG")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}t(phr,"load");function dhr(){try{return localStorage}catch{}}t(dhr,"localstorage");aue.exports=g3e()(eb);var{formatters:mhr}=aue.exports;mhr.j=function(s){try{return JSON.stringify(s)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var kdt=or((NFr,Cdt)=>{"use strict";Cdt.exports=(s,o=process.argv)=>{let f=s.startsWith("-")?"":s.length===1?"-":"--",d=o.indexOf(f+s),y=o.indexOf("--");return d!==-1&&(y===-1||d<y)}});var Pdt=or((IFr,Ddt)=>{"use strict";var hhr=uo("os"),wdt=uo("tty"),xT=kdt(),{env:Mg}=process,oue;xT("no-color")||xT("no-colors")||xT("color=false")||xT("color=never")?oue=0:(xT("color")||xT("colors")||xT("color=true")||xT("color=always"))&&(oue=1);function ghr(){if("FORCE_COLOR"in Mg)return Mg.FORCE_COLOR==="true"?1:Mg.FORCE_COLOR==="false"?0:Mg.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Mg.FORCE_COLOR,10),3)}t(ghr,"envForceColor");function yhr(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}t(yhr,"translateLevel");function vhr(s,{streamIsTTY:o,sniffFlags:f=!0}={}){let d=ghr();d!==void 0&&(oue=d);let y=f?oue:d;if(y===0)return 0;if(f){if(xT("color=16m")||xT("color=full")||xT("color=truecolor"))return 3;if(xT("color=256"))return 2}if(s&&!o&&y===void 0)return 0;let x=y||0;if(Mg.TERM==="dumb")return x;if(process.platform==="win32"){let A=hhr.release().split(".");return Number(A[0])>=10&&Number(A[2])>=10586?Number(A[2])>=14931?3:2:1}if("CI"in Mg)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(A=>A in Mg)||Mg.CI_NAME==="codeship"?1:x;if("TEAMCITY_VERSION"in Mg)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Mg.TEAMCITY_VERSION)?1:0;if(Mg.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Mg){let A=Number.parseInt((Mg.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Mg.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Mg.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Mg.TERM)||"COLORTERM"in Mg?1:x}t(vhr,"supportsColor");function y3e(s,o={}){let f=vhr(s,{streamIsTTY:s&&s.isTTY,...o});return yhr(f)}t(y3e,"getSupportLevel");Ddt.exports={supportsColor:y3e,stdout:y3e({isTTY:wdt.isatty(1)}),stderr:y3e({isTTY:wdt.isatty(2)})}});var Ndt=or((jg,lue)=>{var bhr=uo("tty"),cue=uo("util");jg.init=whr;jg.log=Ehr;jg.formatArgs=Thr;jg.save=Chr;jg.load=khr;jg.useColors=Shr;jg.destroy=cue.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");jg.colors=[6,2,3,4,5,1];try{let s=Pdt();s&&(s.stderr||s).level>=2&&(jg.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}jg.inspectOpts=Object.keys(process.env).filter(s=>/^debug_/i.test(s)).reduce((s,o)=>{let f=o.substring(6).toLowerCase().replace(/_([a-z])/g,(y,x)=>x.toUpperCase()),d=process.env[o];return/^(yes|on|true|enabled)$/i.test(d)?d=!0:/^(no|off|false|disabled)$/i.test(d)?d=!1:d==="null"?d=null:d=Number(d),s[f]=d,s},{});function Shr(){return"colors"in jg.inspectOpts?!!jg.inspectOpts.colors:bhr.isatty(process.stderr.fd)}t(Shr,"useColors");function Thr(s){let{namespace:o,useColors:f}=this;if(f){let d=this.color,y="\x1B[3"+(d<8?d:"8;5;"+d),x=` ${y};1m${o} \x1B[0m`;s[0]=x+s[0].split(`
|
|
543
|
+
`+P.stack)}finally{this.performanceData=S}}parseMessage(r){return JSON.parse(r)}toStringMessage(r){return r}getFormatOptions(r){return this.projectService.getFormatCodeOptions(r)}getPreferences(r){return this.projectService.getPreferences(r)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function KGe(e){let r=e.diagnosticsDuration&&Ps(e.diagnosticsDuration,([i,a])=>({...a,file:i}));return{...e,diagnosticsDuration:r}}t(KGe,"toProtocolPerformanceData");function ug(e,r){return{start:r.positionToLineOffset(e.start),end:r.positionToLineOffset(Fc(e))}}t(ug,"toProtocolTextSpan");function DCe(e,r,i){let a=ug(e,i),c=r&&ug(r,i);return c?{...a,contextStart:c.start,contextEnd:c.end}:a}t(DCe,"toProtocolTextSpanWithContext");function JRt(e,r){return{start:XGe(r,e.span.start),end:XGe(r,Fc(e.span)),newText:e.newText}}t(JRt,"convertTextChangeToCodeEdit");function XGe(e,r){return SCe(e)?qRt(e.getLineAndCharacterOfPosition(r)):e.positionToLineOffset(r)}t(XGe,"positionToLineOffset");function WRt(e,r){let i=e.ranges.map(a=>({start:r.positionToLineOffset(a.start),end:r.positionToLineOffset(a.start+a.length)}));return e.wordPattern?{ranges:i,wordPattern:e.wordPattern}:{ranges:i}}t(WRt,"convertLinkedEditInfoToRanges");function qRt(e){return{line:e.line+1,offset:e.character+1}}t(qRt,"locationFromLineAndCharacter");function VRt(e){L.assert(e.textChanges.length===1);let r=Ga(e.textChanges);return L.assert(r.span.start===0&&r.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:r.newText}]}}t(VRt,"convertNewFileTextChangeToCodeEdit");function PCe(e,r,i,a){let c=HRt(e,r,a),{line:u,character:_}=vA(mw(c),i);return{line:u+1,offset:_+1}}t(PCe,"getLocationInNewDocument");function HRt(e,r,i){for(let{fileName:a,textChanges:c}of i)if(a===r)for(let u=c.length-1;u>=0;u--){let{newText:_,span:{start:h,length:m}}=c[u];e=e.slice(0,h)+_+e.slice(h+m)}return e}t(HRt,"applyEdits");function ZGe(e,{fileName:r,textSpan:i,contextSpan:a,isWriteAccess:c,isDefinition:u},{disableLineTextInReferences:_}){let h=L.checkDefined(e.getScriptInfo(r)),m=DCe(i,a,h),T=_?void 0:GRt(h,m);return{file:r,...m,lineText:T,isWriteAccess:c,isDefinition:u}}t(ZGe,"referenceEntryToReferencesResponseItem");function GRt(e,r){let i=e.lineToTextSpan(r.start.line-1);return e.getSnapshot().getText(i.start,Fc(i)).replace(/\r|\n/g,"")}t(GRt,"getLineText");function YRt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}t(YRt,"isCompletionEntryData");var sN=4,ACe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(ACe||{}),KRt=class{static{t(this,"EditWalker")}constructor(){this.goSubtree=!0,this.lineIndex=new AR,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new aN,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,r){r&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let a=AR.linesFromText(e).lines;a.length>1&&a[a.length-1]===""&&a.pop();let c,u;for(let h=this.endBranch.length-1;h>=0;h--)this.endBranch[h].updateCounts(),this.endBranch[h].charCount()===0&&(u=this.endBranch[h],h>0?c=this.endBranch[h-1]:c=this.branchNode);u&&c.remove(u);let _=this.startPath[this.startPath.length-1];if(a.length>0)if(_.text=a[0],a.length>1){let h=new Array(a.length-1),m=_;for(let E=1;E<a.length;E++)h[E-1]=new IW(a[E]);let T=this.startPath.length-2;for(;T>=0;){let E=this.startPath[T];h=E.insertAt(m,h),T--,m=E}let S=h.length;for(;S>0;){let E=new aN;E.add(this.lineIndex.root),h=E.insertAt(this.lineIndex.root,h),S=h.length,this.lineIndex.root=E}this.lineIndex.root.updateCounts()}else for(let h=this.startPath.length-2;h>=0;h--)this.startPath[h].updateCounts();else{this.startPath[this.startPath.length-2].remove(_);for(let m=this.startPath.length-2;m>=0;m--)this.startPath[m].updateCounts()}return this.lineIndex}post(e,r,i){i===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,r,i,a,c){let u=this.stack[this.stack.length-1];this.state===2&&c===1&&(this.state=1,this.branchNode=u,this.lineCollectionAtBranch=i);let _;function h(m){return m.isLeaf()?new IW(""):new aN}switch(t(h,"fresh"),c){case 0:this.goSubtree=!1,this.state!==4&&u.add(i);break;case 1:this.state===4?this.goSubtree=!1:(_=h(i),u.add(_),this.startPath.push(_));break;case 2:this.state!==4?(_=h(i),u.add(_),this.startPath.push(_)):i.isLeaf()||(_=h(i),u.add(_),this.endBranch.push(_));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:i.isLeaf()||(_=h(i),u.add(_),this.endBranch.push(_));break;case 5:this.goSubtree=!1,this.state!==1&&u.add(i);break}this.goSubtree&&this.stack.push(_)}leaf(e,r,i){this.state===1?this.initialText=i.text.substring(0,e):this.state===2?(this.initialText=i.text.substring(0,e),this.trailingText=i.text.substring(e+r)):this.trailingText=i.text.substring(e+r)}},XRt=class{static{t(this,"TextChange9")}constructor(e,r,i){this.pos=e,this.deleteLen=r,this.insertedText=i}getTextChangeRange(){return z7(Gu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Xie=class Yk{static{t(this,"_ScriptVersionCache")}constructor(){this.changes=[],this.versions=new Array(Yk.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(r){if(!(r<this.minVersion||r>this.currentVersion))return r%Yk.maxVersions}currentVersionToIndex(){return this.currentVersion%Yk.maxVersions}edit(r,i,a){this.changes.push(new XRt(r,i,a)),(this.changes.length>Yk.changeNumberThreshold||i>Yk.changeLengthThreshold||a&&a.length>Yk.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let r=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let i=r.index;for(let a of this.changes)i=i.edit(a.pos,a.deleteLen,a.insertedText);r=new QGe(this.currentVersion+1,this,i,this.changes),this.currentVersion=r.version,this.versions[this.currentVersionToIndex()]=r,this.changes=[],this.currentVersion-this.minVersion>=Yk.maxVersions&&(this.minVersion=this.currentVersion-Yk.maxVersions+1)}return r}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(r){return this._getSnapshot().index.lineNumberToInfo(r)}lineOffsetToPosition(r,i){return this._getSnapshot().index.absolutePositionOfStartOfLine(r)+(i-1)}positionToLineOffset(r){return this._getSnapshot().index.positionToLineOffset(r)}lineToTextSpan(r){let i=this._getSnapshot().index,{lineText:a,absolutePosition:c}=i.lineNumberToInfo(r+1),u=a!==void 0?a.length:i.absolutePositionOfStartOfLine(r+2)-c;return Gu(c,u)}getTextChangesBetweenVersions(r,i){if(r<i)if(r>=this.minVersion){let a=[];for(let c=r+1;c<=i;c++){let u=this.versions[this.versionToIndex(c)];for(let _ of u.changesSincePreviousVersion)a.push(_.getTextChangeRange())}return lde(a)}else return;else return nB}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(r){let i=new Yk,a=new QGe(0,i,new AR);i.versions[i.currentVersion]=a;let c=AR.linesFromText(r);return a.index.load(c.lines),i}};Xie.changeNumberThreshold=8,Xie.changeLengthThreshold=256,Xie.maxVersions=8;var Zie=Xie,QGe=class zpt{static{t(this,"_LineIndexSnapshot")}constructor(r,i,a,c=fu){this.version=r,this.cache=i,this.index=a,this.changesSincePreviousVersion=c}getText(r,i){return this.index.getText(r,i-r)}getLength(){return this.index.getLength()}getChangeRange(r){if(r instanceof zpt&&this.cache===r.cache)return this.version<=r.version?nB:this.cache.getTextChangesBetweenVersions(r.version,this.version)}},AR=class u3e{static{t(this,"_LineIndex")}constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(r){return this.lineNumberToInfo(r).absolutePosition}positionToLineOffset(r){let{oneBasedLine:i,zeroBasedColumn:a}=this.root.charOffsetToLineInfo(1,r);return{line:i,offset:a+1}}positionToColumnAndLineText(r){return this.root.charOffsetToLineInfo(1,r)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(r){let i=this.getLineCount();if(r<=i){let{position:a,leaf:c}=this.root.lineNumberToInfo(r,0);return{absolutePosition:a,lineText:c&&c.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(r){if(r.length>0){let i=[];for(let a=0;a<r.length;a++)i[a]=new IW(r[a]);this.root=u3e.buildTreeFromBottom(i)}else this.root=new aN}walk(r,i,a){this.root.walk(r,i,a)}getText(r,i){let a="";return i>0&&r<this.root.charCount()&&this.walk(r,i,{goSubtree:!0,done:!1,leaf:t((c,u,_)=>{a=a.concat(_.text.substring(c,c+u))},"leaf")}),a}getLength(){return this.root.charCount()}every(r,i,a){a||(a=this.root.charCount());let c={goSubtree:!0,done:!1,leaf(u,_,h){r(h,u,_)||(this.done=!0)}};return this.walk(i,a-i,c),!c.done}edit(r,i,a){if(this.root.charCount()===0)return L.assert(i===0),a!==void 0?(this.load(u3e.linesFromText(a).lines),this):void 0;{let c;if(this.checkEdits){let h=this.getText(0,this.root.charCount());c=h.slice(0,r)+a+h.slice(r+i)}let u=new KRt,_=!1;if(r>=this.root.charCount()){r=this.root.charCount()-1;let h=this.getText(r,1);a?a=h+a:a=h,i=0,_=!0}else if(i>0){let h=r+i,{zeroBasedColumn:m,lineText:T}=this.positionToColumnAndLineText(h);m===0&&(i+=T.length,a=a?a+T:T)}if(this.root.walk(r,i,u),u.insertLines(a,_),this.checkEdits){let h=u.lineIndex.getText(0,u.lineIndex.getLength());L.assert(c===h,"buffer edit mismatch")}return u.lineIndex}}static buildTreeFromBottom(r){if(r.length<sN)return new aN(r);let i=new Array(Math.ceil(r.length/sN)),a=0;for(let c=0;c<i.length;c++){let u=Math.min(a+sN,r.length);i[c]=new aN(r.slice(a,u)),a=u}return this.buildTreeFromBottom(i)}static linesFromText(r){let i=mw(r);if(i.length===0)return{lines:[],lineMap:i};let a=new Array(i.length),c=i.length-1;for(let _=0;_<c;_++)a[_]=r.substring(i[_],i[_+1]);let u=r.substring(i[c]);return u.length>0?a[c]=u:a.pop(),{lines:a,lineMap:i}}},aN=class f3e{static{t(this,"_LineNode")}constructor(r=[]){this.children=r,this.totalChars=0,this.totalLines=0,r.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let r of this.children)this.totalChars+=r.charCount(),this.totalLines+=r.lineCount()}execWalk(r,i,a,c,u){return a.pre&&a.pre(r,i,this.children[c],this,u),a.goSubtree?(this.children[c].walk(r,i,a),a.post&&a.post(r,i,this.children[c],this,u)):a.goSubtree=!0,a.done}skipChild(r,i,a,c,u){c.pre&&!c.done&&(c.pre(r,i,this.children[a],this,u),c.goSubtree=!0)}walk(r,i,a){if(this.children.length===0)return;let c=0,u=this.children[c].charCount(),_=r;for(;_>=u;)this.skipChild(_,i,c,a,0),_-=u,c++,u=this.children[c].charCount();if(_+i<=u){if(this.execWalk(_,i,a,c,2))return}else{if(this.execWalk(_,u-_,a,c,1))return;let h=i-(u-_);for(c++,u=this.children[c].charCount();h>u;){if(this.execWalk(0,u,a,c,3))return;h-=u,c++,u=this.children[c].charCount()}if(h>0&&this.execWalk(0,h,a,c,4))return}if(a.pre){let h=this.children.length;if(c<h-1)for(let m=c+1;m<h;m++)this.skipChild(0,0,m,a,5)}}charOffsetToLineInfo(r,i){if(this.children.length===0)return{oneBasedLine:r,zeroBasedColumn:i,lineText:void 0};for(let u of this.children){if(u.charCount()>i)return u.isLeaf()?{oneBasedLine:r,zeroBasedColumn:i,lineText:u.text}:u.charOffsetToLineInfo(r,i);i-=u.charCount(),r+=u.lineCount()}let a=this.lineCount();if(a===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let c=L.checkDefined(this.lineNumberToInfo(a,0).leaf);return{oneBasedLine:a,zeroBasedColumn:c.charCount(),lineText:void 0}}lineNumberToInfo(r,i){for(let a of this.children){let c=a.lineCount();if(c>=r)return a.isLeaf()?{position:i,leaf:a}:a.lineNumberToInfo(r,i);r-=c,i+=a.charCount()}return{position:i,leaf:void 0}}splitAfter(r){let i,a=this.children.length;r++;let c=r;if(r<a){for(i=new f3e;r<a;)i.add(this.children[r]),r++;i.updateCounts()}return this.children.length=c,i}remove(r){let i=this.findChildIndex(r),a=this.children.length;if(i<a-1)for(let c=i;c<a-1;c++)this.children[c]=this.children[c+1];this.children.pop()}findChildIndex(r){let i=this.children.indexOf(r);return L.assert(i!==-1),i}insertAt(r,i){let a=this.findChildIndex(r),c=this.children.length,u=i.length;if(c<sN&&a===c-1&&u===1)return this.add(i[0]),this.updateCounts(),[];{let _=this.splitAfter(a),h=0;for(a++;a<sN&&h<u;)this.children[a]=i[h],a++,h++;let m=[],T=0;if(h<u){T=Math.ceil((u-h)/sN),m=new Array(T);let S=0;for(let D=0;D<T;D++)m[D]=new f3e;let E=m[0];for(;h<u;)E.add(i[h]),h++,E.children.length===sN&&(S++,E=m[S]);for(let D=m.length-1;D>=0;D--)m[D].children.length===0&&m.pop()}_&&m.push(_),this.updateCounts();for(let S=0;S<T;S++)m[S].updateCounts();return m}}add(r){this.children.push(r),L.assert(this.children.length<=sN)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},IW=class{static{t(this,"LineLeaf")}constructor(e){this.text=e}isLeaf(){return!0}walk(e,r,i){i.leaf(e,r,this)}charCount(){return this.text.length}lineCount(){return 1}},eYe=class $pt{static{t(this,"_TypingsInstallerAdapter")}constructor(r,i,a,c,u,_){this.telemetryEnabled=r,this.logger=i,this.host=a,this.globalTypingsCacheLocation=c,this.event=u,this.maxActiveRequestCount=_,this.activeRequestCount=0,this.requestQueue=C7(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(r){var i;return Xb.validatePackageName(r)!==Xb.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((i=this.typesRegistryCache)!=null&&i.has(r)))}installPackage(r){this.packageInstallId++;let i={kind:"installPackage",...r,id:this.packageInstallId},a=new Promise((c,u)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:c,reject:u})});return this.installer.send(i),a}attach(r){this.projectService=r,this.installer=this.createInstallerProcess()}onProjectClosed(r){this.installer.send({projectName:r.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(r,i,a){let c=MEe(r,i,a);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${f2(c)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(c):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${c.projectName}`),this.requestQueue.enqueue(c),this.requestMap.set(c.projectName,c))}handleMessage(r){var i,a;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${f2(r)}`),r.kind){case bte:this.typesRegistryCache=new Map(Object.entries(r.typesRegistry));break;case X$:{let c=(i=this.packageInstalledPromise)==null?void 0:i.get(r.id);L.assertIsDefined(c,"Should find the promise for package install"),(a=this.packageInstalledPromise)==null||a.delete(r.id),r.success?c.resolve({successMessage:r.message}):c.reject(r.message),this.projectService.updateTypingsForProject(r),this.event(r,"setTypings");break}case Uve:{let c={message:r.message};this.event(c,"typesInstallerInitializationFailed");break}case Ste:{let c={eventId:r.eventId,packages:r.packagesToInstall};this.event(c,"beginInstallTypes");break}case Tte:{if(this.telemetryEnabled){let _={telemetryEventName:"typingsInstalled",payload:{installedPackages:r.packagesToInstall.join(","),installSuccess:r.installSuccess,typingsInstallerVersion:r.typingsInstallerVersion}};this.event(_,"telemetry")}let c={eventId:r.eventId,packages:r.packagesToInstall,success:r.installSuccess};this.event(c,"endInstallTypes");break}case K$:{this.projectService.updateTypingsForProject(r);break}case Y$:{for(this.activeRequestCount>0?this.activeRequestCount--:L.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let c=this.requestQueue.dequeue();if(this.requestMap.get(c.projectName)===c){this.requestMap.delete(c.projectName),this.scheduleRequest(c);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${c.projectName}`)}this.projectService.updateTypingsForProject(r),this.event(r,"setTypings");break}case EL:this.projectService.watchTypingLocations(r);break;default:}}scheduleRequest(r){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${r.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${f2(r)}`),this.installer.send(r)},$pt.requestDelayMillis,`${r.projectName}::${r.kind}`)}};eYe.requestDelayMillis=100;var tYe=eYe,rYe={};x(rYe,{ActionInvalidate:t(()=>K$,"ActionInvalidate"),ActionPackageInstalled:t(()=>X$,"ActionPackageInstalled"),ActionSet:t(()=>Y$,"ActionSet"),ActionWatchTypingLocations:t(()=>EL,"ActionWatchTypingLocations"),Arguments:t(()=>xte,"Arguments"),AutoImportProviderProject:t(()=>iCe,"AutoImportProviderProject"),AuxiliaryProject:t(()=>rCe,"AuxiliaryProject"),CharRangeSection:t(()=>ACe,"CharRangeSection"),CloseFileWatcherEvent:t(()=>Uie,"CloseFileWatcherEvent"),CommandNames:t(()=>zGe,"CommandNames"),ConfigFileDiagEvent:t(()=>Lie,"ConfigFileDiagEvent"),ConfiguredProject:t(()=>sCe,"ConfiguredProject"),ConfiguredProjectLoadKind:t(()=>fCe,"ConfiguredProjectLoadKind"),CreateDirectoryWatcherEvent:t(()=>Bie,"CreateDirectoryWatcherEvent"),CreateFileWatcherEvent:t(()=>jie,"CreateFileWatcherEvent"),Errors:t(()=>i1,"Errors"),EventBeginInstallTypes:t(()=>Ste,"EventBeginInstallTypes"),EventEndInstallTypes:t(()=>Tte,"EventEndInstallTypes"),EventInitializationFailed:t(()=>Uve,"EventInitializationFailed"),EventTypesRegistry:t(()=>bte,"EventTypesRegistry"),ExternalProject:t(()=>Pie,"ExternalProject"),GcTimer:t(()=>WEe,"GcTimer"),InferredProject:t(()=>tCe,"InferredProject"),LargeFileReferencedEvent:t(()=>Fie,"LargeFileReferencedEvent"),LineIndex:t(()=>AR,"LineIndex"),LineLeaf:t(()=>IW,"LineLeaf"),LineNode:t(()=>aN,"LineNode"),LogLevel:t(()=>LEe,"LogLevel"),Msg:t(()=>REe,"Msg"),OpenFileInfoTelemetryEvent:t(()=>aCe,"OpenFileInfoTelemetryEvent"),Project:t(()=>BD,"Project"),ProjectInfoTelemetryEvent:t(()=>Mie,"ProjectInfoTelemetryEvent"),ProjectKind:t(()=>P8,"ProjectKind"),ProjectLanguageServiceStateEvent:t(()=>Rie,"ProjectLanguageServiceStateEvent"),ProjectLoadingFinishEvent:t(()=>Oie,"ProjectLoadingFinishEvent"),ProjectLoadingStartEvent:t(()=>Iie,"ProjectLoadingStartEvent"),ProjectService:t(()=>bCe,"ProjectService"),ProjectsUpdatedInBackgroundEvent:t(()=>PW,"ProjectsUpdatedInBackgroundEvent"),ScriptInfo:t(()=>GEe,"ScriptInfo"),ScriptVersionCache:t(()=>Zie,"ScriptVersionCache"),Session:t(()=>YGe,"Session"),TextStorage:t(()=>HEe,"TextStorage"),ThrottledOperations:t(()=>JEe,"ThrottledOperations"),TypingsInstallerAdapter:t(()=>tYe,"TypingsInstallerAdapter"),allFilesAreJsOrDts:t(()=>ZEe,"allFilesAreJsOrDts"),allRootFilesAreJsOrDts:t(()=>XEe,"allRootFilesAreJsOrDts"),asNormalizedPath:t(()=>pGe,"asNormalizedPath"),convertCompilerOptions:t(()=>AW,"convertCompilerOptions"),convertFormatOptions:t(()=>nN,"convertFormatOptions"),convertScriptKindName:t(()=>$ie,"convertScriptKindName"),convertTypeAcquisition:t(()=>cCe,"convertTypeAcquisition"),convertUserPreferences:t(()=>lCe,"convertUserPreferences"),convertWatchOptions:t(()=>DR,"convertWatchOptions"),countEachFileTypes:t(()=>ER,"countEachFileTypes"),createInstallTypingsRequest:t(()=>MEe,"createInstallTypingsRequest"),createModuleSpecifierCache:t(()=>xCe,"createModuleSpecifierCache"),createNormalizedPathMap:t(()=>dGe,"createNormalizedPathMap"),createPackageJsonCache:t(()=>ECe,"createPackageJsonCache"),createSortedArray:t(()=>$Ee,"createSortedArray"),emptyArray:t(()=>fu,"emptyArray"),findArgument:t(()=>pMe,"findArgument"),formatDiagnosticToProtocol:t(()=>PR,"formatDiagnosticToProtocol"),formatMessage:t(()=>CCe,"formatMessage"),getBaseConfigFileName:t(()=>Die,"getBaseConfigFileName"),getDetailWatchInfo:t(()=>Vie,"getDetailWatchInfo"),getLocationInNewDocument:t(()=>PCe,"getLocationInNewDocument"),hasArgument:t(()=>_Me,"hasArgument"),hasNoTypeScriptSource:t(()=>QEe,"hasNoTypeScriptSource"),indent:t(()=>e8,"indent"),isBackgroundProject:t(()=>kR,"isBackgroundProject"),isConfigFile:t(()=>SCe,"isConfigFile"),isConfiguredProject:t(()=>dv,"isConfiguredProject"),isDynamicFileName:t(()=>D8,"isDynamicFileName"),isExternalProject:t(()=>CR,"isExternalProject"),isInferredProject:t(()=>rN,"isInferredProject"),isInferredProjectName:t(()=>jEe,"isInferredProjectName"),isProjectDeferredClose:t(()=>wR,"isProjectDeferredClose"),makeAutoImportProviderProjectName:t(()=>UEe,"makeAutoImportProviderProjectName"),makeAuxiliaryProjectName:t(()=>zEe,"makeAuxiliaryProjectName"),makeInferredProjectName:t(()=>BEe,"makeInferredProjectName"),maxFileSize:t(()=>Nie,"maxFileSize"),maxProgramSizeForNonTsFiles:t(()=>Aie,"maxProgramSizeForNonTsFiles"),normalizedPathToPath:t(()=>tN,"normalizedPathToPath"),nowString:t(()=>dMe,"nowString"),nullCancellationToken:t(()=>jGe,"nullCancellationToken"),nullTypingsInstaller:t(()=>NW,"nullTypingsInstaller"),protocol:t(()=>qEe,"protocol"),scriptInfoIsContainedByBackgroundProject:t(()=>YEe,"scriptInfoIsContainedByBackgroundProject"),scriptInfoIsContainedByDeferredClosedProject:t(()=>KEe,"scriptInfoIsContainedByDeferredClosedProject"),stringifyIndented:t(()=>f2,"stringifyIndented"),toEvent:t(()=>kCe,"toEvent"),toNormalizedPath:t(()=>Io,"toNormalizedPath"),tryConvertScriptKindName:t(()=>zie,"tryConvertScriptKindName"),typingsInstaller:t(()=>FEe,"typingsInstaller"),updateProjectIfDirty:t(()=>hm,"updateProjectIfDirty")}),typeof console<"u"&&(L.loggingHost={log(e,r){switch(e){case 1:return console.error(r);case 2:return console.warn(r);case 3:return console.log(r);case 4:return console.log(r)}}})})({get exports(){return Lpt},set exports(s){Lpt=s,typeof Zle<"u"&&Zle.exports&&(Zle.exports=s)}})});var Hpt=or(aG=>{"use strict";var Hmr=aG&&aG.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(aG,"__esModule",{value:!0});aG.attachChildCleanup=ehr;var Gmr=Hmr(uo("node:os")),Ymr=["SIGINT","SIGTERM","SIGHUP"],eue=new Set,tue=new Map,VM;function Vpt(){for(let s of eue)if(!(s.exitCode!==null||s.signalCode!==null))try{s.kill("SIGKILL")}catch{}}t(Vpt,"killAllChildren");function Kmr(s){let o=Gmr.default.constants.signals[s];return typeof o=="number"?128+o:1}t(Kmr,"reRaiseExitCode");function Xmr(s){return()=>{if(Vpt(),process.listenerCount(s)<=1){let o=tue.get(s);o&&process.off(s,o);try{process.kill(process.pid,s)}catch{process.exit(Kmr(s))}}}}t(Xmr,"makeSignalListener");function Zmr(){if(!VM){VM=t(()=>{Vpt()},"exitListener"),process.on("exit",VM);for(let s of Ymr){let o=Xmr(s);tue.set(s,o),process.on(s,o)}}}t(Zmr,"installProcessListeners");function Qmr(){if(VM){process.off("exit",VM),VM=void 0;for(let[s,o]of tue)process.off(s,o);tue.clear()}}t(Qmr,"uninstallProcessListeners");function ehr(s){eue.add(s),Zmr();let o=!1,f=t(()=>{o||(o=!0,eue.delete(s),eue.size===0&&Qmr())},"detach");return s.once("exit",f),f}t(ehr,"attachChildCleanup")});var Fu={};qtt(Fu,{__addDisposableResource:()=>ydt,__assign:()=>rue,__asyncDelegator:()=>udt,__asyncGenerator:()=>ldt,__asyncValues:()=>fdt,__await:()=>HM,__awaiter:()=>ndt,__classPrivateFieldGet:()=>mdt,__classPrivateFieldIn:()=>gdt,__classPrivateFieldSet:()=>hdt,__createBinding:()=>iue,__decorate:()=>Kpt,__disposeResources:()=>vdt,__esDecorate:()=>Zpt,__exportStar:()=>sdt,__extends:()=>Gpt,__generator:()=>idt,__importDefault:()=>ddt,__importStar:()=>pdt,__makeTemplateObject:()=>_dt,__metadata:()=>rdt,__param:()=>Xpt,__propKey:()=>edt,__read:()=>h3e,__rest:()=>Ypt,__rewriteRelativeImportExtension:()=>bdt,__runInitializers:()=>Qpt,__setFunctionName:()=>tdt,__spread:()=>adt,__spreadArray:()=>cdt,__spreadArrays:()=>odt,__values:()=>nue,default:()=>nhr});function Gpt(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");d3e(s,o);function f(){this.constructor=s}t(f,"__"),s.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}function Ypt(s,o){var f={};for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&o.indexOf(d)<0&&(f[d]=s[d]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,d=Object.getOwnPropertySymbols(s);y<d.length;y++)o.indexOf(d[y])<0&&Object.prototype.propertyIsEnumerable.call(s,d[y])&&(f[d[y]]=s[d[y]]);return f}function Kpt(s,o,f,d){var y=arguments.length,x=y<3?o:d===null?d=Object.getOwnPropertyDescriptor(o,f):d,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(s,o,f,d);else for(var F=s.length-1;F>=0;F--)(A=s[F])&&(x=(y<3?A(x):y>3?A(o,f,x):A(o,f))||x);return y>3&&x&&Object.defineProperty(o,f,x),x}function Xpt(s,o){return function(f,d){o(f,d,s)}}function Zpt(s,o,f,d,y,x){function A(Ut){if(Ut!==void 0&&typeof Ut!="function")throw new TypeError("Function expected");return Ut}t(A,"accept");for(var F=d.kind,W=F==="getter"?"get":F==="setter"?"set":"value",G=!o&&s?d.static?s:s.prototype:null,be=o||(G?Object.getOwnPropertyDescriptor(G,d.name):{}),de,se=!1,Xe=f.length-1;Xe>=0;Xe--){var Ue={};for(var je in d)Ue[je]=je==="access"?{}:d[je];for(var je in d.access)Ue.access[je]=d.access[je];Ue.addInitializer=function(Ut){if(se)throw new TypeError("Cannot add initializers after decoration has completed");x.push(A(Ut||null))};var Vt=(0,f[Xe])(F==="accessor"?{get:be.get,set:be.set}:be[W],Ue);if(F==="accessor"){if(Vt===void 0)continue;if(Vt===null||typeof Vt!="object")throw new TypeError("Object expected");(de=A(Vt.get))&&(be.get=de),(de=A(Vt.set))&&(be.set=de),(de=A(Vt.init))&&y.unshift(de)}else(de=A(Vt))&&(F==="field"?y.unshift(de):be[W]=de)}G&&Object.defineProperty(G,d.name,be),se=!0}function Qpt(s,o,f){for(var d=arguments.length>2,y=0;y<o.length;y++)f=d?o[y].call(s,f):o[y].call(s);return d?f:void 0}function edt(s){return typeof s=="symbol"?s:"".concat(s)}function tdt(s,o,f){return typeof o=="symbol"&&(o=o.description?"[".concat(o.description,"]"):""),Object.defineProperty(s,"name",{configurable:!0,value:f?"".concat(f," ",o):o})}function rdt(s,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,o)}function ndt(s,o,f,d){function y(x){return x instanceof f?x:new f(function(A){A(x)})}return t(y,"adopt"),new(f||(f=Promise))(function(x,A){function F(be){try{G(d.next(be))}catch(de){A(de)}}t(F,"fulfilled");function W(be){try{G(d.throw(be))}catch(de){A(de)}}t(W,"rejected");function G(be){be.done?x(be.value):y(be.value).then(F,W)}t(G,"step"),G((d=d.apply(s,o||[])).next())})}function idt(s,o){var f={label:0,sent:t(function(){if(x[0]&1)throw x[1];return x[1]},"sent"),trys:[],ops:[]},d,y,x,A=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return A.next=F(0),A.throw=F(1),A.return=F(2),typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function F(G){return function(be){return W([G,be])}}function W(G){if(d)throw new TypeError("Generator is already executing.");for(;A&&(A=0,G[0]&&(f=0)),f;)try{if(d=1,y&&(x=G[0]&2?y.return:G[0]?y.throw||((x=y.return)&&x.call(y),0):y.next)&&!(x=x.call(y,G[1])).done)return x;switch(y=0,x&&(G=[G[0]&2,x.value]),G[0]){case 0:case 1:x=G;break;case 4:return f.label++,{value:G[1],done:!1};case 5:f.label++,y=G[1],G=[0];continue;case 7:G=f.ops.pop(),f.trys.pop();continue;default:if(x=f.trys,!(x=x.length>0&&x[x.length-1])&&(G[0]===6||G[0]===2)){f=0;continue}if(G[0]===3&&(!x||G[1]>x[0]&&G[1]<x[3])){f.label=G[1];break}if(G[0]===6&&f.label<x[1]){f.label=x[1],x=G;break}if(x&&f.label<x[2]){f.label=x[2],f.ops.push(G);break}x[2]&&f.ops.pop(),f.trys.pop();continue}G=o.call(s,f)}catch(be){G=[6,be],y=0}finally{d=x=0}if(G[0]&5)throw G[1];return{value:G[0]?G[1]:void 0,done:!0}}}function sdt(s,o){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(o,f)&&iue(o,s,f)}function nue(s){var o=typeof Symbol=="function"&&Symbol.iterator,f=o&&s[o],d=0;if(f)return f.call(s);if(s&&typeof s.length=="number")return{next:t(function(){return s&&d>=s.length&&(s=void 0),{value:s&&s[d++],done:!s}},"next")};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function h3e(s,o){var f=typeof Symbol=="function"&&s[Symbol.iterator];if(!f)return s;var d=f.call(s),y,x=[],A;try{for(;(o===void 0||o-- >0)&&!(y=d.next()).done;)x.push(y.value)}catch(F){A={error:F}}finally{try{y&&!y.done&&(f=d.return)&&f.call(d)}finally{if(A)throw A.error}}return x}function adt(){for(var s=[],o=0;o<arguments.length;o++)s=s.concat(h3e(arguments[o]));return s}function odt(){for(var s=0,o=0,f=arguments.length;o<f;o++)s+=arguments[o].length;for(var d=Array(s),y=0,o=0;o<f;o++)for(var x=arguments[o],A=0,F=x.length;A<F;A++,y++)d[y]=x[A];return d}function cdt(s,o,f){if(f||arguments.length===2)for(var d=0,y=o.length,x;d<y;d++)(x||!(d in o))&&(x||(x=Array.prototype.slice.call(o,0,d)),x[d]=o[d]);return s.concat(x||Array.prototype.slice.call(o))}function HM(s){return this instanceof HM?(this.v=s,this):new HM(s)}function ldt(s,o,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=f.apply(s,o||[]),y,x=[];return y=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),F("next"),F("throw"),F("return",A),y[Symbol.asyncIterator]=function(){return this},y;function A(Xe){return function(Ue){return Promise.resolve(Ue).then(Xe,de)}}function F(Xe,Ue){d[Xe]&&(y[Xe]=function(je){return new Promise(function(Vt,Ut){x.push([Xe,je,Vt,Ut])>1||W(Xe,je)})},Ue&&(y[Xe]=Ue(y[Xe])))}function W(Xe,Ue){try{G(d[Xe](Ue))}catch(je){se(x[0][3],je)}}function G(Xe){Xe.value instanceof HM?Promise.resolve(Xe.value.v).then(be,de):se(x[0][2],Xe)}function be(Xe){W("next",Xe)}function de(Xe){W("throw",Xe)}function se(Xe,Ue){Xe(Ue),x.shift(),x.length&&W(x[0][0],x[0][1])}}function udt(s){var o,f;return o={},d("next"),d("throw",function(y){throw y}),d("return"),o[Symbol.iterator]=function(){return this},o;function d(y,x){o[y]=s[y]?function(A){return(f=!f)?{value:HM(s[y](A)),done:!1}:x?x(A):A}:x}}function fdt(s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s[Symbol.asyncIterator],f;return o?o.call(s):(s=typeof nue=="function"?nue(s):s[Symbol.iterator](),f={},d("next"),d("throw"),d("return"),f[Symbol.asyncIterator]=function(){return this},f);function d(x){f[x]=s[x]&&function(A){return new Promise(function(F,W){A=s[x](A),y(F,W,A.done,A.value)})}}function y(x,A,F,W){Promise.resolve(W).then(function(G){x({value:G,done:F})},A)}}function _dt(s,o){return Object.defineProperty?Object.defineProperty(s,"raw",{value:o}):s.raw=o,s}function pdt(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var f=m3e(s),d=0;d<f.length;d++)f[d]!=="default"&&iue(o,s,f[d]);return thr(o,s),o}function ddt(s){return s&&s.__esModule?s:{default:s}}function mdt(s,o,f,d){if(f==="a"&&!d)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?s!==o||!d:!o.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?d:f==="a"?d.call(s):d?d.value:o.get(s)}function hdt(s,o,f,d,y){if(d==="m")throw new TypeError("Private method is not writable");if(d==="a"&&!y)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?s!==o||!y:!o.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return d==="a"?y.call(s,f):y?y.value=f:o.set(s,f),f}function gdt(s,o){if(o===null||typeof o!="object"&&typeof o!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof s=="function"?o===s:s.has(o)}function ydt(s,o,f){if(o!=null){if(typeof o!="object"&&typeof o!="function")throw new TypeError("Object expected.");var d,y;if(f){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");d=o[Symbol.asyncDispose]}if(d===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");d=o[Symbol.dispose],f&&(y=d)}if(typeof d!="function")throw new TypeError("Object not disposable.");y&&(d=t(function(){try{y.call(this)}catch(x){return Promise.reject(x)}},"dispose")),s.stack.push({value:o,dispose:d,async:f})}else f&&s.stack.push({async:!0});return o}function vdt(s){function o(x){s.error=s.hasError?new rhr(x,s.error,"An error was suppressed during disposal."):x,s.hasError=!0}t(o,"fail");var f,d=0;function y(){for(;f=s.stack.pop();)try{if(!f.async&&d===1)return d=0,s.stack.push(f),Promise.resolve().then(y);if(f.dispose){var x=f.dispose.call(f.value);if(f.async)return d|=2,Promise.resolve(x).then(y,function(A){return o(A),y()})}else d|=1}catch(A){o(A)}if(d===1)return s.hasError?Promise.reject(s.error):Promise.resolve();if(s.hasError)throw s.error}return t(y,"next"),y()}function bdt(s,o){return typeof s=="string"&&/^\.\.?\//.test(s)?s.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(f,d,y,x,A){return d?o?".jsx":".js":y&&(!x||!A)?f:y+x+"."+A.toLowerCase()+"js"}):s}var d3e,rue,iue,thr,m3e,rhr,nhr,Lu=LGt(()=>{d3e=t(function(s,o){return d3e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(f[y]=d[y])},d3e(s,o)},"extendStatics");t(Gpt,"__extends");rue=t(function(){return rue=Object.assign||t(function(o){for(var f,d=1,y=arguments.length;d<y;d++){f=arguments[d];for(var x in f)Object.prototype.hasOwnProperty.call(f,x)&&(o[x]=f[x])}return o},"__assign"),rue.apply(this,arguments)},"__assign");t(Ypt,"__rest");t(Kpt,"__decorate");t(Xpt,"__param");t(Zpt,"__esDecorate");t(Qpt,"__runInitializers");t(edt,"__propKey");t(tdt,"__setFunctionName");t(rdt,"__metadata");t(ndt,"__awaiter");t(idt,"__generator");iue=Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]});t(sdt,"__exportStar");t(nue,"__values");t(h3e,"__read");t(adt,"__spread");t(odt,"__spreadArrays");t(cdt,"__spreadArray");t(HM,"__await");t(ldt,"__asyncGenerator");t(udt,"__asyncDelegator");t(fdt,"__asyncValues");t(_dt,"__makeTemplateObject");thr=Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o},m3e=t(function(s){return m3e=Object.getOwnPropertyNames||function(o){var f=[];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(f[f.length]=d);return f},m3e(s)},"ownKeys");t(pdt,"__importStar");t(ddt,"__importDefault");t(mdt,"__classPrivateFieldGet");t(hdt,"__classPrivateFieldSet");t(gdt,"__classPrivateFieldIn");t(ydt,"__addDisposableResource");rhr=typeof SuppressedError=="function"?SuppressedError:function(s,o,f){var d=new Error(f);return d.name="SuppressedError",d.error=s,d.suppressed=o,d};t(vdt,"__disposeResources");t(bdt,"__rewriteRelativeImportExtension");nhr={__extends:Gpt,__assign:rue,__rest:Ypt,__decorate:Kpt,__param:Xpt,__esDecorate:Zpt,__runInitializers:Qpt,__propKey:edt,__setFunctionName:tdt,__metadata:rdt,__awaiter:ndt,__generator:idt,__createBinding:iue,__exportStar:sdt,__values:nue,__read:h3e,__spread:adt,__spreadArrays:odt,__spreadArray:cdt,__await:HM,__asyncGenerator:ldt,__asyncDelegator:udt,__asyncValues:fdt,__makeTemplateObject:_dt,__importStar:pdt,__importDefault:ddt,__classPrivateFieldGet:mdt,__classPrivateFieldSet:hdt,__classPrivateFieldIn:gdt,__addDisposableResource:ydt,__disposeResources:vdt,__rewriteRelativeImportExtension:bdt}});var Tdt=or((wFr,Sdt)=>{var GM=1e3,YM=GM*60,KM=YM*60,GO=KM*24,ihr=GO*7,shr=GO*365.25;Sdt.exports=function(s,o){o=o||{};var f=typeof s;if(f==="string"&&s.length>0)return ahr(s);if(f==="number"&&isFinite(s))return o.long?chr(s):ohr(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function ahr(s){if(s=String(s),!(s.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(o){var f=parseFloat(o[1]),d=(o[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return f*shr;case"weeks":case"week":case"w":return f*ihr;case"days":case"day":case"d":return f*GO;case"hours":case"hour":case"hrs":case"hr":case"h":return f*KM;case"minutes":case"minute":case"mins":case"min":case"m":return f*YM;case"seconds":case"second":case"secs":case"sec":case"s":return f*GM;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}t(ahr,"parse");function ohr(s){var o=Math.abs(s);return o>=GO?Math.round(s/GO)+"d":o>=KM?Math.round(s/KM)+"h":o>=YM?Math.round(s/YM)+"m":o>=GM?Math.round(s/GM)+"s":s+"ms"}t(ohr,"fmtShort");function chr(s){var o=Math.abs(s);return o>=GO?sue(s,o,GO,"day"):o>=KM?sue(s,o,KM,"hour"):o>=YM?sue(s,o,YM,"minute"):o>=GM?sue(s,o,GM,"second"):s+" ms"}t(chr,"fmtLong");function sue(s,o,f,d){var y=o>=f*1.5;return Math.round(s/f)+" "+d+(y?"s":"")}t(sue,"plural")});var g3e=or((PFr,xdt)=>{function lhr(s){f.debug=f,f.default=f,f.coerce=W,f.disable=A,f.enable=y,f.enabled=F,f.humanize=Tdt(),f.destroy=G,Object.keys(s).forEach(be=>{f[be]=s[be]}),f.names=[],f.skips=[],f.formatters={};function o(be){let de=0;for(let se=0;se<be.length;se++)de=(de<<5)-de+be.charCodeAt(se),de|=0;return f.colors[Math.abs(de)%f.colors.length]}t(o,"selectColor"),f.selectColor=o;function f(be){let de,se=null,Xe,Ue;function je(...Vt){if(!je.enabled)return;let Ut=je,Ir=Number(new Date),wn=Ir-(de||Ir);Ut.diff=wn,Ut.prev=de,Ut.curr=Ir,de=Ir,Vt[0]=f.coerce(Vt[0]),typeof Vt[0]!="string"&&Vt.unshift("%O");let sn=0;Vt[0]=Vt[0].replace(/%([a-zA-Z%])/g,(kr,yr)=>{if(kr==="%%")return"%";sn++;let xs=f.formatters[yr];if(typeof xs=="function"){let bi=Vt[sn];kr=xs.call(Ut,bi),Vt.splice(sn,1),sn--}return kr}),f.formatArgs.call(Ut,Vt),(Ut.log||f.log).apply(Ut,Vt)}return t(je,"debug"),je.namespace=be,je.useColors=f.useColors(),je.color=f.selectColor(be),je.extend=d,je.destroy=f.destroy,Object.defineProperty(je,"enabled",{enumerable:!0,configurable:!1,get:t(()=>se!==null?se:(Xe!==f.namespaces&&(Xe=f.namespaces,Ue=f.enabled(be)),Ue),"get"),set:t(Vt=>{se=Vt},"set")}),typeof f.init=="function"&&f.init(je),je}t(f,"createDebug");function d(be,de){let se=f(this.namespace+(typeof de>"u"?":":de)+be);return se.log=this.log,se}t(d,"extend");function y(be){f.save(be),f.namespaces=be,f.names=[],f.skips=[];let de=(typeof be=="string"?be:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let se of de)se[0]==="-"?f.skips.push(se.slice(1)):f.names.push(se)}t(y,"enable");function x(be,de){let se=0,Xe=0,Ue=-1,je=0;for(;se<be.length;)if(Xe<de.length&&(de[Xe]===be[se]||de[Xe]==="*"))de[Xe]==="*"?(Ue=Xe,je=se,Xe++):(se++,Xe++);else if(Ue!==-1)Xe=Ue+1,je++,se=je;else return!1;for(;Xe<de.length&&de[Xe]==="*";)Xe++;return Xe===de.length}t(x,"matchesTemplate");function A(){let be=[...f.names,...f.skips.map(de=>"-"+de)].join(",");return f.enable(""),be}t(A,"disable");function F(be){for(let de of f.skips)if(x(be,de))return!1;for(let de of f.names)if(x(be,de))return!0;return!1}t(F,"enabled");function W(be){return be instanceof Error?be.stack||be.message:be}t(W,"coerce");function G(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t(G,"destroy"),f.enable(f.load()),f}t(lhr,"setup");xdt.exports=lhr});var Edt=or((eb,aue)=>{eb.formatArgs=fhr;eb.save=_hr;eb.load=phr;eb.useColors=uhr;eb.storage=dhr();eb.destroy=(()=>{let s=!1;return()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();eb.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function uhr(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let s;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(s=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(s[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t(uhr,"useColors");function fhr(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+aue.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;s.splice(1,0,o,"color: inherit");let f=0,d=0;s[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(f++,y==="%c"&&(d=f))}),s.splice(d,0,o)}t(fhr,"formatArgs");eb.log=console.debug||console.log||(()=>{});function _hr(s){try{s?eb.storage.setItem("debug",s):eb.storage.removeItem("debug")}catch{}}t(_hr,"save");function phr(){let s;try{s=eb.storage.getItem("debug")||eb.storage.getItem("DEBUG")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}t(phr,"load");function dhr(){try{return localStorage}catch{}}t(dhr,"localstorage");aue.exports=g3e()(eb);var{formatters:mhr}=aue.exports;mhr.j=function(s){try{return JSON.stringify(s)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var kdt=or((IFr,Cdt)=>{"use strict";Cdt.exports=(s,o=process.argv)=>{let f=s.startsWith("-")?"":s.length===1?"-":"--",d=o.indexOf(f+s),y=o.indexOf("--");return d!==-1&&(y===-1||d<y)}});var Pdt=or((OFr,Ddt)=>{"use strict";var hhr=uo("os"),wdt=uo("tty"),xT=kdt(),{env:Mg}=process,oue;xT("no-color")||xT("no-colors")||xT("color=false")||xT("color=never")?oue=0:(xT("color")||xT("colors")||xT("color=true")||xT("color=always"))&&(oue=1);function ghr(){if("FORCE_COLOR"in Mg)return Mg.FORCE_COLOR==="true"?1:Mg.FORCE_COLOR==="false"?0:Mg.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Mg.FORCE_COLOR,10),3)}t(ghr,"envForceColor");function yhr(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}t(yhr,"translateLevel");function vhr(s,{streamIsTTY:o,sniffFlags:f=!0}={}){let d=ghr();d!==void 0&&(oue=d);let y=f?oue:d;if(y===0)return 0;if(f){if(xT("color=16m")||xT("color=full")||xT("color=truecolor"))return 3;if(xT("color=256"))return 2}if(s&&!o&&y===void 0)return 0;let x=y||0;if(Mg.TERM==="dumb")return x;if(process.platform==="win32"){let A=hhr.release().split(".");return Number(A[0])>=10&&Number(A[2])>=10586?Number(A[2])>=14931?3:2:1}if("CI"in Mg)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(A=>A in Mg)||Mg.CI_NAME==="codeship"?1:x;if("TEAMCITY_VERSION"in Mg)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Mg.TEAMCITY_VERSION)?1:0;if(Mg.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Mg){let A=Number.parseInt((Mg.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Mg.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Mg.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Mg.TERM)||"COLORTERM"in Mg?1:x}t(vhr,"supportsColor");function y3e(s,o={}){let f=vhr(s,{streamIsTTY:s&&s.isTTY,...o});return yhr(f)}t(y3e,"getSupportLevel");Ddt.exports={supportsColor:y3e,stdout:y3e({isTTY:wdt.isatty(1)}),stderr:y3e({isTTY:wdt.isatty(2)})}});var Ndt=or((jg,lue)=>{var bhr=uo("tty"),cue=uo("util");jg.init=whr;jg.log=Ehr;jg.formatArgs=Thr;jg.save=Chr;jg.load=khr;jg.useColors=Shr;jg.destroy=cue.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");jg.colors=[6,2,3,4,5,1];try{let s=Pdt();s&&(s.stderr||s).level>=2&&(jg.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}jg.inspectOpts=Object.keys(process.env).filter(s=>/^debug_/i.test(s)).reduce((s,o)=>{let f=o.substring(6).toLowerCase().replace(/_([a-z])/g,(y,x)=>x.toUpperCase()),d=process.env[o];return/^(yes|on|true|enabled)$/i.test(d)?d=!0:/^(no|off|false|disabled)$/i.test(d)?d=!1:d==="null"?d=null:d=Number(d),s[f]=d,s},{});function Shr(){return"colors"in jg.inspectOpts?!!jg.inspectOpts.colors:bhr.isatty(process.stderr.fd)}t(Shr,"useColors");function Thr(s){let{namespace:o,useColors:f}=this;if(f){let d=this.color,y="\x1B[3"+(d<8?d:"8;5;"+d),x=` ${y};1m${o} \x1B[0m`;s[0]=x+s[0].split(`
|
|
544
544
|
`).join(`
|
|
545
545
|
`+x),s.push(y+"m+"+lue.exports.humanize(this.diff)+"\x1B[0m")}else s[0]=xhr()+o+" "+s[0]}t(Thr,"formatArgs");function xhr(){return jg.inspectOpts.hideDate?"":new Date().toISOString()+" "}t(xhr,"getDate");function Ehr(...s){return process.stderr.write(cue.formatWithOptions(jg.inspectOpts,...s)+`
|
|
546
546
|
`)}t(Ehr,"log");function Chr(s){s?process.env.DEBUG=s:delete process.env.DEBUG}t(Chr,"save");function khr(){return process.env.DEBUG}t(khr,"load");function whr(s){s.inspectOpts={};let o=Object.keys(jg.inspectOpts);for(let f=0;f<o.length;f++)s.inspectOpts[o[f]]=jg.inspectOpts[o[f]]}t(whr,"init");lue.exports=g3e()(jg);var{formatters:Adt}=lue.exports;Adt.o=function(s){return this.inspectOpts.colors=this.useColors,cue.inspect(s,this.inspectOpts).split(`
|
|
547
|
-
`).map(o=>o.trim()).join(" ")};Adt.O=function(s){return this.inspectOpts.colors=this.useColors,cue.inspect(s,this.inspectOpts)}});var Vu=or((LFr,v3e)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?v3e.exports=Edt():v3e.exports=Ndt()});var PS=or(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.MAX_SEGMENT_LENGTH=Ic.MAX_DEPTH=Ic.VAL32=Ic.POINTER_TYPE_MASK=Ic.POINTER_DOUBLE_FAR_MASK=Ic.POINTER_COPY_LIMIT=Ic.PACK_SPAN_THRESHOLD=Ic.NATIVE_LITTLE_ENDIAN=Ic.MIN_SINGLE_SEGMENT_GROWTH=Ic.MIN_SAFE_INTEGER=Ic.MAX_STREAM_SEGMENTS=Ic.MAX_SAFE_INTEGER=Ic.MAX_UINT32=Ic.MAX_INT32=Ic.MAX_BUFFER_DUMP_BYTES=Ic.LIST_SIZE_MASK=Ic.GROWTH_FACTOR=Ic.DEFAULT_TRAVERSE_LIMIT=Ic.DEFAULT_DEPTH_LIMIT=Ic.DEFAULT_DECODE_LIMIT=Ic.DEFAULT_BUFFER_SIZE=void 0;var Idt=new DataView(new ArrayBuffer(8));new Uint16Array(Idt.buffer)[0]=258;Ic.DEFAULT_BUFFER_SIZE=4096;Ic.DEFAULT_DECODE_LIMIT=64<<20;Ic.DEFAULT_DEPTH_LIMIT=64;Ic.DEFAULT_TRAVERSE_LIMIT=64<<20;Ic.GROWTH_FACTOR=1.5;Ic.LIST_SIZE_MASK=7;Ic.MAX_BUFFER_DUMP_BYTES=8192;Ic.MAX_INT32=2147483647;Ic.MAX_UINT32=4294967295;Ic.MAX_SAFE_INTEGER=9007199254740991;Ic.MAX_STREAM_SEGMENTS=512;Ic.MIN_SAFE_INTEGER=-9007199254740991;Ic.MIN_SINGLE_SEGMENT_GROWTH=4096;Ic.NATIVE_LITTLE_ENDIAN=Idt.getUint8(0)===2;Ic.PACK_SPAN_THRESHOLD=2;Ic.POINTER_COPY_LIMIT=32;Ic.POINTER_DOUBLE_FAR_MASK=4;Ic.POINTER_TYPE_MASK=3;Ic.VAL32=4294967296;Ic.MAX_DEPTH=Ic.MAX_INT32;Ic.MAX_SEGMENT_LENGTH=Ic.MAX_UINT32});var B1=or(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.PTR_WRITE_CONST_STRUCT=Ts.PTR_WRITE_CONST_LIST=Ts.TYPE_SET_GENERIC_LIST=Ts.TYPE_GET_GENERIC_LIST=Ts.TYPE_COMPOSITE_SIZE_UNDEFINED=Ts.SEG_SIZE_OVERFLOW=Ts.SEG_REPLACEMENT_BUFFER_TOO_SMALL=Ts.SEG_NOT_WORD_ALIGNED=Ts.SEG_ID_OUT_OF_BOUNDS=Ts.SEG_GET_NON_ZERO_SINGLE=Ts.SEG_BUFFER_NOT_ALLOCATED=Ts.RANGE_UINT32_OVERFLOW=Ts.RANGE_SIZE_OVERFLOW=Ts.RANGE_INVALID_UTF8=Ts.RANGE_INT64_UNDERFLOW=Ts.RANGE_INT32_OVERFLOW=Ts.PTR_WRONG_STRUCT_PTR_SIZE=Ts.PTR_WRONG_STRUCT_DATA_SIZE=Ts.PTR_WRONG_COMPOSITE_PTR_SIZE=Ts.PTR_WRONG_COMPOSITE_DATA_SIZE=Ts.PTR_WRONG_POINTER_TYPE=Ts.PTR_WRONG_LIST_TYPE=Ts.PTR_TRAVERSAL_LIMIT_EXCEEDED=Ts.PTR_STRUCT_POINTER_OUT_OF_BOUNDS=Ts.PTR_STRUCT_DATA_OUT_OF_BOUNDS=Ts.PTR_OFFSET_OUT_OF_BOUNDS=Ts.PTR_INVALID_UNION_ACCESS=Ts.PTR_INVALID_POINTER_TYPE=Ts.PTR_INVALID_LIST_SIZE=Ts.PTR_INVALID_FAR_TARGET=Ts.PTR_INIT_NON_GROUP=Ts.PTR_INIT_COMPOSITE_STRUCT=Ts.PTR_DISOWN_COMPOSITE_STRUCT=Ts.PTR_DEPTH_LIMIT_EXCEEDED=Ts.PTR_COMPOSITE_SIZE_UNDEFINED=Ts.PTR_ALREADY_ADOPTED=Ts.PTR_ADOPT_WRONG_MESSAGE=Ts.PTR_ADOPT_COMPOSITE_STRUCT=Ts.NOT_IMPLEMENTED=Ts.MSG_SEGMENT_TOO_SMALL=Ts.MSG_SEGMENT_OUT_OF_BOUNDS=Ts.MSG_PACK_NOT_WORD_ALIGNED=Ts.MSG_NO_SEGMENTS_IN_ARENA=Ts.MSG_INVALID_FRAME_HEADER=Ts.assertNever=Ts.INVARIANT_UNREACHABLE_CODE=void 0;var Dhr=(Lu(),Wu(Fu)),Phr=Dhr.__importDefault(Vu()),Odt=PS(),Ahr=Phr.default("capnp:errors");Ahr("load");Ts.INVARIANT_UNREACHABLE_CODE="CAPNP-TS000 Unreachable code detected.";function Nhr(s){throw new Error(Ts.INVARIANT_UNREACHABLE_CODE+` (never block hit with: ${s})`)}t(Nhr,"assertNever");Ts.assertNever=Nhr;Ts.MSG_INVALID_FRAME_HEADER="CAPNP-TS001 Attempted to parse an invalid message frame header; are you sure this is a Cap'n Proto message?";Ts.MSG_NO_SEGMENTS_IN_ARENA="CAPNP-TS002 Attempted to preallocate a message with no segments in the arena.";Ts.MSG_PACK_NOT_WORD_ALIGNED="CAPNP-TS003 Attempted to pack a message that was not word-aligned.";Ts.MSG_SEGMENT_OUT_OF_BOUNDS="CAPNP-TS004 Segment ID %X is out of bounds for message %s.";Ts.MSG_SEGMENT_TOO_SMALL="CAPNP-TS005 First segment must have at least enough room to hold the root pointer (8 bytes).";Ts.NOT_IMPLEMENTED="CAPNP-TS006 %s is not implemented.";Ts.PTR_ADOPT_COMPOSITE_STRUCT="CAPNP-TS007 Attempted to adopt a struct into a composite list (%s).";Ts.PTR_ADOPT_WRONG_MESSAGE="CAPNP-TS008 Attempted to adopt %s into a pointer in a different message %s.";Ts.PTR_ALREADY_ADOPTED="CAPNP-TS009 Attempted to adopt %s more than once.";Ts.PTR_COMPOSITE_SIZE_UNDEFINED="CAPNP-TS010 Attempted to set a composite list without providing a composite element size.";Ts.PTR_DEPTH_LIMIT_EXCEEDED="CAPNP-TS011 Nesting depth limit exceeded for %s.";Ts.PTR_DISOWN_COMPOSITE_STRUCT="CAPNP-TS012 Attempted to disown a struct member from a composite list (%s).";Ts.PTR_INIT_COMPOSITE_STRUCT="CAPNP-TS013 Attempted to initialize a struct member from a composite list (%s).";Ts.PTR_INIT_NON_GROUP="CAPNP-TS014 Attempted to initialize a group field with a non-group struct class.";Ts.PTR_INVALID_FAR_TARGET="CAPNP-TS015 Target of a far pointer (%s) is another far pointer.";Ts.PTR_INVALID_LIST_SIZE="CAPNP-TS016 Invalid list element size: %x.";Ts.PTR_INVALID_POINTER_TYPE="CAPNP-TS017 Invalid pointer type: %x.";Ts.PTR_INVALID_UNION_ACCESS="CAPNP-TS018 Attempted to access getter on %s for union field %s that is not currently set (wanted: %d, found: %d).";Ts.PTR_OFFSET_OUT_OF_BOUNDS="CAPNP-TS019 Pointer offset %a is out of bounds for underlying buffer.";Ts.PTR_STRUCT_DATA_OUT_OF_BOUNDS="CAPNP-TS020 Attempted to access out-of-bounds struct data (struct: %s, %d bytes at %a, data words: %d).";Ts.PTR_STRUCT_POINTER_OUT_OF_BOUNDS="CAPNP-TS021 Attempted to access out-of-bounds struct pointer (%s, index: %d, length: %d).";Ts.PTR_TRAVERSAL_LIMIT_EXCEEDED="CAPNP-TS022 Traversal limit exceeded! Slow down! %s";Ts.PTR_WRONG_LIST_TYPE="CAPNP-TS023 Cannot convert %s to a %s list.";Ts.PTR_WRONG_POINTER_TYPE="CAPNP-TS024 Attempted to convert pointer %s to a %s type.";Ts.PTR_WRONG_COMPOSITE_DATA_SIZE="CAPNP-TS025 Attempted to convert %s to a composite list with the wrong data size (found: %d).";Ts.PTR_WRONG_COMPOSITE_PTR_SIZE="CAPNP-TS026 Attempted to convert %s to a composite list with the wrong pointer size (found: %d).";Ts.PTR_WRONG_STRUCT_DATA_SIZE="CAPNP-TS027 Attempted to convert %s to a struct with the wrong data size (found: %d).";Ts.PTR_WRONG_STRUCT_PTR_SIZE="CAPNP-TS028 Attempted to convert %s to a struct with the wrong pointer size (found: %d).";Ts.RANGE_INT32_OVERFLOW="CAPNP-TS029 32-bit signed integer overflow detected.";Ts.RANGE_INT64_UNDERFLOW="CAPNP-TS030 Buffer is not large enough to hold a word.";Ts.RANGE_INVALID_UTF8="CAPNP-TS031 Invalid UTF-8 code sequence detected.";Ts.RANGE_SIZE_OVERFLOW=`CAPNP-TS032 Size %x exceeds maximum ${Odt.MAX_SEGMENT_LENGTH.toString(16)}.`;Ts.RANGE_UINT32_OVERFLOW="CAPNP-TS033 32-bit unsigned integer overflow detected.";Ts.SEG_BUFFER_NOT_ALLOCATED="CAPNP-TS034 allocate() needs to be called at least once before getting a buffer.";Ts.SEG_GET_NON_ZERO_SINGLE="CAPNP-TS035 Attempted to get a segment other than 0 (%d) from a single segment arena.";Ts.SEG_ID_OUT_OF_BOUNDS="CAPNP-TS036 Attempted to get an out-of-bounds segment (%d).";Ts.SEG_NOT_WORD_ALIGNED="CAPNP-TS037 Segment buffer length %d is not a multiple of 8.";Ts.SEG_REPLACEMENT_BUFFER_TOO_SMALL="CAPNP-TS038 Attempted to replace a segment buffer with one that is smaller than the allocated space.";Ts.SEG_SIZE_OVERFLOW=`CAPNP-TS039 Requested size %x exceeds maximum value (${Odt.MAX_SEGMENT_LENGTH}).`;Ts.TYPE_COMPOSITE_SIZE_UNDEFINED="CAPNP-TS040 Must provide a composite element size for composite list pointers.";Ts.TYPE_GET_GENERIC_LIST="CAPNP-TS041 Attempted to call get() on a generic list.";Ts.TYPE_SET_GENERIC_LIST="CAPNP-TS042 Attempted to call set() on a generic list.";Ts.PTR_WRITE_CONST_LIST="CAPNP-TS043 Attempted to write to a const list.";Ts.PTR_WRITE_CONST_STRUCT="CAPNP-TS044 Attempted to write to a const struct."});var Fdt=or(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.getVoidMask=tp.getUint64Mask=tp.getInt64Mask=tp.getBitMask=tp.getUint8Mask=tp.getUint32Mask=tp.getUint16Mask=tp.getInt8Mask=tp.getInt32Mask=tp.getInt16Mask=tp.getFloat64Mask=tp.getFloat32Mask=void 0;var Ihr=B1();function kI(s,o){return f=>{let d=new DataView(new ArrayBuffer(s));return o.call(d,0,f,!0),d}}t(kI,"_makePrimitiveMaskFn");tp.getFloat32Mask=kI(4,DataView.prototype.setFloat32);tp.getFloat64Mask=kI(8,DataView.prototype.setFloat64);tp.getInt16Mask=kI(2,DataView.prototype.setInt16);tp.getInt32Mask=kI(4,DataView.prototype.setInt32);tp.getInt8Mask=kI(1,DataView.prototype.setInt8);tp.getUint16Mask=kI(2,DataView.prototype.setUint16);tp.getUint32Mask=kI(4,DataView.prototype.setUint32);tp.getUint8Mask=kI(1,DataView.prototype.setUint8);function Ohr(s,o){let f=new DataView(new ArrayBuffer(1));return s&&f.setUint8(0,1<<o%8),f}t(Ohr,"getBitMask");tp.getBitMask=Ohr;function Fhr(s){return s.toDataView()}t(Fhr,"getInt64Mask");tp.getInt64Mask=Fhr;function Lhr(s){return s.toDataView()}t(Lhr,"getUint64Mask");tp.getUint64Mask=Lhr;function Rhr(){throw new Error(Ihr.INVARIANT_UNREACHABLE_CODE)}t(Rhr,"getVoidMask");tp.getVoidMask=Rhr});var em=or(YO=>{"use strict";Object.defineProperty(YO,"__esModule",{value:!0});YO.ListElementOffset=YO.ListElementSize=void 0;var Mhr;(function(s){s[s.VOID=0]="VOID",s[s.BIT=1]="BIT",s[s.BYTE=2]="BYTE",s[s.BYTE_2=3]="BYTE_2",s[s.BYTE_4=4]="BYTE_4",s[s.BYTE_8=5]="BYTE_8",s[s.POINTER=6]="POINTER",s[s.COMPOSITE=7]="COMPOSITE"})(Mhr=YO.ListElementSize||(YO.ListElementSize={}));YO.ListElementOffset=[0,.125,1,2,4,8,8,NaN]});var tb=or(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.repeat=Yp.padToWord=Yp.pad=Yp.identity=Yp.format=Yp.encodeUtf8=Yp.dumpBuffer=Yp.decodeUtf8=Yp.checkUint32=Yp.checkInt32=Yp.bufferToHex=void 0;var jhr=(Lu(),Wu(Fu)),oG=jhr.__importDefault(Vu()),uue=PS(),wI=B1(),Bhr=oG.default("capnp:util");Bhr("load");function Uhr(s){let o=new Uint8Array(s),f=[];for(let d=0;d<o.byteLength;d++)f.push(XM(o[d].toString(16),2));return`[${f.join(" ")}]`}t(Uhr,"bufferToHex");Yp.bufferToHex=Uhr;function zhr(s){if(s>uue.MAX_INT32||s<-uue.MAX_INT32)throw new RangeError(wI.RANGE_INT32_OVERFLOW);return s}t(zhr,"checkInt32");Yp.checkInt32=zhr;function $hr(s){if(s<0||s>uue.MAX_UINT32)throw new RangeError(wI.RANGE_UINT32_OVERFLOW);return s}t($hr,"checkUint32");Yp.checkUint32=$hr;function Jhr(s){let o=s.byteLength,f="",d=0,y=0,x=0,A=0,F=0,W=0;for(;d<o;){if(x=s[d++],(x&128)===0)y=x;else if((x&224)===192){if(d>=o)throw new RangeError(wI.RANGE_INVALID_UTF8);A=s[d++],y=(x&31)<<6|A&63}else if((x&240)===224){if(d+1>=o)throw new RangeError(wI.RANGE_INVALID_UTF8);A=s[d++],F=s[d++],y=(x&15)<<12|(A&63)<<6|F&63}else if((x&248)===240){if(d+2>=o)throw new RangeError(wI.RANGE_INVALID_UTF8);A=s[d++],F=s[d++],W=s[d++],y=(x&7)<<18|(A&63)<<12|(F&63)<<6|W&63}else throw new RangeError(wI.RANGE_INVALID_UTF8);if(y<=55295||y>=57344&&y<=65535)f+=String.fromCharCode(y);else{y-=65536;let G=(y>>>10)+55296,be=(y&1023)+56320;if(G<55296||G>56319)throw new RangeError(wI.RANGE_INVALID_UTF8);f+=String.fromCharCode(G,be)}}return f}t(Jhr,"decodeUtf8");Yp.decodeUtf8=Jhr;function Whr(s){let o=s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength),f=Math.min(o.byteLength,uue.MAX_BUFFER_DUMP_BYTES),d=b3e(`
|
|
547
|
+
`).map(o=>o.trim()).join(" ")};Adt.O=function(s){return this.inspectOpts.colors=this.useColors,cue.inspect(s,this.inspectOpts)}});var Vu=or((RFr,v3e)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?v3e.exports=Edt():v3e.exports=Ndt()});var PS=or(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.MAX_SEGMENT_LENGTH=Ic.MAX_DEPTH=Ic.VAL32=Ic.POINTER_TYPE_MASK=Ic.POINTER_DOUBLE_FAR_MASK=Ic.POINTER_COPY_LIMIT=Ic.PACK_SPAN_THRESHOLD=Ic.NATIVE_LITTLE_ENDIAN=Ic.MIN_SINGLE_SEGMENT_GROWTH=Ic.MIN_SAFE_INTEGER=Ic.MAX_STREAM_SEGMENTS=Ic.MAX_SAFE_INTEGER=Ic.MAX_UINT32=Ic.MAX_INT32=Ic.MAX_BUFFER_DUMP_BYTES=Ic.LIST_SIZE_MASK=Ic.GROWTH_FACTOR=Ic.DEFAULT_TRAVERSE_LIMIT=Ic.DEFAULT_DEPTH_LIMIT=Ic.DEFAULT_DECODE_LIMIT=Ic.DEFAULT_BUFFER_SIZE=void 0;var Idt=new DataView(new ArrayBuffer(8));new Uint16Array(Idt.buffer)[0]=258;Ic.DEFAULT_BUFFER_SIZE=4096;Ic.DEFAULT_DECODE_LIMIT=64<<20;Ic.DEFAULT_DEPTH_LIMIT=64;Ic.DEFAULT_TRAVERSE_LIMIT=64<<20;Ic.GROWTH_FACTOR=1.5;Ic.LIST_SIZE_MASK=7;Ic.MAX_BUFFER_DUMP_BYTES=8192;Ic.MAX_INT32=2147483647;Ic.MAX_UINT32=4294967295;Ic.MAX_SAFE_INTEGER=9007199254740991;Ic.MAX_STREAM_SEGMENTS=512;Ic.MIN_SAFE_INTEGER=-9007199254740991;Ic.MIN_SINGLE_SEGMENT_GROWTH=4096;Ic.NATIVE_LITTLE_ENDIAN=Idt.getUint8(0)===2;Ic.PACK_SPAN_THRESHOLD=2;Ic.POINTER_COPY_LIMIT=32;Ic.POINTER_DOUBLE_FAR_MASK=4;Ic.POINTER_TYPE_MASK=3;Ic.VAL32=4294967296;Ic.MAX_DEPTH=Ic.MAX_INT32;Ic.MAX_SEGMENT_LENGTH=Ic.MAX_UINT32});var B1=or(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.PTR_WRITE_CONST_STRUCT=Ts.PTR_WRITE_CONST_LIST=Ts.TYPE_SET_GENERIC_LIST=Ts.TYPE_GET_GENERIC_LIST=Ts.TYPE_COMPOSITE_SIZE_UNDEFINED=Ts.SEG_SIZE_OVERFLOW=Ts.SEG_REPLACEMENT_BUFFER_TOO_SMALL=Ts.SEG_NOT_WORD_ALIGNED=Ts.SEG_ID_OUT_OF_BOUNDS=Ts.SEG_GET_NON_ZERO_SINGLE=Ts.SEG_BUFFER_NOT_ALLOCATED=Ts.RANGE_UINT32_OVERFLOW=Ts.RANGE_SIZE_OVERFLOW=Ts.RANGE_INVALID_UTF8=Ts.RANGE_INT64_UNDERFLOW=Ts.RANGE_INT32_OVERFLOW=Ts.PTR_WRONG_STRUCT_PTR_SIZE=Ts.PTR_WRONG_STRUCT_DATA_SIZE=Ts.PTR_WRONG_COMPOSITE_PTR_SIZE=Ts.PTR_WRONG_COMPOSITE_DATA_SIZE=Ts.PTR_WRONG_POINTER_TYPE=Ts.PTR_WRONG_LIST_TYPE=Ts.PTR_TRAVERSAL_LIMIT_EXCEEDED=Ts.PTR_STRUCT_POINTER_OUT_OF_BOUNDS=Ts.PTR_STRUCT_DATA_OUT_OF_BOUNDS=Ts.PTR_OFFSET_OUT_OF_BOUNDS=Ts.PTR_INVALID_UNION_ACCESS=Ts.PTR_INVALID_POINTER_TYPE=Ts.PTR_INVALID_LIST_SIZE=Ts.PTR_INVALID_FAR_TARGET=Ts.PTR_INIT_NON_GROUP=Ts.PTR_INIT_COMPOSITE_STRUCT=Ts.PTR_DISOWN_COMPOSITE_STRUCT=Ts.PTR_DEPTH_LIMIT_EXCEEDED=Ts.PTR_COMPOSITE_SIZE_UNDEFINED=Ts.PTR_ALREADY_ADOPTED=Ts.PTR_ADOPT_WRONG_MESSAGE=Ts.PTR_ADOPT_COMPOSITE_STRUCT=Ts.NOT_IMPLEMENTED=Ts.MSG_SEGMENT_TOO_SMALL=Ts.MSG_SEGMENT_OUT_OF_BOUNDS=Ts.MSG_PACK_NOT_WORD_ALIGNED=Ts.MSG_NO_SEGMENTS_IN_ARENA=Ts.MSG_INVALID_FRAME_HEADER=Ts.assertNever=Ts.INVARIANT_UNREACHABLE_CODE=void 0;var Dhr=(Lu(),Wu(Fu)),Phr=Dhr.__importDefault(Vu()),Odt=PS(),Ahr=Phr.default("capnp:errors");Ahr("load");Ts.INVARIANT_UNREACHABLE_CODE="CAPNP-TS000 Unreachable code detected.";function Nhr(s){throw new Error(Ts.INVARIANT_UNREACHABLE_CODE+` (never block hit with: ${s})`)}t(Nhr,"assertNever");Ts.assertNever=Nhr;Ts.MSG_INVALID_FRAME_HEADER="CAPNP-TS001 Attempted to parse an invalid message frame header; are you sure this is a Cap'n Proto message?";Ts.MSG_NO_SEGMENTS_IN_ARENA="CAPNP-TS002 Attempted to preallocate a message with no segments in the arena.";Ts.MSG_PACK_NOT_WORD_ALIGNED="CAPNP-TS003 Attempted to pack a message that was not word-aligned.";Ts.MSG_SEGMENT_OUT_OF_BOUNDS="CAPNP-TS004 Segment ID %X is out of bounds for message %s.";Ts.MSG_SEGMENT_TOO_SMALL="CAPNP-TS005 First segment must have at least enough room to hold the root pointer (8 bytes).";Ts.NOT_IMPLEMENTED="CAPNP-TS006 %s is not implemented.";Ts.PTR_ADOPT_COMPOSITE_STRUCT="CAPNP-TS007 Attempted to adopt a struct into a composite list (%s).";Ts.PTR_ADOPT_WRONG_MESSAGE="CAPNP-TS008 Attempted to adopt %s into a pointer in a different message %s.";Ts.PTR_ALREADY_ADOPTED="CAPNP-TS009 Attempted to adopt %s more than once.";Ts.PTR_COMPOSITE_SIZE_UNDEFINED="CAPNP-TS010 Attempted to set a composite list without providing a composite element size.";Ts.PTR_DEPTH_LIMIT_EXCEEDED="CAPNP-TS011 Nesting depth limit exceeded for %s.";Ts.PTR_DISOWN_COMPOSITE_STRUCT="CAPNP-TS012 Attempted to disown a struct member from a composite list (%s).";Ts.PTR_INIT_COMPOSITE_STRUCT="CAPNP-TS013 Attempted to initialize a struct member from a composite list (%s).";Ts.PTR_INIT_NON_GROUP="CAPNP-TS014 Attempted to initialize a group field with a non-group struct class.";Ts.PTR_INVALID_FAR_TARGET="CAPNP-TS015 Target of a far pointer (%s) is another far pointer.";Ts.PTR_INVALID_LIST_SIZE="CAPNP-TS016 Invalid list element size: %x.";Ts.PTR_INVALID_POINTER_TYPE="CAPNP-TS017 Invalid pointer type: %x.";Ts.PTR_INVALID_UNION_ACCESS="CAPNP-TS018 Attempted to access getter on %s for union field %s that is not currently set (wanted: %d, found: %d).";Ts.PTR_OFFSET_OUT_OF_BOUNDS="CAPNP-TS019 Pointer offset %a is out of bounds for underlying buffer.";Ts.PTR_STRUCT_DATA_OUT_OF_BOUNDS="CAPNP-TS020 Attempted to access out-of-bounds struct data (struct: %s, %d bytes at %a, data words: %d).";Ts.PTR_STRUCT_POINTER_OUT_OF_BOUNDS="CAPNP-TS021 Attempted to access out-of-bounds struct pointer (%s, index: %d, length: %d).";Ts.PTR_TRAVERSAL_LIMIT_EXCEEDED="CAPNP-TS022 Traversal limit exceeded! Slow down! %s";Ts.PTR_WRONG_LIST_TYPE="CAPNP-TS023 Cannot convert %s to a %s list.";Ts.PTR_WRONG_POINTER_TYPE="CAPNP-TS024 Attempted to convert pointer %s to a %s type.";Ts.PTR_WRONG_COMPOSITE_DATA_SIZE="CAPNP-TS025 Attempted to convert %s to a composite list with the wrong data size (found: %d).";Ts.PTR_WRONG_COMPOSITE_PTR_SIZE="CAPNP-TS026 Attempted to convert %s to a composite list with the wrong pointer size (found: %d).";Ts.PTR_WRONG_STRUCT_DATA_SIZE="CAPNP-TS027 Attempted to convert %s to a struct with the wrong data size (found: %d).";Ts.PTR_WRONG_STRUCT_PTR_SIZE="CAPNP-TS028 Attempted to convert %s to a struct with the wrong pointer size (found: %d).";Ts.RANGE_INT32_OVERFLOW="CAPNP-TS029 32-bit signed integer overflow detected.";Ts.RANGE_INT64_UNDERFLOW="CAPNP-TS030 Buffer is not large enough to hold a word.";Ts.RANGE_INVALID_UTF8="CAPNP-TS031 Invalid UTF-8 code sequence detected.";Ts.RANGE_SIZE_OVERFLOW=`CAPNP-TS032 Size %x exceeds maximum ${Odt.MAX_SEGMENT_LENGTH.toString(16)}.`;Ts.RANGE_UINT32_OVERFLOW="CAPNP-TS033 32-bit unsigned integer overflow detected.";Ts.SEG_BUFFER_NOT_ALLOCATED="CAPNP-TS034 allocate() needs to be called at least once before getting a buffer.";Ts.SEG_GET_NON_ZERO_SINGLE="CAPNP-TS035 Attempted to get a segment other than 0 (%d) from a single segment arena.";Ts.SEG_ID_OUT_OF_BOUNDS="CAPNP-TS036 Attempted to get an out-of-bounds segment (%d).";Ts.SEG_NOT_WORD_ALIGNED="CAPNP-TS037 Segment buffer length %d is not a multiple of 8.";Ts.SEG_REPLACEMENT_BUFFER_TOO_SMALL="CAPNP-TS038 Attempted to replace a segment buffer with one that is smaller than the allocated space.";Ts.SEG_SIZE_OVERFLOW=`CAPNP-TS039 Requested size %x exceeds maximum value (${Odt.MAX_SEGMENT_LENGTH}).`;Ts.TYPE_COMPOSITE_SIZE_UNDEFINED="CAPNP-TS040 Must provide a composite element size for composite list pointers.";Ts.TYPE_GET_GENERIC_LIST="CAPNP-TS041 Attempted to call get() on a generic list.";Ts.TYPE_SET_GENERIC_LIST="CAPNP-TS042 Attempted to call set() on a generic list.";Ts.PTR_WRITE_CONST_LIST="CAPNP-TS043 Attempted to write to a const list.";Ts.PTR_WRITE_CONST_STRUCT="CAPNP-TS044 Attempted to write to a const struct."});var Fdt=or(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.getVoidMask=tp.getUint64Mask=tp.getInt64Mask=tp.getBitMask=tp.getUint8Mask=tp.getUint32Mask=tp.getUint16Mask=tp.getInt8Mask=tp.getInt32Mask=tp.getInt16Mask=tp.getFloat64Mask=tp.getFloat32Mask=void 0;var Ihr=B1();function kI(s,o){return f=>{let d=new DataView(new ArrayBuffer(s));return o.call(d,0,f,!0),d}}t(kI,"_makePrimitiveMaskFn");tp.getFloat32Mask=kI(4,DataView.prototype.setFloat32);tp.getFloat64Mask=kI(8,DataView.prototype.setFloat64);tp.getInt16Mask=kI(2,DataView.prototype.setInt16);tp.getInt32Mask=kI(4,DataView.prototype.setInt32);tp.getInt8Mask=kI(1,DataView.prototype.setInt8);tp.getUint16Mask=kI(2,DataView.prototype.setUint16);tp.getUint32Mask=kI(4,DataView.prototype.setUint32);tp.getUint8Mask=kI(1,DataView.prototype.setUint8);function Ohr(s,o){let f=new DataView(new ArrayBuffer(1));return s&&f.setUint8(0,1<<o%8),f}t(Ohr,"getBitMask");tp.getBitMask=Ohr;function Fhr(s){return s.toDataView()}t(Fhr,"getInt64Mask");tp.getInt64Mask=Fhr;function Lhr(s){return s.toDataView()}t(Lhr,"getUint64Mask");tp.getUint64Mask=Lhr;function Rhr(){throw new Error(Ihr.INVARIANT_UNREACHABLE_CODE)}t(Rhr,"getVoidMask");tp.getVoidMask=Rhr});var em=or(YO=>{"use strict";Object.defineProperty(YO,"__esModule",{value:!0});YO.ListElementOffset=YO.ListElementSize=void 0;var Mhr;(function(s){s[s.VOID=0]="VOID",s[s.BIT=1]="BIT",s[s.BYTE=2]="BYTE",s[s.BYTE_2=3]="BYTE_2",s[s.BYTE_4=4]="BYTE_4",s[s.BYTE_8=5]="BYTE_8",s[s.POINTER=6]="POINTER",s[s.COMPOSITE=7]="COMPOSITE"})(Mhr=YO.ListElementSize||(YO.ListElementSize={}));YO.ListElementOffset=[0,.125,1,2,4,8,8,NaN]});var tb=or(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.repeat=Yp.padToWord=Yp.pad=Yp.identity=Yp.format=Yp.encodeUtf8=Yp.dumpBuffer=Yp.decodeUtf8=Yp.checkUint32=Yp.checkInt32=Yp.bufferToHex=void 0;var jhr=(Lu(),Wu(Fu)),oG=jhr.__importDefault(Vu()),uue=PS(),wI=B1(),Bhr=oG.default("capnp:util");Bhr("load");function Uhr(s){let o=new Uint8Array(s),f=[];for(let d=0;d<o.byteLength;d++)f.push(XM(o[d].toString(16),2));return`[${f.join(" ")}]`}t(Uhr,"bufferToHex");Yp.bufferToHex=Uhr;function zhr(s){if(s>uue.MAX_INT32||s<-uue.MAX_INT32)throw new RangeError(wI.RANGE_INT32_OVERFLOW);return s}t(zhr,"checkInt32");Yp.checkInt32=zhr;function $hr(s){if(s<0||s>uue.MAX_UINT32)throw new RangeError(wI.RANGE_UINT32_OVERFLOW);return s}t($hr,"checkUint32");Yp.checkUint32=$hr;function Jhr(s){let o=s.byteLength,f="",d=0,y=0,x=0,A=0,F=0,W=0;for(;d<o;){if(x=s[d++],(x&128)===0)y=x;else if((x&224)===192){if(d>=o)throw new RangeError(wI.RANGE_INVALID_UTF8);A=s[d++],y=(x&31)<<6|A&63}else if((x&240)===224){if(d+1>=o)throw new RangeError(wI.RANGE_INVALID_UTF8);A=s[d++],F=s[d++],y=(x&15)<<12|(A&63)<<6|F&63}else if((x&248)===240){if(d+2>=o)throw new RangeError(wI.RANGE_INVALID_UTF8);A=s[d++],F=s[d++],W=s[d++],y=(x&7)<<18|(A&63)<<12|(F&63)<<6|W&63}else throw new RangeError(wI.RANGE_INVALID_UTF8);if(y<=55295||y>=57344&&y<=65535)f+=String.fromCharCode(y);else{y-=65536;let G=(y>>>10)+55296,be=(y&1023)+56320;if(G<55296||G>56319)throw new RangeError(wI.RANGE_INVALID_UTF8);f+=String.fromCharCode(G,be)}}return f}t(Jhr,"decodeUtf8");Yp.decodeUtf8=Jhr;function Whr(s){let o=s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength),f=Math.min(o.byteLength,uue.MAX_BUFFER_DUMP_BYTES),d=b3e(`
|
|
548
548
|
=== buffer[%d] ===`,f);for(let y=0;y<f;y+=16){d+=`
|
|
549
549
|
${XM(y.toString(16),8)}: `;let x="",A;for(A=0;A<16&&y+A<o.byteLength;A++){let F=o[y+A];d+=`${XM(F.toString(16),2)} `,x+=F>31&&F<255?String.fromCharCode(F):"\xB7",A===7&&(d+=" ")}d+=`${Ldt((17-A)*3," ")}${x}`}return d+=`
|
|
550
550
|
`,f!==o.byteLength&&(d+=b3e(`=== (truncated %d bytes) ===
|
|
@@ -556,23 +556,23 @@ Segment #${f}
|
|
|
556
556
|
================
|
|
557
557
|
`;let{buffer:d,byteLength:y}=s._capnp.segments[f],x=new Uint8Array(d,0,y);o+=pj.dumpBuffer(x)}return o}t(a8e,"dump");Mf.dump=a8e;function o8e(s,o){let f=new s(o.getSegment(0),0);Vht.validate(bfe.PointerType.STRUCT,f);let d=Vht.getTargetStructSize(f);return(d.dataByteLength<s._capnp.size.dataByteLength||d.pointerLength<s._capnp.size.pointerLength)&&(tw("need to resize root struct %s",f),Hht.resize(s._capnp.size,f)),f}t(o8e,"getRoot");Mf.getRoot=o8e;function Tfe(s,o){let f=o._capnp.segments.length;if(s===0&&f===0){if(NI.Arena.getNumSegments(o._capnp.arena)===0?Sfe(vG.DEFAULT_BUFFER_SIZE,o):o._capnp.segments[0]=new s8e.Segment(0,o,NI.Arena.getBuffer(0,o._capnp.arena)),!o._capnp.segments[0].hasCapacity(8))throw new Error(_j.MSG_SEGMENT_TOO_SMALL);return o._capnp.segments[0].allocate(8),o._capnp.segments[0]}if(s<0||s>=f)throw new Error(pj.format(_j.MSG_SEGMENT_OUT_OF_BOUNDS,s,o));return o._capnp.segments[s]}t(Tfe,"getSegment");Mf.getSegment=Tfe;function c8e(s,o){let f=new s(o.getSegment(0),0);return Hht.initStruct(s._capnp.size,f),tw("Initialized root pointer %s for %s.",f,o),f}t(c8e,"initRoot");Mf.initRoot=c8e;function Zht(s){return new bfe.Pointer(new CT(s).getSegment(0),0)}t(Zht,"readRawPointer");Mf.readRawPointer=Zht;function Qht(s,o){bfe.Pointer.copyFrom(s,new bfe.Pointer(o.getSegment(0),0))}t(Qht,"setRoot");Mf.setRoot=Qht;function l8e(s){let o=f8e(s);s._capnp.segments.length===0&&Tfe(0,s);let f=s._capnp.segments,d=o.byteLength+f.reduce((A,F)=>A+pj.padToWord(F.byteLength),0),y=new Uint8Array(new ArrayBuffer(d)),x=o.byteLength;return y.set(new Uint8Array(o)),f.forEach(A=>{let F=pj.padToWord(A.byteLength);y.set(new Uint8Array(A.buffer,0,F),x),x+=F}),y.buffer}t(l8e,"toArrayBuffer");Mf.toArrayBuffer=l8e;function u8e(s){let o=i8e.pack(f8e(s));s._capnp.segments.length===0&&s.getSegment(0);let f=s._capnp.segments.map(A=>i8e.pack(A.buffer,0,pj.padToWord(A.byteLength))),d=o.byteLength+f.reduce((A,F)=>A+F.byteLength,0),y=new Uint8Array(new ArrayBuffer(d)),x=o.byteLength;return y.set(new Uint8Array(o)),f.forEach(A=>{y.set(new Uint8Array(A),x),x+=A.byteLength}),y.buffer}t(u8e,"toPackedArrayBuffer");Mf.toPackedArrayBuffer=u8e;function f8e(s){let o=s._capnp.segments.length;if(o===0)return new Float64Array(1).buffer;let f=4+o*4+(1-o%2)*4,d=new DataView(new ArrayBuffer(f));return tw("Writing message stream frame with segment count: %d.",o),d.setUint32(0,o-1,!0),s._capnp.segments.forEach((y,x)=>{tw("Message segment %d word count: %d.",y.id,y.byteLength/8),d.setUint32(x*4+4,y.byteLength/8,!0)}),d.buffer}t(f8e,"getStreamFrame");Mf.getStreamFrame=f8e});var ngt=or(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.ObjectSize=kT.readRawPointer=kT.Message=kT.ListElementSize=void 0;var tgt=(Lu(),Wu(Fu));tgt.__exportStar(Fdt(),kT);var x1r=em();Object.defineProperty(kT,"ListElementSize",{enumerable:!0,get:t(function(){return x1r.ListElementSize},"get")});var rgt=egt();Object.defineProperty(kT,"Message",{enumerable:!0,get:t(function(){return rgt.Message},"get")});Object.defineProperty(kT,"readRawPointer",{enumerable:!0,get:t(function(){return rgt.readRawPointer},"get")});var E1r=KO();Object.defineProperty(kT,"ObjectSize",{enumerable:!0,get:t(function(){return E1r.ObjectSize},"get")});tgt.__exportStar(yfe(),kT)});var xfe=or(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.Uint64=Rs.Int64=Rs.getUint8Mask=Rs.getUint64Mask=Rs.getUint32Mask=Rs.getUint16Mask=Rs.getInt8Mask=Rs.getInt64Mask=Rs.getInt32Mask=Rs.getInt16Mask=Rs.getFloat64Mask=Rs.getFloat32Mask=Rs.getBitMask=Rs.Void=Rs.VoidList=Rs.Uint8List=Rs.Uint64List=Rs.Uint32List=Rs.Uint16List=Rs.TextList=Rs.Text=Rs.Struct=Rs.Pointer=Rs.PointerType=Rs.PointerList=Rs.Orphan=Rs.List=Rs.InterfaceList=Rs.Interface=Rs.Int8List=Rs.Int64List=Rs.Int32List=Rs.Int16List=Rs.Float64List=Rs.Float32List=Rs.DataList=Rs.Data=Rs.CompositeList=Rs.BoolList=Rs.AnyPointerList=Rs.readRawPointer=Rs.ObjectSize=Rs.Message=Rs.ListElementSize=void 0;var cl=ngt();Object.defineProperty(Rs,"ListElementSize",{enumerable:!0,get:t(function(){return cl.ListElementSize},"get")});Object.defineProperty(Rs,"Message",{enumerable:!0,get:t(function(){return cl.Message},"get")});Object.defineProperty(Rs,"ObjectSize",{enumerable:!0,get:t(function(){return cl.ObjectSize},"get")});Object.defineProperty(Rs,"readRawPointer",{enumerable:!0,get:t(function(){return cl.readRawPointer},"get")});Object.defineProperty(Rs,"AnyPointerList",{enumerable:!0,get:t(function(){return cl.AnyPointerList},"get")});Object.defineProperty(Rs,"BoolList",{enumerable:!0,get:t(function(){return cl.BoolList},"get")});Object.defineProperty(Rs,"CompositeList",{enumerable:!0,get:t(function(){return cl.CompositeList},"get")});Object.defineProperty(Rs,"Data",{enumerable:!0,get:t(function(){return cl.Data},"get")});Object.defineProperty(Rs,"DataList",{enumerable:!0,get:t(function(){return cl.DataList},"get")});Object.defineProperty(Rs,"Float32List",{enumerable:!0,get:t(function(){return cl.Float32List},"get")});Object.defineProperty(Rs,"Float64List",{enumerable:!0,get:t(function(){return cl.Float64List},"get")});Object.defineProperty(Rs,"Int16List",{enumerable:!0,get:t(function(){return cl.Int16List},"get")});Object.defineProperty(Rs,"Int32List",{enumerable:!0,get:t(function(){return cl.Int32List},"get")});Object.defineProperty(Rs,"Int64List",{enumerable:!0,get:t(function(){return cl.Int64List},"get")});Object.defineProperty(Rs,"Int8List",{enumerable:!0,get:t(function(){return cl.Int8List},"get")});Object.defineProperty(Rs,"Interface",{enumerable:!0,get:t(function(){return cl.Interface},"get")});Object.defineProperty(Rs,"InterfaceList",{enumerable:!0,get:t(function(){return cl.InterfaceList},"get")});Object.defineProperty(Rs,"List",{enumerable:!0,get:t(function(){return cl.List},"get")});Object.defineProperty(Rs,"Orphan",{enumerable:!0,get:t(function(){return cl.Orphan},"get")});Object.defineProperty(Rs,"PointerList",{enumerable:!0,get:t(function(){return cl.PointerList},"get")});Object.defineProperty(Rs,"PointerType",{enumerable:!0,get:t(function(){return cl.PointerType},"get")});Object.defineProperty(Rs,"Pointer",{enumerable:!0,get:t(function(){return cl.Pointer},"get")});Object.defineProperty(Rs,"Struct",{enumerable:!0,get:t(function(){return cl.Struct},"get")});Object.defineProperty(Rs,"Text",{enumerable:!0,get:t(function(){return cl.Text},"get")});Object.defineProperty(Rs,"TextList",{enumerable:!0,get:t(function(){return cl.TextList},"get")});Object.defineProperty(Rs,"Uint16List",{enumerable:!0,get:t(function(){return cl.Uint16List},"get")});Object.defineProperty(Rs,"Uint32List",{enumerable:!0,get:t(function(){return cl.Uint32List},"get")});Object.defineProperty(Rs,"Uint64List",{enumerable:!0,get:t(function(){return cl.Uint64List},"get")});Object.defineProperty(Rs,"Uint8List",{enumerable:!0,get:t(function(){return cl.Uint8List},"get")});Object.defineProperty(Rs,"VoidList",{enumerable:!0,get:t(function(){return cl.VoidList},"get")});Object.defineProperty(Rs,"Void",{enumerable:!0,get:t(function(){return cl.Void},"get")});Object.defineProperty(Rs,"getBitMask",{enumerable:!0,get:t(function(){return cl.getBitMask},"get")});Object.defineProperty(Rs,"getFloat32Mask",{enumerable:!0,get:t(function(){return cl.getFloat32Mask},"get")});Object.defineProperty(Rs,"getFloat64Mask",{enumerable:!0,get:t(function(){return cl.getFloat64Mask},"get")});Object.defineProperty(Rs,"getInt16Mask",{enumerable:!0,get:t(function(){return cl.getInt16Mask},"get")});Object.defineProperty(Rs,"getInt32Mask",{enumerable:!0,get:t(function(){return cl.getInt32Mask},"get")});Object.defineProperty(Rs,"getInt64Mask",{enumerable:!0,get:t(function(){return cl.getInt64Mask},"get")});Object.defineProperty(Rs,"getInt8Mask",{enumerable:!0,get:t(function(){return cl.getInt8Mask},"get")});Object.defineProperty(Rs,"getUint16Mask",{enumerable:!0,get:t(function(){return cl.getUint16Mask},"get")});Object.defineProperty(Rs,"getUint32Mask",{enumerable:!0,get:t(function(){return cl.getUint32Mask},"get")});Object.defineProperty(Rs,"getUint64Mask",{enumerable:!0,get:t(function(){return cl.getUint64Mask},"get")});Object.defineProperty(Rs,"getUint8Mask",{enumerable:!0,get:t(function(){return cl.getUint8Mask},"get")});var igt=Kue();Object.defineProperty(Rs,"Int64",{enumerable:!0,get:t(function(){return igt.Int64},"get")});Object.defineProperty(Rs,"Uint64",{enumerable:!0,get:t(function(){return igt.Uint64},"get")})});var m8e=or(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.Extension=ts.Extension_Module=ts.TlsOptions=ts.TlsOptions_Version=ts.TlsOptions_Keypair=ts.HttpOptions=ts.HttpOptions_Header=ts.HttpOptions_Style=ts.DiskDirectory=ts.Network=ts.ExternalServer=ts.ExternalServer_Which=ts.ExternalServer_Tcp=ts.ExternalServer_Https=ts.Worker=ts.Worker_Which=ts.Worker_DurableObjectStorage=ts.Worker_DurableObjectStorage_Which=ts.Worker_DurableObjectNamespace=ts.Worker_DurableObjectNamespace_Which=ts.Worker_Binding=ts.Worker_Binding_Which=ts.Worker_Binding_MemoryCache=ts.Worker_Binding_Hyperdrive=ts.Worker_Binding_Parameter=ts.Worker_Binding_WrappedBinding=ts.Worker_Binding_MemoryCacheLimits=ts.Worker_Binding_CryptoKey=ts.Worker_Binding_CryptoKey_Which=ts.Worker_Binding_CryptoKey_Algorithm=ts.Worker_Binding_CryptoKey_Algorithm_Which=ts.Worker_Binding_CryptoKey_Usage=ts.Worker_Binding_DurableObjectNamespaceDesignator=ts.Worker_Binding_Type=ts.Worker_Binding_Type_Which=ts.Worker_Module=ts.Worker_Module_Which=ts.ServiceDesignator=ts.Service=ts.Service_Which=ts.Socket=ts.Socket_Which=ts.Socket_Https=ts.Config=ts._capnpFileId=void 0;var ql=xfe(),ae=xfe();ts._capnpFileId="e6afd26682091c01";var a7=class s extends ae.Struct{static{t(this,"Config")}adoptServices(o){ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownServices(){return ae.Struct.disown(this.getServices())}getServices(){return ae.Struct.getList(0,s._Services,this)}hasServices(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initServices(o){return ae.Struct.initList(0,s._Services,o,this)}setServices(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}adoptSockets(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownSockets(){return ae.Struct.disown(this.getSockets())}getSockets(){return ae.Struct.getList(1,s._Sockets,this)}hasSockets(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initSockets(o){return ae.Struct.initList(1,s._Sockets,o,this)}setSockets(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptV8Flags(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownV8Flags(){return ae.Struct.disown(this.getV8Flags())}getV8Flags(){return ae.Struct.getList(2,ql.TextList,this)}hasV8Flags(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initV8Flags(o){return ae.Struct.initList(2,ql.TextList,o,this)}setV8Flags(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}adoptExtensions(o){ae.Struct.adopt(o,ae.Struct.getPointer(3,this))}disownExtensions(){return ae.Struct.disown(this.getExtensions())}getExtensions(){return ae.Struct.getList(3,s._Extensions,this)}hasExtensions(){return!ae.Struct.isNull(ae.Struct.getPointer(3,this))}initExtensions(o){return ae.Struct.initList(3,s._Extensions,o,this)}setExtensions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(3,this))}adoptAutogates(o){ae.Struct.adopt(o,ae.Struct.getPointer(4,this))}disownAutogates(){return ae.Struct.disown(this.getAutogates())}getAutogates(){return ae.Struct.getList(4,ql.TextList,this)}hasAutogates(){return!ae.Struct.isNull(ae.Struct.getPointer(4,this))}initAutogates(o){return ae.Struct.initList(4,ql.TextList,o,this)}setAutogates(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(4,this))}toString(){return"Config_"+super.toString()}};ts.Config=a7;a7._capnp={displayName:"Config",id:"8794486c76aaa7d6",size:new ae.ObjectSize(0,5)};var dj=class extends ae.Struct{static{t(this,"Socket_Https")}adoptOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownOptions(){return ae.Struct.disown(this.getOptions())}getOptions(){return ae.Struct.getStruct(2,Ay,this)}hasOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initOptions(){return ae.Struct.initStructAt(2,Ay,this)}setOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}adoptTlsOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(3,this))}disownTlsOptions(){return ae.Struct.disown(this.getTlsOptions())}getTlsOptions(){return ae.Struct.getStruct(3,ab,this)}hasTlsOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(3,this))}initTlsOptions(){return ae.Struct.initStructAt(3,ab,this)}setTlsOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(3,this))}toString(){return"Socket_Https_"+super.toString()}};ts.Socket_Https=dj;dj._capnp={displayName:"https",id:"de123876383cbbdc",size:new ae.ObjectSize(8,5)};var _8e;(function(s){s[s.HTTP=0]="HTTP",s[s.HTTPS=1]="HTTPS"})(_8e=ts.Socket_Which||(ts.Socket_Which={}));var o7=class extends ae.Struct{static{t(this,"Socket")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getAddress(){return ae.Struct.getText(1,this)}setAddress(o){ae.Struct.setText(1,o,this)}adoptHttp(o){ae.Struct.setUint16(0,0,this),ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownHttp(){return ae.Struct.disown(this.getHttp())}getHttp(){return ae.Struct.testWhich("http",ae.Struct.getUint16(0,this),0,this),ae.Struct.getStruct(2,Ay,this)}hasHttp(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initHttp(){return ae.Struct.setUint16(0,0,this),ae.Struct.initStructAt(2,Ay,this)}isHttp(){return ae.Struct.getUint16(0,this)===0}setHttp(o){ae.Struct.setUint16(0,0,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}getHttps(){return ae.Struct.testWhich("https",ae.Struct.getUint16(0,this),1,this),ae.Struct.getAs(dj,this)}initHttps(){return ae.Struct.setUint16(0,1,this),ae.Struct.getAs(dj,this)}isHttps(){return ae.Struct.getUint16(0,this)===1}setHttps(){ae.Struct.setUint16(0,1,this)}adoptService(o){ae.Struct.adopt(o,ae.Struct.getPointer(4,this))}disownService(){return ae.Struct.disown(this.getService())}getService(){return ae.Struct.getStruct(4,Xp,this)}hasService(){return!ae.Struct.isNull(ae.Struct.getPointer(4,this))}initService(){return ae.Struct.initStructAt(4,Xp,this)}setService(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(4,this))}toString(){return"Socket_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Socket=o7;o7.HTTP=_8e.HTTP;o7.HTTPS=_8e.HTTPS;o7._capnp={displayName:"Socket",id:"9a0eba45530ee79f",size:new ae.ObjectSize(8,5)};var xj;(function(s){s[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.WORKER=1]="WORKER",s[s.NETWORK=2]="NETWORK",s[s.EXTERNAL=3]="EXTERNAL",s[s.DISK=4]="DISK"})(xj=ts.Service_Which||(ts.Service_Which={}));var rw=class extends ae.Struct{static{t(this,"Service")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}isUnspecified(){return ae.Struct.getUint16(0,this)===0}setUnspecified(){ae.Struct.setUint16(0,0,this)}adoptWorker(o){ae.Struct.setUint16(0,1,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownWorker(){return ae.Struct.disown(this.getWorker())}getWorker(){return ae.Struct.testWhich("worker",ae.Struct.getUint16(0,this),1,this),ae.Struct.getStruct(1,$1,this)}hasWorker(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initWorker(){return ae.Struct.setUint16(0,1,this),ae.Struct.initStructAt(1,$1,this)}isWorker(){return ae.Struct.getUint16(0,this)===1}setWorker(o){ae.Struct.setUint16(0,1,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptNetwork(o){ae.Struct.setUint16(0,2,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownNetwork(){return ae.Struct.disown(this.getNetwork())}getNetwork(){return ae.Struct.testWhich("network",ae.Struct.getUint16(0,this),2,this),ae.Struct.getStruct(1,bj,this)}hasNetwork(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initNetwork(){return ae.Struct.setUint16(0,2,this),ae.Struct.initStructAt(1,bj,this)}isNetwork(){return ae.Struct.getUint16(0,this)===2}setNetwork(o){ae.Struct.setUint16(0,2,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptExternal(o){ae.Struct.setUint16(0,3,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownExternal(){return ae.Struct.disown(this.getExternal())}getExternal(){return ae.Struct.testWhich("external",ae.Struct.getUint16(0,this),3,this),ae.Struct.getStruct(1,aA,this)}hasExternal(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initExternal(){return ae.Struct.setUint16(0,3,this),ae.Struct.initStructAt(1,aA,this)}isExternal(){return ae.Struct.getUint16(0,this)===3}setExternal(o){ae.Struct.setUint16(0,3,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptDisk(o){ae.Struct.setUint16(0,4,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownDisk(){return ae.Struct.disown(this.getDisk())}getDisk(){return ae.Struct.testWhich("disk",ae.Struct.getUint16(0,this),4,this),ae.Struct.getStruct(1,Sj,this)}hasDisk(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initDisk(){return ae.Struct.setUint16(0,4,this),ae.Struct.initStructAt(1,Sj,this)}isDisk(){return ae.Struct.getUint16(0,this)===4}setDisk(o){ae.Struct.setUint16(0,4,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}toString(){return"Service_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Service=rw;rw.UNSPECIFIED=xj.UNSPECIFIED;rw.WORKER=xj.WORKER;rw.NETWORK=xj.NETWORK;rw.EXTERNAL=xj.EXTERNAL;rw.DISK=xj.DISK;rw._capnp={displayName:"Service",id:"e5c88e8bb7bcb6b9",size:new ae.ObjectSize(8,2)};var Xp=class extends ae.Struct{static{t(this,"ServiceDesignator")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getEntrypoint(){return ae.Struct.getText(1,this)}setEntrypoint(o){ae.Struct.setText(1,o,this)}toString(){return"ServiceDesignator_"+super.toString()}};ts.ServiceDesignator=Xp;Xp._capnp={displayName:"ServiceDesignator",id:"ae8ec91cee724450",size:new ae.ObjectSize(0,2)};var nw;(function(s){s[s.ES_MODULE=0]="ES_MODULE",s[s.COMMON_JS_MODULE=1]="COMMON_JS_MODULE",s[s.TEXT=2]="TEXT",s[s.DATA=3]="DATA",s[s.WASM=4]="WASM",s[s.JSON=5]="JSON",s[s.NODE_JS_COMPAT_MODULE=6]="NODE_JS_COMPAT_MODULE",s[s.PYTHON_MODULE=7]="PYTHON_MODULE",s[s.PYTHON_REQUIREMENT=8]="PYTHON_REQUIREMENT"})(nw=ts.Worker_Module_Which||(ts.Worker_Module_Which={}));var z1=class extends ae.Struct{static{t(this,"Worker_Module")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getEsModule(){return ae.Struct.testWhich("esModule",ae.Struct.getUint16(0,this),0,this),ae.Struct.getText(1,this)}isEsModule(){return ae.Struct.getUint16(0,this)===0}setEsModule(o){ae.Struct.setUint16(0,0,this),ae.Struct.setText(1,o,this)}getCommonJsModule(){return ae.Struct.testWhich("commonJsModule",ae.Struct.getUint16(0,this),1,this),ae.Struct.getText(1,this)}isCommonJsModule(){return ae.Struct.getUint16(0,this)===1}setCommonJsModule(o){ae.Struct.setUint16(0,1,this),ae.Struct.setText(1,o,this)}getText(){return ae.Struct.testWhich("text",ae.Struct.getUint16(0,this),2,this),ae.Struct.getText(1,this)}isText(){return ae.Struct.getUint16(0,this)===2}setText(o){ae.Struct.setUint16(0,2,this),ae.Struct.setText(1,o,this)}adoptData(o){ae.Struct.setUint16(0,3,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownData(){return ae.Struct.disown(this.getData())}getData(){return ae.Struct.testWhich("data",ae.Struct.getUint16(0,this),3,this),ae.Struct.getData(1,this)}hasData(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initData(o){return ae.Struct.setUint16(0,3,this),ae.Struct.initData(1,o,this)}isData(){return ae.Struct.getUint16(0,this)===3}setData(o){ae.Struct.setUint16(0,3,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptWasm(o){ae.Struct.setUint16(0,4,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownWasm(){return ae.Struct.disown(this.getWasm())}getWasm(){return ae.Struct.testWhich("wasm",ae.Struct.getUint16(0,this),4,this),ae.Struct.getData(1,this)}hasWasm(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initWasm(o){return ae.Struct.setUint16(0,4,this),ae.Struct.initData(1,o,this)}isWasm(){return ae.Struct.getUint16(0,this)===4}setWasm(o){ae.Struct.setUint16(0,4,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getJson(){return ae.Struct.testWhich("json",ae.Struct.getUint16(0,this),5,this),ae.Struct.getText(1,this)}isJson(){return ae.Struct.getUint16(0,this)===5}setJson(o){ae.Struct.setUint16(0,5,this),ae.Struct.setText(1,o,this)}getNodeJsCompatModule(){return ae.Struct.testWhich("nodeJsCompatModule",ae.Struct.getUint16(0,this),6,this),ae.Struct.getText(1,this)}isNodeJsCompatModule(){return ae.Struct.getUint16(0,this)===6}setNodeJsCompatModule(o){ae.Struct.setUint16(0,6,this),ae.Struct.setText(1,o,this)}getPythonModule(){return ae.Struct.testWhich("pythonModule",ae.Struct.getUint16(0,this),7,this),ae.Struct.getText(1,this)}isPythonModule(){return ae.Struct.getUint16(0,this)===7}setPythonModule(o){ae.Struct.setUint16(0,7,this),ae.Struct.setText(1,o,this)}getPythonRequirement(){return ae.Struct.testWhich("pythonRequirement",ae.Struct.getUint16(0,this),8,this),ae.Struct.getText(1,this)}isPythonRequirement(){return ae.Struct.getUint16(0,this)===8}setPythonRequirement(o){ae.Struct.setUint16(0,8,this),ae.Struct.setText(1,o,this)}adoptNamedExports(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownNamedExports(){return ae.Struct.disown(this.getNamedExports())}getNamedExports(){return ae.Struct.getList(2,ql.TextList,this)}hasNamedExports(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initNamedExports(o){return ae.Struct.initList(2,ql.TextList,o,this)}setNamedExports(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Worker_Module_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_Module=z1;z1.ES_MODULE=nw.ES_MODULE;z1.COMMON_JS_MODULE=nw.COMMON_JS_MODULE;z1.TEXT=nw.TEXT;z1.DATA=nw.DATA;z1.WASM=nw.WASM;z1.JSON=nw.JSON;z1.NODE_JS_COMPAT_MODULE=nw.NODE_JS_COMPAT_MODULE;z1.PYTHON_MODULE=nw.PYTHON_MODULE;z1.PYTHON_REQUIREMENT=nw.PYTHON_REQUIREMENT;z1._capnp={displayName:"Module",id:"d9d87a63770a12f3",size:new ae.ObjectSize(8,3)};var J1;(function(s){s[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.TEXT=1]="TEXT",s[s.DATA=2]="DATA",s[s.JSON=3]="JSON",s[s.WASM=4]="WASM",s[s.CRYPTO_KEY=5]="CRYPTO_KEY",s[s.SERVICE=6]="SERVICE",s[s.DURABLE_OBJECT_NAMESPACE=7]="DURABLE_OBJECT_NAMESPACE",s[s.KV_NAMESPACE=8]="KV_NAMESPACE",s[s.R2BUCKET=9]="R2BUCKET",s[s.R2ADMIN=10]="R2ADMIN",s[s.QUEUE=11]="QUEUE",s[s.ANALYTICS_ENGINE=12]="ANALYTICS_ENGINE",s[s.HYPERDRIVE=13]="HYPERDRIVE"})(J1=ts.Worker_Binding_Type_Which||(ts.Worker_Binding_Type_Which={}));var Dm=class extends ae.Struct{static{t(this,"Worker_Binding_Type")}isUnspecified(){return ae.Struct.getUint16(0,this)===0}setUnspecified(){ae.Struct.setUint16(0,0,this)}isText(){return ae.Struct.getUint16(0,this)===1}setText(){ae.Struct.setUint16(0,1,this)}isData(){return ae.Struct.getUint16(0,this)===2}setData(){ae.Struct.setUint16(0,2,this)}isJson(){return ae.Struct.getUint16(0,this)===3}setJson(){ae.Struct.setUint16(0,3,this)}isWasm(){return ae.Struct.getUint16(0,this)===4}setWasm(){ae.Struct.setUint16(0,4,this)}adoptCryptoKey(o){ae.Struct.setUint16(0,5,this),ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownCryptoKey(){return ae.Struct.disown(this.getCryptoKey())}getCryptoKey(){return ae.Struct.testWhich("cryptoKey",ae.Struct.getUint16(0,this),5,this),ae.Struct.getList(0,ql.Uint16List,this)}hasCryptoKey(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initCryptoKey(o){return ae.Struct.setUint16(0,5,this),ae.Struct.initList(0,ql.Uint16List,o,this)}isCryptoKey(){return ae.Struct.getUint16(0,this)===5}setCryptoKey(o){ae.Struct.setUint16(0,5,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}isService(){return ae.Struct.getUint16(0,this)===6}setService(){ae.Struct.setUint16(0,6,this)}isDurableObjectNamespace(){return ae.Struct.getUint16(0,this)===7}setDurableObjectNamespace(){ae.Struct.setUint16(0,7,this)}isKvNamespace(){return ae.Struct.getUint16(0,this)===8}setKvNamespace(){ae.Struct.setUint16(0,8,this)}isR2Bucket(){return ae.Struct.getUint16(0,this)===9}setR2Bucket(){ae.Struct.setUint16(0,9,this)}isR2Admin(){return ae.Struct.getUint16(0,this)===10}setR2Admin(){ae.Struct.setUint16(0,10,this)}isQueue(){return ae.Struct.getUint16(0,this)===11}setQueue(){ae.Struct.setUint16(0,11,this)}isAnalyticsEngine(){return ae.Struct.getUint16(0,this)===12}setAnalyticsEngine(){ae.Struct.setUint16(0,12,this)}isHyperdrive(){return ae.Struct.getUint16(0,this)===13}setHyperdrive(){ae.Struct.setUint16(0,13,this)}toString(){return"Worker_Binding_Type_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_Binding_Type=Dm;Dm.UNSPECIFIED=J1.UNSPECIFIED;Dm.TEXT=J1.TEXT;Dm.DATA=J1.DATA;Dm.JSON=J1.JSON;Dm.WASM=J1.WASM;Dm.CRYPTO_KEY=J1.CRYPTO_KEY;Dm.SERVICE=J1.SERVICE;Dm.DURABLE_OBJECT_NAMESPACE=J1.DURABLE_OBJECT_NAMESPACE;Dm.KV_NAMESPACE=J1.KV_NAMESPACE;Dm.R2BUCKET=J1.R2BUCKET;Dm.R2ADMIN=J1.R2ADMIN;Dm.QUEUE=J1.QUEUE;Dm.ANALYTICS_ENGINE=J1.ANALYTICS_ENGINE;Dm.HYPERDRIVE=J1.HYPERDRIVE;Dm._capnp={displayName:"Type",id:"8906a1296519bf8a",size:new ae.ObjectSize(8,1)};var c7=class extends ae.Struct{static{t(this,"Worker_Binding_DurableObjectNamespaceDesignator")}getClassName(){return ae.Struct.getText(0,this)}setClassName(o){ae.Struct.setText(0,o,this)}getServiceName(){return ae.Struct.getText(1,this)}setServiceName(o){ae.Struct.setText(1,o,this)}toString(){return"Worker_Binding_DurableObjectNamespaceDesignator_"+super.toString()}};ts.Worker_Binding_DurableObjectNamespaceDesignator=c7;c7._capnp={displayName:"DurableObjectNamespaceDesignator",id:"804f144ff477aac7",size:new ae.ObjectSize(0,2)};var sgt;(function(s){s[s.ENCRYPT=0]="ENCRYPT",s[s.DECRYPT=1]="DECRYPT",s[s.SIGN=2]="SIGN",s[s.VERIFY=3]="VERIFY",s[s.DERIVE_KEY=4]="DERIVE_KEY",s[s.DERIVE_BITS=5]="DERIVE_BITS",s[s.WRAP_KEY=6]="WRAP_KEY",s[s.UNWRAP_KEY=7]="UNWRAP_KEY"})(sgt=ts.Worker_Binding_CryptoKey_Usage||(ts.Worker_Binding_CryptoKey_Usage={}));var p8e;(function(s){s[s.NAME=0]="NAME",s[s.JSON=1]="JSON"})(p8e=ts.Worker_Binding_CryptoKey_Algorithm_Which||(ts.Worker_Binding_CryptoKey_Algorithm_Which={}));var II=class extends ae.Struct{static{t(this,"Worker_Binding_CryptoKey_Algorithm")}getName(){return ae.Struct.testWhich("name",ae.Struct.getUint16(2,this),0,this),ae.Struct.getText(1,this)}isName(){return ae.Struct.getUint16(2,this)===0}setName(o){ae.Struct.setUint16(2,0,this),ae.Struct.setText(1,o,this)}getJson(){return ae.Struct.testWhich("json",ae.Struct.getUint16(2,this),1,this),ae.Struct.getText(1,this)}isJson(){return ae.Struct.getUint16(2,this)===1}setJson(o){ae.Struct.setUint16(2,1,this),ae.Struct.setText(1,o,this)}toString(){return"Worker_Binding_CryptoKey_Algorithm_"+super.toString()}which(){return ae.Struct.getUint16(2,this)}};ts.Worker_Binding_CryptoKey_Algorithm=II;II.NAME=p8e.NAME;II.JSON=p8e.JSON;II._capnp={displayName:"algorithm",id:"a1a040c5e00d7021",size:new ae.ObjectSize(8,3)};var p7;(function(s){s[s.RAW=0]="RAW",s[s.HEX=1]="HEX",s[s.BASE64=2]="BASE64",s[s.PKCS8=3]="PKCS8",s[s.SPKI=4]="SPKI",s[s.JWK=5]="JWK"})(p7=ts.Worker_Binding_CryptoKey_Which||(ts.Worker_Binding_CryptoKey_Which={}));var sb=class s extends ae.Struct{static{t(this,"Worker_Binding_CryptoKey")}adoptRaw(o){ae.Struct.setUint16(0,0,this),ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownRaw(){return ae.Struct.disown(this.getRaw())}getRaw(){return ae.Struct.testWhich("raw",ae.Struct.getUint16(0,this),0,this),ae.Struct.getData(0,this)}hasRaw(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initRaw(o){return ae.Struct.setUint16(0,0,this),ae.Struct.initData(0,o,this)}isRaw(){return ae.Struct.getUint16(0,this)===0}setRaw(o){ae.Struct.setUint16(0,0,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}getHex(){return ae.Struct.testWhich("hex",ae.Struct.getUint16(0,this),1,this),ae.Struct.getText(0,this)}isHex(){return ae.Struct.getUint16(0,this)===1}setHex(o){ae.Struct.setUint16(0,1,this),ae.Struct.setText(0,o,this)}getBase64(){return ae.Struct.testWhich("base64",ae.Struct.getUint16(0,this),2,this),ae.Struct.getText(0,this)}isBase64(){return ae.Struct.getUint16(0,this)===2}setBase64(o){ae.Struct.setUint16(0,2,this),ae.Struct.setText(0,o,this)}getPkcs8(){return ae.Struct.testWhich("pkcs8",ae.Struct.getUint16(0,this),3,this),ae.Struct.getText(0,this)}isPkcs8(){return ae.Struct.getUint16(0,this)===3}setPkcs8(o){ae.Struct.setUint16(0,3,this),ae.Struct.setText(0,o,this)}getSpki(){return ae.Struct.testWhich("spki",ae.Struct.getUint16(0,this),4,this),ae.Struct.getText(0,this)}isSpki(){return ae.Struct.getUint16(0,this)===4}setSpki(o){ae.Struct.setUint16(0,4,this),ae.Struct.setText(0,o,this)}getJwk(){return ae.Struct.testWhich("jwk",ae.Struct.getUint16(0,this),5,this),ae.Struct.getText(0,this)}isJwk(){return ae.Struct.getUint16(0,this)===5}setJwk(o){ae.Struct.setUint16(0,5,this),ae.Struct.setText(0,o,this)}getAlgorithm(){return ae.Struct.getAs(II,this)}initAlgorithm(){return ae.Struct.getAs(II,this)}getExtractable(){return ae.Struct.getBit(32,this,s._capnp.defaultExtractable)}setExtractable(o){ae.Struct.setBit(32,o,this)}adoptUsages(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownUsages(){return ae.Struct.disown(this.getUsages())}getUsages(){return ae.Struct.getList(2,ql.Uint16List,this)}hasUsages(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initUsages(o){return ae.Struct.initList(2,ql.Uint16List,o,this)}setUsages(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Worker_Binding_CryptoKey_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_Binding_CryptoKey=sb;sb.RAW=p7.RAW;sb.HEX=p7.HEX;sb.BASE64=p7.BASE64;sb.PKCS8=p7.PKCS8;sb.SPKI=p7.SPKI;sb.JWK=p7.JWK;sb.Usage=sgt;sb._capnp={displayName:"CryptoKey",id:"b5e1bff0e57d6eb0",size:new ae.ObjectSize(8,3),defaultExtractable:ql.getBitMask(!1,0)};var l7=class extends ae.Struct{static{t(this,"Worker_Binding_MemoryCacheLimits")}getMaxKeys(){return ae.Struct.getUint32(0,this)}setMaxKeys(o){ae.Struct.setUint32(0,o,this)}getMaxValueSize(){return ae.Struct.getUint32(4,this)}setMaxValueSize(o){ae.Struct.setUint32(4,o,this)}getMaxTotalValueSize(){return ae.Struct.getUint64(8,this)}setMaxTotalValueSize(o){ae.Struct.setUint64(8,o,this)}toString(){return"Worker_Binding_MemoryCacheLimits_"+super.toString()}};ts.Worker_Binding_MemoryCacheLimits=l7;l7._capnp={displayName:"MemoryCacheLimits",id:"8d66725b0867e634",size:new ae.ObjectSize(16,0)};var OI=class s extends ae.Struct{static{t(this,"Worker_Binding_WrappedBinding")}getModuleName(){return ae.Struct.getText(0,this)}setModuleName(o){ae.Struct.setText(0,o,this)}getEntrypoint(){return ae.Struct.getText(1,this,s._capnp.defaultEntrypoint)}setEntrypoint(o){ae.Struct.setText(1,o,this)}adoptInnerBindings(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownInnerBindings(){return ae.Struct.disown(this.getInnerBindings())}getInnerBindings(){return ae.Struct.getList(2,s._InnerBindings,this)}hasInnerBindings(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initInnerBindings(o){return ae.Struct.initList(2,s._InnerBindings,o,this)}setInnerBindings(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Worker_Binding_WrappedBinding_"+super.toString()}};ts.Worker_Binding_WrappedBinding=OI;OI._capnp={displayName:"WrappedBinding",id:"e6f066b75f0ea113",size:new ae.ObjectSize(0,3),defaultEntrypoint:"default"};var mj=class extends ae.Struct{static{t(this,"Worker_Binding_Parameter")}adoptType(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownType(){return ae.Struct.disown(this.getType())}getType(){return ae.Struct.getStruct(1,Dm,this)}hasType(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initType(){return ae.Struct.initStructAt(1,Dm,this)}setType(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getOptional(){return ae.Struct.getBit(16,this)}setOptional(o){ae.Struct.setBit(16,o,this)}toString(){return"Worker_Binding_Parameter_"+super.toString()}};ts.Worker_Binding_Parameter=mj;mj._capnp={displayName:"parameter",id:"dc57e1258d26d152",size:new ae.ObjectSize(8,6)};var hj=class extends ae.Struct{static{t(this,"Worker_Binding_Hyperdrive")}adoptDesignator(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownDesignator(){return ae.Struct.disown(this.getDesignator())}getDesignator(){return ae.Struct.getStruct(1,Xp,this)}hasDesignator(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initDesignator(){return ae.Struct.initStructAt(1,Xp,this)}setDesignator(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getDatabase(){return ae.Struct.getText(2,this)}setDatabase(o){ae.Struct.setText(2,o,this)}getUser(){return ae.Struct.getText(3,this)}setUser(o){ae.Struct.setText(3,o,this)}getPassword(){return ae.Struct.getText(4,this)}setPassword(o){ae.Struct.setText(4,o,this)}getScheme(){return ae.Struct.getText(5,this)}setScheme(o){ae.Struct.setText(5,o,this)}toString(){return"Worker_Binding_Hyperdrive_"+super.toString()}};ts.Worker_Binding_Hyperdrive=hj;hj._capnp={displayName:"hyperdrive",id:"ad6c391cd55f3134",size:new ae.ObjectSize(8,6)};var gj=class extends ae.Struct{static{t(this,"Worker_Binding_MemoryCache")}getId(){return ae.Struct.getText(1,this)}setId(o){ae.Struct.setText(1,o,this)}adoptLimits(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownLimits(){return ae.Struct.disown(this.getLimits())}getLimits(){return ae.Struct.getStruct(2,l7,this)}hasLimits(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initLimits(){return ae.Struct.initStructAt(2,l7,this)}setLimits(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Worker_Binding_MemoryCache_"+super.toString()}};ts.Worker_Binding_MemoryCache=gj;gj._capnp={displayName:"memoryCache",id:"aed5760c349869da",size:new ae.ObjectSize(8,6)};var Km;(function(s){s[s.UNSPECIFIED=0]="UNSPECIFIED",s[s.PARAMETER=1]="PARAMETER",s[s.TEXT=2]="TEXT",s[s.DATA=3]="DATA",s[s.JSON=4]="JSON",s[s.WASM_MODULE=5]="WASM_MODULE",s[s.CRYPTO_KEY=6]="CRYPTO_KEY",s[s.SERVICE=7]="SERVICE",s[s.DURABLE_OBJECT_NAMESPACE=8]="DURABLE_OBJECT_NAMESPACE",s[s.KV_NAMESPACE=9]="KV_NAMESPACE",s[s.R2BUCKET=10]="R2BUCKET",s[s.R2ADMIN=11]="R2ADMIN",s[s.WRAPPED=12]="WRAPPED",s[s.QUEUE=13]="QUEUE",s[s.FROM_ENVIRONMENT=14]="FROM_ENVIRONMENT",s[s.ANALYTICS_ENGINE=15]="ANALYTICS_ENGINE",s[s.HYPERDRIVE=16]="HYPERDRIVE",s[s.UNSAFE_EVAL=17]="UNSAFE_EVAL",s[s.MEMORY_CACHE=18]="MEMORY_CACHE"})(Km=ts.Worker_Binding_Which||(ts.Worker_Binding_Which={}));var vf=class extends ae.Struct{static{t(this,"Worker_Binding")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}isUnspecified(){return ae.Struct.getUint16(0,this)===0}setUnspecified(){ae.Struct.setUint16(0,0,this)}getParameter(){return ae.Struct.testWhich("parameter",ae.Struct.getUint16(0,this),1,this),ae.Struct.getAs(mj,this)}initParameter(){return ae.Struct.setUint16(0,1,this),ae.Struct.getAs(mj,this)}isParameter(){return ae.Struct.getUint16(0,this)===1}setParameter(){ae.Struct.setUint16(0,1,this)}getText(){return ae.Struct.testWhich("text",ae.Struct.getUint16(0,this),2,this),ae.Struct.getText(1,this)}isText(){return ae.Struct.getUint16(0,this)===2}setText(o){ae.Struct.setUint16(0,2,this),ae.Struct.setText(1,o,this)}adoptData(o){ae.Struct.setUint16(0,3,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownData(){return ae.Struct.disown(this.getData())}getData(){return ae.Struct.testWhich("data",ae.Struct.getUint16(0,this),3,this),ae.Struct.getData(1,this)}hasData(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initData(o){return ae.Struct.setUint16(0,3,this),ae.Struct.initData(1,o,this)}isData(){return ae.Struct.getUint16(0,this)===3}setData(o){ae.Struct.setUint16(0,3,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getJson(){return ae.Struct.testWhich("json",ae.Struct.getUint16(0,this),4,this),ae.Struct.getText(1,this)}isJson(){return ae.Struct.getUint16(0,this)===4}setJson(o){ae.Struct.setUint16(0,4,this),ae.Struct.setText(1,o,this)}adoptWasmModule(o){ae.Struct.setUint16(0,5,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownWasmModule(){return ae.Struct.disown(this.getWasmModule())}getWasmModule(){return ae.Struct.testWhich("wasmModule",ae.Struct.getUint16(0,this),5,this),ae.Struct.getData(1,this)}hasWasmModule(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initWasmModule(o){return ae.Struct.setUint16(0,5,this),ae.Struct.initData(1,o,this)}isWasmModule(){return ae.Struct.getUint16(0,this)===5}setWasmModule(o){ae.Struct.setUint16(0,5,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptCryptoKey(o){ae.Struct.setUint16(0,6,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownCryptoKey(){return ae.Struct.disown(this.getCryptoKey())}getCryptoKey(){return ae.Struct.testWhich("cryptoKey",ae.Struct.getUint16(0,this),6,this),ae.Struct.getStruct(1,sb,this)}hasCryptoKey(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initCryptoKey(){return ae.Struct.setUint16(0,6,this),ae.Struct.initStructAt(1,sb,this)}isCryptoKey(){return ae.Struct.getUint16(0,this)===6}setCryptoKey(o){ae.Struct.setUint16(0,6,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptService(o){ae.Struct.setUint16(0,7,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownService(){return ae.Struct.disown(this.getService())}getService(){return ae.Struct.testWhich("service",ae.Struct.getUint16(0,this),7,this),ae.Struct.getStruct(1,Xp,this)}hasService(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initService(){return ae.Struct.setUint16(0,7,this),ae.Struct.initStructAt(1,Xp,this)}isService(){return ae.Struct.getUint16(0,this)===7}setService(o){ae.Struct.setUint16(0,7,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptDurableObjectNamespace(o){ae.Struct.setUint16(0,8,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownDurableObjectNamespace(){return ae.Struct.disown(this.getDurableObjectNamespace())}getDurableObjectNamespace(){return ae.Struct.testWhich("durableObjectNamespace",ae.Struct.getUint16(0,this),8,this),ae.Struct.getStruct(1,c7,this)}hasDurableObjectNamespace(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initDurableObjectNamespace(){return ae.Struct.setUint16(0,8,this),ae.Struct.initStructAt(1,c7,this)}isDurableObjectNamespace(){return ae.Struct.getUint16(0,this)===8}setDurableObjectNamespace(o){ae.Struct.setUint16(0,8,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptKvNamespace(o){ae.Struct.setUint16(0,9,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownKvNamespace(){return ae.Struct.disown(this.getKvNamespace())}getKvNamespace(){return ae.Struct.testWhich("kvNamespace",ae.Struct.getUint16(0,this),9,this),ae.Struct.getStruct(1,Xp,this)}hasKvNamespace(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initKvNamespace(){return ae.Struct.setUint16(0,9,this),ae.Struct.initStructAt(1,Xp,this)}isKvNamespace(){return ae.Struct.getUint16(0,this)===9}setKvNamespace(o){ae.Struct.setUint16(0,9,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptR2Bucket(o){ae.Struct.setUint16(0,10,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownR2Bucket(){return ae.Struct.disown(this.getR2Bucket())}getR2Bucket(){return ae.Struct.testWhich("r2Bucket",ae.Struct.getUint16(0,this),10,this),ae.Struct.getStruct(1,Xp,this)}hasR2Bucket(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initR2Bucket(){return ae.Struct.setUint16(0,10,this),ae.Struct.initStructAt(1,Xp,this)}isR2Bucket(){return ae.Struct.getUint16(0,this)===10}setR2Bucket(o){ae.Struct.setUint16(0,10,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptR2Admin(o){ae.Struct.setUint16(0,11,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownR2Admin(){return ae.Struct.disown(this.getR2Admin())}getR2Admin(){return ae.Struct.testWhich("r2Admin",ae.Struct.getUint16(0,this),11,this),ae.Struct.getStruct(1,Xp,this)}hasR2Admin(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initR2Admin(){return ae.Struct.setUint16(0,11,this),ae.Struct.initStructAt(1,Xp,this)}isR2Admin(){return ae.Struct.getUint16(0,this)===11}setR2Admin(o){ae.Struct.setUint16(0,11,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptWrapped(o){ae.Struct.setUint16(0,12,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownWrapped(){return ae.Struct.disown(this.getWrapped())}getWrapped(){return ae.Struct.testWhich("wrapped",ae.Struct.getUint16(0,this),12,this),ae.Struct.getStruct(1,OI,this)}hasWrapped(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initWrapped(){return ae.Struct.setUint16(0,12,this),ae.Struct.initStructAt(1,OI,this)}isWrapped(){return ae.Struct.getUint16(0,this)===12}setWrapped(o){ae.Struct.setUint16(0,12,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptQueue(o){ae.Struct.setUint16(0,13,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownQueue(){return ae.Struct.disown(this.getQueue())}getQueue(){return ae.Struct.testWhich("queue",ae.Struct.getUint16(0,this),13,this),ae.Struct.getStruct(1,Xp,this)}hasQueue(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initQueue(){return ae.Struct.setUint16(0,13,this),ae.Struct.initStructAt(1,Xp,this)}isQueue(){return ae.Struct.getUint16(0,this)===13}setQueue(o){ae.Struct.setUint16(0,13,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getFromEnvironment(){return ae.Struct.testWhich("fromEnvironment",ae.Struct.getUint16(0,this),14,this),ae.Struct.getText(1,this)}isFromEnvironment(){return ae.Struct.getUint16(0,this)===14}setFromEnvironment(o){ae.Struct.setUint16(0,14,this),ae.Struct.setText(1,o,this)}adoptAnalyticsEngine(o){ae.Struct.setUint16(0,15,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownAnalyticsEngine(){return ae.Struct.disown(this.getAnalyticsEngine())}getAnalyticsEngine(){return ae.Struct.testWhich("analyticsEngine",ae.Struct.getUint16(0,this),15,this),ae.Struct.getStruct(1,Xp,this)}hasAnalyticsEngine(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initAnalyticsEngine(){return ae.Struct.setUint16(0,15,this),ae.Struct.initStructAt(1,Xp,this)}isAnalyticsEngine(){return ae.Struct.getUint16(0,this)===15}setAnalyticsEngine(o){ae.Struct.setUint16(0,15,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getHyperdrive(){return ae.Struct.testWhich("hyperdrive",ae.Struct.getUint16(0,this),16,this),ae.Struct.getAs(hj,this)}initHyperdrive(){return ae.Struct.setUint16(0,16,this),ae.Struct.getAs(hj,this)}isHyperdrive(){return ae.Struct.getUint16(0,this)===16}setHyperdrive(){ae.Struct.setUint16(0,16,this)}isUnsafeEval(){return ae.Struct.getUint16(0,this)===17}setUnsafeEval(){ae.Struct.setUint16(0,17,this)}getMemoryCache(){return ae.Struct.testWhich("memoryCache",ae.Struct.getUint16(0,this),18,this),ae.Struct.getAs(gj,this)}initMemoryCache(){return ae.Struct.setUint16(0,18,this),ae.Struct.getAs(gj,this)}isMemoryCache(){return ae.Struct.getUint16(0,this)===18}setMemoryCache(){ae.Struct.setUint16(0,18,this)}toString(){return"Worker_Binding_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_Binding=vf;vf.UNSPECIFIED=Km.UNSPECIFIED;vf.PARAMETER=Km.PARAMETER;vf.TEXT=Km.TEXT;vf.DATA=Km.DATA;vf.JSON=Km.JSON;vf.WASM_MODULE=Km.WASM_MODULE;vf.CRYPTO_KEY=Km.CRYPTO_KEY;vf.SERVICE=Km.SERVICE;vf.DURABLE_OBJECT_NAMESPACE=Km.DURABLE_OBJECT_NAMESPACE;vf.KV_NAMESPACE=Km.KV_NAMESPACE;vf.R2BUCKET=Km.R2BUCKET;vf.R2ADMIN=Km.R2ADMIN;vf.WRAPPED=Km.WRAPPED;vf.QUEUE=Km.QUEUE;vf.FROM_ENVIRONMENT=Km.FROM_ENVIRONMENT;vf.ANALYTICS_ENGINE=Km.ANALYTICS_ENGINE;vf.HYPERDRIVE=Km.HYPERDRIVE;vf.UNSAFE_EVAL=Km.UNSAFE_EVAL;vf.MEMORY_CACHE=Km.MEMORY_CACHE;vf.Type=Dm;vf.DurableObjectNamespaceDesignator=c7;vf.CryptoKey=sb;vf.MemoryCacheLimits=l7;vf.WrappedBinding=OI;vf._capnp={displayName:"Binding",id:"8e7e492fd7e35f3e",size:new ae.ObjectSize(8,6)};var d8e;(function(s){s[s.UNIQUE_KEY=0]="UNIQUE_KEY",s[s.EPHEMERAL_LOCAL=1]="EPHEMERAL_LOCAL"})(d8e=ts.Worker_DurableObjectNamespace_Which||(ts.Worker_DurableObjectNamespace_Which={}));var FI=class extends ae.Struct{static{t(this,"Worker_DurableObjectNamespace")}getClassName(){return ae.Struct.getText(0,this)}setClassName(o){ae.Struct.setText(0,o,this)}getUniqueKey(){return ae.Struct.testWhich("uniqueKey",ae.Struct.getUint16(0,this),0,this),ae.Struct.getText(1,this)}isUniqueKey(){return ae.Struct.getUint16(0,this)===0}setUniqueKey(o){ae.Struct.setUint16(0,0,this),ae.Struct.setText(1,o,this)}isEphemeralLocal(){return ae.Struct.getUint16(0,this)===1}setEphemeralLocal(){ae.Struct.setUint16(0,1,this)}getPreventEviction(){return ae.Struct.getBit(16,this)}setPreventEviction(o){ae.Struct.setBit(16,o,this)}getEnableSql(){return ae.Struct.getBit(17,this)}setEnableSql(o){ae.Struct.setBit(17,o,this)}toString(){return"Worker_DurableObjectNamespace_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker_DurableObjectNamespace=FI;FI.UNIQUE_KEY=d8e.UNIQUE_KEY;FI.EPHEMERAL_LOCAL=d8e.EPHEMERAL_LOCAL;FI._capnp={displayName:"DurableObjectNamespace",id:"b429dd547d15747d",size:new ae.ObjectSize(8,2)};var Efe;(function(s){s[s.NONE=0]="NONE",s[s.IN_MEMORY=1]="IN_MEMORY",s[s.LOCAL_DISK=2]="LOCAL_DISK"})(Efe=ts.Worker_DurableObjectStorage_Which||(ts.Worker_DurableObjectStorage_Which={}));var sA=class extends ae.Struct{static{t(this,"Worker_DurableObjectStorage")}isNone(){return ae.Struct.getUint16(2,this)===0}setNone(){ae.Struct.setUint16(2,0,this)}isInMemory(){return ae.Struct.getUint16(2,this)===1}setInMemory(){ae.Struct.setUint16(2,1,this)}getLocalDisk(){return ae.Struct.testWhich("localDisk",ae.Struct.getUint16(2,this),2,this),ae.Struct.getText(8,this)}isLocalDisk(){return ae.Struct.getUint16(2,this)===2}setLocalDisk(o){ae.Struct.setUint16(2,2,this),ae.Struct.setText(8,o,this)}toString(){return"Worker_DurableObjectStorage_"+super.toString()}which(){return ae.Struct.getUint16(2,this)}};ts.Worker_DurableObjectStorage=sA;sA.NONE=Efe.NONE;sA.IN_MEMORY=Efe.IN_MEMORY;sA.LOCAL_DISK=Efe.LOCAL_DISK;sA._capnp={displayName:"durableObjectStorage",id:"cc72b3faa57827d4",size:new ae.ObjectSize(8,10)};var Cfe;(function(s){s[s.MODULES=0]="MODULES",s[s.SERVICE_WORKER_SCRIPT=1]="SERVICE_WORKER_SCRIPT",s[s.INHERIT=2]="INHERIT"})(Cfe=ts.Worker_Which||(ts.Worker_Which={}));var $1=class s extends ae.Struct{static{t(this,"Worker")}adoptModules(o){ae.Struct.setUint16(0,0,this),ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownModules(){return ae.Struct.disown(this.getModules())}getModules(){return ae.Struct.testWhich("modules",ae.Struct.getUint16(0,this),0,this),ae.Struct.getList(0,s._Modules,this)}hasModules(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initModules(o){return ae.Struct.setUint16(0,0,this),ae.Struct.initList(0,s._Modules,o,this)}isModules(){return ae.Struct.getUint16(0,this)===0}setModules(o){ae.Struct.setUint16(0,0,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}getServiceWorkerScript(){return ae.Struct.testWhich("serviceWorkerScript",ae.Struct.getUint16(0,this),1,this),ae.Struct.getText(0,this)}isServiceWorkerScript(){return ae.Struct.getUint16(0,this)===1}setServiceWorkerScript(o){ae.Struct.setUint16(0,1,this),ae.Struct.setText(0,o,this)}getInherit(){return ae.Struct.testWhich("inherit",ae.Struct.getUint16(0,this),2,this),ae.Struct.getText(0,this)}isInherit(){return ae.Struct.getUint16(0,this)===2}setInherit(o){ae.Struct.setUint16(0,2,this),ae.Struct.setText(0,o,this)}getCompatibilityDate(){return ae.Struct.getText(1,this)}setCompatibilityDate(o){ae.Struct.setText(1,o,this)}adoptCompatibilityFlags(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownCompatibilityFlags(){return ae.Struct.disown(this.getCompatibilityFlags())}getCompatibilityFlags(){return ae.Struct.getList(2,ql.TextList,this)}hasCompatibilityFlags(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initCompatibilityFlags(o){return ae.Struct.initList(2,ql.TextList,o,this)}setCompatibilityFlags(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}adoptBindings(o){ae.Struct.adopt(o,ae.Struct.getPointer(3,this))}disownBindings(){return ae.Struct.disown(this.getBindings())}getBindings(){return ae.Struct.getList(3,s._Bindings,this)}hasBindings(){return!ae.Struct.isNull(ae.Struct.getPointer(3,this))}initBindings(o){return ae.Struct.initList(3,s._Bindings,o,this)}setBindings(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(3,this))}adoptGlobalOutbound(o){ae.Struct.adopt(o,ae.Struct.getPointer(4,this))}disownGlobalOutbound(){return ae.Struct.disown(this.getGlobalOutbound())}getGlobalOutbound(){return ae.Struct.getStruct(4,Xp,this,s._capnp.defaultGlobalOutbound)}hasGlobalOutbound(){return!ae.Struct.isNull(ae.Struct.getPointer(4,this))}initGlobalOutbound(){return ae.Struct.initStructAt(4,Xp,this)}setGlobalOutbound(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(4,this))}adoptCacheApiOutbound(o){ae.Struct.adopt(o,ae.Struct.getPointer(7,this))}disownCacheApiOutbound(){return ae.Struct.disown(this.getCacheApiOutbound())}getCacheApiOutbound(){return ae.Struct.getStruct(7,Xp,this)}hasCacheApiOutbound(){return!ae.Struct.isNull(ae.Struct.getPointer(7,this))}initCacheApiOutbound(){return ae.Struct.initStructAt(7,Xp,this)}setCacheApiOutbound(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(7,this))}adoptDurableObjectNamespaces(o){ae.Struct.adopt(o,ae.Struct.getPointer(5,this))}disownDurableObjectNamespaces(){return ae.Struct.disown(this.getDurableObjectNamespaces())}getDurableObjectNamespaces(){return ae.Struct.getList(5,s._DurableObjectNamespaces,this)}hasDurableObjectNamespaces(){return!ae.Struct.isNull(ae.Struct.getPointer(5,this))}initDurableObjectNamespaces(o){return ae.Struct.initList(5,s._DurableObjectNamespaces,o,this)}setDurableObjectNamespaces(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(5,this))}getDurableObjectUniqueKeyModifier(){return ae.Struct.getText(6,this)}setDurableObjectUniqueKeyModifier(o){ae.Struct.setText(6,o,this)}getDurableObjectStorage(){return ae.Struct.getAs(sA,this)}initDurableObjectStorage(){return ae.Struct.getAs(sA,this)}getModuleFallback(){return ae.Struct.getText(9,this)}setModuleFallback(o){ae.Struct.setText(9,o,this)}toString(){return"Worker_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.Worker=$1;$1.MODULES=Cfe.MODULES;$1.SERVICE_WORKER_SCRIPT=Cfe.SERVICE_WORKER_SCRIPT;$1.INHERIT=Cfe.INHERIT;$1.Module=z1;$1.Binding=vf;$1.DurableObjectNamespace=FI;$1._capnp={displayName:"Worker",id:"acfa77e88fd97d1c",size:new ae.ObjectSize(8,10),defaultGlobalOutbound:ql.readRawPointer(new Uint8Array([16,5,64,2,17,5,74,0,0,255,105,110,116,101,114,110,101,116,0,0,0]).buffer)};var yj=class extends ae.Struct{static{t(this,"ExternalServer_Https")}adoptOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownOptions(){return ae.Struct.disown(this.getOptions())}getOptions(){return ae.Struct.getStruct(1,Ay,this)}hasOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initOptions(){return ae.Struct.initStructAt(1,Ay,this)}setOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptTlsOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownTlsOptions(){return ae.Struct.disown(this.getTlsOptions())}getTlsOptions(){return ae.Struct.getStruct(2,ab,this)}hasTlsOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initTlsOptions(){return ae.Struct.initStructAt(2,ab,this)}setTlsOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}getCertificateHost(){return ae.Struct.getText(3,this)}setCertificateHost(o){ae.Struct.setText(3,o,this)}toString(){return"ExternalServer_Https_"+super.toString()}};ts.ExternalServer_Https=yj;yj._capnp={displayName:"https",id:"ac37e02afd3dc6db",size:new ae.ObjectSize(8,4)};var vj=class extends ae.Struct{static{t(this,"ExternalServer_Tcp")}adoptTlsOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownTlsOptions(){return ae.Struct.disown(this.getTlsOptions())}getTlsOptions(){return ae.Struct.getStruct(1,ab,this)}hasTlsOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initTlsOptions(){return ae.Struct.initStructAt(1,ab,this)}setTlsOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getCertificateHost(){return ae.Struct.getText(2,this)}setCertificateHost(o){ae.Struct.setText(2,o,this)}toString(){return"ExternalServer_Tcp_"+super.toString()}};ts.ExternalServer_Tcp=vj;vj._capnp={displayName:"tcp",id:"d941637df0fb39f1",size:new ae.ObjectSize(8,4)};var kfe;(function(s){s[s.HTTP=0]="HTTP",s[s.HTTPS=1]="HTTPS",s[s.TCP=2]="TCP"})(kfe=ts.ExternalServer_Which||(ts.ExternalServer_Which={}));var aA=class extends ae.Struct{static{t(this,"ExternalServer")}getAddress(){return ae.Struct.getText(0,this)}setAddress(o){ae.Struct.setText(0,o,this)}adoptHttp(o){ae.Struct.setUint16(0,0,this),ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownHttp(){return ae.Struct.disown(this.getHttp())}getHttp(){return ae.Struct.testWhich("http",ae.Struct.getUint16(0,this),0,this),ae.Struct.getStruct(1,Ay,this)}hasHttp(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initHttp(){return ae.Struct.setUint16(0,0,this),ae.Struct.initStructAt(1,Ay,this)}isHttp(){return ae.Struct.getUint16(0,this)===0}setHttp(o){ae.Struct.setUint16(0,0,this),ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getHttps(){return ae.Struct.testWhich("https",ae.Struct.getUint16(0,this),1,this),ae.Struct.getAs(yj,this)}initHttps(){return ae.Struct.setUint16(0,1,this),ae.Struct.getAs(yj,this)}isHttps(){return ae.Struct.getUint16(0,this)===1}setHttps(){ae.Struct.setUint16(0,1,this)}getTcp(){return ae.Struct.testWhich("tcp",ae.Struct.getUint16(0,this),2,this),ae.Struct.getAs(vj,this)}initTcp(){return ae.Struct.setUint16(0,2,this),ae.Struct.getAs(vj,this)}isTcp(){return ae.Struct.getUint16(0,this)===2}setTcp(){ae.Struct.setUint16(0,2,this)}toString(){return"ExternalServer_"+super.toString()}which(){return ae.Struct.getUint16(0,this)}};ts.ExternalServer=aA;aA.HTTP=kfe.HTTP;aA.HTTPS=kfe.HTTPS;aA.TCP=kfe.TCP;aA._capnp={displayName:"ExternalServer",id:"ff209f9aa352f5a4",size:new ae.ObjectSize(8,4)};var bj=class s extends ae.Struct{static{t(this,"Network")}adoptAllow(o){ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownAllow(){return ae.Struct.disown(this.getAllow())}getAllow(){return ae.Struct.getList(0,ql.TextList,this,s._capnp.defaultAllow)}hasAllow(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initAllow(o){return ae.Struct.initList(0,ql.TextList,o,this)}setAllow(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}adoptDeny(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownDeny(){return ae.Struct.disown(this.getDeny())}getDeny(){return ae.Struct.getList(1,ql.TextList,this)}hasDeny(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initDeny(o){return ae.Struct.initList(1,ql.TextList,o,this)}setDeny(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}adoptTlsOptions(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownTlsOptions(){return ae.Struct.disown(this.getTlsOptions())}getTlsOptions(){return ae.Struct.getStruct(2,ab,this)}hasTlsOptions(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initTlsOptions(){return ae.Struct.initStructAt(2,ab,this)}setTlsOptions(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}toString(){return"Network_"+super.toString()}};ts.Network=bj;bj._capnp={displayName:"Network",id:"fa42244f950c9b9c",size:new ae.ObjectSize(0,3),defaultAllow:ql.readRawPointer(new Uint8Array([16,3,17,1,14,17,1,58,63,112,117,98,108,105,99]).buffer)};var Sj=class s extends ae.Struct{static{t(this,"DiskDirectory")}getPath(){return ae.Struct.getText(0,this)}setPath(o){ae.Struct.setText(0,o,this)}getWritable(){return ae.Struct.getBit(0,this,s._capnp.defaultWritable)}setWritable(o){ae.Struct.setBit(0,o,this)}getAllowDotfiles(){return ae.Struct.getBit(1,this,s._capnp.defaultAllowDotfiles)}setAllowDotfiles(o){ae.Struct.setBit(1,o,this)}toString(){return"DiskDirectory_"+super.toString()}};ts.DiskDirectory=Sj;Sj._capnp={displayName:"DiskDirectory",id:"9048ab22835f51c3",size:new ae.ObjectSize(8,1),defaultWritable:ql.getBitMask(!1,0),defaultAllowDotfiles:ql.getBitMask(!1,1)};var agt;(function(s){s[s.HOST=0]="HOST",s[s.PROXY=1]="PROXY"})(agt=ts.HttpOptions_Style||(ts.HttpOptions_Style={}));var u7=class extends ae.Struct{static{t(this,"HttpOptions_Header")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getValue(){return ae.Struct.getText(1,this)}setValue(o){ae.Struct.setText(1,o,this)}toString(){return"HttpOptions_Header_"+super.toString()}};ts.HttpOptions_Header=u7;u7._capnp={displayName:"Header",id:"dc0394b5a6f3417e",size:new ae.ObjectSize(0,2)};var Ay=class s extends ae.Struct{static{t(this,"HttpOptions")}getStyle(){return ae.Struct.getUint16(0,this,s._capnp.defaultStyle)}setStyle(o){ae.Struct.setUint16(0,o,this)}getForwardedProtoHeader(){return ae.Struct.getText(0,this)}setForwardedProtoHeader(o){ae.Struct.setText(0,o,this)}getCfBlobHeader(){return ae.Struct.getText(1,this)}setCfBlobHeader(o){ae.Struct.setText(1,o,this)}adoptInjectRequestHeaders(o){ae.Struct.adopt(o,ae.Struct.getPointer(2,this))}disownInjectRequestHeaders(){return ae.Struct.disown(this.getInjectRequestHeaders())}getInjectRequestHeaders(){return ae.Struct.getList(2,s._InjectRequestHeaders,this)}hasInjectRequestHeaders(){return!ae.Struct.isNull(ae.Struct.getPointer(2,this))}initInjectRequestHeaders(o){return ae.Struct.initList(2,s._InjectRequestHeaders,o,this)}setInjectRequestHeaders(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(2,this))}adoptInjectResponseHeaders(o){ae.Struct.adopt(o,ae.Struct.getPointer(3,this))}disownInjectResponseHeaders(){return ae.Struct.disown(this.getInjectResponseHeaders())}getInjectResponseHeaders(){return ae.Struct.getList(3,s._InjectResponseHeaders,this)}hasInjectResponseHeaders(){return!ae.Struct.isNull(ae.Struct.getPointer(3,this))}initInjectResponseHeaders(o){return ae.Struct.initList(3,s._InjectResponseHeaders,o,this)}setInjectResponseHeaders(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(3,this))}getCapnpConnectHost(){return ae.Struct.getText(4,this)}setCapnpConnectHost(o){ae.Struct.setText(4,o,this)}toString(){return"HttpOptions_"+super.toString()}};ts.HttpOptions=Ay;Ay.Style=agt;Ay.Header=u7;Ay._capnp={displayName:"HttpOptions",id:"aa8dc6885da78f19",size:new ae.ObjectSize(8,5),defaultStyle:ql.getUint16Mask(0)};var f7=class extends ae.Struct{static{t(this,"TlsOptions_Keypair")}getPrivateKey(){return ae.Struct.getText(0,this)}setPrivateKey(o){ae.Struct.setText(0,o,this)}getCertificateChain(){return ae.Struct.getText(1,this)}setCertificateChain(o){ae.Struct.setText(1,o,this)}toString(){return"TlsOptions_Keypair_"+super.toString()}};ts.TlsOptions_Keypair=f7;f7._capnp={displayName:"Keypair",id:"f546bf2d5d8bd13e",size:new ae.ObjectSize(0,2)};var ogt;(function(s){s[s.GOOD_DEFAULT=0]="GOOD_DEFAULT",s[s.SSL3=1]="SSL3",s[s.TLS1DOT0=2]="TLS1DOT0",s[s.TLS1DOT1=3]="TLS1DOT1",s[s.TLS1DOT2=4]="TLS1DOT2",s[s.TLS1DOT3=5]="TLS1DOT3"})(ogt=ts.TlsOptions_Version||(ts.TlsOptions_Version={}));var ab=class s extends ae.Struct{static{t(this,"TlsOptions")}adoptKeypair(o){ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownKeypair(){return ae.Struct.disown(this.getKeypair())}getKeypair(){return ae.Struct.getStruct(0,f7,this)}hasKeypair(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initKeypair(){return ae.Struct.initStructAt(0,f7,this)}setKeypair(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}getRequireClientCerts(){return ae.Struct.getBit(0,this,s._capnp.defaultRequireClientCerts)}setRequireClientCerts(o){ae.Struct.setBit(0,o,this)}getTrustBrowserCas(){return ae.Struct.getBit(1,this,s._capnp.defaultTrustBrowserCas)}setTrustBrowserCas(o){ae.Struct.setBit(1,o,this)}adoptTrustedCertificates(o){ae.Struct.adopt(o,ae.Struct.getPointer(1,this))}disownTrustedCertificates(){return ae.Struct.disown(this.getTrustedCertificates())}getTrustedCertificates(){return ae.Struct.getList(1,ql.TextList,this)}hasTrustedCertificates(){return!ae.Struct.isNull(ae.Struct.getPointer(1,this))}initTrustedCertificates(o){return ae.Struct.initList(1,ql.TextList,o,this)}setTrustedCertificates(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(1,this))}getMinVersion(){return ae.Struct.getUint16(2,this,s._capnp.defaultMinVersion)}setMinVersion(o){ae.Struct.setUint16(2,o,this)}getCipherList(){return ae.Struct.getText(2,this)}setCipherList(o){ae.Struct.setText(2,o,this)}toString(){return"TlsOptions_"+super.toString()}};ts.TlsOptions=ab;ab.Keypair=f7;ab.Version=ogt;ab._capnp={displayName:"TlsOptions",id:"aabb3c3778ac4311",size:new ae.ObjectSize(8,3),defaultRequireClientCerts:ql.getBitMask(!1,0),defaultTrustBrowserCas:ql.getBitMask(!1,1),defaultMinVersion:ql.getUint16Mask(0)};var Tj=class s extends ae.Struct{static{t(this,"Extension_Module")}getName(){return ae.Struct.getText(0,this)}setName(o){ae.Struct.setText(0,o,this)}getInternal(){return ae.Struct.getBit(0,this,s._capnp.defaultInternal)}setInternal(o){ae.Struct.setBit(0,o,this)}getEsModule(){return ae.Struct.getText(1,this)}setEsModule(o){ae.Struct.setText(1,o,this)}toString(){return"Extension_Module_"+super.toString()}};ts.Extension_Module=Tj;Tj._capnp={displayName:"Module",id:"d5d16e76fdedc37d",size:new ae.ObjectSize(8,2),defaultInternal:ql.getBitMask(!1,0)};var _7=class s extends ae.Struct{static{t(this,"Extension")}adoptModules(o){ae.Struct.adopt(o,ae.Struct.getPointer(0,this))}disownModules(){return ae.Struct.disown(this.getModules())}getModules(){return ae.Struct.getList(0,s._Modules,this)}hasModules(){return!ae.Struct.isNull(ae.Struct.getPointer(0,this))}initModules(o){return ae.Struct.initList(0,s._Modules,o,this)}setModules(o){ae.Struct.copyFrom(o,ae.Struct.getPointer(0,this))}toString(){return"Extension_"+super.toString()}};ts.Extension=_7;_7.Module=Tj;_7._capnp={displayName:"Extension",id:"e390128a861973a6",size:new ae.ObjectSize(0,1)};a7._Services=ql.CompositeList(rw);a7._Sockets=ql.CompositeList(o7);a7._Extensions=ql.CompositeList(_7);OI._InnerBindings=ql.CompositeList(vf);$1._Modules=ql.CompositeList(z1);$1._Bindings=ql.CompositeList(vf);$1._DurableObjectNamespaces=ql.CompositeList(FI);Ay._InjectRequestHeaders=ql.CompositeList(u7);Ay._InjectResponseHeaders=ql.CompositeList(u7);_7._Modules=ql.CompositeList(Tj)});var g8e=or(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.kVoid=iw.Worker_Binding_CryptoKey_Usage=iw.TlsOptions_Version=iw.HttpOptions_Style=void 0;var h8e=m8e();Object.defineProperty(iw,"HttpOptions_Style",{enumerable:!0,get:t(function(){return h8e.HttpOptions_Style},"get")});Object.defineProperty(iw,"TlsOptions_Version",{enumerable:!0,get:t(function(){return h8e.TlsOptions_Version},"get")});Object.defineProperty(iw,"Worker_Binding_CryptoKey_Usage",{enumerable:!0,get:t(function(){return h8e.Worker_Binding_CryptoKey_Usage},"get")});iw.kVoid=Symbol("kVoid")});var v8e=or(LI=>{"use strict";var C1r=LI&&LI.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),k1r=LI&&LI.__exportStar||function(s,o){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(o,f)&&C1r(o,s,f)};Object.defineProperty(LI,"__esModule",{value:!0});LI.serializeConfig=N1r;var w1r=xfe(),D1r=g8e(),P1r=m8e();function A1r(s){return s.length>0?s[0].toUpperCase()+s.substring(1):s}t(A1r,"capitalize");function y8e(s,o){let f=o;for(let[d,y]of Object.entries(s)){let x=A1r(d);if(y instanceof Uint8Array)f[`init${x}`](y.byteLength).copyBuffer(y);else if(Array.isArray(y)){let A=f[`init${x}`](y.length);for(let F=0;F<y.length;F++)typeof y[F]=="object"?y8e(y[F],A.get(F)):A.set(F,y[F])}else if(typeof y=="object"){let A=f[`init${x}`]();y8e(y,A)}else y===D1r.kVoid?f[`set${x}`]():y!==void 0&&f[`set${x}`](y)}}t(y8e,"encodeCapnpStruct");function N1r(s){let o=new w1r.Message,f=o.initRoot(P1r.Config);return y8e(s,f),Buffer.from(o.toArrayBuffer())}t(N1r,"serializeConfig");k1r(g8e(),LI)});var mgt=or(Xm=>{"use strict";var pgt=Xm&&Xm.__createBinding||(Object.create?(function(s,o,f,d){d===void 0&&(d=f);var y=Object.getOwnPropertyDescriptor(o,f);(!y||("get"in y?!o.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:t(function(){return o[f]},"get")}),Object.defineProperty(s,d,y)}):(function(s,o,f,d){d===void 0&&(d=f),s[d]=o[f]})),I1r=Xm&&Xm.__setModuleDefault||(Object.create?(function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}):function(s,o){s.default=o}),O1r=Xm&&Xm.__importStar||(function(){var s=t(function(o){return s=Object.getOwnPropertyNames||function(f){var d=[];for(var y in f)Object.prototype.hasOwnProperty.call(f,y)&&(d[d.length]=y);return d},s(o)},"ownKeys");return function(o){if(o&&o.__esModule)return o;var f={};if(o!=null)for(var d=s(o),y=0;y<d.length;y++)d[y]!=="default"&&pgt(f,o,d[y]);return I1r(f,o),f}})(),F1r=Xm&&Xm.__exportStar||function(s,o){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(o,f)&&pgt(o,s,f)},x8e=Xm&&Xm.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.supportedCompatibilityDate=Xm.Runtime=Xm.kInspectorSocket=void 0;var L1r=x8e(uo("node:assert")),cgt=x8e(uo("node:child_process")),b8e=uo("node:events"),lgt=uo("node:fs"),S8e=x8e(uo("node:readline")),R1r=uo("node:stream"),dgt=O1r(uo("workerd"));Object.defineProperty(Xm,"supportedCompatibilityDate",{enumerable:!0,get:t(function(){return dgt.compatibilityDate},"get")});var ugt=Hpt();Xm.kInspectorSocket=Symbol("kInspectorSocket");async function M1r(s,o){if(o?.signal?.aborted)return;let f=S8e.default.createInterface(s),d=t(()=>f.close(),"abortListener");o?.signal?.addEventListener("abort",d,{once:!0});let y=Array.from(o.requiredSockets),x=new Map;try{for await(let A of f){let F=JSON.parse(A),W=F.event==="listen-inspector"?Xm.kInspectorSocket:F.socket,G=y.indexOf(W);if(G!==-1&&(x.set(W,F.port),y.splice(G,1),y.length===0))return x}}finally{o?.signal?.removeEventListener("abort",d)}}t(M1r,"waitForPorts");function fgt(s){return new Promise(o=>{s.once("exit",()=>o())})}t(fgt,"waitForExit");function j1r(s,o){S8e.default.createInterface(s).on("line",f=>console.log(f)),S8e.default.createInterface(o).on("line",f=>console.error(f))}t(j1r,"pipeOutput");function _gt(){return dgt.default}t(_gt,"getRuntimeCommand");function B1r(s){let o=["serve","--binary","--experimental","--control-fd=3","-"];return s.inspectorAddress!==void 0&&o.push(`--inspector-addr=localhost:${s.inspectorAddress}`),s.verbose&&o.push("--verbose"),o}t(B1r,"getServeArgs");function U1r(s){let o=["compile","--binary","-"];return s.verbose&&o.push("--verbose"),o}t(U1r,"getCompileArgs");var T8e=class{static{t(this,"Runtime")}process;processExitPromise;detachParentCleanup;async updateConfig(o,f){await this.dispose();let d=_gt(),y=B1r(f),A=cgt.default.spawn(d,y,{stdio:["pipe","pipe","pipe","pipe"],env:{...process.env,FORCE_COLOR:"1"}});this.process=A,this.processExitPromise=fgt(A),this.detachParentCleanup?.(),this.detachParentCleanup=(0,ugt.attachChildCleanup)(A),(f.handleRuntimeStdio??j1r)(A.stdout,A.stderr);let W=A.stdio[3];return(0,L1r.default)(W instanceof R1r.Readable),A.stdin.write(o),A.stdin.end(),await(0,b8e.once)(A.stdin,"finish"),M1r(W,f)}async compileBinary(o,f){await this.dispose();let d=_gt(),y=U1r(f),x=cgt.default.spawn(d,y,{stdio:["pipe","pipe","pipe"],env:{...process.env}});this.process=x,this.processExitPromise=fgt(x),this.detachParentCleanup?.(),this.detachParentCleanup=(0,ugt.attachChildCleanup)(x),x.stdin.write(o),x.stdin.end(),await(0,b8e.once)(x.stdin,"finish");let A=(0,lgt.createWriteStream)(f.binaryPath);x.stdout.pipe(A),await(0,b8e.once)(x.stdout,"finish"),(0,lgt.chmodSync)(f.binaryPath,493),await this.dispose()}dispose(){return this.detachParentCleanup?.(),this.detachParentCleanup=void 0,this.process?.kill("SIGKILL"),this.processExitPromise}};Xm.Runtime=T8e;F1r(v8e(),Xm)});var hgt=or(wfe=>{"use strict";Object.defineProperty(wfe,"__esModule",{value:!0});wfe.ZUPLO_CACHE_EXTENSION=void 0;wfe.ZUPLO_CACHE_EXTENSION='var D=Object.defineProperty;var s=(e,t)=>D(e,"name",{value:t,configurable:!0});import{Buffer as B}from"node:buffer";var f={AGE:"age",NAMESPACE:"cf-cache-namespace",STATUS:"cf-cache-status"};import{connect as k}from"cloudflare:sockets";var U="*",_="$",G=U.charCodeAt(0),v=124,M=40,W=33,$=35,j=_.charCodeAt(0),K=44,Z=45,V=58,J=37,Y=95,Q=62,z=126,q=43,ee=61,g=new TextEncoder,E=new TextDecoder,S=`\\r\n`,x=g.encode(S),m=class{static{s(this,"MinimalRedisClient")}socket;reader;writer;constructor(t){this.socket=k({hostname:t.redisHost,port:t.redisPort},{secureTransport:"starttls",allowHalfOpen:!0}),this.reader=this.socket.readable.getReader(),this.writer=this.socket.writable.getWriter()}async sendCommand(t,n=!1){return await ye(this.reader,this.writer,t,n)}};function L(e){let t=0;for(let a of e)t+=a.length;let n=new Uint8Array(t),r=0;for(let a of e)n.set(a,r),r+=a.length;return n}s(L,"concat");function te(e){let t=[g.encode(U+e.length+S)];for(let n of e){let r=n instanceof Uint8Array?n:g.encode(n.toString());t.push(g.encode(_+r.byteLength+S)),t.push(r),t.push(x)}return L(t)}s(te,"createRequest");async function ne(e,t){let n=te(t);await e.write(n)}s(ne,"writeCommand");function A(e){return E.decode(e.slice(1))}s(A,"removePrefix");function re(e){return Object.fromEntries(fe(e,2))}s(re,"toObject");async function O(e,t,n=!1){let r=[];for(let a=0;a<e;a++)r.push(await P(t,n));return r}s(O,"readNReplies");async function H(e,t){let n=I(e);return n===-1?null:await O(n,t)}s(H,"readArray");async function ae(e,t,n=!1){return await N(e,t),await P(t,n)}s(ae,"readAttribute");function se(e){return BigInt(A(e))}s(se,"readBigNumber");async function oe(e){let{value:t}=await e.next();return await Promise.reject(E.decode(t))}s(oe,"readBlobError");function ce(e){return A(e)==="t"}s(ce,"readBoolean");async function ie(e,t,n=!1){if(I(e)===-1)return null;let{value:r}=await t.next();return n?r:E.decode(r)}s(ie,"readBulkOrVerbatimString");async function ue(e){return await Promise.reject(A(e))}s(ue,"readError");async function N(e,t){let n=I(e)*2,r=await O(n,t);return re(r)}s(N,"readMap");function I(e){let t=A(e);switch(t){case"inf":return 1/0;case"-inf":return-1/0;default:return Number(t)}}s(I,"readNumberOrDouble");async function le(e,t){return new Set(await H(e,t))}s(le,"readSet");function de(e){return A(e)}s(de,"readSimpleString");async function P(e,t=!1){let{value:n}=await e.next();if(n.length===0)return await Promise.reject(new TypeError("No reply received"));switch(n[0]){case G:case Q:return await H(n,e);case v:return await ae(n,e);case M:return se(n);case W:return oe(e);case $:return ce(n);case j:case ee:return await ie(n,e,t);case K:case V:return I(n);case Z:return ue(n);case J:return await N(n,e);case Y:return null;case z:return await le(n,e);case q:return de(n);default:return E.decode(n)}}s(P,"readReply");async function ye(e,t,n,r=!1){return await ne(t,n),await P(he(e,x),r)}s(ye,"sendCommand");function fe(e,t){if(t<=0||!Number.isInteger(t))throw new Error(`Expected size to be an integer greater than 0 but found ${t}`);if(e.length===0)return[];let n=Array.from({length:Math.ceil(e.length/t)}),r=0,a=0;for(;r<e.length;)n[a]=e.slice(r,r+t),a+=1,r+=t;return n}s(fe,"chunk");function Re(e){let t=new Uint8Array(e.length);t[0]=0;let n=0,r=1;for(;r<t.length;)e[r]===e[n]?(n++,t[r]=n,r++):n===0?(t[r]=0,r++):n=t[n-1];return t}s(Re,"createLPS");async function*he(e,t){let n=t.length,r=Re(t),a=new Uint8Array,o=0,c=0;for(;;){let{value:i,done:d}=await e.read();if(d){yield a;return}a=L([a,i]);let l=0;for(;o<a.length;)if(i[l]===t[c]){if(o++,l++,c++,c===n){let y=o-n;yield a.slice(0,y),a=a.slice(o),o=0,c=0}}else c===0?(o++,l++):c=r[c-1]}}s(he,"readDelim");var F=13,X=10,me=/^HTTP\\/\\d(?:\\.\\d)? (?<rawStatusCode>\\d+) (?<statusText>.*)$/;async function Ae(e){let t=B.alloc(0),n=-1;for await(let h of e.values({preventCancel:!0}))if(t=B.concat([t,h]),n=t.findIndex((b,w)=>t[w]===F&&t[w+1]===X&&t[w+2]===F&&t[w+3]===X),n!==-1)break;let r=t.subarray(0,n).toString(),[a,...o]=r.split(`\\r\n`),c=a.match(me),{rawStatusCode:i,statusText:d}=c.groups,l=parseInt(i,10),y=o.map(h=>{let b=h.indexOf(":");return[h.substring(0,b),h.substring(b+1).trim()]}),u=t.subarray(n+4),{readable:p,writable:R}=new IdentityTransformStream,C=R.getWriter();return C.write(u).then(()=>(C.releaseLock(),e.pipeTo(R))).catch(h=>{}),new Response(p,{status:l,statusText:d,headers:y})}s(Ae,"parseHttpResponse");function T(e){let t=e.headers.get(f.NAMESPACE)??"default";return e.cf?.cacheKey?`${t}:${String(e.cf?.cacheKey)}`:`${t}:${e.url}`}s(T,"getCacheKey");function pe(e){let t={};return e&&e.split(",").forEach(r=>{let[a,o]=r.trim().split("=");t[a.toLowerCase()]=o?o.trim():!0}),t}s(pe,"parseHeaderValue");function we(e){let t={};for(let[n,r]of e.entries())t[n]=r;return t}s(we,"objectifyHeaders");async function ge(e){let t=await e.arrayBuffer(),n=new Uint8Array(t),r="";for(let a=0;a<n.length;a++)r+=String.fromCharCode(n[a]);return btoa(r)}s(ge,"serializeResponseBody");function Ee(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let a=0;a<n;a++)r[a]=t.charCodeAt(a);return r}s(Ee,"deserializeResponseBody");async function Ie(e){return e.method==="GET"?new Response(null,{status:504,headers:{[f.STATUS]:"MISS"}}):e.method==="PUT"?(await e.body?.pipeTo(new WritableStream),new Response(null,{status:204})):e.method==="PURGE"?new Response(null,{status:404}):new Response(null,{status:405})}s(Ie,"handleWithNoOp");async function be(e,t){let n=t.ZUPLO_CACHE_REDIS_HOSTNAME,r=parseInt(t.ZUPLO_CACHE_REDIS_PORT,10);if(e.method==="GET")try{let a=T(e),o=new m({redisHost:n,redisPort:r});await o.sendCommand(["HELLO",3]);let c=await o.sendCommand(["TTL",a]);if(c===-2)return new Response(null,{status:504,headers:{[f.STATUS]:"MISS"}});if(c<2)return new Response(null,{status:504,headers:{[f.STATUS]:"EXPIRE"}});{let i=await o.sendCommand(["HGETALL",a]),d=parseInt(i.maxage,10),l=i.status,y=i.status,u=new Headers(JSON.parse(i.headers));return u.set(f.AGE,`${d-c}`),u.set(f.STATUS,"HIT"),new Response(Ee(i.body),{status:l,statusText:y,headers:u})}}catch(a){return new Response(`Error on GET from cache: ${a}`,{status:500})}else if(e.method==="PUT")try{let o=await Ae(e.body),c=pe(o.headers.get("cache-control")),i=parseInt(c["s-maxage"],10),d=parseInt(c["max-age"],10),l=c["no-store"],y=c["no-cache"],u=i||d||0;if(u===0&&!l&&!y&&(u=3600,o.headers.append("cache-control","s-maxage=3600")),u>0){let p=T(e),R=new m({redisHost:n,redisPort:r});return await R.sendCommand(["HELLO",3]),await R.sendCommand(["HSET",p,"maxage",u,"status",o.status,"statusText",o.statusText,"headers",JSON.stringify(we(o.headers)),"body",await ge(o)]),await R.sendCommand(["EXPIRE",p,u]),new Response(null,{status:204})}else return new Response(null,{status:413})}catch(a){return new Response(`Error on PUT to cache: ${a}`,{status:413})}else if(e.method==="PURGE")try{let a=T(e);return await new m({redisHost:n,redisPort:r}).sendCommand(["DEL",a])===1?new Response(null,{status:200}):new Response(null,{status:404})}catch(a){return new Response(`Error on PURGE to cache: ${a}`,{status:404})}else return new Response(null,{status:405})}s(be,"handleWithRedis");var Oe={async fetch(e,t){return t.ZUPLO_CACHE_REDIS_HOSTNAME&&t.ZUPLO_CACHE_REDIS_PORT?be(e,t):Ie(e)}};export{Oe as default};\n'});var C8e=or(Ej=>{"use strict";var z1r=Ej&&Ej.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ej,"__esModule",{value:!0});Ej.ZuploWorkerd=void 0;var $1r=uo("node:fs"),J1r=z1r(uo("node:path")),W1r=uo("node:url"),q1r=mgt(),ggt=v8e(),V1r=hgt(),ygt="2024-12-30",E8e=class{static{t(this,"ZuploWorkerd")}options;runtime;constructor(o){this.options=o,this.runtime=new q1r.Runtime}async serve(){let o=await this.configure(),f=(0,ggt.serializeConfig)(o),d={requiredSockets:["http"],inspectorAddress:this.options.inspectorPort,handleRuntimeStdio:this.options.handleRuntimeStdio};await this.runtime.updateConfig(f,d)}async compileBinary(o){let f=await this.configure({embedVariables:!1}),d=(0,ggt.serializeConfig)(f);await this.runtime.compileBinary(d,o)}async dispose(){await this.runtime.dispose()}withSourceURL(o,f){if(o.lastIndexOf("//# sourceURL=")!==-1)return o;let y=`
|
|
558
558
|
//# sourceURL=${(0,W1r.pathToFileURL)(f)}
|
|
559
|
-
`;return o+y}async configure(o={embedVariables:!0}){let f=this.options.compatibilityDate??"2024-09-02";if(new Date(f)>new Date(ygt)&&(f=ygt),this.options.modules.length===0)throw new Error("No modules provided. Cannot run local dev server.");let d=this.options.modules.filter(A=>!A.endsWith(".js.map")).map(A=>{let F=J1r.default.join(this.options.scriptDirectory,A),W=(0,$1r.readFileSync)(F,"utf8"),G=this.withSourceURL(W,F);return{name:A,esModule:G}}).sort(A=>A.name==="./worker.js"?-1:1),y;o.embedVariables?y=Object.entries(this.options.bindings).map(([A,F])=>({name:A,json:JSON.stringify(F)})):y=Object.entries(this.options.bindings).map(([A])=>({name:A,fromEnvironment:A}));let x;return o.embedVariables?x=Object.entries(this.options.bindings).filter(([A])=>A.startsWith("ZUPLO_CACHE")).map(([A,F])=>({name:A,json:JSON.stringify(F)})):x=Object.entries(this.options.bindings).filter(([A])=>A.startsWith("ZUPLO_CACHE")).map(([A])=>({name:A,fromEnvironment:A})),{services:[{name:"zuplo-entry",worker:{modules:d,compatibilityDate:f,compatibilityFlags:["nodejs_compat"],bindings:y,cacheApiOutbound:{name:"zuplo-cache-extension"}}},{name:"zuplo-cache-extension",worker:{modules:[{name:"zuplo-cache-extension.js",esModule:V1r.ZUPLO_CACHE_EXTENSION}],bindings:x,compatibilityDate:f,compatibilityFlags:["nodejs_compat"]}},{name:"internet",network:{allow:["public","private"],deny:[],tlsOptions:{trustBrowserCas:!0,trustedCertificates:[]}}}],sockets:[{name:"http",address:`*:${this.options.port}`,http:{},service:{name:"zuplo-entry"}}]}}};Ej.ZuploWorkerd=E8e});var Sgt=or((
|
|
559
|
+
`;return o+y}async configure(o={embedVariables:!0}){let f=this.options.compatibilityDate??"2024-09-02";if(new Date(f)>new Date(ygt)&&(f=ygt),this.options.modules.length===0)throw new Error("No modules provided. Cannot run local dev server.");let d=this.options.modules.filter(A=>!A.endsWith(".js.map")).map(A=>{let F=J1r.default.join(this.options.scriptDirectory,A),W=(0,$1r.readFileSync)(F,"utf8"),G=this.withSourceURL(W,F);return{name:A,esModule:G}}).sort(A=>A.name==="./worker.js"?-1:1),y;o.embedVariables?y=Object.entries(this.options.bindings).map(([A,F])=>({name:A,json:JSON.stringify(F)})):y=Object.entries(this.options.bindings).map(([A])=>({name:A,fromEnvironment:A}));let x;return o.embedVariables?x=Object.entries(this.options.bindings).filter(([A])=>A.startsWith("ZUPLO_CACHE")).map(([A,F])=>({name:A,json:JSON.stringify(F)})):x=Object.entries(this.options.bindings).filter(([A])=>A.startsWith("ZUPLO_CACHE")).map(([A])=>({name:A,fromEnvironment:A})),{services:[{name:"zuplo-entry",worker:{modules:d,compatibilityDate:f,compatibilityFlags:["nodejs_compat"],bindings:y,cacheApiOutbound:{name:"zuplo-cache-extension"}}},{name:"zuplo-cache-extension",worker:{modules:[{name:"zuplo-cache-extension.js",esModule:V1r.ZUPLO_CACHE_EXTENSION}],bindings:x,compatibilityDate:f,compatibilityFlags:["nodejs_compat"]}},{name:"internet",network:{allow:["public","private"],deny:[],tlsOptions:{trustBrowserCas:!0,trustedCertificates:[]}}}],sockets:[{name:"http",address:`*:${this.options.port}`,http:{},service:{name:"zuplo-entry"}}]}}};Ej.ZuploWorkerd=E8e});var Sgt=or((WLr,Y1r)=>{Y1r.exports={name:"dotenv",version:"16.5.0",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var P8e=or((qLr,oA)=>{var w8e=uo("fs"),D8e=uo("path"),K1r=uo("os"),X1r=uo("crypto"),Z1r=Sgt(),xgt=Z1r.version,Q1r=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function evr(s){let o={},f=s.toString();f=f.replace(/\r\n?/mg,`
|
|
560
560
|
`);let d;for(;(d=Q1r.exec(f))!=null;){let y=d[1],x=d[2]||"";x=x.trim();let A=x[0];x=x.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),A==='"'&&(x=x.replace(/\\n/g,`
|
|
561
|
-
`),x=x.replace(/\\r/g,"\r")),o[y]=x}return o}t(evr,"parse");function tvr(s){let o=Cgt(s),f=Oh.configDotenv({path:o});if(!f.parsed){let A=new Error(`MISSING_DATA: Cannot parse ${o} for an unknown reason`);throw A.code="MISSING_DATA",A}let d=Egt(s).split(","),y=d.length,x;for(let A=0;A<y;A++)try{let F=d[A].trim(),W=nvr(f,F);x=Oh.decrypt(W.ciphertext,W.key);break}catch(F){if(A+1>=y)throw F}return Oh.parse(x)}t(tvr,"_parseVault");function rvr(s){console.log(`[dotenv@${xgt}][WARN] ${s}`)}t(rvr,"_warn");function SG(s){console.log(`[dotenv@${xgt}][DEBUG] ${s}`)}t(SG,"_debug");function Egt(s){return s&&s.DOTENV_KEY&&s.DOTENV_KEY.length>0?s.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}t(Egt,"_dotenvKey");function nvr(s,o){let f;try{f=new URL(o)}catch(F){if(F.code==="ERR_INVALID_URL"){let W=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw W.code="INVALID_DOTENV_KEY",W}throw F}let d=f.password;if(!d){let F=new Error("INVALID_DOTENV_KEY: Missing key part");throw F.code="INVALID_DOTENV_KEY",F}let y=f.searchParams.get("environment");if(!y){let F=new Error("INVALID_DOTENV_KEY: Missing environment part");throw F.code="INVALID_DOTENV_KEY",F}let x=`DOTENV_VAULT_${y.toUpperCase()}`,A=s.parsed[x];if(!A){let F=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${x} in your .env.vault file.`);throw F.code="NOT_FOUND_DOTENV_ENVIRONMENT",F}return{ciphertext:A,key:d}}t(nvr,"_instructions");function Cgt(s){let o=null;if(s&&s.path&&s.path.length>0)if(Array.isArray(s.path))for(let f of s.path)w8e.existsSync(f)&&(o=f.endsWith(".vault")?f:`${f}.vault`);else o=s.path.endsWith(".vault")?s.path:`${s.path}.vault`;else o=D8e.resolve(process.cwd(),".env.vault");return w8e.existsSync(o)?o:null}t(Cgt,"_vaultPath");function Tgt(s){return s[0]==="~"?D8e.join(K1r.homedir(),s.slice(1)):s}t(Tgt,"_resolveHome");function ivr(s){s&&s.debug&&SG("Loading env from encrypted .env.vault");let f=Oh._parseVault(s),d=process.env;return s&&s.processEnv!=null&&(d=s.processEnv),Oh.populate(d,f,s),{parsed:f}}t(ivr,"_configVault");function svr(s){let o=D8e.resolve(process.cwd(),".env"),f="utf8",d=!!(s&&s.debug);s&&s.encoding?f=s.encoding:d&&SG("No encoding is specified. UTF-8 is used by default");let y=[o];if(s&&s.path)if(!Array.isArray(s.path))y=[Tgt(s.path)];else{y=[];for(let W of s.path)y.push(Tgt(W))}let x,A={};for(let W of y)try{let G=Oh.parse(w8e.readFileSync(W,{encoding:f}));Oh.populate(A,G,s)}catch(G){d&&SG(`Failed to load ${W} ${G.message}`),x=G}let F=process.env;return s&&s.processEnv!=null&&(F=s.processEnv),Oh.populate(F,A,s),x?{parsed:A,error:x}:{parsed:A}}t(svr,"configDotenv");function avr(s){if(Egt(s).length===0)return Oh.configDotenv(s);let o=Cgt(s);return o?Oh._configVault(s):(rvr(`You set DOTENV_KEY but you are missing a .env.vault file at ${o}. Did you forget to build it?`),Oh.configDotenv(s))}t(avr,"config");function ovr(s,o){let f=Buffer.from(o.slice(-64),"hex"),d=Buffer.from(s,"base64"),y=d.subarray(0,12),x=d.subarray(-16);d=d.subarray(12,-16);try{let A=X1r.createDecipheriv("aes-256-gcm",f,y);return A.setAuthTag(x),`${A.update(d)}${A.final()}`}catch(A){let F=A instanceof RangeError,W=A.message==="Invalid key length",G=A.message==="Unsupported state or unable to authenticate data";if(F||W){let be=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw be.code="INVALID_DOTENV_KEY",be}else if(G){let be=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw be.code="DECRYPTION_FAILED",be}else throw A}}t(ovr,"decrypt");function cvr(s,o,f={}){let d=!!(f&&f.debug),y=!!(f&&f.override);if(typeof o!="object"){let x=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw x.code="OBJECT_REQUIRED",x}for(let x of Object.keys(o))Object.prototype.hasOwnProperty.call(s,x)?(y===!0&&(s[x]=o[x]),d&&SG(y===!0?`"${x}" is already defined and WAS overwritten`:`"${x}" is already defined and was NOT overwritten`)):s[x]=o[x]}t(cvr,"populate");var Oh={configDotenv:svr,_configVault:ivr,_parseVault:tvr,config:avr,decrypt:ovr,parse:evr,populate:cvr};oA.exports.configDotenv=Oh.configDotenv;oA.exports._configVault=Oh._configVault;oA.exports._parseVault=Oh._parseVault;oA.exports.config=Oh.config;oA.exports.decrypt=Oh.decrypt;oA.exports.parse=Oh.parse;oA.exports.populate=Oh.populate;oA.exports=Oh});var Agt=or((VLr,Pgt)=>{Pgt.exports=Dgt;Dgt.sync=uvr;var kgt=uo("fs");function lvr(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var d=0;d<f.length;d++){var y=f[d].toLowerCase();if(y&&s.substr(-y.length).toLowerCase()===y)return!0}return!1}t(lvr,"checkPathExt");function wgt(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:lvr(o,f)}t(wgt,"checkStat");function Dgt(s,o,f){kgt.stat(s,function(d,y){f(d,d?!1:wgt(y,s,o))})}t(Dgt,"isexe");function uvr(s,o){return wgt(kgt.statSync(s),s,o)}t(uvr,"sync")});var Lgt=or((GLr,Fgt)=>{Fgt.exports=Igt;Igt.sync=fvr;var Ngt=uo("fs");function Igt(s,o,f){Ngt.stat(s,function(d,y){f(d,d?!1:Ogt(y,o))})}t(Igt,"isexe");function fvr(s,o){return Ogt(Ngt.statSync(s),o)}t(fvr,"sync");function Ogt(s,o){return s.isFile()&&_vr(s,o)}t(Ogt,"checkStat");function _vr(s,o){var f=s.mode,d=s.uid,y=s.gid,x=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),A=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),F=parseInt("100",8),W=parseInt("010",8),G=parseInt("001",8),be=F|W,de=f&G||f&W&&y===A||f&F&&d===x||f&be&&x===0;return de}t(_vr,"checkMode")});var Mgt=or((XLr,Rgt)=>{var KLr=uo("fs"),Dfe;process.platform==="win32"||global.TESTING_WINDOWS?Dfe=Agt():Dfe=Lgt();Rgt.exports=A8e;A8e.sync=pvr;function A8e(s,o,f){if(typeof o=="function"&&(f=o,o={}),!f){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(d,y){A8e(s,o||{},function(x,A){x?y(x):d(A)})})}Dfe(s,o||{},function(d,y){d&&(d.code==="EACCES"||o&&o.ignoreErrors)&&(d=null,y=!1),f(d,y)})}t(A8e,"isexe");function pvr(s,o){try{return Dfe.sync(s,o||{})}catch(f){if(o&&o.ignoreErrors||f.code==="EACCES")return!1;throw f}}t(pvr,"sync")});var Wgt=or((QLr,Jgt)=>{var Cj=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",jgt=uo("path"),dvr=Cj?";":":",Bgt=Mgt(),Ugt=t(s=>Object.assign(new Error(`not found: ${s}`),{code:"ENOENT"}),"getNotFoundError"),zgt=t((s,o)=>{let f=o.colon||dvr,d=s.match(/\//)||Cj&&s.match(/\\/)?[""]:[...Cj?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(f)],y=Cj?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",x=Cj?y.split(f):[""];return Cj&&s.indexOf(".")!==-1&&x[0]!==""&&x.unshift(""),{pathEnv:d,pathExt:x,pathExtExe:y}},"getPathInfo"),$gt=t((s,o,f)=>{typeof o=="function"&&(f=o,o={}),o||(o={});let{pathEnv:d,pathExt:y,pathExtExe:x}=zgt(s,o),A=[],F=t(G=>new Promise((be,de)=>{if(G===d.length)return o.all&&A.length?be(A):de(Ugt(s));let se=d[G],Xe=/^".*"$/.test(se)?se.slice(1,-1):se,Ue=jgt.join(Xe,s),je=!Xe&&/^\.[\\\/]/.test(s)?s.slice(0,2)+Ue:Ue;be(W(je,G,0))}),"step"),W=t((G,be,de)=>new Promise((se,Xe)=>{if(de===y.length)return se(F(be+1));let Ue=y[de];Bgt(G+Ue,{pathExt:x},(je,Vt)=>{if(!je&&Vt)if(o.all)A.push(G+Ue);else return se(G+Ue);return se(W(G,be,de+1))})}),"subStep");return f?F(0).then(G=>f(null,G),f):F(0)},"which"),mvr=t((s,o)=>{o=o||{};let{pathEnv:f,pathExt:d,pathExtExe:y}=zgt(s,o),x=[];for(let A=0;A<f.length;A++){let F=f[A],W=/^".*"$/.test(F)?F.slice(1,-1):F,G=jgt.join(W,s),be=!W&&/^\.[\\\/]/.test(s)?s.slice(0,2)+G:G;for(let de=0;de<d.length;de++){let se=be+d[de];try{if(Bgt.sync(se,{pathExt:y}))if(o.all)x.push(se);else return se}catch{}}}if(o.all&&x.length)return x;if(o.nothrow)return null;throw Ugt(s)},"whichSync");Jgt.exports=$gt;$gt.sync=mvr});var Vgt=or((tRr,N8e)=>{"use strict";var qgt=t((s={})=>{let o=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(o).reverse().find(d=>d.toUpperCase()==="PATH")||"Path"},"pathKey");N8e.exports=qgt;N8e.exports.default=qgt});var Kgt=or((nRr,Ygt)=>{"use strict";var Hgt=uo("path"),hvr=Wgt(),gvr=Vgt();function Ggt(s,o){let f=s.options.env||process.env,d=process.cwd(),y=s.options.cwd!=null,x=y&&process.chdir!==void 0&&!process.chdir.disabled;if(x)try{process.chdir(s.options.cwd)}catch{}let A;try{A=hvr.sync(s.command,{path:f[gvr({env:f})],pathExt:o?Hgt.delimiter:void 0})}catch{}finally{x&&process.chdir(d)}return A&&(A=Hgt.resolve(y?s.options.cwd:"",A)),A}t(Ggt,"resolveCommandAttempt");function yvr(s){return Ggt(s)||Ggt(s,!0)}t(yvr,"resolveCommand");Ygt.exports=yvr});var Xgt=or((sRr,O8e)=>{"use strict";var I8e=/([()\][%!^"`<>&|;, *?])/g;function vvr(s){return s=s.replace(I8e,"^$1"),s}t(vvr,"escapeCommand");function bvr(s,o){return s=`${s}`,s=s.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),s=s.replace(/(?=(\\+?)?)\1$/,"$1$1"),s=`"${s}"`,s=s.replace(I8e,"^$1"),o&&(s=s.replace(I8e,"^$1")),s}t(bvr,"escapeArgument");O8e.exports.command=vvr;O8e.exports.argument=bvr});var Qgt=or((oRr,Zgt)=>{"use strict";Zgt.exports=/^#!(.*)/});var t0t=or((cRr,e0t)=>{"use strict";var Svr=Qgt();e0t.exports=(s="")=>{let o=s.match(Svr);if(!o)return null;let[f,d]=o[0].replace(/#! ?/,"").split(" "),y=f.split("/").pop();return y==="env"?d:d?`${y} ${d}`:y}});var n0t=or((lRr,r0t)=>{"use strict";var F8e=uo("fs"),Tvr=t0t();function xvr(s){let f=Buffer.alloc(150),d;try{d=F8e.openSync(s,"r"),F8e.readSync(d,f,0,150,0),F8e.closeSync(d)}catch{}return Tvr(f.toString())}t(xvr,"readShebang");r0t.exports=xvr});var o0t=or((fRr,a0t)=>{"use strict";var Evr=uo("path"),i0t=Kgt(),s0t=Xgt(),Cvr=n0t(),kvr=process.platform==="win32",wvr=/\.(?:com|exe)$/i,Dvr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Pvr(s){s.file=i0t(s);let o=s.file&&Cvr(s.file);return o?(s.args.unshift(s.file),s.command=o,i0t(s)):s.file}t(Pvr,"detectShebang");function Avr(s){if(!kvr)return s;let o=Pvr(s),f=!wvr.test(o);if(s.options.forceShell||f){let d=Dvr.test(o);s.command=Evr.normalize(s.command),s.command=s0t.command(s.command),s.args=s.args.map(x=>s0t.argument(x,d));let y=[s.command].concat(s.args).join(" ");s.args=["/d","/s","/c",`"${y}"`],s.command=process.env.comspec||"cmd.exe",s.options.windowsVerbatimArguments=!0}return s}t(Avr,"parseNonShell");function Nvr(s,o,f){o&&!Array.isArray(o)&&(f=o,o=null),o=o?o.slice(0):[],f=Object.assign({},f);let d={command:s,args:o,options:f,file:void 0,original:{command:s,args:o}};return f.shell?d:Avr(d)}t(Nvr,"parse");a0t.exports=Nvr});var u0t=or((pRr,l0t)=>{"use strict";var L8e=process.platform==="win32";function R8e(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}t(R8e,"notFoundError");function Ivr(s,o){if(!L8e)return;let f=s.emit;s.emit=function(d,y){if(d==="exit"){let x=c0t(y,o);if(x)return f.call(s,"error",x)}return f.apply(s,arguments)}}t(Ivr,"hookChildProcess");function c0t(s,o){return L8e&&s===1&&!o.file?R8e(o.original,"spawn"):null}t(c0t,"verifyENOENT");function Ovr(s,o){return L8e&&s===1&&!o.file?R8e(o.original,"spawnSync"):null}t(Ovr,"verifyENOENTSync");l0t.exports={hookChildProcess:Ivr,verifyENOENT:c0t,verifyENOENTSync:Ovr,notFoundError:R8e}});var p0t=or((mRr,kj)=>{"use strict";var f0t=uo("child_process"),M8e=o0t(),j8e=u0t();function _0t(s,o,f){let d=M8e(s,o,f),y=f0t.spawn(d.command,d.args,d.options);return j8e.hookChildProcess(y,d),y}t(_0t,"spawn");function Fvr(s,o,f){let d=M8e(s,o,f),y=f0t.spawnSync(d.command,d.args,d.options);return y.error=y.error||j8e.verifyENOENTSync(y.status,d),y}t(Fvr,"spawnSync");kj.exports=_0t;kj.exports.spawn=_0t;kj.exports.sync=Fvr;kj.exports._parse=M8e;kj.exports._enoent=j8e});var x0t=or((XRr,Ofe)=>{Ofe.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ofe.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ofe.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var D0t=or((ZRr,Pj)=>{var Zp=global.process,d7=t(function(s){return s&&typeof s=="object"&&typeof s.removeListener=="function"&&typeof s.emit=="function"&&typeof s.reallyExit=="function"&&typeof s.listeners=="function"&&typeof s.kill=="function"&&typeof s.pid=="number"&&typeof s.on=="function"},"processOk");d7(Zp)?(E0t=uo("assert"),wj=x0t(),C0t=/^win/i.test(Zp.platform),xG=uo("events"),typeof xG!="function"&&(xG=xG.EventEmitter),Zp.__signal_exit_emitter__?Bg=Zp.__signal_exit_emitter__:(Bg=Zp.__signal_exit_emitter__=new xG,Bg.count=0,Bg.emitted={}),Bg.infinite||(Bg.setMaxListeners(1/0),Bg.infinite=!0),Pj.exports=function(s,o){if(!d7(global.process))return function(){};E0t.equal(typeof s,"function","a callback must be provided for exit handler"),Dj===!1&&W8e();var f="exit";o&&o.alwaysLast&&(f="afterexit");var d=t(function(){Bg.removeListener(f,s),Bg.listeners("exit").length===0&&Bg.listeners("afterexit").length===0&&Ffe()},"remove");return Bg.on(f,s),d},Ffe=t(function(){!Dj||!d7(global.process)||(Dj=!1,wj.forEach(function(o){try{Zp.removeListener(o,Lfe[o])}catch{}}),Zp.emit=Rfe,Zp.reallyExit=q8e,Bg.count-=1)},"unload"),Pj.exports.unload=Ffe,m7=t(function(o,f,d){Bg.emitted[o]||(Bg.emitted[o]=!0,Bg.emit(o,f,d))},"emit"),Lfe={},wj.forEach(function(s){Lfe[s]=t(function(){if(d7(global.process)){var f=Zp.listeners(s);f.length===Bg.count&&(Ffe(),m7("exit",null,s),m7("afterexit",null,s),C0t&&s==="SIGHUP"&&(s="SIGINT"),Zp.kill(Zp.pid,s))}},"listener")}),Pj.exports.signals=function(){return wj},Dj=!1,W8e=t(function(){Dj||!d7(global.process)||(Dj=!0,Bg.count+=1,wj=wj.filter(function(o){try{return Zp.on(o,Lfe[o]),!0}catch{return!1}}),Zp.emit=w0t,Zp.reallyExit=k0t)},"load"),Pj.exports.load=W8e,q8e=Zp.reallyExit,k0t=t(function(o){d7(global.process)&&(Zp.exitCode=o||0,m7("exit",Zp.exitCode,null),m7("afterexit",Zp.exitCode,null),q8e.call(Zp,Zp.exitCode))},"processReallyExit"),Rfe=Zp.emit,w0t=t(function(o,f){if(o==="exit"&&d7(global.process)){f!==void 0&&(Zp.exitCode=f);var d=Rfe.apply(this,arguments);return m7("exit",Zp.exitCode,null),m7("afterexit",Zp.exitCode,null),d}else return Rfe.apply(this,arguments)},"processEmit")):Pj.exports=function(){return function(){}};var E0t,wj,C0t,xG,Bg,Ffe,m7,Lfe,Dj,W8e,q8e,k0t,Rfe,w0t});var M0t=or((s9r,R0t)=>{"use strict";var{PassThrough:lbr}=uo("stream");R0t.exports=s=>{s={...s};let{array:o}=s,{encoding:f}=s,d=f==="buffer",y=!1;o?y=!(f||d):f=f||"utf8",d&&(f=null);let x=new lbr({objectMode:y});f&&x.setEncoding(f);let A=0,F=[];return x.on("data",W=>{F.push(W),y?A=F.length:A+=W.length}),x.getBufferedValue=()=>o?F:d?Buffer.concat(F,A):F.join(""),x.getBufferedLength=()=>A,x}});var j0t=or((a9r,EG)=>{"use strict";var{constants:ubr}=uo("buffer"),fbr=uo("stream"),{promisify:_br}=uo("util"),pbr=M0t(),dbr=_br(fbr.pipeline),Mfe=class extends Error{static{t(this,"MaxBufferError")}constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function V8e(s,o){if(!s)throw new Error("Expected a stream");o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,d=pbr(o);return await new Promise((y,x)=>{let A=t(F=>{F&&d.getBufferedLength()<=ubr.MAX_LENGTH&&(F.bufferedData=d.getBufferedValue()),x(F)},"rejectPromise");(async()=>{try{await dbr(s,d),y()}catch(F){A(F)}})(),d.on("data",()=>{d.getBufferedLength()>f&&A(new Mfe)})}),d.getBufferedValue()}t(V8e,"getStream");EG.exports=V8e;EG.exports.buffer=(s,o)=>V8e(s,{...o,encoding:"buffer"});EG.exports.array=(s,o)=>V8e(s,{...o,array:!0});EG.exports.MaxBufferError=Mfe});var U0t=or((c9r,B0t)=>{"use strict";var{PassThrough:mbr}=uo("stream");B0t.exports=function(){var s=[],o=new mbr({objectMode:!0});return o.setMaxListeners(0),o.add=f,o.isEmpty=d,o.on("unpipe",y),Array.prototype.slice.call(arguments).forEach(f),o;function f(x){return Array.isArray(x)?(x.forEach(f),this):(s.push(x),x.once("end",y.bind(null,x)),x.once("error",o.emit.bind(o,"error")),x.pipe(o,{end:!1}),this)}t(f,"add");function d(){return s.length==0}t(d,"isEmpty");function y(x){s=s.filter(function(A){return A!==x}),!s.length&&o.readable&&o.end()}t(y,"remove")}});var lSt=or(s_e=>{"use strict";Object.defineProperty(s_e,"__esModule",{value:!0});s_e.parse=oxr;s_e.serialize=cxr;var txr=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,rxr=/^[\u0021-\u003A\u003C-\u007E]*$/,nxr=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,ixr=/^[\u0020-\u003A\u003D-\u007E]*$/,sxr=Object.prototype.toString,axr=(()=>{let s=t(function(){},"C");return s.prototype=Object.create(null),s})();function oxr(s,o){let f=new axr,d=s.length;if(d<2)return f;let y=o?.decode||lxr,x=0;do{let A=s.indexOf("=",x);if(A===-1)break;let F=s.indexOf(";",x),W=F===-1?d:F;if(A>W){x=s.lastIndexOf(";",A-1)+1;continue}let G=oSt(s,x,A),be=cSt(s,A,G),de=s.slice(G,be);if(f[de]===void 0){let se=oSt(s,A+1,W),Xe=cSt(s,W,se),Ue=y(s.slice(se,Xe));f[de]=Ue}x=W+1}while(x<d);return f}t(oxr,"parse");function oSt(s,o,f){do{let d=s.charCodeAt(o);if(d!==32&&d!==9)return o}while(++o<f);return f}t(oSt,"startIndex");function cSt(s,o,f){for(;o>f;){let d=s.charCodeAt(--o);if(d!==32&&d!==9)return o+1}return f}t(cSt,"endIndex");function cxr(s,o,f){let d=f?.encode||encodeURIComponent;if(!txr.test(s))throw new TypeError(`argument name is invalid: ${s}`);let y=d(o);if(!rxr.test(y))throw new TypeError(`argument val is invalid: ${o}`);let x=s+"="+y;if(!f)return x;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);x+="; Max-Age="+f.maxAge}if(f.domain){if(!nxr.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);x+="; Domain="+f.domain}if(f.path){if(!ixr.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);x+="; Path="+f.path}if(f.expires){if(!uxr(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);x+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(x+="; HttpOnly"),f.secure&&(x+="; Secure"),f.partitioned&&(x+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":x+="; Priority=Low";break;case"medium":x+="; Priority=Medium";break;case"high":x+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":x+="; SameSite=Strict";break;case"lax":x+="; SameSite=Lax";break;case"none":x+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return x}t(cxr,"serialize");function lxr(s){if(s.indexOf("%")===-1)return s;try{return decodeURIComponent(s)}catch{return s}}t(lxr,"decode");function uxr(s){return sxr.call(s)==="[object Date]"}t(uxr,"isDate")});import{readFileSync as qmr}from"node:fs";import Qle from"node:path";function noe(s,o){return{...o}}t(noe,"getBuildFlags");var LP="Good",pPe="Warnings",M9="Failed",dPe="error",ioe="warning",D1=class extends Error{static{t(this,"BuildIssueError")}issue;pluginName;constructor(o,f){super(o.message),this.issue=o,this.pluginName=f}};var mPe=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2026-03-01":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!0,return501ForUnsupportedHttpMethods:!0}});var j9=Object.freeze(["2023-03-14","2024-01-15","2024-03-14","2024-09-02","2025-02-06","2026-03-01"]);var Htt="x-zuplo",Uxr=`${Htt}-path`,zxr=`${Htt}-route`,B9="x-internal";var{toString:Jxr}=Object.prototype,{propertyIsEnumerable:Wxr}=Object.prototype;function Gtt(s){return typeof s=="string"}t(Gtt,"isString");function Ytt(s){return s===!0||s===!1}t(Ytt,"isBoolean");function soe(s,o=!1){if(Ytt(s))return s;if(Gtt(s)){if(s.toLowerCase()==="true")return!0;if(s.toLowerCase()==="false")return!1;if(o)throw new TypeError(`Attempted to parse string to boolean, but received ${s} which cannot be parsed.`)}if(o)throw new TypeError(`Expected type of boolean, received type '${typeof s}'`);return!1}t(soe,"parseValueToBoolean");var Ktt=t((s=0)=>o=>`\x1B[${o+s}m`,"wrapAnsi16"),Xtt=t((s=0)=>o=>`\x1B[${38+s};5;${o}m`,"wrapAnsi256"),Ztt=t((s=0)=>(o,f,d)=>`\x1B[${38+s};2;${o};${f};${d}m`,"wrapAnsi16m"),Gp={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},hEr=Object.keys(Gp.modifier),RGt=Object.keys(Gp.color),MGt=Object.keys(Gp.bgColor),gEr=[...RGt,...MGt];function jGt(){let s=new Map;for(let[o,f]of Object.entries(Gp)){for(let[d,y]of Object.entries(f))Gp[d]={open:`\x1B[${y[0]}m`,close:`\x1B[${y[1]}m`},f[d]=Gp[d],s.set(y[0],y[1]);Object.defineProperty(Gp,o,{value:f,enumerable:!1})}return Object.defineProperty(Gp,"codes",{value:s,enumerable:!1}),Gp.color.close="\x1B[39m",Gp.bgColor.close="\x1B[49m",Gp.color.ansi=Ktt(),Gp.color.ansi256=Xtt(),Gp.color.ansi16m=Ztt(),Gp.bgColor.ansi=Ktt(10),Gp.bgColor.ansi256=Xtt(10),Gp.bgColor.ansi16m=Ztt(10),Object.defineProperties(Gp,{rgbToAnsi256:{value(o,f,d){return o===f&&f===d?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(f/255*5)+Math.round(d/255*5)},enumerable:!1},hexToRgb:{value(o){let f=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!f)return[0,0,0];let[d]=f;d.length===3&&(d=[...d].map(x=>x+x).join(""));let y=Number.parseInt(d,16);return[y>>16&255,y>>8&255,y&255]},enumerable:!1},hexToAnsi256:{value:t(o=>Gp.rgbToAnsi256(...Gp.hexToRgb(o)),"value"),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let f,d,y;if(o>=232)f=((o-232)*10+8)/255,d=f,y=f;else{o-=16;let F=o%36;f=Math.floor(o/36)/5,d=Math.floor(F/6)/5,y=F%6/5}let x=Math.max(f,d,y)*2;if(x===0)return 30;let A=30+(Math.round(y)<<2|Math.round(d)<<1|Math.round(f));return x===2&&(A+=60),A},enumerable:!1},rgbToAnsi:{value:t((o,f,d)=>Gp.ansi256ToAnsi(Gp.rgbToAnsi256(o,f,d)),"value"),enumerable:!1},hexToAnsi:{value:t(o=>Gp.ansi256ToAnsi(Gp.hexToAnsi256(o)),"value"),enumerable:!1}}),Gp}t(jGt,"assembleStyles");var BGt=jGt(),hE=BGt;import hPe from"node:process";import UGt from"node:os";import Qtt from"node:tty";function iT(s,o=globalThis.Deno?globalThis.Deno.args:hPe.argv){let f=s.startsWith("-")?"":s.length===1?"-":"--",d=o.indexOf(f+s),y=o.indexOf("--");return d!==-1&&(y===-1||d<y)}t(iT,"hasFlag");var{env:Xd}=hPe,aoe;iT("no-color")||iT("no-colors")||iT("color=false")||iT("color=never")?aoe=0:(iT("color")||iT("colors")||iT("color=true")||iT("color=always"))&&(aoe=1);function zGt(){if("FORCE_COLOR"in Xd)return Xd.FORCE_COLOR==="true"?1:Xd.FORCE_COLOR==="false"?0:Xd.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Xd.FORCE_COLOR,10),3)}t(zGt,"envForceColor");function $Gt(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}t($Gt,"translateLevel");function JGt(s,{streamIsTTY:o,sniffFlags:f=!0}={}){let d=zGt();d!==void 0&&(aoe=d);let y=f?aoe:d;if(y===0)return 0;if(f){if(iT("color=16m")||iT("color=full")||iT("color=truecolor"))return 3;if(iT("color=256"))return 2}if("TF_BUILD"in Xd&&"AGENT_NAME"in Xd)return 1;if(s&&!o&&y===void 0)return 0;let x=y||0;if(Xd.TERM==="dumb")return x;if(hPe.platform==="win32"){let A=UGt.release().split(".");return Number(A[0])>=10&&Number(A[2])>=10586?Number(A[2])>=14931?3:2:1}if("CI"in Xd)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(A=>A in Xd)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(A=>A in Xd)||Xd.CI_NAME==="codeship"?1:x;if("TEAMCITY_VERSION"in Xd)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Xd.TEAMCITY_VERSION)?1:0;if(Xd.COLORTERM==="truecolor"||Xd.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Xd){let A=Number.parseInt((Xd.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Xd.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Xd.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Xd.TERM)||"COLORTERM"in Xd?1:x}t(JGt,"_supportsColor");function ert(s,o={}){let f=JGt(s,{streamIsTTY:s&&s.isTTY,...o});return $Gt(f)}t(ert,"createSupportsColor");var WGt={stdout:ert({isTTY:Qtt.isatty(1)}),stderr:ert({isTTY:Qtt.isatty(2)})},trt=WGt;function rrt(s,o,f){let d=s.indexOf(o);if(d===-1)return s;let y=o.length,x=0,A="";do A+=s.slice(x,d)+o+f,x=d+y,d=s.indexOf(o,x);while(d!==-1);return A+=s.slice(x),A}t(rrt,"stringReplaceAll");function nrt(s,o,f,d){let y=0,x="";do{let A=s[d-1]==="\r";x+=s.slice(y,A?d-1:d)+o+(A?`\r
|
|
561
|
+
`),x=x.replace(/\\r/g,"\r")),o[y]=x}return o}t(evr,"parse");function tvr(s){let o=Cgt(s),f=Oh.configDotenv({path:o});if(!f.parsed){let A=new Error(`MISSING_DATA: Cannot parse ${o} for an unknown reason`);throw A.code="MISSING_DATA",A}let d=Egt(s).split(","),y=d.length,x;for(let A=0;A<y;A++)try{let F=d[A].trim(),W=nvr(f,F);x=Oh.decrypt(W.ciphertext,W.key);break}catch(F){if(A+1>=y)throw F}return Oh.parse(x)}t(tvr,"_parseVault");function rvr(s){console.log(`[dotenv@${xgt}][WARN] ${s}`)}t(rvr,"_warn");function SG(s){console.log(`[dotenv@${xgt}][DEBUG] ${s}`)}t(SG,"_debug");function Egt(s){return s&&s.DOTENV_KEY&&s.DOTENV_KEY.length>0?s.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}t(Egt,"_dotenvKey");function nvr(s,o){let f;try{f=new URL(o)}catch(F){if(F.code==="ERR_INVALID_URL"){let W=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw W.code="INVALID_DOTENV_KEY",W}throw F}let d=f.password;if(!d){let F=new Error("INVALID_DOTENV_KEY: Missing key part");throw F.code="INVALID_DOTENV_KEY",F}let y=f.searchParams.get("environment");if(!y){let F=new Error("INVALID_DOTENV_KEY: Missing environment part");throw F.code="INVALID_DOTENV_KEY",F}let x=`DOTENV_VAULT_${y.toUpperCase()}`,A=s.parsed[x];if(!A){let F=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${x} in your .env.vault file.`);throw F.code="NOT_FOUND_DOTENV_ENVIRONMENT",F}return{ciphertext:A,key:d}}t(nvr,"_instructions");function Cgt(s){let o=null;if(s&&s.path&&s.path.length>0)if(Array.isArray(s.path))for(let f of s.path)w8e.existsSync(f)&&(o=f.endsWith(".vault")?f:`${f}.vault`);else o=s.path.endsWith(".vault")?s.path:`${s.path}.vault`;else o=D8e.resolve(process.cwd(),".env.vault");return w8e.existsSync(o)?o:null}t(Cgt,"_vaultPath");function Tgt(s){return s[0]==="~"?D8e.join(K1r.homedir(),s.slice(1)):s}t(Tgt,"_resolveHome");function ivr(s){s&&s.debug&&SG("Loading env from encrypted .env.vault");let f=Oh._parseVault(s),d=process.env;return s&&s.processEnv!=null&&(d=s.processEnv),Oh.populate(d,f,s),{parsed:f}}t(ivr,"_configVault");function svr(s){let o=D8e.resolve(process.cwd(),".env"),f="utf8",d=!!(s&&s.debug);s&&s.encoding?f=s.encoding:d&&SG("No encoding is specified. UTF-8 is used by default");let y=[o];if(s&&s.path)if(!Array.isArray(s.path))y=[Tgt(s.path)];else{y=[];for(let W of s.path)y.push(Tgt(W))}let x,A={};for(let W of y)try{let G=Oh.parse(w8e.readFileSync(W,{encoding:f}));Oh.populate(A,G,s)}catch(G){d&&SG(`Failed to load ${W} ${G.message}`),x=G}let F=process.env;return s&&s.processEnv!=null&&(F=s.processEnv),Oh.populate(F,A,s),x?{parsed:A,error:x}:{parsed:A}}t(svr,"configDotenv");function avr(s){if(Egt(s).length===0)return Oh.configDotenv(s);let o=Cgt(s);return o?Oh._configVault(s):(rvr(`You set DOTENV_KEY but you are missing a .env.vault file at ${o}. Did you forget to build it?`),Oh.configDotenv(s))}t(avr,"config");function ovr(s,o){let f=Buffer.from(o.slice(-64),"hex"),d=Buffer.from(s,"base64"),y=d.subarray(0,12),x=d.subarray(-16);d=d.subarray(12,-16);try{let A=X1r.createDecipheriv("aes-256-gcm",f,y);return A.setAuthTag(x),`${A.update(d)}${A.final()}`}catch(A){let F=A instanceof RangeError,W=A.message==="Invalid key length",G=A.message==="Unsupported state or unable to authenticate data";if(F||W){let be=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw be.code="INVALID_DOTENV_KEY",be}else if(G){let be=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw be.code="DECRYPTION_FAILED",be}else throw A}}t(ovr,"decrypt");function cvr(s,o,f={}){let d=!!(f&&f.debug),y=!!(f&&f.override);if(typeof o!="object"){let x=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw x.code="OBJECT_REQUIRED",x}for(let x of Object.keys(o))Object.prototype.hasOwnProperty.call(s,x)?(y===!0&&(s[x]=o[x]),d&&SG(y===!0?`"${x}" is already defined and WAS overwritten`:`"${x}" is already defined and was NOT overwritten`)):s[x]=o[x]}t(cvr,"populate");var Oh={configDotenv:svr,_configVault:ivr,_parseVault:tvr,config:avr,decrypt:ovr,parse:evr,populate:cvr};oA.exports.configDotenv=Oh.configDotenv;oA.exports._configVault=Oh._configVault;oA.exports._parseVault=Oh._parseVault;oA.exports.config=Oh.config;oA.exports.decrypt=Oh.decrypt;oA.exports.parse=Oh.parse;oA.exports.populate=Oh.populate;oA.exports=Oh});var Agt=or((HLr,Pgt)=>{Pgt.exports=Dgt;Dgt.sync=uvr;var kgt=uo("fs");function lvr(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var d=0;d<f.length;d++){var y=f[d].toLowerCase();if(y&&s.substr(-y.length).toLowerCase()===y)return!0}return!1}t(lvr,"checkPathExt");function wgt(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:lvr(o,f)}t(wgt,"checkStat");function Dgt(s,o,f){kgt.stat(s,function(d,y){f(d,d?!1:wgt(y,s,o))})}t(Dgt,"isexe");function uvr(s,o){return wgt(kgt.statSync(s),s,o)}t(uvr,"sync")});var Lgt=or((YLr,Fgt)=>{Fgt.exports=Igt;Igt.sync=fvr;var Ngt=uo("fs");function Igt(s,o,f){Ngt.stat(s,function(d,y){f(d,d?!1:Ogt(y,o))})}t(Igt,"isexe");function fvr(s,o){return Ogt(Ngt.statSync(s),o)}t(fvr,"sync");function Ogt(s,o){return s.isFile()&&_vr(s,o)}t(Ogt,"checkStat");function _vr(s,o){var f=s.mode,d=s.uid,y=s.gid,x=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),A=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),F=parseInt("100",8),W=parseInt("010",8),G=parseInt("001",8),be=F|W,de=f&G||f&W&&y===A||f&F&&d===x||f&be&&x===0;return de}t(_vr,"checkMode")});var Mgt=or((ZLr,Rgt)=>{var XLr=uo("fs"),Dfe;process.platform==="win32"||global.TESTING_WINDOWS?Dfe=Agt():Dfe=Lgt();Rgt.exports=A8e;A8e.sync=pvr;function A8e(s,o,f){if(typeof o=="function"&&(f=o,o={}),!f){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(d,y){A8e(s,o||{},function(x,A){x?y(x):d(A)})})}Dfe(s,o||{},function(d,y){d&&(d.code==="EACCES"||o&&o.ignoreErrors)&&(d=null,y=!1),f(d,y)})}t(A8e,"isexe");function pvr(s,o){try{return Dfe.sync(s,o||{})}catch(f){if(o&&o.ignoreErrors||f.code==="EACCES")return!1;throw f}}t(pvr,"sync")});var Wgt=or((eRr,Jgt)=>{var Cj=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",jgt=uo("path"),dvr=Cj?";":":",Bgt=Mgt(),Ugt=t(s=>Object.assign(new Error(`not found: ${s}`),{code:"ENOENT"}),"getNotFoundError"),zgt=t((s,o)=>{let f=o.colon||dvr,d=s.match(/\//)||Cj&&s.match(/\\/)?[""]:[...Cj?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(f)],y=Cj?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",x=Cj?y.split(f):[""];return Cj&&s.indexOf(".")!==-1&&x[0]!==""&&x.unshift(""),{pathEnv:d,pathExt:x,pathExtExe:y}},"getPathInfo"),$gt=t((s,o,f)=>{typeof o=="function"&&(f=o,o={}),o||(o={});let{pathEnv:d,pathExt:y,pathExtExe:x}=zgt(s,o),A=[],F=t(G=>new Promise((be,de)=>{if(G===d.length)return o.all&&A.length?be(A):de(Ugt(s));let se=d[G],Xe=/^".*"$/.test(se)?se.slice(1,-1):se,Ue=jgt.join(Xe,s),je=!Xe&&/^\.[\\\/]/.test(s)?s.slice(0,2)+Ue:Ue;be(W(je,G,0))}),"step"),W=t((G,be,de)=>new Promise((se,Xe)=>{if(de===y.length)return se(F(be+1));let Ue=y[de];Bgt(G+Ue,{pathExt:x},(je,Vt)=>{if(!je&&Vt)if(o.all)A.push(G+Ue);else return se(G+Ue);return se(W(G,be,de+1))})}),"subStep");return f?F(0).then(G=>f(null,G),f):F(0)},"which"),mvr=t((s,o)=>{o=o||{};let{pathEnv:f,pathExt:d,pathExtExe:y}=zgt(s,o),x=[];for(let A=0;A<f.length;A++){let F=f[A],W=/^".*"$/.test(F)?F.slice(1,-1):F,G=jgt.join(W,s),be=!W&&/^\.[\\\/]/.test(s)?s.slice(0,2)+G:G;for(let de=0;de<d.length;de++){let se=be+d[de];try{if(Bgt.sync(se,{pathExt:y}))if(o.all)x.push(se);else return se}catch{}}}if(o.all&&x.length)return x;if(o.nothrow)return null;throw Ugt(s)},"whichSync");Jgt.exports=$gt;$gt.sync=mvr});var Vgt=or((rRr,N8e)=>{"use strict";var qgt=t((s={})=>{let o=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(o).reverse().find(d=>d.toUpperCase()==="PATH")||"Path"},"pathKey");N8e.exports=qgt;N8e.exports.default=qgt});var Kgt=or((iRr,Ygt)=>{"use strict";var Hgt=uo("path"),hvr=Wgt(),gvr=Vgt();function Ggt(s,o){let f=s.options.env||process.env,d=process.cwd(),y=s.options.cwd!=null,x=y&&process.chdir!==void 0&&!process.chdir.disabled;if(x)try{process.chdir(s.options.cwd)}catch{}let A;try{A=hvr.sync(s.command,{path:f[gvr({env:f})],pathExt:o?Hgt.delimiter:void 0})}catch{}finally{x&&process.chdir(d)}return A&&(A=Hgt.resolve(y?s.options.cwd:"",A)),A}t(Ggt,"resolveCommandAttempt");function yvr(s){return Ggt(s)||Ggt(s,!0)}t(yvr,"resolveCommand");Ygt.exports=yvr});var Xgt=or((aRr,O8e)=>{"use strict";var I8e=/([()\][%!^"`<>&|;, *?])/g;function vvr(s){return s=s.replace(I8e,"^$1"),s}t(vvr,"escapeCommand");function bvr(s,o){return s=`${s}`,s=s.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),s=s.replace(/(?=(\\+?)?)\1$/,"$1$1"),s=`"${s}"`,s=s.replace(I8e,"^$1"),o&&(s=s.replace(I8e,"^$1")),s}t(bvr,"escapeArgument");O8e.exports.command=vvr;O8e.exports.argument=bvr});var Qgt=or((cRr,Zgt)=>{"use strict";Zgt.exports=/^#!(.*)/});var t0t=or((lRr,e0t)=>{"use strict";var Svr=Qgt();e0t.exports=(s="")=>{let o=s.match(Svr);if(!o)return null;let[f,d]=o[0].replace(/#! ?/,"").split(" "),y=f.split("/").pop();return y==="env"?d:d?`${y} ${d}`:y}});var n0t=or((uRr,r0t)=>{"use strict";var F8e=uo("fs"),Tvr=t0t();function xvr(s){let f=Buffer.alloc(150),d;try{d=F8e.openSync(s,"r"),F8e.readSync(d,f,0,150,0),F8e.closeSync(d)}catch{}return Tvr(f.toString())}t(xvr,"readShebang");r0t.exports=xvr});var o0t=or((_Rr,a0t)=>{"use strict";var Evr=uo("path"),i0t=Kgt(),s0t=Xgt(),Cvr=n0t(),kvr=process.platform==="win32",wvr=/\.(?:com|exe)$/i,Dvr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Pvr(s){s.file=i0t(s);let o=s.file&&Cvr(s.file);return o?(s.args.unshift(s.file),s.command=o,i0t(s)):s.file}t(Pvr,"detectShebang");function Avr(s){if(!kvr)return s;let o=Pvr(s),f=!wvr.test(o);if(s.options.forceShell||f){let d=Dvr.test(o);s.command=Evr.normalize(s.command),s.command=s0t.command(s.command),s.args=s.args.map(x=>s0t.argument(x,d));let y=[s.command].concat(s.args).join(" ");s.args=["/d","/s","/c",`"${y}"`],s.command=process.env.comspec||"cmd.exe",s.options.windowsVerbatimArguments=!0}return s}t(Avr,"parseNonShell");function Nvr(s,o,f){o&&!Array.isArray(o)&&(f=o,o=null),o=o?o.slice(0):[],f=Object.assign({},f);let d={command:s,args:o,options:f,file:void 0,original:{command:s,args:o}};return f.shell?d:Avr(d)}t(Nvr,"parse");a0t.exports=Nvr});var u0t=or((dRr,l0t)=>{"use strict";var L8e=process.platform==="win32";function R8e(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}t(R8e,"notFoundError");function Ivr(s,o){if(!L8e)return;let f=s.emit;s.emit=function(d,y){if(d==="exit"){let x=c0t(y,o);if(x)return f.call(s,"error",x)}return f.apply(s,arguments)}}t(Ivr,"hookChildProcess");function c0t(s,o){return L8e&&s===1&&!o.file?R8e(o.original,"spawn"):null}t(c0t,"verifyENOENT");function Ovr(s,o){return L8e&&s===1&&!o.file?R8e(o.original,"spawnSync"):null}t(Ovr,"verifyENOENTSync");l0t.exports={hookChildProcess:Ivr,verifyENOENT:c0t,verifyENOENTSync:Ovr,notFoundError:R8e}});var p0t=or((hRr,kj)=>{"use strict";var f0t=uo("child_process"),M8e=o0t(),j8e=u0t();function _0t(s,o,f){let d=M8e(s,o,f),y=f0t.spawn(d.command,d.args,d.options);return j8e.hookChildProcess(y,d),y}t(_0t,"spawn");function Fvr(s,o,f){let d=M8e(s,o,f),y=f0t.spawnSync(d.command,d.args,d.options);return y.error=y.error||j8e.verifyENOENTSync(y.status,d),y}t(Fvr,"spawnSync");kj.exports=_0t;kj.exports.spawn=_0t;kj.exports.sync=Fvr;kj.exports._parse=M8e;kj.exports._enoent=j8e});var x0t=or((ZRr,Ofe)=>{Ofe.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ofe.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ofe.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var D0t=or((QRr,Pj)=>{var Zp=global.process,d7=t(function(s){return s&&typeof s=="object"&&typeof s.removeListener=="function"&&typeof s.emit=="function"&&typeof s.reallyExit=="function"&&typeof s.listeners=="function"&&typeof s.kill=="function"&&typeof s.pid=="number"&&typeof s.on=="function"},"processOk");d7(Zp)?(E0t=uo("assert"),wj=x0t(),C0t=/^win/i.test(Zp.platform),xG=uo("events"),typeof xG!="function"&&(xG=xG.EventEmitter),Zp.__signal_exit_emitter__?Bg=Zp.__signal_exit_emitter__:(Bg=Zp.__signal_exit_emitter__=new xG,Bg.count=0,Bg.emitted={}),Bg.infinite||(Bg.setMaxListeners(1/0),Bg.infinite=!0),Pj.exports=function(s,o){if(!d7(global.process))return function(){};E0t.equal(typeof s,"function","a callback must be provided for exit handler"),Dj===!1&&W8e();var f="exit";o&&o.alwaysLast&&(f="afterexit");var d=t(function(){Bg.removeListener(f,s),Bg.listeners("exit").length===0&&Bg.listeners("afterexit").length===0&&Ffe()},"remove");return Bg.on(f,s),d},Ffe=t(function(){!Dj||!d7(global.process)||(Dj=!1,wj.forEach(function(o){try{Zp.removeListener(o,Lfe[o])}catch{}}),Zp.emit=Rfe,Zp.reallyExit=q8e,Bg.count-=1)},"unload"),Pj.exports.unload=Ffe,m7=t(function(o,f,d){Bg.emitted[o]||(Bg.emitted[o]=!0,Bg.emit(o,f,d))},"emit"),Lfe={},wj.forEach(function(s){Lfe[s]=t(function(){if(d7(global.process)){var f=Zp.listeners(s);f.length===Bg.count&&(Ffe(),m7("exit",null,s),m7("afterexit",null,s),C0t&&s==="SIGHUP"&&(s="SIGINT"),Zp.kill(Zp.pid,s))}},"listener")}),Pj.exports.signals=function(){return wj},Dj=!1,W8e=t(function(){Dj||!d7(global.process)||(Dj=!0,Bg.count+=1,wj=wj.filter(function(o){try{return Zp.on(o,Lfe[o]),!0}catch{return!1}}),Zp.emit=w0t,Zp.reallyExit=k0t)},"load"),Pj.exports.load=W8e,q8e=Zp.reallyExit,k0t=t(function(o){d7(global.process)&&(Zp.exitCode=o||0,m7("exit",Zp.exitCode,null),m7("afterexit",Zp.exitCode,null),q8e.call(Zp,Zp.exitCode))},"processReallyExit"),Rfe=Zp.emit,w0t=t(function(o,f){if(o==="exit"&&d7(global.process)){f!==void 0&&(Zp.exitCode=f);var d=Rfe.apply(this,arguments);return m7("exit",Zp.exitCode,null),m7("afterexit",Zp.exitCode,null),d}else return Rfe.apply(this,arguments)},"processEmit")):Pj.exports=function(){return function(){}};var E0t,wj,C0t,xG,Bg,Ffe,m7,Lfe,Dj,W8e,q8e,k0t,Rfe,w0t});var M0t=or((a9r,R0t)=>{"use strict";var{PassThrough:lbr}=uo("stream");R0t.exports=s=>{s={...s};let{array:o}=s,{encoding:f}=s,d=f==="buffer",y=!1;o?y=!(f||d):f=f||"utf8",d&&(f=null);let x=new lbr({objectMode:y});f&&x.setEncoding(f);let A=0,F=[];return x.on("data",W=>{F.push(W),y?A=F.length:A+=W.length}),x.getBufferedValue=()=>o?F:d?Buffer.concat(F,A):F.join(""),x.getBufferedLength=()=>A,x}});var j0t=or((o9r,EG)=>{"use strict";var{constants:ubr}=uo("buffer"),fbr=uo("stream"),{promisify:_br}=uo("util"),pbr=M0t(),dbr=_br(fbr.pipeline),Mfe=class extends Error{static{t(this,"MaxBufferError")}constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function V8e(s,o){if(!s)throw new Error("Expected a stream");o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,d=pbr(o);return await new Promise((y,x)=>{let A=t(F=>{F&&d.getBufferedLength()<=ubr.MAX_LENGTH&&(F.bufferedData=d.getBufferedValue()),x(F)},"rejectPromise");(async()=>{try{await dbr(s,d),y()}catch(F){A(F)}})(),d.on("data",()=>{d.getBufferedLength()>f&&A(new Mfe)})}),d.getBufferedValue()}t(V8e,"getStream");EG.exports=V8e;EG.exports.buffer=(s,o)=>V8e(s,{...o,encoding:"buffer"});EG.exports.array=(s,o)=>V8e(s,{...o,array:!0});EG.exports.MaxBufferError=Mfe});var U0t=or((l9r,B0t)=>{"use strict";var{PassThrough:mbr}=uo("stream");B0t.exports=function(){var s=[],o=new mbr({objectMode:!0});return o.setMaxListeners(0),o.add=f,o.isEmpty=d,o.on("unpipe",y),Array.prototype.slice.call(arguments).forEach(f),o;function f(x){return Array.isArray(x)?(x.forEach(f),this):(s.push(x),x.once("end",y.bind(null,x)),x.once("error",o.emit.bind(o,"error")),x.pipe(o,{end:!1}),this)}t(f,"add");function d(){return s.length==0}t(d,"isEmpty");function y(x){s=s.filter(function(A){return A!==x}),!s.length&&o.readable&&o.end()}t(y,"remove")}});var lSt=or(s_e=>{"use strict";Object.defineProperty(s_e,"__esModule",{value:!0});s_e.parse=oxr;s_e.serialize=cxr;var txr=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,rxr=/^[\u0021-\u003A\u003C-\u007E]*$/,nxr=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,ixr=/^[\u0020-\u003A\u003D-\u007E]*$/,sxr=Object.prototype.toString,axr=(()=>{let s=t(function(){},"C");return s.prototype=Object.create(null),s})();function oxr(s,o){let f=new axr,d=s.length;if(d<2)return f;let y=o?.decode||lxr,x=0;do{let A=s.indexOf("=",x);if(A===-1)break;let F=s.indexOf(";",x),W=F===-1?d:F;if(A>W){x=s.lastIndexOf(";",A-1)+1;continue}let G=oSt(s,x,A),be=cSt(s,A,G),de=s.slice(G,be);if(f[de]===void 0){let se=oSt(s,A+1,W),Xe=cSt(s,W,se),Ue=y(s.slice(se,Xe));f[de]=Ue}x=W+1}while(x<d);return f}t(oxr,"parse");function oSt(s,o,f){do{let d=s.charCodeAt(o);if(d!==32&&d!==9)return o}while(++o<f);return f}t(oSt,"startIndex");function cSt(s,o,f){for(;o>f;){let d=s.charCodeAt(--o);if(d!==32&&d!==9)return o+1}return f}t(cSt,"endIndex");function cxr(s,o,f){let d=f?.encode||encodeURIComponent;if(!txr.test(s))throw new TypeError(`argument name is invalid: ${s}`);let y=d(o);if(!rxr.test(y))throw new TypeError(`argument val is invalid: ${o}`);let x=s+"="+y;if(!f)return x;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);x+="; Max-Age="+f.maxAge}if(f.domain){if(!nxr.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);x+="; Domain="+f.domain}if(f.path){if(!ixr.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);x+="; Path="+f.path}if(f.expires){if(!uxr(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);x+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(x+="; HttpOnly"),f.secure&&(x+="; Secure"),f.partitioned&&(x+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":x+="; Priority=Low";break;case"medium":x+="; Priority=Medium";break;case"high":x+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":x+="; SameSite=Strict";break;case"lax":x+="; SameSite=Lax";break;case"none":x+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return x}t(cxr,"serialize");function lxr(s){if(s.indexOf("%")===-1)return s;try{return decodeURIComponent(s)}catch{return s}}t(lxr,"decode");function uxr(s){return sxr.call(s)==="[object Date]"}t(uxr,"isDate")});import{readFileSync as qmr}from"node:fs";import Qle from"node:path";function noe(s,o){return{...o}}t(noe,"getBuildFlags");var LP="Good",pPe="Warnings",M9="Failed",dPe="error",ioe="warning",D1=class extends Error{static{t(this,"BuildIssueError")}issue;pluginName;constructor(o,f){super(o.message),this.issue=o,this.pluginName=f}};var mPe=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2026-03-01":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!0,return501ForUnsupportedHttpMethods:!0}});var j9=Object.freeze(["2023-03-14","2024-01-15","2024-03-14","2024-09-02","2025-02-06","2026-03-01"]);var Htt="x-zuplo",Uxr=`${Htt}-path`,zxr=`${Htt}-route`,B9="x-internal";var{toString:Jxr}=Object.prototype,{propertyIsEnumerable:Wxr}=Object.prototype;function Gtt(s){return typeof s=="string"}t(Gtt,"isString");function Ytt(s){return s===!0||s===!1}t(Ytt,"isBoolean");function soe(s,o=!1){if(Ytt(s))return s;if(Gtt(s)){if(s.toLowerCase()==="true")return!0;if(s.toLowerCase()==="false")return!1;if(o)throw new TypeError(`Attempted to parse string to boolean, but received ${s} which cannot be parsed.`)}if(o)throw new TypeError(`Expected type of boolean, received type '${typeof s}'`);return!1}t(soe,"parseValueToBoolean");var Ktt=t((s=0)=>o=>`\x1B[${o+s}m`,"wrapAnsi16"),Xtt=t((s=0)=>o=>`\x1B[${38+s};5;${o}m`,"wrapAnsi256"),Ztt=t((s=0)=>(o,f,d)=>`\x1B[${38+s};2;${o};${f};${d}m`,"wrapAnsi16m"),Gp={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},gEr=Object.keys(Gp.modifier),RGt=Object.keys(Gp.color),MGt=Object.keys(Gp.bgColor),yEr=[...RGt,...MGt];function jGt(){let s=new Map;for(let[o,f]of Object.entries(Gp)){for(let[d,y]of Object.entries(f))Gp[d]={open:`\x1B[${y[0]}m`,close:`\x1B[${y[1]}m`},f[d]=Gp[d],s.set(y[0],y[1]);Object.defineProperty(Gp,o,{value:f,enumerable:!1})}return Object.defineProperty(Gp,"codes",{value:s,enumerable:!1}),Gp.color.close="\x1B[39m",Gp.bgColor.close="\x1B[49m",Gp.color.ansi=Ktt(),Gp.color.ansi256=Xtt(),Gp.color.ansi16m=Ztt(),Gp.bgColor.ansi=Ktt(10),Gp.bgColor.ansi256=Xtt(10),Gp.bgColor.ansi16m=Ztt(10),Object.defineProperties(Gp,{rgbToAnsi256:{value(o,f,d){return o===f&&f===d?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(f/255*5)+Math.round(d/255*5)},enumerable:!1},hexToRgb:{value(o){let f=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!f)return[0,0,0];let[d]=f;d.length===3&&(d=[...d].map(x=>x+x).join(""));let y=Number.parseInt(d,16);return[y>>16&255,y>>8&255,y&255]},enumerable:!1},hexToAnsi256:{value:t(o=>Gp.rgbToAnsi256(...Gp.hexToRgb(o)),"value"),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let f,d,y;if(o>=232)f=((o-232)*10+8)/255,d=f,y=f;else{o-=16;let F=o%36;f=Math.floor(o/36)/5,d=Math.floor(F/6)/5,y=F%6/5}let x=Math.max(f,d,y)*2;if(x===0)return 30;let A=30+(Math.round(y)<<2|Math.round(d)<<1|Math.round(f));return x===2&&(A+=60),A},enumerable:!1},rgbToAnsi:{value:t((o,f,d)=>Gp.ansi256ToAnsi(Gp.rgbToAnsi256(o,f,d)),"value"),enumerable:!1},hexToAnsi:{value:t(o=>Gp.ansi256ToAnsi(Gp.hexToAnsi256(o)),"value"),enumerable:!1}}),Gp}t(jGt,"assembleStyles");var BGt=jGt(),hE=BGt;import hPe from"node:process";import UGt from"node:os";import Qtt from"node:tty";function iT(s,o=globalThis.Deno?globalThis.Deno.args:hPe.argv){let f=s.startsWith("-")?"":s.length===1?"-":"--",d=o.indexOf(f+s),y=o.indexOf("--");return d!==-1&&(y===-1||d<y)}t(iT,"hasFlag");var{env:Xd}=hPe,aoe;iT("no-color")||iT("no-colors")||iT("color=false")||iT("color=never")?aoe=0:(iT("color")||iT("colors")||iT("color=true")||iT("color=always"))&&(aoe=1);function zGt(){if("FORCE_COLOR"in Xd)return Xd.FORCE_COLOR==="true"?1:Xd.FORCE_COLOR==="false"?0:Xd.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Xd.FORCE_COLOR,10),3)}t(zGt,"envForceColor");function $Gt(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}t($Gt,"translateLevel");function JGt(s,{streamIsTTY:o,sniffFlags:f=!0}={}){let d=zGt();d!==void 0&&(aoe=d);let y=f?aoe:d;if(y===0)return 0;if(f){if(iT("color=16m")||iT("color=full")||iT("color=truecolor"))return 3;if(iT("color=256"))return 2}if("TF_BUILD"in Xd&&"AGENT_NAME"in Xd)return 1;if(s&&!o&&y===void 0)return 0;let x=y||0;if(Xd.TERM==="dumb")return x;if(hPe.platform==="win32"){let A=UGt.release().split(".");return Number(A[0])>=10&&Number(A[2])>=10586?Number(A[2])>=14931?3:2:1}if("CI"in Xd)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(A=>A in Xd)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(A=>A in Xd)||Xd.CI_NAME==="codeship"?1:x;if("TEAMCITY_VERSION"in Xd)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Xd.TEAMCITY_VERSION)?1:0;if(Xd.COLORTERM==="truecolor"||Xd.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in Xd){let A=Number.parseInt((Xd.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Xd.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Xd.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Xd.TERM)||"COLORTERM"in Xd?1:x}t(JGt,"_supportsColor");function ert(s,o={}){let f=JGt(s,{streamIsTTY:s&&s.isTTY,...o});return $Gt(f)}t(ert,"createSupportsColor");var WGt={stdout:ert({isTTY:Qtt.isatty(1)}),stderr:ert({isTTY:Qtt.isatty(2)})},trt=WGt;function rrt(s,o,f){let d=s.indexOf(o);if(d===-1)return s;let y=o.length,x=0,A="";do A+=s.slice(x,d)+o+f,x=d+y,d=s.indexOf(o,x);while(d!==-1);return A+=s.slice(x),A}t(rrt,"stringReplaceAll");function nrt(s,o,f,d){let y=0,x="";do{let A=s[d-1]==="\r";x+=s.slice(y,A?d-1:d)+o+(A?`\r
|
|
562
562
|
`:`
|
|
563
563
|
`)+f,y=d+1,d=s.indexOf(`
|
|
564
564
|
`,y)}while(d!==-1);return x+=s.slice(y),x}t(nrt,"stringEncaseCRLFWithFirstIndex");var{stdout:irt,stderr:srt}=trt,gPe=Symbol("GENERATOR"),U9=Symbol("STYLER"),lV=Symbol("IS_EMPTY"),art=["ansi","ansi","ansi256","ansi16m"],z9=Object.create(null),qGt=t((s,o={})=>{if(o.level&&!(Number.isInteger(o.level)&&o.level>=0&&o.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let f=irt?irt.level:0;s.level=o.level===void 0?f:o.level},"applyOptions"),ooe=class{static{t(this,"Chalk")}constructor(o){return ort(o)}},ort=t(s=>{let o=t((...f)=>f.join(" "),"chalk");return qGt(o,s),Object.setPrototypeOf(o,uV.prototype),o},"chalkFactory");function uV(s){return ort(s)}t(uV,"createChalk");Object.setPrototypeOf(uV.prototype,Function.prototype);for(let[s,o]of Object.entries(hE))z9[s]={get(){let f=coe(this,vPe(o.open,o.close,this[U9]),this[lV]);return Object.defineProperty(this,s,{value:f}),f}};z9.visible={get(){let s=coe(this,this[U9],!0);return Object.defineProperty(this,"visible",{value:s}),s}};var yPe=t((s,o,f,...d)=>s==="rgb"?o==="ansi16m"?hE[f].ansi16m(...d):o==="ansi256"?hE[f].ansi256(hE.rgbToAnsi256(...d)):hE[f].ansi(hE.rgbToAnsi(...d)):s==="hex"?yPe("rgb",o,f,...hE.hexToRgb(...d)):hE[f][s](...d),"getModelAnsi"),VGt=["rgb","hex","ansi256"];for(let s of VGt){z9[s]={get(){let{level:f}=this;return function(...d){let y=vPe(yPe(s,art[f],"color",...d),hE.color.close,this[U9]);return coe(this,y,this[lV])}}};let o="bg"+s[0].toUpperCase()+s.slice(1);z9[o]={get(){let{level:f}=this;return function(...d){let y=vPe(yPe(s,art[f],"bgColor",...d),hE.bgColor.close,this[U9]);return coe(this,y,this[lV])}}}}var HGt=Object.defineProperties(()=>{},{...z9,level:{enumerable:!0,get(){return this[gPe].level},set(s){this[gPe].level=s}}}),vPe=t((s,o,f)=>{let d,y;return f===void 0?(d=s,y=o):(d=f.openAll+s,y=o+f.closeAll),{open:s,close:o,openAll:d,closeAll:y,parent:f}},"createStyler"),coe=t((s,o,f)=>{let d=t((...y)=>GGt(d,y.length===1?""+y[0]:y.join(" ")),"builder");return Object.setPrototypeOf(d,HGt),d[gPe]=s,d[U9]=o,d[lV]=f,d},"createBuilder"),GGt=t((s,o)=>{if(s.level<=0||!o)return s[lV]?"":o;let f=s[U9];if(f===void 0)return o;let{openAll:d,closeAll:y}=f;if(o.includes("\x1B"))for(;f!==void 0;)o=rrt(o,f.close,f.open),f=f.parent;let x=o.indexOf(`
|
|
565
|
-
`);return x!==-1&&(o=nrt(o,y,d,x)),d+o+y},"applyStyle");Object.defineProperties(uV.prototype,z9);var YGt=uV(),AEr=uV({level:srt?srt.level:0});var v_=YGt;var crt="modules";var P1="config",fV="schemas",lrt="assets";var loe="policies.json",urt="dev-portal.json";var frt="zuplo.jsonc",_rt="zuplo.json";var $9="dist",Og=".zuplo",uoe="build.json";var foe="worker.ts";var _pt=Pp(Rrt(),1);import{readFile as rmr}from"node:fs/promises";import nmr from"node:path";import Hle from"node:fs";import Y4e from"node:path";import{fileURLToPath as yKt}from"node:url";import{posix as TKt,win32 as LPe}from"node:path";import{fileURLToPath as xKt}from"node:url";import{lstatSync as EKt,readdir as CKt,readdirSync as kKt,readlinkSync as wKt,realpathSync as DKt}from"fs";import*as PKt from"node:fs";import{lstat as AKt,readdir as NKt,readlink as IKt,realpath as OKt}from"node:fs/promises";import{EventEmitter as jPe}from"node:events";import Snt from"node:stream";import{StringDecoder as FKt}from"node:string_decoder";var snt=t((s,o,f)=>{let d=s instanceof RegExp?Mrt(s,f):s,y=o instanceof RegExp?Mrt(o,f):o,x=d!==null&&y!=null&&hYt(d,y,f);return x&&{start:x[0],end:x[1],pre:f.slice(0,x[0]),body:f.slice(x[0]+d.length,x[1]),post:f.slice(x[1]+y.length)}},"Gt"),Mrt=t((s,o)=>{let f=o.match(s);return f?f[0]:null},"ce"),hYt=t((s,o,f)=>{let d,y,x,A,F,W=f.indexOf(s),G=f.indexOf(o,W+1),be=W;if(W>=0&&G>0){if(s===o)return[W,G];for(d=[],x=f.length;be>=0&&!F;){if(be===W)d.push(be),W=f.indexOf(s,be+1);else if(d.length===1){let de=d.pop();de!==void 0&&(F=[de,G])}else y=d.pop(),y!==void 0&&y<x&&(x=y,A=G),G=f.indexOf(o,be+1);be=W<G&&W>=0?W:G}d.length&&A!==void 0&&(F=[x,A])}return F},"ss"),ant="\0SLASH"+Math.random()+"\0",ont="\0OPEN"+Math.random()+"\0",RPe="\0CLOSE"+Math.random()+"\0",cnt="\0COMMA"+Math.random()+"\0",lnt="\0PERIOD"+Math.random()+"\0",gYt=new RegExp(ant,"g"),yYt=new RegExp(ont,"g"),vYt=new RegExp(RPe,"g"),bYt=new RegExp(cnt,"g"),SYt=new RegExp(lnt,"g"),TYt=/\\\\/g,xYt=/\\{/g,EYt=/\\}/g,CYt=/\\,/g,kYt=/\\./g,wYt=1e5;function kPe(s){return isNaN(s)?s.charCodeAt(0):parseInt(s,10)}t(kPe,"Ht");function DYt(s){return s.replace(TYt,ant).replace(xYt,ont).replace(EYt,RPe).replace(CYt,cnt).replace(kYt,lnt)}t(DYt,"ps");function PYt(s){return s.replace(gYt,"\\").replace(yYt,"{").replace(vYt,"}").replace(bYt,",").replace(SYt,".")}t(PYt,"ms");function unt(s){if(!s)return[""];let o=[],f=snt("{","}",s);if(!f)return s.split(",");let{pre:d,body:y,post:x}=f,A=d.split(",");A[A.length-1]+="{"+y+"}";let F=unt(x);return x.length&&(A[A.length-1]+=F.shift(),A.push.apply(A,F)),o.push.apply(o,A),o}t(unt,"me");function AYt(s,o={}){if(!s)return[];let{max:f=wYt}=o;return s.slice(0,2)==="{}"&&(s="\\{\\}"+s.slice(2)),SV(DYt(s),f,!0).map(PYt)}t(AYt,"ge");function NYt(s){return"{"+s+"}"}t(NYt,"gs");function IYt(s){return/^-?0\d/.test(s)}t(IYt,"ws");function OYt(s,o){return s<=o}t(OYt,"ys");function FYt(s,o){return s>=o}t(FYt,"bs");function SV(s,o,f){let d=[],y=snt("{","}",s);if(!y)return[s];let x=y.pre,A=y.post.length?SV(y.post,o,!1):[""];if(/\$$/.test(y.pre))for(let F=0;F<A.length&&F<o;F++){let W=x+"{"+y.body+"}"+A[F];d.push(W)}else{let F=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),G=F||W,be=y.body.indexOf(",")>=0;if(!G&&!be)return y.post.match(/,(?!,).*\}/)?(s=y.pre+"{"+y.body+RPe+y.post,SV(s,o,!0)):[s];let de;if(G)de=y.body.split(/\.\./);else if(de=unt(y.body),de.length===1&&de[0]!==void 0&&(de=SV(de[0],o,!1).map(NYt),de.length===1))return A.map(Xe=>y.pre+de[0]+Xe);let se;if(G&&de[0]!==void 0&&de[1]!==void 0){let Xe=kPe(de[0]),Ue=kPe(de[1]),je=Math.max(de[0].length,de[1].length),Vt=de.length===3&&de[2]!==void 0?Math.abs(kPe(de[2])):1,Ut=OYt;Ue<Xe&&(Vt*=-1,Ut=FYt);let Ir=de.some(IYt);se=[];for(let wn=Xe;Ut(wn,Ue);wn+=Vt){let sn;if(W)sn=String.fromCharCode(wn),sn==="\\"&&(sn="");else if(sn=String(wn),Ir){let Jn=je-sn.length;if(Jn>0){let kr=new Array(Jn+1).join("0");wn<0?sn="-"+kr+sn.slice(1):sn=kr+sn}}se.push(sn)}}else{se=[];for(let Xe=0;Xe<de.length;Xe++)se.push.apply(se,SV(de[Xe],o,!1))}for(let Xe=0;Xe<se.length;Xe++)for(let Ue=0;Ue<A.length&&d.length<o;Ue++){let je=x+se[Xe]+A[Ue];(!f||G||je)&&d.push(je)}}return d}t(SV,"ht");var Coe=t(s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>65536)throw new TypeError("pattern is too long")},"at"),LYt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},mV=t(s=>s.replace(/[[\]\\-]/g,"\\$&"),"lt"),RYt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"Es"),jrt=t(s=>s.join(""),"we"),MYt=t((s,o)=>{let f=o;if(s.charAt(f)!=="[")throw new Error("not in a brace expression");let d=[],y=[],x=f+1,A=!1,F=!1,W=!1,G=!1,be=f,de="";e:for(;x<s.length;){let Ue=s.charAt(x);if((Ue==="!"||Ue==="^")&&x===f+1){G=!0,x++;continue}if(Ue==="]"&&A&&!W){be=x+1;break}if(A=!0,Ue==="\\"&&!W){W=!0,x++;continue}if(Ue==="["&&!W){for(let[je,[Vt,Ut,Ir]]of Object.entries(LYt))if(s.startsWith(je,x)){if(de)return["$.",!1,s.length-f,!0];x+=je.length,Ir?y.push(Vt):d.push(Vt),F=F||Ut;continue e}}if(W=!1,de){Ue>de?d.push(mV(de)+"-"+mV(Ue)):Ue===de&&d.push(mV(Ue)),de="",x++;continue}if(s.startsWith("-]",x+1)){d.push(mV(Ue+"-")),x+=2;continue}if(s.startsWith("-",x+1)){de=Ue,x+=2;continue}d.push(mV(Ue)),x++}if(be<x)return["",!1,0,!1];if(!d.length&&!y.length)return["$.",!1,s.length-f,!0];if(y.length===0&&d.length===1&&/^\\?.$/.test(d[0])&&!G){let Ue=d[0].length===2?d[0].slice(-1):d[0];return[RYt(Ue),!1,be-f,!1]}let se="["+(G?"^":"")+jrt(d)+"]",Xe="["+(G?"":"^")+jrt(y)+"]";return[d.length&&y.length?"("+se+"|"+Xe+")":d.length?se:Xe,F,be-f,!0]},"ye"),q9=t((s,{windowsPathsNoEscape:o=!1,magicalBraces:f=!0}={})=>f?o?s.replace(/\[([^\/\\])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):o?s.replace(/\[([^\/\\{}])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),"W"),jYt=new Set(["!","?","+","*","@"]),Brt=t(s=>jYt.has(s),"be"),BYt="(?!(?:^|/)\\.\\.?(?:$|/))",moe="(?!\\.)",UYt=new Set(["[","."]),zYt=new Set(["..","."]),$Yt=new Set("().*{}+?[]^$\\!"),JYt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"ks"),MPe="[^/]",Urt=MPe+"*?",zrt=MPe+"+?",fnt=class kS{static{t(this,"n")}type;#e;#n;#t=!1;#r=[];#s;#m;#c;#u=!1;#f;#p;#a=!1;constructor(o,f,d={}){this.type=o,o&&(this.#n=!0),this.#s=f,this.#e=this.#s?this.#s.#e:this,this.#f=this.#e===this?d:this.#e.#f,this.#c=this.#e===this?[]:this.#e.#c,o==="!"&&!this.#e.#u&&this.#c.push(this),this.#m=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let o of this.#r)if(typeof o!="string"&&(o.type||o.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#p!==void 0?this.#p:this.type?this.#p=this.type+"("+this.#r.map(o=>String(o)).join("|")+")":this.#p=this.#r.map(o=>String(o)).join("")}#i(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let o;for(;o=this.#c.pop();){if(o.type!=="!")continue;let f=o,d=f.#s;for(;d;){for(let y=f.#m+1;!d.type&&y<d.#r.length;y++)for(let x of o.#r){if(typeof x=="string")throw new Error("string part in extglob AST??");x.copyIn(d.#r[y])}f=d,d=f.#s}}return this}push(...o){for(let f of o)if(f!==""){if(typeof f!="string"&&!(f instanceof kS&&f.#s===this))throw new Error("invalid part: "+f);this.#r.push(f)}}toJSON(){let o=this.type===null?this.#r.slice().map(f=>typeof f=="string"?f:f.toJSON()):[this.type,...this.#r.map(f=>f.toJSON())];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#s?.type==="!")&&o.push({}),o}isStart(){if(this.#e===this)return!0;if(!this.#s?.isStart())return!1;if(this.#m===0)return!0;let o=this.#s;for(let f=0;f<this.#m;f++){let d=o.#r[f];if(!(d instanceof kS&&d.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#s?.type==="!")return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();let o=this.#s?this.#s.#r.length:0;return this.#m===o-1}copyIn(o){typeof o=="string"?this.push(o):this.push(o.clone(this))}clone(o){let f=new kS(this.type,o);for(let d of this.#r)f.copyIn(d);return f}static#o(o,f,d,y){let x=!1,A=!1,F=-1,W=!1;if(f.type===null){let Xe=d,Ue="";for(;Xe<o.length;){let je=o.charAt(Xe++);if(x||je==="\\"){x=!x,Ue+=je;continue}if(A){Xe===F+1?(je==="^"||je==="!")&&(W=!0):je==="]"&&!(Xe===F+2&&W)&&(A=!1),Ue+=je;continue}else if(je==="["){A=!0,F=Xe,W=!1,Ue+=je;continue}if(!y.noext&&Brt(je)&&o.charAt(Xe)==="("){f.push(Ue),Ue="";let Vt=new kS(je,f);Xe=kS.#o(o,Vt,Xe,y),f.push(Vt);continue}Ue+=je}return f.push(Ue),Xe}let G=d+1,be=new kS(null,f),de=[],se="";for(;G<o.length;){let Xe=o.charAt(G++);if(x||Xe==="\\"){x=!x,se+=Xe;continue}if(A){G===F+1?(Xe==="^"||Xe==="!")&&(W=!0):Xe==="]"&&!(G===F+2&&W)&&(A=!1),se+=Xe;continue}else if(Xe==="["){A=!0,F=G,W=!1,se+=Xe;continue}if(Brt(Xe)&&o.charAt(G)==="("){be.push(se),se="";let Ue=new kS(Xe,be);be.push(Ue),G=kS.#o(o,Ue,G,y);continue}if(Xe==="|"){be.push(se),se="",de.push(be),be=new kS(null,f);continue}if(Xe===")")return se===""&&f.#r.length===0&&(f.#a=!0),be.push(se),se="",f.push(...de,be),G;se+=Xe}return f.type=null,f.#n=void 0,f.#r=[o.substring(d-1)],G}static fromGlob(o,f={}){let d=new kS(null,void 0,f);return kS.#o(o,d,0,f),d}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let o=this.toString(),[f,d,y,x]=this.toRegExpSource();if(!(y||this.#n||this.#f.nocase&&!this.#f.nocaseMagicOnly&&o.toUpperCase()!==o.toLowerCase()))return d;let A=(this.#f.nocase?"i":"")+(x?"u":"");return Object.assign(new RegExp(`^${f}$`,A),{_src:f,_glob:o})}get options(){return this.#f}toRegExpSource(o){let f=o??!!this.#f.dot;if(this.#e===this&&this.#i(),!this.type){let W=this.isStart()&&this.isEnd()&&!this.#r.some(se=>typeof se!="string"),G=this.#r.map(se=>{let[Xe,Ue,je,Vt]=typeof se=="string"?kS.#d(se,this.#n,W):se.toRegExpSource(o);return this.#n=this.#n||je,this.#t=this.#t||Vt,Xe}).join(""),be="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&zYt.has(this.#r[0]))){let se=UYt,Xe=f&&se.has(G.charAt(0))||G.startsWith("\\.")&&se.has(G.charAt(2))||G.startsWith("\\.\\.")&&se.has(G.charAt(4)),Ue=!f&&!o&&se.has(G.charAt(0));be=Xe?BYt:Ue?moe:""}let de="";return this.isEnd()&&this.#e.#u&&this.#s?.type==="!"&&(de="(?:$|\\/)"),[be+G+de,q9(G),this.#n=!!this.#n,this.#t]}let d=this.type==="*"||this.type==="+",y=this.type==="!"?"(?:(?!(?:":"(?:",x=this.#h(f);if(this.isStart()&&this.isEnd()&&!x&&this.type!=="!"){let W=this.toString();return this.#r=[W],this.type=null,this.#n=void 0,[W,q9(this.toString()),!1,!1]}let A=!d||o||f||!moe?"":this.#h(!0);A===x&&(A=""),A&&(x=`(?:${x})(?:${A})*?`);let F="";if(this.type==="!"&&this.#a)F=(this.isStart()&&!f?moe:"")+zrt;else{let W=this.type==="!"?"))"+(this.isStart()&&!f&&!o?moe:"")+Urt+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&A?")":this.type==="*"&&A?")?":`)${this.type}`;F=y+x+W}return[F,q9(x),this.#n=!!this.#n,this.#t]}#h(o){return this.#r.map(f=>{if(typeof f=="string")throw new Error("string type in extglob ast??");let[d,y,x,A]=f.toRegExpSource(o);return this.#t=this.#t||A,d}).filter(f=>!(this.isStart()&&this.isEnd())||!!f).join("|")}static#d(o,f,d=!1){let y=!1,x="",A=!1,F=!1;for(let W=0;W<o.length;W++){let G=o.charAt(W);if(y){y=!1,x+=($Yt.has(G)?"\\":"")+G;continue}if(G==="*"){if(F)continue;F=!0,x+=d&&/^[*]+$/.test(o)?zrt:Urt,f=!0;continue}else F=!1;if(G==="\\"){W===o.length-1?x+="\\\\":y=!0;continue}if(G==="["){let[be,de,se,Xe]=MYt(o,W);if(se){x+=be,A=A||de,W+=se-1,f=f||Xe;continue}}if(G==="?"){x+=MPe,f=!0;continue}x+=JYt(G)}return[x,q9(o),!!f,A]}},_nt=t((s,{windowsPathsNoEscape:o=!1,magicalBraces:f=!1}={})=>f?o?s.replace(/[?*()[\]{}]/g,"[$&]"):s.replace(/[?*()[\]\\{}]/g,"\\$&"):o?s.replace(/[?*()[\]]/g,"[$&]"):s.replace(/[?*()[\]\\]/g,"\\$&"),"tt"),I1=t((s,o,f={})=>(Coe(o),!f.nocomment&&o.charAt(0)==="#"?!1:new GN(o,f).match(s)),"O"),WYt=/^\*+([^+@!?\*\[\(]*)$/,qYt=t(s=>o=>!o.startsWith(".")&&o.endsWith(s),"Os"),VYt=t(s=>o=>o.endsWith(s),"Fs"),HYt=t(s=>(s=s.toLowerCase(),o=>!o.startsWith(".")&&o.toLowerCase().endsWith(s)),"Ds"),GYt=t(s=>(s=s.toLowerCase(),o=>o.toLowerCase().endsWith(s)),"Ms"),YYt=/^\*+\.\*+$/,KYt=t(s=>!s.startsWith(".")&&s.includes("."),"_s"),XYt=t(s=>s!=="."&&s!==".."&&s.includes("."),"Ls"),ZYt=/^\.\*+$/,QYt=t(s=>s!=="."&&s!==".."&&s.startsWith("."),"Ps"),eKt=/^\*+$/,tKt=t(s=>s.length!==0&&!s.startsWith("."),"Is"),rKt=t(s=>s.length!==0&&s!=="."&&s!=="..","zs"),nKt=/^\?+([^+@!?\*\[\(]*)?$/,iKt=t(([s,o=""])=>{let f=pnt([s]);return o?(o=o.toLowerCase(),d=>f(d)&&d.toLowerCase().endsWith(o)):f},"Us"),sKt=t(([s,o=""])=>{let f=dnt([s]);return o?(o=o.toLowerCase(),d=>f(d)&&d.toLowerCase().endsWith(o)):f},"$s"),aKt=t(([s,o=""])=>{let f=dnt([s]);return o?d=>f(d)&&d.endsWith(o):f},"Gs"),oKt=t(([s,o=""])=>{let f=pnt([s]);return o?d=>f(d)&&d.endsWith(o):f},"Hs"),pnt=t(([s])=>{let o=s.length;return f=>f.length===o&&!f.startsWith(".")},"Ce"),dnt=t(([s])=>{let o=s.length;return f=>f.length===o&&f!=="."&&f!==".."},"Te"),mnt=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$rt={win32:{sep:"\\"},posix:{sep:"/"}},cKt=mnt==="win32"?$rt.win32.sep:$rt.posix.sep;I1.sep=cKt;var N1=Symbol("globstar **");I1.GLOBSTAR=N1;var lKt="[^/]",uKt=lKt+"*?",fKt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_Kt="(?:(?!(?:\\/|^)\\.).)*?",pKt=t((s,o={})=>f=>I1(f,s,o),"Js");I1.filter=pKt;var sT=t((s,o={})=>Object.assign({},s,o),"N"),dKt=t(s=>{if(!s||typeof s!="object"||!Object.keys(s).length)return I1;let o=I1;return Object.assign((f,d,y={})=>o(f,d,sT(s,y)),{Minimatch:class extends o.Minimatch{static{t(this,"Minimatch")}constructor(f,d={}){super(f,sT(s,d))}static defaults(f){return o.defaults(sT(s,f)).Minimatch}},AST:class extends o.AST{static{t(this,"AST")}constructor(f,d,y={}){super(f,d,sT(s,y))}static fromGlob(f,d={}){return o.AST.fromGlob(f,sT(s,d))}},unescape:t((f,d={})=>o.unescape(f,sT(s,d)),"unescape"),escape:t((f,d={})=>o.escape(f,sT(s,d)),"escape"),filter:t((f,d={})=>o.filter(f,sT(s,d)),"filter"),defaults:t(f=>o.defaults(sT(s,f)),"defaults"),makeRe:t((f,d={})=>o.makeRe(f,sT(s,d)),"makeRe"),braceExpand:t((f,d={})=>o.braceExpand(f,sT(s,d)),"braceExpand"),match:t((f,d,y={})=>o.match(f,d,sT(s,y)),"match"),sep:o.sep,GLOBSTAR:N1})},"Zs");I1.defaults=dKt;var hnt=t((s,o={})=>(Coe(s),o.nobrace||!/\{(?:(?!\{).)*\}/.test(s)?[s]:AYt(s,{max:o.braceExpandMax})),"ke");I1.braceExpand=hnt;var mKt=t((s,o={})=>new GN(s,o).makeRe(),"Qs");I1.makeRe=mKt;var hKt=t((s,o,f={})=>{let d=new GN(o,f);return s=s.filter(y=>d.match(y)),d.options.nonull&&!s.length&&s.push(o),s},"ti");I1.match=hKt;var Jrt=/[?*]|[+@!]\(.*?\)|\[|\]/,gKt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"ei"),GN=class{static{t(this,"D")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(s,o={}){Coe(s),o=o||{},this.options=o,this.pattern=s,this.platform=o.platform||mnt,this.isWindows=this.platform==="win32";let f="allowWindowsEscape";this.windowsPathsNoEscape=!!o.windowsPathsNoEscape||o[f]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!o.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!o.nonegate,this.comment=!1,this.empty=!1,this.partial=!!o.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=o.windowsNoMagicRoot!==void 0?o.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let s of this.set)for(let o of s)if(typeof o!="string")return!0;return!1}debug(...s){}make(){let s=this.pattern,o=this.options;if(!o.nocomment&&s.charAt(0)==="#"){this.comment=!0;return}if(!s){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],o.debug&&(this.debug=(...y)=>console.error(...y)),this.debug(this.pattern,this.globSet);let f=this.globSet.map(y=>this.slashSplit(y));this.globParts=this.preprocess(f),this.debug(this.pattern,this.globParts);let d=this.globParts.map((y,x,A)=>{if(this.isWindows&&this.windowsNoMagicRoot){let F=y[0]===""&&y[1]===""&&(y[2]==="?"||!Jrt.test(y[2]))&&!Jrt.test(y[3]),W=/^[a-z]:/i.test(y[0]);if(F)return[...y.slice(0,4),...y.slice(4).map(G=>this.parse(G))];if(W)return[y[0],...y.slice(1).map(G=>this.parse(G))]}return y.map(F=>this.parse(F))});if(this.debug(this.pattern,d),this.set=d.filter(y=>y.indexOf(!1)===-1),this.isWindows)for(let y=0;y<this.set.length;y++){let x=this.set[y];x[0]===""&&x[1]===""&&this.globParts[y][2]==="?"&&typeof x[3]=="string"&&/^[a-z]:$/i.test(x[3])&&(x[2]="?")}this.debug(this.pattern,this.set)}preprocess(s){if(this.options.noglobstar)for(let f=0;f<s.length;f++)for(let d=0;d<s[f].length;d++)s[f][d]==="**"&&(s[f][d]="*");let{optimizationLevel:o=1}=this.options;return o>=2?(s=this.firstPhasePreProcess(s),s=this.secondPhasePreProcess(s)):o>=1?s=this.levelOneOptimize(s):s=this.adjascentGlobstarOptimize(s),s}adjascentGlobstarOptimize(s){return s.map(o=>{let f=-1;for(;(f=o.indexOf("**",f+1))!==-1;){let d=f;for(;o[d+1]==="**";)d++;d!==f&&o.splice(f,d-f)}return o})}levelOneOptimize(s){return s.map(o=>(o=o.reduce((f,d)=>{let y=f[f.length-1];return d==="**"&&y==="**"?f:d===".."&&y&&y!==".."&&y!=="."&&y!=="**"?(f.pop(),f):(f.push(d),f)},[]),o.length===0?[""]:o))}levelTwoFileOptimize(s){Array.isArray(s)||(s=this.slashSplit(s));let o=!1;do{if(o=!1,!this.preserveMultipleSlashes){for(let d=1;d<s.length-1;d++){let y=s[d];d===1&&y===""&&s[0]===""||(y==="."||y==="")&&(o=!0,s.splice(d,1),d--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(o=!0,s.pop())}let f=0;for(;(f=s.indexOf("..",f+1))!==-1;){let d=s[f-1];d&&d!=="."&&d!==".."&&d!=="**"&&(o=!0,s.splice(f-1,2),f-=2)}}while(o);return s.length===0?[""]:s}firstPhasePreProcess(s){let o=!1;do{o=!1;for(let f of s){let d=-1;for(;(d=f.indexOf("**",d+1))!==-1;){let x=d;for(;f[x+1]==="**";)x++;x>d&&f.splice(d+1,x-d);let A=f[d+1],F=f[d+2],W=f[d+3];if(A!==".."||!F||F==="."||F===".."||!W||W==="."||W==="..")continue;o=!0,f.splice(d,1);let G=f.slice(0);G[d]="**",s.push(G),d--}if(!this.preserveMultipleSlashes){for(let x=1;x<f.length-1;x++){let A=f[x];x===1&&A===""&&f[0]===""||(A==="."||A==="")&&(o=!0,f.splice(x,1),x--)}f[0]==="."&&f.length===2&&(f[1]==="."||f[1]==="")&&(o=!0,f.pop())}let y=0;for(;(y=f.indexOf("..",y+1))!==-1;){let x=f[y-1];if(x&&x!=="."&&x!==".."&&x!=="**"){o=!0;let A=y===1&&f[y+1]==="**"?["."]:[];f.splice(y-1,2,...A),f.length===0&&f.push(""),y-=2}}}}while(o);return s}secondPhasePreProcess(s){for(let o=0;o<s.length-1;o++)for(let f=o+1;f<s.length;f++){let d=this.partsMatch(s[o],s[f],!this.preserveMultipleSlashes);if(d){s[o]=[],s[f]=d;break}}return s.filter(o=>o.length)}partsMatch(s,o,f=!1){let d=0,y=0,x=[],A="";for(;d<s.length&&y<o.length;)if(s[d]===o[y])x.push(A==="b"?o[y]:s[d]),d++,y++;else if(f&&s[d]==="**"&&o[y]===s[d+1])x.push(s[d]),d++;else if(f&&o[y]==="**"&&s[d]===o[y+1])x.push(o[y]),y++;else if(s[d]==="*"&&o[y]&&(this.options.dot||!o[y].startsWith("."))&&o[y]!=="**"){if(A==="b")return!1;A="a",x.push(s[d]),d++,y++}else if(o[y]==="*"&&s[d]&&(this.options.dot||!s[d].startsWith("."))&&s[d]!=="**"){if(A==="a")return!1;A="b",x.push(o[y]),d++,y++}else return!1;return s.length===o.length&&x}parseNegate(){if(this.nonegate)return;let s=this.pattern,o=!1,f=0;for(let d=0;d<s.length&&s.charAt(d)==="!";d++)o=!o,f++;f&&(this.pattern=s.slice(f)),this.negate=o}matchOne(s,o,f=!1){let d=this.options;if(this.isWindows){let Ue=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),je=!Ue&&s[0]===""&&s[1]===""&&s[2]==="?"&&/^[a-z]:$/i.test(s[3]),Vt=typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0]),Ut=!Vt&&o[0]===""&&o[1]===""&&o[2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3]),Ir=je?3:Ue?0:void 0,wn=Ut?3:Vt?0:void 0;if(typeof Ir=="number"&&typeof wn=="number"){let[sn,Jn]=[s[Ir],o[wn]];sn.toLowerCase()===Jn.toLowerCase()&&(o[wn]=sn,wn>Ir?o=o.slice(wn):Ir>wn&&(s=s.slice(Ir)))}}let{optimizationLevel:y=1}=this.options;y>=2&&(s=this.levelTwoFileOptimize(s)),this.debug("matchOne",this,{file:s,pattern:o}),this.debug("matchOne",s.length,o.length);for(var x=0,A=0,F=s.length,W=o.length;x<F&&A<W;x++,A++){this.debug("matchOne loop");var G=o[A],be=s[x];if(this.debug(o,G,be),G===!1)return!1;if(G===N1){this.debug("GLOBSTAR",[o,G,be]);var de=x,se=A+1;if(se===W){for(this.debug("** at the end");x<F;x++)if(s[x]==="."||s[x]===".."||!d.dot&&s[x].charAt(0)===".")return!1;return!0}for(;de<F;){var Xe=s[de];if(this.debug(`
|
|
565
|
+
`);return x!==-1&&(o=nrt(o,y,d,x)),d+o+y},"applyStyle");Object.defineProperties(uV.prototype,z9);var YGt=uV(),NEr=uV({level:srt?srt.level:0});var v_=YGt;var crt="modules";var P1="config",fV="schemas",lrt="assets";var loe="policies.json",urt="dev-portal.json";var frt="zuplo.jsonc",_rt="zuplo.json";var $9="dist",Og=".zuplo",uoe="build.json";var foe="worker.ts";var _pt=Pp(Rrt(),1);import{readFile as rmr}from"node:fs/promises";import nmr from"node:path";import Hle from"node:fs";import Y4e from"node:path";import{fileURLToPath as yKt}from"node:url";import{posix as TKt,win32 as LPe}from"node:path";import{fileURLToPath as xKt}from"node:url";import{lstatSync as EKt,readdir as CKt,readdirSync as kKt,readlinkSync as wKt,realpathSync as DKt}from"fs";import*as PKt from"node:fs";import{lstat as AKt,readdir as NKt,readlink as IKt,realpath as OKt}from"node:fs/promises";import{EventEmitter as jPe}from"node:events";import Snt from"node:stream";import{StringDecoder as FKt}from"node:string_decoder";var snt=t((s,o,f)=>{let d=s instanceof RegExp?Mrt(s,f):s,y=o instanceof RegExp?Mrt(o,f):o,x=d!==null&&y!=null&&hYt(d,y,f);return x&&{start:x[0],end:x[1],pre:f.slice(0,x[0]),body:f.slice(x[0]+d.length,x[1]),post:f.slice(x[1]+y.length)}},"Gt"),Mrt=t((s,o)=>{let f=o.match(s);return f?f[0]:null},"ce"),hYt=t((s,o,f)=>{let d,y,x,A,F,W=f.indexOf(s),G=f.indexOf(o,W+1),be=W;if(W>=0&&G>0){if(s===o)return[W,G];for(d=[],x=f.length;be>=0&&!F;){if(be===W)d.push(be),W=f.indexOf(s,be+1);else if(d.length===1){let de=d.pop();de!==void 0&&(F=[de,G])}else y=d.pop(),y!==void 0&&y<x&&(x=y,A=G),G=f.indexOf(o,be+1);be=W<G&&W>=0?W:G}d.length&&A!==void 0&&(F=[x,A])}return F},"ss"),ant="\0SLASH"+Math.random()+"\0",ont="\0OPEN"+Math.random()+"\0",RPe="\0CLOSE"+Math.random()+"\0",cnt="\0COMMA"+Math.random()+"\0",lnt="\0PERIOD"+Math.random()+"\0",gYt=new RegExp(ant,"g"),yYt=new RegExp(ont,"g"),vYt=new RegExp(RPe,"g"),bYt=new RegExp(cnt,"g"),SYt=new RegExp(lnt,"g"),TYt=/\\\\/g,xYt=/\\{/g,EYt=/\\}/g,CYt=/\\,/g,kYt=/\\./g,wYt=1e5;function kPe(s){return isNaN(s)?s.charCodeAt(0):parseInt(s,10)}t(kPe,"Ht");function DYt(s){return s.replace(TYt,ant).replace(xYt,ont).replace(EYt,RPe).replace(CYt,cnt).replace(kYt,lnt)}t(DYt,"ps");function PYt(s){return s.replace(gYt,"\\").replace(yYt,"{").replace(vYt,"}").replace(bYt,",").replace(SYt,".")}t(PYt,"ms");function unt(s){if(!s)return[""];let o=[],f=snt("{","}",s);if(!f)return s.split(",");let{pre:d,body:y,post:x}=f,A=d.split(",");A[A.length-1]+="{"+y+"}";let F=unt(x);return x.length&&(A[A.length-1]+=F.shift(),A.push.apply(A,F)),o.push.apply(o,A),o}t(unt,"me");function AYt(s,o={}){if(!s)return[];let{max:f=wYt}=o;return s.slice(0,2)==="{}"&&(s="\\{\\}"+s.slice(2)),SV(DYt(s),f,!0).map(PYt)}t(AYt,"ge");function NYt(s){return"{"+s+"}"}t(NYt,"gs");function IYt(s){return/^-?0\d/.test(s)}t(IYt,"ws");function OYt(s,o){return s<=o}t(OYt,"ys");function FYt(s,o){return s>=o}t(FYt,"bs");function SV(s,o,f){let d=[],y=snt("{","}",s);if(!y)return[s];let x=y.pre,A=y.post.length?SV(y.post,o,!1):[""];if(/\$$/.test(y.pre))for(let F=0;F<A.length&&F<o;F++){let W=x+"{"+y.body+"}"+A[F];d.push(W)}else{let F=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),G=F||W,be=y.body.indexOf(",")>=0;if(!G&&!be)return y.post.match(/,(?!,).*\}/)?(s=y.pre+"{"+y.body+RPe+y.post,SV(s,o,!0)):[s];let de;if(G)de=y.body.split(/\.\./);else if(de=unt(y.body),de.length===1&&de[0]!==void 0&&(de=SV(de[0],o,!1).map(NYt),de.length===1))return A.map(Xe=>y.pre+de[0]+Xe);let se;if(G&&de[0]!==void 0&&de[1]!==void 0){let Xe=kPe(de[0]),Ue=kPe(de[1]),je=Math.max(de[0].length,de[1].length),Vt=de.length===3&&de[2]!==void 0?Math.abs(kPe(de[2])):1,Ut=OYt;Ue<Xe&&(Vt*=-1,Ut=FYt);let Ir=de.some(IYt);se=[];for(let wn=Xe;Ut(wn,Ue);wn+=Vt){let sn;if(W)sn=String.fromCharCode(wn),sn==="\\"&&(sn="");else if(sn=String(wn),Ir){let Jn=je-sn.length;if(Jn>0){let kr=new Array(Jn+1).join("0");wn<0?sn="-"+kr+sn.slice(1):sn=kr+sn}}se.push(sn)}}else{se=[];for(let Xe=0;Xe<de.length;Xe++)se.push.apply(se,SV(de[Xe],o,!1))}for(let Xe=0;Xe<se.length;Xe++)for(let Ue=0;Ue<A.length&&d.length<o;Ue++){let je=x+se[Xe]+A[Ue];(!f||G||je)&&d.push(je)}}return d}t(SV,"ht");var Coe=t(s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>65536)throw new TypeError("pattern is too long")},"at"),LYt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},mV=t(s=>s.replace(/[[\]\\-]/g,"\\$&"),"lt"),RYt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"Es"),jrt=t(s=>s.join(""),"we"),MYt=t((s,o)=>{let f=o;if(s.charAt(f)!=="[")throw new Error("not in a brace expression");let d=[],y=[],x=f+1,A=!1,F=!1,W=!1,G=!1,be=f,de="";e:for(;x<s.length;){let Ue=s.charAt(x);if((Ue==="!"||Ue==="^")&&x===f+1){G=!0,x++;continue}if(Ue==="]"&&A&&!W){be=x+1;break}if(A=!0,Ue==="\\"&&!W){W=!0,x++;continue}if(Ue==="["&&!W){for(let[je,[Vt,Ut,Ir]]of Object.entries(LYt))if(s.startsWith(je,x)){if(de)return["$.",!1,s.length-f,!0];x+=je.length,Ir?y.push(Vt):d.push(Vt),F=F||Ut;continue e}}if(W=!1,de){Ue>de?d.push(mV(de)+"-"+mV(Ue)):Ue===de&&d.push(mV(Ue)),de="",x++;continue}if(s.startsWith("-]",x+1)){d.push(mV(Ue+"-")),x+=2;continue}if(s.startsWith("-",x+1)){de=Ue,x+=2;continue}d.push(mV(Ue)),x++}if(be<x)return["",!1,0,!1];if(!d.length&&!y.length)return["$.",!1,s.length-f,!0];if(y.length===0&&d.length===1&&/^\\?.$/.test(d[0])&&!G){let Ue=d[0].length===2?d[0].slice(-1):d[0];return[RYt(Ue),!1,be-f,!1]}let se="["+(G?"^":"")+jrt(d)+"]",Xe="["+(G?"":"^")+jrt(y)+"]";return[d.length&&y.length?"("+se+"|"+Xe+")":d.length?se:Xe,F,be-f,!0]},"ye"),q9=t((s,{windowsPathsNoEscape:o=!1,magicalBraces:f=!0}={})=>f?o?s.replace(/\[([^\/\\])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):o?s.replace(/\[([^\/\\{}])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),"W"),jYt=new Set(["!","?","+","*","@"]),Brt=t(s=>jYt.has(s),"be"),BYt="(?!(?:^|/)\\.\\.?(?:$|/))",moe="(?!\\.)",UYt=new Set(["[","."]),zYt=new Set(["..","."]),$Yt=new Set("().*{}+?[]^$\\!"),JYt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"ks"),MPe="[^/]",Urt=MPe+"*?",zrt=MPe+"+?",fnt=class kS{static{t(this,"n")}type;#e;#n;#t=!1;#r=[];#s;#m;#c;#u=!1;#f;#p;#a=!1;constructor(o,f,d={}){this.type=o,o&&(this.#n=!0),this.#s=f,this.#e=this.#s?this.#s.#e:this,this.#f=this.#e===this?d:this.#e.#f,this.#c=this.#e===this?[]:this.#e.#c,o==="!"&&!this.#e.#u&&this.#c.push(this),this.#m=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let o of this.#r)if(typeof o!="string"&&(o.type||o.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#p!==void 0?this.#p:this.type?this.#p=this.type+"("+this.#r.map(o=>String(o)).join("|")+")":this.#p=this.#r.map(o=>String(o)).join("")}#i(){if(this!==this.#e)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let o;for(;o=this.#c.pop();){if(o.type!=="!")continue;let f=o,d=f.#s;for(;d;){for(let y=f.#m+1;!d.type&&y<d.#r.length;y++)for(let x of o.#r){if(typeof x=="string")throw new Error("string part in extglob AST??");x.copyIn(d.#r[y])}f=d,d=f.#s}}return this}push(...o){for(let f of o)if(f!==""){if(typeof f!="string"&&!(f instanceof kS&&f.#s===this))throw new Error("invalid part: "+f);this.#r.push(f)}}toJSON(){let o=this.type===null?this.#r.slice().map(f=>typeof f=="string"?f:f.toJSON()):[this.type,...this.#r.map(f=>f.toJSON())];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#u&&this.#s?.type==="!")&&o.push({}),o}isStart(){if(this.#e===this)return!0;if(!this.#s?.isStart())return!1;if(this.#m===0)return!0;let o=this.#s;for(let f=0;f<this.#m;f++){let d=o.#r[f];if(!(d instanceof kS&&d.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#s?.type==="!")return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();let o=this.#s?this.#s.#r.length:0;return this.#m===o-1}copyIn(o){typeof o=="string"?this.push(o):this.push(o.clone(this))}clone(o){let f=new kS(this.type,o);for(let d of this.#r)f.copyIn(d);return f}static#o(o,f,d,y){let x=!1,A=!1,F=-1,W=!1;if(f.type===null){let Xe=d,Ue="";for(;Xe<o.length;){let je=o.charAt(Xe++);if(x||je==="\\"){x=!x,Ue+=je;continue}if(A){Xe===F+1?(je==="^"||je==="!")&&(W=!0):je==="]"&&!(Xe===F+2&&W)&&(A=!1),Ue+=je;continue}else if(je==="["){A=!0,F=Xe,W=!1,Ue+=je;continue}if(!y.noext&&Brt(je)&&o.charAt(Xe)==="("){f.push(Ue),Ue="";let Vt=new kS(je,f);Xe=kS.#o(o,Vt,Xe,y),f.push(Vt);continue}Ue+=je}return f.push(Ue),Xe}let G=d+1,be=new kS(null,f),de=[],se="";for(;G<o.length;){let Xe=o.charAt(G++);if(x||Xe==="\\"){x=!x,se+=Xe;continue}if(A){G===F+1?(Xe==="^"||Xe==="!")&&(W=!0):Xe==="]"&&!(G===F+2&&W)&&(A=!1),se+=Xe;continue}else if(Xe==="["){A=!0,F=G,W=!1,se+=Xe;continue}if(Brt(Xe)&&o.charAt(G)==="("){be.push(se),se="";let Ue=new kS(Xe,be);be.push(Ue),G=kS.#o(o,Ue,G,y);continue}if(Xe==="|"){be.push(se),se="",de.push(be),be=new kS(null,f);continue}if(Xe===")")return se===""&&f.#r.length===0&&(f.#a=!0),be.push(se),se="",f.push(...de,be),G;se+=Xe}return f.type=null,f.#n=void 0,f.#r=[o.substring(d-1)],G}static fromGlob(o,f={}){let d=new kS(null,void 0,f);return kS.#o(o,d,0,f),d}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let o=this.toString(),[f,d,y,x]=this.toRegExpSource();if(!(y||this.#n||this.#f.nocase&&!this.#f.nocaseMagicOnly&&o.toUpperCase()!==o.toLowerCase()))return d;let A=(this.#f.nocase?"i":"")+(x?"u":"");return Object.assign(new RegExp(`^${f}$`,A),{_src:f,_glob:o})}get options(){return this.#f}toRegExpSource(o){let f=o??!!this.#f.dot;if(this.#e===this&&this.#i(),!this.type){let W=this.isStart()&&this.isEnd()&&!this.#r.some(se=>typeof se!="string"),G=this.#r.map(se=>{let[Xe,Ue,je,Vt]=typeof se=="string"?kS.#d(se,this.#n,W):se.toRegExpSource(o);return this.#n=this.#n||je,this.#t=this.#t||Vt,Xe}).join(""),be="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&zYt.has(this.#r[0]))){let se=UYt,Xe=f&&se.has(G.charAt(0))||G.startsWith("\\.")&&se.has(G.charAt(2))||G.startsWith("\\.\\.")&&se.has(G.charAt(4)),Ue=!f&&!o&&se.has(G.charAt(0));be=Xe?BYt:Ue?moe:""}let de="";return this.isEnd()&&this.#e.#u&&this.#s?.type==="!"&&(de="(?:$|\\/)"),[be+G+de,q9(G),this.#n=!!this.#n,this.#t]}let d=this.type==="*"||this.type==="+",y=this.type==="!"?"(?:(?!(?:":"(?:",x=this.#h(f);if(this.isStart()&&this.isEnd()&&!x&&this.type!=="!"){let W=this.toString();return this.#r=[W],this.type=null,this.#n=void 0,[W,q9(this.toString()),!1,!1]}let A=!d||o||f||!moe?"":this.#h(!0);A===x&&(A=""),A&&(x=`(?:${x})(?:${A})*?`);let F="";if(this.type==="!"&&this.#a)F=(this.isStart()&&!f?moe:"")+zrt;else{let W=this.type==="!"?"))"+(this.isStart()&&!f&&!o?moe:"")+Urt+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&A?")":this.type==="*"&&A?")?":`)${this.type}`;F=y+x+W}return[F,q9(x),this.#n=!!this.#n,this.#t]}#h(o){return this.#r.map(f=>{if(typeof f=="string")throw new Error("string type in extglob ast??");let[d,y,x,A]=f.toRegExpSource(o);return this.#t=this.#t||A,d}).filter(f=>!(this.isStart()&&this.isEnd())||!!f).join("|")}static#d(o,f,d=!1){let y=!1,x="",A=!1,F=!1;for(let W=0;W<o.length;W++){let G=o.charAt(W);if(y){y=!1,x+=($Yt.has(G)?"\\":"")+G;continue}if(G==="*"){if(F)continue;F=!0,x+=d&&/^[*]+$/.test(o)?zrt:Urt,f=!0;continue}else F=!1;if(G==="\\"){W===o.length-1?x+="\\\\":y=!0;continue}if(G==="["){let[be,de,se,Xe]=MYt(o,W);if(se){x+=be,A=A||de,W+=se-1,f=f||Xe;continue}}if(G==="?"){x+=MPe,f=!0;continue}x+=JYt(G)}return[x,q9(o),!!f,A]}},_nt=t((s,{windowsPathsNoEscape:o=!1,magicalBraces:f=!1}={})=>f?o?s.replace(/[?*()[\]{}]/g,"[$&]"):s.replace(/[?*()[\]\\{}]/g,"\\$&"):o?s.replace(/[?*()[\]]/g,"[$&]"):s.replace(/[?*()[\]\\]/g,"\\$&"),"tt"),I1=t((s,o,f={})=>(Coe(o),!f.nocomment&&o.charAt(0)==="#"?!1:new GN(o,f).match(s)),"O"),WYt=/^\*+([^+@!?\*\[\(]*)$/,qYt=t(s=>o=>!o.startsWith(".")&&o.endsWith(s),"Os"),VYt=t(s=>o=>o.endsWith(s),"Fs"),HYt=t(s=>(s=s.toLowerCase(),o=>!o.startsWith(".")&&o.toLowerCase().endsWith(s)),"Ds"),GYt=t(s=>(s=s.toLowerCase(),o=>o.toLowerCase().endsWith(s)),"Ms"),YYt=/^\*+\.\*+$/,KYt=t(s=>!s.startsWith(".")&&s.includes("."),"_s"),XYt=t(s=>s!=="."&&s!==".."&&s.includes("."),"Ls"),ZYt=/^\.\*+$/,QYt=t(s=>s!=="."&&s!==".."&&s.startsWith("."),"Ps"),eKt=/^\*+$/,tKt=t(s=>s.length!==0&&!s.startsWith("."),"Is"),rKt=t(s=>s.length!==0&&s!=="."&&s!=="..","zs"),nKt=/^\?+([^+@!?\*\[\(]*)?$/,iKt=t(([s,o=""])=>{let f=pnt([s]);return o?(o=o.toLowerCase(),d=>f(d)&&d.toLowerCase().endsWith(o)):f},"Us"),sKt=t(([s,o=""])=>{let f=dnt([s]);return o?(o=o.toLowerCase(),d=>f(d)&&d.toLowerCase().endsWith(o)):f},"$s"),aKt=t(([s,o=""])=>{let f=dnt([s]);return o?d=>f(d)&&d.endsWith(o):f},"Gs"),oKt=t(([s,o=""])=>{let f=pnt([s]);return o?d=>f(d)&&d.endsWith(o):f},"Hs"),pnt=t(([s])=>{let o=s.length;return f=>f.length===o&&!f.startsWith(".")},"Ce"),dnt=t(([s])=>{let o=s.length;return f=>f.length===o&&f!=="."&&f!==".."},"Te"),mnt=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$rt={win32:{sep:"\\"},posix:{sep:"/"}},cKt=mnt==="win32"?$rt.win32.sep:$rt.posix.sep;I1.sep=cKt;var N1=Symbol("globstar **");I1.GLOBSTAR=N1;var lKt="[^/]",uKt=lKt+"*?",fKt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",_Kt="(?:(?!(?:\\/|^)\\.).)*?",pKt=t((s,o={})=>f=>I1(f,s,o),"Js");I1.filter=pKt;var sT=t((s,o={})=>Object.assign({},s,o),"N"),dKt=t(s=>{if(!s||typeof s!="object"||!Object.keys(s).length)return I1;let o=I1;return Object.assign((f,d,y={})=>o(f,d,sT(s,y)),{Minimatch:class extends o.Minimatch{static{t(this,"Minimatch")}constructor(f,d={}){super(f,sT(s,d))}static defaults(f){return o.defaults(sT(s,f)).Minimatch}},AST:class extends o.AST{static{t(this,"AST")}constructor(f,d,y={}){super(f,d,sT(s,y))}static fromGlob(f,d={}){return o.AST.fromGlob(f,sT(s,d))}},unescape:t((f,d={})=>o.unescape(f,sT(s,d)),"unescape"),escape:t((f,d={})=>o.escape(f,sT(s,d)),"escape"),filter:t((f,d={})=>o.filter(f,sT(s,d)),"filter"),defaults:t(f=>o.defaults(sT(s,f)),"defaults"),makeRe:t((f,d={})=>o.makeRe(f,sT(s,d)),"makeRe"),braceExpand:t((f,d={})=>o.braceExpand(f,sT(s,d)),"braceExpand"),match:t((f,d,y={})=>o.match(f,d,sT(s,y)),"match"),sep:o.sep,GLOBSTAR:N1})},"Zs");I1.defaults=dKt;var hnt=t((s,o={})=>(Coe(s),o.nobrace||!/\{(?:(?!\{).)*\}/.test(s)?[s]:AYt(s,{max:o.braceExpandMax})),"ke");I1.braceExpand=hnt;var mKt=t((s,o={})=>new GN(s,o).makeRe(),"Qs");I1.makeRe=mKt;var hKt=t((s,o,f={})=>{let d=new GN(o,f);return s=s.filter(y=>d.match(y)),d.options.nonull&&!s.length&&s.push(o),s},"ti");I1.match=hKt;var Jrt=/[?*]|[+@!]\(.*?\)|\[|\]/,gKt=t(s=>s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"ei"),GN=class{static{t(this,"D")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(s,o={}){Coe(s),o=o||{},this.options=o,this.pattern=s,this.platform=o.platform||mnt,this.isWindows=this.platform==="win32";let f="allowWindowsEscape";this.windowsPathsNoEscape=!!o.windowsPathsNoEscape||o[f]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!o.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!o.nonegate,this.comment=!1,this.empty=!1,this.partial=!!o.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=o.windowsNoMagicRoot!==void 0?o.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let s of this.set)for(let o of s)if(typeof o!="string")return!0;return!1}debug(...s){}make(){let s=this.pattern,o=this.options;if(!o.nocomment&&s.charAt(0)==="#"){this.comment=!0;return}if(!s){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],o.debug&&(this.debug=(...y)=>console.error(...y)),this.debug(this.pattern,this.globSet);let f=this.globSet.map(y=>this.slashSplit(y));this.globParts=this.preprocess(f),this.debug(this.pattern,this.globParts);let d=this.globParts.map((y,x,A)=>{if(this.isWindows&&this.windowsNoMagicRoot){let F=y[0]===""&&y[1]===""&&(y[2]==="?"||!Jrt.test(y[2]))&&!Jrt.test(y[3]),W=/^[a-z]:/i.test(y[0]);if(F)return[...y.slice(0,4),...y.slice(4).map(G=>this.parse(G))];if(W)return[y[0],...y.slice(1).map(G=>this.parse(G))]}return y.map(F=>this.parse(F))});if(this.debug(this.pattern,d),this.set=d.filter(y=>y.indexOf(!1)===-1),this.isWindows)for(let y=0;y<this.set.length;y++){let x=this.set[y];x[0]===""&&x[1]===""&&this.globParts[y][2]==="?"&&typeof x[3]=="string"&&/^[a-z]:$/i.test(x[3])&&(x[2]="?")}this.debug(this.pattern,this.set)}preprocess(s){if(this.options.noglobstar)for(let f=0;f<s.length;f++)for(let d=0;d<s[f].length;d++)s[f][d]==="**"&&(s[f][d]="*");let{optimizationLevel:o=1}=this.options;return o>=2?(s=this.firstPhasePreProcess(s),s=this.secondPhasePreProcess(s)):o>=1?s=this.levelOneOptimize(s):s=this.adjascentGlobstarOptimize(s),s}adjascentGlobstarOptimize(s){return s.map(o=>{let f=-1;for(;(f=o.indexOf("**",f+1))!==-1;){let d=f;for(;o[d+1]==="**";)d++;d!==f&&o.splice(f,d-f)}return o})}levelOneOptimize(s){return s.map(o=>(o=o.reduce((f,d)=>{let y=f[f.length-1];return d==="**"&&y==="**"?f:d===".."&&y&&y!==".."&&y!=="."&&y!=="**"?(f.pop(),f):(f.push(d),f)},[]),o.length===0?[""]:o))}levelTwoFileOptimize(s){Array.isArray(s)||(s=this.slashSplit(s));let o=!1;do{if(o=!1,!this.preserveMultipleSlashes){for(let d=1;d<s.length-1;d++){let y=s[d];d===1&&y===""&&s[0]===""||(y==="."||y==="")&&(o=!0,s.splice(d,1),d--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(o=!0,s.pop())}let f=0;for(;(f=s.indexOf("..",f+1))!==-1;){let d=s[f-1];d&&d!=="."&&d!==".."&&d!=="**"&&(o=!0,s.splice(f-1,2),f-=2)}}while(o);return s.length===0?[""]:s}firstPhasePreProcess(s){let o=!1;do{o=!1;for(let f of s){let d=-1;for(;(d=f.indexOf("**",d+1))!==-1;){let x=d;for(;f[x+1]==="**";)x++;x>d&&f.splice(d+1,x-d);let A=f[d+1],F=f[d+2],W=f[d+3];if(A!==".."||!F||F==="."||F===".."||!W||W==="."||W==="..")continue;o=!0,f.splice(d,1);let G=f.slice(0);G[d]="**",s.push(G),d--}if(!this.preserveMultipleSlashes){for(let x=1;x<f.length-1;x++){let A=f[x];x===1&&A===""&&f[0]===""||(A==="."||A==="")&&(o=!0,f.splice(x,1),x--)}f[0]==="."&&f.length===2&&(f[1]==="."||f[1]==="")&&(o=!0,f.pop())}let y=0;for(;(y=f.indexOf("..",y+1))!==-1;){let x=f[y-1];if(x&&x!=="."&&x!==".."&&x!=="**"){o=!0;let A=y===1&&f[y+1]==="**"?["."]:[];f.splice(y-1,2,...A),f.length===0&&f.push(""),y-=2}}}}while(o);return s}secondPhasePreProcess(s){for(let o=0;o<s.length-1;o++)for(let f=o+1;f<s.length;f++){let d=this.partsMatch(s[o],s[f],!this.preserveMultipleSlashes);if(d){s[o]=[],s[f]=d;break}}return s.filter(o=>o.length)}partsMatch(s,o,f=!1){let d=0,y=0,x=[],A="";for(;d<s.length&&y<o.length;)if(s[d]===o[y])x.push(A==="b"?o[y]:s[d]),d++,y++;else if(f&&s[d]==="**"&&o[y]===s[d+1])x.push(s[d]),d++;else if(f&&o[y]==="**"&&s[d]===o[y+1])x.push(o[y]),y++;else if(s[d]==="*"&&o[y]&&(this.options.dot||!o[y].startsWith("."))&&o[y]!=="**"){if(A==="b")return!1;A="a",x.push(s[d]),d++,y++}else if(o[y]==="*"&&s[d]&&(this.options.dot||!s[d].startsWith("."))&&s[d]!=="**"){if(A==="a")return!1;A="b",x.push(o[y]),d++,y++}else return!1;return s.length===o.length&&x}parseNegate(){if(this.nonegate)return;let s=this.pattern,o=!1,f=0;for(let d=0;d<s.length&&s.charAt(d)==="!";d++)o=!o,f++;f&&(this.pattern=s.slice(f)),this.negate=o}matchOne(s,o,f=!1){let d=this.options;if(this.isWindows){let Ue=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),je=!Ue&&s[0]===""&&s[1]===""&&s[2]==="?"&&/^[a-z]:$/i.test(s[3]),Vt=typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0]),Ut=!Vt&&o[0]===""&&o[1]===""&&o[2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3]),Ir=je?3:Ue?0:void 0,wn=Ut?3:Vt?0:void 0;if(typeof Ir=="number"&&typeof wn=="number"){let[sn,Jn]=[s[Ir],o[wn]];sn.toLowerCase()===Jn.toLowerCase()&&(o[wn]=sn,wn>Ir?o=o.slice(wn):Ir>wn&&(s=s.slice(Ir)))}}let{optimizationLevel:y=1}=this.options;y>=2&&(s=this.levelTwoFileOptimize(s)),this.debug("matchOne",this,{file:s,pattern:o}),this.debug("matchOne",s.length,o.length);for(var x=0,A=0,F=s.length,W=o.length;x<F&&A<W;x++,A++){this.debug("matchOne loop");var G=o[A],be=s[x];if(this.debug(o,G,be),G===!1)return!1;if(G===N1){this.debug("GLOBSTAR",[o,G,be]);var de=x,se=A+1;if(se===W){for(this.debug("** at the end");x<F;x++)if(s[x]==="."||s[x]===".."||!d.dot&&s[x].charAt(0)===".")return!1;return!0}for(;de<F;){var Xe=s[de];if(this.debug(`
|
|
566
566
|
globstar while`,s,de,o,se,Xe),this.matchOne(s.slice(de),o.slice(se),f))return this.debug("globstar found match!",de,F,Xe),!0;if(Xe==="."||Xe===".."||!d.dot&&Xe.charAt(0)==="."){this.debug("dot detected!",s,de,o,se);break}this.debug("globstar swallow a segment, and continue"),de++}return!!(f&&(this.debug(`
|
|
567
|
-
>>> no match, partial?`,s,de,o,se),de===F))}let Ue;if(typeof G=="string"?(Ue=be===G,this.debug("string match",G,be,Ue)):(Ue=G.test(be),this.debug("pattern match",G,be,Ue)),!Ue)return!1}if(x===F&&A===W)return!0;if(x===F)return f;if(A===W)return x===F-1&&s[x]==="";throw new Error("wtf?")}braceExpand(){return hnt(this.pattern,this.options)}parse(s){Coe(s);let o=this.options;if(s==="**")return N1;if(s==="")return"";let f,d=null;(f=s.match(eKt))?d=o.dot?rKt:tKt:(f=s.match(WYt))?d=(o.nocase?o.dot?GYt:HYt:o.dot?VYt:qYt)(f[1]):(f=s.match(nKt))?d=(o.nocase?o.dot?sKt:iKt:o.dot?aKt:oKt)(f):(f=s.match(YYt))?d=o.dot?XYt:KYt:(f=s.match(ZYt))&&(d=QYt);let y=fnt.fromGlob(s,this.options).toMMPattern();return d&&typeof y=="object"&&Reflect.defineProperty(y,"test",{value:d}),y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let s=this.set;if(!s.length)return this.regexp=!1,this.regexp;let o=this.options,f=o.noglobstar?uKt:o.dot?fKt:_Kt,d=new Set(o.nocase?["i"]:[]),y=s.map(F=>{let W=F.map(be=>{if(be instanceof RegExp)for(let de of be.flags.split(""))d.add(de);return typeof be=="string"?gKt(be):be===N1?N1:be._src});W.forEach((be,de)=>{let se=W[de+1],Xe=W[de-1];be!==N1||Xe===N1||(Xe===void 0?se!==void 0&&se!==N1?W[de+1]="(?:\\/|"+f+"\\/)?"+se:W[de]=f:se===void 0?W[de-1]=Xe+"(?:\\/|\\/"+f+")?":se!==N1&&(W[de-1]=Xe+"(?:\\/|\\/"+f+"\\/)"+se,W[de+1]=N1))});let G=W.filter(be=>be!==N1);if(this.partial&&G.length>=1){let be=[];for(let de=1;de<=G.length;de++)be.push(G.slice(0,de).join("/"));return"(?:"+be.join("|")+")"}return G.join("/")}).join("|"),[x,A]=s.length>1?["(?:",")"]:["",""];y="^"+x+y+A+"$",this.partial&&(y="^(?:\\/|"+x+y.slice(1,-1)+A+")$"),this.negate&&(y="^(?!"+y+").+$");try{this.regexp=new RegExp(y,[...d].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(s){return this.preserveMultipleSlashes?s.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(s)?["",...s.split(/\/+/)]:s.split(/\/+/)}match(s,o=this.partial){if(this.debug("match",s,this.pattern),this.comment)return!1;if(this.empty)return s==="";if(s==="/"&&o)return!0;let f=this.options;this.isWindows&&(s=s.split("\\").join("/"));let d=this.slashSplit(s);this.debug(this.pattern,"split",d);let y=this.set;this.debug(this.pattern,"set",y);let x=d[d.length-1];if(!x)for(let A=d.length-2;!x&&A>=0;A--)x=d[A];for(let A=0;A<y.length;A++){let F=y[A],W=d;if(f.matchBase&&F.length===1&&(W=[x]),this.matchOne(W,F,o))return f.flipNegate?!0:!this.negate}return f.flipNegate?!1:this.negate}static defaults(s){return I1.defaults(s).Minimatch}};I1.AST=fnt;I1.Minimatch=GN;I1.escape=_nt;I1.unescape=q9;var vKt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,gnt=new Set,FPe=typeof process=="object"&&process?process:{},ynt=t((s,o,f,d)=>{typeof FPe.emitWarning=="function"?FPe.emitWarning(s,o,f,d):console.error(`[${f}] ${o}: ${s}`)},"Fe"),koe=globalThis.AbortController,Wrt=globalThis.AbortSignal;if(typeof koe>"u"){Wrt=class{static{t(this,"Re")}onabort;_onabort=[];reason;aborted=!1;addEventListener(f,d){this._onabort.push(d)}},koe=class{static{t(this,"At")}constructor(){o()}signal=new Wrt;abort(f){if(!this.signal.aborted){this.signal.reason=f,this.signal.aborted=!0;for(let d of this.signal._onabort)d(f);this.signal.onabort?.(f)}}};let s=FPe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=t(()=>{s&&(s=!1,ynt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))},"t")}var bKt=t(s=>!gnt.has(s),"ii"),HN=t(s=>s&&s===Math.floor(s)&&s>0&&isFinite(s),"q"),vnt=t(s=>HN(s)?s<=Math.pow(2,8)?Uint8Array:s<=Math.pow(2,16)?Uint16Array:s<=Math.pow(2,32)?Uint32Array:s<=Number.MAX_SAFE_INTEGER?xoe:null:null,"De"),xoe=class extends Array{static{t(this,"Tt")}constructor(s){super(s),this.fill(0)}},SKt=class TV{static{t(this,"ct")}heap;length;static#e=!1;static create(o){let f=vnt(o);if(!f)return[];TV.#e=!0;let d=new TV(o,f);return TV.#e=!1,d}constructor(o,f){if(!TV.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},Doe=class bnt{static{t(this,"Me")}#e;#n;#t;#r;#s;#m;#c;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#f;#p;#a;#i;#o;#h;#d;#_;#y;#b;#v;#C;#k;#S;#E;#g;#A;#l;#O;static unsafeExposeInternals(o){return{starts:o.#k,ttls:o.#S,autopurgeTimers:o.#E,sizes:o.#C,keyMap:o.#a,keyList:o.#i,valList:o.#o,next:o.#h,prev:o.#d,get head(){return o.#_},get tail(){return o.#y},free:o.#b,isBackgroundFetch:t(f=>o.#T(f),"isBackgroundFetch"),backgroundFetch:t((f,d,y,x)=>o.#W(f,d,y,x),"backgroundFetch"),moveToTail:t(f=>o.#j(f),"moveToTail"),indexes:t(f=>o.#R(f),"indexes"),rindexes:t(f=>o.#L(f),"rindexes"),isStale:t(f=>o.#P(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#p}get size(){return this.#f}get fetchMethod(){return this.#m}get memoMethod(){return this.#c}get dispose(){return this.#t}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:f=0,ttl:d,ttlResolution:y=1,ttlAutopurge:x,updateAgeOnGet:A,updateAgeOnHas:F,allowStale:W,dispose:G,onInsert:be,disposeAfter:de,noDisposeOnSet:se,noUpdateTTL:Xe,maxSize:Ue=0,maxEntrySize:je=0,sizeCalculation:Vt,fetchMethod:Ut,memoMethod:Ir,noDeleteOnFetchRejection:wn,noDeleteOnStaleGet:sn,allowStaleOnFetchRejection:Jn,allowStaleOnFetchAbort:kr,ignoreFetchAbort:yr,perf:xs}=o;if(xs!==void 0&&typeof xs?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=xs??vKt,f!==0&&!HN(f))throw new TypeError("max option must be a nonnegative integer");let bi=f?vnt(f):Array;if(!bi)throw new Error("invalid max value: "+f);if(this.#e=f,this.#n=Ue,this.maxEntrySize=je||this.#n,this.sizeCalculation=Vt,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ir!==void 0&&typeof Ir!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#c=Ir,Ut!==void 0&&typeof Ut!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#m=Ut,this.#A=!!Ut,this.#a=new Map,this.#i=new Array(f).fill(void 0),this.#o=new Array(f).fill(void 0),this.#h=new bi(f),this.#d=new bi(f),this.#_=0,this.#y=0,this.#b=SKt.create(f),this.#f=0,this.#p=0,typeof G=="function"&&(this.#t=G),typeof be=="function"&&(this.#r=be),typeof de=="function"?(this.#s=de,this.#v=[]):(this.#s=void 0,this.#v=void 0),this.#g=!!this.#t,this.#O=!!this.#r,this.#l=!!this.#s,this.noDisposeOnSet=!!se,this.noUpdateTTL=!!Xe,this.noDeleteOnFetchRejection=!!wn,this.allowStaleOnFetchRejection=!!Jn,this.allowStaleOnFetchAbort=!!kr,this.ignoreFetchAbort=!!yr,this.maxEntrySize!==0){if(this.#n!==0&&!HN(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!HN(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#J()}if(this.allowStale=!!W,this.noDeleteOnStaleGet=!!sn,this.updateAgeOnGet=!!A,this.updateAgeOnHas=!!F,this.ttlResolution=HN(y)||y===0?y:1,this.ttlAutopurge=!!x,this.ttl=d||0,this.ttl){if(!HN(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let fc="LRU_CACHE_UNBOUNDED";bKt(fc)&&(gnt.add(fc),ynt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",fc,bnt))}}getRemainingTTL(o){return this.#a.has(o)?1/0:0}#N(){let o=new xoe(this.#e),f=new xoe(this.#e);this.#S=o,this.#k=f;let d=this.ttlAutopurge?new Array(this.#e):void 0;this.#E=d,this.#$=(A,F,W=this.#u.now())=>{if(f[A]=F!==0?W:0,o[A]=F,d?.[A]&&(clearTimeout(d[A]),d[A]=void 0),F!==0&&d){let G=setTimeout(()=>{this.#P(A)&&this.#B(this.#i[A],"expire")},F+1);G.unref&&G.unref(),d[A]=G}},this.#w=A=>{f[A]=o[A]!==0?this.#u.now():0},this.#D=(A,F)=>{if(o[F]){let W=o[F],G=f[F];if(!W||!G)return;A.ttl=W,A.start=G,A.now=y||x();let be=A.now-G;A.remainingTTL=W-be}};let y=0,x=t(()=>{let A=this.#u.now();if(this.ttlResolution>0){y=A;let F=setTimeout(()=>y=0,this.ttlResolution);F.unref&&F.unref()}return A},"r");this.getRemainingTTL=A=>{let F=this.#a.get(A);if(F===void 0)return 0;let W=o[F],G=f[F];if(!W||!G)return 1/0;let be=(y||x())-G;return W-be},this.#P=A=>{let F=f[A],W=o[A];return!!W&&!!F&&(y||x())-F>W}}#w=t(()=>{},"#k");#D=t(()=>{},"#N");#$=t(()=>{},"#j");#P=t(()=>!1,"#v");#J(){let o=new xoe(this.#e);this.#p=0,this.#C=o,this.#U=f=>{this.#p-=o[f],o[f]=0},this.#F=(f,d,y,x)=>{if(this.#T(d))return 0;if(!HN(y))if(x){if(typeof x!="function")throw new TypeError("sizeCalculation must be a function");if(y=x(d,f),!HN(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#I=(f,d,y)=>{if(o[f]=d,this.#n){let x=this.#n-o[f];for(;this.#p>x;)this.#x(!0)}this.#p+=o[f],y&&(y.entrySize=d,y.totalCalculatedSize=this.#p)}}#U=t(o=>{},"#P");#I=t((o,f,d)=>{},"#L");#F=t((o,f,d,y)=>{if(d||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#I");*#R({allowStale:o=this.allowStale}={}){if(this.#f)for(let f=this.#y;!(!this.#z(f)||((o||!this.#P(f))&&(yield f),f===this.#_));)f=this.#d[f]}*#L({allowStale:o=this.allowStale}={}){if(this.#f)for(let f=this.#_;!(!this.#z(f)||((o||!this.#P(f))&&(yield f),f===this.#y));)f=this.#h[f]}#z(o){return o!==void 0&&this.#a.get(this.#i[o])===o}*entries(){for(let o of this.#R())this.#o[o]!==void 0&&this.#i[o]!==void 0&&!this.#T(this.#o[o])&&(yield[this.#i[o],this.#o[o]])}*rentries(){for(let o of this.#L())this.#o[o]!==void 0&&this.#i[o]!==void 0&&!this.#T(this.#o[o])&&(yield[this.#i[o],this.#o[o]])}*keys(){for(let o of this.#R()){let f=this.#i[o];f!==void 0&&!this.#T(this.#o[o])&&(yield f)}}*rkeys(){for(let o of this.#L()){let f=this.#i[o];f!==void 0&&!this.#T(this.#o[o])&&(yield f)}}*values(){for(let o of this.#R())this.#o[o]!==void 0&&!this.#T(this.#o[o])&&(yield this.#o[o])}*rvalues(){for(let o of this.#L())this.#o[o]!==void 0&&!this.#T(this.#o[o])&&(yield this.#o[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,f={}){for(let d of this.#R()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;if(x!==void 0&&o(x,this.#i[d],this))return this.get(this.#i[d],f)}}forEach(o,f=this){for(let d of this.#R()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#i[d],this)}}rforEach(o,f=this){for(let d of this.#L()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#i[d],this)}}purgeStale(){let o=!1;for(let f of this.#L({allowStale:!0}))this.#P(f)&&(this.#B(this.#i[f],"expire"),o=!0);return o}info(o){let f=this.#a.get(o);if(f===void 0)return;let d=this.#o[f],y=this.#T(d)?d.__staleWhileFetching:d;if(y===void 0)return;let x={value:y};if(this.#S&&this.#k){let A=this.#S[f],F=this.#k[f];if(A&&F){let W=A-(this.#u.now()-F);x.ttl=W,x.start=Date.now()}}return this.#C&&(x.size=this.#C[f]),x}dump(){let o=[];for(let f of this.#R({allowStale:!0})){let d=this.#i[f],y=this.#o[f],x=this.#T(y)?y.__staleWhileFetching:y;if(x===void 0||d===void 0)continue;let A={value:x};if(this.#S&&this.#k){A.ttl=this.#S[f];let F=this.#u.now()-this.#k[f];A.start=Math.floor(Date.now()-F)}this.#C&&(A.size=this.#C[f]),o.unshift([d,A])}return o}load(o){this.clear();for(let[f,d]of o){if(d.start){let y=Date.now()-d.start;d.start=this.#u.now()-y}this.set(f,d.value,d)}}set(o,f,d={}){if(f===void 0)return this.delete(o),this;let{ttl:y=this.ttl,start:x,noDisposeOnSet:A=this.noDisposeOnSet,sizeCalculation:F=this.sizeCalculation,status:W}=d,{noUpdateTTL:G=this.noUpdateTTL}=d,be=this.#F(o,f,d.size||0,F);if(this.maxEntrySize&&be>this.maxEntrySize)return W&&(W.set="miss",W.maxEntrySizeExceeded=!0),this.#B(o,"set"),this;let de=this.#f===0?void 0:this.#a.get(o);if(de===void 0)de=this.#f===0?this.#y:this.#b.length!==0?this.#b.pop():this.#f===this.#e?this.#x(!1):this.#f,this.#i[de]=o,this.#o[de]=f,this.#a.set(o,de),this.#h[this.#y]=de,this.#d[de]=this.#y,this.#y=de,this.#f++,this.#I(de,be,W),W&&(W.set="add"),G=!1,this.#O&&this.#r?.(f,o,"add");else{this.#j(de);let se=this.#o[de];if(f!==se){if(this.#A&&this.#T(se)){se.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Xe}=se;Xe!==void 0&&!A&&(this.#g&&this.#t?.(Xe,o,"set"),this.#l&&this.#v?.push([Xe,o,"set"]))}else A||(this.#g&&this.#t?.(se,o,"set"),this.#l&&this.#v?.push([se,o,"set"]));if(this.#U(de),this.#I(de,be,W),this.#o[de]=f,W){W.set="replace";let Xe=se&&this.#T(se)?se.__staleWhileFetching:se;Xe!==void 0&&(W.oldValue=Xe)}}else W&&(W.set="update");this.#O&&this.onInsert?.(f,o,f===se?"update":"replace")}if(y!==0&&!this.#S&&this.#N(),this.#S&&(G||this.#$(de,y,x),W&&this.#D(W,de)),!A&&this.#l&&this.#v){let se=this.#v,Xe;for(;Xe=se?.shift();)this.#s?.(...Xe)}return this}pop(){try{for(;this.#f;){let o=this.#o[this.#_];if(this.#x(!0),this.#T(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#l&&this.#v){let o=this.#v,f;for(;f=o?.shift();)this.#s?.(...f)}}}#x(o){let f=this.#_,d=this.#i[f],y=this.#o[f];return this.#A&&this.#T(y)?y.__abortController.abort(new Error("evicted")):(this.#g||this.#l)&&(this.#g&&this.#t?.(y,d,"evict"),this.#l&&this.#v?.push([y,d,"evict"])),this.#U(f),this.#E?.[f]&&(clearTimeout(this.#E[f]),this.#E[f]=void 0),o&&(this.#i[f]=void 0,this.#o[f]=void 0,this.#b.push(f)),this.#f===1?(this.#_=this.#y=0,this.#b.length=0):this.#_=this.#h[f],this.#a.delete(d),this.#f--,f}has(o,f={}){let{updateAgeOnHas:d=this.updateAgeOnHas,status:y}=f,x=this.#a.get(o);if(x!==void 0){let A=this.#o[x];if(this.#T(A)&&A.__staleWhileFetching===void 0)return!1;if(this.#P(x))y&&(y.has="stale",this.#D(y,x));else return d&&this.#w(x),y&&(y.has="hit",this.#D(y,x)),!0}else y&&(y.has="miss");return!1}peek(o,f={}){let{allowStale:d=this.allowStale}=f,y=this.#a.get(o);if(y===void 0||!d&&this.#P(y))return;let x=this.#o[y];return this.#T(x)?x.__staleWhileFetching:x}#W(o,f,d,y){let x=f===void 0?void 0:this.#o[f];if(this.#T(x))return x;let A=new koe,{signal:F}=d;F?.addEventListener("abort",()=>A.abort(F.reason),{signal:A.signal});let W={signal:A.signal,options:d,context:y},G=t((je,Vt=!1)=>{let{aborted:Ut}=A.signal,Ir=d.ignoreFetchAbort&&je!==void 0,wn=d.ignoreFetchAbort||!!(d.allowStaleOnFetchAbort&&je!==void 0);if(d.status&&(Ut&&!Vt?(d.status.fetchAborted=!0,d.status.fetchError=A.signal.reason,Ir&&(d.status.fetchAbortIgnored=!0)):d.status.fetchResolved=!0),Ut&&!Ir&&!Vt)return de(A.signal.reason,wn);let sn=Xe,Jn=this.#o[f];return(Jn===Xe||Ir&&Vt&&Jn===void 0)&&(je===void 0?sn.__staleWhileFetching!==void 0?this.#o[f]=sn.__staleWhileFetching:this.#B(o,"fetch"):(d.status&&(d.status.fetchUpdated=!0),this.set(o,je,W.options))),je},"l"),be=t(je=>(d.status&&(d.status.fetchRejected=!0,d.status.fetchError=je),de(je,!1)),"u"),de=t((je,Vt)=>{let{aborted:Ut}=A.signal,Ir=Ut&&d.allowStaleOnFetchAbort,wn=Ir||d.allowStaleOnFetchRejection,sn=wn||d.noDeleteOnFetchRejection,Jn=Xe;if(this.#o[f]===Xe&&(!sn||!Vt&&Jn.__staleWhileFetching===void 0?this.#B(o,"fetch"):Ir||(this.#o[f]=Jn.__staleWhileFetching)),wn)return d.status&&Jn.__staleWhileFetching!==void 0&&(d.status.returnedStale=!0),Jn.__staleWhileFetching;if(Jn.__returned===Jn)throw je},"c"),se=t((je,Vt)=>{let Ut=this.#m?.(o,x,W);Ut&&Ut instanceof Promise&&Ut.then(Ir=>je(Ir===void 0?void 0:Ir),Vt),A.signal.addEventListener("abort",()=>{(!d.ignoreFetchAbort||d.allowStaleOnFetchAbort)&&(je(void 0),d.allowStaleOnFetchAbort&&(je=t(Ir=>G(Ir,!0),"p")))})},"d");d.status&&(d.status.fetchDispatched=!0);let Xe=new Promise(se).then(G,be),Ue=Object.assign(Xe,{__abortController:A,__staleWhileFetching:x,__returned:void 0});return f===void 0?(this.set(o,Ue,{...W.options,status:void 0}),f=this.#a.get(o)):this.#o[f]=Ue,Ue}#T(o){if(!this.#A)return!1;let f=o;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof koe}async fetch(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,ttl:A=this.ttl,noDisposeOnSet:F=this.noDisposeOnSet,size:W=0,sizeCalculation:G=this.sizeCalculation,noUpdateTTL:be=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:se=this.allowStaleOnFetchRejection,ignoreFetchAbort:Xe=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ue=this.allowStaleOnFetchAbort,context:je,forceRefresh:Vt=!1,status:Ut,signal:Ir}=f;if(!this.#A)return Ut&&(Ut.fetch="get"),this.get(o,{allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,status:Ut});let wn={allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,ttl:A,noDisposeOnSet:F,size:W,sizeCalculation:G,noUpdateTTL:be,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:se,allowStaleOnFetchAbort:Ue,ignoreFetchAbort:Xe,status:Ut,signal:Ir},sn=this.#a.get(o);if(sn===void 0){Ut&&(Ut.fetch="miss");let Jn=this.#W(o,sn,wn,je);return Jn.__returned=Jn}else{let Jn=this.#o[sn];if(this.#T(Jn)){let bi=d&&Jn.__staleWhileFetching!==void 0;return Ut&&(Ut.fetch="inflight",bi&&(Ut.returnedStale=!0)),bi?Jn.__staleWhileFetching:Jn.__returned=Jn}let kr=this.#P(sn);if(!Vt&&!kr)return Ut&&(Ut.fetch="hit"),this.#j(sn),y&&this.#w(sn),Ut&&this.#D(Ut,sn),Jn;let yr=this.#W(o,sn,wn,je),xs=yr.__staleWhileFetching!==void 0&&d;return Ut&&(Ut.fetch=kr?"stale":"refresh",xs&&kr&&(Ut.returnedStale=!0)),xs?yr.__staleWhileFetching:yr.__returned=yr}}async forceFetch(o,f={}){let d=await this.fetch(o,f);if(d===void 0)throw new Error("fetch() returned undefined");return d}memo(o,f={}){let d=this.#c;if(!d)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:x,...A}=f,F=this.get(o,A);if(!x&&F!==void 0)return F;let W=d(o,F,{options:A,context:y});return this.set(o,W,A),W}get(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,status:A}=f,F=this.#a.get(o);if(F!==void 0){let W=this.#o[F],G=this.#T(W);return A&&this.#D(A,F),this.#P(F)?(A&&(A.get="stale"),G?(A&&d&&W.__staleWhileFetching!==void 0&&(A.returnedStale=!0),d?W.__staleWhileFetching:void 0):(x||this.#B(o,"expire"),A&&d&&(A.returnedStale=!0),d?W:void 0)):(A&&(A.get="hit"),G?W.__staleWhileFetching:(this.#j(F),y&&this.#w(F),W))}else A&&(A.get="miss")}#M(o,f){this.#d[f]=o,this.#h[o]=f}#j(o){o!==this.#y&&(o===this.#_?this.#_=this.#h[o]:this.#M(this.#d[o],this.#h[o]),this.#M(this.#y,o),this.#y=o)}delete(o){return this.#B(o,"delete")}#B(o,f){let d=!1;if(this.#f!==0){let y=this.#a.get(o);if(y!==void 0)if(this.#E?.[y]&&(clearTimeout(this.#E?.[y]),this.#E[y]=void 0),d=!0,this.#f===1)this.#q(f);else{this.#U(y);let x=this.#o[y];if(this.#T(x)?x.__abortController.abort(new Error("deleted")):(this.#g||this.#l)&&(this.#g&&this.#t?.(x,o,f),this.#l&&this.#v?.push([x,o,f])),this.#a.delete(o),this.#i[y]=void 0,this.#o[y]=void 0,y===this.#y)this.#y=this.#d[y];else if(y===this.#_)this.#_=this.#h[y];else{let A=this.#d[y];this.#h[A]=this.#h[y];let F=this.#h[y];this.#d[F]=this.#d[y]}this.#f--,this.#b.push(y)}}if(this.#l&&this.#v?.length){let y=this.#v,x;for(;x=y?.shift();)this.#s?.(...x)}return d}clear(){return this.#q("delete")}#q(o){for(let f of this.#L({allowStale:!0})){let d=this.#o[f];if(this.#T(d))d.__abortController.abort(new Error("deleted"));else{let y=this.#i[f];this.#g&&this.#t?.(d,y,o),this.#l&&this.#v?.push([d,y,o])}}if(this.#a.clear(),this.#o.fill(void 0),this.#i.fill(void 0),this.#S&&this.#k){this.#S.fill(0),this.#k.fill(0);for(let f of this.#E??[])f!==void 0&&clearTimeout(f);this.#E?.fill(void 0)}if(this.#C&&this.#C.fill(0),this.#_=0,this.#y=0,this.#b.length=0,this.#p=0,this.#f=0,this.#l&&this.#v){let f=this.#v,d;for(;d=f?.shift();)this.#s?.(...d)}}},qrt=typeof process=="object"&&process?process:{stdout:null,stderr:null},LKt=t(s=>!!s&&typeof s=="object"&&(s instanceof woe||s instanceof Snt||RKt(s)||MKt(s)),"oi"),RKt=t(s=>!!s&&typeof s=="object"&&s instanceof jPe&&typeof s.pipe=="function"&&s.pipe!==Snt.Writable.prototype.pipe,"hi"),MKt=t(s=>!!s&&typeof s=="object"&&s instanceof jPe&&typeof s.write=="function"&&typeof s.end=="function","ai"),RP=Symbol("EOF"),MP=Symbol("maybeEmitEnd"),VN=Symbol("emittedEnd"),hoe=Symbol("emittingEnd"),hV=Symbol("emittedError"),goe=Symbol("closed"),Vrt=Symbol("read"),yoe=Symbol("flush"),Hrt=Symbol("flushChunk"),gE=Symbol("encoding"),J9=Symbol("decoder"),Fg=Symbol("flowing"),gV=Symbol("paused"),W9=Symbol("resume"),Lg=Symbol("buffer"),A1=Symbol("pipes"),Rg=Symbol("bufferLength"),wPe=Symbol("bufferPush"),voe=Symbol("bufferShift"),xy=Symbol("objectMode"),Em=Symbol("destroyed"),DPe=Symbol("error"),PPe=Symbol("emitData"),Grt=Symbol("emitEnd"),APe=Symbol("emitEnd2"),Ak=Symbol("async"),NPe=Symbol("abort"),boe=Symbol("aborted"),yV=Symbol("signal"),_O=Symbol("dataListeners"),CS=Symbol("discarded"),vV=t(s=>Promise.resolve().then(s),"mt"),jKt=t(s=>s(),"li"),BKt=t(s=>s==="end"||s==="finish"||s==="prefinish","ci"),UKt=t(s=>s instanceof ArrayBuffer||!!s&&typeof s=="object"&&s.constructor&&s.constructor.name==="ArrayBuffer"&&s.byteLength>=0,"fi"),zKt=t(s=>!Buffer.isBuffer(s)&&ArrayBuffer.isView(s),"ui"),Tnt=class{static{t(this,"Mt")}src;dest;opts;ondrain;constructor(s,o,f){this.src=s,this.dest=o,this.opts=f,this.ondrain=()=>s[W9](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(s){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},$Kt=class extends Tnt{static{t(this,"te")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(s,o,f){super(s,o,f),this.proxyErrors=d=>this.dest.emit("error",d),s.on("error",this.proxyErrors)}},JKt=t(s=>!!s.objectMode,"di"),WKt=t(s=>!s.objectMode&&!!s.encoding&&s.encoding!=="buffer","pi"),woe=class extends jPe{static{t(this,"V")}[Fg]=!1;[gV]=!1;[A1]=[];[Lg]=[];[xy];[gE];[Ak];[J9];[RP]=!1;[VN]=!1;[hoe]=!1;[goe]=!1;[hV]=null;[Rg]=0;[Em]=!1;[yV];[boe]=!1;[_O]=0;[CS]=!1;writable=!0;readable=!0;constructor(...s){let o=s[0]||{};if(super(),o.objectMode&&typeof o.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");JKt(o)?(this[xy]=!0,this[gE]=null):WKt(o)?(this[gE]=o.encoding,this[xy]=!1):(this[xy]=!1,this[gE]=null),this[Ak]=!!o.async,this[J9]=this[gE]?new FKt(this[gE]):null,o&&o.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:t(()=>this[Lg],"get")}),o&&o.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:t(()=>this[A1],"get")});let{signal:f}=o;f&&(this[yV]=f,f.aborted?this[NPe]():f.addEventListener("abort",()=>this[NPe]()))}get bufferLength(){return this[Rg]}get encoding(){return this[gE]}set encoding(s){throw new Error("Encoding must be set at instantiation time")}setEncoding(s){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[xy]}set objectMode(s){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ak]}set async(s){this[Ak]=this[Ak]||!!s}[NPe](){this[boe]=!0,this.emit("abort",this[yV]?.reason),this.destroy(this[yV]?.reason)}get aborted(){return this[boe]}set aborted(s){}write(s,o,f){if(this[boe])return!1;if(this[RP])throw new Error("write after end");if(this[Em])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof o=="function"&&(f=o,o="utf8"),o||(o="utf8");let d=this[Ak]?vV:jKt;if(!this[xy]&&!Buffer.isBuffer(s)){if(zKt(s))s=Buffer.from(s.buffer,s.byteOffset,s.byteLength);else if(UKt(s))s=Buffer.from(s);else if(typeof s!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[xy]?(this[Fg]&&this[Rg]!==0&&this[yoe](!0),this[Fg]?this.emit("data",s):this[wPe](s),this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg]):s.length?(typeof s=="string"&&!(o===this[gE]&&!this[J9]?.lastNeed)&&(s=Buffer.from(s,o)),Buffer.isBuffer(s)&&this[gE]&&(s=this[J9].write(s)),this[Fg]&&this[Rg]!==0&&this[yoe](!0),this[Fg]?this.emit("data",s):this[wPe](s),this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg]):(this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg])}read(s){if(this[Em])return null;if(this[CS]=!1,this[Rg]===0||s===0||s&&s>this[Rg])return this[MP](),null;this[xy]&&(s=null),this[Lg].length>1&&!this[xy]&&(this[Lg]=[this[gE]?this[Lg].join(""):Buffer.concat(this[Lg],this[Rg])]);let o=this[Vrt](s||null,this[Lg][0]);return this[MP](),o}[Vrt](s,o){if(this[xy])this[voe]();else{let f=o;s===f.length||s===null?this[voe]():typeof f=="string"?(this[Lg][0]=f.slice(s),o=f.slice(0,s),this[Rg]-=s):(this[Lg][0]=f.subarray(s),o=f.subarray(0,s),this[Rg]-=s)}return this.emit("data",o),!this[Lg].length&&!this[RP]&&this.emit("drain"),o}end(s,o,f){return typeof s=="function"&&(f=s,s=void 0),typeof o=="function"&&(f=o,o="utf8"),s!==void 0&&this.write(s,o),f&&this.once("end",f),this[RP]=!0,this.writable=!1,(this[Fg]||!this[gV])&&this[MP](),this}[W9](){this[Em]||(!this[_O]&&!this[A1].length&&(this[CS]=!0),this[gV]=!1,this[Fg]=!0,this.emit("resume"),this[Lg].length?this[yoe]():this[RP]?this[MP]():this.emit("drain"))}resume(){return this[W9]()}pause(){this[Fg]=!1,this[gV]=!0,this[CS]=!1}get destroyed(){return this[Em]}get flowing(){return this[Fg]}get paused(){return this[gV]}[wPe](s){this[xy]?this[Rg]+=1:this[Rg]+=s.length,this[Lg].push(s)}[voe](){return this[xy]?this[Rg]-=1:this[Rg]-=this[Lg][0].length,this[Lg].shift()}[yoe](s=!1){do;while(this[Hrt](this[voe]())&&this[Lg].length);!s&&!this[Lg].length&&!this[RP]&&this.emit("drain")}[Hrt](s){return this.emit("data",s),this[Fg]}pipe(s,o){if(this[Em])return s;this[CS]=!1;let f=this[VN];return o=o||{},s===qrt.stdout||s===qrt.stderr?o.end=!1:o.end=o.end!==!1,o.proxyErrors=!!o.proxyErrors,f?o.end&&s.end():(this[A1].push(o.proxyErrors?new $Kt(this,s,o):new Tnt(this,s,o)),this[Ak]?vV(()=>this[W9]()):this[W9]()),s}unpipe(s){let o=this[A1].find(f=>f.dest===s);o&&(this[A1].length===1?(this[Fg]&&this[_O]===0&&(this[Fg]=!1),this[A1]=[]):this[A1].splice(this[A1].indexOf(o),1),o.unpipe())}addListener(s,o){return this.on(s,o)}on(s,o){let f=super.on(s,o);if(s==="data")this[CS]=!1,this[_O]++,!this[A1].length&&!this[Fg]&&this[W9]();else if(s==="readable"&&this[Rg]!==0)super.emit("readable");else if(BKt(s)&&this[VN])super.emit(s),this.removeAllListeners(s);else if(s==="error"&&this[hV]){let d=o;this[Ak]?vV(()=>d.call(this,this[hV])):d.call(this,this[hV])}return f}removeListener(s,o){return this.off(s,o)}off(s,o){let f=super.off(s,o);return s==="data"&&(this[_O]=this.listeners("data").length,this[_O]===0&&!this[CS]&&!this[A1].length&&(this[Fg]=!1)),f}removeAllListeners(s){let o=super.removeAllListeners(s);return(s==="data"||s===void 0)&&(this[_O]=0,!this[CS]&&!this[A1].length&&(this[Fg]=!1)),o}get emittedEnd(){return this[VN]}[MP](){!this[hoe]&&!this[VN]&&!this[Em]&&this[Lg].length===0&&this[RP]&&(this[hoe]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[goe]&&this.emit("close"),this[hoe]=!1)}emit(s,...o){let f=o[0];if(s!=="error"&&s!=="close"&&s!==Em&&this[Em])return!1;if(s==="data")return!this[xy]&&!f?!1:this[Ak]?(vV(()=>this[PPe](f)),!0):this[PPe](f);if(s==="end")return this[Grt]();if(s==="close"){if(this[goe]=!0,!this[VN]&&!this[Em])return!1;let y=super.emit("close");return this.removeAllListeners("close"),y}else if(s==="error"){this[hV]=f,super.emit(DPe,f);let y=!this[yV]||this.listeners("error").length?super.emit("error",f):!1;return this[MP](),y}else if(s==="resume"){let y=super.emit("resume");return this[MP](),y}else if(s==="finish"||s==="prefinish"){let y=super.emit(s);return this.removeAllListeners(s),y}let d=super.emit(s,...o);return this[MP](),d}[PPe](s){for(let f of this[A1])f.dest.write(s)===!1&&this.pause();let o=this[CS]?!1:super.emit("data",s);return this[MP](),o}[Grt](){return this[VN]?!1:(this[VN]=!0,this.readable=!1,this[Ak]?(vV(()=>this[APe]()),!0):this[APe]())}[APe](){if(this[J9]){let o=this[J9].end();if(o){for(let f of this[A1])f.dest.write(o);this[CS]||super.emit("data",o)}}for(let o of this[A1])o.end();let s=super.emit("end");return this.removeAllListeners("end"),s}async collect(){let s=Object.assign([],{dataLength:0});this[xy]||(s.dataLength=0);let o=this.promise();return this.on("data",f=>{s.push(f),this[xy]||(s.dataLength+=f.length)}),await o,s}async concat(){if(this[xy])throw new Error("cannot concat in objectMode");let s=await this.collect();return this[gE]?s.join(""):Buffer.concat(s,s.dataLength)}async promise(){return new Promise((s,o)=>{this.on(Em,()=>o(new Error("stream destroyed"))),this.on("error",f=>o(f)),this.on("end",()=>s())})}[Symbol.asyncIterator](){this[CS]=!1;let s=!1,o=t(async()=>(this.pause(),s=!0,{value:void 0,done:!0}),"e");return{next:t(()=>{if(s)return o();let f=this.read();if(f!==null)return Promise.resolve({done:!1,value:f});if(this[RP])return o();let d,y,x=t(G=>{this.off("data",A),this.off("end",F),this.off(Em,W),o(),y(G)},"h"),A=t(G=>{this.off("error",x),this.off("end",F),this.off(Em,W),this.pause(),d({value:G,done:!!this[RP]})},"a"),F=t(()=>{this.off("error",x),this.off("data",A),this.off(Em,W),o(),d({done:!0,value:void 0})},"l"),W=t(()=>x(new Error("stream destroyed")),"u");return new Promise((G,be)=>{y=be,d=G,this.once(Em,W),this.once("error",x),this.once("end",F),this.once("data",A)})},"next"),throw:o,return:o,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[CS]=!1;let s=!1,o=t(()=>(this.pause(),this.off(DPe,o),this.off(Em,o),this.off("end",o),s=!0,{done:!0,value:void 0}),"e"),f=t(()=>{if(s)return o();let d=this.read();return d===null?o():{done:!1,value:d}},"s");return this.once("end",o),this.once(DPe,o),this.once(Em,o),{next:f,throw:o,return:o,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(s){if(this[Em])return s?this.emit("error",s):this.emit(Em),this;this[Em]=!0,this[CS]=!0,this[Lg].length=0,this[Rg]=0;let o=this;return typeof o.close=="function"&&!this[goe]&&o.close(),s?this.emit("error",s):this.emit(Em),this}static get isStream(){return LKt}},qKt=DKt.native,xV={lstatSync:EKt,readdir:CKt,readdirSync:kKt,readlinkSync:wKt,realpathSync:qKt,promises:{lstat:AKt,readdir:NKt,readlink:IKt,realpath:OKt}},xnt=t(s=>!s||s===xV||s===PKt?xV:{...xV,...s,promises:{...xV.promises,...s.promises||{}}},"Ue"),Ent=/^\\\\\?\\([a-z]:)\\?$/i,VKt=t(s=>s.replace(/\//g,"\\").replace(Ent,"$1\\"),"Ri"),HKt=/[\\\/]/,oT=0,Cnt=1,knt=2,Nk=4,wnt=6,Dnt=8,pO=10,Pnt=12,aT=15,bV=~aT,IPe=16,Yrt=32,EV=64,yE=128,Soe=256,Eoe=512,Krt=EV|yE|Eoe,GKt=1023,OPe=t(s=>s.isFile()?Dnt:s.isDirectory()?Nk:s.isSymbolicLink()?pO:s.isCharacterDevice()?knt:s.isBlockDevice()?wnt:s.isSocket()?Pnt:s.isFIFO()?Cnt:oT,"ie"),Xrt=new Doe({max:2**12}),CV=t(s=>{let o=Xrt.get(s);if(o)return o;let f=s.normalize("NFKD");return Xrt.set(s,f),f},"bt"),Zrt=new Doe({max:2**12}),Toe=t(s=>{let o=Zrt.get(s);if(o)return o;let f=CV(s.toLowerCase());return Zrt.set(s,f),f},"_t"),Qrt=class extends Doe{static{t(this,"Wt")}constructor(){super({max:256})}},YKt=class extends Doe{static{t(this,"ne")}constructor(s=16*1024){super({maxSize:s,sizeCalculation:t(o=>o.length+1,"sizeCalculation")})}},Ant=Symbol("PathScurry setAsCwd"),Gv=class{static{t(this,"R")}name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#t;get mode(){return this.#t}#r;get nlink(){return this.#r}#s;get uid(){return this.#s}#m;get gid(){return this.#m}#c;get rdev(){return this.#c}#u;get blksize(){return this.#u}#f;get ino(){return this.#f}#p;get size(){return this.#p}#a;get blocks(){return this.#a}#i;get atimeMs(){return this.#i}#o;get mtimeMs(){return this.#o}#h;get ctimeMs(){return this.#h}#d;get birthtimeMs(){return this.#d}#_;get atime(){return this.#_}#y;get mtime(){return this.#y}#b;get ctime(){return this.#b}#v;get birthtime(){return this.#v}#C;#k;#S;#E;#g;#A;#l;#O;#N;#w;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(s,o=oT,f,d,y,x,A){this.name=s,this.#C=y?Toe(s):CV(s),this.#l=o&GKt,this.nocase=y,this.roots=d,this.root=f||this,this.#O=x,this.#S=A.fullpath,this.#g=A.relative,this.#A=A.relativePosix,this.parent=A.parent,this.parent?this.#e=this.parent.#e:this.#e=xnt(A.fs)}depth(){return this.#k!==void 0?this.#k:this.parent?this.#k=this.parent.depth()+1:this.#k=0}childrenCache(){return this.#O}resolve(s){if(!s)return this;let o=this.getRootString(s),f=s.substring(o.length).split(this.splitSep);return o?this.getRoot(o).#D(f):this.#D(f)}#D(s){let o=this;for(let f of s)o=o.child(f);return o}children(){let s=this.#O.get(this);if(s)return s;let o=Object.assign([],{provisional:0});return this.#O.set(this,o),this.#l&=~IPe,o}child(s,o){if(s===""||s===".")return this;if(s==="..")return this.parent||this;let f=this.children(),d=this.nocase?Toe(s):CV(s);for(let F of f)if(F.#C===d)return F;let y=this.parent?this.sep:"",x=this.#S?this.#S+y+s:void 0,A=this.newChild(s,oT,{...o,parent:this,fullpath:x});return this.canReaddir()||(A.#l|=yE),f.push(A),A}relative(){if(this.isCWD)return"";if(this.#g!==void 0)return this.#g;let s=this.name,o=this.parent;if(!o)return this.#g=this.name;let f=o.relative();return f+(!f||!o.parent?"":this.sep)+s}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let s=this.name,o=this.parent;if(!o)return this.#A=this.fullpathPosix();let f=o.relativePosix();return f+(!f||!o.parent?"":"/")+s}fullpath(){if(this.#S!==void 0)return this.#S;let s=this.name,o=this.parent;if(!o)return this.#S=this.name;let f=o.fullpath()+(o.parent?this.sep:"")+s;return this.#S=f}fullpathPosix(){if(this.#E!==void 0)return this.#E;if(this.sep==="/")return this.#E=this.fullpath();if(!this.parent){let d=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(d)?this.#E=`//?/${d}`:this.#E=d}let s=this.parent,o=s.fullpathPosix(),f=o+(!o||!s.parent?"":"/")+this.name;return this.#E=f}isUnknown(){return(this.#l&aT)===oT}isType(s){return this[`is${s}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#l&aT)===Dnt}isDirectory(){return(this.#l&aT)===Nk}isCharacterDevice(){return(this.#l&aT)===knt}isBlockDevice(){return(this.#l&aT)===wnt}isFIFO(){return(this.#l&aT)===Cnt}isSocket(){return(this.#l&aT)===Pnt}isSymbolicLink(){return(this.#l&pO)===pO}lstatCached(){return this.#l&Yrt?this:void 0}readlinkCached(){return this.#N}realpathCached(){return this.#w}readdirCached(){let s=this.children();return s.slice(0,s.provisional)}canReadlink(){if(this.#N)return!0;if(!this.parent)return!1;let s=this.#l&aT;return!(s!==oT&&s!==pO||this.#l&Soe||this.#l&yE)}calledReaddir(){return!!(this.#l&IPe)}isENOENT(){return!!(this.#l&yE)}isNamed(s){return this.nocase?this.#C===Toe(s):this.#C===CV(s)}async readlink(){let s=this.#N;if(s)return s;if(this.canReadlink()&&this.parent)try{let o=await this.#e.promises.readlink(this.fullpath()),f=(await this.parent.realpath())?.resolve(o);if(f)return this.#N=f}catch(o){this.#L(o.code);return}}readlinkSync(){let s=this.#N;if(s)return s;if(this.canReadlink()&&this.parent)try{let o=this.#e.readlinkSync(this.fullpath()),f=this.parent.realpathSync()?.resolve(o);if(f)return this.#N=f}catch(o){this.#L(o.code);return}}#$(s){this.#l|=IPe;for(let o=s.provisional;o<s.length;o++){let f=s[o];f&&f.#P()}}#P(){this.#l&yE||(this.#l=(this.#l|yE)&bV,this.#J())}#J(){let s=this.children();s.provisional=0;for(let o of s)o.#P()}#U(){this.#l|=Eoe,this.#I()}#I(){if(this.#l&EV)return;let s=this.#l;(s&aT)===Nk&&(s&=bV),this.#l=s|EV,this.#J()}#F(s=""){s==="ENOTDIR"||s==="EPERM"?this.#I():s==="ENOENT"?this.#P():this.children().provisional=0}#R(s=""){s==="ENOTDIR"?this.parent.#I():s==="ENOENT"&&this.#P()}#L(s=""){let o=this.#l;o|=Soe,s==="ENOENT"&&(o|=yE),(s==="EINVAL"||s==="UNKNOWN")&&(o&=bV),this.#l=o,s==="ENOTDIR"&&this.parent&&this.parent.#I()}#z(s,o){return this.#W(s,o)||this.#x(s,o)}#x(s,o){let f=OPe(s),d=this.newChild(s.name,f,{parent:this}),y=d.#l&aT;return y!==Nk&&y!==pO&&y!==oT&&(d.#l|=EV),o.unshift(d),o.provisional++,d}#W(s,o){for(let f=o.provisional;f<o.length;f++){let d=o[f];if((this.nocase?Toe(s.name):CV(s.name))===d.#C)return this.#T(s,d,f,o)}}#T(s,o,f,d){let y=o.name;return o.#l=o.#l&bV|OPe(s),y!==s.name&&(o.name=s.name),f!==d.provisional&&(f===d.length-1?d.pop():d.splice(f,1),d.unshift(o)),d.provisional++,o}async lstat(){if((this.#l&yE)===0)try{return this.#M(await this.#e.promises.lstat(this.fullpath())),this}catch(s){this.#R(s.code)}}lstatSync(){if((this.#l&yE)===0)try{return this.#M(this.#e.lstatSync(this.fullpath())),this}catch(s){this.#R(s.code)}}#M(s){let{atime:o,atimeMs:f,birthtime:d,birthtimeMs:y,blksize:x,blocks:A,ctime:F,ctimeMs:W,dev:G,gid:be,ino:de,mode:se,mtime:Xe,mtimeMs:Ue,nlink:je,rdev:Vt,size:Ut,uid:Ir}=s;this.#_=o,this.#i=f,this.#v=d,this.#d=y,this.#u=x,this.#a=A,this.#b=F,this.#h=W,this.#n=G,this.#m=be,this.#f=de,this.#t=se,this.#y=Xe,this.#o=Ue,this.#r=je,this.#c=Vt,this.#p=Ut,this.#s=Ir;let wn=OPe(s);this.#l=this.#l&bV|wn|Yrt,wn!==oT&&wn!==Nk&&wn!==pO&&(this.#l|=EV)}#j=[];#B=!1;#q(s){this.#B=!1;let o=this.#j.slice();this.#j.length=0,o.forEach(f=>f(null,s))}readdirCB(s,o=!1){if(!this.canReaddir()){o?s(null,[]):queueMicrotask(()=>s(null,[]));return}let f=this.children();if(this.calledReaddir()){let y=f.slice(0,f.provisional);o?s(null,y):queueMicrotask(()=>s(null,y));return}if(this.#j.push(s),this.#B)return;this.#B=!0;let d=this.fullpath();this.#e.readdir(d,{withFileTypes:!0},(y,x)=>{if(y)this.#F(y.code),f.provisional=0;else{for(let A of x)this.#z(A,f);this.#$(f)}this.#q(f.slice(0,f.provisional))})}#V;async readdir(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let o=this.fullpath();if(this.#V)await this.#V;else{let f=t(()=>{},"s");this.#V=new Promise(d=>f=d);try{for(let d of await this.#e.promises.readdir(o,{withFileTypes:!0}))this.#z(d,s);this.#$(s)}catch(d){this.#F(d.code),s.provisional=0}this.#V=void 0,f()}return s.slice(0,s.provisional)}readdirSync(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let o=this.fullpath();try{for(let f of this.#e.readdirSync(o,{withFileTypes:!0}))this.#z(f,s);this.#$(s)}catch(f){this.#F(f.code),s.provisional=0}return s.slice(0,s.provisional)}canReaddir(){if(this.#l&Krt)return!1;let s=aT&this.#l;return s===oT||s===Nk||s===pO}shouldWalk(s,o){return(this.#l&Nk)===Nk&&!(this.#l&Krt)&&!s.has(this)&&(!o||o(this))}async realpath(){if(this.#w)return this.#w;if(!((Eoe|Soe|yE)&this.#l))try{let s=await this.#e.promises.realpath(this.fullpath());return this.#w=this.resolve(s)}catch{this.#U()}}realpathSync(){if(this.#w)return this.#w;if(!((Eoe|Soe|yE)&this.#l))try{let s=this.#e.realpathSync(this.fullpath());return this.#w=this.resolve(s)}catch{this.#U()}}[Ant](s){if(s===this)return;s.isCWD=!1,this.isCWD=!0;let o=new Set([]),f=[],d=this;for(;d&&d.parent;)o.add(d),d.#g=f.join(this.sep),d.#A=f.join("/"),d=d.parent,f.push("..");for(d=s;d&&d.parent&&!o.has(d);)d.#g=void 0,d.#A=void 0,d=d.parent}},Nnt=class Int extends Gv{static{t(this,"n")}sep="\\";splitSep=HKt;constructor(o,f=oT,d,y,x,A,F){super(o,f,d,y,x,A,F)}newChild(o,f=oT,d={}){return new Int(o,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}getRootString(o){return LPe.parse(o).root}getRoot(o){if(o=VKt(o.toUpperCase()),o===this.root.name)return this.root;for(let[f,d]of Object.entries(this.roots))if(this.sameRoot(o,f))return this.roots[o]=d;return this.roots[o]=new BPe(o,this).root}sameRoot(o,f=this.root.name){return o=o.toUpperCase().replace(/\//g,"\\").replace(Ent,"$1\\"),o===f}},Ont=class Fnt extends Gv{static{t(this,"n")}splitSep="/";sep="/";constructor(o,f=oT,d,y,x,A,F){super(o,f,d,y,x,A,F)}getRootString(o){return o.startsWith("/")?"/":""}getRoot(o){return this.root}newChild(o,f=oT,d={}){return new Fnt(o,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}},Lnt=class{static{t(this,"It")}root;rootPath;roots;cwd;#e;#n;#t;nocase;#r;constructor(s=process.cwd(),o,f,{nocase:d,childrenCacheSize:y=16*1024,fs:x=xV}={}){this.#r=xnt(x),(s instanceof URL||s.startsWith("file://"))&&(s=xKt(s));let A=o.resolve(s);this.roots=Object.create(null),this.rootPath=this.parseRootPath(A),this.#e=new Qrt,this.#n=new Qrt,this.#t=new YKt(y);let F=A.substring(this.rootPath.length).split(f);if(F.length===1&&!F[0]&&F.pop(),d===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=d,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let W=this.root,G=F.length-1,be=o.sep,de=this.rootPath,se=!1;for(let Xe of F){let Ue=G--;W=W.child(Xe,{relative:new Array(Ue).fill("..").join(be),relativePosix:new Array(Ue).fill("..").join("/"),fullpath:de+=(se?"":be)+Xe}),se=!0}this.cwd=W}depth(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.depth()}childrenCache(){return this.#t}resolve(...s){let o="";for(let y=s.length-1;y>=0;y--){let x=s[y];if(!(!x||x===".")&&(o=o?`${x}/${o}`:x,this.isAbsolute(x)))break}let f=this.#e.get(o);if(f!==void 0)return f;let d=this.cwd.resolve(o).fullpath();return this.#e.set(o,d),d}resolvePosix(...s){let o="";for(let y=s.length-1;y>=0;y--){let x=s[y];if(!(!x||x===".")&&(o=o?`${x}/${o}`:x,this.isAbsolute(x)))break}let f=this.#n.get(o);if(f!==void 0)return f;let d=this.cwd.resolve(o).fullpathPosix();return this.#n.set(o,d),d}relative(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relative()}relativePosix(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relativePosix()}basename(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.name}dirname(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),(s.parent||s).fullpath()}async readdir(s=this.cwd,o={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f}=o;if(s.canReaddir()){let d=await s.readdir();return f?d:d.map(y=>y.name)}else return[]}readdirSync(s=this.cwd,o={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0}=o;return s.canReaddir()?f?s.readdirSync():s.readdirSync().map(d=>d.name):[]}async lstat(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstat()}lstatSync(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstatSync()}async readlink(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=await s.readlink();return o?f:f?.fullpath()}readlinkSync(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=s.readlinkSync();return o?f:f?.fullpath()}async realpath(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=await s.realpath();return o?f:f?.fullpath()}realpathSync(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=s.realpathSync();return o?f:f?.fullpath()}async walk(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,A=[];(!y||y(s))&&A.push(f?s:s.fullpath());let F=new Set,W=t((be,de)=>{F.add(be),be.readdirCB((se,Xe)=>{if(se)return de(se);let Ue=Xe.length;if(!Ue)return de();let je=t(()=>{--Ue===0&&de()},"w");for(let Vt of Xe)(!y||y(Vt))&&A.push(f?Vt:Vt.fullpath()),d&&Vt.isSymbolicLink()?Vt.realpath().then(Ut=>Ut?.isUnknown()?Ut.lstat():Ut).then(Ut=>Ut?.shouldWalk(F,x)?W(Ut,je):je()):Vt.shouldWalk(F,x)?W(Vt,je):je()},!0)},"l"),G=s;return new Promise((be,de)=>{W(G,se=>{if(se)return de(se);be(A)})})}walkSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,A=[];(!y||y(s))&&A.push(f?s:s.fullpath());let F=new Set([s]);for(let W of F){let G=W.readdirSync();for(let be of G){(!y||y(be))&&A.push(f?be:be.fullpath());let de=be;if(be.isSymbolicLink()){if(!(d&&(de=be.realpathSync())))continue;de.isUnknown()&&de.lstatSync()}de.shouldWalk(F,x)&&F.add(de)}}return A}[Symbol.asyncIterator](){return this.iterate()}iterate(s=this.cwd,o={}){return typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd),this.stream(s,o)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o;(!y||y(s))&&(yield f?s:s.fullpath());let A=new Set([s]);for(let F of A){let W=F.readdirSync();for(let G of W){(!y||y(G))&&(yield f?G:G.fullpath());let be=G;if(G.isSymbolicLink()){if(!(d&&(be=G.realpathSync())))continue;be.isUnknown()&&be.lstatSync()}be.shouldWalk(A,x)&&A.add(be)}}}stream(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,A=new woe({objectMode:!0});(!y||y(s))&&A.write(f?s:s.fullpath());let F=new Set,W=[s],G=0,be=t(()=>{let de=!1;for(;!de;){let se=W.shift();if(!se){G===0&&A.end();return}G++,F.add(se);let Xe=t((je,Vt,Ut=!1)=>{if(je)return A.emit("error",je);if(d&&!Ut){let Ir=[];for(let wn of Vt)wn.isSymbolicLink()&&Ir.push(wn.realpath().then(sn=>sn?.isUnknown()?sn.lstat():sn));if(Ir.length){Promise.all(Ir).then(()=>Xe(null,Vt,!0));return}}for(let Ir of Vt)Ir&&(!y||y(Ir))&&(A.write(f?Ir:Ir.fullpath())||(de=!0));G--;for(let Ir of Vt){let wn=Ir.realpathCached()||Ir;wn.shouldWalk(F,x)&&W.push(wn)}de&&!A.flowing?A.once("drain",be):Ue||be()},"m"),Ue=!0;se.readdirCB(Xe,!0),Ue=!1}},"c");return be(),A}streamSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,A=new woe({objectMode:!0}),F=new Set;(!y||y(s))&&A.write(f?s:s.fullpath());let W=[s],G=0,be=t(()=>{let de=!1;for(;!de;){let se=W.shift();if(!se){G===0&&A.end();return}G++,F.add(se);let Xe=se.readdirSync();for(let Ue of Xe)(!y||y(Ue))&&(A.write(f?Ue:Ue.fullpath())||(de=!0));G--;for(let Ue of Xe){let je=Ue;if(Ue.isSymbolicLink()){if(!(d&&(je=Ue.realpathSync())))continue;je.isUnknown()&&je.lstatSync()}je.shouldWalk(F,x)&&W.push(je)}}de&&!A.flowing&&A.once("drain",be)},"c");return be(),A}chdir(s=this.cwd){let o=this.cwd;this.cwd=typeof s=="string"?this.cwd.resolve(s):s,this.cwd[Ant](o)}},BPe=class extends Lnt{static{t(this,"it")}sep="\\";constructor(s=process.cwd(),o={}){let{nocase:f=!0}=o;super(s,LPe,"\\",{...o,nocase:f}),this.nocase=f;for(let d=this.cwd;d;d=d.parent)d.nocase=this.nocase}parseRootPath(s){return LPe.parse(s).root.toUpperCase()}newRoot(s){return new Nnt(this.rootPath,Nk,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")||s.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(s)}},UPe=class extends Lnt{static{t(this,"rt")}sep="/";constructor(s=process.cwd(),o={}){let{nocase:f=!1}=o;super(s,TKt,"/",{...o,nocase:f}),this.nocase=f}parseRootPath(s){return"/"}newRoot(s){return new Ont(this.rootPath,Nk,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")}},Rnt=class extends UPe{static{t(this,"St")}constructor(s=process.cwd(),o={}){let{nocase:f=!0}=o;super(s,{...o,nocase:f})}},QEr=process.platform==="win32"?Nnt:Ont,KKt=process.platform==="win32"?BPe:process.platform==="darwin"?Rnt:UPe,XKt=t(s=>s.length>=1,"Di"),ZKt=t(s=>s.length>=1,"Mi"),QKt=Symbol.for("nodejs.util.inspect.custom"),Mnt=class jnt{static{t(this,"n")}#e;#n;#t;length;#r;#s;#m;#c;#u;#f;#p=!0;constructor(o,f,d,y){if(!XKt(o))throw new TypeError("empty pattern list");if(!ZKt(f))throw new TypeError("empty glob list");if(f.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,d<0||d>=this.length)throw new TypeError("index out of range");if(this.#e=o,this.#n=f,this.#t=d,this.#r=y,this.#t===0){if(this.isUNC()){let[x,A,F,W,...G]=this.#e,[be,de,se,Xe,...Ue]=this.#n;G[0]===""&&(G.shift(),Ue.shift());let je=[x,A,F,W,""].join("/"),Vt=[be,de,se,Xe,""].join("/");this.#e=[je,...G],this.#n=[Vt,...Ue],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[x,...A]=this.#e,[F,...W]=this.#n;A[0]===""&&(A.shift(),W.shift());let G=x+"/",be=F+"/";this.#e=[G,...A],this.#n=[be,...W],this.length=this.#e.length}}}[QKt](){return"Pattern <"+this.#n.slice(this.#t).join("/")+">"}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===N1}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#m=this.#m||(this.#t===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#s!==void 0?this.#s:this.hasMore()?(this.#s=new jnt(this.#e,this.#n,this.#t+1,this.#r),this.#s.#f=this.#f,this.#s.#u=this.#u,this.#s.#c=this.#c,this.#s):this.#s=null}isUNC(){let o=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#r==="win32"&&this.#t===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#r==="win32"&&this.#t===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#e;return this.#f!==void 0?this.#f:this.#f=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#e[0];return typeof o=="string"&&this.isAbsolute()&&this.#t===0?o:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#p)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#p?!1:(this.#p=!1,!0)}},eXt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ent=class{static{t(this,"ot")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(s,{nobrace:o,nocase:f,noext:d,noglobstar:y,platform:x=eXt}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=x,this.mmopts={dot:!0,nobrace:o,nocase:f,noext:d,noglobstar:y,optimizationLevel:2,platform:x,nocomment:!0,nonegate:!0};for(let A of s)this.add(A)}add(s){let o=new GN(s,this.mmopts);for(let f=0;f<o.set.length;f++){let d=o.set[f],y=o.globParts[f];if(!d||!y)throw new Error("invalid pattern object");for(;d[0]==="."&&y[0]===".";)d.shift(),y.shift();let x=new Mnt(d,y,0,this.platform),A=new GN(x.globString(),this.mmopts),F=y[y.length-1]==="**",W=x.isAbsolute();W?this.absolute.push(A):this.relative.push(A),F&&(W?this.absoluteChildren.push(A):this.relativeChildren.push(A))}}ignored(s){let o=s.fullpath(),f=`${o}/`,d=s.relative()||".",y=`${d}/`;for(let x of this.relative)if(x.match(d)||x.match(y))return!0;for(let x of this.absolute)if(x.match(o)||x.match(f))return!0;return!1}childrenIgnored(s){let o=s.fullpath()+"/",f=(s.relative()||".")+"/";for(let d of this.relativeChildren)if(d.match(f))return!0;for(let d of this.absoluteChildren)if(d.match(o))return!0;return!1}},tXt=class Bnt{static{t(this,"n")}store;constructor(o=new Map){this.store=o}copy(){return new Bnt(new Map(this.store))}hasWalked(o,f){return this.store.get(o.fullpath())?.has(f.globString())}storeWalked(o,f){let d=o.fullpath(),y=this.store.get(d);y?y.add(f.globString()):this.store.set(d,new Set([f.globString()]))}},rXt=class{static{t(this,"he")}store=new Map;add(s,o,f){let d=(o?2:0)|(f?1:0),y=this.store.get(s);this.store.set(s,y===void 0?d:d&y)}entries(){return[...this.store.entries()].map(([s,o])=>[s,!!(o&2),!!(o&1)])}},nXt=class{static{t(this,"ae")}store=new Map;add(s,o){if(!s.canReaddir())return;let f=this.store.get(s);f?f.find(d=>d.globString()===o.globString())||f.push(o):this.store.set(s,[o])}get(s){let o=this.store.get(s);if(!o)throw new Error("attempting to walk unknown path");return o}entries(){return this.keys().map(s=>[s,this.store.get(s)])}keys(){return[...this.store.keys()].filter(s=>s.canReaddir())}},tnt=class Unt{static{t(this,"n")}hasWalkedCache;matches=new rXt;subwalks=new nXt;patterns;follow;dot;opts;constructor(o,f){this.opts=o,this.follow=!!o.follow,this.dot=!!o.dot,this.hasWalkedCache=f?f.copy():new tXt}processPatterns(o,f){this.patterns=f;let d=f.map(y=>[o,y]);for(let[y,x]of d){this.hasWalkedCache.storeWalked(y,x);let A=x.root(),F=x.isAbsolute()&&this.opts.absolute!==!1;if(A){y=y.resolve(A==="/"&&this.opts.root!==void 0?this.opts.root:A);let de=x.rest();if(de)x=de;else{this.matches.add(y,!0,!1);continue}}if(y.isENOENT())continue;let W,G,be=!1;for(;typeof(W=x.pattern())=="string"&&(G=x.rest());)y=y.resolve(W),x=G,be=!0;if(W=x.pattern(),G=x.rest(),be){if(this.hasWalkedCache.hasWalked(y,x))continue;this.hasWalkedCache.storeWalked(y,x)}if(typeof W=="string"){let de=W===".."||W===""||W===".";this.matches.add(y.resolve(W),F,de);continue}else if(W===N1){(!y.isSymbolicLink()||this.follow||x.checkFollowGlobstar())&&this.subwalks.add(y,x);let de=G?.pattern(),se=G?.rest();if(!G||(de===""||de===".")&&!se)this.matches.add(y,F,de===""||de===".");else if(de===".."){let Xe=y.parent||y;se?this.hasWalkedCache.hasWalked(Xe,se)||this.subwalks.add(Xe,se):this.matches.add(Xe,F,!0)}}else W instanceof RegExp&&this.subwalks.add(y,x)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Unt(this.opts,this.hasWalkedCache)}filterEntries(o,f){let d=this.subwalks.get(o),y=this.child();for(let x of f)for(let A of d){let F=A.isAbsolute(),W=A.pattern(),G=A.rest();W===N1?y.testGlobstar(x,A,G,F):W instanceof RegExp?y.testRegExp(x,W,G,F):y.testString(x,W,G,F)}return y}testGlobstar(o,f,d,y){if((this.dot||!o.name.startsWith("."))&&(f.hasMore()||this.matches.add(o,y,!1),o.canReaddir()&&(this.follow||!o.isSymbolicLink()?this.subwalks.add(o,f):o.isSymbolicLink()&&(d&&f.checkFollowGlobstar()?this.subwalks.add(o,d):f.markFollowGlobstar()&&this.subwalks.add(o,f)))),d){let x=d.pattern();if(typeof x=="string"&&x!==".."&&x!==""&&x!==".")this.testString(o,x,d.rest(),y);else if(x===".."){let A=o.parent||o;this.subwalks.add(A,d)}else x instanceof RegExp&&this.testRegExp(o,x,d.rest(),y)}}testRegExp(o,f,d,y){f.test(o.name)&&(d?this.subwalks.add(o,d):this.matches.add(o,y,!1))}testString(o,f,d,y){o.isNamed(f)&&(d?this.subwalks.add(o,d):this.matches.add(o,y,!1))}},iXt=t((s,o)=>typeof s=="string"?new ent([s],o):Array.isArray(s)?new ent(s,o):s,"Li"),znt=class{static{t(this,"zt")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#t;signal;maxDepth;includeChildMatches;constructor(s,o,f){if(this.patterns=s,this.path=o,this.opts=f,this.#t=!f.posix&&f.platform==="win32"?"\\":"/",this.includeChildMatches=f.includeChildMatches!==!1,(f.ignore||!this.includeChildMatches)&&(this.#n=iXt(f.ignore??[],f),!this.includeChildMatches&&typeof this.#n.add!="function")){let d="cannot ignore child matches, ignore lacks add() method.";throw new Error(d)}this.maxDepth=f.maxDepth||1/0,f.signal&&(this.signal=f.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(s){return this.seen.has(s)||!!this.#n?.ignored?.(s)}#s(s){return!!this.#n?.childrenIgnored?.(s)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let s;for(;!this.paused&&(s=this.#e.shift());)s()}onResume(s){this.signal?.aborted||(this.paused?this.#e.push(s):s())}async matchCheck(s,o){if(o&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=s.realpathCached()||await s.realpath(),!f)return;s=f}let d=s.isUnknown()||this.opts.stat?await s.lstat():s;if(this.opts.follow&&this.opts.nodir&&d?.isSymbolicLink()){let y=await d.realpath();y&&(y.isUnknown()||this.opts.stat)&&await y.lstat()}return this.matchCheckTest(d,o)}matchCheckTest(s,o){return s&&(this.maxDepth===1/0||s.depth()<=this.maxDepth)&&(!o||s.canReaddir())&&(!this.opts.nodir||!s.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!s.isSymbolicLink()||!s.realpathCached()?.isDirectory())&&!this.#r(s)?s:void 0}matchCheckSync(s,o){if(o&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=s.realpathCached()||s.realpathSync(),!f)return;s=f}let d=s.isUnknown()||this.opts.stat?s.lstatSync():s;if(this.opts.follow&&this.opts.nodir&&d?.isSymbolicLink()){let y=d.realpathSync();y&&(y?.isUnknown()||this.opts.stat)&&y.lstatSync()}return this.matchCheckTest(d,o)}matchFinish(s,o){if(this.#r(s))return;if(!this.includeChildMatches&&this.#n?.add){let y=`${s.relativePosix()}/**`;this.#n.add(y)}let f=this.opts.absolute===void 0?o:this.opts.absolute;this.seen.add(s);let d=this.opts.mark&&s.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(s);else if(f){let y=this.opts.posix?s.fullpathPosix():s.fullpath();this.matchEmit(y+d)}else{let y=this.opts.posix?s.relativePosix():s.relative(),x=this.opts.dotRelative&&!y.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(y?x+y+d:"."+d)}}async match(s,o,f){let d=await this.matchCheck(s,f);d&&this.matchFinish(d,o)}matchSync(s,o,f){let d=this.matchCheckSync(s,f);d&&this.matchFinish(d,o)}walkCB(s,o,f){this.signal?.aborted&&f(),this.walkCB2(s,o,new tnt(this.opts),f)}walkCB2(s,o,f,d){if(this.#s(s))return d();if(this.signal?.aborted&&d(),this.paused){this.onResume(()=>this.walkCB2(s,o,f,d));return}f.processPatterns(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[A,F,W]of f.matches.entries())this.#r(A)||(y++,this.match(A,F,W).then(()=>x()));for(let A of f.subwalkTargets()){if(this.maxDepth!==1/0&&A.depth()>=this.maxDepth)continue;y++;let F=A.readdirCached();A.calledReaddir()?this.walkCB3(A,F,f,x):A.readdirCB((W,G)=>this.walkCB3(A,G,f,x),!0)}x()}walkCB3(s,o,f,d){f=f.filterEntries(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[A,F,W]of f.matches.entries())this.#r(A)||(y++,this.match(A,F,W).then(()=>x()));for(let[A,F]of f.subwalks.entries())y++,this.walkCB2(A,F,f.child(),x);x()}walkCBSync(s,o,f){this.signal?.aborted&&f(),this.walkCB2Sync(s,o,new tnt(this.opts),f)}walkCB2Sync(s,o,f,d){if(this.#s(s))return d();if(this.signal?.aborted&&d(),this.paused){this.onResume(()=>this.walkCB2Sync(s,o,f,d));return}f.processPatterns(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[A,F,W]of f.matches.entries())this.#r(A)||this.matchSync(A,F,W);for(let A of f.subwalkTargets()){if(this.maxDepth!==1/0&&A.depth()>=this.maxDepth)continue;y++;let F=A.readdirSync();this.walkCB3Sync(A,F,f,x)}x()}walkCB3Sync(s,o,f,d){f=f.filterEntries(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[A,F,W]of f.matches.entries())this.#r(A)||this.matchSync(A,F,W);for(let[A,F]of f.subwalks.entries())y++,this.walkCB2Sync(A,F,f.child(),x);x()}},rnt=class extends znt{static{t(this,"xt")}matches=new Set;constructor(s,o,f){super(s,o,f)}matchEmit(s){this.matches.add(s)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((s,o)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?o(this.signal.reason):s(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},nnt=class extends znt{static{t(this,"vt")}results;constructor(s,o,f){super(s,o,f),this.results=new woe({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(s){this.results.write(s),this.results.flowing||this.pause()}stream(){let s=this.path;return s.isUnknown()?s.lstat().then(()=>{this.walkCB(s,this.patterns,()=>this.results.end())}):this.walkCB(s,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}},sXt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",dO=class{static{t(this,"I")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(s,o){if(!o)throw new TypeError("glob options required");if(this.withFileTypes=!!o.withFileTypes,this.signal=o.signal,this.follow=!!o.follow,this.dot=!!o.dot,this.dotRelative=!!o.dotRelative,this.nodir=!!o.nodir,this.mark=!!o.mark,o.cwd?(o.cwd instanceof URL||o.cwd.startsWith("file://"))&&(o.cwd=yKt(o.cwd)):this.cwd="",this.cwd=o.cwd||"",this.root=o.root,this.magicalBraces=!!o.magicalBraces,this.nobrace=!!o.nobrace,this.noext=!!o.noext,this.realpath=!!o.realpath,this.absolute=o.absolute,this.includeChildMatches=o.includeChildMatches!==!1,this.noglobstar=!!o.noglobstar,this.matchBase=!!o.matchBase,this.maxDepth=typeof o.maxDepth=="number"?o.maxDepth:1/0,this.stat=!!o.stat,this.ignore=o.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof s=="string"&&(s=[s]),this.windowsPathsNoEscape=!!o.windowsPathsNoEscape||o.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(s=s.map(F=>F.replace(/\\/g,"/"))),this.matchBase){if(o.noglobstar)throw new TypeError("base matching requires globstar");s=s.map(F=>F.includes("/")?F:`./**/${F}`)}if(this.pattern=s,this.platform=o.platform||sXt,this.opts={...o,platform:this.platform},o.scurry){if(this.scurry=o.scurry,o.nocase!==void 0&&o.nocase!==o.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let F=o.platform==="win32"?BPe:o.platform==="darwin"?Rnt:o.platform?UPe:KKt;this.scurry=new F(this.cwd,{nocase:o.nocase,fs:o.fs})}this.nocase=this.scurry.nocase;let f=this.platform==="darwin"||this.platform==="win32",d={braceExpandMax:1e4,...o,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:f,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},y=this.pattern.map(F=>new GN(F,d)),[x,A]=y.reduce((F,W)=>(F[0].push(...W.set),F[1].push(...W.globParts),F),[[],[]]);this.patterns=x.map((F,W)=>{let G=A[W];if(!G)throw new Error("invalid pattern object");return new Mnt(F,G,0,this.platform)})}async walk(){return[...await new rnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new rnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new nnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new nnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}},aXt=t((s,o={})=>{Array.isArray(s)||(s=[s]);for(let f of s)if(new GN(f,o).hasMagic())return!0;return!1},"le");function Poe(s,o={}){return new dO(s,o).streamSync()}t(Poe,"Bt");function $nt(s,o={}){return new dO(s,o).stream()}t($nt,"Qe");function Jnt(s,o={}){return new dO(s,o).walkSync()}t(Jnt,"ts");async function int(s,o={}){return new dO(s,o).walk()}t(int,"Je");function Aoe(s,o={}){return new dO(s,o).iterateSync()}t(Aoe,"Ut");function Wnt(s,o={}){return new dO(s,o).iterate()}t(Wnt,"es");var oXt=Poe,cXt=Object.assign($nt,{sync:Poe}),lXt=Aoe,uXt=Object.assign(Wnt,{sync:Aoe}),fXt=Object.assign(Jnt,{stream:Poe,iterate:Aoe}),kV=Object.assign(int,{glob:int,globSync:Jnt,sync:fXt,globStream:$nt,stream:cXt,globStreamSync:Poe,streamSync:oXt,globIterate:Wnt,iterate:uXt,globIterateSync:Aoe,iterateSync:lXt,Glob:dO,hasMagic:aXt,escape:_nt,unescape:q9});kV.glob=kV;var Ey=class extends Error{static{t(this,"CompilationError")}buildMessages;constructor(o){super("An error occurred during compilation."),this.buildMessages=Array.isArray(o)?o:[o]}toBuildResult(){return{content:"",errors:this.buildMessages}}};var _Xt="true",pXt="false",dXt="null";var mXt="Infinity";var wV=new Map([[34,'"'],[92,"\\"],[47,"/"],[98,"\b"],[110,`
|
|
567
|
+
>>> no match, partial?`,s,de,o,se),de===F))}let Ue;if(typeof G=="string"?(Ue=be===G,this.debug("string match",G,be,Ue)):(Ue=G.test(be),this.debug("pattern match",G,be,Ue)),!Ue)return!1}if(x===F&&A===W)return!0;if(x===F)return f;if(A===W)return x===F-1&&s[x]==="";throw new Error("wtf?")}braceExpand(){return hnt(this.pattern,this.options)}parse(s){Coe(s);let o=this.options;if(s==="**")return N1;if(s==="")return"";let f,d=null;(f=s.match(eKt))?d=o.dot?rKt:tKt:(f=s.match(WYt))?d=(o.nocase?o.dot?GYt:HYt:o.dot?VYt:qYt)(f[1]):(f=s.match(nKt))?d=(o.nocase?o.dot?sKt:iKt:o.dot?aKt:oKt)(f):(f=s.match(YYt))?d=o.dot?XYt:KYt:(f=s.match(ZYt))&&(d=QYt);let y=fnt.fromGlob(s,this.options).toMMPattern();return d&&typeof y=="object"&&Reflect.defineProperty(y,"test",{value:d}),y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let s=this.set;if(!s.length)return this.regexp=!1,this.regexp;let o=this.options,f=o.noglobstar?uKt:o.dot?fKt:_Kt,d=new Set(o.nocase?["i"]:[]),y=s.map(F=>{let W=F.map(be=>{if(be instanceof RegExp)for(let de of be.flags.split(""))d.add(de);return typeof be=="string"?gKt(be):be===N1?N1:be._src});W.forEach((be,de)=>{let se=W[de+1],Xe=W[de-1];be!==N1||Xe===N1||(Xe===void 0?se!==void 0&&se!==N1?W[de+1]="(?:\\/|"+f+"\\/)?"+se:W[de]=f:se===void 0?W[de-1]=Xe+"(?:\\/|\\/"+f+")?":se!==N1&&(W[de-1]=Xe+"(?:\\/|\\/"+f+"\\/)"+se,W[de+1]=N1))});let G=W.filter(be=>be!==N1);if(this.partial&&G.length>=1){let be=[];for(let de=1;de<=G.length;de++)be.push(G.slice(0,de).join("/"));return"(?:"+be.join("|")+")"}return G.join("/")}).join("|"),[x,A]=s.length>1?["(?:",")"]:["",""];y="^"+x+y+A+"$",this.partial&&(y="^(?:\\/|"+x+y.slice(1,-1)+A+")$"),this.negate&&(y="^(?!"+y+").+$");try{this.regexp=new RegExp(y,[...d].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(s){return this.preserveMultipleSlashes?s.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(s)?["",...s.split(/\/+/)]:s.split(/\/+/)}match(s,o=this.partial){if(this.debug("match",s,this.pattern),this.comment)return!1;if(this.empty)return s==="";if(s==="/"&&o)return!0;let f=this.options;this.isWindows&&(s=s.split("\\").join("/"));let d=this.slashSplit(s);this.debug(this.pattern,"split",d);let y=this.set;this.debug(this.pattern,"set",y);let x=d[d.length-1];if(!x)for(let A=d.length-2;!x&&A>=0;A--)x=d[A];for(let A=0;A<y.length;A++){let F=y[A],W=d;if(f.matchBase&&F.length===1&&(W=[x]),this.matchOne(W,F,o))return f.flipNegate?!0:!this.negate}return f.flipNegate?!1:this.negate}static defaults(s){return I1.defaults(s).Minimatch}};I1.AST=fnt;I1.Minimatch=GN;I1.escape=_nt;I1.unescape=q9;var vKt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,gnt=new Set,FPe=typeof process=="object"&&process?process:{},ynt=t((s,o,f,d)=>{typeof FPe.emitWarning=="function"?FPe.emitWarning(s,o,f,d):console.error(`[${f}] ${o}: ${s}`)},"Fe"),koe=globalThis.AbortController,Wrt=globalThis.AbortSignal;if(typeof koe>"u"){Wrt=class{static{t(this,"Re")}onabort;_onabort=[];reason;aborted=!1;addEventListener(f,d){this._onabort.push(d)}},koe=class{static{t(this,"At")}constructor(){o()}signal=new Wrt;abort(f){if(!this.signal.aborted){this.signal.reason=f,this.signal.aborted=!0;for(let d of this.signal._onabort)d(f);this.signal.onabort?.(f)}}};let s=FPe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=t(()=>{s&&(s=!1,ynt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))},"t")}var bKt=t(s=>!gnt.has(s),"ii"),HN=t(s=>s&&s===Math.floor(s)&&s>0&&isFinite(s),"q"),vnt=t(s=>HN(s)?s<=Math.pow(2,8)?Uint8Array:s<=Math.pow(2,16)?Uint16Array:s<=Math.pow(2,32)?Uint32Array:s<=Number.MAX_SAFE_INTEGER?xoe:null:null,"De"),xoe=class extends Array{static{t(this,"Tt")}constructor(s){super(s),this.fill(0)}},SKt=class TV{static{t(this,"ct")}heap;length;static#e=!1;static create(o){let f=vnt(o);if(!f)return[];TV.#e=!0;let d=new TV(o,f);return TV.#e=!1,d}constructor(o,f){if(!TV.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},Doe=class bnt{static{t(this,"Me")}#e;#n;#t;#r;#s;#m;#c;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#f;#p;#a;#i;#o;#h;#d;#_;#y;#b;#v;#C;#k;#S;#E;#g;#A;#l;#O;static unsafeExposeInternals(o){return{starts:o.#k,ttls:o.#S,autopurgeTimers:o.#E,sizes:o.#C,keyMap:o.#a,keyList:o.#i,valList:o.#o,next:o.#h,prev:o.#d,get head(){return o.#_},get tail(){return o.#y},free:o.#b,isBackgroundFetch:t(f=>o.#T(f),"isBackgroundFetch"),backgroundFetch:t((f,d,y,x)=>o.#W(f,d,y,x),"backgroundFetch"),moveToTail:t(f=>o.#j(f),"moveToTail"),indexes:t(f=>o.#R(f),"indexes"),rindexes:t(f=>o.#L(f),"rindexes"),isStale:t(f=>o.#P(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#n}get calculatedSize(){return this.#p}get size(){return this.#f}get fetchMethod(){return this.#m}get memoMethod(){return this.#c}get dispose(){return this.#t}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:f=0,ttl:d,ttlResolution:y=1,ttlAutopurge:x,updateAgeOnGet:A,updateAgeOnHas:F,allowStale:W,dispose:G,onInsert:be,disposeAfter:de,noDisposeOnSet:se,noUpdateTTL:Xe,maxSize:Ue=0,maxEntrySize:je=0,sizeCalculation:Vt,fetchMethod:Ut,memoMethod:Ir,noDeleteOnFetchRejection:wn,noDeleteOnStaleGet:sn,allowStaleOnFetchRejection:Jn,allowStaleOnFetchAbort:kr,ignoreFetchAbort:yr,perf:xs}=o;if(xs!==void 0&&typeof xs?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=xs??vKt,f!==0&&!HN(f))throw new TypeError("max option must be a nonnegative integer");let bi=f?vnt(f):Array;if(!bi)throw new Error("invalid max value: "+f);if(this.#e=f,this.#n=Ue,this.maxEntrySize=je||this.#n,this.sizeCalculation=Vt,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ir!==void 0&&typeof Ir!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#c=Ir,Ut!==void 0&&typeof Ut!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#m=Ut,this.#A=!!Ut,this.#a=new Map,this.#i=new Array(f).fill(void 0),this.#o=new Array(f).fill(void 0),this.#h=new bi(f),this.#d=new bi(f),this.#_=0,this.#y=0,this.#b=SKt.create(f),this.#f=0,this.#p=0,typeof G=="function"&&(this.#t=G),typeof be=="function"&&(this.#r=be),typeof de=="function"?(this.#s=de,this.#v=[]):(this.#s=void 0,this.#v=void 0),this.#g=!!this.#t,this.#O=!!this.#r,this.#l=!!this.#s,this.noDisposeOnSet=!!se,this.noUpdateTTL=!!Xe,this.noDeleteOnFetchRejection=!!wn,this.allowStaleOnFetchRejection=!!Jn,this.allowStaleOnFetchAbort=!!kr,this.ignoreFetchAbort=!!yr,this.maxEntrySize!==0){if(this.#n!==0&&!HN(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!HN(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#J()}if(this.allowStale=!!W,this.noDeleteOnStaleGet=!!sn,this.updateAgeOnGet=!!A,this.updateAgeOnHas=!!F,this.ttlResolution=HN(y)||y===0?y:1,this.ttlAutopurge=!!x,this.ttl=d||0,this.ttl){if(!HN(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#e===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#n){let fc="LRU_CACHE_UNBOUNDED";bKt(fc)&&(gnt.add(fc),ynt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",fc,bnt))}}getRemainingTTL(o){return this.#a.has(o)?1/0:0}#N(){let o=new xoe(this.#e),f=new xoe(this.#e);this.#S=o,this.#k=f;let d=this.ttlAutopurge?new Array(this.#e):void 0;this.#E=d,this.#$=(A,F,W=this.#u.now())=>{if(f[A]=F!==0?W:0,o[A]=F,d?.[A]&&(clearTimeout(d[A]),d[A]=void 0),F!==0&&d){let G=setTimeout(()=>{this.#P(A)&&this.#B(this.#i[A],"expire")},F+1);G.unref&&G.unref(),d[A]=G}},this.#w=A=>{f[A]=o[A]!==0?this.#u.now():0},this.#D=(A,F)=>{if(o[F]){let W=o[F],G=f[F];if(!W||!G)return;A.ttl=W,A.start=G,A.now=y||x();let be=A.now-G;A.remainingTTL=W-be}};let y=0,x=t(()=>{let A=this.#u.now();if(this.ttlResolution>0){y=A;let F=setTimeout(()=>y=0,this.ttlResolution);F.unref&&F.unref()}return A},"r");this.getRemainingTTL=A=>{let F=this.#a.get(A);if(F===void 0)return 0;let W=o[F],G=f[F];if(!W||!G)return 1/0;let be=(y||x())-G;return W-be},this.#P=A=>{let F=f[A],W=o[A];return!!W&&!!F&&(y||x())-F>W}}#w=t(()=>{},"#k");#D=t(()=>{},"#N");#$=t(()=>{},"#j");#P=t(()=>!1,"#v");#J(){let o=new xoe(this.#e);this.#p=0,this.#C=o,this.#U=f=>{this.#p-=o[f],o[f]=0},this.#F=(f,d,y,x)=>{if(this.#T(d))return 0;if(!HN(y))if(x){if(typeof x!="function")throw new TypeError("sizeCalculation must be a function");if(y=x(d,f),!HN(y))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return y},this.#I=(f,d,y)=>{if(o[f]=d,this.#n){let x=this.#n-o[f];for(;this.#p>x;)this.#x(!0)}this.#p+=o[f],y&&(y.entrySize=d,y.totalCalculatedSize=this.#p)}}#U=t(o=>{},"#P");#I=t((o,f,d)=>{},"#L");#F=t((o,f,d,y)=>{if(d||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#I");*#R({allowStale:o=this.allowStale}={}){if(this.#f)for(let f=this.#y;!(!this.#z(f)||((o||!this.#P(f))&&(yield f),f===this.#_));)f=this.#d[f]}*#L({allowStale:o=this.allowStale}={}){if(this.#f)for(let f=this.#_;!(!this.#z(f)||((o||!this.#P(f))&&(yield f),f===this.#y));)f=this.#h[f]}#z(o){return o!==void 0&&this.#a.get(this.#i[o])===o}*entries(){for(let o of this.#R())this.#o[o]!==void 0&&this.#i[o]!==void 0&&!this.#T(this.#o[o])&&(yield[this.#i[o],this.#o[o]])}*rentries(){for(let o of this.#L())this.#o[o]!==void 0&&this.#i[o]!==void 0&&!this.#T(this.#o[o])&&(yield[this.#i[o],this.#o[o]])}*keys(){for(let o of this.#R()){let f=this.#i[o];f!==void 0&&!this.#T(this.#o[o])&&(yield f)}}*rkeys(){for(let o of this.#L()){let f=this.#i[o];f!==void 0&&!this.#T(this.#o[o])&&(yield f)}}*values(){for(let o of this.#R())this.#o[o]!==void 0&&!this.#T(this.#o[o])&&(yield this.#o[o])}*rvalues(){for(let o of this.#L())this.#o[o]!==void 0&&!this.#T(this.#o[o])&&(yield this.#o[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,f={}){for(let d of this.#R()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;if(x!==void 0&&o(x,this.#i[d],this))return this.get(this.#i[d],f)}}forEach(o,f=this){for(let d of this.#R()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#i[d],this)}}rforEach(o,f=this){for(let d of this.#L()){let y=this.#o[d],x=this.#T(y)?y.__staleWhileFetching:y;x!==void 0&&o.call(f,x,this.#i[d],this)}}purgeStale(){let o=!1;for(let f of this.#L({allowStale:!0}))this.#P(f)&&(this.#B(this.#i[f],"expire"),o=!0);return o}info(o){let f=this.#a.get(o);if(f===void 0)return;let d=this.#o[f],y=this.#T(d)?d.__staleWhileFetching:d;if(y===void 0)return;let x={value:y};if(this.#S&&this.#k){let A=this.#S[f],F=this.#k[f];if(A&&F){let W=A-(this.#u.now()-F);x.ttl=W,x.start=Date.now()}}return this.#C&&(x.size=this.#C[f]),x}dump(){let o=[];for(let f of this.#R({allowStale:!0})){let d=this.#i[f],y=this.#o[f],x=this.#T(y)?y.__staleWhileFetching:y;if(x===void 0||d===void 0)continue;let A={value:x};if(this.#S&&this.#k){A.ttl=this.#S[f];let F=this.#u.now()-this.#k[f];A.start=Math.floor(Date.now()-F)}this.#C&&(A.size=this.#C[f]),o.unshift([d,A])}return o}load(o){this.clear();for(let[f,d]of o){if(d.start){let y=Date.now()-d.start;d.start=this.#u.now()-y}this.set(f,d.value,d)}}set(o,f,d={}){if(f===void 0)return this.delete(o),this;let{ttl:y=this.ttl,start:x,noDisposeOnSet:A=this.noDisposeOnSet,sizeCalculation:F=this.sizeCalculation,status:W}=d,{noUpdateTTL:G=this.noUpdateTTL}=d,be=this.#F(o,f,d.size||0,F);if(this.maxEntrySize&&be>this.maxEntrySize)return W&&(W.set="miss",W.maxEntrySizeExceeded=!0),this.#B(o,"set"),this;let de=this.#f===0?void 0:this.#a.get(o);if(de===void 0)de=this.#f===0?this.#y:this.#b.length!==0?this.#b.pop():this.#f===this.#e?this.#x(!1):this.#f,this.#i[de]=o,this.#o[de]=f,this.#a.set(o,de),this.#h[this.#y]=de,this.#d[de]=this.#y,this.#y=de,this.#f++,this.#I(de,be,W),W&&(W.set="add"),G=!1,this.#O&&this.#r?.(f,o,"add");else{this.#j(de);let se=this.#o[de];if(f!==se){if(this.#A&&this.#T(se)){se.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Xe}=se;Xe!==void 0&&!A&&(this.#g&&this.#t?.(Xe,o,"set"),this.#l&&this.#v?.push([Xe,o,"set"]))}else A||(this.#g&&this.#t?.(se,o,"set"),this.#l&&this.#v?.push([se,o,"set"]));if(this.#U(de),this.#I(de,be,W),this.#o[de]=f,W){W.set="replace";let Xe=se&&this.#T(se)?se.__staleWhileFetching:se;Xe!==void 0&&(W.oldValue=Xe)}}else W&&(W.set="update");this.#O&&this.onInsert?.(f,o,f===se?"update":"replace")}if(y!==0&&!this.#S&&this.#N(),this.#S&&(G||this.#$(de,y,x),W&&this.#D(W,de)),!A&&this.#l&&this.#v){let se=this.#v,Xe;for(;Xe=se?.shift();)this.#s?.(...Xe)}return this}pop(){try{for(;this.#f;){let o=this.#o[this.#_];if(this.#x(!0),this.#T(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#l&&this.#v){let o=this.#v,f;for(;f=o?.shift();)this.#s?.(...f)}}}#x(o){let f=this.#_,d=this.#i[f],y=this.#o[f];return this.#A&&this.#T(y)?y.__abortController.abort(new Error("evicted")):(this.#g||this.#l)&&(this.#g&&this.#t?.(y,d,"evict"),this.#l&&this.#v?.push([y,d,"evict"])),this.#U(f),this.#E?.[f]&&(clearTimeout(this.#E[f]),this.#E[f]=void 0),o&&(this.#i[f]=void 0,this.#o[f]=void 0,this.#b.push(f)),this.#f===1?(this.#_=this.#y=0,this.#b.length=0):this.#_=this.#h[f],this.#a.delete(d),this.#f--,f}has(o,f={}){let{updateAgeOnHas:d=this.updateAgeOnHas,status:y}=f,x=this.#a.get(o);if(x!==void 0){let A=this.#o[x];if(this.#T(A)&&A.__staleWhileFetching===void 0)return!1;if(this.#P(x))y&&(y.has="stale",this.#D(y,x));else return d&&this.#w(x),y&&(y.has="hit",this.#D(y,x)),!0}else y&&(y.has="miss");return!1}peek(o,f={}){let{allowStale:d=this.allowStale}=f,y=this.#a.get(o);if(y===void 0||!d&&this.#P(y))return;let x=this.#o[y];return this.#T(x)?x.__staleWhileFetching:x}#W(o,f,d,y){let x=f===void 0?void 0:this.#o[f];if(this.#T(x))return x;let A=new koe,{signal:F}=d;F?.addEventListener("abort",()=>A.abort(F.reason),{signal:A.signal});let W={signal:A.signal,options:d,context:y},G=t((je,Vt=!1)=>{let{aborted:Ut}=A.signal,Ir=d.ignoreFetchAbort&&je!==void 0,wn=d.ignoreFetchAbort||!!(d.allowStaleOnFetchAbort&&je!==void 0);if(d.status&&(Ut&&!Vt?(d.status.fetchAborted=!0,d.status.fetchError=A.signal.reason,Ir&&(d.status.fetchAbortIgnored=!0)):d.status.fetchResolved=!0),Ut&&!Ir&&!Vt)return de(A.signal.reason,wn);let sn=Xe,Jn=this.#o[f];return(Jn===Xe||Ir&&Vt&&Jn===void 0)&&(je===void 0?sn.__staleWhileFetching!==void 0?this.#o[f]=sn.__staleWhileFetching:this.#B(o,"fetch"):(d.status&&(d.status.fetchUpdated=!0),this.set(o,je,W.options))),je},"l"),be=t(je=>(d.status&&(d.status.fetchRejected=!0,d.status.fetchError=je),de(je,!1)),"u"),de=t((je,Vt)=>{let{aborted:Ut}=A.signal,Ir=Ut&&d.allowStaleOnFetchAbort,wn=Ir||d.allowStaleOnFetchRejection,sn=wn||d.noDeleteOnFetchRejection,Jn=Xe;if(this.#o[f]===Xe&&(!sn||!Vt&&Jn.__staleWhileFetching===void 0?this.#B(o,"fetch"):Ir||(this.#o[f]=Jn.__staleWhileFetching)),wn)return d.status&&Jn.__staleWhileFetching!==void 0&&(d.status.returnedStale=!0),Jn.__staleWhileFetching;if(Jn.__returned===Jn)throw je},"c"),se=t((je,Vt)=>{let Ut=this.#m?.(o,x,W);Ut&&Ut instanceof Promise&&Ut.then(Ir=>je(Ir===void 0?void 0:Ir),Vt),A.signal.addEventListener("abort",()=>{(!d.ignoreFetchAbort||d.allowStaleOnFetchAbort)&&(je(void 0),d.allowStaleOnFetchAbort&&(je=t(Ir=>G(Ir,!0),"p")))})},"d");d.status&&(d.status.fetchDispatched=!0);let Xe=new Promise(se).then(G,be),Ue=Object.assign(Xe,{__abortController:A,__staleWhileFetching:x,__returned:void 0});return f===void 0?(this.set(o,Ue,{...W.options,status:void 0}),f=this.#a.get(o)):this.#o[f]=Ue,Ue}#T(o){if(!this.#A)return!1;let f=o;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof koe}async fetch(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,ttl:A=this.ttl,noDisposeOnSet:F=this.noDisposeOnSet,size:W=0,sizeCalculation:G=this.sizeCalculation,noUpdateTTL:be=this.noUpdateTTL,noDeleteOnFetchRejection:de=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:se=this.allowStaleOnFetchRejection,ignoreFetchAbort:Xe=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ue=this.allowStaleOnFetchAbort,context:je,forceRefresh:Vt=!1,status:Ut,signal:Ir}=f;if(!this.#A)return Ut&&(Ut.fetch="get"),this.get(o,{allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,status:Ut});let wn={allowStale:d,updateAgeOnGet:y,noDeleteOnStaleGet:x,ttl:A,noDisposeOnSet:F,size:W,sizeCalculation:G,noUpdateTTL:be,noDeleteOnFetchRejection:de,allowStaleOnFetchRejection:se,allowStaleOnFetchAbort:Ue,ignoreFetchAbort:Xe,status:Ut,signal:Ir},sn=this.#a.get(o);if(sn===void 0){Ut&&(Ut.fetch="miss");let Jn=this.#W(o,sn,wn,je);return Jn.__returned=Jn}else{let Jn=this.#o[sn];if(this.#T(Jn)){let bi=d&&Jn.__staleWhileFetching!==void 0;return Ut&&(Ut.fetch="inflight",bi&&(Ut.returnedStale=!0)),bi?Jn.__staleWhileFetching:Jn.__returned=Jn}let kr=this.#P(sn);if(!Vt&&!kr)return Ut&&(Ut.fetch="hit"),this.#j(sn),y&&this.#w(sn),Ut&&this.#D(Ut,sn),Jn;let yr=this.#W(o,sn,wn,je),xs=yr.__staleWhileFetching!==void 0&&d;return Ut&&(Ut.fetch=kr?"stale":"refresh",xs&&kr&&(Ut.returnedStale=!0)),xs?yr.__staleWhileFetching:yr.__returned=yr}}async forceFetch(o,f={}){let d=await this.fetch(o,f);if(d===void 0)throw new Error("fetch() returned undefined");return d}memo(o,f={}){let d=this.#c;if(!d)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:x,...A}=f,F=this.get(o,A);if(!x&&F!==void 0)return F;let W=d(o,F,{options:A,context:y});return this.set(o,W,A),W}get(o,f={}){let{allowStale:d=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:x=this.noDeleteOnStaleGet,status:A}=f,F=this.#a.get(o);if(F!==void 0){let W=this.#o[F],G=this.#T(W);return A&&this.#D(A,F),this.#P(F)?(A&&(A.get="stale"),G?(A&&d&&W.__staleWhileFetching!==void 0&&(A.returnedStale=!0),d?W.__staleWhileFetching:void 0):(x||this.#B(o,"expire"),A&&d&&(A.returnedStale=!0),d?W:void 0)):(A&&(A.get="hit"),G?W.__staleWhileFetching:(this.#j(F),y&&this.#w(F),W))}else A&&(A.get="miss")}#M(o,f){this.#d[f]=o,this.#h[o]=f}#j(o){o!==this.#y&&(o===this.#_?this.#_=this.#h[o]:this.#M(this.#d[o],this.#h[o]),this.#M(this.#y,o),this.#y=o)}delete(o){return this.#B(o,"delete")}#B(o,f){let d=!1;if(this.#f!==0){let y=this.#a.get(o);if(y!==void 0)if(this.#E?.[y]&&(clearTimeout(this.#E?.[y]),this.#E[y]=void 0),d=!0,this.#f===1)this.#q(f);else{this.#U(y);let x=this.#o[y];if(this.#T(x)?x.__abortController.abort(new Error("deleted")):(this.#g||this.#l)&&(this.#g&&this.#t?.(x,o,f),this.#l&&this.#v?.push([x,o,f])),this.#a.delete(o),this.#i[y]=void 0,this.#o[y]=void 0,y===this.#y)this.#y=this.#d[y];else if(y===this.#_)this.#_=this.#h[y];else{let A=this.#d[y];this.#h[A]=this.#h[y];let F=this.#h[y];this.#d[F]=this.#d[y]}this.#f--,this.#b.push(y)}}if(this.#l&&this.#v?.length){let y=this.#v,x;for(;x=y?.shift();)this.#s?.(...x)}return d}clear(){return this.#q("delete")}#q(o){for(let f of this.#L({allowStale:!0})){let d=this.#o[f];if(this.#T(d))d.__abortController.abort(new Error("deleted"));else{let y=this.#i[f];this.#g&&this.#t?.(d,y,o),this.#l&&this.#v?.push([d,y,o])}}if(this.#a.clear(),this.#o.fill(void 0),this.#i.fill(void 0),this.#S&&this.#k){this.#S.fill(0),this.#k.fill(0);for(let f of this.#E??[])f!==void 0&&clearTimeout(f);this.#E?.fill(void 0)}if(this.#C&&this.#C.fill(0),this.#_=0,this.#y=0,this.#b.length=0,this.#p=0,this.#f=0,this.#l&&this.#v){let f=this.#v,d;for(;d=f?.shift();)this.#s?.(...d)}}},qrt=typeof process=="object"&&process?process:{stdout:null,stderr:null},LKt=t(s=>!!s&&typeof s=="object"&&(s instanceof woe||s instanceof Snt||RKt(s)||MKt(s)),"oi"),RKt=t(s=>!!s&&typeof s=="object"&&s instanceof jPe&&typeof s.pipe=="function"&&s.pipe!==Snt.Writable.prototype.pipe,"hi"),MKt=t(s=>!!s&&typeof s=="object"&&s instanceof jPe&&typeof s.write=="function"&&typeof s.end=="function","ai"),RP=Symbol("EOF"),MP=Symbol("maybeEmitEnd"),VN=Symbol("emittedEnd"),hoe=Symbol("emittingEnd"),hV=Symbol("emittedError"),goe=Symbol("closed"),Vrt=Symbol("read"),yoe=Symbol("flush"),Hrt=Symbol("flushChunk"),gE=Symbol("encoding"),J9=Symbol("decoder"),Fg=Symbol("flowing"),gV=Symbol("paused"),W9=Symbol("resume"),Lg=Symbol("buffer"),A1=Symbol("pipes"),Rg=Symbol("bufferLength"),wPe=Symbol("bufferPush"),voe=Symbol("bufferShift"),xy=Symbol("objectMode"),Em=Symbol("destroyed"),DPe=Symbol("error"),PPe=Symbol("emitData"),Grt=Symbol("emitEnd"),APe=Symbol("emitEnd2"),Ak=Symbol("async"),NPe=Symbol("abort"),boe=Symbol("aborted"),yV=Symbol("signal"),_O=Symbol("dataListeners"),CS=Symbol("discarded"),vV=t(s=>Promise.resolve().then(s),"mt"),jKt=t(s=>s(),"li"),BKt=t(s=>s==="end"||s==="finish"||s==="prefinish","ci"),UKt=t(s=>s instanceof ArrayBuffer||!!s&&typeof s=="object"&&s.constructor&&s.constructor.name==="ArrayBuffer"&&s.byteLength>=0,"fi"),zKt=t(s=>!Buffer.isBuffer(s)&&ArrayBuffer.isView(s),"ui"),Tnt=class{static{t(this,"Mt")}src;dest;opts;ondrain;constructor(s,o,f){this.src=s,this.dest=o,this.opts=f,this.ondrain=()=>s[W9](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(s){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},$Kt=class extends Tnt{static{t(this,"te")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(s,o,f){super(s,o,f),this.proxyErrors=d=>this.dest.emit("error",d),s.on("error",this.proxyErrors)}},JKt=t(s=>!!s.objectMode,"di"),WKt=t(s=>!s.objectMode&&!!s.encoding&&s.encoding!=="buffer","pi"),woe=class extends jPe{static{t(this,"V")}[Fg]=!1;[gV]=!1;[A1]=[];[Lg]=[];[xy];[gE];[Ak];[J9];[RP]=!1;[VN]=!1;[hoe]=!1;[goe]=!1;[hV]=null;[Rg]=0;[Em]=!1;[yV];[boe]=!1;[_O]=0;[CS]=!1;writable=!0;readable=!0;constructor(...s){let o=s[0]||{};if(super(),o.objectMode&&typeof o.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");JKt(o)?(this[xy]=!0,this[gE]=null):WKt(o)?(this[gE]=o.encoding,this[xy]=!1):(this[xy]=!1,this[gE]=null),this[Ak]=!!o.async,this[J9]=this[gE]?new FKt(this[gE]):null,o&&o.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:t(()=>this[Lg],"get")}),o&&o.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:t(()=>this[A1],"get")});let{signal:f}=o;f&&(this[yV]=f,f.aborted?this[NPe]():f.addEventListener("abort",()=>this[NPe]()))}get bufferLength(){return this[Rg]}get encoding(){return this[gE]}set encoding(s){throw new Error("Encoding must be set at instantiation time")}setEncoding(s){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[xy]}set objectMode(s){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Ak]}set async(s){this[Ak]=this[Ak]||!!s}[NPe](){this[boe]=!0,this.emit("abort",this[yV]?.reason),this.destroy(this[yV]?.reason)}get aborted(){return this[boe]}set aborted(s){}write(s,o,f){if(this[boe])return!1;if(this[RP])throw new Error("write after end");if(this[Em])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof o=="function"&&(f=o,o="utf8"),o||(o="utf8");let d=this[Ak]?vV:jKt;if(!this[xy]&&!Buffer.isBuffer(s)){if(zKt(s))s=Buffer.from(s.buffer,s.byteOffset,s.byteLength);else if(UKt(s))s=Buffer.from(s);else if(typeof s!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[xy]?(this[Fg]&&this[Rg]!==0&&this[yoe](!0),this[Fg]?this.emit("data",s):this[wPe](s),this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg]):s.length?(typeof s=="string"&&!(o===this[gE]&&!this[J9]?.lastNeed)&&(s=Buffer.from(s,o)),Buffer.isBuffer(s)&&this[gE]&&(s=this[J9].write(s)),this[Fg]&&this[Rg]!==0&&this[yoe](!0),this[Fg]?this.emit("data",s):this[wPe](s),this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg]):(this[Rg]!==0&&this.emit("readable"),f&&d(f),this[Fg])}read(s){if(this[Em])return null;if(this[CS]=!1,this[Rg]===0||s===0||s&&s>this[Rg])return this[MP](),null;this[xy]&&(s=null),this[Lg].length>1&&!this[xy]&&(this[Lg]=[this[gE]?this[Lg].join(""):Buffer.concat(this[Lg],this[Rg])]);let o=this[Vrt](s||null,this[Lg][0]);return this[MP](),o}[Vrt](s,o){if(this[xy])this[voe]();else{let f=o;s===f.length||s===null?this[voe]():typeof f=="string"?(this[Lg][0]=f.slice(s),o=f.slice(0,s),this[Rg]-=s):(this[Lg][0]=f.subarray(s),o=f.subarray(0,s),this[Rg]-=s)}return this.emit("data",o),!this[Lg].length&&!this[RP]&&this.emit("drain"),o}end(s,o,f){return typeof s=="function"&&(f=s,s=void 0),typeof o=="function"&&(f=o,o="utf8"),s!==void 0&&this.write(s,o),f&&this.once("end",f),this[RP]=!0,this.writable=!1,(this[Fg]||!this[gV])&&this[MP](),this}[W9](){this[Em]||(!this[_O]&&!this[A1].length&&(this[CS]=!0),this[gV]=!1,this[Fg]=!0,this.emit("resume"),this[Lg].length?this[yoe]():this[RP]?this[MP]():this.emit("drain"))}resume(){return this[W9]()}pause(){this[Fg]=!1,this[gV]=!0,this[CS]=!1}get destroyed(){return this[Em]}get flowing(){return this[Fg]}get paused(){return this[gV]}[wPe](s){this[xy]?this[Rg]+=1:this[Rg]+=s.length,this[Lg].push(s)}[voe](){return this[xy]?this[Rg]-=1:this[Rg]-=this[Lg][0].length,this[Lg].shift()}[yoe](s=!1){do;while(this[Hrt](this[voe]())&&this[Lg].length);!s&&!this[Lg].length&&!this[RP]&&this.emit("drain")}[Hrt](s){return this.emit("data",s),this[Fg]}pipe(s,o){if(this[Em])return s;this[CS]=!1;let f=this[VN];return o=o||{},s===qrt.stdout||s===qrt.stderr?o.end=!1:o.end=o.end!==!1,o.proxyErrors=!!o.proxyErrors,f?o.end&&s.end():(this[A1].push(o.proxyErrors?new $Kt(this,s,o):new Tnt(this,s,o)),this[Ak]?vV(()=>this[W9]()):this[W9]()),s}unpipe(s){let o=this[A1].find(f=>f.dest===s);o&&(this[A1].length===1?(this[Fg]&&this[_O]===0&&(this[Fg]=!1),this[A1]=[]):this[A1].splice(this[A1].indexOf(o),1),o.unpipe())}addListener(s,o){return this.on(s,o)}on(s,o){let f=super.on(s,o);if(s==="data")this[CS]=!1,this[_O]++,!this[A1].length&&!this[Fg]&&this[W9]();else if(s==="readable"&&this[Rg]!==0)super.emit("readable");else if(BKt(s)&&this[VN])super.emit(s),this.removeAllListeners(s);else if(s==="error"&&this[hV]){let d=o;this[Ak]?vV(()=>d.call(this,this[hV])):d.call(this,this[hV])}return f}removeListener(s,o){return this.off(s,o)}off(s,o){let f=super.off(s,o);return s==="data"&&(this[_O]=this.listeners("data").length,this[_O]===0&&!this[CS]&&!this[A1].length&&(this[Fg]=!1)),f}removeAllListeners(s){let o=super.removeAllListeners(s);return(s==="data"||s===void 0)&&(this[_O]=0,!this[CS]&&!this[A1].length&&(this[Fg]=!1)),o}get emittedEnd(){return this[VN]}[MP](){!this[hoe]&&!this[VN]&&!this[Em]&&this[Lg].length===0&&this[RP]&&(this[hoe]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[goe]&&this.emit("close"),this[hoe]=!1)}emit(s,...o){let f=o[0];if(s!=="error"&&s!=="close"&&s!==Em&&this[Em])return!1;if(s==="data")return!this[xy]&&!f?!1:this[Ak]?(vV(()=>this[PPe](f)),!0):this[PPe](f);if(s==="end")return this[Grt]();if(s==="close"){if(this[goe]=!0,!this[VN]&&!this[Em])return!1;let y=super.emit("close");return this.removeAllListeners("close"),y}else if(s==="error"){this[hV]=f,super.emit(DPe,f);let y=!this[yV]||this.listeners("error").length?super.emit("error",f):!1;return this[MP](),y}else if(s==="resume"){let y=super.emit("resume");return this[MP](),y}else if(s==="finish"||s==="prefinish"){let y=super.emit(s);return this.removeAllListeners(s),y}let d=super.emit(s,...o);return this[MP](),d}[PPe](s){for(let f of this[A1])f.dest.write(s)===!1&&this.pause();let o=this[CS]?!1:super.emit("data",s);return this[MP](),o}[Grt](){return this[VN]?!1:(this[VN]=!0,this.readable=!1,this[Ak]?(vV(()=>this[APe]()),!0):this[APe]())}[APe](){if(this[J9]){let o=this[J9].end();if(o){for(let f of this[A1])f.dest.write(o);this[CS]||super.emit("data",o)}}for(let o of this[A1])o.end();let s=super.emit("end");return this.removeAllListeners("end"),s}async collect(){let s=Object.assign([],{dataLength:0});this[xy]||(s.dataLength=0);let o=this.promise();return this.on("data",f=>{s.push(f),this[xy]||(s.dataLength+=f.length)}),await o,s}async concat(){if(this[xy])throw new Error("cannot concat in objectMode");let s=await this.collect();return this[gE]?s.join(""):Buffer.concat(s,s.dataLength)}async promise(){return new Promise((s,o)=>{this.on(Em,()=>o(new Error("stream destroyed"))),this.on("error",f=>o(f)),this.on("end",()=>s())})}[Symbol.asyncIterator](){this[CS]=!1;let s=!1,o=t(async()=>(this.pause(),s=!0,{value:void 0,done:!0}),"e");return{next:t(()=>{if(s)return o();let f=this.read();if(f!==null)return Promise.resolve({done:!1,value:f});if(this[RP])return o();let d,y,x=t(G=>{this.off("data",A),this.off("end",F),this.off(Em,W),o(),y(G)},"h"),A=t(G=>{this.off("error",x),this.off("end",F),this.off(Em,W),this.pause(),d({value:G,done:!!this[RP]})},"a"),F=t(()=>{this.off("error",x),this.off("data",A),this.off(Em,W),o(),d({done:!0,value:void 0})},"l"),W=t(()=>x(new Error("stream destroyed")),"u");return new Promise((G,be)=>{y=be,d=G,this.once(Em,W),this.once("error",x),this.once("end",F),this.once("data",A)})},"next"),throw:o,return:o,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[CS]=!1;let s=!1,o=t(()=>(this.pause(),this.off(DPe,o),this.off(Em,o),this.off("end",o),s=!0,{done:!0,value:void 0}),"e"),f=t(()=>{if(s)return o();let d=this.read();return d===null?o():{done:!1,value:d}},"s");return this.once("end",o),this.once(DPe,o),this.once(Em,o),{next:f,throw:o,return:o,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(s){if(this[Em])return s?this.emit("error",s):this.emit(Em),this;this[Em]=!0,this[CS]=!0,this[Lg].length=0,this[Rg]=0;let o=this;return typeof o.close=="function"&&!this[goe]&&o.close(),s?this.emit("error",s):this.emit(Em),this}static get isStream(){return LKt}},qKt=DKt.native,xV={lstatSync:EKt,readdir:CKt,readdirSync:kKt,readlinkSync:wKt,realpathSync:qKt,promises:{lstat:AKt,readdir:NKt,readlink:IKt,realpath:OKt}},xnt=t(s=>!s||s===xV||s===PKt?xV:{...xV,...s,promises:{...xV.promises,...s.promises||{}}},"Ue"),Ent=/^\\\\\?\\([a-z]:)\\?$/i,VKt=t(s=>s.replace(/\//g,"\\").replace(Ent,"$1\\"),"Ri"),HKt=/[\\\/]/,oT=0,Cnt=1,knt=2,Nk=4,wnt=6,Dnt=8,pO=10,Pnt=12,aT=15,bV=~aT,IPe=16,Yrt=32,EV=64,yE=128,Soe=256,Eoe=512,Krt=EV|yE|Eoe,GKt=1023,OPe=t(s=>s.isFile()?Dnt:s.isDirectory()?Nk:s.isSymbolicLink()?pO:s.isCharacterDevice()?knt:s.isBlockDevice()?wnt:s.isSocket()?Pnt:s.isFIFO()?Cnt:oT,"ie"),Xrt=new Doe({max:2**12}),CV=t(s=>{let o=Xrt.get(s);if(o)return o;let f=s.normalize("NFKD");return Xrt.set(s,f),f},"bt"),Zrt=new Doe({max:2**12}),Toe=t(s=>{let o=Zrt.get(s);if(o)return o;let f=CV(s.toLowerCase());return Zrt.set(s,f),f},"_t"),Qrt=class extends Doe{static{t(this,"Wt")}constructor(){super({max:256})}},YKt=class extends Doe{static{t(this,"ne")}constructor(s=16*1024){super({maxSize:s,sizeCalculation:t(o=>o.length+1,"sizeCalculation")})}},Ant=Symbol("PathScurry setAsCwd"),Gv=class{static{t(this,"R")}name;root;roots;parent;nocase;isCWD=!1;#e;#n;get dev(){return this.#n}#t;get mode(){return this.#t}#r;get nlink(){return this.#r}#s;get uid(){return this.#s}#m;get gid(){return this.#m}#c;get rdev(){return this.#c}#u;get blksize(){return this.#u}#f;get ino(){return this.#f}#p;get size(){return this.#p}#a;get blocks(){return this.#a}#i;get atimeMs(){return this.#i}#o;get mtimeMs(){return this.#o}#h;get ctimeMs(){return this.#h}#d;get birthtimeMs(){return this.#d}#_;get atime(){return this.#_}#y;get mtime(){return this.#y}#b;get ctime(){return this.#b}#v;get birthtime(){return this.#v}#C;#k;#S;#E;#g;#A;#l;#O;#N;#w;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(s,o=oT,f,d,y,x,A){this.name=s,this.#C=y?Toe(s):CV(s),this.#l=o&GKt,this.nocase=y,this.roots=d,this.root=f||this,this.#O=x,this.#S=A.fullpath,this.#g=A.relative,this.#A=A.relativePosix,this.parent=A.parent,this.parent?this.#e=this.parent.#e:this.#e=xnt(A.fs)}depth(){return this.#k!==void 0?this.#k:this.parent?this.#k=this.parent.depth()+1:this.#k=0}childrenCache(){return this.#O}resolve(s){if(!s)return this;let o=this.getRootString(s),f=s.substring(o.length).split(this.splitSep);return o?this.getRoot(o).#D(f):this.#D(f)}#D(s){let o=this;for(let f of s)o=o.child(f);return o}children(){let s=this.#O.get(this);if(s)return s;let o=Object.assign([],{provisional:0});return this.#O.set(this,o),this.#l&=~IPe,o}child(s,o){if(s===""||s===".")return this;if(s==="..")return this.parent||this;let f=this.children(),d=this.nocase?Toe(s):CV(s);for(let F of f)if(F.#C===d)return F;let y=this.parent?this.sep:"",x=this.#S?this.#S+y+s:void 0,A=this.newChild(s,oT,{...o,parent:this,fullpath:x});return this.canReaddir()||(A.#l|=yE),f.push(A),A}relative(){if(this.isCWD)return"";if(this.#g!==void 0)return this.#g;let s=this.name,o=this.parent;if(!o)return this.#g=this.name;let f=o.relative();return f+(!f||!o.parent?"":this.sep)+s}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let s=this.name,o=this.parent;if(!o)return this.#A=this.fullpathPosix();let f=o.relativePosix();return f+(!f||!o.parent?"":"/")+s}fullpath(){if(this.#S!==void 0)return this.#S;let s=this.name,o=this.parent;if(!o)return this.#S=this.name;let f=o.fullpath()+(o.parent?this.sep:"")+s;return this.#S=f}fullpathPosix(){if(this.#E!==void 0)return this.#E;if(this.sep==="/")return this.#E=this.fullpath();if(!this.parent){let d=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(d)?this.#E=`//?/${d}`:this.#E=d}let s=this.parent,o=s.fullpathPosix(),f=o+(!o||!s.parent?"":"/")+this.name;return this.#E=f}isUnknown(){return(this.#l&aT)===oT}isType(s){return this[`is${s}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#l&aT)===Dnt}isDirectory(){return(this.#l&aT)===Nk}isCharacterDevice(){return(this.#l&aT)===knt}isBlockDevice(){return(this.#l&aT)===wnt}isFIFO(){return(this.#l&aT)===Cnt}isSocket(){return(this.#l&aT)===Pnt}isSymbolicLink(){return(this.#l&pO)===pO}lstatCached(){return this.#l&Yrt?this:void 0}readlinkCached(){return this.#N}realpathCached(){return this.#w}readdirCached(){let s=this.children();return s.slice(0,s.provisional)}canReadlink(){if(this.#N)return!0;if(!this.parent)return!1;let s=this.#l&aT;return!(s!==oT&&s!==pO||this.#l&Soe||this.#l&yE)}calledReaddir(){return!!(this.#l&IPe)}isENOENT(){return!!(this.#l&yE)}isNamed(s){return this.nocase?this.#C===Toe(s):this.#C===CV(s)}async readlink(){let s=this.#N;if(s)return s;if(this.canReadlink()&&this.parent)try{let o=await this.#e.promises.readlink(this.fullpath()),f=(await this.parent.realpath())?.resolve(o);if(f)return this.#N=f}catch(o){this.#L(o.code);return}}readlinkSync(){let s=this.#N;if(s)return s;if(this.canReadlink()&&this.parent)try{let o=this.#e.readlinkSync(this.fullpath()),f=this.parent.realpathSync()?.resolve(o);if(f)return this.#N=f}catch(o){this.#L(o.code);return}}#$(s){this.#l|=IPe;for(let o=s.provisional;o<s.length;o++){let f=s[o];f&&f.#P()}}#P(){this.#l&yE||(this.#l=(this.#l|yE)&bV,this.#J())}#J(){let s=this.children();s.provisional=0;for(let o of s)o.#P()}#U(){this.#l|=Eoe,this.#I()}#I(){if(this.#l&EV)return;let s=this.#l;(s&aT)===Nk&&(s&=bV),this.#l=s|EV,this.#J()}#F(s=""){s==="ENOTDIR"||s==="EPERM"?this.#I():s==="ENOENT"?this.#P():this.children().provisional=0}#R(s=""){s==="ENOTDIR"?this.parent.#I():s==="ENOENT"&&this.#P()}#L(s=""){let o=this.#l;o|=Soe,s==="ENOENT"&&(o|=yE),(s==="EINVAL"||s==="UNKNOWN")&&(o&=bV),this.#l=o,s==="ENOTDIR"&&this.parent&&this.parent.#I()}#z(s,o){return this.#W(s,o)||this.#x(s,o)}#x(s,o){let f=OPe(s),d=this.newChild(s.name,f,{parent:this}),y=d.#l&aT;return y!==Nk&&y!==pO&&y!==oT&&(d.#l|=EV),o.unshift(d),o.provisional++,d}#W(s,o){for(let f=o.provisional;f<o.length;f++){let d=o[f];if((this.nocase?Toe(s.name):CV(s.name))===d.#C)return this.#T(s,d,f,o)}}#T(s,o,f,d){let y=o.name;return o.#l=o.#l&bV|OPe(s),y!==s.name&&(o.name=s.name),f!==d.provisional&&(f===d.length-1?d.pop():d.splice(f,1),d.unshift(o)),d.provisional++,o}async lstat(){if((this.#l&yE)===0)try{return this.#M(await this.#e.promises.lstat(this.fullpath())),this}catch(s){this.#R(s.code)}}lstatSync(){if((this.#l&yE)===0)try{return this.#M(this.#e.lstatSync(this.fullpath())),this}catch(s){this.#R(s.code)}}#M(s){let{atime:o,atimeMs:f,birthtime:d,birthtimeMs:y,blksize:x,blocks:A,ctime:F,ctimeMs:W,dev:G,gid:be,ino:de,mode:se,mtime:Xe,mtimeMs:Ue,nlink:je,rdev:Vt,size:Ut,uid:Ir}=s;this.#_=o,this.#i=f,this.#v=d,this.#d=y,this.#u=x,this.#a=A,this.#b=F,this.#h=W,this.#n=G,this.#m=be,this.#f=de,this.#t=se,this.#y=Xe,this.#o=Ue,this.#r=je,this.#c=Vt,this.#p=Ut,this.#s=Ir;let wn=OPe(s);this.#l=this.#l&bV|wn|Yrt,wn!==oT&&wn!==Nk&&wn!==pO&&(this.#l|=EV)}#j=[];#B=!1;#q(s){this.#B=!1;let o=this.#j.slice();this.#j.length=0,o.forEach(f=>f(null,s))}readdirCB(s,o=!1){if(!this.canReaddir()){o?s(null,[]):queueMicrotask(()=>s(null,[]));return}let f=this.children();if(this.calledReaddir()){let y=f.slice(0,f.provisional);o?s(null,y):queueMicrotask(()=>s(null,y));return}if(this.#j.push(s),this.#B)return;this.#B=!0;let d=this.fullpath();this.#e.readdir(d,{withFileTypes:!0},(y,x)=>{if(y)this.#F(y.code),f.provisional=0;else{for(let A of x)this.#z(A,f);this.#$(f)}this.#q(f.slice(0,f.provisional))})}#V;async readdir(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let o=this.fullpath();if(this.#V)await this.#V;else{let f=t(()=>{},"s");this.#V=new Promise(d=>f=d);try{for(let d of await this.#e.promises.readdir(o,{withFileTypes:!0}))this.#z(d,s);this.#$(s)}catch(d){this.#F(d.code),s.provisional=0}this.#V=void 0,f()}return s.slice(0,s.provisional)}readdirSync(){if(!this.canReaddir())return[];let s=this.children();if(this.calledReaddir())return s.slice(0,s.provisional);let o=this.fullpath();try{for(let f of this.#e.readdirSync(o,{withFileTypes:!0}))this.#z(f,s);this.#$(s)}catch(f){this.#F(f.code),s.provisional=0}return s.slice(0,s.provisional)}canReaddir(){if(this.#l&Krt)return!1;let s=aT&this.#l;return s===oT||s===Nk||s===pO}shouldWalk(s,o){return(this.#l&Nk)===Nk&&!(this.#l&Krt)&&!s.has(this)&&(!o||o(this))}async realpath(){if(this.#w)return this.#w;if(!((Eoe|Soe|yE)&this.#l))try{let s=await this.#e.promises.realpath(this.fullpath());return this.#w=this.resolve(s)}catch{this.#U()}}realpathSync(){if(this.#w)return this.#w;if(!((Eoe|Soe|yE)&this.#l))try{let s=this.#e.realpathSync(this.fullpath());return this.#w=this.resolve(s)}catch{this.#U()}}[Ant](s){if(s===this)return;s.isCWD=!1,this.isCWD=!0;let o=new Set([]),f=[],d=this;for(;d&&d.parent;)o.add(d),d.#g=f.join(this.sep),d.#A=f.join("/"),d=d.parent,f.push("..");for(d=s;d&&d.parent&&!o.has(d);)d.#g=void 0,d.#A=void 0,d=d.parent}},Nnt=class Int extends Gv{static{t(this,"n")}sep="\\";splitSep=HKt;constructor(o,f=oT,d,y,x,A,F){super(o,f,d,y,x,A,F)}newChild(o,f=oT,d={}){return new Int(o,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}getRootString(o){return LPe.parse(o).root}getRoot(o){if(o=VKt(o.toUpperCase()),o===this.root.name)return this.root;for(let[f,d]of Object.entries(this.roots))if(this.sameRoot(o,f))return this.roots[o]=d;return this.roots[o]=new BPe(o,this).root}sameRoot(o,f=this.root.name){return o=o.toUpperCase().replace(/\//g,"\\").replace(Ent,"$1\\"),o===f}},Ont=class Fnt extends Gv{static{t(this,"n")}splitSep="/";sep="/";constructor(o,f=oT,d,y,x,A,F){super(o,f,d,y,x,A,F)}getRootString(o){return o.startsWith("/")?"/":""}getRoot(o){return this.root}newChild(o,f=oT,d={}){return new Fnt(o,f,this.root,this.roots,this.nocase,this.childrenCache(),d)}},Lnt=class{static{t(this,"It")}root;rootPath;roots;cwd;#e;#n;#t;nocase;#r;constructor(s=process.cwd(),o,f,{nocase:d,childrenCacheSize:y=16*1024,fs:x=xV}={}){this.#r=xnt(x),(s instanceof URL||s.startsWith("file://"))&&(s=xKt(s));let A=o.resolve(s);this.roots=Object.create(null),this.rootPath=this.parseRootPath(A),this.#e=new Qrt,this.#n=new Qrt,this.#t=new YKt(y);let F=A.substring(this.rootPath.length).split(f);if(F.length===1&&!F[0]&&F.pop(),d===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=d,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let W=this.root,G=F.length-1,be=o.sep,de=this.rootPath,se=!1;for(let Xe of F){let Ue=G--;W=W.child(Xe,{relative:new Array(Ue).fill("..").join(be),relativePosix:new Array(Ue).fill("..").join("/"),fullpath:de+=(se?"":be)+Xe}),se=!0}this.cwd=W}depth(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.depth()}childrenCache(){return this.#t}resolve(...s){let o="";for(let y=s.length-1;y>=0;y--){let x=s[y];if(!(!x||x===".")&&(o=o?`${x}/${o}`:x,this.isAbsolute(x)))break}let f=this.#e.get(o);if(f!==void 0)return f;let d=this.cwd.resolve(o).fullpath();return this.#e.set(o,d),d}resolvePosix(...s){let o="";for(let y=s.length-1;y>=0;y--){let x=s[y];if(!(!x||x===".")&&(o=o?`${x}/${o}`:x,this.isAbsolute(x)))break}let f=this.#n.get(o);if(f!==void 0)return f;let d=this.cwd.resolve(o).fullpathPosix();return this.#n.set(o,d),d}relative(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relative()}relativePosix(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.relativePosix()}basename(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.name}dirname(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),(s.parent||s).fullpath()}async readdir(s=this.cwd,o={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f}=o;if(s.canReaddir()){let d=await s.readdir();return f?d:d.map(y=>y.name)}else return[]}readdirSync(s=this.cwd,o={withFileTypes:!0}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0}=o;return s.canReaddir()?f?s.readdirSync():s.readdirSync().map(d=>d.name):[]}async lstat(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstat()}lstatSync(s=this.cwd){return typeof s=="string"&&(s=this.cwd.resolve(s)),s.lstatSync()}async readlink(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=await s.readlink();return o?f:f?.fullpath()}readlinkSync(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=s.readlinkSync();return o?f:f?.fullpath()}async realpath(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=await s.realpath();return o?f:f?.fullpath()}realpathSync(s=this.cwd,{withFileTypes:o}={withFileTypes:!1}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s.withFileTypes,s=this.cwd);let f=s.realpathSync();return o?f:f?.fullpath()}async walk(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,A=[];(!y||y(s))&&A.push(f?s:s.fullpath());let F=new Set,W=t((be,de)=>{F.add(be),be.readdirCB((se,Xe)=>{if(se)return de(se);let Ue=Xe.length;if(!Ue)return de();let je=t(()=>{--Ue===0&&de()},"w");for(let Vt of Xe)(!y||y(Vt))&&A.push(f?Vt:Vt.fullpath()),d&&Vt.isSymbolicLink()?Vt.realpath().then(Ut=>Ut?.isUnknown()?Ut.lstat():Ut).then(Ut=>Ut?.shouldWalk(F,x)?W(Ut,je):je()):Vt.shouldWalk(F,x)?W(Vt,je):je()},!0)},"l"),G=s;return new Promise((be,de)=>{W(G,se=>{if(se)return de(se);be(A)})})}walkSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,A=[];(!y||y(s))&&A.push(f?s:s.fullpath());let F=new Set([s]);for(let W of F){let G=W.readdirSync();for(let be of G){(!y||y(be))&&A.push(f?be:be.fullpath());let de=be;if(be.isSymbolicLink()){if(!(d&&(de=be.realpathSync())))continue;de.isUnknown()&&de.lstatSync()}de.shouldWalk(F,x)&&F.add(de)}}return A}[Symbol.asyncIterator](){return this.iterate()}iterate(s=this.cwd,o={}){return typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd),this.stream(s,o)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o;(!y||y(s))&&(yield f?s:s.fullpath());let A=new Set([s]);for(let F of A){let W=F.readdirSync();for(let G of W){(!y||y(G))&&(yield f?G:G.fullpath());let be=G;if(G.isSymbolicLink()){if(!(d&&(be=G.realpathSync())))continue;be.isUnknown()&&be.lstatSync()}be.shouldWalk(A,x)&&A.add(be)}}}stream(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,A=new woe({objectMode:!0});(!y||y(s))&&A.write(f?s:s.fullpath());let F=new Set,W=[s],G=0,be=t(()=>{let de=!1;for(;!de;){let se=W.shift();if(!se){G===0&&A.end();return}G++,F.add(se);let Xe=t((je,Vt,Ut=!1)=>{if(je)return A.emit("error",je);if(d&&!Ut){let Ir=[];for(let wn of Vt)wn.isSymbolicLink()&&Ir.push(wn.realpath().then(sn=>sn?.isUnknown()?sn.lstat():sn));if(Ir.length){Promise.all(Ir).then(()=>Xe(null,Vt,!0));return}}for(let Ir of Vt)Ir&&(!y||y(Ir))&&(A.write(f?Ir:Ir.fullpath())||(de=!0));G--;for(let Ir of Vt){let wn=Ir.realpathCached()||Ir;wn.shouldWalk(F,x)&&W.push(wn)}de&&!A.flowing?A.once("drain",be):Ue||be()},"m"),Ue=!0;se.readdirCB(Xe,!0),Ue=!1}},"c");return be(),A}streamSync(s=this.cwd,o={}){typeof s=="string"?s=this.cwd.resolve(s):s instanceof Gv||(o=s,s=this.cwd);let{withFileTypes:f=!0,follow:d=!1,filter:y,walkFilter:x}=o,A=new woe({objectMode:!0}),F=new Set;(!y||y(s))&&A.write(f?s:s.fullpath());let W=[s],G=0,be=t(()=>{let de=!1;for(;!de;){let se=W.shift();if(!se){G===0&&A.end();return}G++,F.add(se);let Xe=se.readdirSync();for(let Ue of Xe)(!y||y(Ue))&&(A.write(f?Ue:Ue.fullpath())||(de=!0));G--;for(let Ue of Xe){let je=Ue;if(Ue.isSymbolicLink()){if(!(d&&(je=Ue.realpathSync())))continue;je.isUnknown()&&je.lstatSync()}je.shouldWalk(F,x)&&W.push(je)}}de&&!A.flowing&&A.once("drain",be)},"c");return be(),A}chdir(s=this.cwd){let o=this.cwd;this.cwd=typeof s=="string"?this.cwd.resolve(s):s,this.cwd[Ant](o)}},BPe=class extends Lnt{static{t(this,"it")}sep="\\";constructor(s=process.cwd(),o={}){let{nocase:f=!0}=o;super(s,LPe,"\\",{...o,nocase:f}),this.nocase=f;for(let d=this.cwd;d;d=d.parent)d.nocase=this.nocase}parseRootPath(s){return LPe.parse(s).root.toUpperCase()}newRoot(s){return new Nnt(this.rootPath,Nk,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")||s.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(s)}},UPe=class extends Lnt{static{t(this,"rt")}sep="/";constructor(s=process.cwd(),o={}){let{nocase:f=!1}=o;super(s,TKt,"/",{...o,nocase:f}),this.nocase=f}parseRootPath(s){return"/"}newRoot(s){return new Ont(this.rootPath,Nk,void 0,this.roots,this.nocase,this.childrenCache(),{fs:s})}isAbsolute(s){return s.startsWith("/")}},Rnt=class extends UPe{static{t(this,"St")}constructor(s=process.cwd(),o={}){let{nocase:f=!0}=o;super(s,{...o,nocase:f})}},eCr=process.platform==="win32"?Nnt:Ont,KKt=process.platform==="win32"?BPe:process.platform==="darwin"?Rnt:UPe,XKt=t(s=>s.length>=1,"Di"),ZKt=t(s=>s.length>=1,"Mi"),QKt=Symbol.for("nodejs.util.inspect.custom"),Mnt=class jnt{static{t(this,"n")}#e;#n;#t;length;#r;#s;#m;#c;#u;#f;#p=!0;constructor(o,f,d,y){if(!XKt(o))throw new TypeError("empty pattern list");if(!ZKt(f))throw new TypeError("empty glob list");if(f.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,d<0||d>=this.length)throw new TypeError("index out of range");if(this.#e=o,this.#n=f,this.#t=d,this.#r=y,this.#t===0){if(this.isUNC()){let[x,A,F,W,...G]=this.#e,[be,de,se,Xe,...Ue]=this.#n;G[0]===""&&(G.shift(),Ue.shift());let je=[x,A,F,W,""].join("/"),Vt=[be,de,se,Xe,""].join("/");this.#e=[je,...G],this.#n=[Vt,...Ue],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[x,...A]=this.#e,[F,...W]=this.#n;A[0]===""&&(A.shift(),W.shift());let G=x+"/",be=F+"/";this.#e=[G,...A],this.#n=[be,...W],this.length=this.#e.length}}}[QKt](){return"Pattern <"+this.#n.slice(this.#t).join("/")+">"}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===N1}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#m=this.#m||(this.#t===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#s!==void 0?this.#s:this.hasMore()?(this.#s=new jnt(this.#e,this.#n,this.#t+1,this.#r),this.#s.#f=this.#f,this.#s.#u=this.#u,this.#s.#c=this.#c,this.#s):this.#s=null}isUNC(){let o=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#r==="win32"&&this.#t===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#r==="win32"&&this.#t===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#e;return this.#f!==void 0?this.#f:this.#f=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#e[0];return typeof o=="string"&&this.isAbsolute()&&this.#t===0?o:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#p)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#p?!1:(this.#p=!1,!0)}},eXt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ent=class{static{t(this,"ot")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(s,{nobrace:o,nocase:f,noext:d,noglobstar:y,platform:x=eXt}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=x,this.mmopts={dot:!0,nobrace:o,nocase:f,noext:d,noglobstar:y,optimizationLevel:2,platform:x,nocomment:!0,nonegate:!0};for(let A of s)this.add(A)}add(s){let o=new GN(s,this.mmopts);for(let f=0;f<o.set.length;f++){let d=o.set[f],y=o.globParts[f];if(!d||!y)throw new Error("invalid pattern object");for(;d[0]==="."&&y[0]===".";)d.shift(),y.shift();let x=new Mnt(d,y,0,this.platform),A=new GN(x.globString(),this.mmopts),F=y[y.length-1]==="**",W=x.isAbsolute();W?this.absolute.push(A):this.relative.push(A),F&&(W?this.absoluteChildren.push(A):this.relativeChildren.push(A))}}ignored(s){let o=s.fullpath(),f=`${o}/`,d=s.relative()||".",y=`${d}/`;for(let x of this.relative)if(x.match(d)||x.match(y))return!0;for(let x of this.absolute)if(x.match(o)||x.match(f))return!0;return!1}childrenIgnored(s){let o=s.fullpath()+"/",f=(s.relative()||".")+"/";for(let d of this.relativeChildren)if(d.match(f))return!0;for(let d of this.absoluteChildren)if(d.match(o))return!0;return!1}},tXt=class Bnt{static{t(this,"n")}store;constructor(o=new Map){this.store=o}copy(){return new Bnt(new Map(this.store))}hasWalked(o,f){return this.store.get(o.fullpath())?.has(f.globString())}storeWalked(o,f){let d=o.fullpath(),y=this.store.get(d);y?y.add(f.globString()):this.store.set(d,new Set([f.globString()]))}},rXt=class{static{t(this,"he")}store=new Map;add(s,o,f){let d=(o?2:0)|(f?1:0),y=this.store.get(s);this.store.set(s,y===void 0?d:d&y)}entries(){return[...this.store.entries()].map(([s,o])=>[s,!!(o&2),!!(o&1)])}},nXt=class{static{t(this,"ae")}store=new Map;add(s,o){if(!s.canReaddir())return;let f=this.store.get(s);f?f.find(d=>d.globString()===o.globString())||f.push(o):this.store.set(s,[o])}get(s){let o=this.store.get(s);if(!o)throw new Error("attempting to walk unknown path");return o}entries(){return this.keys().map(s=>[s,this.store.get(s)])}keys(){return[...this.store.keys()].filter(s=>s.canReaddir())}},tnt=class Unt{static{t(this,"n")}hasWalkedCache;matches=new rXt;subwalks=new nXt;patterns;follow;dot;opts;constructor(o,f){this.opts=o,this.follow=!!o.follow,this.dot=!!o.dot,this.hasWalkedCache=f?f.copy():new tXt}processPatterns(o,f){this.patterns=f;let d=f.map(y=>[o,y]);for(let[y,x]of d){this.hasWalkedCache.storeWalked(y,x);let A=x.root(),F=x.isAbsolute()&&this.opts.absolute!==!1;if(A){y=y.resolve(A==="/"&&this.opts.root!==void 0?this.opts.root:A);let de=x.rest();if(de)x=de;else{this.matches.add(y,!0,!1);continue}}if(y.isENOENT())continue;let W,G,be=!1;for(;typeof(W=x.pattern())=="string"&&(G=x.rest());)y=y.resolve(W),x=G,be=!0;if(W=x.pattern(),G=x.rest(),be){if(this.hasWalkedCache.hasWalked(y,x))continue;this.hasWalkedCache.storeWalked(y,x)}if(typeof W=="string"){let de=W===".."||W===""||W===".";this.matches.add(y.resolve(W),F,de);continue}else if(W===N1){(!y.isSymbolicLink()||this.follow||x.checkFollowGlobstar())&&this.subwalks.add(y,x);let de=G?.pattern(),se=G?.rest();if(!G||(de===""||de===".")&&!se)this.matches.add(y,F,de===""||de===".");else if(de===".."){let Xe=y.parent||y;se?this.hasWalkedCache.hasWalked(Xe,se)||this.subwalks.add(Xe,se):this.matches.add(Xe,F,!0)}}else W instanceof RegExp&&this.subwalks.add(y,x)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Unt(this.opts,this.hasWalkedCache)}filterEntries(o,f){let d=this.subwalks.get(o),y=this.child();for(let x of f)for(let A of d){let F=A.isAbsolute(),W=A.pattern(),G=A.rest();W===N1?y.testGlobstar(x,A,G,F):W instanceof RegExp?y.testRegExp(x,W,G,F):y.testString(x,W,G,F)}return y}testGlobstar(o,f,d,y){if((this.dot||!o.name.startsWith("."))&&(f.hasMore()||this.matches.add(o,y,!1),o.canReaddir()&&(this.follow||!o.isSymbolicLink()?this.subwalks.add(o,f):o.isSymbolicLink()&&(d&&f.checkFollowGlobstar()?this.subwalks.add(o,d):f.markFollowGlobstar()&&this.subwalks.add(o,f)))),d){let x=d.pattern();if(typeof x=="string"&&x!==".."&&x!==""&&x!==".")this.testString(o,x,d.rest(),y);else if(x===".."){let A=o.parent||o;this.subwalks.add(A,d)}else x instanceof RegExp&&this.testRegExp(o,x,d.rest(),y)}}testRegExp(o,f,d,y){f.test(o.name)&&(d?this.subwalks.add(o,d):this.matches.add(o,y,!1))}testString(o,f,d,y){o.isNamed(f)&&(d?this.subwalks.add(o,d):this.matches.add(o,y,!1))}},iXt=t((s,o)=>typeof s=="string"?new ent([s],o):Array.isArray(s)?new ent(s,o):s,"Li"),znt=class{static{t(this,"zt")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#n;#t;signal;maxDepth;includeChildMatches;constructor(s,o,f){if(this.patterns=s,this.path=o,this.opts=f,this.#t=!f.posix&&f.platform==="win32"?"\\":"/",this.includeChildMatches=f.includeChildMatches!==!1,(f.ignore||!this.includeChildMatches)&&(this.#n=iXt(f.ignore??[],f),!this.includeChildMatches&&typeof this.#n.add!="function")){let d="cannot ignore child matches, ignore lacks add() method.";throw new Error(d)}this.maxDepth=f.maxDepth||1/0,f.signal&&(this.signal=f.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(s){return this.seen.has(s)||!!this.#n?.ignored?.(s)}#s(s){return!!this.#n?.childrenIgnored?.(s)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let s;for(;!this.paused&&(s=this.#e.shift());)s()}onResume(s){this.signal?.aborted||(this.paused?this.#e.push(s):s())}async matchCheck(s,o){if(o&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=s.realpathCached()||await s.realpath(),!f)return;s=f}let d=s.isUnknown()||this.opts.stat?await s.lstat():s;if(this.opts.follow&&this.opts.nodir&&d?.isSymbolicLink()){let y=await d.realpath();y&&(y.isUnknown()||this.opts.stat)&&await y.lstat()}return this.matchCheckTest(d,o)}matchCheckTest(s,o){return s&&(this.maxDepth===1/0||s.depth()<=this.maxDepth)&&(!o||s.canReaddir())&&(!this.opts.nodir||!s.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!s.isSymbolicLink()||!s.realpathCached()?.isDirectory())&&!this.#r(s)?s:void 0}matchCheckSync(s,o){if(o&&this.opts.nodir)return;let f;if(this.opts.realpath){if(f=s.realpathCached()||s.realpathSync(),!f)return;s=f}let d=s.isUnknown()||this.opts.stat?s.lstatSync():s;if(this.opts.follow&&this.opts.nodir&&d?.isSymbolicLink()){let y=d.realpathSync();y&&(y?.isUnknown()||this.opts.stat)&&y.lstatSync()}return this.matchCheckTest(d,o)}matchFinish(s,o){if(this.#r(s))return;if(!this.includeChildMatches&&this.#n?.add){let y=`${s.relativePosix()}/**`;this.#n.add(y)}let f=this.opts.absolute===void 0?o:this.opts.absolute;this.seen.add(s);let d=this.opts.mark&&s.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(s);else if(f){let y=this.opts.posix?s.fullpathPosix():s.fullpath();this.matchEmit(y+d)}else{let y=this.opts.posix?s.relativePosix():s.relative(),x=this.opts.dotRelative&&!y.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(y?x+y+d:"."+d)}}async match(s,o,f){let d=await this.matchCheck(s,f);d&&this.matchFinish(d,o)}matchSync(s,o,f){let d=this.matchCheckSync(s,f);d&&this.matchFinish(d,o)}walkCB(s,o,f){this.signal?.aborted&&f(),this.walkCB2(s,o,new tnt(this.opts),f)}walkCB2(s,o,f,d){if(this.#s(s))return d();if(this.signal?.aborted&&d(),this.paused){this.onResume(()=>this.walkCB2(s,o,f,d));return}f.processPatterns(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[A,F,W]of f.matches.entries())this.#r(A)||(y++,this.match(A,F,W).then(()=>x()));for(let A of f.subwalkTargets()){if(this.maxDepth!==1/0&&A.depth()>=this.maxDepth)continue;y++;let F=A.readdirCached();A.calledReaddir()?this.walkCB3(A,F,f,x):A.readdirCB((W,G)=>this.walkCB3(A,G,f,x),!0)}x()}walkCB3(s,o,f,d){f=f.filterEntries(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[A,F,W]of f.matches.entries())this.#r(A)||(y++,this.match(A,F,W).then(()=>x()));for(let[A,F]of f.subwalks.entries())y++,this.walkCB2(A,F,f.child(),x);x()}walkCBSync(s,o,f){this.signal?.aborted&&f(),this.walkCB2Sync(s,o,new tnt(this.opts),f)}walkCB2Sync(s,o,f,d){if(this.#s(s))return d();if(this.signal?.aborted&&d(),this.paused){this.onResume(()=>this.walkCB2Sync(s,o,f,d));return}f.processPatterns(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[A,F,W]of f.matches.entries())this.#r(A)||this.matchSync(A,F,W);for(let A of f.subwalkTargets()){if(this.maxDepth!==1/0&&A.depth()>=this.maxDepth)continue;y++;let F=A.readdirSync();this.walkCB3Sync(A,F,f,x)}x()}walkCB3Sync(s,o,f,d){f=f.filterEntries(s,o);let y=1,x=t(()=>{--y===0&&d()},"o");for(let[A,F,W]of f.matches.entries())this.#r(A)||this.matchSync(A,F,W);for(let[A,F]of f.subwalks.entries())y++,this.walkCB2Sync(A,F,f.child(),x);x()}},rnt=class extends znt{static{t(this,"xt")}matches=new Set;constructor(s,o,f){super(s,o,f)}matchEmit(s){this.matches.add(s)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((s,o)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?o(this.signal.reason):s(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},nnt=class extends znt{static{t(this,"vt")}results;constructor(s,o,f){super(s,o,f),this.results=new woe({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(s){this.results.write(s),this.results.flowing||this.pause()}stream(){let s=this.path;return s.isUnknown()?s.lstat().then(()=>{this.walkCB(s,this.patterns,()=>this.results.end())}):this.walkCB(s,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}},sXt=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",dO=class{static{t(this,"I")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(s,o){if(!o)throw new TypeError("glob options required");if(this.withFileTypes=!!o.withFileTypes,this.signal=o.signal,this.follow=!!o.follow,this.dot=!!o.dot,this.dotRelative=!!o.dotRelative,this.nodir=!!o.nodir,this.mark=!!o.mark,o.cwd?(o.cwd instanceof URL||o.cwd.startsWith("file://"))&&(o.cwd=yKt(o.cwd)):this.cwd="",this.cwd=o.cwd||"",this.root=o.root,this.magicalBraces=!!o.magicalBraces,this.nobrace=!!o.nobrace,this.noext=!!o.noext,this.realpath=!!o.realpath,this.absolute=o.absolute,this.includeChildMatches=o.includeChildMatches!==!1,this.noglobstar=!!o.noglobstar,this.matchBase=!!o.matchBase,this.maxDepth=typeof o.maxDepth=="number"?o.maxDepth:1/0,this.stat=!!o.stat,this.ignore=o.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof s=="string"&&(s=[s]),this.windowsPathsNoEscape=!!o.windowsPathsNoEscape||o.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(s=s.map(F=>F.replace(/\\/g,"/"))),this.matchBase){if(o.noglobstar)throw new TypeError("base matching requires globstar");s=s.map(F=>F.includes("/")?F:`./**/${F}`)}if(this.pattern=s,this.platform=o.platform||sXt,this.opts={...o,platform:this.platform},o.scurry){if(this.scurry=o.scurry,o.nocase!==void 0&&o.nocase!==o.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let F=o.platform==="win32"?BPe:o.platform==="darwin"?Rnt:o.platform?UPe:KKt;this.scurry=new F(this.cwd,{nocase:o.nocase,fs:o.fs})}this.nocase=this.scurry.nocase;let f=this.platform==="darwin"||this.platform==="win32",d={braceExpandMax:1e4,...o,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:f,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},y=this.pattern.map(F=>new GN(F,d)),[x,A]=y.reduce((F,W)=>(F[0].push(...W.set),F[1].push(...W.globParts),F),[[],[]]);this.patterns=x.map((F,W)=>{let G=A[W];if(!G)throw new Error("invalid pattern object");return new Mnt(F,G,0,this.platform)})}async walk(){return[...await new rnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new rnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new nnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new nnt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}},aXt=t((s,o={})=>{Array.isArray(s)||(s=[s]);for(let f of s)if(new GN(f,o).hasMagic())return!0;return!1},"le");function Poe(s,o={}){return new dO(s,o).streamSync()}t(Poe,"Bt");function $nt(s,o={}){return new dO(s,o).stream()}t($nt,"Qe");function Jnt(s,o={}){return new dO(s,o).walkSync()}t(Jnt,"ts");async function int(s,o={}){return new dO(s,o).walk()}t(int,"Je");function Aoe(s,o={}){return new dO(s,o).iterateSync()}t(Aoe,"Ut");function Wnt(s,o={}){return new dO(s,o).iterate()}t(Wnt,"es");var oXt=Poe,cXt=Object.assign($nt,{sync:Poe}),lXt=Aoe,uXt=Object.assign(Wnt,{sync:Aoe}),fXt=Object.assign(Jnt,{stream:Poe,iterate:Aoe}),kV=Object.assign(int,{glob:int,globSync:Jnt,sync:fXt,globStream:$nt,stream:cXt,globStreamSync:Poe,streamSync:oXt,globIterate:Wnt,iterate:uXt,globIterateSync:Aoe,iterateSync:lXt,Glob:dO,hasMagic:aXt,escape:_nt,unescape:q9});kV.glob=kV;var Ey=class extends Error{static{t(this,"CompilationError")}buildMessages;constructor(o){super("An error occurred during compilation."),this.buildMessages=Array.isArray(o)?o:[o]}toBuildResult(){return{content:"",errors:this.buildMessages}}};var _Xt="true",pXt="false",dXt="null";var mXt="Infinity";var wV=new Map([[34,'"'],[92,"\\"],[47,"/"],[98,"\b"],[110,`
|
|
568
568
|
`],[102,"\f"],[114,"\r"],[116," "]]),Ooe=new Map([...wV,[118,"\v"],[48,"\0"]]),hXt=new Map([['"','"'],["\\","\\"],["/","/"],["\b","b"],[`
|
|
569
|
-
`,"n"],["\f","f"],["\r","r"],[" ","t"]]),wCr=new Map([...hXt,["\v","v"],["\0","0"],["\u2028","u2028"],["\u2029","u2029"]]),Ioe=new Map([["[","LBracket"],["]","RBracket"],["{","LBrace"],["}","RBrace"],[":","Colon"],[",","Comma"],[_Xt,"Boolean"],[pXt,"Boolean"],[dXt,"Null"]]),Noe=new Map([...Ioe,["NaN","Number"],[mXt,"Number"]]),$Pe=new Set([10,13,8232,8233]),BP=class extends Error{static{t(this,"ErrorWithLocation")}constructor(o,{line:f,column:d,offset:y}){super(`${o} (${f}:${d})`),this.line=f,this.column=d,this.offset=y}},JPe=class extends BP{static{t(this,"UnexpectedChar")}constructor(o,f){super(`Unexpected character '${String.fromCharCode(o)}' found.`,f)}},WPe=class extends BP{static{t(this,"UnexpectedIdentifier")}constructor(o,f){super(`Unexpected identifier '${o}' found.`,f)}},mO=class extends BP{static{t(this,"UnexpectedToken")}constructor(o){super(`Unexpected token ${o.type} found.`,o.loc.start)}},Foe=class extends BP{static{t(this,"UnexpectedEOF")}constructor(o){super("Unexpected end of input found.",o)}},gXt=/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,yXt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,vXt=13,qnt=10,qPe=class{static{t(this,"CharCodeReader")}#e="";#n=1;#t=0;#r=-1;#s=!1;#m=-1;#c=!1;constructor(o){this.#e=o}#u(){this.#c||(this.#t++,this.#r++,this.#m=-1,this.#c=!0)}locate(){return{line:this.#n,column:this.#t,offset:this.#r}}next(){if(this.#r>=this.#e.length-1)return this.#u(),-1;this.#r++;let o=this.#e.charCodeAt(this.#r);return this.#s?(this.#n++,this.#t=1,this.#s=!1):this.#t++,o===vXt?(this.#s=!0,this.peek()===qnt&&this.#r++):o===qnt&&(this.#s=!0),this.#m=o,o}peek(){return this.#r===this.#e.length-1?-1:this.#e.charCodeAt(this.#r+1)}match(o){return o(this.peek())?(this.next(),!0):!1}current(){return this.#m}},bXt="Infinity",SXt="NaN",TXt=new Set([116,102,110]),VPe=new Set([32,9,10,13]),Vnt=new Set([...VPe,11,12,160,8232,8233,65279,160,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288]),xXt={mode:"json",ranges:!1},EXt=new Set(["true","false","null"]),b_={EOF:0,Number:1,String:2,Boolean:3,Null:4,NaN:5,Infinity:6,Identifier:7,Colon:20,LBrace:21,RBrace:22,LBracket:23,RBracket:24,Comma:25,LineComment:40,BlockComment:41};function jP(s){return s>=48&&s<=57}t(jP,"isDigit");function zPe(s){return jP(s)||s>=65&&s<=70||s>=97&&s<=102}t(zPe,"isHexDigit");function CXt(s){return s>=49&&s<=57}t(CXt,"isPositiveDigit");function kXt(s){return TXt.has(s)}t(kXt,"isKeywordStart");function Gnt(s){return jP(s)||s===46||s===45}t(Gnt,"isNumberStart");function wXt(s){return Gnt(s)||s===43}t(wXt,"isJSON5NumberStart");function Hnt(s,o){return s===34||o&&s===39}t(Hnt,"isStringStart");function Ynt(s){if(s===36||s===95||s===92||s>=97&&s<=122||s>=65&&s<=90||s===8204||s===8205)return!0;let o=String.fromCharCode(s);return gXt.test(o)}t(Ynt,"isJSON5IdentifierStart");function DXt(s){if(Ynt(s)||jP(s))return!0;let o=String.fromCharCode(s);return yXt.test(o)}t(DXt,"isJSON5IdentifierPart");var HPe=class{static{t(this,"Tokenizer")}#e;#n;#t;#r;#s;#m;#c;#u;#f;#p;#a;constructor(o,f){this.#n=o,this.#e={...xXt,...f},this.#t=new qPe(o),this.#r=this.#e.mode==="json5",this.#s=this.#e.mode!=="json",this.#m=this.#e.ranges,this.#u=this.#r?Ooe.has.bind(Ooe):wV.has.bind(wV),this.#f=this.#r?$Pe.has.bind($Pe):()=>!1,this.#p=this.#r?d=>d===120:()=>!1,this.#a=this.#r?Vnt.has.bind(Vnt):VPe.has.bind(VPe)}#i(o,f=this.#t.locate()){throw new JPe(o,f)}#o(o,f=this.#t.locate()){throw new WPe(o,f)}#h(){throw new Foe(this.#t.locate())}#d(o,f,d,y){let x=d.offset+f,A=this.#e.ranges?{range:[d.offset,x]}:void 0;return{type:o,loc:{start:d,end:y||{line:d.line,column:d.column+f,offset:x}},...A}}#_(o){let f="",d;for(let y=0;y<o;y++){if(d=this.#t.peek(),zPe(d)){this.#t.next(),f+=String.fromCharCode(d);continue}this.#i(d)}return f}#y(o){let f="";do{if(f+=String.fromCharCode(o),o===92&&(o=this.#t.next(),o!==117&&this.#i(o),f+=String.fromCharCode(o),f+=this.#_(4)),o=this.#t.peek(),!DXt(o))break;this.#t.next()}while(!0);return f}#b(o){let f=o,d=1;for(o=this.#t.peek();o!==-1&&o!==f;){if(this.#t.next(),d++,o===92)if(o=this.#t.peek(),this.#u(o)||this.#f(o))this.#t.next(),d++;else if(o===117){this.#t.next(),d++;let y=this.#_(4);d+=y.length}else if(this.#p(o)){this.#t.next(),d++;let y=this.#_(2);d+=y.length}else this.#r?(this.#t.next(),d++):this.#i(o);o=this.#t.peek()}return o===-1&&(this.#t.next(),this.#h()),this.#t.next(),d++,d}#v(o){let f=1;if(o===45||this.#r&&o===43){if(o=this.#t.peek(),this.#r&&(o===73||o===78)){this.#t.next();let d=this.#y(o);return d!==bXt&&d!==SXt&&this.#i(o),f+d.length}jP(o)||this.#i(o),this.#t.next(),f++}if(o===48)if(o=this.#t.peek(),this.#r&&(o===120||o===88)){this.#t.next(),f++,o=this.#t.peek(),zPe(o)||(this.#t.next(),this.#i(o));do this.#t.next(),f++,o=this.#t.peek();while(zPe(o))}else jP(o)&&this.#i(o);else if(!this.#r||o!==46)for(CXt(o)||this.#i(o),o=this.#t.peek();jP(o);)this.#t.next(),f++,o=this.#t.peek();if(o===46){let d=-1;for(this.#t.next(),f++,d++,o=this.#t.peek();jP(o);)this.#t.next(),f++,d++,o=this.#t.peek();!this.#r&&d===0&&(this.#t.next(),o?this.#i(o):this.#h())}if(o===101||o===69)for(this.#t.next(),f++,o=this.#t.peek(),(o===43||o===45)&&(this.#t.next(),f++,o=this.#t.peek()),o===-1&&(this.#t.next(),this.#h()),jP(o)||(this.#t.next(),this.#i(o));jP(o);)this.#t.next(),f++,o=this.#t.peek();return f}#C(o){let f=1;if(o=this.#t.peek(),o===47){do this.#t.next(),f+=1,o=this.#t.peek();while(o>-1&&o!==13&&o!==10);return{length:f,multiline:!1}}if(o===42){for(this.#t.next(),f+=1;o>-1;)if(o=this.#t.peek(),o===42){if(this.#t.next(),f+=1,o=this.#t.peek(),o===47)return this.#t.next(),f+=1,{length:f,multiline:!0}}else this.#t.next(),f+=1;this.#t.next(),this.#h()}this.#t.next(),this.#i(o)}next(){let o=this.#t.next();for(;this.#a(o);)o=this.#t.next();if(o===-1)return b_.EOF;let f=this.#t.locate(),d=String.fromCharCode(o);if(this.#r)if(Noe.has(d))this.#c=this.#d(Noe.get(d),1,f);else if(Ynt(o)){let y=this.#y(o);Noe.has(y)?this.#c=this.#d(Noe.get(y),y.length,f):this.#c=this.#d("Identifier",y.length,f)}else if(wXt(o)){let y=this.#v(o);this.#c=this.#d("Number",y,f)}else if(Hnt(o,this.#r)){let y=this.#b(o),x=this.#t.locate();this.#c=this.#d("String",y,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else if(o===47&&this.#s){let y=this.#C(o),x=this.#t.locate();this.#c=this.#d(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#i(o);else if(Ioe.has(d))this.#c=this.#d(Ioe.get(d),1,f);else if(kXt(o)){let y=this.#y(o);EXt.has(y)||this.#o(y,f),this.#c=this.#d(Ioe.get(y),y.length,f)}else if(Gnt(o)){let y=this.#v(o);this.#c=this.#d("Number",y,f)}else if(Hnt(o,this.#r)){let y=this.#b(o);this.#c=this.#d("String",y,f)}else if(o===47&&this.#s){let y=this.#C(o),x=this.#t.locate();this.#c=this.#d(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#i(o);return b_[this.#c.type]}get token(){return this.#c}};var cT={document(s,o={}){return{type:"Document",body:s,loc:o.loc,...o}},string(s,o={}){return{type:"String",value:s,loc:o.loc,...o}},number(s,o={}){return{type:"Number",value:s,loc:o.loc,...o}},boolean(s,o={}){return{type:"Boolean",value:s,loc:o.loc,...o}},null(s={}){return{type:"Null",loc:s.loc,...s}},array(s,o={}){return{type:"Array",elements:s,loc:o.loc,...o}},element(s,o={}){return{type:"Element",value:s,loc:o.loc,...o}},object(s,o={}){return{type:"Object",members:s,loc:o.loc,...o}},member(s,o,f={}){return{type:"Member",name:s,value:o,loc:f.loc,...f}},identifier(s,o={}){return{type:"Identifier",name:s,loc:o.loc,...o}},nan(s="",o={}){return{type:"NaN",sign:s,loc:o.loc,...o}},infinity(s="",o={}){return{type:"Infinity",sign:s,loc:o.loc,...o}}},PXt={mode:"json",ranges:!1,tokens:!1,allowTrailingCommas:!1};function AXt(s,o,f=!1){let d="",y=s.indexOf("\\"),x=0;for(;y>=0;){d+=s.slice(x,y);let A=s.charAt(y+1),F=A.charCodeAt(0);if(f&&Ooe.has(F))d+=Ooe.get(F),x=y+2;else if(wV.has(F))d+=wV.get(F),x=y+2;else if(A==="u"){let W=s.slice(y+2,y+6);if(W.length<4||/[^0-9a-f]/i.test(W))throw new BP(`Invalid unicode escape \\u${W}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});d+=String.fromCharCode(parseInt(W,16)),x=y+6}else if(f&&A==="x"){let W=s.slice(y+2,y+4);if(W.length<2||/[^0-9a-f]/i.test(W))throw new BP(`Invalid hex escape \\x${W}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});d+=String.fromCharCode(parseInt(W,16)),x=y+4}else if(f&&$Pe.has(F))x=y+2,A==="\r"&&s.charAt(x)===`
|
|
570
|
-
`&&x++;else if(f)d+=A,x=y+2;else throw new BP(`Invalid escape \\${A}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});y=s.indexOf("\\",x)}return d+=s.slice(x),d}t(AXt,"getStringValue");function NXt(s,o,f=!1){switch(o.type){case"Boolean":return s==="true";case"Number":return Number(s);case"String":return AXt(s.slice(1,-1),o,f);default:throw new TypeError(`Unknown token type "${o.type}.`)}}t(NXt,"getLiteralValue");function Knt(s,o){o=Object.freeze({...PXt,...o});let f=[],d=new HPe(s,{mode:o.mode,ranges:o.ranges}),y=o.mode==="json5",x=o.allowTrailingCommas||y;function A(){let kr=d.next();return kr&&o.tokens&&f.push(d.token),kr}t(A,"nextNoComments");function F(){let kr=d.next();return kr&&o.tokens&&f.push(d.token),kr>=b_.LineComment?F():kr}t(F,"nextSkipComments");let W=o.mode==="json"?A:F;function G(kr,yr){if(kr!==yr)throw new mO(d.token)}t(G,"assertTokenType");function be(kr,yr){if(!yr.includes(kr))throw new mO(d.token)}t(be,"assertTokenTypes");function de(kr,yr){return o.ranges?{range:[kr.offset,yr.offset]}:void 0}t(de,"createRange");function se(kr){let yr=d.token,xs=de(yr.loc.start,yr.loc.end),bi=NXt(s.slice(yr.loc.start.offset,yr.loc.end.offset),yr,y),Ci={loc:{start:{...yr.loc.start},end:{...yr.loc.end}},...xs};switch(kr){case b_.String:return cT.string(bi,Ci);case b_.Number:return cT.number(bi,Ci);case b_.Boolean:return cT.boolean(bi,Ci);default:throw new TypeError(`Unknown token type ${yr.type}.`)}}t(se,"createLiteralNode");function Xe(kr){let yr=de(kr.loc.start,kr.loc.end),xs=s.slice(kr.loc.start.offset,kr.loc.end.offset),fc={loc:{start:{...kr.loc.start},end:{...kr.loc.end}},...yr};if(kr.type!=="Identifier"){let Ci="";return(xs[0]==="+"||xs[0]==="-")&&(Ci=xs[0]),cT[xs.includes("NaN")?"nan":"infinity"](Ci,fc)}return cT.identifier(xs,fc)}t(Xe,"createJSON5IdentifierNode");function Ue(kr){let yr=de(kr.loc.start,kr.loc.end);return cT.null({loc:{start:{...kr.loc.start},end:{...kr.loc.end}},...yr})}t(Ue,"createNullNode");function je(kr){y?be(kr,[b_.String,b_.Identifier,b_.Number]):G(kr,b_.String);let yr=d.token,xs=kr===b_.String?se(kr):Xe(yr);if(y&&(xs.type==="NaN"||xs.type==="Infinity")){if(xs.sign!=="")throw new mO(d.token);xs=cT.identifier(xs.type,{loc:xs.loc,...de(xs.loc.start,xs.loc.end)})}kr=W(),G(kr,b_.Colon);let bi=Ir(),fc=de(xs.loc.start,bi.loc.end);return cT.member(xs,bi,{loc:{start:{...xs.loc.start},end:{...bi.loc.end}},...fc})}t(je,"parseProperty");function Vt(kr){G(kr,b_.LBrace);let yr=d.token,xs=[],bi=W();if(bi!==b_.RBrace)do{if(xs.push(je(bi)),bi=W(),!bi)throw new Foe(xs[xs.length-1].loc.end);if(bi===b_.Comma){if(bi=W(),x&&bi===b_.RBrace)break}else break}while(bi);G(bi,b_.RBrace);let fc=d.token,Ci=de(yr.loc.start,fc.loc.end);return cT.object(xs,{loc:{start:{...yr.loc.start},end:{...fc.loc.end}},...Ci})}t(Vt,"parseObject");function Ut(kr){G(kr,b_.LBracket);let yr=d.token,xs=[],bi=W();if(bi!==b_.RBracket)do{let bf=Ir(bi);if(xs.push(cT.element(bf,{loc:bf.loc})),bi=W(),bi===b_.Comma){if(bi=W(),x&&bi===b_.RBracket)break}else break}while(bi);G(bi,b_.RBracket);let fc=d.token,Ci=de(yr.loc.start,fc.loc.end);return cT.array(xs,{loc:{start:{...yr.loc.start},end:{...fc.loc.end}},...Ci})}t(Ut,"parseArray");function Ir(kr){kr=kr??W();let yr=d.token;switch(kr){case b_.String:case b_.Boolean:return se(kr);case b_.Number:if(y){let xs=s.slice(yr.loc.start.offset,yr.loc.end.offset);if((xs[0]==="+"||xs[0]==="-")&&(xs=xs.slice(1)),xs==="NaN"||xs==="Infinity")return Xe(yr)}return se(kr);case b_.Null:return Ue(yr);case b_.LBrace:return Vt(kr);case b_.LBracket:return Ut(kr);default:throw new mO(yr)}}t(Ir,"parseValue");let wn=Ir();if(W())throw new mO(d.token);let Jn={loc:{start:{line:1,column:1,offset:0},end:{...wn.loc.end}}};return o.tokens&&(Jn.tokens=f),o.ranges&&(Jn.range=[Jn.loc.start.offset,Jn.loc.end.offset]),cT.document(wn,Jn)}t(Knt,"parse");var IXt=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Element",["value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]],["NaN",[]],["Infinity",[]],["Identifier",[]]]);function Xnt(s){return s&&typeof s=="object"}t(Xnt,"isObject");function OXt(s){return Xnt(s)&&typeof s.type=="string"}t(OXt,"isNode");function FXt(s,o){function f(d,y){typeof o.enter=="function"&&o.enter(d,y);for(let x of IXt.get(d.type)){let A=d[x];Xnt(A)&&(Array.isArray(A)?A.forEach(F=>f(F,d)):OXt(A)&&f(A,d))}typeof o.exit=="function"&&o.exit(d,y)}t(f,"visitNode"),f(s)}t(FXt,"traverse");function Znt(s,o=()=>!0){let f=[];return FXt(s,{enter(d,y){f.push({node:d,parent:y,phase:"enter"})},exit(d,y){f.push({node:d,parent:y,phase:"exit"})}}),f.filter(o).values()}t(Znt,"iterator");import LXt from"node:fs/promises";var DV=t((s,o)=>s.split(/\r?\n/)[o-1],"getFileLineContent"),Loe=t(async s=>{try{return await LXt.readFile(s,"utf-8")}catch{return}},"getSchemaContent"),PV=t(async s=>{try{return Knt(s)}catch(o){if(o.column&&o.line&&o.message){let f=DV(s,o.line);return{column:o.column,line:o.line,length:void 0,lineText:f}}return}},"getSchemaAST");var Qnt=t(async(s,o,f)=>{try{if(s.length===0)return;for(let d of s){let y=await Loe(d),x=await RXt(y,d,o,f);if(x)return x}}catch{}},"getRouteLocationByValue"),RXt=t(async(s,o,f,d)=>{try{if(!s)return;let y=null,x=await PV(s);if(x){for(let{node:A}of Znt(x))if(A.value&&A.value===f){y=A.loc;break}if(y!==null){let A=DV(s,y.start.line);return{file:o,line:y.start.line,column:y.start.column,length:y.end.column-y.start.column,lineText:A,suggestion:d}}}}catch{}},"getRouteLocationByValueFromSchema");import eit from"node:fs/promises";import vE from"node:path";var GPe="schemas",YPe=".oas.json";var hO=t(async s=>(await eit.readdir(s)).map(f=>vE.join(s,f)).filter(f=>f.endsWith(YPe)).sort(),"getOpenApiFilesByAlphabetical"),V9=t(async s=>{let o=vE.resolve(s,"config");return(await eit.readdir(o)).filter(d=>d.endsWith(YPe)).length>=1},"oasFileInProject");function AV(s,o,f,d,y,x,A){if(x.has(f))return;let F;try{F=d.get(f)}catch(Ue){throw new D1({text:`Failed to resolve reference: ${f}`,detail:Ue.message,severity:"error",message:"Failed to resolve reference",location:{file:s,column:0,line:0,length:0,lineText:f,namespace:o,suggestion:"Check the reference and try again."}})}let W=Moe(f),G=vE.basename(W,vE.extname(W)),be=f.indexOf("#"),de=be>=0?f.substring(0,be):f,se=be>=0?f.substring(be+1):"",Xe=d.get(de);if(se){let Ue=se.split("/").filter(Boolean);for(let je of Ue)if(Xe=Xe[je],Xe===void 0)throw new Error(`Cannot resolve JSON pointer: ${se}`)}if(Xe&&typeof Xe=="object"&&"$ref"in Xe&&typeof Xe.$ref=="string"&&!Xe.$ref.startsWith("#")){let Ue=vE.resolve(vE.dirname(de),Xe.$ref);if(W=Ue,G=vE.basename(W,vE.extname(W)),de=Ue,x.has(de)){let Vt=x.get(de);if(Vt===void 0)throw new Error(`Expected to find ${de} in refsVisited map`);x.set(f,Vt);return}let je=y.length;x.set(f,je),x.set(de,je),y.push(de),Roe(W,G,F,d,y,x,A)}else x.set(f,y.length),y.push(f),Roe(Moe(f),o,F,d,y,x,A)}t(AV,"chaseRefs");function Roe(s,o,f,d,y,x,A){if(Array.isArray(f))for(let F of f)Roe(s,o,F,d,y,x,A);else if(typeof f=="object")for(let F in f){if(F==="$ref"){let W=f[F];A&&(f[F]=A(o,W,s)),AV(s,o,YN(s,W),d,y,x,A)}Roe(s,o,f[F],d,y,x,A)}}t(Roe,"lookForRefs");function YN(s,o){let f=o.indexOf("#");return f>=0?`${vE.resolve(s,o.substring(0,f))}${o.substring(f)}`:vE.resolve(vE.dirname(s),o)}t(YN,"getFullyQualifiedRefName");function Moe(s){let o=s.indexOf("#");return o>=0?s.substring(0,o):s}t(Moe,"getFilePathNameFromRefName");import fle from"node:path";function MXt(s){if(s.length>=255)throw new TypeError("Alphabet too long");let o=new Uint8Array(256);for(let G=0;G<o.length;G++)o[G]=255;for(let G=0;G<s.length;G++){let be=s.charAt(G),de=be.charCodeAt(0);if(o[de]!==255)throw new TypeError(be+" is ambiguous");o[de]=G}let f=s.length,d=s.charAt(0),y=Math.log(f)/Math.log(256),x=Math.log(256)/Math.log(f);function A(G){if(G instanceof Uint8Array||(ArrayBuffer.isView(G)?G=new Uint8Array(G.buffer,G.byteOffset,G.byteLength):Array.isArray(G)&&(G=Uint8Array.from(G))),!(G instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(G.length===0)return"";let be=0,de=0,se=0,Xe=G.length;for(;se!==Xe&&G[se]===0;)se++,be++;let Ue=(Xe-se)*x+1>>>0,je=new Uint8Array(Ue);for(;se!==Xe;){let Ir=G[se],wn=0;for(let sn=Ue-1;(Ir!==0||wn<de)&&sn!==-1;sn--,wn++)Ir+=256*je[sn]>>>0,je[sn]=Ir%f>>>0,Ir=Ir/f>>>0;if(Ir!==0)throw new Error("Non-zero carry");de=wn,se++}let Vt=Ue-de;for(;Vt!==Ue&&je[Vt]===0;)Vt++;let Ut=d.repeat(be);for(;Vt<Ue;++Vt)Ut+=s.charAt(je[Vt]);return Ut}t(A,"encode");function F(G){if(typeof G!="string")throw new TypeError("Expected String");if(G.length===0)return new Uint8Array;let be=0,de=0,se=0;for(;G[be]===d;)de++,be++;let Xe=(G.length-be)*y+1>>>0,Ue=new Uint8Array(Xe);for(;G[be];){let Ir=o[G.charCodeAt(be)];if(Ir===255)return;let wn=0;for(let sn=Xe-1;(Ir!==0||wn<se)&&sn!==-1;sn--,wn++)Ir+=f*Ue[sn]>>>0,Ue[sn]=Ir%256>>>0,Ir=Ir/256>>>0;if(Ir!==0)throw new Error("Non-zero carry");se=wn,be++}let je=Xe-se;for(;je!==Xe&&Ue[je]===0;)je++;let Vt=new Uint8Array(de+(Xe-je)),Ut=de;for(;je!==Xe;)Vt[Ut++]=Ue[je++];return Vt}t(F,"decodeUnsafe");function W(G){let be=F(G);if(be)return be;throw new Error("Non-base"+f+" character")}return t(W,"decode"),{encode:A,decodeUnsafe:F,decode:W}}t(MXt,"base");var tit=MXt;var jXt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",joe=tit(jXt);var BXt=!1;function H9(s,o){return{open:`\x1B[${s.join(";")}m`,close:`\x1B[${o}m`,regexp:new RegExp(`\\x1b\\[${o}m`,"g")}}t(H9,"code");function G9(s,o){return BXt?`${o.open}${s.replace(o.regexp,o.open)}${o.close}`:s}t(G9,"run");function UXt(s){return G9(s,H9([31],39))}t(UXt,"red");function zXt(s){return G9(s,H9([32],39))}t(zXt,"green");function $Xt(s){return G9(s,H9([33],39))}t($Xt,"yellow");function JXt(s){return G9(s,H9([34],39))}t(JXt,"blue");function WXt(s){return G9(s,H9([35],39))}t(WXt,"magenta");function qXt(s){return G9(s,H9([36],39))}t(qXt,"cyan");var YCr=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");var rit=[UXt,zXt,$Xt,JXt,WXt,qXt];function VXt(s){let o=0,f=s.length,d=0;if(f>0)for(;d<f;)o=(o<<5)-o+s.charCodeAt(d++)|0;return o}t(VXt,"hashCode");function nit(s){let o=Math.abs(VXt(s));return rit[o%rit.length]}t(nit,"generateColor");import{inspect as HXt}from"node:util";function iit(s,o,...f){let d=0,y=f.length,x=String(o).replace(/%[sdjoO%]/g,A=>{if(A==="%%")return"%";if(d>=y)return A;switch(A){case"%s":return String(f[d++]);case"%d":return Number(f[d++]).toString();case"%o":return s(f[d++]).split(`
|
|
571
|
-
`).map(F=>F.trim()).join(" ");case"%O":return s(f[d++]);case"%j":try{return JSON.stringify(f[d++])}catch{return"[Circular]"}default:return A}});for(let A of f.splice(d))A===null||!(typeof A=="object"&&A!==null)?x+=" "+A:x+=" "+s(A);return x}t(iit,"format");var sit=t((s,...o)=>iit(HXt,s,o),"format");var KPe=class{static{t(this,"Debugger")}manager;ns;color;last;enabled;constructor(o,f){this.manager=o,this.ns=f,this.color=nit(f),this.last=0,this.enabled=o.enabled.some(d=>d.test(f))}log(...o){if(!this.enabled)return;let f,d=o[0];typeof d=="function"?f=d():f=String(d);let y=Date.now()-(this.last||Date.now());f=sit(f,...o);let x=`${this.color(this.ns)} ${f} ${this.color(`+${y}ms`)}`;console.log(x),this.last=Date.now()}},XPe=class{static{t(this,"DebugManager")}debuggers;enabled;constructor(o){this.debuggers=new Map,this.enabled=o??[]}};function GXt(s){return!s||s.length===0?[]:(s=s.replace(/\s/g,"").replace(/\*/g,".+"),s.split(",").map(o=>new RegExp(`^${o}$`)))}t(GXt,"extract");var Boe;function Uoe(s){Boe||(Boe=new XPe(GXt(process.env.DEBUG)));let o=new KPe(Boe,s);return Boe.debuggers.set(s,o),Object.assign(o.log.bind(o),{self:o})}t(Uoe,"debug");var ait="zp-local-service";var UP=class extends Error{static{t(this,"RuntimeError")}extensionMembers;constructor(o,f){typeof o=="string"?super(o,f):(super(o.message,f),this.extensionMembers=o.extensionMembers),this.name="RuntimeError"}};var KN=Uoe("zuplo:runtime:external-service");function YXt(){let s,{__ZUPLO_EXTERNAL_SERVICE_TOKEN:o}=Cm.instance.runtime;if(o&&o!=="undefined")try{let f=atob(o);s=JSON.parse(f)}catch{}return s}t(YXt,"getServiceAuth");async function oit(s,o){let f=".proxy",d=".tunnel";if(typeof s=="string"){let y=new URL(s),x=y.hostname;if(x.endsWith(f)){let Vt=x.slice(0,-f.length),Ut=new URL(`http://${Vt}${y.pathname}${y.search}`);KN(`Routing to proxy: ${Ut.toString()}`);let Ir=o??{};return NV(Ut.toString(),Ir)}let A=x.endsWith(d),F=x.indexOf(".")===-1;if(!(A||F))throw new UP(`Invalid service hostname suffix: ${x}. Use .proxy for proxy routing, .tunnel for explicit tunnel routing, or no suffix for default tunnel routing.`);let G=A?x.slice(0,-d.length):x,be=YXt();if(!be)throw KN("There is no external service auth configured for this zup."),new UP("There are no external services configured for this zup.");KN(`Using external service auth. ClientId: ${be.clientId})`);let de=o??{},se=new Headers(de.headers||{});se.set("CF-Access-Client-Id",be.clientId),se.set("CF-Access-Client-Secret",be.clientSecret),de.headers=se;let Xe;if(be.customServiceMapping?.[G])Xe=`https://${be.customServiceMapping[G]}`;else if(Cm.instance.useLegacyServiceRouting)Xe=`https://${G}.zuptunnel.com`;else{KN("Using sha256 service routing");let Vt=Cm.instance.build;if(Vt.ACCOUNT_NAME&&Vt.PROJECT_NAME&&Vt.ENVIRONMENT_TYPE){let Ut=await KXt(G,Vt.ACCOUNT_NAME,Vt.PROJECT_NAME,Vt.ENVIRONMENT_TYPE),Ir=lit(Vt.ENVIRONMENT_TYPE),wn=await ZPe(`${Vt.ACCOUNT_NAME}-${Vt.PROJECT_NAME}-${Ir}`);wn==="40d7ad502f5d743997999594c177184a00161a77865423511f3a1ea21eb5a5e"||wn==="d05bffe8fa91a300187d2cf43e8aa4a56bd809c442ae10d1ee49af7d29a5a11"?Xe=`https://${Ut}.zuptunnel.com`:Xe=`https://${Ut}.t.zuplo.app`}else throw KN("Cannot use sha256 service routing, missing build variables"),new UP("Failed to generate fully qualified tunnel url.")}let Ue=new URL(`${Xe}${y.pathname}${y.search}`);KN(`Calling external service: ${Ue.toString()}`);let je=await NV(Ue.toString(),de);if(je.status===403&&je.headers.get("cf-access-domain")!==null)throw IV.console.error("403 Forbidden when calling external service.",{clientId:be.clientId,tunnelHost:Xe}),new UP("Could not connect to secure tunnel.");return je}else throw KN("Cannot call external service with Request object"),new UP("Currently, we only support fetch(<some_string>, ...).")}t(oit,"externalServiceHandler");async function cit(s,o){if(typeof s=="string"){let f=new URL(s),d=f.hostname,y=o??{},x=`http://${d}.zuplo.svc.cluster.local:9000`,A=new URL(`${x}${f.pathname}${f.search}`),F=new Headers(y.headers||{});return F.set(ait,d),y.headers=F,await NV(A.toString(),y)}else throw new UP("Currently, we only support fetch(<some_string>, ...).")}t(cit,"clusterServiceHandler");async function KXt(s,o,f,d){let y=s.toLowerCase(),x=o.toLowerCase(),A=f.toLowerCase(),F=lit(d);KN(`Hashing service name: ${x}-${y}.${x}-${A}-${F}`);let W=await ZPe(`${x}-${y}`),G=await ZPe(`${x}-${A}-${F}`);return`${W}.${G}`}t(KXt,"hashServiceName");async function ZPe(s){let o=new TextEncoder().encode(s),f=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(f)).map(x=>x.toString(16).padStart(2,"0")).join("").slice(0,-1)}t(ZPe,"hashSegment");function lit(s){let o=s.toLowerCase();switch(o){case"production":case"preview":return o;default:return"working-copy"}}t(lit,"sanitizeEnvironmentType");var QPe=new Map;QPe.set("service:",oit);QPe.set("local:",cit);var NV=globalThis.fetch;function eAe(s,o){let{transformedInit:f,mtlsCertificate:d}=XXt(o);if(typeof s=="string"){let y=new URL(s),x=QPe.get(y.protocol);return x?x(s,f):uit(s,f,d)}else return uit(s,f,d)}t(eAe,"internalFetch");globalThis.fetch=eAe;function uit(s,o,f){if(!f)return NV(s,o);if(Cm.instance.isCloudflare){let y=Cm.instance.runtime[f];if(!y)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof y!="object"||typeof y.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding. Make sure it's configured as an mTLS certificate, not an environment variable.`);return y.fetch(s,o)}else if(Cm.instance.isDeno){let d=globalThis.managedDedicatedMtlsBindings?.[f];if(!d)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof d.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding.`);return d.fetch(s,o)}else throw new Error("mTLS client certificates are not supported in this runtime environment")}t(uit,"performFetch");var XXt=t(s=>{if(!s||s instanceof Request)return{transformedInit:s,mtlsCertificate:void 0};let o=s;if(!o.zuplo)return{transformedInit:s,mtlsCertificate:void 0};let f=o.zuplo.mtlsCertificate,d=s;return d.cf={cacheEverything:o.zuplo?.cacheEverything,cacheTtl:o.zuplo?.cacheTtlSeconds},delete s.zuplo,{transformedInit:s,mtlsCertificate:f}},"transformInit");var ZXt={console:{log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),assert:console.assert.bind(console),clear:console.clear.bind(console),count:console.count.bind(console),countReset:console.countReset.bind(console),dir:console.dir.bind(console),dirxml:console.dirxml.bind(console),group:console.group.bind(console),groupCollapsed:console.groupCollapsed.bind(console),groupEnd:console.groupEnd.bind(console),table:console.table.bind(console),time:console.time.bind(console),timeEnd:console.timeEnd.bind(console),timeLog:console.timeLog.bind(console),timeStamp:console.timeStamp.bind(console),trace:console.trace.bind(console),profile:console.profile.bind(console),profileEnd:console.profileEnd.bind(console)},fetch:eAe},IV=ZXt;var tAe="2025-02-06",fit=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2026-03-01":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!0,return501ForUnsupportedHttpMethods:!0}});function _it(){return new Cm({build:{ACCOUNT_NAME:"mock-account-name",PROJECT_NAME:"mock-project-name",API_VERSION:"0.0.0",BUILD_ID:crypto.randomUUID(),TIMESTAMP:new Date().toISOString(),BUILD_ENV:"test",ZUPLO_VERSION:"0.0.0",COMPATIBILITY_DATE:tAe,ENVIRONMENT_TYPE:"mock-environment-type",GIT_SHA:void 0,IS_LOCAL_DEVELOPMENT:!1,COMPATIBILITY_FLAGS:fit[tAe]},runtime:{RUNTIME_ENV:"test",RUNTIME_STAGE:"test",__ZUPLO_DEPLOYMENT_NAME:"mock-deployment-name",__ZUPLO_LOG_LEVEL:"debug",__ZUPLO_LOG_FORMAT:"pretty",__ZUPLO_MANAGEMENT_API_URL:"",__ZUPLO_RUNTIME_TYPE:"cloudflare",__ZUPLO_AUTH_API_JWT:"",ZUPLO_SERVICE_BUCKET_ID:"bckt_mock"}})}t(_it,"getMockEnvironment");var Cm=class s{static{t(this,"Environment")}config;static#e;static#n=!1;static initialize(o){s.#e||(s.#e=new s(o),s.#n=!0)}static get instance(){return s.#n||(IV.console.debug("Environment has not been initialized. This is okay when running tests, a mock environment will be used."),s.#e??=_it()),s.#e}constructor({build:o,runtime:f}){let d;try{if(f.ZUPLO_SYSTEM_CONFIGURATIONS){let y=new TextDecoder().decode(joe.decode(f.ZUPLO_SYSTEM_CONFIGURATIONS)),x=JSON.parse(y);for(let A of Object.keys(x))f[A]||(f[A]=x[A])}if(f.__ZUPLO_CONFIG){let y=atob(f.__ZUPLO_CONFIG);d=JSON.parse(y)}}catch(y){IV.console.error("Failed to parse runtime configuration",y)}this.config=d??{},this.build=o,this.runtime=f,this.instanceId=crypto.randomUUID()}build;runtime;instanceId;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get accountName(){return this.build.ACCOUNT_NAME??this.runtime.ZUPLO_ACCOUNT_NAME??void 0}get projectName(){return this.build.PROJECT_NAME??this.runtime.ZUPLO_PROJECT_NAME??void 0}get useLegacyServiceRouting(){return this.config.use_legacy_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.com"}get zuploEdgeApiUrl(){return this.config.zuplo_edge_api_url??"https://api.zuploedge.com"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get zuploClientAuthBucketId(){return this.config.zuplo_auth_client_bucket_id??"auth_o8PUdhKxSTOiB794GWPwLQCD"}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get developerApiUrl(){return this.config.developer_api_url??"https://dev.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuploedge.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuploedge.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuploedge.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuploedge.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get authClientId(){return this.config.auth_client_id??this.runtime.__ZUPLO_AUTH_CLIENT_ID}get authClientSecret(){return this.config.auth_client_secret??this.runtime.__ZUPLO_AUTH_CLIENT_SECRET}get authPublicKey(){return this.config.auth_public_key??this.runtime.__ZUPLO_AUTH_PUBLIC_KEY}get authPrivateKey(){return this.config.auth_private_key??this.runtime.__ZUPLO_AUTH_PRIVATE_KEY}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isManagedDedicated(){return this.runtime.__ZUPLO_IS_MANAGED_DEDICATED==="true"}get isDeno(){if(this.runtime.__ZUPLO_RUNTIME_TYPE)return this.runtime.__ZUPLO_RUNTIME_TYPE==="deno";if(this.config.runtime_type)return this.config.runtime_type==="deno";{let o=globalThis.Deno?.version?.deno;return typeof WebSocketPair!="function"&&o}}get isLocalDevelopment(){return this.build.IS_LOCAL_DEVELOPMENT}get isTestMode(){return!!this.runtime.__ZUPLO_TEST_MODE}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isWorkingCopy?"working-copy":"unknown"}get isWorkingCopy(){return this.build.ENVIRONMENT_TYPE==="WORKING_COPY"}get rateLimitServiceTimeoutMs(){let o=this.runtime.__ZUPLO_RATE_LIMIT_TIMEOUT_MS,f=this.config.rate_limit_service_timeout_ms,d=o??f;if(!d)return 500;let y=Number(d);return Number.isFinite(y)&&y>0?y:500}};var QXt=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function pit(s){return s.startsWith("__ZUPLO")||s.startsWith("ZUPLO_")?!QXt.includes(s)&&!s.startsWith("ZUPLO_PUBLIC_"):s.startsWith("ZUDOKU_")?!s.startsWith("ZUDOKU_PUBLIC_"):!1}t(pit,"isRestrictedEnvVariableName");function dit(s){return!!s.startsWith("ZUPLO_")}t(dit,"isZuploReadableEnvVariableName");var Mkr=new Proxy({},{get(s,o){let f=String(o);switch(f){case"ZUPLO_ENVIRONMENT_TYPE":return Cm.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return Cm.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return Cm.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return Cm.instance.accountName;case"ZUPLO_PROJECT_NAME":return Cm.instance.projectName;case"ZUPLO_BUILD_ID":return Cm.instance.build.BUILD_ID;case"ZUPLO_COMPATIBILITY_DATE":return Cm.instance.build.COMPATIBILITY_DATE}if(!(pit(f)&&!dit(f)))return Cm.instance.runtime[f]}});function OV(s,o,f){return`_${zP(`${s}_${o}_${f}`)}`}t(OV,"getRawOperationDataIdentifierName");function rAe(s,o,f,d){return`_${zP(s.toLowerCase())}_${o.toLowerCase()}_${f.toLowerCase()}_${d.toLowerCase()}`}t(rAe,"getIdForParameterSchema");function nAe(s,o,f){return`_${zP(s.toLowerCase())}_${o.toLowerCase()}_rb_${zP(f.toLowerCase())}`}t(nAe,"getIdForRequestBodySchema");function FV(s,o){return`_${zP(s)}_${zP(o)}`}t(FV,"getIdForRefSchema");function zP(s){let o=s.replace(/\[/g,"_LBRACKET_").replace(/\]/g,"_RBRACKET_").replace(/\{/g,"_LCURLY_").replace(/\}/g,"_RCURLY_").replace(/\//g,"_SLASH_").replace(/-/g,"_DASH_").replace(/\./g,"_DOT_").replace(/\+/g,"_PLUS_").replace(/:/g,"_COLON_").replace(/@/g,"_AT_").replace(/\$/g,"_DOLLAR_").replace(/[^a-zA-Z0-9_]/g,"_");return/^[a-zA-Z_]/.test(o)||(o=`_${o}`),o}t(zP,"sanitizedIdentifierName");var sAe={};qtt(sAe,{UnsafePathError:()=>zoe,deleteFolder:()=>pZt,dirExists:()=>iAe,fileExists:()=>nZt,getParentDirFilename:()=>uZt,isNotFileOrDirectory:()=>sZt,listFolderContents:()=>git,listFolders:()=>oZt,mkDirTemp:()=>iZt,mkdirForFilePathIfNotExits:()=>cZt,mkdirIfNotExists:()=>yit,safePath:()=>lZt,tarFolder:()=>fZt,untarFile:()=>_Zt});import{spawn as mit}from"node:child_process";import{randomUUID as eZt}from"node:crypto";import XN from"node:fs/promises";import{platform as tZt,tmpdir as rZt}from"node:os";import O1 from"node:path";var hit=[".git","node_modules",".yarn",".DS_Store"];async function nZt(s){try{return(await XN.stat(s)).isFile()}catch{return!1}}t(nZt,"fileExists");async function iZt(){let s=process.env.BUILD_FILE_PATH??rZt(),o=eZt().replaceAll("-",""),f=O1.join(s,o);return await XN.mkdir(f,{recursive:!0}),f}t(iZt,"mkDirTemp");async function iAe(s){try{return(await XN.stat(s)).isDirectory()}catch{return!1}}t(iAe,"dirExists");async function sZt(s){try{return await XN.stat(s),!1}catch{return!0}}t(sZt,"isNotFileOrDirectory");function aZt(s,o){let f=O1.sep==="\\"?"\\\\":O1.sep,d=new RegExp(`(.*)(${f}${o})$|(.*)(${o}${f})`),y=s.match(d);if(!y)return"";let x=s.split(y[0]);return x[1]===""?"":O1.join(O1.sep,x[1])}t(aZt,"getParentDirectory");async function oZt(s){if(!await iAe(s))return[];let o=await XN.readdir(s,{withFileTypes:!0}),f=[];for await(let d of o)hit.includes(d.name)||d.isDirectory()&&f.push(d.name);return f}t(oZt,"listFolders");async function git(s,o,f=!0){let d=aZt(s,o),y=await XN.readdir(s,{withFileTypes:!0}),x=[];for await(let A of y)if(!hit.includes(A.name)||!f)if(A.isDirectory()){let F=await git(O1.join(s,A.name),o,f);x.push(...F)}else x.push(O1.join(d,A.name));return x}t(git,"listFolderContents");var yit=t(async s=>{await XN.mkdir(s,{recursive:!0})},"mkdirIfNotExists"),cZt=t(async s=>{let o=O1.dirname(s);return yit(o)},"mkdirForFilePathIfNotExits"),zoe=class extends Error{static{t(this,"UnsafePathError")}};function lZt(s){let o=O1.normalize(s),f=t(d=>{let y=O1.normalize(d),x=process.platform==="win32",A=!1;if(x?A=y.toLowerCase().startsWith(o.toLowerCase()):A=y.startsWith(o),!A)throw new zoe("Resolved path is not part of the project.");return y},"ensureSafePath");return{resolve:t((...d)=>f(O1.resolve(...d)),"resolve")}}t(lZt,"safePath");function uZt(s){return O1.join(O1.basename(O1.dirname(s)),O1.basename(s))}t(uZt,"getParentDirFilename");async function fZt({folderPath:s,outputTarPath:o,exclude:f=["node_modules",".git","dist"],logger:d}){let y=[],x=[],A;try{await new Promise((F,W)=>{let G=mit("tar",[...f.flatMap(be=>["--exclude",be]),...tZt()!=="darwin"?["--warning=no-file-changed"]:[],"-cvf",o,"-C",s,"."]);G.stdout.on("data",be=>{let de=be.toString().trim();de.length>0&&y.push(de.trim())}),G.stderr.on("data",be=>{let de=be.toString().trim();de.length>0&&x.push(de.trim())}),G.on("close",be=>{A=be,be===0?F():W(new Error(`tar process exited with code ${be}`))}),G.on("error",be=>{W(be)})})}catch(F){throw new Error("Failed to tar folder",{cause:F})}finally{d.info({stdout:y.join(`
|
|
569
|
+
`,"n"],["\f","f"],["\r","r"],[" ","t"]]),DCr=new Map([...hXt,["\v","v"],["\0","0"],["\u2028","u2028"],["\u2029","u2029"]]),Ioe=new Map([["[","LBracket"],["]","RBracket"],["{","LBrace"],["}","RBrace"],[":","Colon"],[",","Comma"],[_Xt,"Boolean"],[pXt,"Boolean"],[dXt,"Null"]]),Noe=new Map([...Ioe,["NaN","Number"],[mXt,"Number"]]),$Pe=new Set([10,13,8232,8233]),BP=class extends Error{static{t(this,"ErrorWithLocation")}constructor(o,{line:f,column:d,offset:y}){super(`${o} (${f}:${d})`),this.line=f,this.column=d,this.offset=y}},JPe=class extends BP{static{t(this,"UnexpectedChar")}constructor(o,f){super(`Unexpected character '${String.fromCharCode(o)}' found.`,f)}},WPe=class extends BP{static{t(this,"UnexpectedIdentifier")}constructor(o,f){super(`Unexpected identifier '${o}' found.`,f)}},mO=class extends BP{static{t(this,"UnexpectedToken")}constructor(o){super(`Unexpected token ${o.type} found.`,o.loc.start)}},Foe=class extends BP{static{t(this,"UnexpectedEOF")}constructor(o){super("Unexpected end of input found.",o)}},gXt=/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,yXt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,vXt=13,qnt=10,qPe=class{static{t(this,"CharCodeReader")}#e="";#n=1;#t=0;#r=-1;#s=!1;#m=-1;#c=!1;constructor(o){this.#e=o}#u(){this.#c||(this.#t++,this.#r++,this.#m=-1,this.#c=!0)}locate(){return{line:this.#n,column:this.#t,offset:this.#r}}next(){if(this.#r>=this.#e.length-1)return this.#u(),-1;this.#r++;let o=this.#e.charCodeAt(this.#r);return this.#s?(this.#n++,this.#t=1,this.#s=!1):this.#t++,o===vXt?(this.#s=!0,this.peek()===qnt&&this.#r++):o===qnt&&(this.#s=!0),this.#m=o,o}peek(){return this.#r===this.#e.length-1?-1:this.#e.charCodeAt(this.#r+1)}match(o){return o(this.peek())?(this.next(),!0):!1}current(){return this.#m}},bXt="Infinity",SXt="NaN",TXt=new Set([116,102,110]),VPe=new Set([32,9,10,13]),Vnt=new Set([...VPe,11,12,160,8232,8233,65279,160,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288]),xXt={mode:"json",ranges:!1},EXt=new Set(["true","false","null"]),b_={EOF:0,Number:1,String:2,Boolean:3,Null:4,NaN:5,Infinity:6,Identifier:7,Colon:20,LBrace:21,RBrace:22,LBracket:23,RBracket:24,Comma:25,LineComment:40,BlockComment:41};function jP(s){return s>=48&&s<=57}t(jP,"isDigit");function zPe(s){return jP(s)||s>=65&&s<=70||s>=97&&s<=102}t(zPe,"isHexDigit");function CXt(s){return s>=49&&s<=57}t(CXt,"isPositiveDigit");function kXt(s){return TXt.has(s)}t(kXt,"isKeywordStart");function Gnt(s){return jP(s)||s===46||s===45}t(Gnt,"isNumberStart");function wXt(s){return Gnt(s)||s===43}t(wXt,"isJSON5NumberStart");function Hnt(s,o){return s===34||o&&s===39}t(Hnt,"isStringStart");function Ynt(s){if(s===36||s===95||s===92||s>=97&&s<=122||s>=65&&s<=90||s===8204||s===8205)return!0;let o=String.fromCharCode(s);return gXt.test(o)}t(Ynt,"isJSON5IdentifierStart");function DXt(s){if(Ynt(s)||jP(s))return!0;let o=String.fromCharCode(s);return yXt.test(o)}t(DXt,"isJSON5IdentifierPart");var HPe=class{static{t(this,"Tokenizer")}#e;#n;#t;#r;#s;#m;#c;#u;#f;#p;#a;constructor(o,f){this.#n=o,this.#e={...xXt,...f},this.#t=new qPe(o),this.#r=this.#e.mode==="json5",this.#s=this.#e.mode!=="json",this.#m=this.#e.ranges,this.#u=this.#r?Ooe.has.bind(Ooe):wV.has.bind(wV),this.#f=this.#r?$Pe.has.bind($Pe):()=>!1,this.#p=this.#r?d=>d===120:()=>!1,this.#a=this.#r?Vnt.has.bind(Vnt):VPe.has.bind(VPe)}#i(o,f=this.#t.locate()){throw new JPe(o,f)}#o(o,f=this.#t.locate()){throw new WPe(o,f)}#h(){throw new Foe(this.#t.locate())}#d(o,f,d,y){let x=d.offset+f,A=this.#e.ranges?{range:[d.offset,x]}:void 0;return{type:o,loc:{start:d,end:y||{line:d.line,column:d.column+f,offset:x}},...A}}#_(o){let f="",d;for(let y=0;y<o;y++){if(d=this.#t.peek(),zPe(d)){this.#t.next(),f+=String.fromCharCode(d);continue}this.#i(d)}return f}#y(o){let f="";do{if(f+=String.fromCharCode(o),o===92&&(o=this.#t.next(),o!==117&&this.#i(o),f+=String.fromCharCode(o),f+=this.#_(4)),o=this.#t.peek(),!DXt(o))break;this.#t.next()}while(!0);return f}#b(o){let f=o,d=1;for(o=this.#t.peek();o!==-1&&o!==f;){if(this.#t.next(),d++,o===92)if(o=this.#t.peek(),this.#u(o)||this.#f(o))this.#t.next(),d++;else if(o===117){this.#t.next(),d++;let y=this.#_(4);d+=y.length}else if(this.#p(o)){this.#t.next(),d++;let y=this.#_(2);d+=y.length}else this.#r?(this.#t.next(),d++):this.#i(o);o=this.#t.peek()}return o===-1&&(this.#t.next(),this.#h()),this.#t.next(),d++,d}#v(o){let f=1;if(o===45||this.#r&&o===43){if(o=this.#t.peek(),this.#r&&(o===73||o===78)){this.#t.next();let d=this.#y(o);return d!==bXt&&d!==SXt&&this.#i(o),f+d.length}jP(o)||this.#i(o),this.#t.next(),f++}if(o===48)if(o=this.#t.peek(),this.#r&&(o===120||o===88)){this.#t.next(),f++,o=this.#t.peek(),zPe(o)||(this.#t.next(),this.#i(o));do this.#t.next(),f++,o=this.#t.peek();while(zPe(o))}else jP(o)&&this.#i(o);else if(!this.#r||o!==46)for(CXt(o)||this.#i(o),o=this.#t.peek();jP(o);)this.#t.next(),f++,o=this.#t.peek();if(o===46){let d=-1;for(this.#t.next(),f++,d++,o=this.#t.peek();jP(o);)this.#t.next(),f++,d++,o=this.#t.peek();!this.#r&&d===0&&(this.#t.next(),o?this.#i(o):this.#h())}if(o===101||o===69)for(this.#t.next(),f++,o=this.#t.peek(),(o===43||o===45)&&(this.#t.next(),f++,o=this.#t.peek()),o===-1&&(this.#t.next(),this.#h()),jP(o)||(this.#t.next(),this.#i(o));jP(o);)this.#t.next(),f++,o=this.#t.peek();return f}#C(o){let f=1;if(o=this.#t.peek(),o===47){do this.#t.next(),f+=1,o=this.#t.peek();while(o>-1&&o!==13&&o!==10);return{length:f,multiline:!1}}if(o===42){for(this.#t.next(),f+=1;o>-1;)if(o=this.#t.peek(),o===42){if(this.#t.next(),f+=1,o=this.#t.peek(),o===47)return this.#t.next(),f+=1,{length:f,multiline:!0}}else this.#t.next(),f+=1;this.#t.next(),this.#h()}this.#t.next(),this.#i(o)}next(){let o=this.#t.next();for(;this.#a(o);)o=this.#t.next();if(o===-1)return b_.EOF;let f=this.#t.locate(),d=String.fromCharCode(o);if(this.#r)if(Noe.has(d))this.#c=this.#d(Noe.get(d),1,f);else if(Ynt(o)){let y=this.#y(o);Noe.has(y)?this.#c=this.#d(Noe.get(y),y.length,f):this.#c=this.#d("Identifier",y.length,f)}else if(wXt(o)){let y=this.#v(o);this.#c=this.#d("Number",y,f)}else if(Hnt(o,this.#r)){let y=this.#b(o),x=this.#t.locate();this.#c=this.#d("String",y,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else if(o===47&&this.#s){let y=this.#C(o),x=this.#t.locate();this.#c=this.#d(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#i(o);else if(Ioe.has(d))this.#c=this.#d(Ioe.get(d),1,f);else if(kXt(o)){let y=this.#y(o);EXt.has(y)||this.#o(y,f),this.#c=this.#d(Ioe.get(y),y.length,f)}else if(Gnt(o)){let y=this.#v(o);this.#c=this.#d("Number",y,f)}else if(Hnt(o,this.#r)){let y=this.#b(o);this.#c=this.#d("String",y,f)}else if(o===47&&this.#s){let y=this.#C(o),x=this.#t.locate();this.#c=this.#d(y.multiline?"BlockComment":"LineComment",y.length,f,{line:x.line,column:x.column+1,offset:x.offset+1})}else this.#i(o);return b_[this.#c.type]}get token(){return this.#c}};var cT={document(s,o={}){return{type:"Document",body:s,loc:o.loc,...o}},string(s,o={}){return{type:"String",value:s,loc:o.loc,...o}},number(s,o={}){return{type:"Number",value:s,loc:o.loc,...o}},boolean(s,o={}){return{type:"Boolean",value:s,loc:o.loc,...o}},null(s={}){return{type:"Null",loc:s.loc,...s}},array(s,o={}){return{type:"Array",elements:s,loc:o.loc,...o}},element(s,o={}){return{type:"Element",value:s,loc:o.loc,...o}},object(s,o={}){return{type:"Object",members:s,loc:o.loc,...o}},member(s,o,f={}){return{type:"Member",name:s,value:o,loc:f.loc,...f}},identifier(s,o={}){return{type:"Identifier",name:s,loc:o.loc,...o}},nan(s="",o={}){return{type:"NaN",sign:s,loc:o.loc,...o}},infinity(s="",o={}){return{type:"Infinity",sign:s,loc:o.loc,...o}}},PXt={mode:"json",ranges:!1,tokens:!1,allowTrailingCommas:!1};function AXt(s,o,f=!1){let d="",y=s.indexOf("\\"),x=0;for(;y>=0;){d+=s.slice(x,y);let A=s.charAt(y+1),F=A.charCodeAt(0);if(f&&Ooe.has(F))d+=Ooe.get(F),x=y+2;else if(wV.has(F))d+=wV.get(F),x=y+2;else if(A==="u"){let W=s.slice(y+2,y+6);if(W.length<4||/[^0-9a-f]/i.test(W))throw new BP(`Invalid unicode escape \\u${W}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});d+=String.fromCharCode(parseInt(W,16)),x=y+6}else if(f&&A==="x"){let W=s.slice(y+2,y+4);if(W.length<2||/[^0-9a-f]/i.test(W))throw new BP(`Invalid hex escape \\x${W}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});d+=String.fromCharCode(parseInt(W,16)),x=y+4}else if(f&&$Pe.has(F))x=y+2,A==="\r"&&s.charAt(x)===`
|
|
570
|
+
`&&x++;else if(f)d+=A,x=y+2;else throw new BP(`Invalid escape \\${A}.`,{line:o.loc.start.line,column:o.loc.start.column+y,offset:o.loc.start.offset+y});y=s.indexOf("\\",x)}return d+=s.slice(x),d}t(AXt,"getStringValue");function NXt(s,o,f=!1){switch(o.type){case"Boolean":return s==="true";case"Number":return Number(s);case"String":return AXt(s.slice(1,-1),o,f);default:throw new TypeError(`Unknown token type "${o.type}.`)}}t(NXt,"getLiteralValue");function Knt(s,o){o=Object.freeze({...PXt,...o});let f=[],d=new HPe(s,{mode:o.mode,ranges:o.ranges}),y=o.mode==="json5",x=o.allowTrailingCommas||y;function A(){let kr=d.next();return kr&&o.tokens&&f.push(d.token),kr}t(A,"nextNoComments");function F(){let kr=d.next();return kr&&o.tokens&&f.push(d.token),kr>=b_.LineComment?F():kr}t(F,"nextSkipComments");let W=o.mode==="json"?A:F;function G(kr,yr){if(kr!==yr)throw new mO(d.token)}t(G,"assertTokenType");function be(kr,yr){if(!yr.includes(kr))throw new mO(d.token)}t(be,"assertTokenTypes");function de(kr,yr){return o.ranges?{range:[kr.offset,yr.offset]}:void 0}t(de,"createRange");function se(kr){let yr=d.token,xs=de(yr.loc.start,yr.loc.end),bi=NXt(s.slice(yr.loc.start.offset,yr.loc.end.offset),yr,y),Ci={loc:{start:{...yr.loc.start},end:{...yr.loc.end}},...xs};switch(kr){case b_.String:return cT.string(bi,Ci);case b_.Number:return cT.number(bi,Ci);case b_.Boolean:return cT.boolean(bi,Ci);default:throw new TypeError(`Unknown token type ${yr.type}.`)}}t(se,"createLiteralNode");function Xe(kr){let yr=de(kr.loc.start,kr.loc.end),xs=s.slice(kr.loc.start.offset,kr.loc.end.offset),fc={loc:{start:{...kr.loc.start},end:{...kr.loc.end}},...yr};if(kr.type!=="Identifier"){let Ci="";return(xs[0]==="+"||xs[0]==="-")&&(Ci=xs[0]),cT[xs.includes("NaN")?"nan":"infinity"](Ci,fc)}return cT.identifier(xs,fc)}t(Xe,"createJSON5IdentifierNode");function Ue(kr){let yr=de(kr.loc.start,kr.loc.end);return cT.null({loc:{start:{...kr.loc.start},end:{...kr.loc.end}},...yr})}t(Ue,"createNullNode");function je(kr){y?be(kr,[b_.String,b_.Identifier,b_.Number]):G(kr,b_.String);let yr=d.token,xs=kr===b_.String?se(kr):Xe(yr);if(y&&(xs.type==="NaN"||xs.type==="Infinity")){if(xs.sign!=="")throw new mO(d.token);xs=cT.identifier(xs.type,{loc:xs.loc,...de(xs.loc.start,xs.loc.end)})}kr=W(),G(kr,b_.Colon);let bi=Ir(),fc=de(xs.loc.start,bi.loc.end);return cT.member(xs,bi,{loc:{start:{...xs.loc.start},end:{...bi.loc.end}},...fc})}t(je,"parseProperty");function Vt(kr){G(kr,b_.LBrace);let yr=d.token,xs=[],bi=W();if(bi!==b_.RBrace)do{if(xs.push(je(bi)),bi=W(),!bi)throw new Foe(xs[xs.length-1].loc.end);if(bi===b_.Comma){if(bi=W(),x&&bi===b_.RBrace)break}else break}while(bi);G(bi,b_.RBrace);let fc=d.token,Ci=de(yr.loc.start,fc.loc.end);return cT.object(xs,{loc:{start:{...yr.loc.start},end:{...fc.loc.end}},...Ci})}t(Vt,"parseObject");function Ut(kr){G(kr,b_.LBracket);let yr=d.token,xs=[],bi=W();if(bi!==b_.RBracket)do{let bf=Ir(bi);if(xs.push(cT.element(bf,{loc:bf.loc})),bi=W(),bi===b_.Comma){if(bi=W(),x&&bi===b_.RBracket)break}else break}while(bi);G(bi,b_.RBracket);let fc=d.token,Ci=de(yr.loc.start,fc.loc.end);return cT.array(xs,{loc:{start:{...yr.loc.start},end:{...fc.loc.end}},...Ci})}t(Ut,"parseArray");function Ir(kr){kr=kr??W();let yr=d.token;switch(kr){case b_.String:case b_.Boolean:return se(kr);case b_.Number:if(y){let xs=s.slice(yr.loc.start.offset,yr.loc.end.offset);if((xs[0]==="+"||xs[0]==="-")&&(xs=xs.slice(1)),xs==="NaN"||xs==="Infinity")return Xe(yr)}return se(kr);case b_.Null:return Ue(yr);case b_.LBrace:return Vt(kr);case b_.LBracket:return Ut(kr);default:throw new mO(yr)}}t(Ir,"parseValue");let wn=Ir();if(W())throw new mO(d.token);let Jn={loc:{start:{line:1,column:1,offset:0},end:{...wn.loc.end}}};return o.tokens&&(Jn.tokens=f),o.ranges&&(Jn.range=[Jn.loc.start.offset,Jn.loc.end.offset]),cT.document(wn,Jn)}t(Knt,"parse");var IXt=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Element",["value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]],["NaN",[]],["Infinity",[]],["Identifier",[]]]);function Xnt(s){return s&&typeof s=="object"}t(Xnt,"isObject");function OXt(s){return Xnt(s)&&typeof s.type=="string"}t(OXt,"isNode");function FXt(s,o){function f(d,y){typeof o.enter=="function"&&o.enter(d,y);for(let x of IXt.get(d.type)){let A=d[x];Xnt(A)&&(Array.isArray(A)?A.forEach(F=>f(F,d)):OXt(A)&&f(A,d))}typeof o.exit=="function"&&o.exit(d,y)}t(f,"visitNode"),f(s)}t(FXt,"traverse");function Znt(s,o=()=>!0){let f=[];return FXt(s,{enter(d,y){f.push({node:d,parent:y,phase:"enter"})},exit(d,y){f.push({node:d,parent:y,phase:"exit"})}}),f.filter(o).values()}t(Znt,"iterator");import LXt from"node:fs/promises";var DV=t((s,o)=>s.split(/\r?\n/)[o-1],"getFileLineContent"),Loe=t(async s=>{try{return await LXt.readFile(s,"utf-8")}catch{return}},"getSchemaContent"),PV=t(async s=>{try{return Knt(s)}catch(o){if(o.column&&o.line&&o.message){let f=DV(s,o.line);return{column:o.column,line:o.line,length:void 0,lineText:f}}return}},"getSchemaAST");var Qnt=t(async(s,o,f)=>{try{if(s.length===0)return;for(let d of s){let y=await Loe(d),x=await RXt(y,d,o,f);if(x)return x}}catch{}},"getRouteLocationByValue"),RXt=t(async(s,o,f,d)=>{try{if(!s)return;let y=null,x=await PV(s);if(x){for(let{node:A}of Znt(x))if(A.value&&A.value===f){y=A.loc;break}if(y!==null){let A=DV(s,y.start.line);return{file:o,line:y.start.line,column:y.start.column,length:y.end.column-y.start.column,lineText:A,suggestion:d}}}}catch{}},"getRouteLocationByValueFromSchema");import eit from"node:fs/promises";import vE from"node:path";var GPe="schemas",YPe=".oas.json";var hO=t(async s=>(await eit.readdir(s)).map(f=>vE.join(s,f)).filter(f=>f.endsWith(YPe)).sort(),"getOpenApiFilesByAlphabetical"),V9=t(async s=>{let o=vE.resolve(s,"config");return(await eit.readdir(o)).filter(d=>d.endsWith(YPe)).length>=1},"oasFileInProject");function AV(s,o,f,d,y,x,A){if(x.has(f))return;let F;try{F=d.get(f)}catch(Ue){throw new D1({text:`Failed to resolve reference: ${f}`,detail:Ue.message,severity:"error",message:"Failed to resolve reference",location:{file:s,column:0,line:0,length:0,lineText:f,namespace:o,suggestion:"Check the reference and try again."}})}let W=Moe(f),G=vE.basename(W,vE.extname(W)),be=f.indexOf("#"),de=be>=0?f.substring(0,be):f,se=be>=0?f.substring(be+1):"",Xe=d.get(de);if(se){let Ue=se.split("/").filter(Boolean);for(let je of Ue)if(Xe=Xe[je],Xe===void 0)throw new Error(`Cannot resolve JSON pointer: ${se}`)}if(Xe&&typeof Xe=="object"&&"$ref"in Xe&&typeof Xe.$ref=="string"&&!Xe.$ref.startsWith("#")){let Ue=vE.resolve(vE.dirname(de),Xe.$ref);if(W=Ue,G=vE.basename(W,vE.extname(W)),de=Ue,x.has(de)){let Vt=x.get(de);if(Vt===void 0)throw new Error(`Expected to find ${de} in refsVisited map`);x.set(f,Vt);return}let je=y.length;x.set(f,je),x.set(de,je),y.push(de),Roe(W,G,F,d,y,x,A)}else x.set(f,y.length),y.push(f),Roe(Moe(f),o,F,d,y,x,A)}t(AV,"chaseRefs");function Roe(s,o,f,d,y,x,A){if(Array.isArray(f))for(let F of f)Roe(s,o,F,d,y,x,A);else if(typeof f=="object")for(let F in f){if(F==="$ref"){let W=f[F];A&&(f[F]=A(o,W,s)),AV(s,o,YN(s,W),d,y,x,A)}Roe(s,o,f[F],d,y,x,A)}}t(Roe,"lookForRefs");function YN(s,o){let f=o.indexOf("#");return f>=0?`${vE.resolve(s,o.substring(0,f))}${o.substring(f)}`:vE.resolve(vE.dirname(s),o)}t(YN,"getFullyQualifiedRefName");function Moe(s){let o=s.indexOf("#");return o>=0?s.substring(0,o):s}t(Moe,"getFilePathNameFromRefName");import fle from"node:path";function MXt(s){if(s.length>=255)throw new TypeError("Alphabet too long");let o=new Uint8Array(256);for(let G=0;G<o.length;G++)o[G]=255;for(let G=0;G<s.length;G++){let be=s.charAt(G),de=be.charCodeAt(0);if(o[de]!==255)throw new TypeError(be+" is ambiguous");o[de]=G}let f=s.length,d=s.charAt(0),y=Math.log(f)/Math.log(256),x=Math.log(256)/Math.log(f);function A(G){if(G instanceof Uint8Array||(ArrayBuffer.isView(G)?G=new Uint8Array(G.buffer,G.byteOffset,G.byteLength):Array.isArray(G)&&(G=Uint8Array.from(G))),!(G instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(G.length===0)return"";let be=0,de=0,se=0,Xe=G.length;for(;se!==Xe&&G[se]===0;)se++,be++;let Ue=(Xe-se)*x+1>>>0,je=new Uint8Array(Ue);for(;se!==Xe;){let Ir=G[se],wn=0;for(let sn=Ue-1;(Ir!==0||wn<de)&&sn!==-1;sn--,wn++)Ir+=256*je[sn]>>>0,je[sn]=Ir%f>>>0,Ir=Ir/f>>>0;if(Ir!==0)throw new Error("Non-zero carry");de=wn,se++}let Vt=Ue-de;for(;Vt!==Ue&&je[Vt]===0;)Vt++;let Ut=d.repeat(be);for(;Vt<Ue;++Vt)Ut+=s.charAt(je[Vt]);return Ut}t(A,"encode");function F(G){if(typeof G!="string")throw new TypeError("Expected String");if(G.length===0)return new Uint8Array;let be=0,de=0,se=0;for(;G[be]===d;)de++,be++;let Xe=(G.length-be)*y+1>>>0,Ue=new Uint8Array(Xe);for(;G[be];){let Ir=o[G.charCodeAt(be)];if(Ir===255)return;let wn=0;for(let sn=Xe-1;(Ir!==0||wn<se)&&sn!==-1;sn--,wn++)Ir+=f*Ue[sn]>>>0,Ue[sn]=Ir%256>>>0,Ir=Ir/256>>>0;if(Ir!==0)throw new Error("Non-zero carry");se=wn,be++}let je=Xe-se;for(;je!==Xe&&Ue[je]===0;)je++;let Vt=new Uint8Array(de+(Xe-je)),Ut=de;for(;je!==Xe;)Vt[Ut++]=Ue[je++];return Vt}t(F,"decodeUnsafe");function W(G){let be=F(G);if(be)return be;throw new Error("Non-base"+f+" character")}return t(W,"decode"),{encode:A,decodeUnsafe:F,decode:W}}t(MXt,"base");var tit=MXt;var jXt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",joe=tit(jXt);var BXt=!1;function H9(s,o){return{open:`\x1B[${s.join(";")}m`,close:`\x1B[${o}m`,regexp:new RegExp(`\\x1b\\[${o}m`,"g")}}t(H9,"code");function G9(s,o){return BXt?`${o.open}${s.replace(o.regexp,o.open)}${o.close}`:s}t(G9,"run");function UXt(s){return G9(s,H9([31],39))}t(UXt,"red");function zXt(s){return G9(s,H9([32],39))}t(zXt,"green");function $Xt(s){return G9(s,H9([33],39))}t($Xt,"yellow");function JXt(s){return G9(s,H9([34],39))}t(JXt,"blue");function WXt(s){return G9(s,H9([35],39))}t(WXt,"magenta");function qXt(s){return G9(s,H9([36],39))}t(qXt,"cyan");var KCr=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");var rit=[UXt,zXt,$Xt,JXt,WXt,qXt];function VXt(s){let o=0,f=s.length,d=0;if(f>0)for(;d<f;)o=(o<<5)-o+s.charCodeAt(d++)|0;return o}t(VXt,"hashCode");function nit(s){let o=Math.abs(VXt(s));return rit[o%rit.length]}t(nit,"generateColor");import{inspect as HXt}from"node:util";function iit(s,o,...f){let d=0,y=f.length,x=String(o).replace(/%[sdjoO%]/g,A=>{if(A==="%%")return"%";if(d>=y)return A;switch(A){case"%s":return String(f[d++]);case"%d":return Number(f[d++]).toString();case"%o":return s(f[d++]).split(`
|
|
571
|
+
`).map(F=>F.trim()).join(" ");case"%O":return s(f[d++]);case"%j":try{return JSON.stringify(f[d++])}catch{return"[Circular]"}default:return A}});for(let A of f.splice(d))A===null||!(typeof A=="object"&&A!==null)?x+=" "+A:x+=" "+s(A);return x}t(iit,"format");var sit=t((s,...o)=>iit(HXt,s,o),"format");var KPe=class{static{t(this,"Debugger")}manager;ns;color;last;enabled;constructor(o,f){this.manager=o,this.ns=f,this.color=nit(f),this.last=0,this.enabled=o.enabled.some(d=>d.test(f))}log(...o){if(!this.enabled)return;let f,d=o[0];typeof d=="function"?f=d():f=String(d);let y=Date.now()-(this.last||Date.now());f=sit(f,...o);let x=`${this.color(this.ns)} ${f} ${this.color(`+${y}ms`)}`;console.log(x),this.last=Date.now()}},XPe=class{static{t(this,"DebugManager")}debuggers;enabled;constructor(o){this.debuggers=new Map,this.enabled=o??[]}};function GXt(s){return!s||s.length===0?[]:(s=s.replace(/\s/g,"").replace(/\*/g,".+"),s.split(",").map(o=>new RegExp(`^${o}$`)))}t(GXt,"extract");var Boe;function Uoe(s){Boe||(Boe=new XPe(GXt(process.env.DEBUG)));let o=new KPe(Boe,s);return Boe.debuggers.set(s,o),Object.assign(o.log.bind(o),{self:o})}t(Uoe,"debug");var ait="zp-local-service";var UP=class extends Error{static{t(this,"RuntimeError")}extensionMembers;constructor(o,f){typeof o=="string"?super(o,f):(super(o.message,f),this.extensionMembers=o.extensionMembers),this.name="RuntimeError"}};var KN=Uoe("zuplo:runtime:external-service");function YXt(){let s,{__ZUPLO_EXTERNAL_SERVICE_TOKEN:o}=Cm.instance.runtime;if(o&&o!=="undefined")try{let f=atob(o);s=JSON.parse(f)}catch{}return s}t(YXt,"getServiceAuth");async function oit(s,o){let f=".proxy",d=".tunnel";if(typeof s=="string"){let y=new URL(s),x=y.hostname;if(x.endsWith(f)){let Vt=x.slice(0,-f.length),Ut=new URL(`http://${Vt}${y.pathname}${y.search}`);KN(`Routing to proxy: ${Ut.toString()}`);let Ir=o??{};return NV(Ut.toString(),Ir)}let A=x.endsWith(d),F=x.indexOf(".")===-1;if(!(A||F))throw new UP(`Invalid service hostname suffix: ${x}. Use .proxy for proxy routing, .tunnel for explicit tunnel routing, or no suffix for default tunnel routing.`);let G=A?x.slice(0,-d.length):x,be=YXt();if(!be)throw KN("There is no external service auth configured for this zup."),new UP("There are no external services configured for this zup.");KN(`Using external service auth. ClientId: ${be.clientId})`);let de=o??{},se=new Headers(de.headers||{});se.set("CF-Access-Client-Id",be.clientId),se.set("CF-Access-Client-Secret",be.clientSecret),de.headers=se;let Xe;if(be.customServiceMapping?.[G])Xe=`https://${be.customServiceMapping[G]}`;else if(Cm.instance.useLegacyServiceRouting)Xe=`https://${G}.zuptunnel.com`;else{KN("Using sha256 service routing");let Vt=Cm.instance.build;if(Vt.ACCOUNT_NAME&&Vt.PROJECT_NAME&&Vt.ENVIRONMENT_TYPE){let Ut=await KXt(G,Vt.ACCOUNT_NAME,Vt.PROJECT_NAME,Vt.ENVIRONMENT_TYPE),Ir=lit(Vt.ENVIRONMENT_TYPE),wn=await ZPe(`${Vt.ACCOUNT_NAME}-${Vt.PROJECT_NAME}-${Ir}`);wn==="40d7ad502f5d743997999594c177184a00161a77865423511f3a1ea21eb5a5e"||wn==="d05bffe8fa91a300187d2cf43e8aa4a56bd809c442ae10d1ee49af7d29a5a11"?Xe=`https://${Ut}.zuptunnel.com`:Xe=`https://${Ut}.t.zuplo.app`}else throw KN("Cannot use sha256 service routing, missing build variables"),new UP("Failed to generate fully qualified tunnel url.")}let Ue=new URL(`${Xe}${y.pathname}${y.search}`);KN(`Calling external service: ${Ue.toString()}`);let je=await NV(Ue.toString(),de);if(je.status===403&&je.headers.get("cf-access-domain")!==null)throw IV.console.error("403 Forbidden when calling external service.",{clientId:be.clientId,tunnelHost:Xe}),new UP("Could not connect to secure tunnel.");return je}else throw KN("Cannot call external service with Request object"),new UP("Currently, we only support fetch(<some_string>, ...).")}t(oit,"externalServiceHandler");async function cit(s,o){if(typeof s=="string"){let f=new URL(s),d=f.hostname,y=o??{},x=`http://${d}.zuplo.svc.cluster.local:9000`,A=new URL(`${x}${f.pathname}${f.search}`),F=new Headers(y.headers||{});return F.set(ait,d),y.headers=F,await NV(A.toString(),y)}else throw new UP("Currently, we only support fetch(<some_string>, ...).")}t(cit,"clusterServiceHandler");async function KXt(s,o,f,d){let y=s.toLowerCase(),x=o.toLowerCase(),A=f.toLowerCase(),F=lit(d);KN(`Hashing service name: ${x}-${y}.${x}-${A}-${F}`);let W=await ZPe(`${x}-${y}`),G=await ZPe(`${x}-${A}-${F}`);return`${W}.${G}`}t(KXt,"hashServiceName");async function ZPe(s){let o=new TextEncoder().encode(s),f=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(f)).map(x=>x.toString(16).padStart(2,"0")).join("").slice(0,-1)}t(ZPe,"hashSegment");function lit(s){let o=s.toLowerCase();switch(o){case"production":case"preview":return o;default:return"working-copy"}}t(lit,"sanitizeEnvironmentType");var QPe=new Map;QPe.set("service:",oit);QPe.set("local:",cit);var NV=globalThis.fetch;function eAe(s,o){let{transformedInit:f,mtlsCertificate:d}=XXt(o);if(typeof s=="string"){let y=new URL(s),x=QPe.get(y.protocol);return x?x(s,f):uit(s,f,d)}else return uit(s,f,d)}t(eAe,"internalFetch");globalThis.fetch=eAe;function uit(s,o,f){if(!f)return NV(s,o);if(Cm.instance.isCloudflare){let y=Cm.instance.runtime[f];if(!y)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof y!="object"||typeof y.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding. Make sure it's configured as an mTLS certificate, not an environment variable.`);return y.fetch(s,o)}else if(Cm.instance.isDeno){let d=globalThis.managedDedicatedMtlsBindings?.[f];if(!d)throw new Error(`mTLS certificate binding '${f}' not found. Ensure the certificate is uploaded and properly configured.`);if(typeof d.fetch!="function")throw new Error(`mTLS certificate binding '${f}' is not a valid mTLS certificate binding.`);return d.fetch(s,o)}else throw new Error("mTLS client certificates are not supported in this runtime environment")}t(uit,"performFetch");var XXt=t(s=>{if(!s||s instanceof Request)return{transformedInit:s,mtlsCertificate:void 0};let o=s;if(!o.zuplo)return{transformedInit:s,mtlsCertificate:void 0};let f=o.zuplo.mtlsCertificate,d=s;return d.cf={cacheEverything:o.zuplo?.cacheEverything,cacheTtl:o.zuplo?.cacheTtlSeconds},delete s.zuplo,{transformedInit:s,mtlsCertificate:f}},"transformInit");var ZXt={console:{log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console),debug:console.debug.bind(console),assert:console.assert.bind(console),clear:console.clear.bind(console),count:console.count.bind(console),countReset:console.countReset.bind(console),dir:console.dir.bind(console),dirxml:console.dirxml.bind(console),group:console.group.bind(console),groupCollapsed:console.groupCollapsed.bind(console),groupEnd:console.groupEnd.bind(console),table:console.table.bind(console),time:console.time.bind(console),timeEnd:console.timeEnd.bind(console),timeLog:console.timeLog.bind(console),timeStamp:console.timeStamp.bind(console),trace:console.trace.bind(console),profile:console.profile.bind(console),profileEnd:console.profileEnd.bind(console)},fetch:eAe},IV=ZXt;var tAe="2025-02-06",fit=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!1,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2024-09-02":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!1,useForwardRedirectsPropOnUrlForwardHandler:!1,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2025-02-06":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!1,return501ForUnsupportedHttpMethods:!1},"2026-03-01":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0,allowCustomPorts:!0,removeLegacyLogInitialization:!0,useForwardRedirectsPropOnUrlForwardHandler:!0,chainResponseSendingHooks:!0,return501ForUnsupportedHttpMethods:!0}});function _it(){return new Cm({build:{ACCOUNT_NAME:"mock-account-name",PROJECT_NAME:"mock-project-name",API_VERSION:"0.0.0",BUILD_ID:crypto.randomUUID(),TIMESTAMP:new Date().toISOString(),BUILD_ENV:"test",ZUPLO_VERSION:"0.0.0",COMPATIBILITY_DATE:tAe,ENVIRONMENT_TYPE:"mock-environment-type",GIT_SHA:void 0,IS_LOCAL_DEVELOPMENT:!1,COMPATIBILITY_FLAGS:fit[tAe]},runtime:{RUNTIME_ENV:"test",RUNTIME_STAGE:"test",__ZUPLO_DEPLOYMENT_NAME:"mock-deployment-name",__ZUPLO_LOG_LEVEL:"debug",__ZUPLO_LOG_FORMAT:"pretty",__ZUPLO_MANAGEMENT_API_URL:"",__ZUPLO_RUNTIME_TYPE:"cloudflare",__ZUPLO_AUTH_API_JWT:"",ZUPLO_SERVICE_BUCKET_ID:"bckt_mock"}})}t(_it,"getMockEnvironment");var Cm=class s{static{t(this,"Environment")}config;static#e;static#n=!1;static initialize(o){s.#e||(s.#e=new s(o),s.#n=!0)}static get instance(){return s.#n||(IV.console.debug("Environment has not been initialized. This is okay when running tests, a mock environment will be used."),s.#e??=_it()),s.#e}constructor({build:o,runtime:f}){let d;try{if(f.ZUPLO_SYSTEM_CONFIGURATIONS){let y=new TextDecoder().decode(joe.decode(f.ZUPLO_SYSTEM_CONFIGURATIONS)),x=JSON.parse(y);for(let A of Object.keys(x))f[A]||(f[A]=x[A])}if(f.__ZUPLO_CONFIG){let y=atob(f.__ZUPLO_CONFIG);d=JSON.parse(y)}}catch(y){IV.console.error("Failed to parse runtime configuration",y)}this.config=d??{},this.build=o,this.runtime=f,this.instanceId=crypto.randomUUID()}build;runtime;instanceId;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get accountName(){return this.build.ACCOUNT_NAME??this.runtime.ZUPLO_ACCOUNT_NAME??void 0}get projectName(){return this.build.PROJECT_NAME??this.runtime.ZUPLO_PROJECT_NAME??void 0}get useLegacyServiceRouting(){return this.config.use_legacy_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.com"}get zuploEdgeApiUrl(){return this.config.zuplo_edge_api_url??"https://api.zuploedge.com"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get zuploClientAuthBucketId(){return this.config.zuplo_auth_client_bucket_id??"auth_o8PUdhKxSTOiB794GWPwLQCD"}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get developerApiUrl(){return this.config.developer_api_url??"https://dev.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuploedge.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuploedge.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuploedge.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuploedge.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get authClientId(){return this.config.auth_client_id??this.runtime.__ZUPLO_AUTH_CLIENT_ID}get authClientSecret(){return this.config.auth_client_secret??this.runtime.__ZUPLO_AUTH_CLIENT_SECRET}get authPublicKey(){return this.config.auth_public_key??this.runtime.__ZUPLO_AUTH_PUBLIC_KEY}get authPrivateKey(){return this.config.auth_private_key??this.runtime.__ZUPLO_AUTH_PRIVATE_KEY}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isManagedDedicated(){return this.runtime.__ZUPLO_IS_MANAGED_DEDICATED==="true"}get isDeno(){if(this.runtime.__ZUPLO_RUNTIME_TYPE)return this.runtime.__ZUPLO_RUNTIME_TYPE==="deno";if(this.config.runtime_type)return this.config.runtime_type==="deno";{let o=globalThis.Deno?.version?.deno;return typeof WebSocketPair!="function"&&o}}get isLocalDevelopment(){return this.build.IS_LOCAL_DEVELOPMENT}get isTestMode(){return!!this.runtime.__ZUPLO_TEST_MODE}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isWorkingCopy?"working-copy":"unknown"}get isWorkingCopy(){return this.build.ENVIRONMENT_TYPE==="WORKING_COPY"}get rateLimitServiceTimeoutMs(){let o=this.runtime.__ZUPLO_RATE_LIMIT_TIMEOUT_MS,f=this.config.rate_limit_service_timeout_ms,d=o??f;if(!d)return 500;let y=Number(d);return Number.isFinite(y)&&y>0?y:500}};var QXt=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function pit(s){return s.startsWith("__ZUPLO")||s.startsWith("ZUPLO_")?!QXt.includes(s)&&!s.startsWith("ZUPLO_PUBLIC_"):s.startsWith("ZUDOKU_")?!s.startsWith("ZUDOKU_PUBLIC_"):!1}t(pit,"isRestrictedEnvVariableName");function dit(s){return!!s.startsWith("ZUPLO_")}t(dit,"isZuploReadableEnvVariableName");var jkr=new Proxy({},{get(s,o){let f=String(o);switch(f){case"ZUPLO_ENVIRONMENT_TYPE":return Cm.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return Cm.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return Cm.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return Cm.instance.accountName;case"ZUPLO_PROJECT_NAME":return Cm.instance.projectName;case"ZUPLO_BUILD_ID":return Cm.instance.build.BUILD_ID;case"ZUPLO_COMPATIBILITY_DATE":return Cm.instance.build.COMPATIBILITY_DATE}if(!(pit(f)&&!dit(f)))return Cm.instance.runtime[f]}});function OV(s,o,f){return`_${zP(`${s}_${o}_${f}`)}`}t(OV,"getRawOperationDataIdentifierName");function rAe(s,o,f,d){return`_${zP(s.toLowerCase())}_${o.toLowerCase()}_${f.toLowerCase()}_${d.toLowerCase()}`}t(rAe,"getIdForParameterSchema");function nAe(s,o,f){return`_${zP(s.toLowerCase())}_${o.toLowerCase()}_rb_${zP(f.toLowerCase())}`}t(nAe,"getIdForRequestBodySchema");function FV(s,o){return`_${zP(s)}_${zP(o)}`}t(FV,"getIdForRefSchema");function zP(s){let o=s.replace(/\[/g,"_LBRACKET_").replace(/\]/g,"_RBRACKET_").replace(/\{/g,"_LCURLY_").replace(/\}/g,"_RCURLY_").replace(/\//g,"_SLASH_").replace(/-/g,"_DASH_").replace(/\./g,"_DOT_").replace(/\+/g,"_PLUS_").replace(/:/g,"_COLON_").replace(/@/g,"_AT_").replace(/\$/g,"_DOLLAR_").replace(/[^a-zA-Z0-9_]/g,"_");return/^[a-zA-Z_]/.test(o)||(o=`_${o}`),o}t(zP,"sanitizedIdentifierName");var sAe={};qtt(sAe,{UnsafePathError:()=>zoe,deleteFolder:()=>pZt,dirExists:()=>iAe,fileExists:()=>nZt,getParentDirFilename:()=>uZt,isNotFileOrDirectory:()=>sZt,listFolderContents:()=>git,listFolders:()=>oZt,mkDirTemp:()=>iZt,mkdirForFilePathIfNotExits:()=>cZt,mkdirIfNotExists:()=>yit,safePath:()=>lZt,tarFolder:()=>fZt,untarFile:()=>_Zt});import{spawn as mit}from"node:child_process";import{randomUUID as eZt}from"node:crypto";import XN from"node:fs/promises";import{platform as tZt,tmpdir as rZt}from"node:os";import O1 from"node:path";var hit=[".git","node_modules",".yarn",".DS_Store"];async function nZt(s){try{return(await XN.stat(s)).isFile()}catch{return!1}}t(nZt,"fileExists");async function iZt(){let s=process.env.BUILD_FILE_PATH??rZt(),o=eZt().replaceAll("-",""),f=O1.join(s,o);return await XN.mkdir(f,{recursive:!0}),f}t(iZt,"mkDirTemp");async function iAe(s){try{return(await XN.stat(s)).isDirectory()}catch{return!1}}t(iAe,"dirExists");async function sZt(s){try{return await XN.stat(s),!1}catch{return!0}}t(sZt,"isNotFileOrDirectory");function aZt(s,o){let f=O1.sep==="\\"?"\\\\":O1.sep,d=new RegExp(`(.*)(${f}${o})$|(.*)(${o}${f})`),y=s.match(d);if(!y)return"";let x=s.split(y[0]);return x[1]===""?"":O1.join(O1.sep,x[1])}t(aZt,"getParentDirectory");async function oZt(s){if(!await iAe(s))return[];let o=await XN.readdir(s,{withFileTypes:!0}),f=[];for await(let d of o)hit.includes(d.name)||d.isDirectory()&&f.push(d.name);return f}t(oZt,"listFolders");async function git(s,o,f=!0){let d=aZt(s,o),y=await XN.readdir(s,{withFileTypes:!0}),x=[];for await(let A of y)if(!hit.includes(A.name)||!f)if(A.isDirectory()){let F=await git(O1.join(s,A.name),o,f);x.push(...F)}else x.push(O1.join(d,A.name));return x}t(git,"listFolderContents");var yit=t(async s=>{await XN.mkdir(s,{recursive:!0})},"mkdirIfNotExists"),cZt=t(async s=>{let o=O1.dirname(s);return yit(o)},"mkdirForFilePathIfNotExits"),zoe=class extends Error{static{t(this,"UnsafePathError")}};function lZt(s){let o=O1.normalize(s),f=t(d=>{let y=O1.normalize(d),x=process.platform==="win32",A=!1;if(x?A=y.toLowerCase().startsWith(o.toLowerCase()):A=y.startsWith(o),!A)throw new zoe("Resolved path is not part of the project.");return y},"ensureSafePath");return{resolve:t((...d)=>f(O1.resolve(...d)),"resolve")}}t(lZt,"safePath");function uZt(s){return O1.join(O1.basename(O1.dirname(s)),O1.basename(s))}t(uZt,"getParentDirFilename");async function fZt({folderPath:s,outputTarPath:o,exclude:f=["node_modules",".git","dist"],logger:d}){let y=[],x=[],A;try{await new Promise((F,W)=>{let G=mit("tar",[...f.flatMap(be=>["--exclude",be]),...tZt()!=="darwin"?["--warning=no-file-changed"]:[],"-cvf",o,"-C",s,"."]);G.stdout.on("data",be=>{let de=be.toString().trim();de.length>0&&y.push(de.trim())}),G.stderr.on("data",be=>{let de=be.toString().trim();de.length>0&&x.push(de.trim())}),G.on("close",be=>{A=be,be===0?F():W(new Error(`tar process exited with code ${be}`))}),G.on("error",be=>{W(be)})})}catch(F){throw new Error("Failed to tar folder",{cause:F})}finally{d.info({stdout:y.join(`
|
|
572
572
|
`),stderr:x.join(`
|
|
573
573
|
`),exitCode:A},"Tar process logs")}}t(fZt,"tarFolder");async function _Zt({tarFilePath:s,outputDir:o,logger:f}){let d=[],y=[],x;try{await new Promise((A,F)=>{let W=mit("sh",["-c",`tar -xvf ${s} -C ${o};`]);W.stdout.on("data",G=>{let be=G.toString().trim();be.length>0&&d.push(be.trim())}),W.stderr.on("data",G=>{let be=G.toString().trim();be.length>0&&y.push(be.trim())}),W.on("close",G=>{x=G,G===0?A():F(new Error(`tar process exited with code ${G}`))}),W.on("error",G=>{F(G)})})}catch(A){throw new Error("Failed to untar file",{cause:A})}finally{f.info({stdout:d.join(`
|
|
574
574
|
`),stderr:y.join(`
|
|
575
|
-
`),exitCode:x},"Untar process logs")}}t(_Zt,"untarFile");async function pZt(s){if(await iAe(s))return await XN.rm(s,{recursive:!0})}t(pZt,"deleteFolder");var eu=sAe;var Slt=Pp(Bst(),1);var Ust=["ai-gateway-auth-v2","ai-gateway-configuration-executor-v2","ai-gateway-fallback-model-v2","ai-gateway-model-filtering-v2","ai-gateway-semantic-cache","ai-gateway-semantic-cache-v2","akamai-ai-firewall","akamai-ai-firewall-v2","akamai-firewall-for-ai","comet-opik-tracing-v2","galileo-tracing-v2","prompt-injection","semantic-cache"];var HV=class{static{t(this,"R")}type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(s,o,f,d,y,x){this.type=s,this.name=o,this.prefix=f,this.value=d,this.suffix=y,this.modifier=x}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Uer=/[$_\p{ID_Start}]/u,zer=/[$_\u200C\u200D\p{ID_Continue}]/u,BAe=".*";function $er(s,o){return(o?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(s)}t($er,"Re");function Jst(s,o=!1){let f=[],d=0;for(;d<s.length;){let y=s[d],x=t(function(A){if(!o)throw new TypeError(A);f.push({type:"INVALID_CHAR",index:d,value:s[d++]})},"c");if(y==="*"){f.push({type:"ASTERISK",index:d,value:s[d++]});continue}if(y==="+"||y==="?"){f.push({type:"OTHER_MODIFIER",index:d,value:s[d++]});continue}if(y==="\\"){f.push({type:"ESCAPED_CHAR",index:d++,value:s[d++]});continue}if(y==="{"){f.push({type:"OPEN",index:d,value:s[d++]});continue}if(y==="}"){f.push({type:"CLOSE",index:d,value:s[d++]});continue}if(y===":"){let A="",F=d+1;for(;F<s.length;){let W=s.substr(F,1);if(F===d+1&&Uer.test(W)||F!==d+1&&zer.test(W)){A+=s[F++];continue}break}if(!A){x(`Missing parameter name at ${d}`);continue}f.push({type:"NAME",index:d,value:A}),d=F;continue}if(y==="("){let A=1,F="",W=d+1,G=!1;if(s[W]==="?"){x(`Pattern cannot start with "?" at ${W}`);continue}for(;W<s.length;){if(!$er(s[W],!1)){x(`Invalid character '${s[W]}' at ${W}.`),G=!0;break}if(s[W]==="\\"){F+=s[W++]+s[W++];continue}if(s[W]===")"){if(A--,A===0){W++;break}}else if(s[W]==="("&&(A++,s[W+1]!=="?")){x(`Capturing groups are not allowed at ${W}`),G=!0;break}F+=s[W++]}if(G)continue;if(A){x(`Unbalanced pattern at ${d}`);continue}if(!F){x(`Missing pattern at ${d}`);continue}f.push({type:"REGEX",index:d,value:F}),d=W;continue}f.push({type:"CHAR",index:d,value:s[d++]})}return f.push({type:"END",index:d,value:""}),f}t(Jst,"v");function Wst(s,o={}){let f=Jst(s);o.delimiter??="/#?",o.prefixes??="./";let d=`[^${fT(o.delimiter)}]+?`,y=[],x=0,A=0,F="",W=new Set,G=t(wn=>{if(A<f.length&&f[A].type===wn)return f[A++].value},"a"),be=t(()=>G("OTHER_MODIFIER")??G("ASTERISK"),"f"),de=t(wn=>{let sn=G(wn);if(sn!==void 0)return sn;let{type:Jn,index:kr}=f[A];throw new TypeError(`Unexpected ${Jn} at ${kr}, expected ${wn}`)},"d"),se=t(()=>{let wn="",sn;for(;sn=G("CHAR")??G("ESCAPED_CHAR");)wn+=sn;return wn},"T"),Xe=t(wn=>wn,"Se"),Ue=o.encodePart||Xe,je="",Vt=t(wn=>{je+=wn},"U"),Ut=t(()=>{je.length&&(y.push(new HV(3,"","",Ue(je),"",3)),je="")},"$"),Ir=t((wn,sn,Jn,kr,yr)=>{let xs=3;switch(yr){case"?":xs=1;break;case"*":xs=0;break;case"+":xs=2;break}if(!sn&&!Jn&&xs===3){Vt(wn);return}if(Ut(),!sn&&!Jn){if(!wn)return;y.push(new HV(3,"","",Ue(wn),"",xs));return}let bi;Jn?Jn==="*"?bi=BAe:bi=Jn:bi=d;let fc=2;bi===d?(fc=1,bi=""):bi===BAe&&(fc=0,bi="");let Ci;if(sn?Ci=sn:Jn&&(Ci=x++),W.has(Ci))throw new TypeError(`Duplicate name '${Ci}'.`);W.add(Ci),y.push(new HV(fc,Ci,Ue(wn),bi,Ue(kr),xs))},"V");for(;A<f.length;){let wn=G("CHAR"),sn=G("NAME"),Jn=G("REGEX");if(!sn&&!Jn&&(Jn=G("ASTERISK")),sn||Jn){let yr=wn??"";o.prefixes.indexOf(yr)===-1&&(Vt(yr),yr=""),Ut();let xs=be();Ir(yr,sn,Jn,"",xs);continue}let kr=wn??G("ESCAPED_CHAR");if(kr){Vt(kr);continue}if(G("OPEN")){let yr=se(),xs=G("NAME"),bi=G("REGEX");!xs&&!bi&&(bi=G("ASTERISK"));let fc=se();de("CLOSE");let Ci=be();Ir(yr,xs,bi,fc,Ci);continue}Ut(),de("END")}return y}t(Wst,"D");function fT(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(fT,"S");function zst(s){return s&&s.ignoreCase?"ui":"u"}t(zst,"X");function Jer(s,o,f){return qst(Wst(s,f),o,f)}t(Jer,"Z");function Q9(s){switch(s){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}t(Q9,"k");function qst(s,o,f={}){f.delimiter??="/#?",f.prefixes??="./",f.sensitive??=!1,f.strict??=!1,f.end??=!0,f.start??=!0,f.endsWith="";let d=f.start?"^":"";for(let F of s){if(F.type===3){F.modifier===3?d+=fT(F.value):d+=`(?:${fT(F.value)})${Q9(F.modifier)}`;continue}o&&o.push(F.name);let W=`[^${fT(f.delimiter)}]+?`,G=F.value;if(F.type===1?G=W:F.type===0&&(G=BAe),!F.prefix.length&&!F.suffix.length){F.modifier===3||F.modifier===1?d+=`(${G})${Q9(F.modifier)}`:d+=`((?:${G})${Q9(F.modifier)})`;continue}if(F.modifier===3||F.modifier===1){d+=`(?:${fT(F.prefix)}(${G})${fT(F.suffix)})`,d+=Q9(F.modifier);continue}d+=`(?:${fT(F.prefix)}`,d+=`((?:${G})(?:`,d+=fT(F.suffix),d+=fT(F.prefix),d+=`(?:${G}))*)${fT(F.suffix)})`,F.modifier===0&&(d+="?")}let y=`[${fT(f.endsWith)}]|$`,x=`[${fT(f.delimiter)}]`;if(f.end)return f.strict||(d+=`${x}?`),f.endsWith.length?d+=`(?=${y})`:d+="$",new RegExp(d,zst(f));f.strict||(d+=`(?:${x}(?=${y}))?`);let A=!1;if(s.length){let F=s[s.length-1];F.type===3&&F.modifier===3&&(A=f.delimiter.indexOf(F)>-1)}return A||(d+=`(?=${x}|${y})`),new RegExp(d,zst(f))}t(qst,"F");var tI={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Wer={delimiter:".",prefixes:"",sensitive:!0,strict:!0},qer={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Ver(s,o){return s.length?s[0]==="/"?!0:!o||s.length<2?!1:(s[0]=="\\"||s[0]=="{")&&s[1]=="/":!1}t(Ver,"J");function Vst(s,o){return s.startsWith(o)?s.substring(o.length,s.length):s}t(Vst,"Q");function Her(s,o){return s.endsWith(o)?s.substr(0,s.length-o.length):s}t(Her,"Ee");function Hst(s){return!s||s.length<2?!1:s[0]==="["||(s[0]==="\\"||s[0]==="{")&&s[1]==="["}t(Hst,"W");var Gst=["ftp","file","http","https","ws","wss"];function Yst(s){if(!s)return!0;for(let o of Gst)if(s.test(o))return!0;return!1}t(Yst,"N");function Ger(s,o){if(s=Vst(s,"#"),o||s==="")return s;let f=new URL("https://example.com");return f.hash=s,f.hash?f.hash.substring(1,f.hash.length):""}t(Ger,"te");function Yer(s,o){if(s=Vst(s,"?"),o||s==="")return s;let f=new URL("https://example.com");return f.search=s,f.search?f.search.substring(1,f.search.length):""}t(Yer,"re");function Ker(s,o){return o||s===""?s:Hst(s)?Zst(s):Xst(s)}t(Ker,"ne");function Xer(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.password=s,f.password}t(Xer,"se");function Zer(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.username=s,f.username}t(Zer,"ie");function Qer(s,o,f){if(f||s==="")return s;if(o&&!Gst.includes(o))return new URL(`${o}:${s}`).pathname;let d=s[0]=="/";return s=new URL(d?s:"/-"+s,"https://example.com").pathname,d||(s=s.substring(2,s.length)),s}t(Qer,"ae");function etr(s,o,f){return Kst(o)===s&&(s=""),f||s===""?s:Qst(s)}t(etr,"oe");function ttr(s,o){return s=Her(s,":"),o||s===""?s:UAe(s)}t(ttr,"ce");function Kst(s){switch(s){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}t(Kst,"_");function UAe(s){if(s==="")return s;if(/^[-+.A-Za-z0-9]*$/.test(s))return s.toLowerCase();throw new TypeError(`Invalid protocol '${s}'.`)}t(UAe,"y");function rtr(s){if(s==="")return s;let o=new URL("https://example.com");return o.username=s,o.username}t(rtr,"le");function ntr(s){if(s==="")return s;let o=new URL("https://example.com");return o.password=s,o.password}t(ntr,"fe");function Xst(s){if(s==="")return s;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(s))throw new TypeError(`Invalid hostname '${s}'`);let o=new URL("https://example.com");return o.hostname=s,o.hostname}t(Xst,"z");function Zst(s){if(s==="")return s;if(/[^0-9a-fA-F[\]:]/g.test(s))throw new TypeError(`Invalid IPv6 hostname '${s}'`);return s.toLowerCase()}t(Zst,"j");function Qst(s){if(s===""||/^[0-9]*$/.test(s)&&parseInt(s)<=65535)return s;throw new TypeError(`Invalid port '${s}'.`)}t(Qst,"K");function itr(s){if(s==="")return s;let o=new URL("https://example.com");return o.pathname=s[0]!=="/"?"/-"+s:s,s[0]!=="/"?o.pathname.substring(2,o.pathname.length):o.pathname}t(itr,"he");function str(s){return s===""?s:new URL(`data:${s}`).pathname}t(str,"ue");function atr(s){if(s==="")return s;let o=new URL("https://example.com");return o.search=s,o.search.substring(1,o.search.length)}t(atr,"de");function otr(s){if(s==="")return s;let o=new URL("https://example.com");return o.hash=s,o.hash.substring(1,o.hash.length)}t(otr,"pe");var ctr=class{static{t(this,"H")}#e;#n=[];#t={};#r=0;#s=1;#m=0;#c=0;#u=0;#f=0;#p=!1;constructor(s){this.#e=s}get result(){return this.#t}parse(){for(this.#n=Jst(this.#e,!0);this.#r<this.#n.length;this.#r+=this.#s){if(this.#s=1,this.#n[this.#r].type==="END"){if(this.#c===0){this.#o(),this.#g()?this.#a(9,1):this.#E()?this.#a(8,1):this.#a(7,0);continue}else if(this.#c===2){this.#h(5);continue}this.#a(10,0);break}if(this.#u>0)if(this.#l())this.#u-=1;else continue;if(this.#A()){this.#u+=1;continue}switch(this.#c){case 0:this.#y()&&this.#h(1);break;case 1:if(this.#y()){this.#D();let s=7,o=1;this.#b()?(s=2,o=3):this.#p&&(s=2),this.#a(s,o)}break;case 2:this.#v()?this.#h(3):(this.#S()||this.#E()||this.#g())&&this.#h(5);break;case 3:this.#C()?this.#a(4,1):this.#v()&&this.#a(5,1);break;case 4:this.#v()&&this.#a(5,1);break;case 5:this.#O()?this.#f+=1:this.#N()&&(this.#f-=1),this.#k()&&!this.#f?this.#a(6,1):this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 6:this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 7:this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 8:this.#g()&&this.#a(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#a(s,o){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#w();break;case 2:break;case 3:this.#t.username=this.#w();break;case 4:this.#t.password=this.#w();break;case 5:this.#t.hostname=this.#w();break;case 6:this.#t.port=this.#w();break;case 7:this.#t.pathname=this.#w();break;case 8:this.#t.search=this.#w();break;case 9:this.#t.hash=this.#w();break;case 10:break}this.#c!==0&&s!==10&&([1,2,3,4].includes(this.#c)&&[6,7,8,9].includes(s)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#c)&&[8,9].includes(s)&&(this.#t.pathname??=this.#p?"/":""),[1,2,3,4,5,6,7].includes(this.#c)&&s===9&&(this.#t.search??="")),this.#i(s,o)}#i(s,o){this.#c=s,this.#m=this.#r+o,this.#r+=o,this.#s=0}#o(){this.#r=this.#m,this.#s=0}#h(s){this.#o(),this.#c=s}#d(s){return s<0&&(s=this.#n.length-s),s<this.#n.length?this.#n[s]:this.#n[this.#n.length-1]}#_(s,o){let f=this.#d(s);return f.value===o&&(f.type==="CHAR"||f.type==="ESCAPED_CHAR"||f.type==="INVALID_CHAR")}#y(){return this.#_(this.#r,":")}#b(){return this.#_(this.#r+1,"/")&&this.#_(this.#r+2,"/")}#v(){return this.#_(this.#r,"@")}#C(){return this.#_(this.#r,":")}#k(){return this.#_(this.#r,":")}#S(){return this.#_(this.#r,"/")}#E(){if(this.#_(this.#r,"?"))return!0;if(this.#n[this.#r].value!=="?")return!1;let s=this.#d(this.#r-1);return s.type!=="NAME"&&s.type!=="REGEX"&&s.type!=="CLOSE"&&s.type!=="ASTERISK"}#g(){return this.#_(this.#r,"#")}#A(){return this.#n[this.#r].type=="OPEN"}#l(){return this.#n[this.#r].type=="CLOSE"}#O(){return this.#_(this.#r,"[")}#N(){return this.#_(this.#r,"]")}#w(){let s=this.#n[this.#r],o=this.#d(this.#m).index;return this.#e.substring(o,s.index)}#D(){let s={};Object.assign(s,tI),s.encodePart=UAe;let o=Jer(this.#w(),void 0,s);this.#p=Yst(o)}},jAe=["protocol","username","password","hostname","port","pathname","search","hash"],eI="*";function $st(s,o){if(typeof s!="string")throw new TypeError("parameter 1 is not of type 'string'.");let f=new URL(s,o);return{protocol:f.protocol.substring(0,f.protocol.length-1),username:f.username,password:f.password,hostname:f.hostname,port:f.port,pathname:f.pathname,search:f.search!==""?f.search.substring(1,f.search.length):void 0,hash:f.hash!==""?f.hash.substring(1,f.hash.length):void 0}}t($st,"ge");function qP(s,o){return o?VV(s):s}t(qP,"b");function qV(s,o,f){let d;if(typeof o.baseURL=="string")try{d=new URL(o.baseURL),o.protocol===void 0&&(s.protocol=qP(d.protocol.substring(0,d.protocol.length-1),f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&(s.username=qP(d.username,f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&o.password===void 0&&(s.password=qP(d.password,f)),o.protocol===void 0&&o.hostname===void 0&&(s.hostname=qP(d.hostname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&(s.port=qP(d.port,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&(s.pathname=qP(d.pathname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&(s.search=qP(d.search.substring(1,d.search.length),f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&o.hash===void 0&&(s.hash=qP(d.hash.substring(1,d.hash.length),f))}catch{throw new TypeError(`invalid baseURL '${o.baseURL}'.`)}if(typeof o.protocol=="string"&&(s.protocol=ttr(o.protocol,f)),typeof o.username=="string"&&(s.username=Zer(o.username,f)),typeof o.password=="string"&&(s.password=Xer(o.password,f)),typeof o.hostname=="string"&&(s.hostname=Ker(o.hostname,f)),typeof o.port=="string"&&(s.port=etr(o.port,s.protocol,f)),typeof o.pathname=="string"){if(s.pathname=o.pathname,d&&!Ver(s.pathname,f)){let y=d.pathname.lastIndexOf("/");y>=0&&(s.pathname=qP(d.pathname.substring(0,y+1),f)+s.pathname)}s.pathname=Qer(s.pathname,s.protocol,f)}return typeof o.search=="string"&&(s.search=Yer(o.search,f)),typeof o.hash=="string"&&(s.hash=Ger(o.hash,f)),s}t(qV,"w");function VV(s){return s.replace(/([+*?:{}()\\])/g,"\\$1")}t(VV,"C");function ltr(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(ltr,"Oe");function utr(s,o){o.delimiter??="/#?",o.prefixes??="./",o.sensitive??=!1,o.strict??=!1,o.end??=!0,o.start??=!0,o.endsWith="";let f=".*",d=`[^${ltr(o.delimiter)}]+?`,y=/[$_\u200C\u200D\p{ID_Continue}]/u,x="";for(let A=0;A<s.length;++A){let F=s[A];if(F.type===3){if(F.modifier===3){x+=VV(F.value);continue}x+=`{${VV(F.value)}}${Q9(F.modifier)}`;continue}let W=F.hasCustomName(),G=!!F.suffix.length||!!F.prefix.length&&(F.prefix.length!==1||!o.prefixes.includes(F.prefix)),be=A>0?s[A-1]:null,de=A<s.length-1?s[A+1]:null;if(!G&&W&&F.type===1&&F.modifier===3&&de&&!de.prefix.length&&!de.suffix.length)if(de.type===3){let se=de.value.length>0?de.value[0]:"";G=y.test(se)}else G=!de.hasCustomName();if(!G&&!F.prefix.length&&be&&be.type===3){let se=be.value[be.value.length-1];G=o.prefixes.includes(se)}G&&(x+="{"),x+=VV(F.prefix),W&&(x+=`:${F.name}`),F.type===2?x+=`(${F.value})`:F.type===1?W||(x+=`(${d})`):F.type===0&&(!W&&(!be||be.type===3||be.modifier!==3||G||F.prefix!=="")?x+="*":x+=`(${f})`),F.type===1&&W&&F.suffix.length&&y.test(F.suffix[0])&&(x+="\\"),x+=VV(F.suffix),G&&(x+="}"),F.modifier!==3&&(x+=Q9(F.modifier))}return x}t(utr,"ke");var eat=class{static{t(this,"me")}#e;#n={};#t={};#r={};#s={};#m=!1;constructor(s={},o,f){try{let d;if(typeof o=="string"?d=o:f=o,typeof s=="string"){let F=new ctr(s);if(F.parse(),s=F.result,d===void 0&&typeof s.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");s.baseURL=d}else{if(!s||typeof s!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(d)throw new TypeError("parameter 1 is not of type 'string'.")}typeof f>"u"&&(f={ignoreCase:!1});let y={ignoreCase:f.ignoreCase===!0},x={pathname:eI,protocol:eI,username:eI,password:eI,hostname:eI,port:eI,search:eI,hash:eI};this.#e=qV(x,s,!0),Kst(this.#e.protocol)===this.#e.port&&(this.#e.port="");let A;for(A of jAe){if(!(A in this.#e))continue;let F={},W=this.#e[A];switch(this.#t[A]=[],A){case"protocol":Object.assign(F,tI),F.encodePart=UAe;break;case"username":Object.assign(F,tI),F.encodePart=rtr;break;case"password":Object.assign(F,tI),F.encodePart=ntr;break;case"hostname":Object.assign(F,Wer),Hst(W)?F.encodePart=Zst:F.encodePart=Xst;break;case"port":Object.assign(F,tI),F.encodePart=Qst;break;case"pathname":Yst(this.#n.protocol)?(Object.assign(F,qer,y),F.encodePart=itr):(Object.assign(F,tI,y),F.encodePart=str);break;case"search":Object.assign(F,tI,y),F.encodePart=atr;break;case"hash":Object.assign(F,tI,y),F.encodePart=otr;break}try{this.#s[A]=Wst(W,F),this.#n[A]=qst(this.#s[A],this.#t[A],F),this.#r[A]=utr(this.#s[A],F),this.#m=this.#m||this.#s[A].some(G=>G.type===2)}catch{throw new TypeError(`invalid ${A} pattern '${this.#e[A]}'.`)}}}catch(d){throw new TypeError(`Failed to construct 'URLPattern': ${d.message}`)}}test(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return!1;try{typeof s=="object"?f=qV(f,s,!1):f=qV(f,$st(s,o),!1)}catch{return!1}let d;for(d of jAe)if(!this.#n[d].exec(f[d]))return!1;return!0}exec(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return;try{typeof s=="object"?f=qV(f,s,!1):f=qV(f,$st(s,o),!1)}catch{return null}let d={};o?d.inputs=[s,o]:d.inputs=[s];let y;for(y of jAe){let x=this.#n[y].exec(f[y]);if(!x)return null;let A={};for(let[F,W]of this.#t[y].entries())if(typeof W=="string"||typeof W=="number"){let G=x[F+1];A[W]=G}d[y]={input:f[y]??"",groups:A}}return d}static compareComponent(s,o,f){let d=t((F,W)=>{for(let G of["type","modifier","prefix","value","suffix"]){if(F[G]<W[G])return-1;if(F[G]!==W[G])return 1}return 0},"o"),y=new HV(3,"","","","",3),x=new HV(0,"","","","",3),A=t((F,W)=>{let G=0;for(;G<Math.min(F.length,W.length);++G){let be=d(F[G],W[G]);if(be)return be}return F.length===W.length?0:d(F[G]??y,W[G]??y)},"s");return!o.#r[s]&&!f.#r[s]?0:o.#r[s]&&!f.#r[s]?A(o.#s[s],[x]):!o.#r[s]&&f.#r[s]?A([x],f.#s[s]):A(o.#s[s],f.#s[s])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#m}};globalThis.URLPattern||(globalThis.URLPattern=eat);import{AssertionError as ftr}from"node:assert";function VP(s,o){if(s===!1)throw new ftr({message:o})}t(VP,"assert");var Wo;(function(s){s.Object="Object",s.Property="Property",s.Array="Array",s.Literal="Literal",s.TemplateString="TemplateString",s.Identifier="Identifier",s.FunctionCall="FunctionCall",s.Raw="Raw"})(Wo||(Wo={}));function eM(s){return s.type===Wo.Object}t(eM,"isAstObject");function HP(s){return s.type===Wo.Property}t(HP,"isAstProperty");function zAe(s){return s.type===Wo.Array}t(zAe,"isAstArray");function SO(s){return s.type===Wo.Literal}t(SO,"isAstLiteral");function rI(s){if(s===void 0)throw new Error("Node is undefined");if(!eM(s))throw new Error("Node is not object")}t(rI,"assertAstObject");import{findNodeAtLocation as _tr,getNodeValue as ptr,printParseErrorCode as dtr,visit as mtr}from"jsonc-parser";var htr={DEFAULT:{allowTrailingComma:!1}};function GV(s,o=[],f=htr.DEFAULT){let d={type:"array",offset:-1,length:-1,line:-1,column:-1,children:[],parent:void 0};function y(W){d.type==="property"&&(d.length=W-d.offset,d=d.parent)}t(y,"ensurePropertyComplete");function x(W){return d.children?.push(W),W}t(x,"onValue"),mtr(s,{onObjectBegin:t((W,G,be)=>{d=x({type:"object",offset:W,length:-1,line:G+1,column:be+1,parent:d,children:[]})},"onObjectBegin"),onObjectProperty:t((W,G,be,de,se)=>{d=x({type:"property",offset:G,length:-1,line:de+1,column:se+1,parent:d,children:[]}),d.children?.push({type:"string",value:W,offset:G,length:be,line:de,column:se,parent:d})},"onObjectProperty"),onObjectEnd:t((W,G)=>{y(W+G),d.length=W+G-d.offset,d=d.parent,y(W+G)},"onObjectEnd"),onArrayBegin:t((W,G,be,de)=>{d=x({type:"array",offset:W,length:-1,line:be+1,column:de+1,parent:d,children:[]})},"onArrayBegin"),onArrayEnd:t((W,G)=>{d.length=W+G-d.offset,d=d.parent,y(W+G)},"onArrayEnd"),onLiteralValue:t((W,G,be,de,se)=>{x({type:gtr(W),offset:G,length:be,line:de+1,column:se+1,parent:d,value:W}),y(G+be)},"onLiteralValue"),onSeparator:t((W,G)=>{d.type==="property"&&(W===":"?d.colonOffset=G:W===","&&y(G))},"onSeparator"),onError:t((W,G,be,de,se)=>{o.push({error:W,offset:G,length:be,line:de+1,column:se+1})},"onError")},f);let F=d.children?.[0];return F&&delete F.parent,F}t(GV,"parse");function gtr(s){switch(typeof s){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(s){if(Array.isArray(s))return"array"}else return"null";return"object"}default:return"null"}}t(gtr,"getNodeType");function $Ae(s,o){return _tr(s,o)}t($Ae,"findNodeAtLocation");function YV(s){return ptr(s)}t(YV,"getNodeValue");function tat(s){return dtr(s)}t(tat,"printParseErrorCode");var KV=class{static{t(this,"AstAdapter")}parse(o){let d=GV(o,[]);if(d)return this.parseNode(d,void 0);throw new Error("Failed to parse JSON")}convert(o){return this.parseNode(o,void 0)}parseNode(o,f){switch(o.type){case"object":return this.createObject(o,f);case"array":return this.createArray(o,f);case"property":return this.createProperty(o,f);case"string":return this.createLiteral(o,f);case"number":return this.createLiteral(o,f);case"boolean":return this.createLiteral(o,f);case"null":return this.createLiteral(o,f)}}createLiteral(o,f){return{type:Wo.Literal,location:{line:o.line,column:o.column},parent:f,value:o.type==="null"?null:o.value}}createObject(o,f){let d={type:Wo.Object,children:[],parent:f,location:{line:o.line,column:o.column}};return o.children?.forEach(y=>{d.children.push(this.parseNode(y,d))}),d}createProperty(o,f){VP(o.children?.length===2,"Invalid property node");let d={type:Wo.Property,location:{line:o.line,column:o.column},parent:f,name:null,value:null};return d.name={value:o.children[0].value,location:{line:o.line,column:o.column},type:Wo.Identifier,parent:d},d.value=this.parseNode(o.children[1],d),d}createArray(o,f){let d={type:Wo.Array,location:{line:o.line,column:o.column},parent:f,children:[]};return o.children?.forEach(y=>d.children.push(this.parseNode(y,d))),d}};var DS={createLiteral:t((s,o)=>({type:Wo.Literal,parent:o,value:s}),"createLiteral"),createTemplateString:t((s,o)=>({type:Wo.TemplateString,parent:o,value:s}),"createTemplateString"),createIdentifier:t((s,o)=>({type:Wo.Identifier,value:s,parent:o}),"createIdentifier"),createProperty:t((s,o,f)=>{let d={type:Wo.Property,parent:f,name:null,value:o};return d.name={value:s,type:Wo.Identifier,parent:d},d.value.parent=d,d},"createProperty"),createArrayOfLiterals:t((s,o)=>{let f={type:Wo.Array,parent:o,children:[]};for(let d of s)f.children.push(DS.createLiteral(d,f));return f},"createArrayOfLiterals")};var ytr=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,XV=class{static{t(this,"SourceGenerator")}generate(o){let f=[];return this.generateSource(f,o),f.join("")}generateSource(o,f){switch(f.type){case Wo.Array:return this.generateArray(o,f);case Wo.Object:return this.generateObject(o,f);case Wo.Property:return this.generateProperty(o,f);case Wo.Literal:return this.generateLiteral(o,f);case Wo.FunctionCall:return this.generateFunctionCall(o,f);case Wo.Identifier:return this.generateIdentifier(o,f);case Wo.Raw:return this.generateRaw(o,f);case Wo.TemplateString:return this.generateTemplateString(o,f)}}generateArray(o,f){o.push("["),f.children.map(d=>{this.generateSource(o,d),o.push(",")}),o.push("]")}generateObject(o,f){o.push("{"),f.children.forEach(d=>{this.generateSource(o,d),o.push(",")}),o.push("}")}generateProperty(o,f){this.generateIdentifier(o,f.name),o.push(":"),this.generateSource(o,f.value)}generateFunctionCall(o,f){o.push(f.name.value),o.push("("),f.children.forEach((d,y,x)=>{this.generateSource(o,d),y<x.length&&o.push(",")}),o.push(")")}generateRaw(o,f){o.push(f.value)}generateTemplateString(o,f){o.push("`"),o.push(f.value.replaceAll("`","\\`")),o.push("`")}generateLiteral(o,f){if(f.value===null)return o.push("null");switch(typeof f.value){case"number":case"boolean":return o.push(`${f.value}`);case"string":{let d=f.value,y=JSON.stringify(d);return o.push(`${y}`)}}}generateIdentifier(o,f){let d=ytr.test(f.value)?f.value:`'${f.value}'`;o.push(d)}};import vtr from"node:fs/promises";import{parse as btr}from"@swc/core";var rat=t(async s=>{let o=new Set;try{let f=await vtr.readFile(s,"utf-8");(await btr(f,{syntax:"typescript"})).body.forEach(y=>{y.type==="ExportDefaultDeclaration"||y.type==="ExportDefaultExpression"?o.add("default"):y.type==="ExportDeclaration"&&y.declaration.type==="FunctionDeclaration"?o.add(y.declaration.identifier.value):y.type==="ExportDeclaration"&&y.declaration.type==="VariableDeclaration"&&y.declaration.declarations[0].id.type==="Identifier"&&o.add(y.declaration.declarations[0].id.value)})}catch{return null}return o},"getJSFileExports");var nat={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/fragments.schema.json",$defs:{corsPolicyConfiguration:{type:"object",required:["name","allowedOrigins"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},allowCredentials:{type:"boolean"},maxAge:{type:"number"},allowedOrigins:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},allowedMethods:{oneOf:[{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},{type:"string"}]},allowedHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},exposeHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]}}},handlerDefinition:{type:"object",properties:{module:{type:"string",pattern:"^\\$import\\([^ )]*?\\)$"},export:{type:"string"},options:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["module","export"]},httpMethod:{type:"string",enum:["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"]}}};var JAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policies.schema.json",title:"Policies Config File",type:"object",additionalProperties:!1,properties:{policies:{type:"array",items:{$ref:"policy-configuration.schema.json"}},corsPolicies:{type:"array",items:{$ref:"fragments.schema.json#/$defs/corsPolicyConfiguration"}}}};var iat={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policy-configuration.schema.json",title:"Policy Configuration Fragment",type:"object",required:["name","policyType","handler"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},policyType:{type:"string"},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},options:{type:"object",additionalProperties:!0}}};var WAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration.schema.json",title:"Route Configuration Fragment",description:"",type:"object",required:["path","methods","handler"],additionalProperties:!1,$defs:{corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"}},properties:{operationId:{type:"string"},path:{type:"string",pattern:"^/[^\\s]*$"},methods:{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},label:{type:"string",description:"An internal user-friendly identifier of the route."},enforceOpenApi:{type:"boolean",description:"If true, schema validation found in the OpenAPI spec will be enforced on requests/responses."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{$ref:"#/$defs/corsPolicy"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},summary:{type:"string"},description:{type:"string"},excludeFromOpenApi:{type:"boolean"},tags:{type:"array",items:{type:"string"}}}};var qAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration-open-api.schema.json",title:"Open API Route Configuration Fragment",description:"These are the properties that can appear under the x-zuplo-route extension in a PathObject in Open API. It's a subset of what can appear in Zuplo's routes.json.",type:"object",required:["handler"],additionalProperties:!1,properties:{label:{type:"string",description:"An internal user-friendly identifier of the route."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"},custom:{},mcp:{oneOf:[{type:"object",additionalProperties:!1,properties:{type:{const:"tool"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"},includeOutputSchema:{type:"boolean"},includeStructuredContent:{type:"boolean"},annotations:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},readOnlyHint:{type:"boolean"},destructiveHint:{type:"boolean"},idempotentHint:{type:"boolean"},openWorldHint:{type:"boolean"}}},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"prompt"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"resource"},name:{type:"string"},description:{type:"string"},uri:{type:"string"},mimeType:{type:"string"},enabled:{type:"boolean"},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"graphql"},enabled:{type:"boolean"},introspectionTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}},executeTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}}},required:["type"]}]},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},tags:{type:"array",items:{type:"string"}}}};var ult=Pp(ele(),1),flt=Pp(llt(),1);var nle=class s{static{t(this,"JsonValidator")}static#e=new s;static get instance(){return s.#e}ajv;constructor(){this.ajv=new ult.Ajv2020({allErrors:!0,allowUnionTypes:!0}),this.ajv.addKeyword("faker"),(0,flt.default)(this.ajv,{mode:"fast"})}addSchema(o,f){this.ajv.addSchema(o,f)}compile(o){let f=this.ajv.compile(o);return t(y=>({isValid:f(y),errors:this.toSimpleErrors(f.errors,y),warnings:[]}),"validator")}toSimpleErrors(o,f){let d=[];return o?.forEach(y=>{y.keyword==="enum"&&y.params.allowedValues&&Array.isArray(y.params.allowedValues)&&(y.message+=`; ${y.params.allowedValues.join(", ")}`),y.instancePath&&(y.instancePath=y.instancePath.replaceAll(/(\/)?(~1)(\/)?/gm,"/"));let x={details:{}},A=y.instancePath.split("/");if(A.length>2){let W=A[1],G=A[2]?parseInt(A[2],10):0,be=A[3],de=Number.isNaN(G)?void 0:f[W][G][be];x={details:{property:W,index:G,field:be,fieldValue:de}}}if(y.keyword==="required"&&y.params.missingProperty&&y.instancePath&&(y.message=`A 'path' is missing required property '${y.params.missingProperty}'`),y.keyword==="additionalProperties"&&y.params.additionalProperty&&y.instancePath&&(y.message=`A 'path' should NOT include property '${y.params.additionalProperty}'`),y.keyword==="type"&&y.params.type&&y.instancePath){let W=y.instancePath.split("/"),G=W[W.length-1];y.message=`Value of property '${G}' must be '${y.params.type}'`}let F=Object.assign(y,x);d.push(F)}),d}};var _I=nle.instance;_I.addSchema(WAe,"route-configuration.schema.json");_I.addSchema(iat,"policy-configuration.schema.json");_I.addSchema(JAe,"policies.schema.json");_I.addSchema(qAe,"open-api-route-configuration.schema.json");_I.addSchema(nat,"fragments.schema.json");var E6r=_I.compile(WAe),_lt=_I.compile(qAe),aIe=_I.compile(JAe);var ile=class{static{t(this,"PoliciesConfigurationValidator")}results;validate(o){return this.results=aIe(o),this.results}};var sle=class{static{t(this,"OpenAPILocalizedValidator")}results;validate(o){return this.results=_lt(o),this.results}};import Acr from"node:path";var oIe=/\$import\((.*)\)/,PH=/\$env\((.*?)\)/g;var Uk=class extends Error{static{t(this,"CodeGenError")}location;constructor(o,f,d,y){super(o),this.location={file:f,namespace:"",line:d?d.line:0,column:d?d.column:0,length:0,lineText:y??"",suggestion:""}}},Pcr=t(s=>{let o=[],f=s;for(;f.parent;)o.push(f),f=f.parent;return o.reverse()},"invertTree"),ZP=t((s,o)=>{if(!s)return!1;let f=Pcr(s);return o.split("/").every((x,A)=>{let F=f[A];return F?x==="*"||HP(F)&&F.name.value===x?!0:x==="{}"?F.type===Wo.Object:x==="[]"?F.type===Wo.Array:!1:!1})},"testPosition");var ale=class{static{t(this,"AstTransformer")}errors=[];transform(o){return this.visitor(o),o}visitor(o){this.visit(o),eM(o)?o.children.forEach(f=>{this.visitor(f)}):zAe(o)?o.children.forEach(f=>{this.visitor(f)}):HP(o)&&this.visitor(o.value)}},plt=t(s=>{let o=new RegExp(PH).exec(s);if(o?.length===2&&o[0]===s)return{type:"raw",value:`environment["${o[1]}"]`};{let f=s.replaceAll(new RegExp(PH),(d,y)=>`\${environment["${y}"] ? environment["${y}"] : ""}`);if(f!==s)return{type:"template",value:f}}return null},"replaceEnvInString"),dlt=t((s,o,f)=>d=>{if(SO(d)&&typeof d.value=="string"&&d.parent&&zAe(d.parent)){if(!s.some(A=>ZP(d.parent,A))){PH.test(d.value)&&o.push(new Uk("An $env() statement is not expected at this location.",f,d.location,d.value));return}let x=plt(d.value);if(x){let A=d.parent,F=A.children.indexOf(d);if(F!==-1)if(x.type==="raw"){let W={type:Wo.Raw,parent:A,value:x.value};A.children[F]=W}else A.children[F]=DS.createTemplateString(x.value,d)}return}if(!HP(d)||!SO(d.value)||typeof d.value.value!="string")return;if(!s.some(x=>ZP(d,x))){PH.test(d.value.value)&&o.push(new Uk("An $env() statement is not expected at this location.",f,d.location,d.value.value));return}let y=plt(d.value.value);if(y)if(y.type==="raw"){let x={type:Wo.Raw,parent:null,value:y.value};d.value=x}else d.value=DS.createTemplateString(y.value,d)},"getEnvStatementTransformer");var AH="config/routes.json",Ncr=["handler/{}/options/*","handler/{}/options/*/[]","policies/[]/{}/handler/{}/options/*","policies/[]/{}/handler/{}/options/*/[]","corsPolicies/[]/{}/*","corsPolicies/[]/{}/*/[]"],Icr=["handler/{}/module","handler/{}/options/{}/policies/{}/inbound/[]/{}/module","handler/{}/options/{}/policies/{}/outbound/[]/{}/module","policies/[]/{}/handler/{}/module","policies/[]/{}/handler/{}/options/{}/identifier/{}/module","policies/[]/{}/handler/{}/options/{}/validator"],mlt=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*"],Ocr="handler/{}/options/{}/rewritePattern",Fcr="handler/{}/options/{}/baseUrl",ole=class extends ale{static{t(this,"OpenAPIRoutesFragmentAstTransformer")}importCount=0;addedImports=new Map;getImportName(o){this.addedImports.has(o)||this.addedImports.set(o,`__import${this.importCount++}`);let f=this.addedImports.get(o);if(!f)throw new Error("Import name is undefined. This should not happen.");return f}getImports(){let o=[];return this.addedImports.forEach((f,d)=>{o.push({name:f,path:d})}),o}visit(o){this.rewriteHandlerFunction(o),this.rewriteForwardFunction(o),this.replaceImportStatements(o),this.replaceEnvStatements(o)}rewriteHandlerFunction(o){if(!(!HP(o)||!SO(o.value)||typeof o.value.value!="string")&&ZP(o,Ocr)){if(!o.parent||!eM(o.parent)){this.errors.push(new Uk("Invalid node, expected object",AH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:hlt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}rewriteForwardFunction(o){if(!(!HP(o)||!SO(o.value)||typeof o.value.value!="string")&&ZP(o,Fcr)){if(!o.parent||!eM(o.parent)){this.errors.push(new Uk("Invalid node, expected object",AH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:hlt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}replaceImportStatements(o){if(!HP(o)||!SO(o.value))return;let f=o.value.value;if(typeof f!="string")return;if(!Icr.some(F=>ZP(o,F))&&!mlt.some(F=>ZP(o,F))){if(oIe.test(f)){if(o.name.value==="$ref")return;this.errors.push(new Uk("An $import() statement is not expected at this location.",AH,o.location,f))}return}let d=oIe.exec(f);if(mlt.some(F=>ZP(o,F))&&!d)return;if(!d){this.errors.push(new Uk("Invalid $import() statement",AH,o.location,f));return}let y=d[1];y=y.replace(/\\/g,"/"),y.startsWith(".")&&(y=Acr.posix.join("..",y));let x=this.getImportName(y),A={type:Wo.Identifier,parent:o.parent,value:x};o.value=A}replaceEnvStatements=dlt(Ncr,this.errors,AH)};function hlt(s){return`(request, context) => {
|
|
575
|
+
`),exitCode:x},"Untar process logs")}}t(_Zt,"untarFile");async function pZt(s){if(await iAe(s))return await XN.rm(s,{recursive:!0})}t(pZt,"deleteFolder");var eu=sAe;var Slt=Pp(Bst(),1);var Ust=["ai-gateway-auth-v2","ai-gateway-configuration-executor-v2","ai-gateway-fallback-model-v2","ai-gateway-model-filtering-v2","ai-gateway-semantic-cache","ai-gateway-semantic-cache-v2","akamai-ai-firewall","akamai-ai-firewall-v2","akamai-firewall-for-ai","comet-opik-tracing-v2","galileo-tracing-v2","prompt-injection","semantic-cache"];var HV=class{static{t(this,"R")}type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(s,o,f,d,y,x){this.type=s,this.name=o,this.prefix=f,this.value=d,this.suffix=y,this.modifier=x}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Uer=/[$_\p{ID_Start}]/u,zer=/[$_\u200C\u200D\p{ID_Continue}]/u,BAe=".*";function $er(s,o){return(o?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(s)}t($er,"Re");function Jst(s,o=!1){let f=[],d=0;for(;d<s.length;){let y=s[d],x=t(function(A){if(!o)throw new TypeError(A);f.push({type:"INVALID_CHAR",index:d,value:s[d++]})},"c");if(y==="*"){f.push({type:"ASTERISK",index:d,value:s[d++]});continue}if(y==="+"||y==="?"){f.push({type:"OTHER_MODIFIER",index:d,value:s[d++]});continue}if(y==="\\"){f.push({type:"ESCAPED_CHAR",index:d++,value:s[d++]});continue}if(y==="{"){f.push({type:"OPEN",index:d,value:s[d++]});continue}if(y==="}"){f.push({type:"CLOSE",index:d,value:s[d++]});continue}if(y===":"){let A="",F=d+1;for(;F<s.length;){let W=s.substr(F,1);if(F===d+1&&Uer.test(W)||F!==d+1&&zer.test(W)){A+=s[F++];continue}break}if(!A){x(`Missing parameter name at ${d}`);continue}f.push({type:"NAME",index:d,value:A}),d=F;continue}if(y==="("){let A=1,F="",W=d+1,G=!1;if(s[W]==="?"){x(`Pattern cannot start with "?" at ${W}`);continue}for(;W<s.length;){if(!$er(s[W],!1)){x(`Invalid character '${s[W]}' at ${W}.`),G=!0;break}if(s[W]==="\\"){F+=s[W++]+s[W++];continue}if(s[W]===")"){if(A--,A===0){W++;break}}else if(s[W]==="("&&(A++,s[W+1]!=="?")){x(`Capturing groups are not allowed at ${W}`),G=!0;break}F+=s[W++]}if(G)continue;if(A){x(`Unbalanced pattern at ${d}`);continue}if(!F){x(`Missing pattern at ${d}`);continue}f.push({type:"REGEX",index:d,value:F}),d=W;continue}f.push({type:"CHAR",index:d,value:s[d++]})}return f.push({type:"END",index:d,value:""}),f}t(Jst,"v");function Wst(s,o={}){let f=Jst(s);o.delimiter??="/#?",o.prefixes??="./";let d=`[^${fT(o.delimiter)}]+?`,y=[],x=0,A=0,F="",W=new Set,G=t(wn=>{if(A<f.length&&f[A].type===wn)return f[A++].value},"a"),be=t(()=>G("OTHER_MODIFIER")??G("ASTERISK"),"f"),de=t(wn=>{let sn=G(wn);if(sn!==void 0)return sn;let{type:Jn,index:kr}=f[A];throw new TypeError(`Unexpected ${Jn} at ${kr}, expected ${wn}`)},"d"),se=t(()=>{let wn="",sn;for(;sn=G("CHAR")??G("ESCAPED_CHAR");)wn+=sn;return wn},"T"),Xe=t(wn=>wn,"Se"),Ue=o.encodePart||Xe,je="",Vt=t(wn=>{je+=wn},"U"),Ut=t(()=>{je.length&&(y.push(new HV(3,"","",Ue(je),"",3)),je="")},"$"),Ir=t((wn,sn,Jn,kr,yr)=>{let xs=3;switch(yr){case"?":xs=1;break;case"*":xs=0;break;case"+":xs=2;break}if(!sn&&!Jn&&xs===3){Vt(wn);return}if(Ut(),!sn&&!Jn){if(!wn)return;y.push(new HV(3,"","",Ue(wn),"",xs));return}let bi;Jn?Jn==="*"?bi=BAe:bi=Jn:bi=d;let fc=2;bi===d?(fc=1,bi=""):bi===BAe&&(fc=0,bi="");let Ci;if(sn?Ci=sn:Jn&&(Ci=x++),W.has(Ci))throw new TypeError(`Duplicate name '${Ci}'.`);W.add(Ci),y.push(new HV(fc,Ci,Ue(wn),bi,Ue(kr),xs))},"V");for(;A<f.length;){let wn=G("CHAR"),sn=G("NAME"),Jn=G("REGEX");if(!sn&&!Jn&&(Jn=G("ASTERISK")),sn||Jn){let yr=wn??"";o.prefixes.indexOf(yr)===-1&&(Vt(yr),yr=""),Ut();let xs=be();Ir(yr,sn,Jn,"",xs);continue}let kr=wn??G("ESCAPED_CHAR");if(kr){Vt(kr);continue}if(G("OPEN")){let yr=se(),xs=G("NAME"),bi=G("REGEX");!xs&&!bi&&(bi=G("ASTERISK"));let fc=se();de("CLOSE");let Ci=be();Ir(yr,xs,bi,fc,Ci);continue}Ut(),de("END")}return y}t(Wst,"D");function fT(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(fT,"S");function zst(s){return s&&s.ignoreCase?"ui":"u"}t(zst,"X");function Jer(s,o,f){return qst(Wst(s,f),o,f)}t(Jer,"Z");function Q9(s){switch(s){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}t(Q9,"k");function qst(s,o,f={}){f.delimiter??="/#?",f.prefixes??="./",f.sensitive??=!1,f.strict??=!1,f.end??=!0,f.start??=!0,f.endsWith="";let d=f.start?"^":"";for(let F of s){if(F.type===3){F.modifier===3?d+=fT(F.value):d+=`(?:${fT(F.value)})${Q9(F.modifier)}`;continue}o&&o.push(F.name);let W=`[^${fT(f.delimiter)}]+?`,G=F.value;if(F.type===1?G=W:F.type===0&&(G=BAe),!F.prefix.length&&!F.suffix.length){F.modifier===3||F.modifier===1?d+=`(${G})${Q9(F.modifier)}`:d+=`((?:${G})${Q9(F.modifier)})`;continue}if(F.modifier===3||F.modifier===1){d+=`(?:${fT(F.prefix)}(${G})${fT(F.suffix)})`,d+=Q9(F.modifier);continue}d+=`(?:${fT(F.prefix)}`,d+=`((?:${G})(?:`,d+=fT(F.suffix),d+=fT(F.prefix),d+=`(?:${G}))*)${fT(F.suffix)})`,F.modifier===0&&(d+="?")}let y=`[${fT(f.endsWith)}]|$`,x=`[${fT(f.delimiter)}]`;if(f.end)return f.strict||(d+=`${x}?`),f.endsWith.length?d+=`(?=${y})`:d+="$",new RegExp(d,zst(f));f.strict||(d+=`(?:${x}(?=${y}))?`);let A=!1;if(s.length){let F=s[s.length-1];F.type===3&&F.modifier===3&&(A=f.delimiter.indexOf(F)>-1)}return A||(d+=`(?=${x}|${y})`),new RegExp(d,zst(f))}t(qst,"F");var tI={delimiter:"",prefixes:"",sensitive:!0,strict:!0},Wer={delimiter:".",prefixes:"",sensitive:!0,strict:!0},qer={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Ver(s,o){return s.length?s[0]==="/"?!0:!o||s.length<2?!1:(s[0]=="\\"||s[0]=="{")&&s[1]=="/":!1}t(Ver,"J");function Vst(s,o){return s.startsWith(o)?s.substring(o.length,s.length):s}t(Vst,"Q");function Her(s,o){return s.endsWith(o)?s.substr(0,s.length-o.length):s}t(Her,"Ee");function Hst(s){return!s||s.length<2?!1:s[0]==="["||(s[0]==="\\"||s[0]==="{")&&s[1]==="["}t(Hst,"W");var Gst=["ftp","file","http","https","ws","wss"];function Yst(s){if(!s)return!0;for(let o of Gst)if(s.test(o))return!0;return!1}t(Yst,"N");function Ger(s,o){if(s=Vst(s,"#"),o||s==="")return s;let f=new URL("https://example.com");return f.hash=s,f.hash?f.hash.substring(1,f.hash.length):""}t(Ger,"te");function Yer(s,o){if(s=Vst(s,"?"),o||s==="")return s;let f=new URL("https://example.com");return f.search=s,f.search?f.search.substring(1,f.search.length):""}t(Yer,"re");function Ker(s,o){return o||s===""?s:Hst(s)?Zst(s):Xst(s)}t(Ker,"ne");function Xer(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.password=s,f.password}t(Xer,"se");function Zer(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.username=s,f.username}t(Zer,"ie");function Qer(s,o,f){if(f||s==="")return s;if(o&&!Gst.includes(o))return new URL(`${o}:${s}`).pathname;let d=s[0]=="/";return s=new URL(d?s:"/-"+s,"https://example.com").pathname,d||(s=s.substring(2,s.length)),s}t(Qer,"ae");function etr(s,o,f){return Kst(o)===s&&(s=""),f||s===""?s:Qst(s)}t(etr,"oe");function ttr(s,o){return s=Her(s,":"),o||s===""?s:UAe(s)}t(ttr,"ce");function Kst(s){switch(s){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}t(Kst,"_");function UAe(s){if(s==="")return s;if(/^[-+.A-Za-z0-9]*$/.test(s))return s.toLowerCase();throw new TypeError(`Invalid protocol '${s}'.`)}t(UAe,"y");function rtr(s){if(s==="")return s;let o=new URL("https://example.com");return o.username=s,o.username}t(rtr,"le");function ntr(s){if(s==="")return s;let o=new URL("https://example.com");return o.password=s,o.password}t(ntr,"fe");function Xst(s){if(s==="")return s;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(s))throw new TypeError(`Invalid hostname '${s}'`);let o=new URL("https://example.com");return o.hostname=s,o.hostname}t(Xst,"z");function Zst(s){if(s==="")return s;if(/[^0-9a-fA-F[\]:]/g.test(s))throw new TypeError(`Invalid IPv6 hostname '${s}'`);return s.toLowerCase()}t(Zst,"j");function Qst(s){if(s===""||/^[0-9]*$/.test(s)&&parseInt(s)<=65535)return s;throw new TypeError(`Invalid port '${s}'.`)}t(Qst,"K");function itr(s){if(s==="")return s;let o=new URL("https://example.com");return o.pathname=s[0]!=="/"?"/-"+s:s,s[0]!=="/"?o.pathname.substring(2,o.pathname.length):o.pathname}t(itr,"he");function str(s){return s===""?s:new URL(`data:${s}`).pathname}t(str,"ue");function atr(s){if(s==="")return s;let o=new URL("https://example.com");return o.search=s,o.search.substring(1,o.search.length)}t(atr,"de");function otr(s){if(s==="")return s;let o=new URL("https://example.com");return o.hash=s,o.hash.substring(1,o.hash.length)}t(otr,"pe");var ctr=class{static{t(this,"H")}#e;#n=[];#t={};#r=0;#s=1;#m=0;#c=0;#u=0;#f=0;#p=!1;constructor(s){this.#e=s}get result(){return this.#t}parse(){for(this.#n=Jst(this.#e,!0);this.#r<this.#n.length;this.#r+=this.#s){if(this.#s=1,this.#n[this.#r].type==="END"){if(this.#c===0){this.#o(),this.#g()?this.#a(9,1):this.#E()?this.#a(8,1):this.#a(7,0);continue}else if(this.#c===2){this.#h(5);continue}this.#a(10,0);break}if(this.#u>0)if(this.#l())this.#u-=1;else continue;if(this.#A()){this.#u+=1;continue}switch(this.#c){case 0:this.#y()&&this.#h(1);break;case 1:if(this.#y()){this.#D();let s=7,o=1;this.#b()?(s=2,o=3):this.#p&&(s=2),this.#a(s,o)}break;case 2:this.#v()?this.#h(3):(this.#S()||this.#E()||this.#g())&&this.#h(5);break;case 3:this.#C()?this.#a(4,1):this.#v()&&this.#a(5,1);break;case 4:this.#v()&&this.#a(5,1);break;case 5:this.#O()?this.#f+=1:this.#N()&&(this.#f-=1),this.#k()&&!this.#f?this.#a(6,1):this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 6:this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 7:this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 8:this.#g()&&this.#a(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#a(s,o){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#w();break;case 2:break;case 3:this.#t.username=this.#w();break;case 4:this.#t.password=this.#w();break;case 5:this.#t.hostname=this.#w();break;case 6:this.#t.port=this.#w();break;case 7:this.#t.pathname=this.#w();break;case 8:this.#t.search=this.#w();break;case 9:this.#t.hash=this.#w();break;case 10:break}this.#c!==0&&s!==10&&([1,2,3,4].includes(this.#c)&&[6,7,8,9].includes(s)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#c)&&[8,9].includes(s)&&(this.#t.pathname??=this.#p?"/":""),[1,2,3,4,5,6,7].includes(this.#c)&&s===9&&(this.#t.search??="")),this.#i(s,o)}#i(s,o){this.#c=s,this.#m=this.#r+o,this.#r+=o,this.#s=0}#o(){this.#r=this.#m,this.#s=0}#h(s){this.#o(),this.#c=s}#d(s){return s<0&&(s=this.#n.length-s),s<this.#n.length?this.#n[s]:this.#n[this.#n.length-1]}#_(s,o){let f=this.#d(s);return f.value===o&&(f.type==="CHAR"||f.type==="ESCAPED_CHAR"||f.type==="INVALID_CHAR")}#y(){return this.#_(this.#r,":")}#b(){return this.#_(this.#r+1,"/")&&this.#_(this.#r+2,"/")}#v(){return this.#_(this.#r,"@")}#C(){return this.#_(this.#r,":")}#k(){return this.#_(this.#r,":")}#S(){return this.#_(this.#r,"/")}#E(){if(this.#_(this.#r,"?"))return!0;if(this.#n[this.#r].value!=="?")return!1;let s=this.#d(this.#r-1);return s.type!=="NAME"&&s.type!=="REGEX"&&s.type!=="CLOSE"&&s.type!=="ASTERISK"}#g(){return this.#_(this.#r,"#")}#A(){return this.#n[this.#r].type=="OPEN"}#l(){return this.#n[this.#r].type=="CLOSE"}#O(){return this.#_(this.#r,"[")}#N(){return this.#_(this.#r,"]")}#w(){let s=this.#n[this.#r],o=this.#d(this.#m).index;return this.#e.substring(o,s.index)}#D(){let s={};Object.assign(s,tI),s.encodePart=UAe;let o=Jer(this.#w(),void 0,s);this.#p=Yst(o)}},jAe=["protocol","username","password","hostname","port","pathname","search","hash"],eI="*";function $st(s,o){if(typeof s!="string")throw new TypeError("parameter 1 is not of type 'string'.");let f=new URL(s,o);return{protocol:f.protocol.substring(0,f.protocol.length-1),username:f.username,password:f.password,hostname:f.hostname,port:f.port,pathname:f.pathname,search:f.search!==""?f.search.substring(1,f.search.length):void 0,hash:f.hash!==""?f.hash.substring(1,f.hash.length):void 0}}t($st,"ge");function qP(s,o){return o?VV(s):s}t(qP,"b");function qV(s,o,f){let d;if(typeof o.baseURL=="string")try{d=new URL(o.baseURL),o.protocol===void 0&&(s.protocol=qP(d.protocol.substring(0,d.protocol.length-1),f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&(s.username=qP(d.username,f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&o.password===void 0&&(s.password=qP(d.password,f)),o.protocol===void 0&&o.hostname===void 0&&(s.hostname=qP(d.hostname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&(s.port=qP(d.port,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&(s.pathname=qP(d.pathname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&(s.search=qP(d.search.substring(1,d.search.length),f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&o.hash===void 0&&(s.hash=qP(d.hash.substring(1,d.hash.length),f))}catch{throw new TypeError(`invalid baseURL '${o.baseURL}'.`)}if(typeof o.protocol=="string"&&(s.protocol=ttr(o.protocol,f)),typeof o.username=="string"&&(s.username=Zer(o.username,f)),typeof o.password=="string"&&(s.password=Xer(o.password,f)),typeof o.hostname=="string"&&(s.hostname=Ker(o.hostname,f)),typeof o.port=="string"&&(s.port=etr(o.port,s.protocol,f)),typeof o.pathname=="string"){if(s.pathname=o.pathname,d&&!Ver(s.pathname,f)){let y=d.pathname.lastIndexOf("/");y>=0&&(s.pathname=qP(d.pathname.substring(0,y+1),f)+s.pathname)}s.pathname=Qer(s.pathname,s.protocol,f)}return typeof o.search=="string"&&(s.search=Yer(o.search,f)),typeof o.hash=="string"&&(s.hash=Ger(o.hash,f)),s}t(qV,"w");function VV(s){return s.replace(/([+*?:{}()\\])/g,"\\$1")}t(VV,"C");function ltr(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(ltr,"Oe");function utr(s,o){o.delimiter??="/#?",o.prefixes??="./",o.sensitive??=!1,o.strict??=!1,o.end??=!0,o.start??=!0,o.endsWith="";let f=".*",d=`[^${ltr(o.delimiter)}]+?`,y=/[$_\u200C\u200D\p{ID_Continue}]/u,x="";for(let A=0;A<s.length;++A){let F=s[A];if(F.type===3){if(F.modifier===3){x+=VV(F.value);continue}x+=`{${VV(F.value)}}${Q9(F.modifier)}`;continue}let W=F.hasCustomName(),G=!!F.suffix.length||!!F.prefix.length&&(F.prefix.length!==1||!o.prefixes.includes(F.prefix)),be=A>0?s[A-1]:null,de=A<s.length-1?s[A+1]:null;if(!G&&W&&F.type===1&&F.modifier===3&&de&&!de.prefix.length&&!de.suffix.length)if(de.type===3){let se=de.value.length>0?de.value[0]:"";G=y.test(se)}else G=!de.hasCustomName();if(!G&&!F.prefix.length&&be&&be.type===3){let se=be.value[be.value.length-1];G=o.prefixes.includes(se)}G&&(x+="{"),x+=VV(F.prefix),W&&(x+=`:${F.name}`),F.type===2?x+=`(${F.value})`:F.type===1?W||(x+=`(${d})`):F.type===0&&(!W&&(!be||be.type===3||be.modifier!==3||G||F.prefix!=="")?x+="*":x+=`(${f})`),F.type===1&&W&&F.suffix.length&&y.test(F.suffix[0])&&(x+="\\"),x+=VV(F.suffix),G&&(x+="}"),F.modifier!==3&&(x+=Q9(F.modifier))}return x}t(utr,"ke");var eat=class{static{t(this,"me")}#e;#n={};#t={};#r={};#s={};#m=!1;constructor(s={},o,f){try{let d;if(typeof o=="string"?d=o:f=o,typeof s=="string"){let F=new ctr(s);if(F.parse(),s=F.result,d===void 0&&typeof s.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");s.baseURL=d}else{if(!s||typeof s!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(d)throw new TypeError("parameter 1 is not of type 'string'.")}typeof f>"u"&&(f={ignoreCase:!1});let y={ignoreCase:f.ignoreCase===!0},x={pathname:eI,protocol:eI,username:eI,password:eI,hostname:eI,port:eI,search:eI,hash:eI};this.#e=qV(x,s,!0),Kst(this.#e.protocol)===this.#e.port&&(this.#e.port="");let A;for(A of jAe){if(!(A in this.#e))continue;let F={},W=this.#e[A];switch(this.#t[A]=[],A){case"protocol":Object.assign(F,tI),F.encodePart=UAe;break;case"username":Object.assign(F,tI),F.encodePart=rtr;break;case"password":Object.assign(F,tI),F.encodePart=ntr;break;case"hostname":Object.assign(F,Wer),Hst(W)?F.encodePart=Zst:F.encodePart=Xst;break;case"port":Object.assign(F,tI),F.encodePart=Qst;break;case"pathname":Yst(this.#n.protocol)?(Object.assign(F,qer,y),F.encodePart=itr):(Object.assign(F,tI,y),F.encodePart=str);break;case"search":Object.assign(F,tI,y),F.encodePart=atr;break;case"hash":Object.assign(F,tI,y),F.encodePart=otr;break}try{this.#s[A]=Wst(W,F),this.#n[A]=qst(this.#s[A],this.#t[A],F),this.#r[A]=utr(this.#s[A],F),this.#m=this.#m||this.#s[A].some(G=>G.type===2)}catch{throw new TypeError(`invalid ${A} pattern '${this.#e[A]}'.`)}}}catch(d){throw new TypeError(`Failed to construct 'URLPattern': ${d.message}`)}}test(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return!1;try{typeof s=="object"?f=qV(f,s,!1):f=qV(f,$st(s,o),!1)}catch{return!1}let d;for(d of jAe)if(!this.#n[d].exec(f[d]))return!1;return!0}exec(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return;try{typeof s=="object"?f=qV(f,s,!1):f=qV(f,$st(s,o),!1)}catch{return null}let d={};o?d.inputs=[s,o]:d.inputs=[s];let y;for(y of jAe){let x=this.#n[y].exec(f[y]);if(!x)return null;let A={};for(let[F,W]of this.#t[y].entries())if(typeof W=="string"||typeof W=="number"){let G=x[F+1];A[W]=G}d[y]={input:f[y]??"",groups:A}}return d}static compareComponent(s,o,f){let d=t((F,W)=>{for(let G of["type","modifier","prefix","value","suffix"]){if(F[G]<W[G])return-1;if(F[G]!==W[G])return 1}return 0},"o"),y=new HV(3,"","","","",3),x=new HV(0,"","","","",3),A=t((F,W)=>{let G=0;for(;G<Math.min(F.length,W.length);++G){let be=d(F[G],W[G]);if(be)return be}return F.length===W.length?0:d(F[G]??y,W[G]??y)},"s");return!o.#r[s]&&!f.#r[s]?0:o.#r[s]&&!f.#r[s]?A(o.#s[s],[x]):!o.#r[s]&&f.#r[s]?A([x],f.#s[s]):A(o.#s[s],f.#s[s])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#m}};globalThis.URLPattern||(globalThis.URLPattern=eat);import{AssertionError as ftr}from"node:assert";function VP(s,o){if(s===!1)throw new ftr({message:o})}t(VP,"assert");var Wo;(function(s){s.Object="Object",s.Property="Property",s.Array="Array",s.Literal="Literal",s.TemplateString="TemplateString",s.Identifier="Identifier",s.FunctionCall="FunctionCall",s.Raw="Raw"})(Wo||(Wo={}));function eM(s){return s.type===Wo.Object}t(eM,"isAstObject");function HP(s){return s.type===Wo.Property}t(HP,"isAstProperty");function zAe(s){return s.type===Wo.Array}t(zAe,"isAstArray");function SO(s){return s.type===Wo.Literal}t(SO,"isAstLiteral");function rI(s){if(s===void 0)throw new Error("Node is undefined");if(!eM(s))throw new Error("Node is not object")}t(rI,"assertAstObject");import{findNodeAtLocation as _tr,getNodeValue as ptr,printParseErrorCode as dtr,visit as mtr}from"jsonc-parser";var htr={DEFAULT:{allowTrailingComma:!1}};function GV(s,o=[],f=htr.DEFAULT){let d={type:"array",offset:-1,length:-1,line:-1,column:-1,children:[],parent:void 0};function y(W){d.type==="property"&&(d.length=W-d.offset,d=d.parent)}t(y,"ensurePropertyComplete");function x(W){return d.children?.push(W),W}t(x,"onValue"),mtr(s,{onObjectBegin:t((W,G,be)=>{d=x({type:"object",offset:W,length:-1,line:G+1,column:be+1,parent:d,children:[]})},"onObjectBegin"),onObjectProperty:t((W,G,be,de,se)=>{d=x({type:"property",offset:G,length:-1,line:de+1,column:se+1,parent:d,children:[]}),d.children?.push({type:"string",value:W,offset:G,length:be,line:de,column:se,parent:d})},"onObjectProperty"),onObjectEnd:t((W,G)=>{y(W+G),d.length=W+G-d.offset,d=d.parent,y(W+G)},"onObjectEnd"),onArrayBegin:t((W,G,be,de)=>{d=x({type:"array",offset:W,length:-1,line:be+1,column:de+1,parent:d,children:[]})},"onArrayBegin"),onArrayEnd:t((W,G)=>{d.length=W+G-d.offset,d=d.parent,y(W+G)},"onArrayEnd"),onLiteralValue:t((W,G,be,de,se)=>{x({type:gtr(W),offset:G,length:be,line:de+1,column:se+1,parent:d,value:W}),y(G+be)},"onLiteralValue"),onSeparator:t((W,G)=>{d.type==="property"&&(W===":"?d.colonOffset=G:W===","&&y(G))},"onSeparator"),onError:t((W,G,be,de,se)=>{o.push({error:W,offset:G,length:be,line:de+1,column:se+1})},"onError")},f);let F=d.children?.[0];return F&&delete F.parent,F}t(GV,"parse");function gtr(s){switch(typeof s){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(s){if(Array.isArray(s))return"array"}else return"null";return"object"}default:return"null"}}t(gtr,"getNodeType");function $Ae(s,o){return _tr(s,o)}t($Ae,"findNodeAtLocation");function YV(s){return ptr(s)}t(YV,"getNodeValue");function tat(s){return dtr(s)}t(tat,"printParseErrorCode");var KV=class{static{t(this,"AstAdapter")}parse(o){let d=GV(o,[]);if(d)return this.parseNode(d,void 0);throw new Error("Failed to parse JSON")}convert(o){return this.parseNode(o,void 0)}parseNode(o,f){switch(o.type){case"object":return this.createObject(o,f);case"array":return this.createArray(o,f);case"property":return this.createProperty(o,f);case"string":return this.createLiteral(o,f);case"number":return this.createLiteral(o,f);case"boolean":return this.createLiteral(o,f);case"null":return this.createLiteral(o,f)}}createLiteral(o,f){return{type:Wo.Literal,location:{line:o.line,column:o.column},parent:f,value:o.type==="null"?null:o.value}}createObject(o,f){let d={type:Wo.Object,children:[],parent:f,location:{line:o.line,column:o.column}};return o.children?.forEach(y=>{d.children.push(this.parseNode(y,d))}),d}createProperty(o,f){VP(o.children?.length===2,"Invalid property node");let d={type:Wo.Property,location:{line:o.line,column:o.column},parent:f,name:null,value:null};return d.name={value:o.children[0].value,location:{line:o.line,column:o.column},type:Wo.Identifier,parent:d},d.value=this.parseNode(o.children[1],d),d}createArray(o,f){let d={type:Wo.Array,location:{line:o.line,column:o.column},parent:f,children:[]};return o.children?.forEach(y=>d.children.push(this.parseNode(y,d))),d}};var DS={createLiteral:t((s,o)=>({type:Wo.Literal,parent:o,value:s}),"createLiteral"),createTemplateString:t((s,o)=>({type:Wo.TemplateString,parent:o,value:s}),"createTemplateString"),createIdentifier:t((s,o)=>({type:Wo.Identifier,value:s,parent:o}),"createIdentifier"),createProperty:t((s,o,f)=>{let d={type:Wo.Property,parent:f,name:null,value:o};return d.name={value:s,type:Wo.Identifier,parent:d},d.value.parent=d,d},"createProperty"),createArrayOfLiterals:t((s,o)=>{let f={type:Wo.Array,parent:o,children:[]};for(let d of s)f.children.push(DS.createLiteral(d,f));return f},"createArrayOfLiterals")};var ytr=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,XV=class{static{t(this,"SourceGenerator")}generate(o){let f=[];return this.generateSource(f,o),f.join("")}generateSource(o,f){switch(f.type){case Wo.Array:return this.generateArray(o,f);case Wo.Object:return this.generateObject(o,f);case Wo.Property:return this.generateProperty(o,f);case Wo.Literal:return this.generateLiteral(o,f);case Wo.FunctionCall:return this.generateFunctionCall(o,f);case Wo.Identifier:return this.generateIdentifier(o,f);case Wo.Raw:return this.generateRaw(o,f);case Wo.TemplateString:return this.generateTemplateString(o,f)}}generateArray(o,f){o.push("["),f.children.map(d=>{this.generateSource(o,d),o.push(",")}),o.push("]")}generateObject(o,f){o.push("{"),f.children.forEach(d=>{this.generateSource(o,d),o.push(",")}),o.push("}")}generateProperty(o,f){this.generateIdentifier(o,f.name),o.push(":"),this.generateSource(o,f.value)}generateFunctionCall(o,f){o.push(f.name.value),o.push("("),f.children.forEach((d,y,x)=>{this.generateSource(o,d),y<x.length&&o.push(",")}),o.push(")")}generateRaw(o,f){o.push(f.value)}generateTemplateString(o,f){o.push("`"),o.push(f.value.replaceAll("`","\\`")),o.push("`")}generateLiteral(o,f){if(f.value===null)return o.push("null");switch(typeof f.value){case"number":case"boolean":return o.push(`${f.value}`);case"string":{let d=f.value,y=JSON.stringify(d);return o.push(`${y}`)}}}generateIdentifier(o,f){let d=ytr.test(f.value)?f.value:`'${f.value}'`;o.push(d)}};import vtr from"node:fs/promises";import{parse as btr}from"@swc/core";var rat=t(async s=>{let o=new Set;try{let f=await vtr.readFile(s,"utf-8");(await btr(f,{syntax:"typescript"})).body.forEach(y=>{y.type==="ExportDefaultDeclaration"||y.type==="ExportDefaultExpression"?o.add("default"):y.type==="ExportDeclaration"&&y.declaration.type==="FunctionDeclaration"?o.add(y.declaration.identifier.value):y.type==="ExportDeclaration"&&y.declaration.type==="VariableDeclaration"&&y.declaration.declarations[0].id.type==="Identifier"&&o.add(y.declaration.declarations[0].id.value)})}catch{return null}return o},"getJSFileExports");var nat={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/fragments.schema.json",$defs:{corsPolicyConfiguration:{type:"object",required:["name","allowedOrigins"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},allowCredentials:{type:"boolean"},maxAge:{type:"number"},allowedOrigins:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},allowedMethods:{oneOf:[{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},{type:"string"}]},allowedHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},exposeHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]}}},handlerDefinition:{type:"object",properties:{module:{type:"string",pattern:"^\\$import\\([^ )]*?\\)$"},export:{type:"string"},options:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["module","export"]},httpMethod:{type:"string",enum:["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"]}}};var JAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policies.schema.json",title:"Policies Config File",type:"object",additionalProperties:!1,properties:{policies:{type:"array",items:{$ref:"policy-configuration.schema.json"}},corsPolicies:{type:"array",items:{$ref:"fragments.schema.json#/$defs/corsPolicyConfiguration"}}}};var iat={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policy-configuration.schema.json",title:"Policy Configuration Fragment",type:"object",required:["name","policyType","handler"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},policyType:{type:"string"},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},options:{type:"object",additionalProperties:!0}}};var WAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration.schema.json",title:"Route Configuration Fragment",description:"",type:"object",required:["path","methods","handler"],additionalProperties:!1,$defs:{corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"}},properties:{operationId:{type:"string"},path:{type:"string",pattern:"^/[^\\s]*$"},methods:{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},label:{type:"string",description:"An internal user-friendly identifier of the route."},enforceOpenApi:{type:"boolean",description:"If true, schema validation found in the OpenAPI spec will be enforced on requests/responses."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{$ref:"#/$defs/corsPolicy"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},summary:{type:"string"},description:{type:"string"},excludeFromOpenApi:{type:"boolean"},tags:{type:"array",items:{type:"string"}}}};var qAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration-open-api.schema.json",title:"Open API Route Configuration Fragment",description:"These are the properties that can appear under the x-zuplo-route extension in a PathObject in Open API. It's a subset of what can appear in Zuplo's routes.json.",type:"object",required:["handler"],additionalProperties:!1,properties:{label:{type:"string",description:"An internal user-friendly identifier of the route."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"},custom:{},mcp:{oneOf:[{type:"object",additionalProperties:!1,properties:{type:{const:"tool"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"},includeOutputSchema:{type:"boolean"},includeStructuredContent:{type:"boolean"},annotations:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},readOnlyHint:{type:"boolean"},destructiveHint:{type:"boolean"},idempotentHint:{type:"boolean"},openWorldHint:{type:"boolean"}}},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"prompt"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"resource"},name:{type:"string"},description:{type:"string"},uri:{type:"string"},mimeType:{type:"string"},enabled:{type:"boolean"},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"graphql"},enabled:{type:"boolean"},introspectionTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}},executeTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}}},required:["type"]}]},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},tags:{type:"array",items:{type:"string"}}}};var ult=Pp(ele(),1),flt=Pp(llt(),1);var nle=class s{static{t(this,"JsonValidator")}static#e=new s;static get instance(){return s.#e}ajv;constructor(){this.ajv=new ult.Ajv2020({allErrors:!0,allowUnionTypes:!0}),this.ajv.addKeyword("faker"),(0,flt.default)(this.ajv,{mode:"fast"})}addSchema(o,f){this.ajv.addSchema(o,f)}compile(o){let f=this.ajv.compile(o);return t(y=>({isValid:f(y),errors:this.toSimpleErrors(f.errors,y),warnings:[]}),"validator")}toSimpleErrors(o,f){let d=[];return o?.forEach(y=>{y.keyword==="enum"&&y.params.allowedValues&&Array.isArray(y.params.allowedValues)&&(y.message+=`; ${y.params.allowedValues.join(", ")}`),y.instancePath&&(y.instancePath=y.instancePath.replaceAll(/(\/)?(~1)(\/)?/gm,"/"));let x={details:{}},A=y.instancePath.split("/");if(A.length>2){let W=A[1],G=A[2]?parseInt(A[2],10):0,be=A[3],de=Number.isNaN(G)?void 0:f[W][G][be];x={details:{property:W,index:G,field:be,fieldValue:de}}}if(y.keyword==="required"&&y.params.missingProperty&&y.instancePath&&(y.message=`A 'path' is missing required property '${y.params.missingProperty}'`),y.keyword==="additionalProperties"&&y.params.additionalProperty&&y.instancePath&&(y.message=`A 'path' should NOT include property '${y.params.additionalProperty}'`),y.keyword==="type"&&y.params.type&&y.instancePath){let W=y.instancePath.split("/"),G=W[W.length-1];y.message=`Value of property '${G}' must be '${y.params.type}'`}let F=Object.assign(y,x);d.push(F)}),d}};var _I=nle.instance;_I.addSchema(WAe,"route-configuration.schema.json");_I.addSchema(iat,"policy-configuration.schema.json");_I.addSchema(JAe,"policies.schema.json");_I.addSchema(qAe,"open-api-route-configuration.schema.json");_I.addSchema(nat,"fragments.schema.json");var C6r=_I.compile(WAe),_lt=_I.compile(qAe),aIe=_I.compile(JAe);var ile=class{static{t(this,"PoliciesConfigurationValidator")}results;validate(o){return this.results=aIe(o),this.results}};var sle=class{static{t(this,"OpenAPILocalizedValidator")}results;validate(o){return this.results=_lt(o),this.results}};import Acr from"node:path";var oIe=/\$import\((.*)\)/,PH=/\$env\((.*?)\)/g;var Uk=class extends Error{static{t(this,"CodeGenError")}location;constructor(o,f,d,y){super(o),this.location={file:f,namespace:"",line:d?d.line:0,column:d?d.column:0,length:0,lineText:y??"",suggestion:""}}},Pcr=t(s=>{let o=[],f=s;for(;f.parent;)o.push(f),f=f.parent;return o.reverse()},"invertTree"),ZP=t((s,o)=>{if(!s)return!1;let f=Pcr(s);return o.split("/").every((x,A)=>{let F=f[A];return F?x==="*"||HP(F)&&F.name.value===x?!0:x==="{}"?F.type===Wo.Object:x==="[]"?F.type===Wo.Array:!1:!1})},"testPosition");var ale=class{static{t(this,"AstTransformer")}errors=[];transform(o){return this.visitor(o),o}visitor(o){this.visit(o),eM(o)?o.children.forEach(f=>{this.visitor(f)}):zAe(o)?o.children.forEach(f=>{this.visitor(f)}):HP(o)&&this.visitor(o.value)}},plt=t(s=>{let o=new RegExp(PH).exec(s);if(o?.length===2&&o[0]===s)return{type:"raw",value:`environment["${o[1]}"]`};{let f=s.replaceAll(new RegExp(PH),(d,y)=>`\${environment["${y}"] ? environment["${y}"] : ""}`);if(f!==s)return{type:"template",value:f}}return null},"replaceEnvInString"),dlt=t((s,o,f)=>d=>{if(SO(d)&&typeof d.value=="string"&&d.parent&&zAe(d.parent)){if(!s.some(A=>ZP(d.parent,A))){PH.test(d.value)&&o.push(new Uk("An $env() statement is not expected at this location.",f,d.location,d.value));return}let x=plt(d.value);if(x){let A=d.parent,F=A.children.indexOf(d);if(F!==-1)if(x.type==="raw"){let W={type:Wo.Raw,parent:A,value:x.value};A.children[F]=W}else A.children[F]=DS.createTemplateString(x.value,d)}return}if(!HP(d)||!SO(d.value)||typeof d.value.value!="string")return;if(!s.some(x=>ZP(d,x))){PH.test(d.value.value)&&o.push(new Uk("An $env() statement is not expected at this location.",f,d.location,d.value.value));return}let y=plt(d.value.value);if(y)if(y.type==="raw"){let x={type:Wo.Raw,parent:null,value:y.value};d.value=x}else d.value=DS.createTemplateString(y.value,d)},"getEnvStatementTransformer");var AH="config/routes.json",Ncr=["handler/{}/options/*","handler/{}/options/*/[]","policies/[]/{}/handler/{}/options/*","policies/[]/{}/handler/{}/options/*/[]","corsPolicies/[]/{}/*","corsPolicies/[]/{}/*/[]"],Icr=["handler/{}/module","handler/{}/options/{}/policies/{}/inbound/[]/{}/module","handler/{}/options/{}/policies/{}/outbound/[]/{}/module","policies/[]/{}/handler/{}/module","policies/[]/{}/handler/{}/options/{}/identifier/{}/module","policies/[]/{}/handler/{}/options/{}/validator"],mlt=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*"],Ocr="handler/{}/options/{}/rewritePattern",Fcr="handler/{}/options/{}/baseUrl",ole=class extends ale{static{t(this,"OpenAPIRoutesFragmentAstTransformer")}importCount=0;addedImports=new Map;getImportName(o){this.addedImports.has(o)||this.addedImports.set(o,`__import${this.importCount++}`);let f=this.addedImports.get(o);if(!f)throw new Error("Import name is undefined. This should not happen.");return f}getImports(){let o=[];return this.addedImports.forEach((f,d)=>{o.push({name:f,path:d})}),o}visit(o){this.rewriteHandlerFunction(o),this.rewriteForwardFunction(o),this.replaceImportStatements(o),this.replaceEnvStatements(o)}rewriteHandlerFunction(o){if(!(!HP(o)||!SO(o.value)||typeof o.value.value!="string")&&ZP(o,Ocr)){if(!o.parent||!eM(o.parent)){this.errors.push(new Uk("Invalid node, expected object",AH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:hlt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}rewriteForwardFunction(o){if(!(!HP(o)||!SO(o.value)||typeof o.value.value!="string")&&ZP(o,Fcr)){if(!o.parent||!eM(o.parent)){this.errors.push(new Uk("Invalid node, expected object",AH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:hlt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}replaceImportStatements(o){if(!HP(o)||!SO(o.value))return;let f=o.value.value;if(typeof f!="string")return;if(!Icr.some(F=>ZP(o,F))&&!mlt.some(F=>ZP(o,F))){if(oIe.test(f)){if(o.name.value==="$ref")return;this.errors.push(new Uk("An $import() statement is not expected at this location.",AH,o.location,f))}return}let d=oIe.exec(f);if(mlt.some(F=>ZP(o,F))&&!d)return;if(!d){this.errors.push(new Uk("Invalid $import() statement",AH,o.location,f));return}let y=d[1];y=y.replace(/\\/g,"/"),y.startsWith(".")&&(y=Acr.posix.join("..",y));let x=this.getImportName(y),A={type:Wo.Identifier,parent:o.parent,value:x};o.value=A}replaceEnvStatements=dlt(Ncr,this.errors,AH)};function hlt(s){return`(request, context) => {
|
|
576
576
|
const { params, url, query, method, headers } = request;
|
|
577
577
|
const { host, hostname, origin, pathname, port, search } = new URL(url);
|
|
578
578
|
const e = encodeURIComponent;
|
|
@@ -654,7 +654,7 @@ export default {
|
|
|
654
654
|
`,Tpt=t(async function({systemDirectory:s,logger:o}){return Ou.timeFn("Generating Worker shim",async()=>{o.debug("Generating Worker shim");let f=vmr.join(s,foe);try{await ymr.writeFile(f,bmr,"utf-8")}catch(d){o.error(d);let y={message:`Error creating file at ${f}`,pluginName:"generate-worker-entry",severity:"error"};return{warnings:[],errors:[y]}}return{warnings:[],errors:[]}})},"generateWorker");import{readdir as Smr,readFile as Tmr}from"node:fs/promises";import xpt from"node:path";var Yle="validate-open-api-files",Ept=t(async function({sourceDirectory:s,logger:o}){return Ou.timeFn("Validating OpenAPI files",async()=>{o.debug("Validating OpenAPI files");let f=xpt.join(s,P1),d=[];try{if(!await V9(s))return new TT({message:"Failed to build project because no open-api file was found on the 'config' folder",pluginName:Yle,severity:"error"});let A=(await Smr(f)).filter(W=>W.endsWith(".oas.json")),F=t(async W=>{let G=xpt.join(f,W);try{W==="zp.oas.json"&&d.push({message:"Open API files cannot be named 'zp.oas.json' since 'zp' is a reserved prefix. Update the file name to solve this build issue.",pluginName:Yle,severity:"error"});let be=await Tmr(G,"utf-8"),de=JSON.parse(be);if(de?.paths){let se=Object.entries(de.paths).filter(Xe=>Xe[0]==="zp"||Xe[0]==="/zp");if(se.length>0){let Xe=se.length===1?"includes one route path":`includes '${se.length}' routes`;d.push({message:`Open API file '${W}' ${Xe} that's named '/zp' which is a reserved route name. Updating the route to something other than '/zp' will solve this build issue.`,pluginName:Yle,severity:"error"})}}}catch(be){o.error(be)}},"validateOpenApiFile");await Promise.all(A.map(F))}catch(y){return o.error(y),d.length>0?{errors:d,warnings:[]}:new TT({message:"Failed while validating the open api files in the project",pluginName:Yle,severity:"warning"})}return{errors:d,warnings:[]}})},"validateOpenAPIFiles");import{readFile as $mr,writeFile as Wpt}from"node:fs/promises";import Jmr from"node:path";var qM=Pp(_3e(),1);import{parse as Wmr}from"jsonc-parser";var WM=Pp(_3e(),1);var Jpt=t(()=>({include:["modules/**/*",".zuplo/**/*","tests/**/*"],exclude:["./node_modules","./dist"],compilerOptions:{module:WM.ModuleKind.ESNext,target:WM.ScriptTarget.ES2022,moduleResolution:WM.ModuleResolutionKind.Bundler,lib:["ESNext","WebWorker","Webworker.Iterable"],preserveConstEnums:!0,useUnknownInCatchVariables:!1,forceConsistentCasingInFileNames:!0,importHelpers:!0,esModuleInterop:!0,strictNullChecks:!0,noEmit:!0}}),"getZuploTsConfigTemplate");var VO="validate-tsconfig",qpt=t(async function({sourceDirectory:s,logger:o,command:f,environmentType:d}){return Ou.timeFn("Validate TSConfig",async()=>{o.debug("Validate TSConfig");let y=d==="WORKING_COPY"||f==="dev";try{let x=Jpt(),A=Jmr.join(s,"tsconfig.json");if(!await eu.fileExists(A))return y?(await Wpt(A,JSON.stringify(x,null,2)),{warnings:[{message:"This project does not have a tsconfig.json file. The file has been created for you.",severity:"warning",pluginName:VO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}],errors:[]}):{warnings:[],errors:[{message:"This project does not have a tsconfig.json file.",severity:"error",pluginName:VO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}]};let F=await $mr(A,"utf-8"),W=Wmr(F);if(!(W&&typeof W=="object"&&"compilerOptions"in W))return y?(await Wpt(A,JSON.stringify(x,null,2)),{warnings:[{message:"This project's tsconfig.json file was invalid. A valid file has been written for you.",severity:"warning",pluginName:VO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}],errors:[]}):{warnings:[],errors:[{message:"This project's tsconfig.json file is invalid. It must have a compilerOptions.",severity:"error",pluginName:VO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}]};let G=qM.default.convertCompilerOptionsFromJson(W.compilerOptions,s);if(G.errors.length>0)return{warnings:[],errors:G.errors.map(Jn=>({severity:"error",pluginName:VO,message:Jn.messageText.toString(),detail:"You will need to modify your tsconfig.json file to build this project.",helpUrl:"https://zuplo.com/docs/articles/tsconfig",location:Jn.file?{line:Jn.file.getLineStarts()[0],length:Jn.file.getWidth(),file:Jn.file.fileName,column:Jn.file.getStart(),lineText:"",namespace:"",suggestion:""}:void 0}))};if(!W||typeof W!="object")throw new TypeError("The userConfigRaw is not an object, this should not happen.");if(!("compilerOptions"in W)||W.compilerOptions===null||W.compilerOptions===void 0||typeof W.compilerOptions!="object")throw new TypeError("The userConfigRaw.compilerOptions property is not an object, this should not happen.");let be=t((Jn,kr,yr)=>`The compiler option '${Jn}' should ${kr===void 0?"not be set":`be set to '${typeof kr=="string"?kr:JSON.stringify(kr)}'`}, it was ${yr===void 0?"not set":`set to '${typeof yr=="string"?yr:JSON.stringify(yr)}'`}`,"getMessage"),de="ESNext",se=qM.ModuleKind.ESNext,Xe=[];G.options.module!==se&&Xe.push(be("module",de,W.compilerOptions.module));let Ue="ES2022",je=qM.default.ScriptTarget.ES2022;G.options.target!==je&&Xe.push(be("target",Ue,W.compilerOptions.target));let Vt="Bundler",Ut=qM.default.ModuleResolutionKind.Bundler;G.options.moduleResolution!==Ut&&Xe.push(be("moduleResolution",Vt,W.compilerOptions.moduleResolution));let Ir=["ESNext","WebWorker","Webworker.Iterable"];t(Jn=>{let kr=Ir.map(xs=>xs.toLowerCase()),yr=Jn.map(xs=>xs.toLowerCase());return kr.every(xs=>yr.includes(xs))},"includesAllLibs")(W.compilerOptions.lib??[])||Xe.push(be("lib",Ir,W.compilerOptions.lib)),G.options.baseUrl&&Xe.push(be("baseUrl",void 0,W.compilerOptions.baseUrl));let sn=[];return Xe.length>0&&sn.push({message:"This project's tsconfig.json was not set to the recommended settings. Custom settings may cause build issues. For guidance on how to adjust your settings, please visit: https://zuplo.com/docs/articles/tsconfig",severity:"warning",detail:Xe.join(`
|
|
655
655
|
`),pluginName:VO,helpUrl:"https://zuplo.com/docs/articles/tsconfig"}),{warnings:sn,errors:[]}}catch(x){o.error(x);let A={message:`Error validating tsconfig.json : ${x.message}`,severity:"error",pluginName:VO};return{warnings:[],errors:[A]}}})},"validateTSConfig");var HO;try{let s=qmr(new URL("../../package.json",import.meta.url),"utf-8");HO=JSON.parse(s).version}catch{HO="0.0.0"}function Vmr(s){let{ZUPLO:o,ZUPLO_BUILD_ID:f,ZUPLO_BUILD_CONFIG:d}=process.env;if(o&&f&&d){let y;try{y=JSON.parse(d)}catch{throw new Error("Couuld not parse ZUPLO_BUILD_CONFIG")}let x={ZUPLO_PROJECT_ID:y.projectId,ZUPLO_ACCOUNT_NAME:y.accountName,ZUPLO_PROJECT_NAME:y.projectName,ZUPLO_ENVIRONMENT_TYPE:y.environmentType};for(let[A,F]of Object.entries(process.env))A.startsWith("ZUPLO_PUBLIC_")&&(x[A]=F??"");return{...s,buildId:f,...y,publicZuploEnvironmentVariables:x}}return s}t(Vmr,"getBuildConfig");async function p3e(s){let o=performance.now(),{buildId:f,sourceDirectory:d,deploymentName:y=Qle.basename(d),command:x,minify:A,entitlements:F,environmentType:W,logger:G,output:be,noCompile:de=!1,projectId:se,urls:Xe,publicZuploEnvironmentVariables:Ue,isAiEnabled:je}=Vmr(s),Vt=await $M(d),Ut=Qle.join(d,$9),Ir;if("errors"in Vt)K4e({output:be.child("api"),buildId:f,runtimeVersion:HO}),Ir={status:"Failed",runtimeVersion:HO,outputPath:Ut,buildTime:new Date().toISOString(),buildTimeMs:0,buildId:f,warnings:[],errors:Vt.errors,metafile:void 0,config:void 0};else{de||K4e({output:be.child("api"),buildId:f,runtimeVersion:HO,compatibilityDate:Vt.config.compatibilityDate});let Jn={command:x,minify:A,deploymentName:y,sourceDirectory:d,outputDirectory:Ut,systemDirectory:Qle.join(d,Og),cacheDirectory:Qle.join(d,"node_modules",Og),buildId:f,logger:G,output:be,config:Vt.config,publicZuploEnvironmentVariables:Ue,projectId:se,entitlements:F,environmentType:W,urls:Xe,isAiEnabled:je},kr=[];kr.push(gpt),kr.push(vpt),kr.push(bpt),kr.push(Spt),kr.push(qpt),kr.push(Ept),kr.push(Tpt),de||kr.push(cpt),kr.push(hpt);let yr=await ppt(kr,Jn),xs=yr.errors.length>0?M9:yr.warnings.length>0?pPe:LP,bi=yr.data.get("metafile");Ir=xs==="Failed"?{status:xs,config:void 0,runtimeVersion:HO,outputPath:Ut,buildTime:new Date().toISOString(),buildTimeMs:0,metafile:bi,buildId:f,warnings:yr.warnings,errors:yr.errors}:{status:xs,config:Vt.config,runtimeVersion:HO,outputPath:Ut,buildTime:new Date().toISOString(),buildTimeMs:0,metafile:bi,buildId:f,warnings:yr.warnings,errors:yr.errors}}Ir.warnings.length>0&&Ir.warnings.forEach(Jn=>{G.warn(Jn)}),Ir.errors.length>0&&Ir.errors.forEach(Jn=>{G.error(Jn)});let{metafile:wn,...sn}=Ir;if(G.debug(sn,"Compiler completed"),Ir.buildTimeMs=performance.now()-o,de||await Gle(d,be.child("api"),Ir),process.env.ZUPLO_SHOW_PERF){console.log();let Jn=Ir.buildTimeMs<2e3?"green":Ir.buildTimeMs<5e3?"yellow":"red";console.log(v_[Jn](`Build time: ${Ir.buildTimeMs.toFixed(0)}ms`)),Ou.report()}return Ou.clear(),Ir}t(p3e,"build");import{existsSync as wbr}from"node:fs";import{mkdir as Dbr,readFile as Pbr}from"node:fs/promises";import CG from"node:path";var eyt=Pp(C8e(),1);import{randomUUID as vgt}from"node:crypto";import H1r from"node:events";import bG from"node:path";import G1r from"chokidar";import*as bgt from"esbuild";var k8e=class extends H1r{static{t(this,"WatchEmitter")}},RI=class{static{t(this,"BuildWatcher")}esbuildContext;emitter=new k8e;envFilesWatcher;outputDirectory;sourceDirectory;command;logger;publicZuploEnvironmentVariables;buildId;output;urls;constructor({sourceDirectory:o,command:f,logger:d,publicZuploEnvironmentVariables:y={},buildId:x,output:A,urls:F}){this.sourceDirectory=o,this.command=f,this.outputDirectory=bG.join(o,$9),this.logger=d,this.publicZuploEnvironmentVariables=y,this.buildId=x,this.output=A,this.urls=F,this.envFilesWatcher=G1r.watch([bG.join(o,".env"),bG.join(o,".env.zuplo")])}watchEnvFiles(){this.envFilesWatcher.on("change",()=>{this.emitter.emit("reload",null,null)}),this.envFilesWatcher.on("add",()=>{this.emitter.emit("reload",null,null)}),this.envFilesWatcher.on("unlink",()=>{this.emitter.emit("reload",null,null)})}onReload=t(o=>{this.emitter.on("reload",o)},"onReload");async start(){let{sourceDirectory:o}=this;if(this.esbuildContext!==void 0)throw new Error("Watcher cannot be started more than once");let f=await p3e({buildId:this.buildId,output:this.output,sourceDirectory:o,noCompile:!0,command:this.command,publicZuploEnvironmentVariables:this.publicZuploEnvironmentVariables,logger:this.logger,urls:this.urls}),d=await rG({command:this.command,systemDirectory:bG.join(o,Og),cacheDirectory:bG.join(o,"node_modules",Og),outputDirectory:this.outputDirectory,sourceDirectory:o,config:f.config??X4e,logger:this.logger,urls:this.urls}),y=this;d.plugins?.push({name:"on-end",setup(x){x.onEnd(A=>{y.logger.debug("Watcher (build) reloaded");let F=G4e({buildId:vgt(),result:A});F.errors.length>0?y.logger.error(F.errors,"Build errors"):y.logger.debug(`Successfully rebuilt watched project. Build id ${F.buildId}`);let W={...F,...f.status==="Good"?{config:f.config}:{config:void 0}};y.emitter.emit("reload",W,null)})}}),this.esbuildContext=await bgt.context(d);try{if((await this.esbuildContext.rebuild()).errors.length>0){let A={status:"Failed",runtimeVersion:"0.0.0",buildTime:"",buildTimeMs:0,buildId:vgt(),warnings:[],errors:[],metafile:void 0,config:void 0};await Gle(o,y.output.child("api"),A),this.logger.error(A.errors,"Build errors")}}catch(x){throw await this.close(),x}await this.esbuildContext.watch()}async close(){try{await this.envFilesWatcher.close(),this.esbuildContext&&(await this.esbuildContext.dispose(),this.logger.debug("ESBuild watcher closed"))}catch(o){this.logger.error(o)}}};import{existsSync as Z0t,readFileSync as Q0t}from"node:fs";import Bfe from"node:path";var Z8e=Pp(P8e(),1);var K0t=Pp(p0t(),1);import{Buffer as Sbr}from"node:buffer";import Tbr from"node:path";import Y0t from"node:child_process";import jfe from"node:process";function B8e(s){let o=typeof s=="string"?`
|
|
656
656
|
`:10,f=typeof s=="string"?"\r":13;return s[s.length-1]===o&&(s=s.slice(0,-1)),s[s.length-1]===f&&(s=s.slice(0,-1)),s}t(B8e,"stripFinalNewline");import Afe from"node:process";import TG from"node:path";import{fileURLToPath as d0t}from"node:url";function Pfe(s={}){let{env:o=process.env,platform:f=process.platform}=s;return f!=="win32"?"PATH":Object.keys(o).reverse().find(d=>d.toUpperCase()==="PATH")||"Path"}t(Pfe,"pathKey");var Lvr=t(({cwd:s=Afe.cwd(),path:o=Afe.env[Pfe()],preferLocal:f=!0,execPath:d=Afe.execPath,addExecPath:y=!0}={})=>{let x=s instanceof URL?d0t(s):s,A=TG.resolve(x),F=[];return f&&Rvr(F,A),y&&Mvr(F,d,A),[...F,o].join(TG.delimiter)},"npmRunPath"),Rvr=t((s,o)=>{let f;for(;f!==o;)s.push(TG.join(o,"node_modules/.bin")),f=o,o=TG.resolve(o,"..")},"applyPreferLocal"),Mvr=t((s,o,f)=>{let d=o instanceof URL?d0t(o):o;s.push(TG.resolve(f,d,".."))},"applyExecPath"),m0t=t(({env:s=Afe.env,...o}={})=>{s={...s};let f=Pfe({env:s});return o.path=s[f],s[f]=Lvr(o),s},"npmRunPathEnv");var jvr=t((s,o,f,d)=>{if(f==="length"||f==="prototype"||f==="arguments"||f==="caller")return;let y=Object.getOwnPropertyDescriptor(s,f),x=Object.getOwnPropertyDescriptor(o,f);!Bvr(y,x)&&d||Object.defineProperty(s,f,x)},"copyProperty"),Bvr=t(function(s,o){return s===void 0||s.configurable||s.writable===o.writable&&s.enumerable===o.enumerable&&s.configurable===o.configurable&&(s.writable||s.value===o.value)},"canCopyProperty"),Uvr=t((s,o)=>{let f=Object.getPrototypeOf(o);f!==Object.getPrototypeOf(s)&&Object.setPrototypeOf(s,f)},"changePrototype"),zvr=t((s,o)=>`/* Wrapped ${s}*/
|
|
657
|
-
${o}`,"wrappedToString"),$vr=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Jvr=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Wvr=t((s,o,f)=>{let d=f===""?"":`with ${f.trim()}() `,y=zvr.bind(null,d,o.toString());Object.defineProperty(y,"name",Jvr),Object.defineProperty(s,"toString",{...$vr,value:y})},"changeToString");function U8e(s,o,{ignoreNonConfigurable:f=!1}={}){let{name:d}=s;for(let y of Reflect.ownKeys(o))jvr(s,o,y,f);return Uvr(s,o),Wvr(s,o,d),s}t(U8e,"mimicFunction");var Nfe=new WeakMap,h0t=t((s,o={})=>{if(typeof s!="function")throw new TypeError("Expected a function");let f,d=0,y=s.displayName||s.name||"<anonymous>",x=t(function(...A){if(Nfe.set(x,++d),d===1)f=s.apply(this,A),s=null;else if(o.throw===!0)throw new Error(`Function \`${y}\` can only be called once`);return f},"onetime");return U8e(x,s),Nfe.set(x,d),x},"onetime");h0t.callCount=s=>{if(!Nfe.has(s))throw new Error(`The given function \`${s.name}\` is not wrapped by the \`onetime\` package`);return Nfe.get(s)};var g0t=h0t;import{constants as Gvr}from"os";var y0t=t(function(){let s=z8e-v0t+1;return Array.from({length:s},qvr)},"getRealtimeSignals"),qvr=t(function(s,o){return{name:`SIGRT${o+1}`,number:v0t+o,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},"getRealtimeSignal"),v0t=34,z8e=64;import{constants as Vvr}from"os";var b0t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var $8e=t(function(){let s=y0t();return[...b0t,...s].map(Hvr)},"getSignals"),Hvr=t(function({name:s,number:o,description:f,action:d,forced:y=!1,standard:x}){let{signals:{[s]:A}}=Vvr,F=A!==void 0;return{name:s,number:F?A:o,description:f,supported:F,action:d,forced:y,standard:x}},"normalizeSignal");var Yvr=t(function(){return $8e().reduce(Kvr,{})},"getSignalsByName"),Kvr=t(function(s,{name:o,number:f,description:d,supported:y,action:x,forced:A,standard:F}){return{...s,[o]:{name:o,number:f,description:d,supported:y,action:x,forced:A,standard:F}}},"getSignalByName"),S0t=Yvr(),Xvr=t(function(){let s=$8e(),o=z8e+1,f=Array.from({length:o},(d,y)=>Zvr(y,s));return Object.assign({},...f)},"getSignalsByNumber"),Zvr=t(function(s,o){let f=Qvr(s,o);if(f===void 0)return{};let{name:d,description:y,supported:x,action:A,forced:F,standard:W}=f;return{[s]:{name:d,number:s,description:y,supported:x,action:A,forced:F,standard:W}}},"getSignalByNumber"),Qvr=t(function(s,o){let f=o.find(({name:d})=>Gvr.signals[d]===s);return f!==void 0?f:o.find(d=>d.number===s)},"findSignalByNumber"),
|
|
657
|
+
${o}`,"wrappedToString"),$vr=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Jvr=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Wvr=t((s,o,f)=>{let d=f===""?"":`with ${f.trim()}() `,y=zvr.bind(null,d,o.toString());Object.defineProperty(y,"name",Jvr),Object.defineProperty(s,"toString",{...$vr,value:y})},"changeToString");function U8e(s,o,{ignoreNonConfigurable:f=!1}={}){let{name:d}=s;for(let y of Reflect.ownKeys(o))jvr(s,o,y,f);return Uvr(s,o),Wvr(s,o,d),s}t(U8e,"mimicFunction");var Nfe=new WeakMap,h0t=t((s,o={})=>{if(typeof s!="function")throw new TypeError("Expected a function");let f,d=0,y=s.displayName||s.name||"<anonymous>",x=t(function(...A){if(Nfe.set(x,++d),d===1)f=s.apply(this,A),s=null;else if(o.throw===!0)throw new Error(`Function \`${y}\` can only be called once`);return f},"onetime");return U8e(x,s),Nfe.set(x,d),x},"onetime");h0t.callCount=s=>{if(!Nfe.has(s))throw new Error(`The given function \`${s.name}\` is not wrapped by the \`onetime\` package`);return Nfe.get(s)};var g0t=h0t;import{constants as Gvr}from"os";var y0t=t(function(){let s=z8e-v0t+1;return Array.from({length:s},qvr)},"getRealtimeSignals"),qvr=t(function(s,o){return{name:`SIGRT${o+1}`,number:v0t+o,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},"getRealtimeSignal"),v0t=34,z8e=64;import{constants as Vvr}from"os";var b0t=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var $8e=t(function(){let s=y0t();return[...b0t,...s].map(Hvr)},"getSignals"),Hvr=t(function({name:s,number:o,description:f,action:d,forced:y=!1,standard:x}){let{signals:{[s]:A}}=Vvr,F=A!==void 0;return{name:s,number:F?A:o,description:f,supported:F,action:d,forced:y,standard:x}},"normalizeSignal");var Yvr=t(function(){return $8e().reduce(Kvr,{})},"getSignalsByName"),Kvr=t(function(s,{name:o,number:f,description:d,supported:y,action:x,forced:A,standard:F}){return{...s,[o]:{name:o,number:f,description:d,supported:y,action:x,forced:A,standard:F}}},"getSignalByName"),S0t=Yvr(),Xvr=t(function(){let s=$8e(),o=z8e+1,f=Array.from({length:o},(d,y)=>Zvr(y,s));return Object.assign({},...f)},"getSignalsByNumber"),Zvr=t(function(s,o){let f=Qvr(s,o);if(f===void 0)return{};let{name:d,description:y,supported:x,action:A,forced:F,standard:W}=f;return{[s]:{name:d,number:s,description:y,supported:x,action:A,forced:F,standard:W}}},"getSignalByNumber"),Qvr=t(function(s,o){let f=o.find(({name:d})=>Gvr.signals[d]===s);return f!==void 0?f:o.find(d=>d.number===s)},"findSignalByNumber"),WRr=Xvr();var ebr=t(({timedOut:s,timeout:o,errorCode:f,signal:d,signalDescription:y,exitCode:x,isCanceled:A})=>s?`timed out after ${o} milliseconds`:A?"was canceled":f!==void 0?`failed with ${f}`:d!==void 0?`was killed with ${d} (${y})`:x!==void 0?`failed with exit code ${x}`:"failed","getErrorPrefix"),J8e=t(({stdout:s,stderr:o,all:f,error:d,signal:y,exitCode:x,command:A,escapedCommand:F,timedOut:W,isCanceled:G,killed:be,parsed:{options:{timeout:de}}})=>{x=x===null?void 0:x,y=y===null?void 0:y;let se=y===void 0?void 0:S0t[y].description,Xe=d&&d.code,je=`Command ${ebr({timedOut:W,timeout:de,errorCode:Xe,signal:y,signalDescription:se,exitCode:x,isCanceled:G})}: ${A}`,Vt=Object.prototype.toString.call(d)==="[object Error]",Ut=Vt?`${je}
|
|
658
658
|
${d.message}`:je,Ir=[Ut,o,s].filter(Boolean).join(`
|
|
659
659
|
`);return Vt?(d.originalMessage=d.message,d.message=Ir):d=new Error(Ir),d.shortMessage=Ut,d.command=A,d.escapedCommand=F,d.exitCode=x,d.signal=y,d.signalDescription=se,d.stdout=s,d.stderr=o,f!==void 0&&(d.all=f),"bufferedData"in d&&delete d.bufferedData,d.failed=!0,d.timedOut=!!W,d.isCanceled=G,d.killed=be&&!W,d},"makeError");var Ife=["stdin","stdout","stderr"],tbr=t(s=>Ife.some(o=>s[o]!==void 0),"hasAlias"),T0t=t(s=>{if(!s)return;let{stdio:o}=s;if(o===void 0)return Ife.map(d=>s[d]);if(tbr(s))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ife.map(d=>`\`${d}\``).join(", ")}`);if(typeof o=="string")return o;if(!Array.isArray(o))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof o}\``);let f=Math.max(o.length,Ife.length);return Array.from({length:f},(d,y)=>o[y])},"normalizeStdio");var P0t=Pp(D0t(),1);import rbr from"node:os";var nbr=1e3*5,A0t=t((s,o="SIGTERM",f={})=>{let d=s(o);return ibr(s,o,f,d),d},"spawnedKill"),ibr=t((s,o,f,d)=>{if(!sbr(o,f,d))return;let y=obr(f),x=setTimeout(()=>{s("SIGKILL")},y);x.unref&&x.unref()},"setKillTimeout"),sbr=t((s,{forceKillAfterTimeout:o},f)=>abr(s)&&o!==!1&&f,"shouldForceKill"),abr=t(s=>s===rbr.constants.signals.SIGTERM||typeof s=="string"&&s.toUpperCase()==="SIGTERM","isSigterm"),obr=t(({forceKillAfterTimeout:s=!0})=>{if(s===!0)return nbr;if(!Number.isFinite(s)||s<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${s}\` (${typeof s})`);return s},"getForceKillAfterTimeout"),N0t=t((s,o)=>{s.kill()&&(o.isCanceled=!0)},"spawnedCancel"),cbr=t((s,o,f)=>{s.kill(o),f(Object.assign(new Error("Timed out"),{timedOut:!0,signal:o}))},"timeoutKill"),I0t=t((s,{timeout:o,killSignal:f="SIGTERM"},d)=>{if(o===0||o===void 0)return d;let y,x=new Promise((F,W)=>{y=setTimeout(()=>{cbr(s,f,W)},o)}),A=d.finally(()=>{clearTimeout(y)});return Promise.race([x,A])},"setupTimeout"),O0t=t(({timeout:s})=>{if(s!==void 0&&(!Number.isFinite(s)||s<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${s}\` (${typeof s})`)},"validateTimeout"),F0t=t(async(s,{cleanup:o,detached:f},d)=>{if(!o||f)return d;let y=(0,P0t.default)(()=>{s.kill()});return d.finally(()=>{y()})},"setExitHandler");function L0t(s){return s!==null&&typeof s=="object"&&typeof s.pipe=="function"}t(L0t,"isStream");var Y8e=Pp(j0t(),1),z0t=Pp(U0t(),1);var $0t=t((s,o)=>{o===void 0||s.stdin===void 0||(L0t(o)?o.pipe(s.stdin):s.stdin.end(o))},"handleInput"),J0t=t((s,{all:o})=>{if(!o||!s.stdout&&!s.stderr)return;let f=(0,z0t.default)();return s.stdout&&f.add(s.stdout),s.stderr&&f.add(s.stderr),f},"makeAllStream"),H8e=t(async(s,o)=>{if(s){s.destroy();try{return await o}catch(f){return f.bufferedData}}},"getBufferedData"),G8e=t((s,{encoding:o,buffer:f,maxBuffer:d})=>{if(!(!s||!f))return o?(0,Y8e.default)(s,{encoding:o,maxBuffer:d}):Y8e.default.buffer(s,{maxBuffer:d})},"getStreamPromise"),W0t=t(async({stdout:s,stderr:o,all:f},{encoding:d,buffer:y,maxBuffer:x},A)=>{let F=G8e(s,{encoding:d,buffer:y,maxBuffer:x}),W=G8e(o,{encoding:d,buffer:y,maxBuffer:x}),G=G8e(f,{encoding:d,buffer:y,maxBuffer:x*2});try{return await Promise.all([A,F,W,G])}catch(be){return Promise.all([{error:be,signal:be.signal,timedOut:be.timedOut},H8e(s,F),H8e(o,W),H8e(f,G)])}},"getSpawnedResult");var hbr=(async()=>{})().constructor.prototype,gbr=["then","catch","finally"].map(s=>[s,Reflect.getOwnPropertyDescriptor(hbr,s)]),K8e=t((s,o)=>{for(let[f,d]of gbr){let y=typeof o=="function"?(...x)=>Reflect.apply(d.value,o(),x):d.value.bind(o);Reflect.defineProperty(s,f,{...d,value:y})}return s},"mergePromise"),q0t=t(s=>new Promise((o,f)=>{s.on("exit",(d,y)=>{o({exitCode:d,signal:y})}),s.on("error",d=>{f(d)}),s.stdin&&s.stdin.on("error",d=>{f(d)})}),"getSpawnedPromise");var V0t=t((s,o=[])=>Array.isArray(o)?[s,...o]:[s],"normalizeArgs"),ybr=/^[\w.-]+$/,vbr=/"/g,bbr=t(s=>typeof s!="string"||ybr.test(s)?s:`"${s.replace(vbr,'\\"')}"`,"escapeArg"),H0t=t((s,o)=>V0t(s,o).join(" "),"joinCommand"),G0t=t((s,o)=>V0t(s,o).map(f=>bbr(f)).join(" "),"getEscapedCommand");var xbr=1e3*1e3*100,Ebr=t(({env:s,extendEnv:o,preferLocal:f,localDir:d,execPath:y})=>{let x=o?{...jfe.env,...s}:s;return f?m0t({env:x,cwd:d,execPath:y}):x},"getEnv"),Cbr=t((s,o,f={})=>{let d=K0t.default._parse(s,o,f);return s=d.command,o=d.args,f=d.options,f={maxBuffer:xbr,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:f.cwd||jfe.cwd(),execPath:jfe.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...f},f.env=Ebr(f),f.stdio=T0t(f),jfe.platform==="win32"&&Tbr.basename(s,".exe")==="cmd"&&o.unshift("/q"),{file:s,args:o,options:f,parsed:d}},"handleArguments"),X8e=t((s,o,f)=>typeof o!="string"&&!Sbr.isBuffer(o)?f===void 0?void 0:"":s.stripFinalNewline?B8e(o):o,"handleOutput");function X0t(s,o,f){let d=Cbr(s,o,f),y=H0t(s,o),x=G0t(s,o);O0t(d.options);let A;try{A=Y0t.spawn(d.file,d.args,d.options)}catch(Xe){let Ue=new Y0t.ChildProcess,je=Promise.reject(J8e({error:Xe,stdout:"",stderr:"",all:"",command:y,escapedCommand:x,parsed:d,timedOut:!1,isCanceled:!1,killed:!1}));return K8e(Ue,je)}let F=q0t(A),W=I0t(A,d.options,F),G=F0t(A,d.options,W),be={isCanceled:!1};A.kill=A0t.bind(null,A.kill.bind(A)),A.cancel=N0t.bind(null,A,be);let se=g0t(t(async()=>{let[{error:Xe,exitCode:Ue,signal:je,timedOut:Vt},Ut,Ir,wn]=await W0t(A,d.options,G),sn=X8e(d.options,Ut),Jn=X8e(d.options,Ir),kr=X8e(d.options,wn);if(Xe||Ue!==0||je!==null){let yr=J8e({error:Xe,exitCode:Ue,signal:je,stdout:sn,stderr:Jn,all:kr,command:y,escapedCommand:x,parsed:d,timedOut:Vt,isCanceled:be.isCanceled||(d.options.signal?d.options.signal.aborted:!1),killed:A.killed});if(!d.options.reject)return yr;throw yr}return{command:y,escapedCommand:x,exitCode:0,stdout:sn,stderr:Jn,all:kr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return $0t(A,d.options.input),A.all=J0t(A,d.options),K8e(A,se)}t(X0t,"execa");async function Ufe(s,o){if(s.__ZUPLO_LOG_LEVEL=process.env.__ZUPLO_LOG_LEVEL??process.env.LOG_LEVEL,s.__ZUPLO_LOG_FORMAT=process.env.__ZUPLO_LOG_FORMAT??process.env.LOG_FORMAT,s.LOG_LEVEL=process.env.LOG_LEVEL??process.env.LOG_LEVEL,s.LOG_FORMAT=process.env.LOG_FORMAT??process.env.LOG_FORMAT,s.GIT_SHA=process.env.GIT_SHA??await kbr(o),process.env.__ZUPLO_CONFIG&&(s.__ZUPLO_CONFIG=process.env.__ZUPLO_CONFIG),Z0t(Bfe.join(o,".env.zuplo"))){let f=Q0t(Bfe.join(o,".env.zuplo"),"utf8"),d=Z8e.default.parse(f);for(let y of Object.keys(d))if(s[y]=d[y],y==="ZUPLO_SYSTEM_CONFIGURATIONS"){let x=Buffer.from(joe.decode(d[y])).toString(),A=JSON.parse(x);for(let F of Object.keys(A))s[F]=A[F]}}if(Z0t(Bfe.join(o,".env"))){let f=Q0t(Bfe.join(o,".env"),"utf8"),d=Z8e.default.parse(f);for(let y of Object.keys(d))s[y]=d[y]}for(let f of Object.keys(s))s[f]===void 0&&delete s[f];return s}t(Ufe,"setEnvironment");async function kbr(s){let o="unknown";try{let{stdout:f}=await X0t("git",["rev-parse","HEAD"],{cwd:s});f.trim().length===40&&(o=f.trim())}catch{}return o}t(kbr,"getGitSha");async function Abr({buildId:s,output:o,sourceDirectory:f,bundledDir:d,port:y,binaryName:x,publicZuploEnvironmentVariables:A,logger:F,handleRuntimeStdio:W}){if(d){let be=CG.join(f,d,"modules.json");if(!wbr(be))throw new Error("The bundled-dir does not contain a modules.json file.");let de=await Pbr(be,"utf-8").then(JSON.parse),se=await $M(f);return se.status===LP?new Promise((Xe,Ue)=>{G(se.config.compatibilityDate,CG.join(f,d),de,Xe,W)().catch(je=>{F.error(je),Ue(je)})}):(F.warn("Failed to get Zuplo config. Using default compatibility date."),new Promise((Xe,Ue)=>{G(void 0,f,de,Xe,W)().catch(je=>{F.error(je),Ue(je)})}))}else{let be=new RI({buildId:s,output:o,sourceDirectory:f,command:"dev",logger:F,publicZuploEnvironmentVariables:A??{ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},urls:void 0});try{await be.start()}catch{F.info("Ran into irrecoverable error while building. Fix the error and rerun the command."),process.exit(1)}return new Promise((de,se)=>{be.onReload((Xe,Ue)=>{(Ue||Xe?.errors&&Xe.errors.length>0)&&se(Ue??Xe?.errors),G(Xe?.config?.compatibilityDate,CG.join(f,"dist"),zM(f,Xe?.metafile),de,W)().catch(je=>{F.error(je),se(je)})})})}function G(be,de,se,Xe,Ue){return async()=>{let je={};await Ufe(je,f);let Vt=new eyt.ZuploWorkerd({compatibilityDate:be,scriptDirectory:de,modules:se,port:y??Ym.DEV_SERVER_PORT,bindings:je,handleRuntimeStdio:Ue}),Ut=x??"compiled-zup",Ir=CG.join(f,"dist");await Dbr(Ir,{recursive:!0}),await Vt.compileBinary({binaryPath:CG.join(f,"dist",Ut)}),await Vt.dispose(),Xe(void 0)}}t(G,"compile")}t(Abr,"compileWorkerdServer");import{existsSync as jbr,readFileSync as Bbr}from"node:fs";import Ubr from"node:path";var fyt=Pp(P8e(),1);import tyt from"node:assert";import Ibr from"node:child_process";import Obr from"node:fs";import zfe from"node:os";import Fbr from"node:path";import{Readable as ryt}from"node:stream";import{fileURLToPath as syt}from"node:url";import Nbr from"node:net";function kG(s,o){return new Promise(f=>{let d=new Nbr.Socket;d.connect(o,s),d.on("connect",()=>{d.destroy(),f(!1)}),d.on("error",()=>{d.destroy(),f(!0)})})}t(kG,"isPortAvailable");function nyt(s,o){let f=import.meta.resolve(s),d=new URL(".",f),y=new URL(o,d);if(Obr.existsSync(y))return syt(y)}t(nyt,"getValidExecutablePath");function Lbr(){let s=zfe.platform()==="win32"?"deno.exe":"deno",o=nyt("deno/package.json",s);if(o)return o;let f=Rbr(),d=nyt(`@deno/${f}/package.json`,s);if(d)return d;throw new Error("Failed to locate the managed-dedicated server executable.")}t(Lbr,"locateDenoExecutable");function Rbr(){let s=zfe.platform();return s==="linux"?`${s}-${iyt()}-glibc`:`${s}-${iyt()}`}t(Rbr,"getTarget");function iyt(){let s=zfe.arch();if(s!=="arm64"&&s!=="x64")throw new Error("Unsupported architecture "+zfe.arch()+". Only x64 and aarch64 binaries are available.");return s}t(iyt,"getArch");var $fe=class{static{t(this,"ZenoServer")}serverProcess;sourceDirectory;port;debugPort;processExitPromise;logger;output;buildWatcher;onReload;handleRuntimeStdio;denoExecutablePath;unsafelyIgnoreCertificateErrors;additionalEnv;constructor(o){if(this.port=o.port??9e3,this.debugPort=o.debugPort,this.logger=o.logger,this.output=o.output,this.onReload=o.onReload,this.handleRuntimeStdio=o.handleRuntimeStdio,this.sourceDirectory=o.sourceDirectory,this.unsafelyIgnoreCertificateErrors=!!o.unsafelyIgnoreCertificateErrors,this.additionalEnv=o.additionalEnv,!o.zupTestMode){let d=`http://localhost:${o.devPortalPort??3e3}`,y=`http://localhost:${this.port}`;this.buildWatcher=new RI({sourceDirectory:o.sourceDirectory,command:"dev",logger:o.logger,publicZuploEnvironmentVariables:{...o.publicZuploEnvironmentVariables,ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},buildId:"dev",output:o.output,urls:{devPortal:{defaultUrl:d,urls:[d]},api:{defaultUrl:y,urls:[y]}}}),this.buildWatcher.watchEnvFiles()}this.denoExecutablePath=Lbr()}getServeArgs(){let o=`${Fbr.dirname(syt(import.meta.url))}/zeno.js`,f=["run","--allow-read","--allow-net","--allow-env","--allow-write",...this.unsafelyIgnoreCertificateErrors?["--unsafely-ignore-certificate-errors"]:[]];return this.debugPort&&f.push(`--inspect=127.0.0.1:${this.debugPort}`),f.push(o),f.push("--dir",this.sourceDirectory),f.push("--port",this.port.toString()),f}async getUnavailablePorts(){let o=[];return this.debugPort&&!await kG("127.0.0.1",this.debugPort)&&o.push(this.debugPort),await kG("127.0.0.1",this.port)||o.push(this.port),o}async start(){let o=await this.getUnavailablePorts();if(o.length>0)throw new Error(`The following ports are not available: ${o.join(", ")}`);if(this.buildWatcher)try{await this.buildWatcher.start()}catch(f){this.output.child("api").error(f.toString());let d="Ran into irrecoverable error while starting watcher. Fix the error and restart the server.";this.output.child("api").error(d),this.logger?.info(d),process.exit(1)}await this.startOrReload(),this.buildWatcher?.onReload((f,d)=>{d||f?.errors&&f.errors.length>0||(this.onReload(f??void 0,void 0),this.startOrReload().catch(y=>{this.output.child("api").error(y.toString()),this.logger?.error(y)}))})}async startOrReload(){try{await this.dispose(),this.logger?.info("Starting managed-dedicated local server");let o=this.getServeArgs();this.serverProcess=Ibr.spawn(this.denoExecutablePath,o,{stdio:["pipe","pipe","pipe"],env:{...process.env,...this.additionalEnv,FORCE_COLOR:"1"}}),tyt(this.serverProcess.stdout instanceof ryt),tyt(this.serverProcess.stderr instanceof ryt),this.processExitPromise=this.waitForExit(),this.handleRuntimeStdio(this.serverProcess.stdout,this.serverProcess.stderr)}catch(o){this.logger?.debug(o)}}waitForExit(){return new Promise(o=>{this.serverProcess?.once("exit",o)})}dispose(){return this.serverProcess?.kill("SIGKILL"),this.processExitPromise}async stop(){await this.dispose(),await this.buildWatcher?.close()}};import tOe from"node:fs/promises";import Aj from"node:path";var h7="__ZUPLO_MTLS_CLIENT_CERT_NAMES",g7="__ZUPLO_MTLS_CLIENT_CERT_BASE_DIR",Q8e="tls.crt",eOe="tls.key";function Jfe(s){return`Expected layout: ${Aj.join(s,"<certName>",Q8e)} and ${Aj.join(s,"<certName>",eOe)}.`}t(Jfe,"expectedLayoutMessage");async function ayt(s){try{return(await tOe.stat(s)).isDirectory()}catch{return!1}}t(ayt,"directoryExists");async function oyt(s){try{return(await tOe.stat(s)).isFile()}catch{return!1}}t(oyt,"fileExists");async function cyt(s,o){let f=await tOe.readdir(s,{withFileTypes:!0}),d=[];for(let y of f){if(!y.isDirectory())continue;let x=await oyt(Aj.join(s,y.name,Q8e)),A=await oyt(Aj.join(s,y.name,eOe));if(x&&A){d.push(y.name);continue}if(x||A){let F=x?eOe:Q8e;o.child("api").warn(`Ignoring mTLS certificate directory '${Aj.join(s,y.name)}' because it is missing '${F}'. Add the missing file to load this certificate. ${Jfe(s)}`)}}return d.sort()}t(cyt,"scanCertificateDirectory");async function lyt(s){let{sourceDirectory:o,explicitDir:f,logger:d,output:y}=s;if(f){if(!await ayt(f))throw new Error(`The mTLS certificates directory '${f}' does not exist. Create it and add one subdirectory per certificate. ${Jfe(f)}`);let A;try{A=await cyt(f,y)}catch(F){throw new Error(`Failed to read the mTLS certificates directory '${f}'. Check the directory permissions.`,{cause:F})}if(A.length===0)throw new Error(`The mTLS certificates directory '${f}' does not contain any valid certificate entries. Add one subdirectory per certificate. ${Jfe(f)}`);return{baseDir:f,certNames:A}}let x=Aj.join(o,".zuplo-local","mtls");if(await ayt(x)){let A;try{A=await cyt(x,y)}catch(F){y.child("api").warn(`Failed to read the local mTLS certificates directory '${x}'. Skipping local mTLS certificate detection.`),d.debug({error:F,candidate:x},"Failed to scan mTLS certificates");return}if(A.length===0){y.child("api").warn(`Found local mTLS certificates directory '${x}' but it does not contain any valid certificate entries. ${Jfe(x)}`);return}return{baseDir:x,certNames:A}}d.debug("No local mTLS certificates directory found. Skipping local mTLS certificate detection.")}t(lyt,"resolveLocalMtlsCertificates");var uyt=Pp(C8e(),1);import Mbr from"node:path";var Wfe=class{static{t(this,"WorkerdServer")}sourceDirectory;port;debugPort;buildWatcher;workerd;logger;output;handleRuntimeStdio;onReload;lastBuildResult;constructor(o){if(this.sourceDirectory=o.sourceDirectory,this.port=o.port??Ym.DEV_SERVER_PORT,this.debugPort=o.debugPort,this.logger=o.logger,this.output=o.output,this.handleRuntimeStdio=o.handleRuntimeStdio,this.onReload=o.onReload,!o.zupTestMode){let d=`http://localhost:${o.devPortalPort??3e3}`,y=`http://localhost:${this.port}`;this.buildWatcher=new RI({...o,logger:this.logger,publicZuploEnvironmentVariables:{...o.publicZuploEnvironmentVariables,ZUPLO_ENVIRONMENT_TYPE:"LOCAL_DEVELOPMENT"},urls:{devPortal:{defaultUrl:d,urls:[d]},api:{defaultUrl:y,urls:[y]}}}),this.buildWatcher.watchEnvFiles()}}async start(){if(!await kG("localhost",this.port))throw new Error(`Port ${this.port} is currently in use. Please use a different port.`);if(this.buildWatcher)try{await this.buildWatcher.start()}catch(f){this.output.child("api").error(f.toString());let d="Ran into irrecoverable error while starting watcher. Fix the error and restart the server.";this.output.child("api").error(d),this.logger?.info(d),process.exit(1)}this.buildWatcher?.onReload((f,d)=>{d||f?.errors&&f.errors.length>0||(this.onReload(f??void 0,void 0),this.startOrReload(f).catch(y=>{this.output.child("api").error(y.toString()),this.logger?.error(y)}))})}async startOrReload(o){try{o&&(this.lastBuildResult=o);let f=o??this.lastBuildResult;if(!f)return;let d={};await Ufe(d,this.sourceDirectory),await this.workerd?.dispose(),this.workerd=new uyt.ZuploWorkerd({compatibilityDate:f.config?.compatibilityDate,scriptDirectory:Mbr.join(this.sourceDirectory,"dist"),modules:zM(this.sourceDirectory,f.metafile),port:this.port,inspectorPort:this.debugPort??void 0,bindings:d,handleRuntimeStdio:this.handleRuntimeStdio}),await this.workerd.serve()}catch(f){this.logger?.debug(f)}}async stop(){await this.buildWatcher?.close(),await this.workerd?.dispose()}};async function zbr(s){let o=await $M(s),f=!1;return o.status===LP&&(f=o.config.projectType!=="managed-edge"||(o.config.flags?.managedDedicatedFlags?.useZeno??!1)),f||process.env.ZUPLO_DEV_RUNTIME==="zeno"}t(zbr,"useZeno");function $br(s,o){let f={};for(let x of[".env.zuplo",".env"]){let A=Ubr.join(s,x);try{jbr(A)&&Object.assign(f,fyt.default.parse(Bbr(A,"utf8")))}catch(F){o.debug({error:F,filePath:A},"Failed to read env file while checking for explicit mTLS configuration")}}let d=!!f[h7],y=!!f[g7];return{hasNames:d||!!process.env[h7],hasBaseDir:y||!!process.env[g7],fromEnvFile:d||y}}t($br,"getExplicitMtlsEnvVars");async function Jbr({sourceDirectory:s,mtlsCertificatesDir:o,logger:f,output:d}){let y=$br(s,f);if(y.hasNames||y.hasBaseDir){if(o&&y.fromEnvFile){d.child("api").warn(`Ignoring --mtls-certs: ${h7} / ${g7} are set in .env or .env.zuplo, which take precedence in the local runtime. Remove them to use --mtls-certs.`);return}if(!o){y.hasNames!==y.hasBaseDir&&d.child("api").warn(`Only one of ${h7} / ${g7} is set. Both are required to load mTLS client certificates.`),f.info(`Using explicit mTLS environment configuration (${h7} / ${g7}). Skipping local mTLS certificate detection.`);return}}let x=await lyt({sourceDirectory:s,explicitDir:o,logger:f,output:d});if(x)return d.child("api").info(`Loaded ${x.certNames.length} local mTLS client certificate(s) from ${x.baseDir}: ${x.certNames.join(", ")}. Reference by name via the mtlsCertificate option.`),{[h7]:x.certNames.join(","),[g7]:x.baseDir}}t(Jbr,"getMtlsAdditionalEnv");async function Wbr({sourceDirectory:s,port:o,debugPort:f,devPortalPort:d,publicZuploEnvironmentVariables:y,unsafelyIgnoreCertificateErrors:x,mtlsCertificatesDir:A,logger:F,output:W,buildId:G,onReload:be,handleRuntimeStdio:de}){process.env.ZUPLO_IS_LOCAL_DEVELOPMENT="true";let se;if(await zbr(s)){F.debug("Starting managed-dedicated local dev server.");let Ue=await Jbr({sourceDirectory:s,mtlsCertificatesDir:A,logger:F,output:W});se=new $fe({sourceDirectory:s,port:o,debugPort:f,devPortalPort:d,logger:F,output:W,publicZuploEnvironmentVariables:y,onReload:be,handleRuntimeStdio:de,unsafelyIgnoreCertificateErrors:x,additionalEnv:Ue})}else F.debug("Starting edge local dev server."),A&&W.child("api").warn(`Local mTLS client certificates are only supported for managed-dedicated projects (projectType "managed-dedicated" in zuplo.jsonc). Ignoring '${A}'.`),se=new Wfe({sourceDirectory:s,command:"dev",port:o,debugPort:f,devPortalPort:d,publicZuploEnvironmentVariables:y,logger:F,output:W,buildId:G,onReload:be,handleRuntimeStdio:de});await se.start();async function Xe(){await se.stop()}t(Xe,"handle"),process.on("SIGTERM",Xe),process.on("SIGINT",Xe)}t(Wbr,"startDevServer");var Ny=new URL("./public/",import.meta.url);import{readFile as qfe}from"fs/promises";var W1=class{static{t(this,"BaseComponent")}#e;#n;#t;scriptFile;cssFile;constructor(s){this.#t=s}async getStyles(){return this.cssFile?this.#t?await qfe(this.cssFile,"utf-8"):(this.#e=this.#e??await qfe(this.cssFile,"utf-8"),this.#e):null}async getScript(){return this.scriptFile?this.#t?await qfe(this.scriptFile,"utf-8"):(this.#n=this.#n??await qfe(this.scriptFile,"utf-8"),this.#n):null}};var _yt=class extends W1{static{t(this,"Layout")}cssFile=new URL("./layout/style.css",Ny);scriptFile=new URL("./layout/script.js",Ny);async toHTML(s){return`<!DOCTYPE html>
|
|
660
660
|
<html lang="en">
|
|
@@ -673,7 +673,7 @@ ${d.message}`:je,Ir=[Ut,o,s].filter(Boolean).join(`
|
|
|
673
673
|
</html>`}async toANSI(s){return`
|
|
674
674
|
${await s.children()}
|
|
675
675
|
`}};var rOe,dyt,myt,hyt,gyt=!0;typeof process<"u"&&({FORCE_COLOR:rOe,NODE_DISABLE_COLORS:dyt,NO_COLOR:myt,TERM:hyt}=process.env||{},gyt=process.stdout&&process.stdout.isTTY);var t_={enabled:!dyt&&myt==null&&hyt!=="dumb"&&(rOe!=null&&rOe!=="0"||gyt),reset:rp(0,0),bold:rp(1,22),dim:rp(2,22),italic:rp(3,23),underline:rp(4,24),inverse:rp(7,27),hidden:rp(8,28),strikethrough:rp(9,29),black:rp(30,39),red:rp(31,39),green:rp(32,39),yellow:rp(33,39),blue:rp(34,39),magenta:rp(35,39),cyan:rp(36,39),white:rp(37,39),gray:rp(90,39),grey:rp(90,39),bgBlack:rp(40,49),bgRed:rp(41,49),bgGreen:rp(42,49),bgYellow:rp(43,49),bgBlue:rp(44,49),bgMagenta:rp(45,49),bgCyan:rp(46,49),bgWhite:rp(47,49)};function pyt(s,o){let f=0,d,y="",x="";for(;f<s.length;f++)d=s[f],y+=d.open,x+=d.close,~o.indexOf(d.close)&&(o=o.replace(d.rgx,d.close+d.open));return y+o+x}t(pyt,"run");function qbr(s,o){let f={has:s,keys:o};return f.reset=t_.reset.bind(f),f.bold=t_.bold.bind(f),f.dim=t_.dim.bind(f),f.italic=t_.italic.bind(f),f.underline=t_.underline.bind(f),f.inverse=t_.inverse.bind(f),f.hidden=t_.hidden.bind(f),f.strikethrough=t_.strikethrough.bind(f),f.black=t_.black.bind(f),f.red=t_.red.bind(f),f.green=t_.green.bind(f),f.yellow=t_.yellow.bind(f),f.blue=t_.blue.bind(f),f.magenta=t_.magenta.bind(f),f.cyan=t_.cyan.bind(f),f.white=t_.white.bind(f),f.gray=t_.gray.bind(f),f.grey=t_.grey.bind(f),f.bgBlack=t_.bgBlack.bind(f),f.bgRed=t_.bgRed.bind(f),f.bgGreen=t_.bgGreen.bind(f),f.bgYellow=t_.bgYellow.bind(f),f.bgBlue=t_.bgBlue.bind(f),f.bgMagenta=t_.bgMagenta.bind(f),f.bgCyan=t_.bgCyan.bind(f),f.bgWhite=t_.bgWhite.bind(f),f}t(qbr,"chain");function rp(s,o){let f={open:`\x1B[${s}m`,close:`\x1B[${o}m`,rgx:new RegExp(`\\x1b\\[${o}m`,"g")};return function(d){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(s)||(this.has.push(s),this.keys.push(f)),d===void 0?this:t_.enabled?pyt(this.keys,d+""):d+""):d===void 0?qbr([s],[f]):t_.enabled?pyt([f],d+""):d+""}}t(rp,"init");var Vfe=t_;var nOe=class{static{t(this,"Colors")}black(s){return this.transform("black",s)}red(s){return this.transform("red",s)}green(s){return this.transform("green",s)}yellow(s){return this.transform("yellow",s)}blue(s){return this.transform("blue",s)}magenta(s){return this.transform("magenta",s)}cyan(s){return this.transform("cyan",s)}white(s){return this.transform("white",s)}gray(s){return this.transform("gray",s)}grey(s){return this.transform("grey",s)}bgBlack(s){return this.transform("bgBlack",s)}bgRed(s){return this.transform("bgRed",s)}bgGreen(s){return this.transform("bgGreen",s)}bgYellow(s){return this.transform("bgYellow",s)}bgBlue(s){return this.transform("bgBlue",s)}bgMagenta(s){return this.transform("bgMagenta",s)}bgCyan(s){return this.transform("bgCyan",s)}bgWhite(s){return this.transform("bgWhite",s)}reset(s){return this.transform("reset",s)}bold(s){return this.transform("bold",s)}dim(s){return this.transform("dim",s)}italic(s){return this.transform("italic",s)}underline(s){return this.transform("underline",s)}inverse(s){return this.transform("inverse",s)}hidden(s){return this.transform("hidden",s)}strikethrough(s){return this.transform("strikethrough",s)}},Vbr=class extends nOe{static{t(this,"Raw")}#e=[];#n(s,o){return o(),s}transform(s,o){if(this.#e.push(s),o!==void 0){let f=this.#e.concat([o]).join("("),d=new Array(this.#e.length+1).join(")");return this.#n(`${f}${d}`,()=>{this.#e=[]})}return this}},Hbr=class extends nOe{static{t(this,"Kleur")}#e;constructor(){super(),Vfe.enabled=!0}#n(s,o){return o(),s}transform(s,o){return o!==void 0?this.#e?this.#n(this.#e[s](o),()=>{this.#e=void 0}):Vfe[s](o):(this.#e?this.#e=this.#e[s]():this.#e=Vfe[s](),this)}},Gbr=class extends nOe{static{t(this,"Silent")}transform(s,o){return o!==void 0?String(o):this}},Ybr={ansi(){return new Hbr},silent(){return new Gbr},raw(){return new Vbr}},wG=Ybr;var Kbr=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function DG(s){return s.replace(/&/g,"&").replace(/\\"/g,"\"").replace(/</g,"<").replace(/>/g,">")}t(DG,"htmlEscape");function iOe(s,o){let f=o.width,d=o.indent,y=`${o.newLine}${d}`;if(!f)return o.escape?o.escape(s):DG(s);let x=".{1,"+f+"}";x+="([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)";let A=new RegExp(x,"g");return(s.match(A)||[]).map(function(G){return G.slice(-1)===`
|
|
676
|
-
`&&(G=G.slice(0,G.length-1)),o.escape?o.escape(G):DG(G)}).join(y)}t(iOe,"wordWrap");function yyt(s){return s.replace(Kbr,"")}t(yyt,"stripAnsi");var w0=wG.ansi();var byt=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Xbr(s){return byt.includes(s)}t(Xbr,"isTypedArrayName");var Syt=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...byt];function Zbr(s){return Syt.includes(s)}t(Zbr,"isObjectTypeName");var Tyt=["null","undefined","string","number","bigint","boolean","symbol"];function Qbr(s){return Tyt.includes(s)}t(Qbr,"isPrimitiveTypeName");var tjr=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...Syt,...Tyt],of=t(s=>{let o=Object.prototype.toString.call(s).slice(8,-1);if(/HTML\w+Element/.test(o)&&Pyt(s))return"HTMLElement";if(Zbr(o))return o},"getObjectType");function vyt(s){if(s===null)return"null";switch(typeof s){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(s)?"NaN":"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(aOe(s))return"Observable";if(MI(s))return"Array";if(kyt(s))return"Buffer";let o=of(s);if(o)return o;if(s instanceof String||s instanceof Boolean||s instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}t(vyt,"detect");function eSr(s){return Iy(s?.then)&&Iy(s?.catch)}t(eSr,"hasPromiseApi");var tSr=Object.assign(vyt,{all:rSr,any:Eyt,array:MI,arrayBuffer:nSr,arrayLike:iSr,asyncFunction:sSr,asyncGenerator:aSr,asyncGeneratorFunction:oSr,asyncIterable:Cyt,bigint:cSr,bigInt64Array:lSr,bigUint64Array:uSr,blob:fSr,boolean:_Sr,boundFunction:pSr,buffer:kyt,class:dSr,dataView:mSr,date:wyt,detect:vyt,directInstanceOf:hSr,emptyArray:gSr,emptyMap:ySr,emptyObject:vSr,emptySet:bSr,emptyString:Dyt,emptyStringOrWhitespace:sOe,enumCase:SSr,error:TSr,evenInteger:xSr,falsy:ESr,float32Array:CSr,float64Array:kSr,formData:wSr,function:Iy,generator:DSr,generatorFunction:PSr,htmlElement:Pyt,infinite:ISr,inRange:OSr,int16Array:FSr,int32Array:LSr,int8Array:RSr,integer:Ayt,iterable:Nyt,map:PG,nan:Iyt,nativePromise:Oyt,negativeNumber:MSr,nodeStream:jSr,nonEmptyArray:BSr,nonEmptyMap:USr,nonEmptyObject:zSr,nonEmptySet:$Sr,nonEmptyString:JSr,nonEmptyStringAndNotWhitespace:WSr,null:Hfe,nullOrUndefined:Fyt,number:AG,numericString:qSr,object:NG,observable:aOe,oddInteger:VSr,plainObject:Lyt,positiveNumber:HSr,primitive:GSr,promise:YSr,propertyKey:KSr,regExp:XSr,safeInteger:Ryt,set:IG,sharedArrayBuffer:ZSr,string:cA,symbol:Myt,truthy:QSr,tupleLike:e2r,typedArray:t2r,uint16Array:r2r,uint32Array:n2r,uint8Array:i2r,uint8ClampedArray:s2r,undefined:jyt,urlInstance:a2r,urlSearchParams:o2r,urlString:c2r,validDate:l2r,validLength:Byt,weakMap:u2r,weakRef:f2r,weakSet:_2r,whitespaceString:Uyt});function xyt(s){return o=>Ayt(o)&&Math.abs(o%2)===s}t(xyt,"isAbsoluteModule2");function rSr(s,...o){return zyt(Array.prototype.every,s,o)}t(rSr,"isAll");function Eyt(s,...o){return(MI(s)?s:[s]).some(d=>zyt(Array.prototype.some,d,o))}t(Eyt,"isAny");function MI(s,o){return Array.isArray(s)?Iy(o)?s.every(f=>o(f)):!0:!1}t(MI,"isArray");function nSr(s){return of(s)==="ArrayBuffer"}t(nSr,"isArrayBuffer");function iSr(s){return!Fyt(s)&&!Iy(s)&&Byt(s.length)}t(iSr,"isArrayLike");function sSr(s){return of(s)==="AsyncFunction"}t(sSr,"isAsyncFunction");function aSr(s){return Cyt(s)&&Iy(s.next)&&Iy(s.throw)}t(aSr,"isAsyncGenerator");function oSr(s){return of(s)==="AsyncGeneratorFunction"}t(oSr,"isAsyncGeneratorFunction");function Cyt(s){return Iy(s?.[Symbol.asyncIterator])}t(Cyt,"isAsyncIterable");function cSr(s){return typeof s=="bigint"}t(cSr,"isBigint");function lSr(s){return of(s)==="BigInt64Array"}t(lSr,"isBigInt64Array");function uSr(s){return of(s)==="BigUint64Array"}t(uSr,"isBigUint64Array");function fSr(s){return of(s)==="Blob"}t(fSr,"isBlob");function _Sr(s){return s===!0||s===!1}t(_Sr,"isBoolean");function pSr(s){return Iy(s)&&!Object.hasOwn(s,"prototype")}t(pSr,"isBoundFunction");function kyt(s){return s?.constructor?.isBuffer?.(s)??!1}t(kyt,"isBuffer");function dSr(s){return Iy(s)&&s.toString().startsWith("class ")}t(dSr,"isClass");function mSr(s){return of(s)==="DataView"}t(mSr,"isDataView");function wyt(s){return of(s)==="Date"}t(wyt,"isDate");function hSr(s,o){return s==null?!1:Object.getPrototypeOf(s)===o.prototype}t(hSr,"isDirectInstanceOf");function gSr(s){return MI(s)&&s.length===0}t(gSr,"isEmptyArray");function ySr(s){return PG(s)&&s.size===0}t(ySr,"isEmptyMap");function vSr(s){return NG(s)&&!PG(s)&&!IG(s)&&Object.keys(s).length===0}t(vSr,"isEmptyObject");function bSr(s){return IG(s)&&s.size===0}t(bSr,"isEmptySet");function Dyt(s){return cA(s)&&s.length===0}t(Dyt,"isEmptyString");function sOe(s){return Dyt(s)||Uyt(s)}t(sOe,"isEmptyStringOrWhitespace");function SSr(s,o){return Object.values(o).includes(s)}t(SSr,"isEnumCase");function TSr(s){return of(s)==="Error"}t(TSr,"isError");function xSr(s){return xyt(0)(s)}t(xSr,"isEvenInteger");function ESr(s){return!s}t(ESr,"isFalsy");function CSr(s){return of(s)==="Float32Array"}t(CSr,"isFloat32Array");function kSr(s){return of(s)==="Float64Array"}t(kSr,"isFloat64Array");function wSr(s){return of(s)==="FormData"}t(wSr,"isFormData");function Iy(s){return typeof s=="function"}t(Iy,"isFunction");function DSr(s){return Nyt(s)&&Iy(s?.next)&&Iy(s?.throw)}t(DSr,"isGenerator");function PSr(s){return of(s)==="GeneratorFunction"}t(PSr,"isGeneratorFunction");var ASr=1,NSr=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Pyt(s){return NG(s)&&s.nodeType===ASr&&cA(s.nodeName)&&!Lyt(s)&&NSr.every(o=>o in s)}t(Pyt,"isHtmlElement");function ISr(s){return s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY}t(ISr,"isInfinite");function OSr(s,o){if(AG(o))return s>=Math.min(0,o)&&s<=Math.max(o,0);if(MI(o)&&o.length===2)return s>=Math.min(...o)&&s<=Math.max(...o);throw new TypeError(`Invalid range: ${JSON.stringify(o)}`)}t(OSr,"isInRange");function FSr(s){return of(s)==="Int16Array"}t(FSr,"isInt16Array");function LSr(s){return of(s)==="Int32Array"}t(LSr,"isInt32Array");function RSr(s){return of(s)==="Int8Array"}t(RSr,"isInt8Array");function Ayt(s){return Number.isInteger(s)}t(Ayt,"isInteger");function Nyt(s){return Iy(s?.[Symbol.iterator])}t(Nyt,"isIterable");function PG(s){return of(s)==="Map"}t(PG,"isMap");function Iyt(s){return Number.isNaN(s)}t(Iyt,"isNan");function Oyt(s){return of(s)==="Promise"}t(Oyt,"isNativePromise");function MSr(s){return AG(s)&&s<0}t(MSr,"isNegativeNumber");function jSr(s){return NG(s)&&Iy(s.pipe)&&!aOe(s)}t(jSr,"isNodeStream");function BSr(s){return MI(s)&&s.length>0}t(BSr,"isNonEmptyArray");function USr(s){return PG(s)&&s.size>0}t(USr,"isNonEmptyMap");function zSr(s){return NG(s)&&!PG(s)&&!IG(s)&&Object.keys(s).length>0}t(zSr,"isNonEmptyObject");function $Sr(s){return IG(s)&&s.size>0}t($Sr,"isNonEmptySet");function JSr(s){return cA(s)&&s.length>0}t(JSr,"isNonEmptyString");function WSr(s){return cA(s)&&!sOe(s)}t(WSr,"isNonEmptyStringAndNotWhitespace");function Hfe(s){return s===null}t(Hfe,"isNull");function Fyt(s){return Hfe(s)||jyt(s)}t(Fyt,"isNullOrUndefined");function AG(s){return typeof s=="number"&&!Number.isNaN(s)}t(AG,"isNumber");function qSr(s){return cA(s)&&!sOe(s)&&!Number.isNaN(Number(s))}t(qSr,"isNumericString");function NG(s){return!Hfe(s)&&(typeof s=="object"||Iy(s))}t(NG,"isObject");function aOe(s){return s?Symbol.observable!==void 0&&s===s[Symbol.observable]?.()||s===s["@@observable"]?.():!1}t(aOe,"isObservable");function VSr(s){return xyt(1)(s)}t(VSr,"isOddInteger");function Lyt(s){if(typeof s!="object"||s===null)return!1;let o=Object.getPrototypeOf(s);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)}t(Lyt,"isPlainObject");function HSr(s){return AG(s)&&s>0}t(HSr,"isPositiveNumber");function GSr(s){return Hfe(s)||Qbr(typeof s)}t(GSr,"isPrimitive");function YSr(s){return Oyt(s)||eSr(s)}t(YSr,"isPromise");function KSr(s){return Eyt([cA,AG,Myt],s)}t(KSr,"isPropertyKey");function XSr(s){return of(s)==="RegExp"}t(XSr,"isRegExp");function Ryt(s){return Number.isSafeInteger(s)}t(Ryt,"isSafeInteger");function IG(s){return of(s)==="Set"}t(IG,"isSet");function ZSr(s){return of(s)==="SharedArrayBuffer"}t(ZSr,"isSharedArrayBuffer");function cA(s){return typeof s=="string"}t(cA,"isString");function Myt(s){return typeof s=="symbol"}t(Myt,"isSymbol");function QSr(s){return!!s}t(QSr,"isTruthy");function e2r(s,o){return MI(o)&&MI(s)&&o.length===s.length?o.every((f,d)=>f(s[d])):!1}t(e2r,"isTupleLike");function t2r(s){return Xbr(of(s))}t(t2r,"isTypedArray");function r2r(s){return of(s)==="Uint16Array"}t(r2r,"isUint16Array");function n2r(s){return of(s)==="Uint32Array"}t(n2r,"isUint32Array");function i2r(s){return of(s)==="Uint8Array"}t(i2r,"isUint8Array");function s2r(s){return of(s)==="Uint8ClampedArray"}t(s2r,"isUint8ClampedArray");function jyt(s){return s===void 0}t(jyt,"isUndefined");function a2r(s){return of(s)==="URL"}t(a2r,"isUrlInstance");function o2r(s){return of(s)==="URLSearchParams"}t(o2r,"isUrlSearchParams");function c2r(s){if(!cA(s))return!1;try{return new URL(s),!0}catch{return!1}}t(c2r,"isUrlString");function l2r(s){return wyt(s)&&!Iyt(Number(s))}t(l2r,"isValidDate");function Byt(s){return Ryt(s)&&s>=0}t(Byt,"isValidLength");function u2r(s){return of(s)==="WeakMap"}t(u2r,"isWeakMap");function f2r(s){return of(s)==="WeakRef"}t(f2r,"isWeakRef");function _2r(s){return of(s)==="WeakSet"}t(_2r,"isWeakSet");function Uyt(s){return cA(s)&&/^\s+$/.test(s)}t(Uyt,"isWhitespaceString");function zyt(s,o,f){if(!Iy(o))throw new TypeError(`Invalid predicate: ${JSON.stringify(o)}`);if(f.length===0)throw new TypeError("Invalid number of values");return s.call(f,o)}t(zyt,"predicateOnArray");var rjr=new Intl.ListFormat("en",{style:"long",type:"conjunction"}),njr=new Intl.ListFormat("en",{style:"long",type:"disjunction"});var p2r={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};function d2r(s){return Object.keys(s)}t(d2r,"keysOf");var ijr=d2r(p2r);var Nj=tSr;import{inspect as oOe}from"util";var m2r=Object.defineProperty,h2r=t((s,o)=>{for(var f in o)m2r(s,f,{get:o[f],enumerable:!0})},"__export"),g2r={};h2r(g2r,{htmlEscape:t(()=>jI,"htmlEscape"),tokenizeArray:t(()=>wT,"tokenizeArray"),tokenizeObject:t(()=>y7,"tokenizeObject"),tokenizePrototype:t(()=>Yfe,"tokenizePrototype"),wordWrap:t(()=>OG,"wordWrap")});var Jyt=Object.prototype,Wyt=Array.prototype,$yt=Reflect.ownKeys(Jyt),y2r=Reflect.ownKeys(Wyt);function y7(s,o,f){if(o.context.objectsSeen=o.context.objectsSeen??new Set,o.context.depth=o.context.depth??0,o.context.objectsSeen.has(s)){o.collect({type:"object-circular-ref"});return}if(o.context.depth>=o.config.depth){o.collect({type:"object-max-depth-ref"});return}let d=f.showHidden,y=f.constructorName??Object.getPrototypeOf(s)?.constructor.name??null;if(f.collapse.includes(y)){o.collect({type:"collapse",name:y,token:{type:"object-start",constructorName:y}});return}let x=Reflect.ownKeys(s),A=f.eagerGetters??[];o.context.depth++,o.context.objectsSeen.add(s);let F=[];if(f.membersToIgnore){let W=new Set([...x]);f.membersToIgnore.forEach(G=>W.delete(G)),F=Array.from(W)}else F=x;o.collect({type:"object-start",constructorName:y});for(let W of F){let G=Object.getOwnPropertyDescriptor(s,W);if(!G||!G.enumerable&&!d)continue;let be=typeof W=="symbol",de=!!G.set||!!G.writable;if(o.collect({type:"object-key",isSymbol:be,isWritable:de,value:String(W)}),"get"in G&&!A.includes(W)){o.collect({type:"object-value-getter"});continue}o.collect({type:"object-value-start"}),o.parse(s[W]),o.collect({type:"object-value-end"})}f.inspectObjectPrototype===!0?Yfe(s,o,{membersToIgnore:$yt}):f.inspectObjectPrototype==="unless-plain-object"&&!Nj.plainObject(s)&&Yfe(s,o,{membersToIgnore:$yt,prototypeToIgnore:Jyt}),o.collect({type:"object-end"}),o.context.depth--,o.context.objectsSeen.delete(s)}t(y7,"tokenizeObject");function Yfe(s,o,f){let d=[];for(let x=Object.getPrototypeOf(s);x&&(!f.prototypeToIgnore||x!==f.prototypeToIgnore);x=Object.getPrototypeOf(x)){let A=Reflect.ownKeys(x);if(f.membersToIgnore){let F=new Set([...A]);f.membersToIgnore.forEach(W=>F.delete(W)),A=Array.from(F)}d.push({proto:x,keys:A})}if(!d.length)return;let y=f.eagerGetters??[];o.collect({type:"prototype-start"});for(let x of d)for(let A of x.keys){if(A==="constructor")continue;let F=Object.getOwnPropertyDescriptor(x.proto,A);if(!F)continue;let W=typeof A=="symbol",G=!!F.set||!!F.writable;if(o.collect({type:"object-key",isSymbol:W,isWritable:G,value:String(A)}),"get"in F&&!y.includes(A)){o.collect({type:"object-value-getter"});continue}o.collect({type:"object-value-start"}),o.parse(s[A]),o.collect({type:"object-value-end"})}o.collect({type:"prototype-end"})}t(Yfe,"tokenizePrototype");function wT(s,o,f){if(o.context.arraysSeen=o.context.arraysSeen??new Set,o.context.depth=o.context.depth??0,o.context.arraysSeen.has(s)){o.collect({type:"array-circular-ref"});return}if(o.context.depth>=f.depth){o.collect({type:"array-max-depth-ref"});return}let d=f.maxArrayLength,y=s.length,x=f.name||s.constructor.name;if(f.collapse.includes(x)){o.collect({type:"collapse",name:x,token:{type:"array-start",name:x,size:y}});return}o.context.depth++,o.context.arraysSeen.add(s),o.collect({type:"array-start",name:x,size:y});for(let A=0;A<y;A++){if(A>=d){o.collect({type:"array-max-length-ref",limit:d,size:y});break}let F=s[A];Object.hasOwn(s,A)?(o.collect({type:"array-value-start",index:A}),o.parse(F),o.collect({type:"array-value-end",index:A})):o.collect({type:"array-value-hole",index:A})}f.inspectArrayPrototype&&Yfe(s,o,{membersToIgnore:y2r,prototypeToIgnore:Wyt}),o.collect({type:"array-end",size:y}),o.context.depth--,o.context.arraysSeen.delete(s)}t(wT,"tokenizeArray");function jI(s){return s.replace(/&/g,"&").replace(/\\"/g,"\"").replace(/</g,"<").replace(/>/g,">")}t(jI,"htmlEscape");function OG(s,o){let f=o.width,d=o.indent,y=`${o.newLine}${d}`,x=".{1,"+f+"}";x+="([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)";let A=new RegExp(x,"g");return(s.match(A)||[]).map(function(G){return G.slice(-1)===`
|
|
676
|
+
`&&(G=G.slice(0,G.length-1)),o.escape?o.escape(G):DG(G)}).join(y)}t(iOe,"wordWrap");function yyt(s){return s.replace(Kbr,"")}t(yyt,"stripAnsi");var w0=wG.ansi();var byt=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Xbr(s){return byt.includes(s)}t(Xbr,"isTypedArrayName");var Syt=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...byt];function Zbr(s){return Syt.includes(s)}t(Zbr,"isObjectTypeName");var Tyt=["null","undefined","string","number","bigint","boolean","symbol"];function Qbr(s){return Tyt.includes(s)}t(Qbr,"isPrimitiveTypeName");var rjr=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...Syt,...Tyt],of=t(s=>{let o=Object.prototype.toString.call(s).slice(8,-1);if(/HTML\w+Element/.test(o)&&Pyt(s))return"HTMLElement";if(Zbr(o))return o},"getObjectType");function vyt(s){if(s===null)return"null";switch(typeof s){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(s)?"NaN":"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(aOe(s))return"Observable";if(MI(s))return"Array";if(kyt(s))return"Buffer";let o=of(s);if(o)return o;if(s instanceof String||s instanceof Boolean||s instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}t(vyt,"detect");function eSr(s){return Iy(s?.then)&&Iy(s?.catch)}t(eSr,"hasPromiseApi");var tSr=Object.assign(vyt,{all:rSr,any:Eyt,array:MI,arrayBuffer:nSr,arrayLike:iSr,asyncFunction:sSr,asyncGenerator:aSr,asyncGeneratorFunction:oSr,asyncIterable:Cyt,bigint:cSr,bigInt64Array:lSr,bigUint64Array:uSr,blob:fSr,boolean:_Sr,boundFunction:pSr,buffer:kyt,class:dSr,dataView:mSr,date:wyt,detect:vyt,directInstanceOf:hSr,emptyArray:gSr,emptyMap:ySr,emptyObject:vSr,emptySet:bSr,emptyString:Dyt,emptyStringOrWhitespace:sOe,enumCase:SSr,error:TSr,evenInteger:xSr,falsy:ESr,float32Array:CSr,float64Array:kSr,formData:wSr,function:Iy,generator:DSr,generatorFunction:PSr,htmlElement:Pyt,infinite:ISr,inRange:OSr,int16Array:FSr,int32Array:LSr,int8Array:RSr,integer:Ayt,iterable:Nyt,map:PG,nan:Iyt,nativePromise:Oyt,negativeNumber:MSr,nodeStream:jSr,nonEmptyArray:BSr,nonEmptyMap:USr,nonEmptyObject:zSr,nonEmptySet:$Sr,nonEmptyString:JSr,nonEmptyStringAndNotWhitespace:WSr,null:Hfe,nullOrUndefined:Fyt,number:AG,numericString:qSr,object:NG,observable:aOe,oddInteger:VSr,plainObject:Lyt,positiveNumber:HSr,primitive:GSr,promise:YSr,propertyKey:KSr,regExp:XSr,safeInteger:Ryt,set:IG,sharedArrayBuffer:ZSr,string:cA,symbol:Myt,truthy:QSr,tupleLike:e2r,typedArray:t2r,uint16Array:r2r,uint32Array:n2r,uint8Array:i2r,uint8ClampedArray:s2r,undefined:jyt,urlInstance:a2r,urlSearchParams:o2r,urlString:c2r,validDate:l2r,validLength:Byt,weakMap:u2r,weakRef:f2r,weakSet:_2r,whitespaceString:Uyt});function xyt(s){return o=>Ayt(o)&&Math.abs(o%2)===s}t(xyt,"isAbsoluteModule2");function rSr(s,...o){return zyt(Array.prototype.every,s,o)}t(rSr,"isAll");function Eyt(s,...o){return(MI(s)?s:[s]).some(d=>zyt(Array.prototype.some,d,o))}t(Eyt,"isAny");function MI(s,o){return Array.isArray(s)?Iy(o)?s.every(f=>o(f)):!0:!1}t(MI,"isArray");function nSr(s){return of(s)==="ArrayBuffer"}t(nSr,"isArrayBuffer");function iSr(s){return!Fyt(s)&&!Iy(s)&&Byt(s.length)}t(iSr,"isArrayLike");function sSr(s){return of(s)==="AsyncFunction"}t(sSr,"isAsyncFunction");function aSr(s){return Cyt(s)&&Iy(s.next)&&Iy(s.throw)}t(aSr,"isAsyncGenerator");function oSr(s){return of(s)==="AsyncGeneratorFunction"}t(oSr,"isAsyncGeneratorFunction");function Cyt(s){return Iy(s?.[Symbol.asyncIterator])}t(Cyt,"isAsyncIterable");function cSr(s){return typeof s=="bigint"}t(cSr,"isBigint");function lSr(s){return of(s)==="BigInt64Array"}t(lSr,"isBigInt64Array");function uSr(s){return of(s)==="BigUint64Array"}t(uSr,"isBigUint64Array");function fSr(s){return of(s)==="Blob"}t(fSr,"isBlob");function _Sr(s){return s===!0||s===!1}t(_Sr,"isBoolean");function pSr(s){return Iy(s)&&!Object.hasOwn(s,"prototype")}t(pSr,"isBoundFunction");function kyt(s){return s?.constructor?.isBuffer?.(s)??!1}t(kyt,"isBuffer");function dSr(s){return Iy(s)&&s.toString().startsWith("class ")}t(dSr,"isClass");function mSr(s){return of(s)==="DataView"}t(mSr,"isDataView");function wyt(s){return of(s)==="Date"}t(wyt,"isDate");function hSr(s,o){return s==null?!1:Object.getPrototypeOf(s)===o.prototype}t(hSr,"isDirectInstanceOf");function gSr(s){return MI(s)&&s.length===0}t(gSr,"isEmptyArray");function ySr(s){return PG(s)&&s.size===0}t(ySr,"isEmptyMap");function vSr(s){return NG(s)&&!PG(s)&&!IG(s)&&Object.keys(s).length===0}t(vSr,"isEmptyObject");function bSr(s){return IG(s)&&s.size===0}t(bSr,"isEmptySet");function Dyt(s){return cA(s)&&s.length===0}t(Dyt,"isEmptyString");function sOe(s){return Dyt(s)||Uyt(s)}t(sOe,"isEmptyStringOrWhitespace");function SSr(s,o){return Object.values(o).includes(s)}t(SSr,"isEnumCase");function TSr(s){return of(s)==="Error"}t(TSr,"isError");function xSr(s){return xyt(0)(s)}t(xSr,"isEvenInteger");function ESr(s){return!s}t(ESr,"isFalsy");function CSr(s){return of(s)==="Float32Array"}t(CSr,"isFloat32Array");function kSr(s){return of(s)==="Float64Array"}t(kSr,"isFloat64Array");function wSr(s){return of(s)==="FormData"}t(wSr,"isFormData");function Iy(s){return typeof s=="function"}t(Iy,"isFunction");function DSr(s){return Nyt(s)&&Iy(s?.next)&&Iy(s?.throw)}t(DSr,"isGenerator");function PSr(s){return of(s)==="GeneratorFunction"}t(PSr,"isGeneratorFunction");var ASr=1,NSr=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Pyt(s){return NG(s)&&s.nodeType===ASr&&cA(s.nodeName)&&!Lyt(s)&&NSr.every(o=>o in s)}t(Pyt,"isHtmlElement");function ISr(s){return s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY}t(ISr,"isInfinite");function OSr(s,o){if(AG(o))return s>=Math.min(0,o)&&s<=Math.max(o,0);if(MI(o)&&o.length===2)return s>=Math.min(...o)&&s<=Math.max(...o);throw new TypeError(`Invalid range: ${JSON.stringify(o)}`)}t(OSr,"isInRange");function FSr(s){return of(s)==="Int16Array"}t(FSr,"isInt16Array");function LSr(s){return of(s)==="Int32Array"}t(LSr,"isInt32Array");function RSr(s){return of(s)==="Int8Array"}t(RSr,"isInt8Array");function Ayt(s){return Number.isInteger(s)}t(Ayt,"isInteger");function Nyt(s){return Iy(s?.[Symbol.iterator])}t(Nyt,"isIterable");function PG(s){return of(s)==="Map"}t(PG,"isMap");function Iyt(s){return Number.isNaN(s)}t(Iyt,"isNan");function Oyt(s){return of(s)==="Promise"}t(Oyt,"isNativePromise");function MSr(s){return AG(s)&&s<0}t(MSr,"isNegativeNumber");function jSr(s){return NG(s)&&Iy(s.pipe)&&!aOe(s)}t(jSr,"isNodeStream");function BSr(s){return MI(s)&&s.length>0}t(BSr,"isNonEmptyArray");function USr(s){return PG(s)&&s.size>0}t(USr,"isNonEmptyMap");function zSr(s){return NG(s)&&!PG(s)&&!IG(s)&&Object.keys(s).length>0}t(zSr,"isNonEmptyObject");function $Sr(s){return IG(s)&&s.size>0}t($Sr,"isNonEmptySet");function JSr(s){return cA(s)&&s.length>0}t(JSr,"isNonEmptyString");function WSr(s){return cA(s)&&!sOe(s)}t(WSr,"isNonEmptyStringAndNotWhitespace");function Hfe(s){return s===null}t(Hfe,"isNull");function Fyt(s){return Hfe(s)||jyt(s)}t(Fyt,"isNullOrUndefined");function AG(s){return typeof s=="number"&&!Number.isNaN(s)}t(AG,"isNumber");function qSr(s){return cA(s)&&!sOe(s)&&!Number.isNaN(Number(s))}t(qSr,"isNumericString");function NG(s){return!Hfe(s)&&(typeof s=="object"||Iy(s))}t(NG,"isObject");function aOe(s){return s?Symbol.observable!==void 0&&s===s[Symbol.observable]?.()||s===s["@@observable"]?.():!1}t(aOe,"isObservable");function VSr(s){return xyt(1)(s)}t(VSr,"isOddInteger");function Lyt(s){if(typeof s!="object"||s===null)return!1;let o=Object.getPrototypeOf(s);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)}t(Lyt,"isPlainObject");function HSr(s){return AG(s)&&s>0}t(HSr,"isPositiveNumber");function GSr(s){return Hfe(s)||Qbr(typeof s)}t(GSr,"isPrimitive");function YSr(s){return Oyt(s)||eSr(s)}t(YSr,"isPromise");function KSr(s){return Eyt([cA,AG,Myt],s)}t(KSr,"isPropertyKey");function XSr(s){return of(s)==="RegExp"}t(XSr,"isRegExp");function Ryt(s){return Number.isSafeInteger(s)}t(Ryt,"isSafeInteger");function IG(s){return of(s)==="Set"}t(IG,"isSet");function ZSr(s){return of(s)==="SharedArrayBuffer"}t(ZSr,"isSharedArrayBuffer");function cA(s){return typeof s=="string"}t(cA,"isString");function Myt(s){return typeof s=="symbol"}t(Myt,"isSymbol");function QSr(s){return!!s}t(QSr,"isTruthy");function e2r(s,o){return MI(o)&&MI(s)&&o.length===s.length?o.every((f,d)=>f(s[d])):!1}t(e2r,"isTupleLike");function t2r(s){return Xbr(of(s))}t(t2r,"isTypedArray");function r2r(s){return of(s)==="Uint16Array"}t(r2r,"isUint16Array");function n2r(s){return of(s)==="Uint32Array"}t(n2r,"isUint32Array");function i2r(s){return of(s)==="Uint8Array"}t(i2r,"isUint8Array");function s2r(s){return of(s)==="Uint8ClampedArray"}t(s2r,"isUint8ClampedArray");function jyt(s){return s===void 0}t(jyt,"isUndefined");function a2r(s){return of(s)==="URL"}t(a2r,"isUrlInstance");function o2r(s){return of(s)==="URLSearchParams"}t(o2r,"isUrlSearchParams");function c2r(s){if(!cA(s))return!1;try{return new URL(s),!0}catch{return!1}}t(c2r,"isUrlString");function l2r(s){return wyt(s)&&!Iyt(Number(s))}t(l2r,"isValidDate");function Byt(s){return Ryt(s)&&s>=0}t(Byt,"isValidLength");function u2r(s){return of(s)==="WeakMap"}t(u2r,"isWeakMap");function f2r(s){return of(s)==="WeakRef"}t(f2r,"isWeakRef");function _2r(s){return of(s)==="WeakSet"}t(_2r,"isWeakSet");function Uyt(s){return cA(s)&&/^\s+$/.test(s)}t(Uyt,"isWhitespaceString");function zyt(s,o,f){if(!Iy(o))throw new TypeError(`Invalid predicate: ${JSON.stringify(o)}`);if(f.length===0)throw new TypeError("Invalid number of values");return s.call(f,o)}t(zyt,"predicateOnArray");var njr=new Intl.ListFormat("en",{style:"long",type:"conjunction"}),ijr=new Intl.ListFormat("en",{style:"long",type:"disjunction"});var p2r={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};function d2r(s){return Object.keys(s)}t(d2r,"keysOf");var sjr=d2r(p2r);var Nj=tSr;import{inspect as oOe}from"util";var m2r=Object.defineProperty,h2r=t((s,o)=>{for(var f in o)m2r(s,f,{get:o[f],enumerable:!0})},"__export"),g2r={};h2r(g2r,{htmlEscape:t(()=>jI,"htmlEscape"),tokenizeArray:t(()=>wT,"tokenizeArray"),tokenizeObject:t(()=>y7,"tokenizeObject"),tokenizePrototype:t(()=>Yfe,"tokenizePrototype"),wordWrap:t(()=>OG,"wordWrap")});var Jyt=Object.prototype,Wyt=Array.prototype,$yt=Reflect.ownKeys(Jyt),y2r=Reflect.ownKeys(Wyt);function y7(s,o,f){if(o.context.objectsSeen=o.context.objectsSeen??new Set,o.context.depth=o.context.depth??0,o.context.objectsSeen.has(s)){o.collect({type:"object-circular-ref"});return}if(o.context.depth>=o.config.depth){o.collect({type:"object-max-depth-ref"});return}let d=f.showHidden,y=f.constructorName??Object.getPrototypeOf(s)?.constructor.name??null;if(f.collapse.includes(y)){o.collect({type:"collapse",name:y,token:{type:"object-start",constructorName:y}});return}let x=Reflect.ownKeys(s),A=f.eagerGetters??[];o.context.depth++,o.context.objectsSeen.add(s);let F=[];if(f.membersToIgnore){let W=new Set([...x]);f.membersToIgnore.forEach(G=>W.delete(G)),F=Array.from(W)}else F=x;o.collect({type:"object-start",constructorName:y});for(let W of F){let G=Object.getOwnPropertyDescriptor(s,W);if(!G||!G.enumerable&&!d)continue;let be=typeof W=="symbol",de=!!G.set||!!G.writable;if(o.collect({type:"object-key",isSymbol:be,isWritable:de,value:String(W)}),"get"in G&&!A.includes(W)){o.collect({type:"object-value-getter"});continue}o.collect({type:"object-value-start"}),o.parse(s[W]),o.collect({type:"object-value-end"})}f.inspectObjectPrototype===!0?Yfe(s,o,{membersToIgnore:$yt}):f.inspectObjectPrototype==="unless-plain-object"&&!Nj.plainObject(s)&&Yfe(s,o,{membersToIgnore:$yt,prototypeToIgnore:Jyt}),o.collect({type:"object-end"}),o.context.depth--,o.context.objectsSeen.delete(s)}t(y7,"tokenizeObject");function Yfe(s,o,f){let d=[];for(let x=Object.getPrototypeOf(s);x&&(!f.prototypeToIgnore||x!==f.prototypeToIgnore);x=Object.getPrototypeOf(x)){let A=Reflect.ownKeys(x);if(f.membersToIgnore){let F=new Set([...A]);f.membersToIgnore.forEach(W=>F.delete(W)),A=Array.from(F)}d.push({proto:x,keys:A})}if(!d.length)return;let y=f.eagerGetters??[];o.collect({type:"prototype-start"});for(let x of d)for(let A of x.keys){if(A==="constructor")continue;let F=Object.getOwnPropertyDescriptor(x.proto,A);if(!F)continue;let W=typeof A=="symbol",G=!!F.set||!!F.writable;if(o.collect({type:"object-key",isSymbol:W,isWritable:G,value:String(A)}),"get"in F&&!y.includes(A)){o.collect({type:"object-value-getter"});continue}o.collect({type:"object-value-start"}),o.parse(s[A]),o.collect({type:"object-value-end"})}o.collect({type:"prototype-end"})}t(Yfe,"tokenizePrototype");function wT(s,o,f){if(o.context.arraysSeen=o.context.arraysSeen??new Set,o.context.depth=o.context.depth??0,o.context.arraysSeen.has(s)){o.collect({type:"array-circular-ref"});return}if(o.context.depth>=f.depth){o.collect({type:"array-max-depth-ref"});return}let d=f.maxArrayLength,y=s.length,x=f.name||s.constructor.name;if(f.collapse.includes(x)){o.collect({type:"collapse",name:x,token:{type:"array-start",name:x,size:y}});return}o.context.depth++,o.context.arraysSeen.add(s),o.collect({type:"array-start",name:x,size:y});for(let A=0;A<y;A++){if(A>=d){o.collect({type:"array-max-length-ref",limit:d,size:y});break}let F=s[A];Object.hasOwn(s,A)?(o.collect({type:"array-value-start",index:A}),o.parse(F),o.collect({type:"array-value-end",index:A})):o.collect({type:"array-value-hole",index:A})}f.inspectArrayPrototype&&Yfe(s,o,{membersToIgnore:y2r,prototypeToIgnore:Wyt}),o.collect({type:"array-end",size:y}),o.context.depth--,o.context.arraysSeen.delete(s)}t(wT,"tokenizeArray");function jI(s){return s.replace(/&/g,"&").replace(/\\"/g,"\"").replace(/</g,"<").replace(/>/g,">")}t(jI,"htmlEscape");function OG(s,o){let f=o.width,d=o.indent,y=`${o.newLine}${d}`,x=".{1,"+f+"}";x+="([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)";let A=new RegExp(x,"g");return(s.match(A)||[]).map(function(G){return G.slice(-1)===`
|
|
677
677
|
`&&(G=G.slice(0,G.length-1)),o.escape?o.escape(G):jI(G)}).join(y)}t(OG,"wordWrap");var Gfe={Object:t((s,o)=>{y7(s,o,o.config)},"Object"),Array:t((s,o)=>{wT(s,o,o.config)},"Array"),Map:t((s,o)=>{if(o.context.mapsSeen=o.context.mapsSeen??new Set,o.context.depth=o.context.depth??0,o.context.mapsSeen.has(s)){o.collect({type:"map-circular-ref"});return}if(o.context.depth>=o.config.depth){o.collect({type:"map-max-depth-ref"});return}o.context.depth++,o.context.mapsSeen.add(s);let f=0,d=s.size,y=o.config.maxArrayLength;o.collect({type:"map-start",size:d});for(let[x,A]of s){if(f>=y){o.collect({type:"map-max-length-ref",limit:y,size:d});break}o.collect({type:"map-row-start",index:f}),o.collect({type:"map-key-start",index:f}),o.parse(x),o.collect({type:"map-key-end",index:f}),o.collect({type:"map-value-start",index:f}),o.parse(A),o.collect({type:"map-value-end",index:f}),o.collect({type:"map-row-end",index:f}),f++}o.collect({type:"map-end",size:d}),o.context.depth--,o.context.mapsSeen.delete(s)},"Map"),Set:t((s,o)=>{if(o.context.setsSeen=o.context.setsSeen??new Set,o.context.depth=o.context.depth??0,o.context.setsSeen.has(s)){o.collect({type:"set-circular-ref"});return}if(o.context.depth>=o.config.depth){o.collect({type:"set-max-depth-ref"});return}o.context.depth++,o.context.setsSeen.add(s);let f=0,d=s.size,y=o.config.maxArrayLength;o.collect({type:"set-start",size:d});for(let x of s){if(f>=y){o.collect({type:"set-max-length-ref",limit:y,size:d});break}o.collect({type:"set-value-start",index:f}),o.parse(x),o.collect({type:"set-value-end",index:f}),f++}o.collect({type:"set-end",size:d}),o.context.depth--,o.context.setsSeen.delete(s)},"Set"),Function:t((s,o)=>{let f=s.constructor.name;if(f==="GeneratorFunction")return Gfe.GeneratorFunction(s,o);if(f==="AsyncGeneratorFunction")return Gfe.AsyncGeneratorFunction(s,o);if(f==="AsyncFunction")return Gfe.AsyncFunction(s,o);let d=Nj.class(s);o.collect({type:"function",isClass:d,isAsync:!1,isGenerator:!1,name:s.name||"anonymous"}),o.config.inspectStaticMembers&&d&&(o.collect({type:"static-members-start"}),y7(s,o,{showHidden:!0,depth:o.config.depth,inspectObjectPrototype:!1,collapse:o.config.collapse,membersToIgnore:["prototype","name","length"]}),o.collect({type:"static-members-end"}))},"Function"),string:t((s,o)=>{let f=oOe(s,{maxStringLength:o.config.maxStringLength,customInspect:!1});o.collect({type:"string",value:f})},"string"),URL:t((s,o)=>{y7({hash:s.hash,host:s.host,hostname:s.hostname,href:s.href,origin:s.origin,password:s.password,pathname:s.pathname,port:s.port,protocol:s.protocol,search:s.search,searchParams:s.searchParams,username:s.username},o,{constructorName:"URL",...o.config})},"URL"),URLSearchParams:t((s,o)=>{y7(Object.fromEntries(s),o,{constructorName:"URLSearchParams",...o.config})},"URLSearchParams"),Error:t(function(s,o){y7(s,o,{eagerGetters:["message","stack"],...o.config,inspectObjectPrototype:o.config.inspectObjectPrototype===!0,showHidden:!0})},"Error"),FormData:t(function(s,o){y7(Object.fromEntries(s.entries()),o,{constructorName:"FormData",...o.config})},"FormData"),undefined:t((s,o)=>{o.collect({type:"undefined"})},"undefined"),null:t((s,o)=>{o.collect({type:"null"})},"null"),symbol:t((s,o)=>{o.collect({type:"symbol",value:String(s)})},"symbol"),number:t((s,o)=>{o.collect({type:"number",value:s})},"number"),boolean:t((s,o)=>{o.collect({type:"boolean",value:s})},"boolean"),bigint:t((s,o)=>{o.collect({type:"bigInt",value:`${s.toString()}n`})},"bigint"),Date:t((s,o)=>{o.collect({type:"date",value:s.toISOString()})},"Date"),RegExp:t((s,o)=>{o.collect({type:"regexp",value:String(s)})},"RegExp"),Buffer:t((s,o)=>{o.collect({type:"buffer",value:oOe(s)})},"Buffer"),WeakSet:t((s,o)=>{o.collect({type:"weak-set"})},"WeakSet"),WeakMap:t((s,o)=>{o.collect({type:"weak-map"})},"WeakMap"),WeakRef:t(function(s,o){o.collect({type:"weak-ref"})},"WeakRef"),Generator:t(function(s,o){o.collect({type:"generator",isAsync:!1})},"Generator"),AsyncGenerator:t(function(s,o){o.collect({type:"generator",isAsync:!0})},"AsyncGenerator"),GeneratorFunction:t(function(s,o){o.collect({type:"function",isGenerator:!0,isClass:!1,isAsync:!1,name:s.name||"anonymous"})},"GeneratorFunction"),AsyncGeneratorFunction:t(function(s,o){o.collect({type:"function",isGenerator:!0,isClass:!1,isAsync:!0,name:s.name||"anonymous"})},"AsyncGeneratorFunction"),AsyncFunction:t(function(s,o){o.collect({type:"function",isGenerator:!1,isClass:!1,isAsync:!0,name:s.name||"anonymous"})},"AsyncFunction"),Observable:t(function(s,o){o.collect({type:"observable"})},"Observable"),Blob:t(function(s,o){o.collect({type:"blob",size:s.size,contentType:s.type})},"Blob"),Promise:t(function(s,o){o.collect({type:"promise",isFulfilled:!oOe(s).includes("pending")})},"Promise"),NaN:t(function(s,o){o.collect({type:"number",value:Number.NaN})},"NaN"),Int8Array:t(function(s,o){wT(s,o,o.config)},"Int8Array"),Uint8Array:t(function(s,o){wT(s,o,o.config)},"Uint8Array"),Int16Array:t(function(s,o){wT(s,o,o.config)},"Int16Array"),Uint16Array:t(function(s,o){wT(s,o,o.config)},"Uint16Array"),Int32Array:t(function(s,o){wT(s,o,o.config)},"Int32Array"),Uint32Array:t(function(s,o){wT(s,o,o.config)},"Uint32Array"),Float32Array:t(function(s,o){wT(s,o,o.config)},"Float32Array"),Float64Array:t(function(s,o){wT(s,o,o.config)},"Float64Array"),BigInt64Array:t(function(s,o){wT(s,o,o.config)},"BigInt64Array"),BigUint64Array:t(function(s,o){wT(s,o,o.config)},"BigUint64Array")},Kfe=class{static{t(this,"Parser")}#e=[];config;context;constructor(s,o){this.context=o||{},this.config=Object.freeze({showHidden:!1,depth:5,inspectObjectPrototype:"unless-plain-object",inspectArrayPrototype:!1,inspectStaticMembers:!1,maxArrayLength:100,maxStringLength:1e3,collapse:[],...s})}#n(s,o){return s==="Object"&&o instanceof Error?"Error":s}collect(s){this.#e.push(s)}parse(s){let o=this.#n(Nj.detect(s),s),f=Gfe[o];f?f(s,this):this.collect({type:"unknown",jsType:o,value:s})}flush(){let s=this.#e;return this.#e=[],this.context={},s}};var BI={nightOwl:{pre:"background-color: #061626; color: #c792ea;",toggle:"color: #4f5357; background: none; border: none;",braces:"color: #ffd700;",brackets:"color: #ffd700;",number:"color: #f78c6c;",bigInt:"color: #f78c6c; font-weight: bold;",boolean:"color: #ff5874; font-style: italic;",string:"color: #ecc48d;",null:"color: #637777;",undefined:"color: #637777;",prototypeLabel:"color: #637777;",symbol:"color: #82aaff;",regex:"color: #ff5874;",date:"color: #7fdbca;",buffer:"color: #7fdbca;",functionLabel:"color: #89b4fa;",arrayLabel:"color: #82aaff;",objectLabel:"color: #82aaff;",mapLabel:"color: #82aaff;",setLabel:"color: #82aaff;",objectKey:"color: #c792ea;",objectKeyPrefix:"color: #637777; font-style: italic; font-weight: bold",classLabel:"color: #82aaff;",collapseLabel:"color: #7fdbca; font-style: italic;",getterLabel:"color: #7fdbca;",circularLabel:"color: #7fdbca;",weakSetLabel:"color: #7fdbca;",weakRefLabel:"color: #7fdbca;",weakMapLabel:"color: #7fdbca;",observableLabel:"color: #7fdbca;",promiseLabel:"color: #7fdbca;",generatorLabel:"color: #7fdbca;",blobLabel:"color: #7fdbca;",unknownLabel:"color: #7fdbca;"},minLight:{pre:"background-color: #fff; color: #212121;",toggle:"color: #989999; background: none; border: none;",braces:"color: #0431fa;",brackets:"color: #0431fa;",number:"color: #1976d2;",bigInt:"color: #1976d2; font-weight: bold;",boolean:"color: #1976d2; font-style: italic;",string:"color: #22863a;",null:"color: #9c9c9d;",undefined:"color: #9c9c9d;",prototypeLabel:"color: #9c9c9d;",symbol:"color: #d32f2f;",regex:"color: #1976d2;",date:"color: #7b3814;",buffer:"color: #7b3814;",functionLabel:"color: #6f42c1;",arrayLabel:"color: #d32f2f;",objectLabel:"color: #d32f2f;",mapLabel:"color: #d32f2f;",setLabel:"color: #d32f2f;",objectKey:"color: #212121;",objectKeyPrefix:"color: #9c9c9d; font-style: italic; font-weight: bold",classLabel:"color: #6f42c1;",collapseLabel:"color: #9c9c9d; font-style: italic;",getterLabel:"color: #7b3814;",circularLabel:"color: #7b3814;",weakSetLabel:"color: #7b3814;",weakRefLabel:"color: #7b3814;",weakMapLabel:"color: #7b3814;",observableLabel:"color: #7b3814;",promiseLabel:"color: #7b3814;",generatorLabel:"color: #7b3814;",blobLabel:"color: #7b3814;",unknownLabel:"color: #7b3814;"},catppuccin:{pre:"background-color: #1e1e2e; color: #94e2d5;",toggle:"color: #7c7c8c; background: none; border: none;",braces:"color: #f38ba8;",brackets:"color: #f38ba8;",number:"color: #fab387;",bigInt:"color: #fab387; font-weight: bold;",boolean:"color: #cba6f7; font-style: italic;",string:"color: #a6e3a1;",null:"color: #6c7086;",undefined:"color: #6c7086;",prototypeLabel:"color: #6c7086;",symbol:"color: #f9e2af;",regex:"color: #cba6f7;",date:"color: #94e2d5;",buffer:"color: #94e2d5;",functionLabel:"color: #cba6f7;",arrayLabel:"color: #f9e2af;",objectLabel:"color: #f9e2af;",mapLabel:"color: #f9e2af;",setLabel:"color: #f9e2af;",objectKey:"color: #89b4fa;",objectKeyPrefix:"color: #6c7086; font-style: italic; font-weight: bold",classLabel:"color: #cba6f7;",collapseLabel:"color: #6c7086; font-style: italic;",getterLabel:"color: #94e2d5;",circularLabel:"color: #94e2d5;",weakSetLabel:"color: #94e2d5;",weakRefLabel:"color: #94e2d5;",weakMapLabel:"color: #94e2d5;",observableLabel:"color: #94e2d5;",promiseLabel:"color: #94e2d5;",generatorLabel:"color: #94e2d5;",blobLabel:"color: #94e2d5;",unknownLabel:"color: #94e2d5;"},cssVariables:{pre:"background-color: var(--pre-bg-color); color: var(--pre-fg-color);",toggle:"color: var(--toggle-fg-color); background: none; border: none;",braces:"color: var(--braces-fg-color);",brackets:"color: var(--brackets-fg-color);",number:"color: var(--dt-number-fg-color);",bigInt:"color: var(--dt-bigint-fg-color); font-weight: bold;",boolean:"color: var(--dt-boolean-fg-color); font-style: italic;",string:"color: var(--dt-string-fg-color);",null:"color: var(--dt-null-fg-color);",undefined:"color: var(--dt-undefined-fg-color);",prototypeLabel:"color: var(--prototype-label-fg-color);",symbol:"color: var(--dt-symbol-fg-color);",regex:"color: var(--dt-regex-fg-color);",date:"color: var(--dt-date-fg-color);",buffer:"color: var(--dt-buffer-fg-color);",functionLabel:"color: var(--function-label-fg-color);",arrayLabel:"color: var(--array-label-fg-color);",objectLabel:"color: var(--object-label-fg-color);",mapLabel:"color: var(--map-label-fg-color);",setLabel:"color: var(--set-label-fg-color);",objectKey:"color: var(--object-key-fg-color);",objectKeyPrefix:"color: var(--object-key-prefix-fg-color); font-style: italic; font-weight: bold",classLabel:"color: var(--class-label-fg-color);",collapseLabel:"color: var(--collpase-label-fg-color); font-style: italic;",getterLabel:"color: var(--getter-label-fg-color);",circularLabel:"color: var(--circular-label-fg-color);",weakSetLabel:"color: var(--weakset-label-fg-color);",weakRefLabel:"color: var(--weakref-label-fg-color);",weakMapLabel:"color: var(--weakmap-label-fg-color);",observableLabel:"color: var(--observable-label-fg-color);",promiseLabel:"color: var(--promise-label-fg-color);",generatorLabel:"color: var(--generator-label-fg-color);",blobLabel:"color: var(--blob-label-fg-color);",unknownLabel:"color: var(--unknown-label-fg-color);"}},FG="▼";function Xfe(s){return`<span style="${s.styles.braces}">{</span>`}t(Xfe,"openingBrace");function Zfe(s){return`<span style="${s.styles.braces}">}</span>`}t(Zfe,"closingBrace");function Qfe(s){return`<span style="${s.styles.brackets}">[</span>`}t(Qfe,"openingBrackets");function e_e(s){return`<span style="${s.styles.brackets}">]</span>`}t(e_e,"closingBrackets");var v2r={collapse:t((s,o)=>{let f=s.token.type==="object-start"?o.styles.objectLabel:o.styles.arrayLabel,d=o.styles.collapseLabel;return`<span style="${f}">${s.name}</span> `+(s.token.type==="object-start"?Xfe(o):Qfe(o))+` <span style="${d}">collapsed</span> `+(s.token.type==="object-start"?Zfe(o):e_e(o))},"collapse"),"object-start":t((s,o)=>{o.indentation.increment();let f=o.styles.objectLabel,d=o.styles.toggle,y=o.context.isStaticMember&&o.context.staticDepth===0?" ":`${s.constructorName||"Object [null]"} `;return`<span class="dumper-group dumper-object-group"><span style="${f}">${y}</span>`+Xfe(o)+`<button class="dumper-toggle" style="${d}"><span>${FG}</span></button><samp hidden="true">`},"object-start"),"object-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+Zfe(o)+"</span>"),"object-end"),"object-key":t((s,o)=>{o.context.isStack=s.value==="stack";let f=o.styles.objectKey,d=`${o.newLine}${o.indentation.getSpaces()}`,y=s.value;s.isSymbol?y=`[${y}]`:/^[a-z$_][$\w]*$/i.test(y)||(y=`"${jI(y.replace(/"/g,'\\"'))}"`);let x="";return o.context.isStaticMember&&(o.context.staticDepth++,o.context.staticDepth===1&&(x=`<span class="dumper-object-prefix" style="${o.styles.objectKeyPrefix}">static </span>`)),d+x+`<span class="dumper-object-key" style="${f}">${y}</span>: `},"object-key"),"object-circular-ref":t((s,o)=>`<span style="${o.styles.circularLabel}">[*Circular]</span>`,"object-circular-ref"),"object-max-depth-ref":t((s,o)=>`<span style="${o.styles.objectLabel}">[Object]</span>`,"object-max-depth-ref"),"object-value-getter":t((s,o)=>`<span style="${o.styles.getterLabel}">[Getter]</span>`,"object-value-getter"),"object-value-start":t(()=>"","object-value-start"),"object-value-end":t((s,o)=>(o.context.isStaticMember&&o.context.staticDepth--,","),"object-value-end"),"array-start":t((s,o)=>{o.indentation.increment();let f=o.styles.toggle,d=o.styles.arrayLabel,y=`${s.name}:${s.size} `;return`<span class="dumper-group dumper-array-group"><span style="${d}">${y}</span>`+Qfe(o)+`<button class="dumper-toggle" style="${f}"><span>${FG}</span></button><samp hidden="true">`},"array-start"),"array-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+e_e(o)+"</span>"),"array-end"),"array-value-start":t((s,o)=>`${o.newLine}${o.indentation.getSpaces()}`,"array-value-start"),"array-value-hole":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.undefined;return f+`<span class="dumper-undefined" style="${d}">${jI("<hole>")},</span>`},"array-value-hole"),"array-value-end":t(()=>",","array-value-end"),"array-circular-ref":t((s,o)=>`<span style="${o.styles.circularLabel}">[*Circular]</span>`,"array-circular-ref"),"array-max-depth-ref":t((s,o)=>`<span style="${o.styles.arrayLabel}">[Array]</span>`,"array-max-depth-ref"),"array-max-length-ref":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.arrayLabel,y=s.size-s.limit;if(y<=0)return"";let x=y===1?"1 more item":`${y} more items`;return`${f}<span style="${d}">[...${x}]</span>`},"array-max-length-ref"),"prototype-start":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`;o.indentation.increment();let d=o.styles.prototypeLabel,y=o.styles.toggle;return f+`<span class="dumper-group dumper-prototype-group"><span style="${d}">[[Prototype]] </span>`+Xfe(o)+`<button class="dumper-toggle" style="${y}"><span>${FG}</span></button><samp hidden="true">`},"prototype-start"),"prototype-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+Zfe(o)+"</span>"),"prototype-end"),"map-start":t((s,o)=>{o.indentation.increment();let f=o.styles.toggle,d=o.styles.mapLabel,y=`Map:${s.size} `;return`<span class="dumper-group dumper-map-group"><span style="${d}">${y}</span>`+Xfe(o)+`<button class="dumper-toggle" style="${f}"><span>${FG}</span></button><samp hidden="true">`},"map-start"),"map-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+Zfe(o)+"</span>"),"map-end"),"map-row-start":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`;return o.indentation.increment(),f+Qfe(o)},"map-row-start"),"map-row-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+e_e(o)+","),"map-row-end"),"map-key-start":t((s,o)=>{let f=o.styles.objectKey;return`${o.newLine}${o.indentation.getSpaces()}`+`<span style="${f}">key</span>: `},"map-key-start"),"map-key-end":t(function(){return""},"map-key-end"),"map-value-start":t((s,o)=>{let f=o.styles.objectKey;return`${o.newLine}${o.indentation.getSpaces()}`+`<span style="${f}">value</span>: `},"map-value-start"),"map-value-end":t(function(){return""},"map-value-end"),"map-circular-ref":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.circularLabel;return`${f}<span style="${d}">[*Circular]</span>`},"map-circular-ref"),"map-max-depth-ref":t((s,o)=>`<span style="${o.styles.mapLabel}">[Map]</span>`,"map-max-depth-ref"),"map-max-length-ref":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.mapLabel,y=s.size-s.limit;if(y<=0)return"";let x=y===1?"1 more item":`${y} more items`;return`${f}<span style="${d}">[...${x}]</span>`},"map-max-length-ref"),"set-start":t((s,o)=>{o.indentation.increment();let f=o.styles.toggle,d=o.styles.setLabel,y=`Set:${s.size} `;return`<span class="dumper-group dumper-set-group"><span class="dumper-set-label" style="${d}">${y}</span>`+Qfe(o)+`<button class="dumper-toggle" style="${f}"><span>${FG}</span></button><samp hidden="true">`},"set-start"),"set-end":t((s,o)=>(o.indentation.decrement(),`${o.newLine}${o.indentation.getSpaces()}`+"</samp>"+e_e(o)+"</span>"),"set-end"),"set-value-start":t((s,o)=>`${o.newLine}${o.indentation.getSpaces()}`,"set-value-start"),"set-value-end":t(()=>",","set-value-end"),"set-circular-ref":t((s,o)=>`<span style="${o.styles.circularLabel}">[*Circular]</span>`,"set-circular-ref"),"set-max-depth-ref":t((s,o)=>`<span style="${o.styles.setLabel}">[Set]</span>`,"set-max-depth-ref"),"set-max-length-ref":t((s,o)=>{let f=`${o.newLine}${o.indentation.getSpaces()}`,d=o.styles.setLabel,y=s.size-s.limit;if(y<=0)return"";let x=y===1?"1 more item":`${y} more items`;return`${f}<span style="${d}">[...${x}]</span>`},"set-max-length-ref"),string:t((s,o)=>{let f=s.value,d=o.indentation.getSpaces();return o.context.isStack?f=s.value.split(`
|
|
678
678
|
`).map((x,A)=>{let F=`<span>${jI(x.trim())}</span>`;return A>0&&(F=`${d}${F}`),F}).join(`
|
|
679
679
|
`):f=OG(s.value,{newLine:o.newLine,indent:o.indentation.getSpaces(),width:70}),`<span class="dumper-string" style="${o.styles.string}">${f}</span>`},"string"),boolean:t((s,o)=>`<span class="dumper-boolean" style="${o.styles.boolean}">`+s.value+"</span>","boolean"),number:t((s,o)=>`<span class="dumper-number" style="${o.styles.number}">`+s.value+"</span>","number"),bigInt:t((s,o)=>`<span class="dumper-big-int" style="${o.styles.bigInt}">`+s.value+"</span>","bigInt"),undefined:t((s,o)=>`<span class="dumper-undefined" style="${o.styles.undefined}">undefined</span>`,"undefined"),null:t((s,o)=>`<span class="dumper-null" style="${o.styles.null}">null</span>`,"null"),symbol:t((s,o)=>`<span class="dumper-symbol" style="${o.styles.symbol}">`+s.value+"</span>","symbol"),function:t((s,o)=>{let f=s.isClass?"dumper-class":"dumper-function",d=s.isClass?o.styles.classLabel:o.styles.functionLabel,y=s.isAsync?"async ":"",x=s.isGenerator?"*":"",A=s.isClass?`[class ${s.name}]`:`[${y}${x}function ${s.name}]`;return`<span class="${f}" style="${d}">`+A+"</span>"},"function"),date:t(function(s,o){return`<span class="dumper-date" style="${o.styles.date}">`+s.value+"</span>"},"date"),buffer:t(function(s,o){return`<span class="dumper-buffer" style="${o.styles.buffer}">`+jI(s.value)+"</span>"},"buffer"),regexp:t(function(s,o){return`<span class="dumper-regex" style="${o.styles.regex}">`+s.value+"</span>"},"regexp"),unknown:t(function(s,o){return`<span class="dumper-value-unknown" style="${o.styles.unknownLabel}">`+String(s.value)+"</span>"},"unknown"),"weak-set":t(function(s,o){return`<span class="dumper-weak-set" style="${o.styles.weakSetLabel}">[WeakSet]</span>`},"weak-set"),"weak-ref":t(function(s,o){return`<span class="dumper-weak-ref" style="${o.styles.weakRefLabel}">[WeakRef]</span>`},"weak-ref"),"weak-map":t(function(s,o){return`<span class="dumper-weak-map" style="${o.styles.weakMapLabel}">[WeakMap]</span>`},"weak-map"),observable:t(function(s,o){return`<span class="dumper-observable" style="${o.styles.observableLabel}">[Observable]</span>`},"observable"),blob:t(function(s,o){let f=o.styles.objectLabel,d=`<span styles="${o.styles.braces}">{ `,y=`<span styles="${o.styles.braces}"> }</span></span>`,x=`<span styles="${o.styles.objectKey}">size: </span>`,A=`<span styles="${o.styles.number}">${s.size}</span>,`,F=`<span styles="${o.styles.objectKey}">type: </span>`,W=`<span styles="${o.styles.string}">${s.contentType}</span>`;return`<span class="dumper-blob" style="${f}">[Blob]`+d+`${x}${A} ${F}${W}`+y+"</span>"},"blob"),promise:t(function(s,o){let f=o.styles.promiseLabel,d=s.isFulfilled?"resolved":"pending";return`<span class="dumper-promise" style="${f}">[Promise${jI(`<${d}>`)}]</span>`},"promise"),generator:t(function(s,o){let f=o.styles.generatorLabel,d=s.isAsync?"[AsyncGenerator] {}":"[Generator] {}";return`<span class="dumper-generator" style="${f}">`+d+"</span>"},"generator"),"static-members-start":t(function(s,o){return o.context.isStaticMember=!0,o.context.staticDepth=0,""},"static-members-start"),"static-members-end":t(function(s,o){return o.context.isStaticMember=!1,o.context.staticDepth=0,""},"static-members-end")},b2r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",S2r=t((s=15)=>{let o="",f=new Uint8Array(s);if(globalThis.crypto)crypto.getRandomValues(f);else for(let d=0;d<s;d++)f[d]=Math.floor(Math.random()*256);for(let d=0;d<s;d++)o+=b2r[63&f[d]];return o},"nanoid"),T2r=class{static{t(this,"HTMLFormatter")}#e;styles;context;newLine=`
|
|
@@ -900,7 +900,7 @@ ${(await Promise.all(s.error.frames.map((d,y)=>this.#m(d,y,this.#n(s.error.frame
|
|
|
900
900
|
`)}`}};import{extname as rSt}from"path";var M2r=Object.defineProperty,j2r=t(s=>o=>{var f=s[o];if(f)return f();throw new Error("Module not found in bundle: "+o)},"w"),pu=t((s,o)=>()=>(s&&(o=s(s=0)),o),"a"),vu=t((s,o)=>{for(var f in o)M2r(s,f,{get:o[f],enumerable:!0})},"p"),n1t={};vu(n1t,{default:t(()=>i1t,"default")});var i1t,B2r=pu(()=>{i1t=[{type:"cmnt",match:/(;|#).*/gm},{expand:"str"},{expand:"num"},{type:"num",match:/\$[\da-fA-F]*\b/g},{type:"kwd",match:/^[a-z]+\s+[a-z.]+\b/gm,sub:[{type:"func",match:/^[a-z]+/g}]},{type:"kwd",match:/^\t*[a-z][a-z\d]*\b/gm},{match:/%|\$/g,type:"oper"}]}),s1t={};vu(s1t,{default:t(()=>fOe,"default")});var lOe,fOe,a1t=pu(()=>{lOe={type:"var",match:/\$\w+|\${[^}]*}|\$\([^)]*\)/g},fOe=[{sub:"todo",match:/#.*/g},{type:"str",match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[lOe]},{type:"oper",match:/(?<=\s|^)\.*\/[a-z/_.-]+/gi},{type:"kwd",match:/\s-[a-zA-Z]+|$<|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g},{expand:"num"},{type:"func",match:/(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gmi},{type:"bool",match:/(?<=\s|^)(true|false)(?=\s|$)/g},{type:"oper",match:/[=(){}<>!]+/g},{type:"var",match:/(?<=\s|^)[\w_]+(?=\s*=)/g},lOe]}),o1t={};vu(o1t,{default:t(()=>c1t,"default")});var c1t,U2r=pu(()=>{c1t=[{match:/[^\[\->+.<\]\s].*/g,sub:"todo"},{type:"func",match:/\.+/g},{type:"kwd",match:/[<>]+/g},{type:"oper",match:/[+-]+/g}]}),l1t={};vu(l1t,{default:t(()=>u1t,"default")});var u1t,z2r=pu(()=>{u1t=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/#\s*include (<.*>|".*")/g,sub:[{type:"str",match:/(<|").*/g}]},{match:/asm\s*{[^}]*}/g,sub:[{type:"kwd",match:/^asm/g},{match:/[^{}]*(?=}$)/g,sub:"asm"}]},{type:"kwd",match:/\*|&|#[a-z]+\b|\b(asm|auto|double|int|struct|break|else|long|switch|case|enum|register|typedef|char|extern|return|union|const|float|short|unsigned|continue|for|signed|void|default|goto|sizeof|volatile|do|if|static|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),f1t={};vu(f1t,{default:t(()=>_1t,"default")});var _1t,$2r=pu(()=>{_1t=[{match:/\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/@\w+\b|\b(and|not|only|or)\b|\b[a-z-]+(?=[^{}]*{)/g},{type:"var",match:/\b[\w-]+(?=\s*:)|(::?|\.)[\w-]+(?=[^{}]*{)/g},{type:"func",match:/#[\w-]+(?=[^{}]*{)/g},{type:"num",match:/#[\da-f]{3,8}/g},{type:"num",match:/\d+(\.\d+)?(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|%)?/g,sub:[{type:"var",match:/[a-z]+|%/g}]},{match:/url\([^)]*\)/g,sub:[{type:"func",match:/url(?=\()/g},{type:"str",match:/[^()]+/g}]},{type:"func",match:/\b[a-zA-Z]\w*(?=\s*\()/g},{type:"num",match:/\b[a-z-]+\b/g}]}),p1t={};vu(p1t,{default:t(()=>d1t,"default")});var d1t,J2r=pu(()=>{d1t=[{expand:"strDouble"},{type:"oper",match:/,/g}]}),m1t={};vu(m1t,{default:t(()=>_Oe,"default")});var _Oe,h1t=pu(()=>{_Oe=[{type:"deleted",match:/^[-<].*/gm},{type:"insert",match:/^[+>].*/gm},{type:"kwd",match:/!.*/gm},{type:"section",match:/^@@.*@@$|^\d.*|^([*-+])\1\1.*/gm}]}),g1t={};vu(g1t,{default:t(()=>y1t,"default")});var y1t,W2r=pu(()=>{a1t(),y1t=[{type:"kwd",match:/^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)\b/gmi},...fOe]}),v1t={};vu(v1t,{default:t(()=>b1t,"default")});var b1t,q2r=pu(()=>{h1t(),b1t=[{match:/^#.*/gm,sub:"todo"},{expand:"str"},..._Oe,{type:"func",match:/^(\$ )?git(\s.*)?$/gm},{type:"kwd",match:/^commit \w+$/gm}]}),S1t={};vu(S1t,{default:t(()=>T1t,"default")});var T1t,V2r=pu(()=>{T1t=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\*|&|\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go|goto|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"oper",match:/[+\-*\/%&|^~=!<>.^-]+/g}]}),x1t={};vu(x1t,{default:t(()=>pOe,"default"),name:t(()=>UI,"name"),properties:t(()=>b7,"properties"),xmlElement:t(()=>lA,"xmlElement")});var uOe,e1t,UI,b7,lA,pOe,E1t=pu(()=>{uOe=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",e1t=uOe+"\\-\\.0-9\xB7\u0300-\u036F\u203F-\u2040",UI=`[${uOe}][${e1t}]*`,b7=`\\s*(\\s+${UI}\\s*(=\\s*([^"']\\S*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?\\s*)*`,lA={match:RegExp(`<[/!?]?${UI}${b7}[/!?]?>`,"g"),sub:[{type:"var",match:RegExp(`^<[/!?]?${UI}`,"g"),sub:[{type:"oper",match:/^<[\/!?]?/g}]},{type:"str",match:/=\s*([^"']\S*|("|')(\\[^]|(?!\2)[^])*\2?)/g,sub:[{type:"oper",match:/^=/g}]},{type:"oper",match:/[\/!?]?>/g},{type:"class",match:RegExp(UI,"g")}]},pOe=[{match:/<!--((?!-->)[^])*-->/g,sub:"todo"},{type:"class",match:/<!\[CDATA\[[\s\S]*?\]\]>/gi},lA,{type:"str",match:RegExp(`<\\?${UI}([^?]|\\?[^?>])*\\?+>`,"g"),sub:[{type:"var",match:RegExp(`^<\\?${UI}`,"g"),sub:[{type:"oper",match:/^<\?/g}]},{type:"oper",match:/\?+>$/g}]},{type:"var",match:/&(#x?)?[\da-z]{1,8};/gi}]}),C1t={};vu(C1t,{default:t(()=>k1t,"default")});var k1t,H2r=pu(()=>{E1t(),k1t=[{type:"class",match:/<!DOCTYPE("[^"]*"|'[^']*'|[^"'>])*>/gi,sub:[{type:"str",match:/"[^"]*"|'[^']*'/g},{type:"oper",match:/^<!|>$/g},{type:"var",match:/DOCTYPE/gi}]},{match:RegExp(`<style${b7}>((?!</style>)[^])*</style\\s*>`,"g"),sub:[{match:RegExp(`^<style${b7}>`,"g"),sub:lA.sub},{match:RegExp(`${lA.match}|[^]*(?=</style\\s*>$)`,"g"),sub:"css"},lA]},{match:RegExp(`<script${b7}>((?!</script>)[^])*</script\\s*>`,"g"),sub:[{match:RegExp(`^<script${b7}>`,"g"),sub:lA.sub},{match:RegExp(`${lA.match}|[^]*(?=</script\\s*>$)`,"g"),sub:"js"},lA]},...pOe]}),t1t,MG,dOe=pu(()=>{t1t=[["bash",[/#!(\/usr)?\/bin\/bash/g,500],[/\b(if|elif|then|fi|echo)\b|\$/g,10]],["html",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^\s+<!DOCTYPE\s+html/g,500]],["http",[/^(GET|HEAD|POST|PUT|DELETE|PATCH|HTTP)\b/g,500]],["js",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require)\b/g,10]],["ts",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require|implements|interface|namespace)\b/g,10]],["py",[/\b(def|print|class|and|or|lambda)\b/g,10]],["sql",[/\b(SELECT|INSERT|FROM)\b/g,50]],["pl",[/#!(\/usr)?\/bin\/perl/g,500],[/\b(use|print)\b|\$/g,10]],["lua",[/#!(\/usr)?\/bin\/lua/g,500]],["make",[/\b(ifneq|endif|if|elif|then|fi|echo|.PHONY|^[a-z]+ ?:$)\b|\$/gm,10]],["uri",[/https?:|mailto:|tel:|ftp:/g,30]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["diff",[/^[+><-]/gm,10],[/^@@ ?[-+,0-9 ]+ ?@@/gm,25]],["md",[/^(>|\t\*|\t\d+.)/gm,10],[/\[.*\](.*)/g,10]],["docker",[/^(FROM|ENTRYPOINT|RUN)/gm,500]],["xml",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^<\?xml/g,500]],["c",[/#include\b|\bprintf\s+\(/g,100]],["rs",[/^\s+(use|fn|mut|match)\b/gm,100]],["go",[/\b(func|fmt|package)\b/g,100]],["java",[/^import\s+java/gm,500]],["asm",[/^(section|global main|extern|\t(call|mov|ret))/gm,100]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["json",[/\b(true|false|null|\{})\b|\"[^"]+\":/g,10]],["yaml",[/^(\s+)?[a-z][a-z0-9]*:/gmi,10]]],MG=t(s=>t1t.map(([o,...f])=>[o,f.reduce((d,[y,x])=>d+[...s.matchAll(y)].length*x,0)]).filter(([o,f])=>f>20).sort((o,f)=>f[1]-o[1])[0]?.[0]||"plain","u")}),w1t={};vu(w1t,{default:t(()=>D1t,"default")});var D1t,G2r=pu(()=>{dOe(),D1t=[{type:"kwd",match:/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI|SEARCH)\b/gm},{expand:"str"},{type:"section",match:/\bHTTP\/[\d.]+\b/g},{expand:"num"},{type:"oper",match:/[,;:=]/g},{type:"var",match:/[a-zA-Z][\w-]*(?=:)/g},{match:/\n\n[^]*/g,sub:MG}]}),P1t={};vu(P1t,{default:t(()=>A1t,"default")});var A1t,Y2r=pu(()=>{A1t=[{match:/(^[ \f\t\v]*)[#;].*/gm,sub:"todo"},{type:"str",match:/.*/g},{type:"var",match:/.*(?==)/g},{type:"section",match:/^\s*\[.+\]\s*$/gm},{type:"oper",match:/=/g}]}),N1t={};vu(N1t,{default:t(()=>I1t,"default")});var I1t,K2r=pu(()=>{I1t=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(abstract|assert|boolean|break|byte|case|catch|char|class|continue|const|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|package|private|protected|public|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|try|var|void|volatile|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),O1t={};vu(O1t,{default:t(()=>mOe,"default")});var mOe,F1t=pu(()=>{mOe=[{match:/\/\*\*((?!\*\/)[^])*(\*\/)?/g,sub:"jsdoc"},{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{match:/`((?!`)[^]|\\[^])*`?/g,sub:"js_template_literals"},{type:"kwd",match:/=>|\b(this|set|get|as|async|await|break|case|catch|class|const|constructor|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|if|implements|import|in|instanceof|interface|let|var|of|new|package|private|protected|public|return|static|super|switch|throw|throws|try|typeof|void|while|with|yield)\b/g},{match:/\/((?!\/)[^\r\n\\]|\\.)+\/[dgimsuy]*/g,sub:"regex"},{expand:"num"},{type:"num",match:/\b(NaN|null|undefined|[A-Z][A-Z_]*)\b/g},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z$_][\w$_]*(?=\s*((\?\.)?\s*\(|=\s*(\(?[\w,{}\[\])]+\)? =>|function\b)))/g}]}),L1t={};vu(L1t,{default:t(()=>R1t,"default"),type:t(()=>M1t,"type")});var R1t,M1t,X2r=pu(()=>{R1t=[{match:new class{exec(s){let o=this.lastIndex,f,d=t(y=>{for(;++o<s.length-2;)if(s[o]=="{")d();else if(s[o]=="}")return},"c");for(;o<s.length;++o)if(s[o-1]!="\\"&&s[o]=="$"&&s[o+1]=="{")return f=o++,d(o),this.lastIndex=o+1,{index:f,0:s.slice(f,o+1)};return null}},sub:[{type:"kwd",match:/^\${|}$/g},{match:/(?!^\$|{)[^]+(?=}$)/g,sub:"js"}]}],M1t="str"}),j1t={};vu(j1t,{default:t(()=>hOe,"default"),type:t(()=>B1t,"type")});var hOe,B1t,U1t=pu(()=>{hOe=[{type:"err",match:/\b(TODO|FIXME|DEBUG|OPTIMIZE|WARNING|XXX|BUG)\b/g},{type:"class",match:/\bIDEA\b/g},{type:"insert",match:/\b(CHANGED|FIX|CHANGE)\b/g},{type:"oper",match:/\bQUESTION\b/g}],B1t="cmnt"}),z1t={};vu(z1t,{default:t(()=>$1t,"default"),type:t(()=>J1t,"type")});var $1t,J1t,Z2r=pu(()=>{U1t(),$1t=[{type:"kwd",match:/@\w+/g},{type:"class",match:/{[\w\s|<>,.@\[\]]+}/g},{type:"var",match:/\[[\w\s="']+\]/g},...hOe],J1t="cmnt"}),W1t={};vu(W1t,{default:t(()=>q1t,"default")});var q1t,Q2r=pu(()=>{q1t=[{type:"var",match:/("|')?[a-zA-Z]\w*\1(?=\s*:)/g},{expand:"str"},{expand:"num"},{type:"num",match:/\bnull\b/g},{type:"bool",match:/\b(true|false)\b/g}]}),V1t={};vu(V1t,{default:t(()=>gOe,"default")});var gOe,H1t=pu(()=>{dOe(),gOe=[{type:"cmnt",match:/^>.*|(=|-)\1+/gm},{type:"class",match:/\*\*((?!\*\*).)*\*\*/g},{match:/```((?!```)[^])*\n```/g,sub:t(s=>({type:"kwd",sub:[{match:/\n[^]*(?=```)/g,sub:s.split(`
|
|
901
901
|
`)[0].slice(3)||MG(s)}]}),"sub")},{type:"str",match:/`[^`]*`/g},{type:"var",match:/~~((?!~~).)*~~/g},{type:"kwd",match:/_[^_]*_|\*[^*]*\*/g},{type:"kwd",match:/^\s*(\*|\d+\.)\s/gm},{type:"oper",match:/\[[^\]]*]/g},{type:"func",match:/\([^)]*\)/g}]}),G1t={};vu(G1t,{default:t(()=>Y1t,"default")});var Y1t,eTr=pu(()=>{H1t(),dOe(),Y1t=[{type:"insert",match:/(leanpub-start-insert)((?!leanpub-end-insert)[^])*(leanpub-end-insert)?/g,sub:[{type:"insert",match:/leanpub-(start|end)-insert/g},{match:/(?!leanpub-start-insert)((?!leanpub-end-insert)[^])*/g,sub:MG}]},{type:"deleted",match:/(leanpub-start-delete)((?!leanpub-end-delete)[^])*(leanpub-end-delete)?/g,sub:[{type:"deleted",match:/leanpub-(start|end)-delete/g},{match:/(?!leanpub-start-delete)((?!leanpub-end-delete)[^])*/g,sub:MG}]},...gOe]}),K1t={};vu(K1t,{default:t(()=>X1t,"default")});var X1t,tTr=pu(()=>{X1t=[{type:"cmnt",match:/^#.*/gm},{expand:"strDouble"},{expand:"num"},{type:"err",match:/\b(err(or)?|[a-z_-]*exception|warn|warning|failed|ko|invalid|not ?found|alert|fatal)\b/gi},{type:"num",match:/\b(null|undefined)\b/gi},{type:"bool",match:/\b(false|true|yes|no)\b/gi},{type:"oper",match:/\.|,/g}]}),Z1t={};vu(Z1t,{default:t(()=>Q1t,"default")});var Q1t,rTr=pu(()=>{Q1t=[{match:/^#!.*|--(\[(=*)\[((?!--\]\2\])[^])*--\]\2\]|.*)/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/\b(and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/g},{type:"bool",match:/\b(true|false|nil)\b/g},{type:"oper",match:/[+*/%^#=~<>:,.-]+/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*[({])/g}]}),evt={};vu(evt,{default:t(()=>tvt,"default")});var tvt,nTr=pu(()=>{tvt=[{match:/^\s*#.*/gm,sub:"todo"},{expand:"str"},{type:"oper",match:/[${}()]+/g},{type:"class",match:/.PHONY:/gm},{type:"section",match:/^[\w.]+:/gm},{type:"kwd",match:/\b(ifneq|endif)\b/g},{expand:"num"},{type:"var",match:/[A-Z_]+(?=\s*=)/g},{match:/^.*$/gm,sub:"bash"}]}),rvt={};vu(rvt,{default:t(()=>nvt,"default")});var nvt,iTr=pu(()=>{nvt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/(["'])(\\[^]|(?!\1)[^])*\1?/g},{expand:"num"},{type:"kwd",match:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while|not|and|or|xor)\b/g},{type:"oper",match:/[-+*/%~!&<>|=?,]+/g},{type:"func",match:/[a-z_]+(?=\s*\()/g}]}),ivt={};vu(ivt,{default:t(()=>svt,"default")});var svt,sTr=pu(()=>{svt=[{expand:"strDouble"}]}),avt={};vu(avt,{default:t(()=>ovt,"default")});var ovt,aTr=pu(()=>{ovt=[{match:/#.*/g,sub:"todo"},{match:/("""|''')(\\[^]|(?!\1)[^])*\1?/g,sub:"todo"},{type:"str",match:/f("|')(\\[^]|(?!\1).)*\1?|f((["'])\4\4)(\\[^]|(?!\3)[^])*\3?/gi,sub:[{type:"var",match:/{[^{}]*}/g,sub:[{match:/(?!^{)[^]*(?=}$)/g,sub:"py"}]}]},{expand:"str"},{type:"kwd",match:/\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g},{type:"bool",match:/\b(False|True|None)\b/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*\()/g},{type:"oper",match:/[-/*+<>,=!&|^%]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),cvt={};vu(cvt,{default:t(()=>lvt,"default"),type:t(()=>uvt,"type")});var lvt,uvt,oTr=pu(()=>{lvt=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],uvt="oper"}),fvt={};vu(fvt,{default:t(()=>_vt,"default")});var _vt,cTr=pu(()=>{_vt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|self|Self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|final|macro|override|priv|typeof|unsized|virtual|yield|try)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*!?\s*\()/g}]}),pvt={};vu(pvt,{default:t(()=>dvt,"default")});var dvt,lTr=pu(()=>{dvt=[{match:/--.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"func",match:/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/g},{type:"kwd",match:/\b(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|kwdS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/g},{type:"num",match:/\.?\d[\d.oxa-fA-F-]*|\bNULL\b/g},{type:"bool",match:/\b(TRUE|FALSE)\b/g},{type:"oper",match:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/g},{type:"var",match:/@\S+/g}]}),mvt={};vu(mvt,{default:t(()=>hvt,"default")});var hvt,uTr=pu(()=>{hvt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/("""|''')((?!\1)[^]|\\[^])*\1?/g},{expand:"str"},{type:"section",match:/^\[.+\]\s*$/gm},{type:"num",match:/\b(inf|nan)\b|\d[\d:ZT.-]*/g},{expand:"num"},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[+,.=-]/g},{type:"var",match:/\w+(?= \=)/g}]}),gvt={};vu(gvt,{default:t(()=>yvt,"default")});var yvt,fTr=pu(()=>{F1t(),yvt=[{type:"type",match:/:\s*(any|void|number|boolean|string|object|never|enum)\b/g},{type:"kwd",match:/\b(type|namespace|typedef|interface|public|private|protected|implements|declare|abstract|readonly)\b/g},...mOe]}),vvt={};vu(vvt,{default:t(()=>bvt,"default")});var bvt,_Tr=pu(()=>{bvt=[{match:/^#.*/gm,sub:"todo"},{type:"class",match:/^\w+(?=:?)/gm},{type:"num",match:/:\d+/g},{type:"oper",match:/[:/&?]|\w+=/g},{type:"func",match:/[.\w]+@|#[\w]+$/gm},{type:"var",match:/\w+\.\w+(\.\w+)*/g}]}),Svt={};vu(Svt,{default:t(()=>Tvt,"default")});var Tvt,pTr=pu(()=>{Tvt=[{match:/#.*/g,sub:"todo"},{expand:"str"},{type:"str",match:/(>|\|)\r?\n((\s[^\n]*)?(\r?\n|$))*/g},{type:"type",match:/!![a-z]+/g},{type:"bool",match:/\b(Yes|No)\b/g},{type:"oper",match:/[+:-]/g},{expand:"num"},{type:"var",match:/[a-zA-Z]\w*(?=:)/g}]}),dTr={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}},mTr=j2r({"./languages/asm.js":t(()=>Promise.resolve().then(()=>(B2r(),n1t)),"./languages/asm.js"),"./languages/bash.js":t(()=>Promise.resolve().then(()=>(a1t(),s1t)),"./languages/bash.js"),"./languages/bf.js":t(()=>Promise.resolve().then(()=>(U2r(),o1t)),"./languages/bf.js"),"./languages/c.js":t(()=>Promise.resolve().then(()=>(z2r(),l1t)),"./languages/c.js"),"./languages/css.js":t(()=>Promise.resolve().then(()=>($2r(),f1t)),"./languages/css.js"),"./languages/csv.js":t(()=>Promise.resolve().then(()=>(J2r(),p1t)),"./languages/csv.js"),"./languages/diff.js":t(()=>Promise.resolve().then(()=>(h1t(),m1t)),"./languages/diff.js"),"./languages/docker.js":t(()=>Promise.resolve().then(()=>(W2r(),g1t)),"./languages/docker.js"),"./languages/git.js":t(()=>Promise.resolve().then(()=>(q2r(),v1t)),"./languages/git.js"),"./languages/go.js":t(()=>Promise.resolve().then(()=>(V2r(),S1t)),"./languages/go.js"),"./languages/html.js":t(()=>Promise.resolve().then(()=>(H2r(),C1t)),"./languages/html.js"),"./languages/http.js":t(()=>Promise.resolve().then(()=>(G2r(),w1t)),"./languages/http.js"),"./languages/ini.js":t(()=>Promise.resolve().then(()=>(Y2r(),P1t)),"./languages/ini.js"),"./languages/java.js":t(()=>Promise.resolve().then(()=>(K2r(),N1t)),"./languages/java.js"),"./languages/js.js":t(()=>Promise.resolve().then(()=>(F1t(),O1t)),"./languages/js.js"),"./languages/js_template_literals.js":t(()=>Promise.resolve().then(()=>(X2r(),L1t)),"./languages/js_template_literals.js"),"./languages/jsdoc.js":t(()=>Promise.resolve().then(()=>(Z2r(),z1t)),"./languages/jsdoc.js"),"./languages/json.js":t(()=>Promise.resolve().then(()=>(Q2r(),W1t)),"./languages/json.js"),"./languages/leanpub-md.js":t(()=>Promise.resolve().then(()=>(eTr(),G1t)),"./languages/leanpub-md.js"),"./languages/log.js":t(()=>Promise.resolve().then(()=>(tTr(),K1t)),"./languages/log.js"),"./languages/lua.js":t(()=>Promise.resolve().then(()=>(rTr(),Z1t)),"./languages/lua.js"),"./languages/make.js":t(()=>Promise.resolve().then(()=>(nTr(),evt)),"./languages/make.js"),"./languages/md.js":t(()=>Promise.resolve().then(()=>(H1t(),V1t)),"./languages/md.js"),"./languages/pl.js":t(()=>Promise.resolve().then(()=>(iTr(),rvt)),"./languages/pl.js"),"./languages/plain.js":t(()=>Promise.resolve().then(()=>(sTr(),ivt)),"./languages/plain.js"),"./languages/py.js":t(()=>Promise.resolve().then(()=>(aTr(),avt)),"./languages/py.js"),"./languages/regex.js":t(()=>Promise.resolve().then(()=>(oTr(),cvt)),"./languages/regex.js"),"./languages/rs.js":t(()=>Promise.resolve().then(()=>(cTr(),fvt)),"./languages/rs.js"),"./languages/sql.js":t(()=>Promise.resolve().then(()=>(lTr(),pvt)),"./languages/sql.js"),"./languages/todo.js":t(()=>Promise.resolve().then(()=>(U1t(),j1t)),"./languages/todo.js"),"./languages/toml.js":t(()=>Promise.resolve().then(()=>(uTr(),mvt)),"./languages/toml.js"),"./languages/ts.js":t(()=>Promise.resolve().then(()=>(fTr(),gvt)),"./languages/ts.js"),"./languages/uri.js":t(()=>Promise.resolve().then(()=>(_Tr(),vvt)),"./languages/uri.js"),"./languages/xml.js":t(()=>Promise.resolve().then(()=>(E1t(),x1t)),"./languages/xml.js"),"./languages/yaml.js":t(()=>Promise.resolve().then(()=>(pTr(),Svt)),"./languages/yaml.js")}),r1t={},hTr=t((s="")=>s.replaceAll("&","&").replaceAll?.("<","<").replaceAll?.(">",">"),"Ce"),gTr=t((s,o)=>o?`<span class="shj-syn-${o}">${s}</span>`:s,"De");async function xvt(s,o,f){try{let d,y,x={},A,F=[],W=0,G=typeof o=="string"?await(r1t[o]??(r1t[o]=mTr(`./languages/${o}.js`))):o,be=[...typeof o=="string"?G.default:o.sub];for(;W<s.length;){for(x.index=null,d=be.length;d-- >0;){if(y=be[d].expand?dTr[be[d].expand]:be[d],F[d]===void 0||F[d].match.index<W){if(y.match.lastIndex=W,A=y.match.exec(s),A===null){be.splice(d,1),F.splice(d,1);continue}F[d]={match:A,lastIndex:y.match.lastIndex}}F[d].match[0]&&(F[d].match.index<=x.index||x.index===null)&&(x={part:y,index:F[d].match.index,match:F[d].match[0],end:F[d].lastIndex})}if(x.index===null)break;f(s.slice(W,x.index),G.type),W=x.end,x.part.sub?await xvt(x.match,typeof x.part.sub=="string"?x.part.sub:typeof x.part.sub=="function"?x.part.sub(x.match):x.part,f):f(x.match,x.part.type)}f(s.slice(W,s.length),G.type)}catch{f(s)}}t(xvt,"Zt");async function Evt(s,o,f=!0,d={}){let y="";return await xvt(s,o,(x,A)=>y+=gTr(hTr(x),A)),f?`<div><div class="shj-numbers">${"<div></div>".repeat(!d.hideLineNumbers&&s.split(`
|
|
902
902
|
`).length)}</div><div>${y}</div></div>`:y}t(Evt,"we");var yTr=Object.defineProperty,Dvt=t(s=>o=>{var f=s[o];if(f)return f();throw new Error("Module not found in bundle: "+o)},"d"),Ol=t((s,o)=>()=>(s&&(o=s(s=0)),o),"e"),Vl=t((s,o)=>{for(var f in o)yTr(s,f,{get:o[f],enumerable:!0})},"a"),Pvt={};Vl(Pvt,{default:t(()=>Avt,"default")});var Avt,vTr=Ol(()=>{Avt=[{type:"cmnt",match:/(;|#).*/gm},{expand:"str"},{expand:"num"},{type:"num",match:/\$[\da-fA-F]*\b/g},{type:"kwd",match:/^[a-z]+\s+[a-z.]+\b/gm,sub:[{type:"func",match:/^[a-z]+/g}]},{type:"kwd",match:/^\t*[a-z][a-z\d]*\b/gm},{match:/%|\$/g,type:"oper"}]}),Nvt={};Vl(Nvt,{default:t(()=>bOe,"default")});var yOe,bOe,Ivt=Ol(()=>{yOe={type:"var",match:/\$\w+|\${[^}]*}|\$\([^)]*\)/g},bOe=[{sub:"todo",match:/#.*/g},{type:"str",match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[yOe]},{type:"oper",match:/(?<=\s|^)\.*\/[a-z/_.-]+/gi},{type:"kwd",match:/\s-[a-zA-Z]+|$<|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g},{expand:"num"},{type:"func",match:/(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gmi},{type:"bool",match:/(?<=\s|^)(true|false)(?=\s|$)/g},{type:"oper",match:/[=(){}<>!]+/g},{type:"var",match:/(?<=\s|^)[\w_]+(?=\s*=)/g},yOe]}),Ovt={};Vl(Ovt,{default:t(()=>Fvt,"default")});var Fvt,bTr=Ol(()=>{Fvt=[{match:/[^\[\->+.<\]\s].*/g,sub:"todo"},{type:"func",match:/\.+/g},{type:"kwd",match:/[<>]+/g},{type:"oper",match:/[+-]+/g}]}),Lvt={};Vl(Lvt,{default:t(()=>Rvt,"default")});var Rvt,STr=Ol(()=>{Rvt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/#\s*include (<.*>|".*")/g,sub:[{type:"str",match:/(<|").*/g}]},{match:/asm\s*{[^}]*}/g,sub:[{type:"kwd",match:/^asm/g},{match:/[^{}]*(?=}$)/g,sub:"asm"}]},{type:"kwd",match:/\*|&|#[a-z]+\b|\b(asm|auto|double|int|struct|break|else|long|switch|case|enum|register|typedef|char|extern|return|union|const|float|short|unsigned|continue|for|signed|void|default|goto|sizeof|volatile|do|if|static|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),Mvt={};Vl(Mvt,{default:t(()=>jvt,"default")});var jvt,TTr=Ol(()=>{jvt=[{match:/\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/@\w+\b|\b(and|not|only|or)\b|\b[a-z-]+(?=[^{}]*{)/g},{type:"var",match:/\b[\w-]+(?=\s*:)|(::?|\.)[\w-]+(?=[^{}]*{)/g},{type:"func",match:/#[\w-]+(?=[^{}]*{)/g},{type:"num",match:/#[\da-f]{3,8}/g},{type:"num",match:/\d+(\.\d+)?(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|%)?/g,sub:[{type:"var",match:/[a-z]+|%/g}]},{match:/url\([^)]*\)/g,sub:[{type:"func",match:/url(?=\()/g},{type:"str",match:/[^()]+/g}]},{type:"func",match:/\b[a-zA-Z]\w*(?=\s*\()/g},{type:"num",match:/\b[a-z-]+\b/g}]}),Bvt={};Vl(Bvt,{default:t(()=>Uvt,"default")});var Uvt,xTr=Ol(()=>{Uvt=[{expand:"strDouble"},{type:"oper",match:/,/g}]}),zvt={};Vl(zvt,{default:t(()=>SOe,"default")});var SOe,$vt=Ol(()=>{SOe=[{type:"deleted",match:/^[-<].*/gm},{type:"insert",match:/^[+>].*/gm},{type:"kwd",match:/!.*/gm},{type:"section",match:/^@@.*@@$|^\d.*|^([*-+])\1\1.*/gm}]}),Jvt={};Vl(Jvt,{default:t(()=>Wvt,"default")});var Wvt,ETr=Ol(()=>{Ivt(),Wvt=[{type:"kwd",match:/^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)\b/gmi},...bOe]}),qvt={};Vl(qvt,{default:t(()=>Vvt,"default")});var Vvt,CTr=Ol(()=>{$vt(),Vvt=[{match:/^#.*/gm,sub:"todo"},{expand:"str"},...SOe,{type:"func",match:/^(\$ )?git(\s.*)?$/gm},{type:"kwd",match:/^commit \w+$/gm}]}),Hvt={};Vl(Hvt,{default:t(()=>Gvt,"default")});var Gvt,kTr=Ol(()=>{Gvt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\*|&|\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go|goto|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"oper",match:/[+\-*\/%&|^~=!<>.^-]+/g}]}),Yvt={};Vl(Yvt,{default:t(()=>TOe,"default"),name:t(()=>zI,"name"),properties:t(()=>S7,"properties"),xmlElement:t(()=>uA,"xmlElement")});var vOe,Cvt,zI,S7,uA,TOe,Kvt=Ol(()=>{vOe=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Cvt=vOe+"\\-\\.0-9\xB7\u0300-\u036F\u203F-\u2040",zI=`[${vOe}][${Cvt}]*`,S7=`\\s*(\\s+${zI}\\s*(=\\s*([^"']\\S*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?\\s*)*`,uA={match:RegExp(`<[/!?]?${zI}${S7}[/!?]?>`,"g"),sub:[{type:"var",match:RegExp(`^<[/!?]?${zI}`,"g"),sub:[{type:"oper",match:/^<[\/!?]?/g}]},{type:"str",match:/=\s*([^"']\S*|("|')(\\[^]|(?!\2)[^])*\2?)/g,sub:[{type:"oper",match:/^=/g}]},{type:"oper",match:/[\/!?]?>/g},{type:"class",match:RegExp(zI,"g")}]},TOe=[{match:/<!--((?!-->)[^])*-->/g,sub:"todo"},{type:"class",match:/<!\[CDATA\[[\s\S]*?\]\]>/gi},uA,{type:"str",match:RegExp(`<\\?${zI}([^?]|\\?[^?>])*\\?+>`,"g"),sub:[{type:"var",match:RegExp(`^<\\?${zI}`,"g"),sub:[{type:"oper",match:/^<\?/g}]},{type:"oper",match:/\?+>$/g}]},{type:"var",match:/&(#x?)?[\da-z]{1,8};/gi}]}),Xvt={};Vl(Xvt,{default:t(()=>Zvt,"default")});var Zvt,wTr=Ol(()=>{Kvt(),Zvt=[{type:"class",match:/<!DOCTYPE("[^"]*"|'[^']*'|[^"'>])*>/gi,sub:[{type:"str",match:/"[^"]*"|'[^']*'/g},{type:"oper",match:/^<!|>$/g},{type:"var",match:/DOCTYPE/gi}]},{match:RegExp(`<style${S7}>((?!</style>)[^])*</style\\s*>`,"g"),sub:[{match:RegExp(`^<style${S7}>`,"g"),sub:uA.sub},{match:RegExp(`${uA.match}|[^]*(?=</style\\s*>$)`,"g"),sub:"css"},uA]},{match:RegExp(`<script${S7}>((?!</script>)[^])*</script\\s*>`,"g"),sub:[{match:RegExp(`^<script${S7}>`,"g"),sub:uA.sub},{match:RegExp(`${uA.match}|[^]*(?=</script\\s*>$)`,"g"),sub:"js"},uA]},...TOe]}),kvt,jG,xOe=Ol(()=>{kvt=[["bash",[/#!(\/usr)?\/bin\/bash/g,500],[/\b(if|elif|then|fi|echo)\b|\$/g,10]],["html",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^\s+<!DOCTYPE\s+html/g,500]],["http",[/^(GET|HEAD|POST|PUT|DELETE|PATCH|HTTP)\b/g,500]],["js",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require)\b/g,10]],["ts",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require|implements|interface|namespace)\b/g,10]],["py",[/\b(def|print|class|and|or|lambda)\b/g,10]],["sql",[/\b(SELECT|INSERT|FROM)\b/g,50]],["pl",[/#!(\/usr)?\/bin\/perl/g,500],[/\b(use|print)\b|\$/g,10]],["lua",[/#!(\/usr)?\/bin\/lua/g,500]],["make",[/\b(ifneq|endif|if|elif|then|fi|echo|.PHONY|^[a-z]+ ?:$)\b|\$/gm,10]],["uri",[/https?:|mailto:|tel:|ftp:/g,30]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["diff",[/^[+><-]/gm,10],[/^@@ ?[-+,0-9 ]+ ?@@/gm,25]],["md",[/^(>|\t\*|\t\d+.)/gm,10],[/\[.*\](.*)/g,10]],["docker",[/^(FROM|ENTRYPOINT|RUN)/gm,500]],["xml",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^<\?xml/g,500]],["c",[/#include\b|\bprintf\s+\(/g,100]],["rs",[/^\s+(use|fn|mut|match)\b/gm,100]],["go",[/\b(func|fmt|package)\b/g,100]],["java",[/^import\s+java/gm,500]],["asm",[/^(section|global main|extern|\t(call|mov|ret))/gm,100]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["json",[/\b(true|false|null|\{})\b|\"[^"]+\":/g,10]],["yaml",[/^(\s+)?[a-z][a-z0-9]*:/gmi,10]]],jG=t(s=>kvt.map(([o,...f])=>[o,f.reduce((d,[y,x])=>d+[...s.matchAll(y)].length*x,0)]).filter(([o,f])=>f>20).sort((o,f)=>f[1]-o[1])[0]?.[0]||"plain","i")}),Qvt={};Vl(Qvt,{default:t(()=>ebt,"default")});var ebt,DTr=Ol(()=>{xOe(),ebt=[{type:"kwd",match:/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI|SEARCH)\b/gm},{expand:"str"},{type:"section",match:/\bHTTP\/[\d.]+\b/g},{expand:"num"},{type:"oper",match:/[,;:=]/g},{type:"var",match:/[a-zA-Z][\w-]*(?=:)/g},{match:/\n\n[^]*/g,sub:jG}]}),tbt={};Vl(tbt,{default:t(()=>rbt,"default")});var rbt,PTr=Ol(()=>{rbt=[{match:/(^[ \f\t\v]*)[#;].*/gm,sub:"todo"},{type:"str",match:/.*/g},{type:"var",match:/.*(?==)/g},{type:"section",match:/^\s*\[.+\]\s*$/gm},{type:"oper",match:/=/g}]}),nbt={};Vl(nbt,{default:t(()=>ibt,"default")});var ibt,ATr=Ol(()=>{ibt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(abstract|assert|boolean|break|byte|case|catch|char|class|continue|const|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|package|private|protected|public|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|try|var|void|volatile|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),sbt={};Vl(sbt,{default:t(()=>EOe,"default")});var EOe,abt=Ol(()=>{EOe=[{match:/\/\*\*((?!\*\/)[^])*(\*\/)?/g,sub:"jsdoc"},{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{match:/`((?!`)[^]|\\[^])*`?/g,sub:"js_template_literals"},{type:"kwd",match:/=>|\b(this|set|get|as|async|await|break|case|catch|class|const|constructor|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|if|implements|import|in|instanceof|interface|let|var|of|new|package|private|protected|public|return|static|super|switch|throw|throws|try|typeof|void|while|with|yield)\b/g},{match:/\/((?!\/)[^\r\n\\]|\\.)+\/[dgimsuy]*/g,sub:"regex"},{expand:"num"},{type:"num",match:/\b(NaN|null|undefined|[A-Z][A-Z_]*)\b/g},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z$_][\w$_]*(?=\s*((\?\.)?\s*\(|=\s*(\(?[\w,{}\[\])]+\)? =>|function\b)))/g}]}),obt={};Vl(obt,{default:t(()=>cbt,"default"),type:t(()=>lbt,"type")});var cbt,lbt,NTr=Ol(()=>{cbt=[{match:new class{exec(s){let o=this.lastIndex,f,d=t(y=>{for(;++o<s.length-2;)if(s[o]=="{")d();else if(s[o]=="}")return},"r");for(;o<s.length;++o)if(s[o-1]!="\\"&&s[o]=="$"&&s[o+1]=="{")return f=o++,d(o),this.lastIndex=o+1,{index:f,0:s.slice(f,o+1)};return null}},sub:[{type:"kwd",match:/^\${|}$/g},{match:/(?!^\$|{)[^]+(?=}$)/g,sub:"js"}]}],lbt="str"}),ubt={};Vl(ubt,{default:t(()=>COe,"default"),type:t(()=>fbt,"type")});var COe,fbt,_bt=Ol(()=>{COe=[{type:"err",match:/\b(TODO|FIXME|DEBUG|OPTIMIZE|WARNING|XXX|BUG)\b/g},{type:"class",match:/\bIDEA\b/g},{type:"insert",match:/\b(CHANGED|FIX|CHANGE)\b/g},{type:"oper",match:/\bQUESTION\b/g}],fbt="cmnt"}),pbt={};Vl(pbt,{default:t(()=>dbt,"default"),type:t(()=>mbt,"type")});var dbt,mbt,ITr=Ol(()=>{_bt(),dbt=[{type:"kwd",match:/@\w+/g},{type:"class",match:/{[\w\s|<>,.@\[\]]+}/g},{type:"var",match:/\[[\w\s="']+\]/g},...COe],mbt="cmnt"}),hbt={};Vl(hbt,{default:t(()=>gbt,"default")});var gbt,OTr=Ol(()=>{gbt=[{type:"var",match:/("|')?[a-zA-Z]\w*\1(?=\s*:)/g},{expand:"str"},{expand:"num"},{type:"num",match:/\bnull\b/g},{type:"bool",match:/\b(true|false)\b/g}]}),ybt={};Vl(ybt,{default:t(()=>kOe,"default")});var kOe,vbt=Ol(()=>{xOe(),kOe=[{type:"cmnt",match:/^>.*|(=|-)\1+/gm},{type:"class",match:/\*\*((?!\*\*).)*\*\*/g},{match:/```((?!```)[^])*\n```/g,sub:t(s=>({type:"kwd",sub:[{match:/\n[^]*(?=```)/g,sub:s.split(`
|
|
903
|
-
`)[0].slice(3)||jG(s)}]}),"sub")},{type:"str",match:/`[^`]*`/g},{type:"var",match:/~~((?!~~).)*~~/g},{type:"kwd",match:/_[^_]*_|\*[^*]*\*/g},{type:"kwd",match:/^\s*(\*|\d+\.)\s/gm},{type:"oper",match:/\[[^\]]*]/g},{type:"func",match:/\([^)]*\)/g}]}),bbt={};Vl(bbt,{default:t(()=>Sbt,"default")});var Sbt,FTr=Ol(()=>{vbt(),xOe(),Sbt=[{type:"insert",match:/(leanpub-start-insert)((?!leanpub-end-insert)[^])*(leanpub-end-insert)?/g,sub:[{type:"insert",match:/leanpub-(start|end)-insert/g},{match:/(?!leanpub-start-insert)((?!leanpub-end-insert)[^])*/g,sub:jG}]},{type:"deleted",match:/(leanpub-start-delete)((?!leanpub-end-delete)[^])*(leanpub-end-delete)?/g,sub:[{type:"deleted",match:/leanpub-(start|end)-delete/g},{match:/(?!leanpub-start-delete)((?!leanpub-end-delete)[^])*/g,sub:jG}]},...kOe]}),Tbt={};Vl(Tbt,{default:t(()=>xbt,"default")});var xbt,LTr=Ol(()=>{xbt=[{type:"cmnt",match:/^#.*/gm},{expand:"strDouble"},{expand:"num"},{type:"err",match:/\b(err(or)?|[a-z_-]*exception|warn|warning|failed|ko|invalid|not ?found|alert|fatal)\b/gi},{type:"num",match:/\b(null|undefined)\b/gi},{type:"bool",match:/\b(false|true|yes|no)\b/gi},{type:"oper",match:/\.|,/g}]}),Ebt={};Vl(Ebt,{default:t(()=>Cbt,"default")});var Cbt,RTr=Ol(()=>{Cbt=[{match:/^#!.*|--(\[(=*)\[((?!--\]\2\])[^])*--\]\2\]|.*)/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/\b(and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/g},{type:"bool",match:/\b(true|false|nil)\b/g},{type:"oper",match:/[+*/%^#=~<>:,.-]+/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*[({])/g}]}),kbt={};Vl(kbt,{default:t(()=>wbt,"default")});var wbt,MTr=Ol(()=>{wbt=[{match:/^\s*#.*/gm,sub:"todo"},{expand:"str"},{type:"oper",match:/[${}()]+/g},{type:"class",match:/.PHONY:/gm},{type:"section",match:/^[\w.]+:/gm},{type:"kwd",match:/\b(ifneq|endif)\b/g},{expand:"num"},{type:"var",match:/[A-Z_]+(?=\s*=)/g},{match:/^.*$/gm,sub:"bash"}]}),Dbt={};Vl(Dbt,{default:t(()=>Pbt,"default")});var Pbt,jTr=Ol(()=>{Pbt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/(["'])(\\[^]|(?!\1)[^])*\1?/g},{expand:"num"},{type:"kwd",match:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while|not|and|or|xor)\b/g},{type:"oper",match:/[-+*/%~!&<>|=?,]+/g},{type:"func",match:/[a-z_]+(?=\s*\()/g}]}),Abt={};Vl(Abt,{default:t(()=>Nbt,"default")});var Nbt,BTr=Ol(()=>{Nbt=[{expand:"strDouble"}]}),Ibt={};Vl(Ibt,{default:t(()=>Obt,"default")});var Obt,UTr=Ol(()=>{Obt=[{match:/#.*/g,sub:"todo"},{match:/("""|''')(\\[^]|(?!\1)[^])*\1?/g,sub:"todo"},{type:"str",match:/f("|')(\\[^]|(?!\1).)*\1?|f((["'])\4\4)(\\[^]|(?!\3)[^])*\3?/gi,sub:[{type:"var",match:/{[^{}]*}/g,sub:[{match:/(?!^{)[^]*(?=}$)/g,sub:"py"}]}]},{expand:"str"},{type:"kwd",match:/\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g},{type:"bool",match:/\b(False|True|None)\b/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*\()/g},{type:"oper",match:/[-/*+<>,=!&|^%]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),Fbt={};Vl(Fbt,{default:t(()=>Lbt,"default"),type:t(()=>Rbt,"type")});var Lbt,Rbt,zTr=Ol(()=>{Lbt=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],Rbt="oper"}),Mbt={};Vl(Mbt,{default:t(()=>jbt,"default")});var jbt,$Tr=Ol(()=>{jbt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|self|Self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|final|macro|override|priv|typeof|unsized|virtual|yield|try)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*!?\s*\()/g}]}),Bbt={};Vl(Bbt,{default:t(()=>Ubt,"default")});var Ubt,JTr=Ol(()=>{Ubt=[{match:/--.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"func",match:/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/g},{type:"kwd",match:/\b(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|kwdS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/g},{type:"num",match:/\.?\d[\d.oxa-fA-F-]*|\bNULL\b/g},{type:"bool",match:/\b(TRUE|FALSE)\b/g},{type:"oper",match:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/g},{type:"var",match:/@\S+/g}]}),zbt={};Vl(zbt,{default:t(()=>$bt,"default")});var $bt,WTr=Ol(()=>{$bt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/("""|''')((?!\1)[^]|\\[^])*\1?/g},{expand:"str"},{type:"section",match:/^\[.+\]\s*$/gm},{type:"num",match:/\b(inf|nan)\b|\d[\d:ZT.-]*/g},{expand:"num"},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[+,.=-]/g},{type:"var",match:/\w+(?= \=)/g}]}),Jbt={};Vl(Jbt,{default:t(()=>Wbt,"default")});var Wbt,qTr=Ol(()=>{abt(),Wbt=[{type:"type",match:/:\s*(any|void|number|boolean|string|object|never|enum)\b/g},{type:"kwd",match:/\b(type|namespace|typedef|interface|public|private|protected|implements|declare|abstract|readonly)\b/g},...EOe]}),qbt={};Vl(qbt,{default:t(()=>Vbt,"default")});var Vbt,VTr=Ol(()=>{Vbt=[{match:/^#.*/gm,sub:"todo"},{type:"class",match:/^\w+(?=:?)/gm},{type:"num",match:/:\d+/g},{type:"oper",match:/[:/&?]|\w+=/g},{type:"func",match:/[.\w]+@|#[\w]+$/gm},{type:"var",match:/\w+\.\w+(\.\w+)*/g}]}),Hbt={};Vl(Hbt,{default:t(()=>Gbt,"default")});var Gbt,HTr=Ol(()=>{Gbt=[{match:/#.*/g,sub:"todo"},{expand:"str"},{type:"str",match:/(>|\|)\r?\n((\s[^\n]*)?(\r?\n|$))*/g},{type:"type",match:/!![a-z]+/g},{type:"bool",match:/\b(Yes|No)\b/g},{type:"oper",match:/[+:-]/g},{expand:"num"},{type:"var",match:/[a-zA-Z]\w*(?=:)/g}]}),Ybt={};Vl(Ybt,{default:t(()=>jf,"default")});var jf,wOe=Ol(()=>{jf={black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",gray:"\x1B[90m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m"}}),Kbt={};Vl(Kbt,{default:t(()=>Xbt,"default")});var Xbt,GTr=Ol(()=>{wOe(),Xbt={deleted:jf.red,var:jf.red,err:jf.red,kwd:jf.magenta,num:jf.yellow,class:jf.yellow,cmnt:jf.gray,insert:jf.green,str:jf.green,bool:jf.cyan,type:jf.blue,oper:jf.blue,section:jf.magenta,func:jf.blue}}),DOe={};Vl(DOe,{default:t(()=>Zbt,"default")});var Zbt,Qbt=Ol(()=>{wOe(),Zbt={deleted:jf.red,var:jf.red,err:jf.red,kwd:jf.red,num:jf.yellow,class:jf.yellow,cmnt:jf.gray,insert:jf.green,str:jf.green,bool:jf.cyan,type:jf.blue,oper:jf.blue,section:jf.magenta,func:jf.magenta}}),YTr={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}},KTr=Dvt({"./languages/asm.js":t(()=>Promise.resolve().then(()=>(vTr(),Pvt)),"./languages/asm.js"),"./languages/bash.js":t(()=>Promise.resolve().then(()=>(Ivt(),Nvt)),"./languages/bash.js"),"./languages/bf.js":t(()=>Promise.resolve().then(()=>(bTr(),Ovt)),"./languages/bf.js"),"./languages/c.js":t(()=>Promise.resolve().then(()=>(STr(),Lvt)),"./languages/c.js"),"./languages/css.js":t(()=>Promise.resolve().then(()=>(TTr(),Mvt)),"./languages/css.js"),"./languages/csv.js":t(()=>Promise.resolve().then(()=>(xTr(),Bvt)),"./languages/csv.js"),"./languages/diff.js":t(()=>Promise.resolve().then(()=>($vt(),zvt)),"./languages/diff.js"),"./languages/docker.js":t(()=>Promise.resolve().then(()=>(ETr(),Jvt)),"./languages/docker.js"),"./languages/git.js":t(()=>Promise.resolve().then(()=>(CTr(),qvt)),"./languages/git.js"),"./languages/go.js":t(()=>Promise.resolve().then(()=>(kTr(),Hvt)),"./languages/go.js"),"./languages/html.js":t(()=>Promise.resolve().then(()=>(wTr(),Xvt)),"./languages/html.js"),"./languages/http.js":t(()=>Promise.resolve().then(()=>(DTr(),Qvt)),"./languages/http.js"),"./languages/ini.js":t(()=>Promise.resolve().then(()=>(PTr(),tbt)),"./languages/ini.js"),"./languages/java.js":t(()=>Promise.resolve().then(()=>(ATr(),nbt)),"./languages/java.js"),"./languages/js.js":t(()=>Promise.resolve().then(()=>(abt(),sbt)),"./languages/js.js"),"./languages/js_template_literals.js":t(()=>Promise.resolve().then(()=>(NTr(),obt)),"./languages/js_template_literals.js"),"./languages/jsdoc.js":t(()=>Promise.resolve().then(()=>(ITr(),pbt)),"./languages/jsdoc.js"),"./languages/json.js":t(()=>Promise.resolve().then(()=>(OTr(),hbt)),"./languages/json.js"),"./languages/leanpub-md.js":t(()=>Promise.resolve().then(()=>(FTr(),bbt)),"./languages/leanpub-md.js"),"./languages/log.js":t(()=>Promise.resolve().then(()=>(LTr(),Tbt)),"./languages/log.js"),"./languages/lua.js":t(()=>Promise.resolve().then(()=>(RTr(),Ebt)),"./languages/lua.js"),"./languages/make.js":t(()=>Promise.resolve().then(()=>(MTr(),kbt)),"./languages/make.js"),"./languages/md.js":t(()=>Promise.resolve().then(()=>(vbt(),ybt)),"./languages/md.js"),"./languages/pl.js":t(()=>Promise.resolve().then(()=>(jTr(),Dbt)),"./languages/pl.js"),"./languages/plain.js":t(()=>Promise.resolve().then(()=>(BTr(),Abt)),"./languages/plain.js"),"./languages/py.js":t(()=>Promise.resolve().then(()=>(UTr(),Ibt)),"./languages/py.js"),"./languages/regex.js":t(()=>Promise.resolve().then(()=>(zTr(),Fbt)),"./languages/regex.js"),"./languages/rs.js":t(()=>Promise.resolve().then(()=>($Tr(),Mbt)),"./languages/rs.js"),"./languages/sql.js":t(()=>Promise.resolve().then(()=>(JTr(),Bbt)),"./languages/sql.js"),"./languages/todo.js":t(()=>Promise.resolve().then(()=>(_bt(),ubt)),"./languages/todo.js"),"./languages/toml.js":t(()=>Promise.resolve().then(()=>(WTr(),zbt)),"./languages/toml.js"),"./languages/ts.js":t(()=>Promise.resolve().then(()=>(qTr(),Jbt)),"./languages/ts.js"),"./languages/uri.js":t(()=>Promise.resolve().then(()=>(VTr(),qbt)),"./languages/uri.js"),"./languages/xml.js":t(()=>Promise.resolve().then(()=>(Kvt(),Yvt)),"./languages/xml.js"),"./languages/yaml.js":t(()=>Promise.resolve().then(()=>(HTr(),Hbt)),"./languages/yaml.js")}),wvt={};async function eSt(s,o,f){try{let d,y,x={},A,F=[],W=0,G=typeof o=="string"?await(wvt[o]??(wvt[o]=KTr(`./languages/${o}.js`))):o,be=[...typeof o=="string"?G.default:o.sub];for(;W<s.length;){for(x.index=null,d=be.length;d-- >0;){if(y=be[d].expand?YTr[be[d].expand]:be[d],F[d]===void 0||F[d].match.index<W){if(y.match.lastIndex=W,A=y.match.exec(s),A===null){be.splice(d,1),F.splice(d,1);continue}F[d]={match:A,lastIndex:y.match.lastIndex}}F[d].match[0]&&(F[d].match.index<=x.index||x.index===null)&&(x={part:y,index:F[d].match.index,match:F[d].match[0],end:F[d].lastIndex})}if(x.index===null)break;f(s.slice(W,x.index),G.type),W=x.end,x.part.sub?await eSt(x.match,typeof x.part.sub=="string"?x.part.sub:typeof x.part.sub=="function"?x.part.sub(x.match):x.part,f):f(x.match,x.part.type)}f(s.slice(W,s.length),G.type)}catch{f(s)}}t(eSt,"F");var sBr=Dvt({"./themes/atom-dark.js":t(()=>Promise.resolve().then(()=>(GTr(),Kbt)),"./themes/atom-dark.js"),"./themes/default.js":t(()=>Promise.resolve().then(()=>(Qbt(),DOe)),"./themes/default.js"),"./themes/termcolor.js":t(()=>Promise.resolve().then(()=>(wOe(),Ybt)),"./themes/termcolor.js")}),XTr=Promise.resolve().then(()=>(Qbt(),DOe)),tSt=t(async(s,o)=>{let f="",d=(await XTr).default;return await eSt(s,o,(y,x)=>f+=x?`${d[x]??""}${y}\x1B[0m`:y),f},"ke");var nSt="\u2503",ZTr="\u276F",iSt={".tsx":"ts",".jsx":"js",".js":"js",".ts":"ts",".css":"css",".json":"json",".html":"html",".astro":"ts",".vue":"ts"},sSt=class extends W1{static{t(this,"ErrorStackSource")}cssFile=new URL("./error_stack_source/style.css",Ny);async toHTML(s){let o=s.frame;if(o.type==="native"||!o.source||!o.fileName)return"";let f=iSt[rSt(o.fileName)]??"plain",y=`<div class="line-highlight" style="margin-top: ${`${o.source.findIndex(A=>A.lineNumber===o.lineNumber)*24}px`}"></div>`,x=await Evt(o.source.map(A=>A.chunk).join(`
|
|
903
|
+
`)[0].slice(3)||jG(s)}]}),"sub")},{type:"str",match:/`[^`]*`/g},{type:"var",match:/~~((?!~~).)*~~/g},{type:"kwd",match:/_[^_]*_|\*[^*]*\*/g},{type:"kwd",match:/^\s*(\*|\d+\.)\s/gm},{type:"oper",match:/\[[^\]]*]/g},{type:"func",match:/\([^)]*\)/g}]}),bbt={};Vl(bbt,{default:t(()=>Sbt,"default")});var Sbt,FTr=Ol(()=>{vbt(),xOe(),Sbt=[{type:"insert",match:/(leanpub-start-insert)((?!leanpub-end-insert)[^])*(leanpub-end-insert)?/g,sub:[{type:"insert",match:/leanpub-(start|end)-insert/g},{match:/(?!leanpub-start-insert)((?!leanpub-end-insert)[^])*/g,sub:jG}]},{type:"deleted",match:/(leanpub-start-delete)((?!leanpub-end-delete)[^])*(leanpub-end-delete)?/g,sub:[{type:"deleted",match:/leanpub-(start|end)-delete/g},{match:/(?!leanpub-start-delete)((?!leanpub-end-delete)[^])*/g,sub:jG}]},...kOe]}),Tbt={};Vl(Tbt,{default:t(()=>xbt,"default")});var xbt,LTr=Ol(()=>{xbt=[{type:"cmnt",match:/^#.*/gm},{expand:"strDouble"},{expand:"num"},{type:"err",match:/\b(err(or)?|[a-z_-]*exception|warn|warning|failed|ko|invalid|not ?found|alert|fatal)\b/gi},{type:"num",match:/\b(null|undefined)\b/gi},{type:"bool",match:/\b(false|true|yes|no)\b/gi},{type:"oper",match:/\.|,/g}]}),Ebt={};Vl(Ebt,{default:t(()=>Cbt,"default")});var Cbt,RTr=Ol(()=>{Cbt=[{match:/^#!.*|--(\[(=*)\[((?!--\]\2\])[^])*--\]\2\]|.*)/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/\b(and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/g},{type:"bool",match:/\b(true|false|nil)\b/g},{type:"oper",match:/[+*/%^#=~<>:,.-]+/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*[({])/g}]}),kbt={};Vl(kbt,{default:t(()=>wbt,"default")});var wbt,MTr=Ol(()=>{wbt=[{match:/^\s*#.*/gm,sub:"todo"},{expand:"str"},{type:"oper",match:/[${}()]+/g},{type:"class",match:/.PHONY:/gm},{type:"section",match:/^[\w.]+:/gm},{type:"kwd",match:/\b(ifneq|endif)\b/g},{expand:"num"},{type:"var",match:/[A-Z_]+(?=\s*=)/g},{match:/^.*$/gm,sub:"bash"}]}),Dbt={};Vl(Dbt,{default:t(()=>Pbt,"default")});var Pbt,jTr=Ol(()=>{Pbt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/(["'])(\\[^]|(?!\1)[^])*\1?/g},{expand:"num"},{type:"kwd",match:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while|not|and|or|xor)\b/g},{type:"oper",match:/[-+*/%~!&<>|=?,]+/g},{type:"func",match:/[a-z_]+(?=\s*\()/g}]}),Abt={};Vl(Abt,{default:t(()=>Nbt,"default")});var Nbt,BTr=Ol(()=>{Nbt=[{expand:"strDouble"}]}),Ibt={};Vl(Ibt,{default:t(()=>Obt,"default")});var Obt,UTr=Ol(()=>{Obt=[{match:/#.*/g,sub:"todo"},{match:/("""|''')(\\[^]|(?!\1)[^])*\1?/g,sub:"todo"},{type:"str",match:/f("|')(\\[^]|(?!\1).)*\1?|f((["'])\4\4)(\\[^]|(?!\3)[^])*\3?/gi,sub:[{type:"var",match:/{[^{}]*}/g,sub:[{match:/(?!^{)[^]*(?=}$)/g,sub:"py"}]}]},{expand:"str"},{type:"kwd",match:/\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g},{type:"bool",match:/\b(False|True|None)\b/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*\()/g},{type:"oper",match:/[-/*+<>,=!&|^%]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),Fbt={};Vl(Fbt,{default:t(()=>Lbt,"default"),type:t(()=>Rbt,"type")});var Lbt,Rbt,zTr=Ol(()=>{Lbt=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],Rbt="oper"}),Mbt={};Vl(Mbt,{default:t(()=>jbt,"default")});var jbt,$Tr=Ol(()=>{jbt=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|self|Self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|final|macro|override|priv|typeof|unsized|virtual|yield|try)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*!?\s*\()/g}]}),Bbt={};Vl(Bbt,{default:t(()=>Ubt,"default")});var Ubt,JTr=Ol(()=>{Ubt=[{match:/--.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"func",match:/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/g},{type:"kwd",match:/\b(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|kwdS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/g},{type:"num",match:/\.?\d[\d.oxa-fA-F-]*|\bNULL\b/g},{type:"bool",match:/\b(TRUE|FALSE)\b/g},{type:"oper",match:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/g},{type:"var",match:/@\S+/g}]}),zbt={};Vl(zbt,{default:t(()=>$bt,"default")});var $bt,WTr=Ol(()=>{$bt=[{match:/#.*/g,sub:"todo"},{type:"str",match:/("""|''')((?!\1)[^]|\\[^])*\1?/g},{expand:"str"},{type:"section",match:/^\[.+\]\s*$/gm},{type:"num",match:/\b(inf|nan)\b|\d[\d:ZT.-]*/g},{expand:"num"},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[+,.=-]/g},{type:"var",match:/\w+(?= \=)/g}]}),Jbt={};Vl(Jbt,{default:t(()=>Wbt,"default")});var Wbt,qTr=Ol(()=>{abt(),Wbt=[{type:"type",match:/:\s*(any|void|number|boolean|string|object|never|enum)\b/g},{type:"kwd",match:/\b(type|namespace|typedef|interface|public|private|protected|implements|declare|abstract|readonly)\b/g},...EOe]}),qbt={};Vl(qbt,{default:t(()=>Vbt,"default")});var Vbt,VTr=Ol(()=>{Vbt=[{match:/^#.*/gm,sub:"todo"},{type:"class",match:/^\w+(?=:?)/gm},{type:"num",match:/:\d+/g},{type:"oper",match:/[:/&?]|\w+=/g},{type:"func",match:/[.\w]+@|#[\w]+$/gm},{type:"var",match:/\w+\.\w+(\.\w+)*/g}]}),Hbt={};Vl(Hbt,{default:t(()=>Gbt,"default")});var Gbt,HTr=Ol(()=>{Gbt=[{match:/#.*/g,sub:"todo"},{expand:"str"},{type:"str",match:/(>|\|)\r?\n((\s[^\n]*)?(\r?\n|$))*/g},{type:"type",match:/!![a-z]+/g},{type:"bool",match:/\b(Yes|No)\b/g},{type:"oper",match:/[+:-]/g},{expand:"num"},{type:"var",match:/[a-zA-Z]\w*(?=:)/g}]}),Ybt={};Vl(Ybt,{default:t(()=>jf,"default")});var jf,wOe=Ol(()=>{jf={black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",gray:"\x1B[90m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m"}}),Kbt={};Vl(Kbt,{default:t(()=>Xbt,"default")});var Xbt,GTr=Ol(()=>{wOe(),Xbt={deleted:jf.red,var:jf.red,err:jf.red,kwd:jf.magenta,num:jf.yellow,class:jf.yellow,cmnt:jf.gray,insert:jf.green,str:jf.green,bool:jf.cyan,type:jf.blue,oper:jf.blue,section:jf.magenta,func:jf.blue}}),DOe={};Vl(DOe,{default:t(()=>Zbt,"default")});var Zbt,Qbt=Ol(()=>{wOe(),Zbt={deleted:jf.red,var:jf.red,err:jf.red,kwd:jf.red,num:jf.yellow,class:jf.yellow,cmnt:jf.gray,insert:jf.green,str:jf.green,bool:jf.cyan,type:jf.blue,oper:jf.blue,section:jf.magenta,func:jf.magenta}}),YTr={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}},KTr=Dvt({"./languages/asm.js":t(()=>Promise.resolve().then(()=>(vTr(),Pvt)),"./languages/asm.js"),"./languages/bash.js":t(()=>Promise.resolve().then(()=>(Ivt(),Nvt)),"./languages/bash.js"),"./languages/bf.js":t(()=>Promise.resolve().then(()=>(bTr(),Ovt)),"./languages/bf.js"),"./languages/c.js":t(()=>Promise.resolve().then(()=>(STr(),Lvt)),"./languages/c.js"),"./languages/css.js":t(()=>Promise.resolve().then(()=>(TTr(),Mvt)),"./languages/css.js"),"./languages/csv.js":t(()=>Promise.resolve().then(()=>(xTr(),Bvt)),"./languages/csv.js"),"./languages/diff.js":t(()=>Promise.resolve().then(()=>($vt(),zvt)),"./languages/diff.js"),"./languages/docker.js":t(()=>Promise.resolve().then(()=>(ETr(),Jvt)),"./languages/docker.js"),"./languages/git.js":t(()=>Promise.resolve().then(()=>(CTr(),qvt)),"./languages/git.js"),"./languages/go.js":t(()=>Promise.resolve().then(()=>(kTr(),Hvt)),"./languages/go.js"),"./languages/html.js":t(()=>Promise.resolve().then(()=>(wTr(),Xvt)),"./languages/html.js"),"./languages/http.js":t(()=>Promise.resolve().then(()=>(DTr(),Qvt)),"./languages/http.js"),"./languages/ini.js":t(()=>Promise.resolve().then(()=>(PTr(),tbt)),"./languages/ini.js"),"./languages/java.js":t(()=>Promise.resolve().then(()=>(ATr(),nbt)),"./languages/java.js"),"./languages/js.js":t(()=>Promise.resolve().then(()=>(abt(),sbt)),"./languages/js.js"),"./languages/js_template_literals.js":t(()=>Promise.resolve().then(()=>(NTr(),obt)),"./languages/js_template_literals.js"),"./languages/jsdoc.js":t(()=>Promise.resolve().then(()=>(ITr(),pbt)),"./languages/jsdoc.js"),"./languages/json.js":t(()=>Promise.resolve().then(()=>(OTr(),hbt)),"./languages/json.js"),"./languages/leanpub-md.js":t(()=>Promise.resolve().then(()=>(FTr(),bbt)),"./languages/leanpub-md.js"),"./languages/log.js":t(()=>Promise.resolve().then(()=>(LTr(),Tbt)),"./languages/log.js"),"./languages/lua.js":t(()=>Promise.resolve().then(()=>(RTr(),Ebt)),"./languages/lua.js"),"./languages/make.js":t(()=>Promise.resolve().then(()=>(MTr(),kbt)),"./languages/make.js"),"./languages/md.js":t(()=>Promise.resolve().then(()=>(vbt(),ybt)),"./languages/md.js"),"./languages/pl.js":t(()=>Promise.resolve().then(()=>(jTr(),Dbt)),"./languages/pl.js"),"./languages/plain.js":t(()=>Promise.resolve().then(()=>(BTr(),Abt)),"./languages/plain.js"),"./languages/py.js":t(()=>Promise.resolve().then(()=>(UTr(),Ibt)),"./languages/py.js"),"./languages/regex.js":t(()=>Promise.resolve().then(()=>(zTr(),Fbt)),"./languages/regex.js"),"./languages/rs.js":t(()=>Promise.resolve().then(()=>($Tr(),Mbt)),"./languages/rs.js"),"./languages/sql.js":t(()=>Promise.resolve().then(()=>(JTr(),Bbt)),"./languages/sql.js"),"./languages/todo.js":t(()=>Promise.resolve().then(()=>(_bt(),ubt)),"./languages/todo.js"),"./languages/toml.js":t(()=>Promise.resolve().then(()=>(WTr(),zbt)),"./languages/toml.js"),"./languages/ts.js":t(()=>Promise.resolve().then(()=>(qTr(),Jbt)),"./languages/ts.js"),"./languages/uri.js":t(()=>Promise.resolve().then(()=>(VTr(),qbt)),"./languages/uri.js"),"./languages/xml.js":t(()=>Promise.resolve().then(()=>(Kvt(),Yvt)),"./languages/xml.js"),"./languages/yaml.js":t(()=>Promise.resolve().then(()=>(HTr(),Hbt)),"./languages/yaml.js")}),wvt={};async function eSt(s,o,f){try{let d,y,x={},A,F=[],W=0,G=typeof o=="string"?await(wvt[o]??(wvt[o]=KTr(`./languages/${o}.js`))):o,be=[...typeof o=="string"?G.default:o.sub];for(;W<s.length;){for(x.index=null,d=be.length;d-- >0;){if(y=be[d].expand?YTr[be[d].expand]:be[d],F[d]===void 0||F[d].match.index<W){if(y.match.lastIndex=W,A=y.match.exec(s),A===null){be.splice(d,1),F.splice(d,1);continue}F[d]={match:A,lastIndex:y.match.lastIndex}}F[d].match[0]&&(F[d].match.index<=x.index||x.index===null)&&(x={part:y,index:F[d].match.index,match:F[d].match[0],end:F[d].lastIndex})}if(x.index===null)break;f(s.slice(W,x.index),G.type),W=x.end,x.part.sub?await eSt(x.match,typeof x.part.sub=="string"?x.part.sub:typeof x.part.sub=="function"?x.part.sub(x.match):x.part,f):f(x.match,x.part.type)}f(s.slice(W,s.length),G.type)}catch{f(s)}}t(eSt,"F");var aBr=Dvt({"./themes/atom-dark.js":t(()=>Promise.resolve().then(()=>(GTr(),Kbt)),"./themes/atom-dark.js"),"./themes/default.js":t(()=>Promise.resolve().then(()=>(Qbt(),DOe)),"./themes/default.js"),"./themes/termcolor.js":t(()=>Promise.resolve().then(()=>(wOe(),Ybt)),"./themes/termcolor.js")}),XTr=Promise.resolve().then(()=>(Qbt(),DOe)),tSt=t(async(s,o)=>{let f="",d=(await XTr).default;return await eSt(s,o,(y,x)=>f+=x?`${d[x]??""}${y}\x1B[0m`:y),f},"ke");var nSt="\u2503",ZTr="\u276F",iSt={".tsx":"ts",".jsx":"js",".js":"js",".ts":"ts",".css":"css",".json":"json",".html":"html",".astro":"ts",".vue":"ts"},sSt=class extends W1{static{t(this,"ErrorStackSource")}cssFile=new URL("./error_stack_source/style.css",Ny);async toHTML(s){let o=s.frame;if(o.type==="native"||!o.source||!o.fileName)return"";let f=iSt[rSt(o.fileName)]??"plain",y=`<div class="line-highlight" style="margin-top: ${`${o.source.findIndex(A=>A.lineNumber===o.lineNumber)*24}px`}"></div>`,x=await Evt(o.source.map(A=>A.chunk).join(`
|
|
904
904
|
`),f,!0);return x=x.replace('<div class="shj-numbers">',`<div class="shj-numbers" style="counter-set: line ${o.source[0].lineNumber-1}">`),`<pre><code class="shj-lang-js">${y}${x}</code></pre>`}async toANSI(s){let o=s.frame;if(o.type==="native"||!o.source||!o.fileName)return"";let f=iSt[rSt(o.fileName)]??"plain",d=Math.max(...o.source.map(({lineNumber:F})=>F)),y=String(d).length,x=o.source.map(({chunk:F})=>F).join(`
|
|
905
905
|
`);return`
|
|
906
906
|
|