diff --git a/bin/cli.js b/bin/cli.js index 3a3ab6d7..a5c9ec80 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -1,4 +1,3 @@ #!/usr/bin/env node // eslint-disable-next-line import/export export * from './main.js'; -//# sourceMappingURL=cli.js.map \ No newline at end of file diff --git a/bin/cli.js.map b/bin/cli.js.map deleted file mode 100644 index d3c099f4..00000000 --- a/bin/cli.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,yCAAyC;AACzC,cAAc,WAAW,CAAC"} \ No newline at end of file diff --git a/bin/index.js b/bin/index.js index eeb35360..3718e408 100755 --- a/bin/index.js +++ b/bin/index.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={7969:e=>{const t=Symbol("arg flag");class ArgError extends Error{constructor(e,t){super(e);this.name="ArgError";this.code=t;Object.setPrototypeOf(this,ArgError.prototype)}}function arg(e,{argv:r=process.argv.slice(2),permissive:n=false,stopAtPositional:o=false}={}){if(!e){throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC")}const s={_:[]};const i={};const a={};for(const r of Object.keys(e)){if(!r){throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY")}if(r[0]!=="-"){throw new ArgError(`argument key must start with '-' but found: '${r}'`,"ARG_CONFIG_NONOPT_KEY")}if(r.length===1){throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${r}`,"ARG_CONFIG_NONAME_KEY")}if(typeof e[r]==="string"){i[r]=e[r];continue}let n=e[r];let o=false;if(Array.isArray(n)&&n.length===1&&typeof n[0]==="function"){const[e]=n;n=(t,r,n=[])=>{n.push(e(t,r,n[n.length-1]));return n};o=e===Boolean||e[t]===true}else if(typeof n==="function"){o=n===Boolean||n[t]===true}else{throw new ArgError(`type missing or not a function or valid array type: ${r}`,"ARG_CONFIG_VAD_TYPE")}if(r[1]!=="-"&&r.length>2){throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${r}`,"ARG_CONFIG_SHORTOPT_TOOLONG")}a[r]=[n,o]}for(let e=0,t=r.length;e0){s._=s._.concat(r.slice(e));break}if(t==="--"){s._=s._.concat(r.slice(e+1));break}if(t.length>1&&t[0]==="-"){const o=t[1]==="-"||t.length===2?[t]:t.slice(1).split("").map((e=>`-${e}`));for(let t=0;t1&&r[e+1][0]==="-"&&!(r[e+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(p===Number||typeof BigInt!=="undefined"&&p===BigInt))){const e=l===f?"":` (alias for ${f})`;throw new ArgError(`option requires argument: ${l}${e}`,"ARG_MISSING_REQUIRED_LONGARG")}s[f]=p(r[e+1],f,s[f]);++e}else{s[f]=p(u,f,s[f])}}}else{s._.push(t)}}return s}arg.flag=e=>{e[t]=true;return e};arg.COUNT=arg.flag(((e,t,r)=>(r||0)+1));arg.ArgError=ArgError;e.exports=arg},8877:e=>{function padWithZeros(e,t){var r=e.toString();while(r.length-1?s:i;var c=addZero(r.getHours());var l=addZero(r.getMinutes());var u=addZero(r.getSeconds());var f=padWithZeros(r.getMilliseconds(),3);var p=offset(r.getTimezoneOffset());var d=t.replace(/dd/g,n).replace(/MM/g,o).replace(/y{1,4}/g,a).replace(/hh/g,c).replace(/mm/g,l).replace(/ss/g,u).replace(/SSS/g,f).replace(/O/g,p);return d}function setDatePart(e,t,r,n){e["set"+(n?"":"UTC")+t](r)}function extractDateParts(t,r,n){var o=t.indexOf("O")<0;var s=false;var i=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){setDatePart(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){setDatePart(e,"Month",t-1,o);if(e.getMonth()!==t-1){s=true}}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){if(s){setDatePart(e,"Month",e.getMonth()-1,o)}setDatePart(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){setDatePart(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){setDatePart(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){setDatePart(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){setDatePart(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){if(t==="Z"){t=0}else{t=t.replace(":","")}var r=Math.abs(t);var n=(t>0?-1:1)*(r%100+Math.floor(r/100)*60);e.setUTCMinutes(e.getUTCMinutes()+n)}}];var a=i.reduce((function(e,t){if(t.pattern.test(e.regexp)){t.index=e.regexp.match(t.pattern).index;e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")}else{t.index=-1}return e}),{regexp:t,index:[]});var c=i.filter((function(e){return e.index>-1}));c.sort((function(e,t){return e.index-t.index}));var l=new RegExp(a.regexp);var u=l.exec(r);if(u){var f=n||e.exports.now();c.forEach((function(e,t){e.fn(f,u[t+1])}));return f}throw new Error("String '"+r+"' could not be parsed as '"+t+"'")}function parse(e,t,r){if(!e){throw new Error("pattern must be supplied")}return extractDateParts(e,t,r)}function now(){return new Date}e.exports=asString;e.exports.asString=asString;e.exports.parse=parse;e.exports.now=now;e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS";e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO";e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"},4468:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.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 useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){o=n}}));t.splice(o,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(1163)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1163:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(2134);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}s++;const o=createDebug.formatters[n];if(typeof o==="function"){const n=e[s];t=o.call(r,n);e.splice(s,1);s--}return t}));createDebug.formatArgs.call(r,e);const i=r.log||createDebug.log;i.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;o=createDebug.enabled(e)}return o},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let r=0;let n=0;let o=-1;let s=0;while(r"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},9592:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(4468)}else{e.exports=r(3606)}},3606:(e,t,r)=>{const n=r(2018);const o=r(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(1953);if(e&&(e.stderr||e).level>=2){t.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(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const o="[3"+(n<8?n:"8;5;"+n);const s=` ${o};1m${r} `;t[0]=s+t[0].split("\n").join("\n"+s);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},370:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(5914).mkdirsSync;const i=r(551).utimesMillisSync;const a=r(2442);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:o}=a.checkPathsSync(e,t,"copy");a.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(o,e,t,r)}function handleFilterAndCopy(e,t,r,i){if(i.filter&&!i.filter(t,r))return;const a=o.dirname(r);if(!n.existsSync(a))s(a);return startCopy(e,t,r,i)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,o){const s=o.dereference?n.statSync:n.lstatSync;const i=s(t);if(i.isDirectory())return onDir(i,e,t,r,o);else if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return onFile(i,e,t,r,o);else if(i.isSymbolicLink())return onLink(e,t,r,o)}function onFile(e,t,r,n,o){if(!t)return copyFile(e,r,n,o);return mayCopyFile(e,r,n,o)}function mayCopyFile(e,t,r,o){if(o.overwrite){n.unlinkSync(r);return copyFile(e,t,r,o)}else if(o.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,o){if(typeof n.copyFileSync==="function"){n.copyFileSync(t,r);n.chmodSync(r,e.mode);if(o.preserveTimestamps){return i(r,e.atime,e.mtime)}return}return copyFileFallback(e,t,r,o)}function copyFileFallback(e,t,o,s){const i=64*1024;const a=r(7034)(i);const c=n.openSync(t,"r");const l=n.openSync(o,"w",e.mode);let u=0;while(ucopyDirItem(n,e,t,r)))}function copyDirItem(e,t,r,n){const s=o.join(t,e);const i=o.join(r,e);const{destStat:c}=a.checkPathsSync(s,i,"copy");return startCopy(c,s,i,n)}function onLink(e,t,r,s){let i=n.readlinkSync(t);if(s.dereference){i=o.resolve(process.cwd(),i)}if(!e){return n.symlinkSync(i,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(i,r);throw e}if(s.dereference){e=o.resolve(process.cwd(),e)}if(a.isSrcSubdir(i,e)){throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&a.isSrcSubdir(e,i)){throw new Error(`Cannot overwrite '${e}' with '${i}'.`)}return copyLink(i,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},3437:(e,t,r)=>{e.exports={copySync:r(370)}},5046:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(5914).mkdirs;const i=r(4900).pathExists;const a=r(551).utimesMillis;const c=r(2442);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}c.checkPaths(e,t,"copy",((o,s)=>{if(o)return n(o);const{srcStat:i,destStat:a}=s;c.checkParentPaths(e,i,t,"copy",(o=>{if(o)return n(o);if(r.filter)return handleFilter(checkParentDir,a,e,t,r,n);return checkParentDir(a,e,t,r,n)}))}))}function checkParentDir(e,t,r,n,a){const c=o.dirname(r);i(c,((o,i)=>{if(o)return a(o);if(i)return startCopy(e,t,r,n,a);s(c,(o=>{if(o)return a(o);return startCopy(e,t,r,n,a)}))}))}function handleFilter(e,t,r,n,o,s){Promise.resolve(o.filter(r,n)).then((i=>{if(i)return e(t,r,n,o,s);return s()}),(e=>s(e)))}function startCopy(e,t,r,n,o){if(n.filter)return handleFilter(getStats,e,t,r,n,o);return getStats(e,t,r,n,o)}function getStats(e,t,r,o,s){const i=o.dereference?n.stat:n.lstat;i(t,((n,i)=>{if(n)return s(n);if(i.isDirectory())return onDir(i,e,t,r,o,s);else if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return onFile(i,e,t,r,o,s);else if(i.isSymbolicLink())return onLink(e,t,r,o,s)}))}function onFile(e,t,r,n,o,s){if(!t)return copyFile(e,r,n,o,s);return mayCopyFile(e,r,n,o,s)}function mayCopyFile(e,t,r,o,s){if(o.overwrite){n.unlink(r,(n=>{if(n)return s(n);return copyFile(e,t,r,o,s)}))}else if(o.errorOnExist){return s(new Error(`'${r}' already exists`))}else return s()}function copyFile(e,t,r,o,s){if(typeof n.copyFile==="function"){return n.copyFile(t,r,(t=>{if(t)return s(t);return setDestModeAndTimestamps(e,r,o,s)}))}return copyFileFallback(e,t,r,o,s)}function copyFileFallback(e,t,r,o,s){const i=n.createReadStream(t);i.on("error",(e=>s(e))).once("open",(()=>{const t=n.createWriteStream(r,{mode:e.mode});t.on("error",(e=>s(e))).on("open",(()=>i.pipe(t))).once("close",(()=>setDestModeAndTimestamps(e,r,o,s)))}))}function setDestModeAndTimestamps(e,t,r,o){n.chmod(t,e.mode,(n=>{if(n)return o(n);if(r.preserveTimestamps){return a(t,e.atime,e.mtime,o)}return o()}))}function onDir(e,t,r,n,o,s){if(!t)return mkDirAndCopy(e,r,n,o,s);if(t&&!t.isDirectory()){return s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`))}return copyDir(r,n,o,s)}function mkDirAndCopy(e,t,r,o,s){n.mkdir(r,(i=>{if(i)return s(i);copyDir(t,r,o,(t=>{if(t)return s(t);return n.chmod(r,e.mode,s)}))}))}function copyDir(e,t,r,o){n.readdir(e,((n,s)=>{if(n)return o(n);return copyDirItems(s,e,t,r,o)}))}function copyDirItems(e,t,r,n,o){const s=e.pop();if(!s)return o();return copyDirItem(e,s,t,r,n,o)}function copyDirItem(e,t,r,n,s,i){const a=o.join(r,t);const l=o.join(n,t);c.checkPaths(a,l,"copy",((t,o)=>{if(t)return i(t);const{destStat:c}=o;startCopy(c,a,l,s,(t=>{if(t)return i(t);return copyDirItems(e,r,n,s,i)}))}))}function onLink(e,t,r,s,i){n.readlink(t,((t,a)=>{if(t)return i(t);if(s.dereference){a=o.resolve(process.cwd(),a)}if(!e){return n.symlink(a,r,i)}else{n.readlink(r,((t,l)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(a,r,i);return i(t)}if(s.dereference){l=o.resolve(process.cwd(),l)}if(c.isSrcSubdir(a,l)){return i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`))}if(e.isDirectory()&&c.isSrcSubdir(l,a)){return i(new Error(`Cannot overwrite '${l}' with '${a}'.`))}return copyLink(a,r,i)}))}}))}function copyLink(e,t,r){n.unlink(t,(o=>{if(o)return r(o);return n.symlink(e,t,r)}))}e.exports=copy},5523:(e,t,r)=>{const n=r(7859).S;e.exports={copy:n(r(5046))}},8531:(e,t,r)=>{const n=r(7859).S;const o=r(7551);const s=r(6928);const i=r(5914);const a=r(858);const c=n((function emptyDir(e,t){t=t||function(){};o.readdir(e,((r,n)=>{if(r)return i.mkdirs(e,t);n=n.map((t=>s.join(e,t)));deleteItem();function deleteItem(){const e=n.pop();if(!e)return t();a.remove(e,(e=>{if(e)return t(e);deleteItem()}))}}))}));function emptyDirSync(e){let t;try{t=o.readdirSync(e)}catch(t){return i.mkdirsSync(e)}t.forEach((t=>{t=s.join(e,t);a.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:c,emptydir:c}},8524:(e,t,r)=>{const n=r(7859).S;const o=r(6928);const s=r(7551);const i=r(5914);const a=r(4900).pathExists;function createFile(e,t){function makeFile(){s.writeFile(e,"",(e=>{if(e)return t(e);t()}))}s.stat(e,((r,n)=>{if(!r&&n.isFile())return t();const s=o.dirname(e);a(s,((e,r)=>{if(e)return t(e);if(r)return makeFile();i.mkdirs(s,(e=>{if(e)return t(e);makeFile()}))}))}))}function createFileSync(e){let t;try{t=s.statSync(e)}catch(e){}if(t&&t.isFile())return;const r=o.dirname(e);if(!s.existsSync(r)){i.mkdirsSync(r)}s.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},6644:(e,t,r)=>{const n=r(8524);const o=r(390);const s=r(2127);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:o.createLink,createLinkSync:o.createLinkSync,ensureLink:o.createLink,ensureLinkSync:o.createLinkSync,createSymlink:s.createSymlink,createSymlinkSync:s.createSymlinkSync,ensureSymlink:s.createSymlink,ensureSymlinkSync:s.createSymlinkSync}},390:(e,t,r)=>{const n=r(7859).S;const o=r(6928);const s=r(7551);const i=r(5914);const a=r(4900).pathExists;function createLink(e,t,r){function makeLink(e,t){s.link(e,t,(e=>{if(e)return r(e);r(null)}))}a(t,((n,c)=>{if(n)return r(n);if(c)return r(null);s.lstat(e,(n=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}const s=o.dirname(t);a(s,((n,o)=>{if(n)return r(n);if(o)return makeLink(e,t);i.mkdirs(s,(n=>{if(n)return r(n);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){const r=s.existsSync(t);if(r)return undefined;try{s.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=o.dirname(t);const a=s.existsSync(n);if(a)return s.linkSync(e,t);i.mkdirsSync(n);return s.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},450:(e,t,r)=>{const n=r(6928);const o=r(7551);const s=r(4900).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return o.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const i=n.dirname(t);const a=n.join(i,e);return s(a,((t,s)=>{if(t)return r(t);if(s){return r(null,{toCwd:a,toDst:e})}else{return o.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(i,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=o.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const s=n.dirname(t);const i=n.join(s,e);r=o.existsSync(i);if(r){return{toCwd:i,toDst:e}}else{r=o.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(s,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},9180:(e,t,r)=>{const n=r(7551);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch(e){return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},2127:(e,t,r)=>{const n=r(7859).S;const o=r(6928);const s=r(7551);const i=r(5914);const a=i.mkdirs;const c=i.mkdirsSync;const l=r(450);const u=l.symlinkPaths;const f=l.symlinkPathsSync;const p=r(9180);const d=p.symlinkType;const h=p.symlinkTypeSync;const m=r(4900).pathExists;function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;m(t,((i,c)=>{if(i)return n(i);if(c)return n(null);u(e,t,((i,c)=>{if(i)return n(i);e=c.toDst;d(c.toCwd,r,((r,i)=>{if(r)return n(r);const c=o.dirname(t);m(c,((r,o)=>{if(r)return n(r);if(o)return s.symlink(e,t,i,n);a(c,(r=>{if(r)return n(r);s.symlink(e,t,i,n)}))}))}))}))}))}function createSymlinkSync(e,t,r){const n=s.existsSync(t);if(n)return undefined;const i=f(e,t);e=i.toDst;r=h(i.toCwd,r);const a=o.dirname(t);const l=s.existsSync(a);if(l)return s.symlinkSync(e,t,r);c(a);return s.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},3917:(e,t,r)=>{const n=r(7859).S;const o=r(7551);const s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof o[e]==="function"));Object.keys(o).forEach((e=>{if(e==="promises"){return}t[e]=o[e]}));s.forEach((e=>{t[e]=n(o[e])}));t.exists=function(e,t){if(typeof t==="function"){return o.exists(e,t)}return new Promise((t=>o.exists(e,t)))};t.read=function(e,t,r,n,s,i){if(typeof i==="function"){return o.read(e,t,r,n,s,i)}return new Promise(((i,a)=>{o.read(e,t,r,n,s,((e,t,r)=>{if(e)return a(e);i({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return o.write(e,t,...r)}return new Promise(((n,s)=>{o.write(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffer:r})}))}))};if(typeof o.realpath.native==="function"){t.realpath.native=n(o.realpath.native)}},8137:(e,t,r)=>{e.exports=Object.assign({},r(3917),r(3437),r(5523),r(8531),r(6644),r(1540),r(5914),r(5669),r(6587),r(6127),r(4900),r(858));const n=r(9896);if(Object.getOwnPropertyDescriptor(n,"promises")){Object.defineProperty(e.exports,"promises",{get(){return n.promises}})}},1540:(e,t,r)=>{const n=r(7859).S;const o=r(4578);o.outputJson=n(r(9158));o.outputJsonSync=r(2592);o.outputJSON=o.outputJson;o.outputJSONSync=o.outputJsonSync;o.writeJSON=o.writeJson;o.writeJSONSync=o.writeJsonSync;o.readJSON=o.readJson;o.readJSONSync=o.readJsonSync;e.exports=o},4578:(e,t,r)=>{const n=r(7859).S;const o=r(1926);e.exports={readJson:n(o.readFile),readJsonSync:o.readFileSync,writeJson:n(o.writeFile),writeJsonSync:o.writeFileSync}},2592:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(5914);const i=r(4578);function outputJsonSync(e,t,r){const a=o.dirname(e);if(!n.existsSync(a)){s.mkdirsSync(a)}i.writeJsonSync(e,t,r)}e.exports=outputJsonSync},9158:(e,t,r)=>{const n=r(6928);const o=r(5914);const s=r(4900).pathExists;const i=r(4578);function outputJson(e,t,r,a){if(typeof r==="function"){a=r;r={}}const c=n.dirname(e);s(c,((n,s)=>{if(n)return a(n);if(s)return i.writeJson(e,t,r,a);o.mkdirs(c,(n=>{if(n)return a(n);i.writeJson(e,t,r,a)}))}))}e.exports=outputJson},5914:(e,t,r)=>{const n=r(7859).S;const o=n(r(7360));const s=r(3274);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},3274:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(9201).invalidWin32Path;const i=parseInt("0777",8);function mkdirsSync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}let a=t.mode;const c=t.fs||n;if(process.platform==="win32"&&s(e)){const t=new Error(e+" contains invalid WIN32 path characters.");t.code="EINVAL";throw t}if(a===undefined){a=i&~process.umask()}if(!r)r=null;e=o.resolve(e);try{c.mkdirSync(e,a);r=r||e}catch(n){if(n.code==="ENOENT"){if(o.dirname(e)===e)throw n;r=mkdirsSync(o.dirname(e),t,r);mkdirsSync(e,t,r)}else{let t;try{t=c.statSync(e)}catch(e){throw n}if(!t.isDirectory())throw n}}return r}e.exports=mkdirsSync},7360:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(9201).invalidWin32Path;const i=parseInt("0777",8);function mkdirs(e,t,r,a){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}if(process.platform==="win32"&&s(e)){const t=new Error(e+" contains invalid WIN32 path characters.");t.code="EINVAL";return r(t)}let c=t.mode;const l=t.fs||n;if(c===undefined){c=i&~process.umask()}if(!a)a=null;r=r||function(){};e=o.resolve(e);l.mkdir(e,c,(n=>{if(!n){a=a||e;return r(null,a)}switch(n.code){case"ENOENT":if(o.dirname(e)===e)return r(n);mkdirs(o.dirname(e),t,((n,o)=>{if(n)r(n,o);else mkdirs(e,t,r,o)}));break;default:l.stat(e,((e,t)=>{if(e||!t.isDirectory())r(n,a);else r(null,a)}));break}}))}e.exports=mkdirs},9201:(e,t,r)=>{const n=r(6928);function getRootPath(e){e=n.normalize(n.resolve(e)).split(n.sep);if(e.length>0)return e[0];return null}const o=/[<>:"|?*]/;function invalidWin32Path(e){const t=getRootPath(e);e=e.replace(t,"");return o.test(e)}e.exports={getRootPath:getRootPath,invalidWin32Path:invalidWin32Path}},5669:(e,t,r)=>{e.exports={moveSync:r(586)}},586:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(3437).copySync;const i=r(858).removeSync;const a=r(5914).mkdirpSync;const c=r(2442);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:s}=c.checkPathsSync(e,t,"move");c.checkParentPathsSync(e,s,t,"move");a(o.dirname(t));return doRename(e,t,n)}function doRename(e,t,r){if(r){i(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};s(e,t,n);return i(e)}e.exports=moveSync},6587:(e,t,r)=>{const n=r(7859).S;e.exports={move:n(r(4374))}},4374:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(5523).copy;const i=r(858).remove;const a=r(5914).mkdirp;const c=r(4900).pathExists;const l=r(2442);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const s=r.overwrite||r.clobber||false;l.checkPaths(e,t,"move",((r,i)=>{if(r)return n(r);const{srcStat:c}=i;l.checkParentPaths(e,c,t,"move",(r=>{if(r)return n(r);a(o.dirname(t),(r=>{if(r)return n(r);return doRename(e,t,s,n)}))}))}))}function doRename(e,t,r,n){if(r){return i(t,(o=>{if(o)return n(o);return rename(e,t,r,n)}))}c(t,((o,s)=>{if(o)return n(o);if(s)return n(new Error("dest already exists."));return rename(e,t,r,n)}))}function rename(e,t,r,o){n.rename(e,t,(n=>{if(!n)return o();if(n.code!=="EXDEV")return o(n);return moveAcrossDevice(e,t,r,o)}))}function moveAcrossDevice(e,t,r,n){const o={overwrite:r,errorOnExist:true};s(e,t,o,(t=>{if(t)return n(t);return i(e,n)}))}e.exports=move},6127:(e,t,r)=>{const n=r(7859).S;const o=r(7551);const s=r(6928);const i=r(5914);const a=r(4900).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const c=s.dirname(e);a(c,((s,a)=>{if(s)return n(s);if(a)return o.writeFile(e,t,r,n);i.mkdirs(c,(s=>{if(s)return n(s);o.writeFile(e,t,r,n)}))}))}function outputFileSync(e,...t){const r=s.dirname(e);if(o.existsSync(r)){return o.writeFileSync(e,...t)}i.mkdirsSync(r);o.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},4900:(e,t,r)=>{const n=r(7859).z;const o=r(3917);function pathExists(e){return o.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:n(pathExists),pathExistsSync:o.existsSync}},858:(e,t,r)=>{const n=r(7859).S;const o=r(3997);e.exports={remove:n(o),removeSync:o.sync}},3997:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(2613);const i=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}s(e,"rimraf: missing path");s.strictEqual(typeof e,"string","rimraf: path should be a string");s.strictEqual(typeof r,"function","rimraf: callback function required");s(t,"rimraf: invalid options argument provided");s.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&nrimraf_(e,t,CB)),r)}if(o.code==="ENOENT")o=null}r(o)}))}function rimraf_(e,t,r){s(e);s(t);s(typeof r==="function");t.lstat(e,((n,o)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&i){return fixWinEPERM(e,t,n,r)}if(o&&o.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,(n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return i?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)}))}))}function fixWinEPERM(e,t,r,n){s(e);s(t);s(typeof n==="function");if(r){s(r instanceof Error)}t.chmod(e,438,(o=>{if(o){n(o.code==="ENOENT"?null:r)}else{t.stat(e,((o,s)=>{if(o){n(o.code==="ENOENT"?null:r)}else if(s.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}}))}}))}function fixWinEPERMSync(e,t,r){let n;s(e);s(t);if(r){s(r instanceof Error)}try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){s(e);s(t);if(r){s(r instanceof Error)}s(typeof n==="function");t.rmdir(e,(o=>{if(o&&(o.code==="ENOTEMPTY"||o.code==="EEXIST"||o.code==="EPERM")){rmkids(e,t,n)}else if(o&&o.code==="ENOTDIR"){n(r)}else{n(o)}}))}function rmkids(e,t,r){s(e);s(t);s(typeof r==="function");t.readdir(e,((n,s)=>{if(n)return r(n);let i=s.length;let a;if(i===0)return t.rmdir(e,r);s.forEach((n=>{rimraf(o.join(e,n),t,(n=>{if(a){return}if(n)return r(a=n);if(--i===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);s(e,"rimraf: missing path");s.strictEqual(typeof e,"string","rimraf: path should be a string");s(t,"rimraf: missing options");s.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&i){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return i?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){s(e);s(t);if(r){s(r instanceof Error)}try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){s(e);s(t);t.readdirSync(e).forEach((r=>rimrafSync(o.join(e,r),t)));if(i){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch(e){}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},7034:e=>{e.exports=function(e){if(typeof Buffer.allocUnsafe==="function"){try{return Buffer.allocUnsafe(e)}catch(t){return new Buffer(e)}}return new Buffer(e)}},2442:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=10;const i=5;const a=0;const c=process.versions.node.split(".");const l=Number.parseInt(c[0],10);const u=Number.parseInt(c[1],10);const f=Number.parseInt(c[2],10);function nodeSupportsBigInt(){if(l>s){return true}else if(l===s){if(u>i){return true}else if(u===i){if(f>=a){return true}}}return false}function getStats(e,t,r){if(nodeSupportsBigInt()){n.stat(e,{bigint:true},((e,o)=>{if(e)return r(e);n.stat(t,{bigint:true},((e,t)=>{if(e){if(e.code==="ENOENT")return r(null,{srcStat:o,destStat:null});return r(e)}return r(null,{srcStat:o,destStat:t})}))}))}else{n.stat(e,((e,o)=>{if(e)return r(e);n.stat(t,((e,t)=>{if(e){if(e.code==="ENOENT")return r(null,{srcStat:o,destStat:null});return r(e)}return r(null,{srcStat:o,destStat:t})}))}))}}function getStatsSync(e,t){let r,o;if(nodeSupportsBigInt()){r=n.statSync(e,{bigint:true})}else{r=n.statSync(e)}try{if(nodeSupportsBigInt()){o=n.statSync(t,{bigint:true})}else{o=n.statSync(t)}}catch(e){if(e.code==="ENOENT")return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:o}}function checkPaths(e,t,r,n){getStats(e,t,((o,s)=>{if(o)return n(o);const{srcStat:i,destStat:a}=s;if(a&&a.ino&&a.dev&&a.ino===i.ino&&a.dev===i.dev){return n(new Error("Source and destination must not be the same."))}if(i.isDirectory()&&isSrcSubdir(e,t)){return n(new Error(errMsg(e,t,r)))}return n(null,{srcStat:i,destStat:a})}))}function checkPathsSync(e,t,r){const{srcStat:n,destStat:o}=getStatsSync(e,t);if(o&&o.ino&&o.dev&&o.ino===n.ino&&o.dev===n.dev){throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:n,destStat:o}}function checkParentPaths(e,t,r,s,i){const a=o.resolve(o.dirname(e));const c=o.resolve(o.dirname(r));if(c===a||c===o.parse(c).root)return i();if(nodeSupportsBigInt()){n.stat(c,{bigint:true},((n,o)=>{if(n){if(n.code==="ENOENT")return i();return i(n)}if(o.ino&&o.dev&&o.ino===t.ino&&o.dev===t.dev){return i(new Error(errMsg(e,r,s)))}return checkParentPaths(e,t,c,s,i)}))}else{n.stat(c,((n,o)=>{if(n){if(n.code==="ENOENT")return i();return i(n)}if(o.ino&&o.dev&&o.ino===t.ino&&o.dev===t.dev){return i(new Error(errMsg(e,r,s)))}return checkParentPaths(e,t,c,s,i)}))}}function checkParentPathsSync(e,t,r,s){const i=o.resolve(o.dirname(e));const a=o.resolve(o.dirname(r));if(a===i||a===o.parse(a).root)return;let c;try{if(nodeSupportsBigInt()){c=n.statSync(a,{bigint:true})}else{c=n.statSync(a)}}catch(e){if(e.code==="ENOENT")return;throw e}if(c.ino&&c.dev&&c.ino===t.ino&&c.dev===t.dev){throw new Error(errMsg(e,r,s))}return checkParentPathsSync(e,t,a,s)}function isSrcSubdir(e,t){const r=o.resolve(e).split(o.sep).filter((e=>e));const n=o.resolve(t).split(o.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},551:(e,t,r)=>{const n=r(7551);const o=r(857);const s=r(6928);function hasMillisResSync(){let e=s.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));e=s.join(o.tmpdir(),e);const t=new Date(1435410243862);n.writeFileSync(e,"https://github.com/jprichardson/node-fs-extra/pull/141");const r=n.openSync(e,"r+");n.futimesSync(r,t,t);n.closeSync(r);return n.statSync(e).mtime>1435410243e3}function hasMillisRes(e){let t=s.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));t=s.join(o.tmpdir(),t);const r=new Date(1435410243862);n.writeFile(t,"https://github.com/jprichardson/node-fs-extra/pull/141",(o=>{if(o)return e(o);n.open(t,"r+",((o,s)=>{if(o)return e(o);n.futimes(s,r,r,(r=>{if(r)return e(r);n.close(s,(r=>{if(r)return e(r);n.stat(t,((t,r)=>{if(t)return e(t);e(null,r.mtime>1435410243e3)}))}))}))}))}))}function timeRemoveMillis(e){if(typeof e==="number"){return Math.floor(e/1e3)*1e3}else if(e instanceof Date){return new Date(Math.floor(e.getTime()/1e3)*1e3)}else{throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}}function utimesMillis(e,t,r,o){n.open(e,"r+",((e,s)=>{if(e)return o(e);n.futimes(s,t,r,(e=>{n.close(s,(t=>{if(o)o(e||t)}))}))}))}function utimesMillisSync(e,t,r){const o=n.openSync(e,"r+");n.futimesSync(o,t,r);return n.closeSync(o)}e.exports={hasMillisRes:hasMillisRes,hasMillisResSync:hasMillisResSync,timeRemoveMillis:timeRemoveMillis,utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},1403:e=>{e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7551:(e,t,r)=>{var n=r(9896);var o=r(4538);var s=r(2611);var i=r(1403);var a=r(9023);var c;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var u=noop;if(a.debuglog)u=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))u=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[c]){var f=global[c]||[];publishQueue(n,f);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,l,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,l,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){u(n[c]);r(2613).equal(n[c].length,0)}))}}if(!global[c]){publishQueue(global,n[c])}e.exports=patch(i(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){o(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,o){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,o){if(typeof n==="function")o=n,n=null;return go$writeFile(e,t,n,o);function go$writeFile(e,t,n,o,s){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,o],r,s||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,o){if(typeof r==="function")o=r,r=null;return go$appendFile(e,t,r,o);function go$appendFile(e,t,r,o,s){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,o],n,s||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var i=e.copyFile;if(i)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,o){return i(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],s,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var a=e.readdir;e.readdir=readdir;var c=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=c.test(process.version)?function go$readdir(e,t,r,n){return a(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return a(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,o){return function(s,i){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([n,[e,t,r],s,o||Date.now(),Date.now()]);else{if(i&&i.sort)i.sort();if(typeof r==="function")r.call(this,s,i)}}}}if(process.version.substr(0,4)==="v0.8"){var l=s(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var u=e.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return u.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var h=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,o){return h(e,t,r,(function(s,i){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,t,r,n],s,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){u("ENQUEUE",e[0].name,e[1]);n[c].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var t=0;t2){n[c][t][3]=e;n[c][t][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(n[c].length===0)return;var e=n[c].shift();var t=e[0];var r=e[1];var o=e[2];var s=e[3];var i=e[4];if(s===undefined){u("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-s>=6e4){u("TIMEOUT",t.name,r);var a=r.pop();if(typeof a==="function")a.call(null,o)}else{var l=Date.now()-i;var f=Math.max(i-s,1);var d=Math.min(f*1.2,100);if(l>=d){u("RETRY",t.name,r);t.apply(null,r.concat([s]))}else{n[c].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},2611:(e,t,r)=>{var n=r(2203).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var o=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var i=0,a=s.length;ithis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){o._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){o.emit("error",e);o.readable=false;return}o.fd=t;o.emit("open",t);o._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var o=Object.keys(r);for(var s=0,i=o.length;s= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},4538:(e,t,r)=>{var n=r(9140);var o=process.cwd;var s=null;var i=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=o.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,a)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(i==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,o){var s=Date.now();var i=0;t(r,n,(function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM"||a.code==="EBUSY")&&Date.now()-s<6e4){setTimeout((function(){e.stat(n,(function(e,s){if(e&&e.code==="ENOENT")t(r,n,CB);else o(a)}))}),i);if(i<100)i+=10;return}if(o)o(a)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,o,s,i,a){var c;if(a&&typeof a==="function"){var l=0;c=function(u,f,p){if(u&&u.code==="EAGAIN"&&l<10){l++;return t.call(e,r,n,o,s,i,c)}a.apply(this,arguments)}}return t.call(e,r,n,o,s,i,c)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,o,s,i){var a=0;while(true){try{return t.call(e,r,n,o,s,i)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,o){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(o)o(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(o)o(t||e)}))}))}))};e.lchmodSync=function(t,r){var o=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var s=true;var i;try{i=e.fchmodSync(o,r);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return i}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,o,s){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(s)s(t);return}e.futimes(n,r,o,(function(t){e.close(n,(function(e){if(s)s(t||e)}))}))}))};e.lutimesSync=function(t,r,o){var s=e.openSync(t,n.O_SYMLINK);var i;var a=true;try{i=e.futimesSync(s,r,o);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return i}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,o){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,o,s){return t.call(e,r,n,o,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,o){try{return t.call(e,r,n,o)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,o){if(typeof n==="function"){o=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(o)o.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var o=n?t.call(e,r,n):t.call(e,r);if(o){if(o.uid<0)o.uid+=4294967296;if(o.gid<0)o.gid+=4294967296}return o}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},1330:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const o=t.indexOf("--");return n!==-1&&(o===-1||n{var n;try{n=r(7551)}catch(e){n=r(9896)}function readFile(e,t,r){if(r==null){r=t;t={}}if(typeof t==="string"){t={encoding:t}}t=t||{};var o=t.fs||n;var s=true;if("throws"in t){s=t.throws}o.readFile(e,t,(function(n,o){if(n)return r(n);o=stripBom(o);var i;try{i=JSON.parse(o,t?t.reviver:null)}catch(t){if(s){t.message=e+": "+t.message;return r(t)}else{return r(null,null)}}r(null,i)}))}function readFileSync(e,t){t=t||{};if(typeof t==="string"){t={encoding:t}}var r=t.fs||n;var o=true;if("throws"in t){o=t.throws}try{var s=r.readFileSync(e,t);s=stripBom(s);return JSON.parse(s,t.reviver)}catch(t){if(o){t.message=e+": "+t.message;throw t}else{return null}}}function stringify(e,t){var r;var n="\n";if(typeof t==="object"&&t!==null){if(t.spaces){r=t.spaces}if(t.EOL){n=t.EOL}}var o=JSON.stringify(e,t?t.replacer:null,r);return o.replace(/\n/g,n)+n}function writeFile(e,t,r,o){if(o==null){o=r;r={}}r=r||{};var s=r.fs||n;var i="";try{i=stringify(t,r)}catch(e){if(o)o(e,null);return}s.writeFile(e,i,r,o)}function writeFileSync(e,t,r){r=r||{};var o=r.fs||n;var s=stringify(t,r);return o.writeFileSync(e,s,r)}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");e=e.replace(/^\uFEFF/,"");return e}var o={readFile:readFile,readFileSync:readFileSync,writeFile:writeFile,writeFileSync:writeFileSync};e.exports=o},709:(e,t,r)=>{const n=r(2513);const o=r(5557);class SerDe{constructor(){const e={__LOG4JS_undefined__:undefined,__LOG4JS_NaN__:Number("abc"),__LOG4JS_Infinity__:1/0,"__LOG4JS_-Infinity__":-1/0};this.deMap=e;this.serMap={};Object.keys(this.deMap).forEach((e=>{const t=this.deMap[e];this.serMap[t]=e}))}canSerialise(e){if(typeof e==="string")return false;return e in this.serMap}serialise(e){if(this.canSerialise(e))return this.serMap[e];return e}canDeserialise(e){return e in this.deMap}deserialise(e){if(this.canDeserialise(e))return this.deMap[e];return e}}const s=new SerDe;class LoggingEvent{constructor(e,t,r,n,o,s){this.startTime=new Date;this.categoryName=e;this.data=r;this.level=t;this.context=Object.assign({},n);this.pid=process.pid;this.error=s;if(typeof o!=="undefined"){if(!o||typeof o!=="object"||Array.isArray(o))throw new TypeError("Invalid location type passed to LoggingEvent constructor");this.constructor._getLocationKeys().forEach((e=>{if(typeof o[e]!=="undefined")this[e]=o[e]}))}}static _getLocationKeys(){return["fileName","lineNumber","columnNumber","callStack","className","functionName","functionAlias","callerName"]}serialise(){return n.stringify(this,((e,t)=>{if(t instanceof Error){t=Object.assign({message:t.message,stack:t.stack},t)}return s.serialise(t)}))}static deserialise(e){let t;try{const r=n.parse(e,((e,t)=>{if(t&&t.message&&t.stack){const e=new Error(t);Object.keys(t).forEach((r=>{e[r]=t[r]}));t=e}return s.deserialise(t)}));this._getLocationKeys().forEach((e=>{if(typeof r[e]!=="undefined"){if(!r.location)r.location={};r.location[e]=r[e]}}));t=new LoggingEvent(r.categoryName,o.getLevel(r.level.levelStr),r.data,r.context,r.location,r.error);t.startTime=new Date(r.startTime);t.pid=r.pid;if(r.cluster){t.cluster=r.cluster}}catch(r){t=new LoggingEvent("log4js",o.ERROR,["Unable to parse log:",e,"because: ",r])}return t}}e.exports=LoggingEvent},2095:e=>{function maxFileSizeUnitTransform(e){if(typeof e==="number"&&Number.isInteger(e)){return e}const t={K:1024,M:1024*1024,G:1024*1024*1024};const r=Object.keys(t);const n=e.slice(-1).toLocaleUpperCase();const o=e.slice(0,-1).trim();if(r.indexOf(n)<0||!Number.isInteger(Number(o))){throw Error(`maxLogSize: "${e}" is invalid`)}else{return o*t[n]}}function adapter(e,t){const r=Object.assign({},t);Object.keys(e).forEach((n=>{if(r[n]){r[n]=e[n](t[n])}}));return r}function fileAppenderAdapter(e){const t={maxLogSize:maxFileSizeUnitTransform};return adapter(t,e)}const t={dateFile:fileAppenderAdapter,file:fileAppenderAdapter,fileSync:fileAppenderAdapter};e.exports.modifyConfig=e=>t[e.type]?t[e.type](e):e},777:(e,t,r)=>{const n=r(9592)("log4js:categoryFilter");function categoryFilter(e,t){if(typeof e==="string")e=[e];return r=>{n(`Checking ${r.categoryName} against ${e}`);if(e.indexOf(r.categoryName)===-1){n("Not excluded, sending to appender");t(r)}}}function configure(e,t,r){const n=r(e.appender);return categoryFilter(e.exclude,n)}e.exports.configure=configure},6318:e=>{const t=console.log.bind(console);function consoleAppender(e,r){return n=>{t(e(n,r))}}function configure(e,t){let r=t.colouredLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}return consoleAppender(r,e.timezoneOffset)}e.exports.configure=configure},5697:(e,t,r)=>{const n=r(9055);const o=r(857);const s=o.EOL;function openTheStream(e,t,r){const o=new n.DateRollingFileStream(e,t,r);o.on("error",(t=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",e,t)}));o.on("drain",(()=>{process.emit("log4js:pause",false)}));return o}function appender(e,t,r,n,o){n.maxSize=n.maxLogSize;const i=openTheStream(e,t,n);const app=function(e){if(!i.writable){return}if(!i.write(r(e,o)+s,"utf8")){process.emit("log4js:pause",true)}};app.shutdown=function(e){i.end("","utf-8",e)};return app}function configure(e,t){let r=t.basicLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}if(!e.alwaysIncludePattern){e.alwaysIncludePattern=false}e.mode=e.mode||384;return appender(e.filename,e.pattern,r,e,e.timezoneOffset)}e.exports.configure=configure},173:(e,t,r)=>{const n=r(9592)("log4js:file");const o=r(6928);const s=r(9055);const i=r(857);const a=i.EOL;let c=false;const l=new Set;function mainSighupHandler(){l.forEach((e=>{e.sighupHandler()}))}function fileAppender(e,t,r,u,f,p){if(typeof e!=="string"||e.length===0){throw new Error(`Invalid filename: ${e}`)}else if(e.endsWith(o.sep)){throw new Error(`Filename is a directory: ${e}`)}else if(e.indexOf(`~${o.sep}`)===0){e=e.replace("~",i.homedir())}e=o.normalize(e);u=!u&&u!==0?5:u;n("Creating file appender (",e,", ",r,", ",u,", ",f,", ",p,")");function openTheStream(e,t,r,n){const o=new s.RollingFileStream(e,t,r,n);o.on("error",(t=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",e,t)}));o.on("drain",(()=>{process.emit("log4js:pause",false)}));return o}let d=openTheStream(e,r,u,f);const app=function(e){if(!d.writable){return}if(f.removeColor===true){const t=/\x1b[[0-9;]*m/g;e.data=e.data.map((e=>{if(typeof e==="string")return e.replace(t,"");return e}))}if(!d.write(t(e,p)+a,"utf8")){process.emit("log4js:pause",true)}};app.reopen=function(){d.end((()=>{d=openTheStream(e,r,u,f)}))};app.sighupHandler=function(){n("SIGHUP handler called.");app.reopen()};app.shutdown=function(e){l.delete(app);if(l.size===0&&c){process.removeListener("SIGHUP",mainSighupHandler);c=false}d.end("","utf-8",e)};l.add(app);if(!c){process.on("SIGHUP",mainSighupHandler);c=true}return app}function configure(e,t){let r=t.basicLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}e.mode=e.mode||384;return fileAppender(e.filename,r,e.maxLogSize,e.backups,e,e.timezoneOffset)}e.exports.configure=configure},3842:(e,t,r)=>{const n=r(9592)("log4js:fileSync");const o=r(6928);const s=r(9896);const i=r(857);const a=i.EOL;function touchFile(e,t){const mkdir=e=>{try{return s.mkdirSync(e,{recursive:true})}catch(t){if(t.code==="ENOENT"){mkdir(o.dirname(e));return mkdir(e)}if(t.code!=="EEXIST"&&t.code!=="EROFS"){throw t}else{try{if(s.statSync(e).isDirectory()){return e}throw t}catch(e){throw t}}}};mkdir(o.dirname(e));s.appendFileSync(e,"",{mode:t.mode,flag:t.flags})}class RollingFileSync{constructor(e,t,r,o){n("In RollingFileStream");if(t<0){throw new Error(`maxLogSize (${t}) should be > 0`)}this.filename=e;this.size=t;this.backups=r;this.options=o;this.currentSize=0;function currentFileSize(e){let t=0;try{t=s.statSync(e).size}catch(t){touchFile(e,o)}return t}this.currentSize=currentFileSize(this.filename)}shouldRoll(){n("should roll with current size %d, and max size %d",this.currentSize,this.size);return this.currentSize>=this.size}roll(e){const t=this;const r=new RegExp(`^${o.basename(e)}`);function justTheseFiles(e){return r.test(e)}function index(t){return parseInt(t.slice(`${o.basename(e)}.`.length),10)||0}function byIndex(e,t){return index(e)-index(t)}function increaseFileIndex(r){const i=index(r);n(`Index of ${r} is ${i}`);if(t.backups===0){s.truncateSync(e,0)}else if(i ${e}.${i+1}`);s.renameSync(o.join(o.dirname(e),r),`${e}.${i+1}`)}}function renameTheFiles(){n("Renaming the old files");const t=s.readdirSync(o.dirname(e));t.filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex)}n("Rolling, rolling, rolling");renameTheFiles()}write(e,t){const r=this;function writeTheChunk(){n("writing the chunk to the file");r.currentSize+=e.length;s.appendFileSync(r.filename,e)}n("in write");if(this.shouldRoll()){this.currentSize=0;this.roll(this.filename)}writeTheChunk()}}function fileAppender(e,t,r,c,l,u){if(typeof e!=="string"||e.length===0){throw new Error(`Invalid filename: ${e}`)}else if(e.endsWith(o.sep)){throw new Error(`Filename is a directory: ${e}`)}else if(e.indexOf(`~${o.sep}`)===0){e=e.replace("~",i.homedir())}e=o.normalize(e);c=!c&&c!==0?5:c;n("Creating fileSync appender (",e,", ",r,", ",c,", ",l,", ",u,")");function openTheStream(e,t,r){let n;if(t){n=new RollingFileSync(e,t,r,l)}else{n=(e=>{touchFile(e,l);return{write(t){s.appendFileSync(e,t)}}})(e)}return n}const f=openTheStream(e,r,c);return e=>{f.write(t(e,u)+a)}}function configure(e,t){let r=t.basicLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}const n={flags:e.flags||"a",encoding:e.encoding||"utf8",mode:e.mode||384};return fileAppender(e.filename,r,e.maxLogSize,e.backups,n,e.timezoneOffset)}e.exports.configure=configure},4975:(t,r,n)=>{const o=n(6928);const s=n(9592)("log4js:appenders");const i=n(7306);const a=n(5960);const c=n(5557);const l=n(8083);const u=n(2095);const f=new Map;f.set("console",n(6318));f.set("stdout",n(8564));f.set("stderr",n(1659));f.set("logLevelFilter",n(7953));f.set("categoryFilter",n(777));f.set("noLogFilter",n(1054));f.set("file",n(173));f.set("dateFile",n(5697));f.set("fileSync",n(3842));f.set("tcp",n(7968));const p=new Map;const tryLoading=(t,r)=>{let n;try{const r=`${t}.cjs`;n=e(import.meta.url).resolve(r);s("Loading module from ",r)}catch(e){n=t;s("Loading module from ",t)}try{return e(import.meta.url)(n)}catch(e){i.throwExceptionIf(r,e.code!=="MODULE_NOT_FOUND",`appender "${t}" could not be loaded (error was: ${e})`);return undefined}};const loadAppenderModule=(t,r)=>f.get(t)||tryLoading(`./${t}`,r)||tryLoading(t,r)||e(import.meta.url).main&&e(import.meta.url).main.filename&&tryLoading(o.join(o.dirname(e(import.meta.url).main.filename),t),r)||tryLoading(o.join(process.cwd(),t),r);const d=new Set;const getAppender=(e,t)=>{if(p.has(e))return p.get(e);if(!t.appenders[e])return false;if(d.has(e))throw new Error(`Dependency loop detected for appender ${e}.`);d.add(e);s(`Creating appender ${e}`);const r=createAppender(e,t);d.delete(e);p.set(e,r);return r};const createAppender=(e,t)=>{const r=t.appenders[e];const o=r.type.configure?r.type:loadAppenderModule(r.type,t);i.throwExceptionIf(t,i.not(o),`appender "${e}" is not valid (type "${r.type}" could not be found)`);if(o.appender){process.emitWarning(`Appender ${r.type} exports an appender function.`,"DeprecationWarning","log4js-node-DEP0001");s("[log4js-node-DEP0001]",`DEPRECATION: Appender ${r.type} exports an appender function.`)}if(o.shutdown){process.emitWarning(`Appender ${r.type} exports a shutdown function.`,"DeprecationWarning","log4js-node-DEP0002");s("[log4js-node-DEP0002]",`DEPRECATION: Appender ${r.type} exports a shutdown function.`)}s(`${e}: clustering.isMaster ? ${a.isMaster()}`);s(`${e}: appenderModule is ${n(9023).inspect(o)}`);return a.onlyOnMaster((()=>{s(`calling appenderModule.configure for ${e} / ${r.type}`);return o.configure(u.modifyConfig(r),l,(e=>getAppender(e,t)),c)}),(()=>{}))};const setup=e=>{p.clear();d.clear();if(!e){return}const t=[];Object.values(e.categories).forEach((e=>{t.push(...e.appenders)}));Object.keys(e.appenders).forEach((r=>{if(t.includes(r)||e.appenders[r].type==="tcp-server"||e.appenders[r].type==="multiprocess"){getAppender(r,e)}}))};const init=()=>{setup()};init();i.addListener((e=>{i.throwExceptionIf(e,i.not(i.anObject(e.appenders)),'must have a property "appenders" of type object.');const t=Object.keys(e.appenders);i.throwExceptionIf(e,i.not(t.length),"must define at least one appender.");t.forEach((t=>{i.throwExceptionIf(e,i.not(e.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)}))}));i.addListener(setup);t.exports=p;t.exports.init=init},7953:e=>{function logLevelFilter(e,t,r,n){const o=n.getLevel(e);const s=n.getLevel(t,n.FATAL);return e=>{const t=e.level;if(o.isLessThanOrEqualTo(t)&&s.isGreaterThanOrEqualTo(t)){r(e)}}}function configure(e,t,r,n){const o=r(e.appender);return logLevelFilter(e.level,e.maxLevel,o,n)}e.exports.configure=configure},1054:(e,t,r)=>{const n=r(9592)("log4js:noLogFilter");function removeNullOrEmptyRegexp(e){const t=e.filter((e=>e!=null&&e!==""));return t}function noLogFilter(e,t){return r=>{n(`Checking data: ${r.data} against filters: ${e}`);if(typeof e==="string"){e=[e]}e=removeNullOrEmptyRegexp(e);const o=new RegExp(e.join("|"),"i");if(e.length===0||r.data.findIndex((e=>o.test(e)))<0){n("Not excluded, sending to appender");t(r)}}}function configure(e,t,r){const n=r(e.appender);return noLogFilter(e.exclude,n)}e.exports.configure=configure},6460:(e,t,r)=>{const n=r(9592)("log4js:recording");const o=[];function configure(){return function(e){n(`received logEvent, number of events now ${o.length+1}`);n("log event was ",e);o.push(e)}}function replay(){return o.slice()}function reset(){o.length=0}e.exports={configure:configure,replay:replay,playback:replay,reset:reset,erase:reset}},1659:e=>{function stderrAppender(e,t){return r=>{process.stderr.write(`${e(r,t)}\n`)}}function configure(e,t){let r=t.colouredLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}return stderrAppender(r,e.timezoneOffset)}e.exports.configure=configure},8564:(e,t)=>{function stdoutAppender(e,t){return r=>{process.stdout.write(`${e(r,t)}\n`)}}function configure(e,t){let r=t.colouredLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}return stdoutAppender(r,e.timezoneOffset)}t.configure=configure},7968:(e,t,r)=>{const n=r(9592)("log4js:tcp");const o=r(9278);function appender(e,t){let r=false;const s=[];let i;let a=3;let c="__LOG4JS__";function write(e){n("Writing log event to socket");r=i.write(`${t(e)}${c}`,"utf8")}function emptyBuffer(){let e;n("emptying buffer");while(e=s.shift()){write(e)}}function createSocket(){n(`appender creating socket to ${e.host||"localhost"}:${e.port||5e3}`);c=`${e.endMsg||"__LOG4JS__"}`;i=o.createConnection(e.port||5e3,e.host||"localhost");i.on("connect",(()=>{n("socket connected");emptyBuffer();r=true}));i.on("drain",(()=>{n("drain event received, emptying buffer");r=true;emptyBuffer()}));i.on("timeout",i.end.bind(i));i.on("error",(e=>{n("connection error",e);r=false;emptyBuffer()}));i.on("close",createSocket)}createSocket();function log(e){if(r){write(e)}else{n("buffering log event because it cannot write at the moment");s.push(e)}}log.shutdown=function(e){n("shutdown called");if(s.length&&a){n("buffer has items, waiting 100ms to empty");a-=1;setTimeout((()=>{log.shutdown(e)}),100)}else{i.removeAllListeners("close");i.end(e)}};return log}function configure(e,t){n(`configure with config = ${e}`);let layout=function(e){return e.serialise()};if(e.layout){layout=t.layout(e.layout.type,e.layout)}return appender(e,layout)}e.exports.configure=configure},9878:(e,t,r)=>{const n=r(9592)("log4js:categories");const o=r(7306);const s=r(5557);const i=r(4975);const a=new Map;function inheritFromParent(e,t,r){if(t.inherit===false)return;const n=r.lastIndexOf(".");if(n<0)return;const o=r.slice(0,n);let s=e.categories[o];if(!s){s={inherit:true,appenders:[]}}inheritFromParent(e,s,o);if(!e.categories[o]&&s.appenders&&s.appenders.length&&s.level){e.categories[o]=s}t.appenders=t.appenders||[];t.level=t.level||s.level;s.appenders.forEach((e=>{if(!t.appenders.includes(e)){t.appenders.push(e)}}));t.parent=s}function addCategoryInheritance(e){if(!e.categories)return;const t=Object.keys(e.categories);t.forEach((t=>{const r=e.categories[t];inheritFromParent(e,r,t)}))}o.addPreProcessingListener((e=>addCategoryInheritance(e)));o.addListener((e=>{o.throwExceptionIf(e,o.not(o.anObject(e.categories)),'must have a property "categories" of type object.');const t=Object.keys(e.categories);o.throwExceptionIf(e,o.not(t.length),"must define at least one category.");t.forEach((t=>{const r=e.categories[t];o.throwExceptionIf(e,[o.not(r.appenders),o.not(r.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`);o.throwExceptionIf(e,o.not(Array.isArray(r.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`);o.throwExceptionIf(e,o.not(r.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`);if(Object.prototype.hasOwnProperty.call(r,"enableCallStack")){o.throwExceptionIf(e,typeof r.enableCallStack!=="boolean",`category "${t}" is not valid (enableCallStack must be boolean type)`)}r.appenders.forEach((r=>{o.throwExceptionIf(e,o.not(i.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)}));o.throwExceptionIf(e,o.not(s.getLevel(r.level)),`category "${t}" is not valid (level "${r.level}" not recognised;`+` valid levels are ${s.levels.join(", ")})`)}));o.throwExceptionIf(e,o.not(e.categories.default),'must define a "default" category.')}));const setup=e=>{a.clear();if(!e){return}const t=Object.keys(e.categories);t.forEach((t=>{const r=e.categories[t];const o=[];r.appenders.forEach((e=>{o.push(i.get(e));n(`Creating category ${t}`);a.set(t,{appenders:o,level:s.getLevel(r.level),enableCallStack:r.enableCallStack||false})}))}))};const init=()=>{setup()};init();o.addListener(setup);const configForCategory=e=>{n(`configForCategory: searching for config for ${e}`);if(a.has(e)){n(`configForCategory: ${e} exists in config, returning it`);return a.get(e)}let t;if(e.indexOf(".")>0){n(`configForCategory: ${e} has hierarchy, cloning from parents`);t={...configForCategory(e.slice(0,e.lastIndexOf(".")))}}else{if(!a.has("default")){setup({categories:{default:{appenders:["out"],level:"OFF"}}})}n("configForCategory: cloning default category");t={...a.get("default")}}a.set(e,t);return t};const appendersForCategory=e=>configForCategory(e).appenders;const getLevelForCategory=e=>configForCategory(e).level;const setLevelForCategory=(e,t)=>{configForCategory(e).level=t};const getEnableCallStackForCategory=e=>configForCategory(e).enableCallStack===true;const setEnableCallStackForCategory=(e,t)=>{configForCategory(e).enableCallStack=t};e.exports=a;e.exports=Object.assign(e.exports,{appendersForCategory:appendersForCategory,getLevelForCategory:getLevelForCategory,setLevelForCategory:setLevelForCategory,getEnableCallStackForCategory:getEnableCallStackForCategory,setEnableCallStackForCategory:setEnableCallStackForCategory,init:init})},5960:(e,t,r)=>{const n=r(9592)("log4js:clustering");const o=r(709);const s=r(7306);let i=false;let a=null;try{a=r(9907)}catch(e){n("cluster module not present");i=true}const c=[];let l=false;let u="NODE_APP_INSTANCE";const isPM2Master=()=>l&&process.env[u]==="0";const isMaster=()=>i||a&&a.isMaster||isPM2Master();const sendToListeners=e=>{c.forEach((t=>t(e)))};const receiver=(e,t)=>{n("cluster message received from worker ",e,": ",t);if(e.topic&&e.data){t=e;e=undefined}if(t&&t.topic&&t.topic==="log4js:message"){n("received message: ",t.data);const e=o.deserialise(t.data);sendToListeners(e)}};if(!i){s.addListener((e=>{c.length=0;({pm2:l,disableClustering:i,pm2InstanceVar:u="NODE_APP_INSTANCE"}=e);n(`clustering disabled ? ${i}`);n(`cluster.isMaster ? ${a&&a.isMaster}`);n(`pm2 enabled ? ${l}`);n(`pm2InstanceVar = ${u}`);n(`process.env[${u}] = ${process.env[u]}`);if(l){process.removeListener("message",receiver)}if(a&&a.removeListener){a.removeListener("message",receiver)}if(i||e.disableClustering){n("Not listening for cluster messages, because clustering disabled.")}else if(isPM2Master()){n("listening for PM2 broadcast messages");process.on("message",receiver)}else if(a&&a.isMaster){n("listening for cluster messages");a.on("message",receiver)}else{n("not listening for messages, because we are not a master process")}}))}e.exports={onlyOnMaster:(e,t)=>isMaster()?e():t,isMaster:isMaster,send:e=>{if(isMaster()){sendToListeners(e)}else{if(!l){e.cluster={workerId:a.worker.id,worker:process.pid}}process.send({topic:"log4js:message",data:e.serialise()})}},onMessage:e=>{c.push(e)}}},7306:(e,t,r)=>{const n=r(9023);const o=r(9592)("log4js:configuration");const s=[];const i=[];const not=e=>!e;const anObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const validIdentifier=e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e);const anInteger=e=>e&&typeof e==="number"&&Number.isInteger(e);const addListener=e=>{i.push(e);o(`Added listener, now ${i.length} listeners`)};const addPreProcessingListener=e=>{s.push(e);o(`Added pre-processing listener, now ${s.length} listeners`)};const throwExceptionIf=(e,t,r)=>{const o=Array.isArray(t)?t:[t];o.forEach((t=>{if(t){throw new Error(`Problem with log4js configuration: (${n.inspect(e,{depth:5})}) - ${r}`)}}))};const configure=e=>{o("New configuration to be validated: ",e);throwExceptionIf(e,not(anObject(e)),"must be an object.");o(`Calling pre-processing listeners (${s.length})`);s.forEach((t=>t(e)));o("Configuration pre-processing finished.");o(`Calling configuration listeners (${i.length})`);i.forEach((t=>t(e)));o("Configuration finished.")};e.exports={configure:configure,addListener:addListener,addPreProcessingListener:addPreProcessingListener,throwExceptionIf:throwExceptionIf,anObject:anObject,anInteger:anInteger,validIdentifier:validIdentifier,not:not}},3727:(e,t,r)=>{const n=r(5557);const o=":remote-addr - -"+' ":method :url HTTP/:http-version"'+' :status :content-length ":referrer"'+' ":user-agent"';function getUrl(e){return e.originalUrl||e.url}function assembleTokens(e,t,r){const arrayUniqueTokens=e=>{const t=e.concat();for(let e=0;ee.source?e.source:e));t=new RegExp(r.join("|"))}return t}function matchRules(e,t,r){let o=t;if(r){const t=r.find((t=>{let r=false;if(t.from&&t.to){r=e>=t.from&&e<=t.to}else{r=t.codes.indexOf(e)!==-1}return r}));if(t){o=n.getLevel(t.level,o)}}return o}e.exports=function getLogger(e,t){if(typeof t==="string"||typeof t==="function"){t={format:t}}else{t=t||{}}const r=e;let s=n.getLevel(t.level,n.INFO);const i=t.format||o;return(e,o,a)=>{if(typeof e._logging!=="undefined")return a();if(typeof t.nolog!=="function"){const r=createNoLogCondition(t.nolog);if(r&&r.test(e.originalUrl))return a()}if(r.isLevelEnabled(s)||t.level==="auto"){const a=new Date;const{writeHead:c}=o;e._logging=true;o.writeHead=(e,t)=>{o.writeHead=c;o.writeHead(e,t);o.__statusCode=e;o.__headers=t||{}};let l=false;const handler=()=>{if(l){return}l=true;if(typeof t.nolog==="function"){if(t.nolog(e,o)===true){e._logging=false;return}}o.responseTime=new Date-a;if(o.statusCode&&t.level==="auto"){s=n.INFO;if(o.statusCode>=300)s=n.WARN;if(o.statusCode>=400)s=n.ERROR}s=matchRules(o.statusCode,s,t.statusRules);const c=assembleTokens(e,o,t.tokens||[]);if(t.context)r.addContext("res",o);if(typeof i==="function"){const t=i(e,o,(e=>format(e,c)));if(t)r.log(s,t)}else{r.log(s,format(i,c))}if(t.context)r.removeContext("res")};o.on("end",handler);o.on("finish",handler);o.on("error",handler);o.on("close",handler)}return a()}}},8083:(e,t,r)=>{const n=r(8877);const o=r(857);const s=r(9023);const i=r(6928);const a=r(7016);const c=r(9592)("log4js:layouts");const l={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function colorizeStart(e){return e?`[${l[e][0]}m`:""}function colorizeEnd(e){return e?`[${l[e][1]}m`:""}function colorize(e,t){return colorizeStart(t)+e+colorizeEnd(t)}function timestampLevelAndCategory(e,t){return colorize(s.format("[%s] [%s] %s - ",n.asString(e.startTime),e.level.toString(),e.categoryName),t)}function basicLayout(e){return timestampLevelAndCategory(e)+s.format(...e.data)}function colouredLayout(e){return timestampLevelAndCategory(e,e.level.colour)+s.format(...e.data)}function messagePassThroughLayout(e){return s.format(...e.data)}function dummyLayout(e){return e.data[0]}function patternLayout(e,t){const r="%r %p %c - %m%n";const l=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;e=e||r;function categoryName(e,t){let r=e.categoryName;if(t){const e=parseInt(t,10);const n=r.split(".");if(ee){r=n.slice(-e).join(i.sep)}}return r}function lineNumber(e){return e.lineNumber?`${e.lineNumber}`:""}function columnNumber(e){return e.columnNumber?`${e.columnNumber}`:""}function callStack(e){return e.callStack||""}function className(e){return e.className||""}function functionName(e){return e.functionName||""}function functionAlias(e){return e.functionAlias||""}function callerName(e){return e.callerName||""}const u={c:categoryName,d:formatAsDate,h:hostname,m:formatMessage,n:endOfLine,p:logLevel,r:startTime,"[":startColour,"]":endColour,y:clusterInfo,z:pid,"%":percent,x:userDefined,X:contextDefined,f:fileName,l:lineNumber,o:columnNumber,s:callStack,C:className,M:functionName,A:functionAlias,F:callerName};function replaceToken(e,t,r){return u[e](t,r)}function truncate(e,t){let r;if(e){r=parseInt(e.slice(1),10);return r>0?t.slice(0,r):t.slice(r)}return t}function pad(e,t){let r;if(e){if(e.charAt(0)==="-"){r=parseInt(e.slice(1),10);while(t.length{const n=r(7306);const o=["white","grey","black","blue","cyan","green","magenta","red","yellow"];class Level{constructor(e,t,r){this.level=e;this.levelStr=t;this.colour=r}toString(){return this.levelStr}static getLevel(e,t){if(!e){return t}if(e instanceof Level){return e}if(e instanceof Object&&e.levelStr){e=e.levelStr}return Level[e.toString().toUpperCase()]||t}static addLevels(e){if(e){const t=Object.keys(e);t.forEach((t=>{const r=t.toUpperCase();Level[r]=new Level(e[t].value,r,e[t].colour);const n=Level.levels.findIndex((e=>e.levelStr===r));if(n>-1){Level.levels[n]=Level[r]}else{Level.levels.push(Level[r])}}));Level.levels.sort(((e,t)=>e.level-t.level))}}isLessThanOrEqualTo(e){if(typeof e==="string"){e=Level.getLevel(e)}return this.level<=e.level}isGreaterThanOrEqualTo(e){if(typeof e==="string"){e=Level.getLevel(e)}return this.level>=e.level}isEqualTo(e){if(typeof e==="string"){e=Level.getLevel(e)}return this.level===e.level}}Level.levels=[];Level.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}});n.addListener((e=>{const t=e.levels;if(t){n.throwExceptionIf(e,n.not(n.anObject(t)),"levels must be an object");const r=Object.keys(t);r.forEach((r=>{n.throwExceptionIf(e,n.not(n.validIdentifier(r)),`level name "${r}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`);n.throwExceptionIf(e,n.not(n.anObject(t[r])),`level "${r}" must be an object`);n.throwExceptionIf(e,n.not(t[r].value),`level "${r}" must have a 'value' property`);n.throwExceptionIf(e,n.not(n.anInteger(t[r].value)),`level "${r}".value must have an integer value`);n.throwExceptionIf(e,n.not(t[r].colour),`level "${r}" must have a 'colour' property`);n.throwExceptionIf(e,n.not(o.indexOf(t[r].colour)>-1),`level "${r}".colour must be one of ${o.join(", ")}`)}))}}));n.addListener((e=>{Level.addLevels(e.levels)}));e.exports=Level},2027:(e,t,r)=>{const n=r(9592)("log4js:main");const o=r(9896);const s=r(3934)({proto:true});const i=r(7306);const a=r(8083);const c=r(5557);const l=r(4975);const u=r(9878);const f=r(350);const p=r(5960);const d=r(3727);const h=r(6460);let m=false;function sendLogEventToAppender(e){if(!m)return;n("Received log event ",e);const t=u.appendersForCategory(e.categoryName);t.forEach((t=>{t(e)}))}function loadConfigurationFile(e){n(`Loading configuration from ${e}`);try{return JSON.parse(o.readFileSync(e,"utf8"))}catch(t){throw new Error(`Problem reading config from file "${e}". Error was ${t.message}`,t)}}function configure(e){if(m){shutdown()}let t=e;if(typeof t==="string"){t=loadConfigurationFile(e)}n(`Configuration is ${t}`);i.configure(s(t));p.onMessage(sendLogEventToAppender);m=true;return y}function isConfigured(){return m}function recording(){return h}function shutdown(e=()=>{}){if(typeof e!=="function"){throw new TypeError("Invalid callback passed to shutdown")}n("Shutdown called. Disabling all log writing.");m=false;const t=Array.from(l.values());l.init();u.init();const r=t.reduce(((e,t)=>t.shutdown?e+1:e),0);if(r===0){n("No appenders with shutdown functions found.");e()}let o=0;let s;n(`Found ${r} appenders with shutdown functions.`);function complete(t){s=s||t;o+=1;n(`Appender shutdowns complete: ${o} / ${r}`);if(o>=r){n("All shutdown functions completed.");e(s)}}t.filter((e=>e.shutdown)).forEach((e=>e.shutdown(complete)))}function getLogger(e){if(!m){configure(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}})}return new f(e||"default")}const y={getLogger:getLogger,configure:configure,isConfigured:isConfigured,shutdown:shutdown,connectLogger:d,levels:c,addLayout:a.addLayout,recording:recording};e.exports=y},350:(e,t,r)=>{const n=r(9592)("log4js:logger");const o=r(709);const s=r(5557);const i=r(5960);const a=r(9878);const c=r(7306);const l=/^(?:\s*)at (?:(.+) \()?(?:([^(]+?):(\d+):(\d+))\)?$/;const u=1;const f=3;function defaultParseCallStack(e,t=f+u){try{const r=e.stack.split("\n").slice(t);if(!r.length){return null}const n=l.exec(r[0]);if(n&&n.length===5){let e="";let t="";let o="";if(n[1]&&n[1]!==""){[t,o]=n[1].replace(/[[\]]/g,"").split(" as ");o=o||"";if(t.includes("."))[e,t]=t.split(".")}return{fileName:n[2],lineNumber:parseInt(n[3],10),columnNumber:parseInt(n[4],10),callStack:r.join("\n"),className:e,functionName:t,functionAlias:o,callerName:n[1]||""}}else{console.error("log4js.logger - defaultParseCallStack error")}}catch(e){console.error("log4js.logger - defaultParseCallStack error",e)}return null}class Logger{constructor(e){if(!e){throw new Error("No category provided.")}this.category=e;this.context={};this.callStackSkipIndex=0;this.parseCallStack=defaultParseCallStack;n(`Logger created (${this.category}, ${this.level})`)}get level(){return s.getLevel(a.getLevelForCategory(this.category),s.OFF)}set level(e){a.setLevelForCategory(this.category,s.getLevel(e,this.level))}get useCallStack(){return a.getEnableCallStackForCategory(this.category)}set useCallStack(e){a.setEnableCallStackForCategory(this.category,e===true)}get callStackLinesToSkip(){return this.callStackSkipIndex}set callStackLinesToSkip(e){if(typeof e!=="number"){throw new TypeError("Must be a number")}if(e<0){throw new RangeError("Must be >= 0")}this.callStackSkipIndex=e}log(e,...t){const r=s.getLevel(e);if(!r){if(c.validIdentifier(e)&&t.length>0){this.log(s.WARN,"log4js:logger.log: valid log-level not found as first parameter given:",e);this.log(s.INFO,`[${e}]`,...t)}else{this.log(s.INFO,e,...t)}}else if(this.isLevelEnabled(r)){this._log(r,t)}}isLevelEnabled(e){return this.level.isLessThanOrEqualTo(e)}_log(e,t){n(`sending log data (${e}) to appenders`);const r=t.find((e=>e instanceof Error));let s;if(this.useCallStack){try{if(r){s=this.parseCallStack(r,this.callStackSkipIndex+u)}}catch(e){}s=s||this.parseCallStack(new Error,this.callStackSkipIndex+f+u)}const a=new o(this.category,e,t,this.context,s,r);i.send(a)}addContext(e,t){this.context[e]=t}removeContext(e){delete this.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){if(typeof e==="function"){this.parseCallStack=e}else if(typeof e==="undefined"){this.parseCallStack=defaultParseCallStack}else{throw new TypeError("Invalid type passed to setParseCallStackFunction")}}}function addLevelMethods(e){const t=s.getLevel(e);const r=t.toString().toLowerCase();const n=r.replace(/_([a-z])/g,(e=>e[1].toUpperCase()));const o=n[0].toUpperCase()+n.slice(1);Logger.prototype[`is${o}Enabled`]=function(){return this.isLevelEnabled(t)};Logger.prototype[n]=function(...e){this.log(t,...e)}}s.levels.forEach(addLevelMethods);c.addListener((()=>{s.levels.forEach(addLevelMethods)}));e.exports=Logger},2134:e=>{var t=1e3;var r=t*60;var n=r*60;var o=n*24;var s=o*7;var i=o*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=o){return Math.round(e/o)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=r){return Math.round(e/r)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=o){return plural(e,s,o,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=r){return plural(e,s,r,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}},3934:e=>{e.exports=rfdc;function copyBuffer(e){if(e instanceof Buffer){return Buffer.from(e)}return new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function rfdc(e){e=e||{};if(e.circles)return rfdcCircles(e);const t=new Map;t.set(Date,(e=>new Date(e)));t.set(Map,((e,t)=>new Map(cloneArray(Array.from(e),t))));t.set(Set,((e,t)=>new Set(cloneArray(Array.from(e),t))));if(e.constructorHandlers){for(const r of e.constructorHandlers){t.set(r[0],r[1])}}let r=null;return e.proto?cloneProto:clone;function cloneArray(e,n){const o=Object.keys(e);const s=new Array(o.length);for(let i=0;inew Date(e)));n.set(Map,((e,t)=>new Map(cloneArray(Array.from(e),t))));n.set(Set,((e,t)=>new Set(cloneArray(Array.from(e),t))));if(e.constructorHandlers){for(const t of e.constructorHandlers){n.set(t[0],t[1])}}let o=null;return e.proto?cloneProto:clone;function cloneArray(e,s){const i=Object.keys(e);const a=new Array(i.length);for(let c=0;c{const n=r(1749);class DateRollingFileStream extends n{constructor(e,t,r){if(t&&typeof t==="object"){r=t;t=null}if(!r){r={}}if(!t){t="yyyy-MM-dd"}r.pattern=t;if(!r.numBackups&&r.numBackups!==0){if(!r.daysToKeep&&r.daysToKeep!==0){r.daysToKeep=1}else{process.emitWarning("options.daysToKeep is deprecated due to the confusion it causes when used "+"together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","streamroller-DEP0001")}r.numBackups=r.daysToKeep}else{r.daysToKeep=r.numBackups}super(e,r);this.mode=this.options.mode}get theStream(){return this.currentFileStream}}e.exports=DateRollingFileStream},3700:(e,t,r)=>{const n=r(1749);class RollingFileStream extends n{constructor(e,t,r,n){if(!n){n={}}if(t){n.maxSize=t}if(!n.numBackups&&n.numBackups!==0){if(!r&&r!==0){r=1}n.numBackups=r}super(e,n);this.backups=n.numBackups;this.size=this.options.maxSize}get theStream(){return this.currentFileStream}}e.exports=RollingFileStream},1749:(e,t,r)=>{const n=r(9592)("streamroller:RollingFileWriteStream");const o=r(8137);const s=r(6928);const i=r(857);const a=r(1187);const c=r(8877);const{Writable:l}=r(2203);const u=r(7474);const f=r(601);const p=r(6791);const deleteFiles=e=>{n(`deleteFiles: files to delete: ${e}`);return Promise.all(e.map((e=>o.unlink(e).catch((t=>{n(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)})))))};class RollingFileWriteStream extends l{constructor(e,t){n(`constructor: creating RollingFileWriteStream. path=${e}`);if(typeof e!=="string"||e.length===0){throw new Error(`Invalid filename: ${e}`)}else if(e.endsWith(s.sep)){throw new Error(`Filename is a directory: ${e}`)}else if(e.indexOf(`~${s.sep}`)===0){e=e.replace("~",i.homedir())}super(t);this.options=this._parseOption(t);this.fileObject=s.parse(e);if(this.fileObject.dir===""){this.fileObject=s.parse(s.join(process.cwd(),e))}this.fileFormatter=u({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize 0`)}if(r.numBackups||r.numBackups===0){if(r.numBackups<0){throw new Error(`options.numBackups (${r.numBackups}) should be >= 0`)}else if(r.numBackups>=Number.MAX_SAFE_INTEGER){throw new Error(`options.numBackups (${r.numBackups}) should be < Number.MAX_SAFE_INTEGER`)}else{r.numToKeep=r.numBackups+1}}else if(r.numToKeep<=0){throw new Error(`options.numToKeep (${r.numToKeep}) should be > 0`)}n(`_parseOption: creating stream with option=${JSON.stringify(r)}`);return r}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,r){this._shouldRoll().then((()=>{n(`_write: writing chunk. `+`file=${this.currentFileStream.path} `+`state=${JSON.stringify(this.state)} `+`chunk=${e}`);this.currentFileStream.write(e,t,(t=>{this.state.currentSize+=e.length;r(t)}))}))}async _shouldRoll(){if(this._dateChanged()||this._tooBig()){n(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`);await this._roll()}}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==c(this.options.pattern,a())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){n(`_roll: closing the current stream`);return new Promise(((e,t)=>{this.currentFileStream.end("",this.options.encoding,(()=>{this._moveOldFiles().then(e).catch(t)}))}))}async _moveOldFiles(){const e=await this._getExistingFiles();const t=this.state.currentDate?e.filter((e=>e.date===this.state.currentDate)):e;for(let e=t.length;e>=0;e--){n(`_moveOldFiles: i = ${e}`);const t=this.fileFormatter({date:this.state.currentDate,index:e});const r=this.fileFormatter({date:this.state.currentDate,index:e+1});const o={compress:this.options.compress&&e===0,mode:this.options.mode};await p(t,r,o)}this.state.currentSize=0;this.state.currentDate=this.state.currentDate?c(this.options.pattern,a()):null;n(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`);this._renewWriteStream();await new Promise(((e,t)=>{this.currentFileStream.write("","utf8",(()=>{this._clean().then(e).catch(t)}))}))}async _getExistingFiles(){const e=await o.readdir(this.fileObject.dir).catch((()=>[]));n(`_getExistingFiles: files=${e}`);const t=e.map((e=>this.fileNameParser(e))).filter((e=>e));const getKey=e=>(e.timestamp?e.timestamp:a().getTime())-e.index;t.sort(((e,t)=>getKey(e)-getKey(t)));return t}_renewWriteStream(){const e=this.fileFormatter({date:this.state.currentDate,index:0});const mkdir=e=>{try{return o.mkdirSync(e,{recursive:true})}catch(t){if(t.code==="ENOENT"){mkdir(s.dirname(e));return mkdir(e)}if(t.code!=="EEXIST"&&t.code!=="EROFS"){throw t}else{try{if(o.statSync(e).isDirectory()){return e}throw t}catch(e){throw t}}}};mkdir(this.fileObject.dir);const t={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};const renameKey=function(e,t,r){e[r]=e[t];delete e[t];return e};o.appendFileSync(e,"",renameKey({...t},"flags","flag"));this.currentFileStream=o.createWriteStream(e,t);this.currentFileStream.on("error",(e=>{this.emit("error",e)}))}async _clean(){const e=await this._getExistingFiles();n(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`);n("_clean: existing files are: ",e);if(this._tooManyFiles(e.length)){const t=e.slice(0,e.length-this.options.numToKeep).map((e=>s.format({dir:this.fileObject.dir,base:e.filename})));await deleteFiles(t)}}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}}e.exports=RollingFileWriteStream},7474:(e,t,r)=>{const n=r(9592)("streamroller:fileNameFormatter");const o=r(6928);const s=".gz";const i=".";e.exports=({file:e,keepFileExt:t,needsIndex:r,alwaysIncludeDate:a,compress:c,fileNameSep:l})=>{let u=l||i;const f=o.join(e.dir,e.name);const ext=t=>t+e.ext;const index=(e,t,n)=>(r||!n)&&t?e+u+t:e;const date=(e,t,r)=>(t>0||a)&&r?e+u+r:e;const gzip=(e,t)=>t&&c?e+s:e;const p=t?[date,index,ext,gzip]:[ext,date,index,gzip];return({date:e,index:t})=>{n(`_formatFileName: date=${e}, index=${t}`);return p.reduce(((r,n)=>n(r,t,e)),f)}}},601:(e,t,r)=>{const n=r(9592)("streamroller:fileNameParser");const o=".gz";const s=r(8877);const i=".";e.exports=({file:e,keepFileExt:t,pattern:r,fileNameSep:a})=>{let c=a||i;const zip=(e,t)=>{if(e.endsWith(o)){n("it is gzipped");t.isCompressed=true;return e.slice(0,-1*o.length)}return e};const l="__NOT_MATCHING__";const extAtEnd=t=>{if(t.startsWith(e.name)&&t.endsWith(e.ext)){n("it starts and ends with the right things");return t.slice(e.name.length+1,-1*e.ext.length)}return l};const extInMiddle=t=>{if(t.startsWith(e.base)){n("it starts with the right things");return t.slice(e.base.length+1)}return l};const dateAndIndex=(e,t)=>{const o=e.split(c);let i=o[o.length-1];n("items: ",o,", indexStr: ",i);let a=e;if(i!==undefined&&i.match(/^\d+$/)){a=e.slice(0,-1*(i.length+1));n(`dateStr is ${a}`);if(r&&!a){a=i;i="0"}}else{i="0"}try{const n=s.parse(r,a,new Date(0,0));if(s.asString(r,n)!==a)return e;t.index=parseInt(i,10);t.date=a;t.timestamp=n.getTime();return""}catch(t){n(`Problem parsing ${a} as ${r}, error was: `,t);return e}};const index=(e,t)=>{if(e.match(/^\d+$/)){n("it has an index");t.index=parseInt(e,10);return""}return e};let u=[zip,t?extAtEnd:extInMiddle,r?dateAndIndex:index];return e=>{let t={filename:e,index:0,isCompressed:false};let r=u.reduce(((e,r)=>r(e,t)),e);return r?null:t}}},9055:(e,t,r)=>{e.exports={RollingFileWriteStream:r(1749),RollingFileStream:r(3700),DateRollingFileStream:r(224)}},6791:(e,t,r)=>{const n=r(9592)("streamroller:moveAndMaybeCompressFile");const o=r(8137);const s=r(3106);const _parseOption=function(e){const t={mode:parseInt("0600",8),compress:false};const r=Object.assign({},t,e);n(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(r)}`);return r};const moveAndMaybeCompressFile=async(e,t,r)=>{r=_parseOption(r);if(e===t){n(`moveAndMaybeCompressFile: source and target are the same, not doing anything`);return}if(await o.pathExists(e)){n(`moveAndMaybeCompressFile: moving file from ${e} to ${t} ${r.compress?"with":"without"} compress`);if(r.compress){await new Promise(((i,a)=>{let c=false;const l=o.createWriteStream(t,{mode:r.mode,flags:"wx"}).on("open",(()=>{c=true;const t=o.createReadStream(e).on("open",(()=>{t.pipe(s.createGzip()).pipe(l)})).on("error",(t=>{n(`moveAndMaybeCompressFile: error reading ${e}`,t);l.destroy(t)}))})).on("finish",(()=>{n(`moveAndMaybeCompressFile: finished compressing ${t}, deleting ${e}`);o.unlink(e).then(i).catch((t=>{n(`moveAndMaybeCompressFile: error deleting ${e}, truncating instead`,t);o.truncate(e).then(i).catch((t=>{n(`moveAndMaybeCompressFile: error truncating ${e}`,t);a(t)}))}))})).on("error",(e=>{if(!c){n(`moveAndMaybeCompressFile: error creating ${t}`,e);a(e)}else{n(`moveAndMaybeCompressFile: error writing ${t}, deleting`,e);o.unlink(t).then((()=>{a(e)})).catch((e=>{n(`moveAndMaybeCompressFile: error deleting ${t}`,e);a(e)}))}}))})).catch((()=>{}))}else{n(`moveAndMaybeCompressFile: renaming ${e} to ${t}`);try{await o.move(e,t,{overwrite:true})}catch(r){n(`moveAndMaybeCompressFile: error renaming ${e} to ${t}`,r);if(r.code!=="ENOENT"){n(`moveAndMaybeCompressFile: trying copy+truncate instead`);try{await o.copy(e,t,{overwrite:true});await o.truncate(e)}catch(e){n(`moveAndMaybeCompressFile: error copy+truncate`,e)}}}}}};e.exports=moveAndMaybeCompressFile},1187:e=>{e.exports=()=>new Date},1953:(e,t,r)=>{const n=r(857);const o=r(2018);const s=r(1330);const{env:i}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(i.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},7859:(e,t)=>{t.S=function(e){return Object.defineProperty((function(){if(typeof arguments[arguments.length-1]==="function")e.apply(this,arguments);else{return new Promise(((t,r)=>{arguments[arguments.length]=(e,n)=>{if(e)return r(e);t(n)};arguments.length++;e.apply(this,arguments)}))}}),"name",{value:e.name})};t.z=function(e){return Object.defineProperty((function(){const t=arguments[arguments.length-1];if(typeof t!=="function")return e.apply(this,arguments);else e.apply(this,arguments).then((e=>t(null,e)),t)}),"name",{value:e.name})}},2613:t=>{t.exports=e(import.meta.url)("assert")},9907:t=>{t.exports=e(import.meta.url)("cluster")},9140:t=>{t.exports=e(import.meta.url)("constants")},9896:t=>{t.exports=e(import.meta.url)("fs")},9278:t=>{t.exports=e(import.meta.url)("net")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3106:t=>{t.exports=e(import.meta.url)("zlib")},2513:(e,t)=>{const{parse:r,stringify:n}=JSON;const{keys:o}=Object;const s=String;const i="string";const a={};const c="object";const noop=(e,t)=>t;const primitives=e=>e instanceof s?s(e):e;const Primitives=(e,t)=>typeof t===i?new s(t):t;const revive=(e,t,r,n)=>{const i=[];for(let l=o(r),{length:u}=l,f=0;f{const n=s(t.push(r)-1);e.set(r,n);return n};const parse=(e,t)=>{const n=r(e,Primitives).map(primitives);const o=n[0];const s=t||noop;const i=typeof o===c&&o?revive(n,new Set,o,s):o;return s.call({"":i},"",i)};t.parse=parse;const stringify=(e,t,r)=>{const o=t&&typeof t===c?(e,r)=>e===""||-1r(stringify(e));t.toJSON=toJSON;const fromJSON=e=>parse(n(e));t.fromJSON=fromJSON},629:(e,t,r)=>{r.a(e,(async(e,t)=>{try{var n=r(9022);var o=e([n]);n=(o.then?(await o)():o)[0];t()}catch(e){t(e)}}))},9022:(e,t,r)=>{r.a(e,(async(e,t)=>{try{var n=r(9896);var o=r(6928);var s=r(9015);var i=r(7969);var a=r(7155);var c=r(2027);c.configure({appenders:{out:{type:"stdout",layout:{type:"pattern",pattern:"%m%n"}}},categories:{default:{appenders:["out"],level:"info"}}});const e=c.getLogger();const l={"--help":{type:Boolean,alias:"-h"},"--version":{type:Boolean,alias:"-v"},"--cert":{type:String,alias:"-c"},"--keyId":{type:String,alias:"-k"},"--issuerId":{type:String,alias:"-i"}};const u=Object.keys(l).map((e=>{const t={};t[e]=l[e].type;return t})).reduce(((e,t)=>Object.assign(t,e)));const f=Object.keys(l).map((e=>{const t={};t[l[e].alias]=e;return t})).reduce(((e,t)=>Object.assign(t,e)));const p={...u,...f};try{const t=i(p);const o=JSON.parse(Buffer.from(n.readFileSync(r.ab+"package.json",{flag:"r"})).toString());const c=(0,a.Ay)` +import{createRequire as e}from"module";var t={7969:e=>{const t=Symbol("arg flag");class ArgError extends Error{constructor(e,t){super(e);this.name="ArgError";this.code=t;Object.setPrototypeOf(this,ArgError.prototype)}}function arg(e,{argv:r=process.argv.slice(2),permissive:n=false,stopAtPositional:o=false}={}){if(!e){throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC")}const s={_:[]};const i={};const a={};for(const r of Object.keys(e)){if(!r){throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY")}if(r[0]!=="-"){throw new ArgError(`argument key must start with '-' but found: '${r}'`,"ARG_CONFIG_NONOPT_KEY")}if(r.length===1){throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${r}`,"ARG_CONFIG_NONAME_KEY")}if(typeof e[r]==="string"){i[r]=e[r];continue}let n=e[r];let o=false;if(Array.isArray(n)&&n.length===1&&typeof n[0]==="function"){const[e]=n;n=(t,r,n=[])=>{n.push(e(t,r,n[n.length-1]));return n};o=e===Boolean||e[t]===true}else if(typeof n==="function"){o=n===Boolean||n[t]===true}else{throw new ArgError(`type missing or not a function or valid array type: ${r}`,"ARG_CONFIG_VAD_TYPE")}if(r[1]!=="-"&&r.length>2){throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${r}`,"ARG_CONFIG_SHORTOPT_TOOLONG")}a[r]=[n,o]}for(let e=0,t=r.length;e0){s._=s._.concat(r.slice(e));break}if(t==="--"){s._=s._.concat(r.slice(e+1));break}if(t.length>1&&t[0]==="-"){const o=t[1]==="-"||t.length===2?[t]:t.slice(1).split("").map((e=>`-${e}`));for(let t=0;t1&&r[e+1][0]==="-"&&!(r[e+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(p===Number||typeof BigInt!=="undefined"&&p===BigInt))){const e=l===f?"":` (alias for ${f})`;throw new ArgError(`option requires argument: ${l}${e}`,"ARG_MISSING_REQUIRED_LONGARG")}s[f]=p(r[e+1],f,s[f]);++e}else{s[f]=p(u,f,s[f])}}}else{s._.push(t)}}return s}arg.flag=e=>{e[t]=true;return e};arg.COUNT=arg.flag(((e,t,r)=>(r||0)+1));arg.ArgError=ArgError;e.exports=arg},8877:e=>{function padWithZeros(e,t){var r=e.toString();while(r.length-1?s:i;var c=addZero(r.getHours());var l=addZero(r.getMinutes());var u=addZero(r.getSeconds());var f=padWithZeros(r.getMilliseconds(),3);var p=offset(r.getTimezoneOffset());var d=t.replace(/dd/g,n).replace(/MM/g,o).replace(/y{1,4}/g,a).replace(/hh/g,c).replace(/mm/g,l).replace(/ss/g,u).replace(/SSS/g,f).replace(/O/g,p);return d}function setDatePart(e,t,r,n){e["set"+(n?"":"UTC")+t](r)}function extractDateParts(t,r,n){var o=t.indexOf("O")<0;var s=false;var i=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){setDatePart(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){setDatePart(e,"Month",t-1,o);if(e.getMonth()!==t-1){s=true}}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){if(s){setDatePart(e,"Month",e.getMonth()-1,o)}setDatePart(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){setDatePart(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){setDatePart(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){setDatePart(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){setDatePart(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){if(t==="Z"){t=0}else{t=t.replace(":","")}var r=Math.abs(t);var n=(t>0?-1:1)*(r%100+Math.floor(r/100)*60);e.setUTCMinutes(e.getUTCMinutes()+n)}}];var a=i.reduce((function(e,t){if(t.pattern.test(e.regexp)){t.index=e.regexp.match(t.pattern).index;e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")}else{t.index=-1}return e}),{regexp:t,index:[]});var c=i.filter((function(e){return e.index>-1}));c.sort((function(e,t){return e.index-t.index}));var l=new RegExp(a.regexp);var u=l.exec(r);if(u){var f=n||e.exports.now();c.forEach((function(e,t){e.fn(f,u[t+1])}));return f}throw new Error("String '"+r+"' could not be parsed as '"+t+"'")}function parse(e,t,r){if(!e){throw new Error("pattern must be supplied")}return extractDateParts(e,t,r)}function now(){return new Date}e.exports=asString;e.exports.asString=asString;e.exports.parse=parse;e.exports.now=now;e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS";e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO";e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"},4468:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.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 useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){o=n}}));t.splice(o,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(1163)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1163:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(2134);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}s++;const o=createDebug.formatters[n];if(typeof o==="function"){const n=e[s];t=o.call(r,n);e.splice(s,1);s--}return t}));createDebug.formatArgs.call(r,e);const i=r.log||createDebug.log;i.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;o=createDebug.enabled(e)}return o},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let r=0;let n=0;let o=-1;let s=0;while(r"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},9592:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(4468)}else{e.exports=r(3606)}},3606:(e,t,r)=>{const n=r(2018);const o=r(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(1953);if(e&&(e.stderr||e).level>=2){t.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(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const o="[3"+(n<8?n:"8;5;"+n);const s=` ${o};1m${r} `;t[0]=s+t[0].split("\n").join("\n"+s);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},370:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(5914).mkdirsSync;const i=r(551).utimesMillisSync;const a=r(2442);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:o}=a.checkPathsSync(e,t,"copy");a.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(o,e,t,r)}function handleFilterAndCopy(e,t,r,i){if(i.filter&&!i.filter(t,r))return;const a=o.dirname(r);if(!n.existsSync(a))s(a);return startCopy(e,t,r,i)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,o){const s=o.dereference?n.statSync:n.lstatSync;const i=s(t);if(i.isDirectory())return onDir(i,e,t,r,o);else if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return onFile(i,e,t,r,o);else if(i.isSymbolicLink())return onLink(e,t,r,o)}function onFile(e,t,r,n,o){if(!t)return copyFile(e,r,n,o);return mayCopyFile(e,r,n,o)}function mayCopyFile(e,t,r,o){if(o.overwrite){n.unlinkSync(r);return copyFile(e,t,r,o)}else if(o.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,o){if(typeof n.copyFileSync==="function"){n.copyFileSync(t,r);n.chmodSync(r,e.mode);if(o.preserveTimestamps){return i(r,e.atime,e.mtime)}return}return copyFileFallback(e,t,r,o)}function copyFileFallback(e,t,o,s){const i=64*1024;const a=r(7034)(i);const c=n.openSync(t,"r");const l=n.openSync(o,"w",e.mode);let u=0;while(ucopyDirItem(n,e,t,r)))}function copyDirItem(e,t,r,n){const s=o.join(t,e);const i=o.join(r,e);const{destStat:c}=a.checkPathsSync(s,i,"copy");return startCopy(c,s,i,n)}function onLink(e,t,r,s){let i=n.readlinkSync(t);if(s.dereference){i=o.resolve(process.cwd(),i)}if(!e){return n.symlinkSync(i,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(i,r);throw e}if(s.dereference){e=o.resolve(process.cwd(),e)}if(a.isSrcSubdir(i,e)){throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&a.isSrcSubdir(e,i)){throw new Error(`Cannot overwrite '${e}' with '${i}'.`)}return copyLink(i,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},3437:(e,t,r)=>{e.exports={copySync:r(370)}},5046:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(5914).mkdirs;const i=r(4900).pathExists;const a=r(551).utimesMillis;const c=r(2442);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}c.checkPaths(e,t,"copy",((o,s)=>{if(o)return n(o);const{srcStat:i,destStat:a}=s;c.checkParentPaths(e,i,t,"copy",(o=>{if(o)return n(o);if(r.filter)return handleFilter(checkParentDir,a,e,t,r,n);return checkParentDir(a,e,t,r,n)}))}))}function checkParentDir(e,t,r,n,a){const c=o.dirname(r);i(c,((o,i)=>{if(o)return a(o);if(i)return startCopy(e,t,r,n,a);s(c,(o=>{if(o)return a(o);return startCopy(e,t,r,n,a)}))}))}function handleFilter(e,t,r,n,o,s){Promise.resolve(o.filter(r,n)).then((i=>{if(i)return e(t,r,n,o,s);return s()}),(e=>s(e)))}function startCopy(e,t,r,n,o){if(n.filter)return handleFilter(getStats,e,t,r,n,o);return getStats(e,t,r,n,o)}function getStats(e,t,r,o,s){const i=o.dereference?n.stat:n.lstat;i(t,((n,i)=>{if(n)return s(n);if(i.isDirectory())return onDir(i,e,t,r,o,s);else if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return onFile(i,e,t,r,o,s);else if(i.isSymbolicLink())return onLink(e,t,r,o,s)}))}function onFile(e,t,r,n,o,s){if(!t)return copyFile(e,r,n,o,s);return mayCopyFile(e,r,n,o,s)}function mayCopyFile(e,t,r,o,s){if(o.overwrite){n.unlink(r,(n=>{if(n)return s(n);return copyFile(e,t,r,o,s)}))}else if(o.errorOnExist){return s(new Error(`'${r}' already exists`))}else return s()}function copyFile(e,t,r,o,s){if(typeof n.copyFile==="function"){return n.copyFile(t,r,(t=>{if(t)return s(t);return setDestModeAndTimestamps(e,r,o,s)}))}return copyFileFallback(e,t,r,o,s)}function copyFileFallback(e,t,r,o,s){const i=n.createReadStream(t);i.on("error",(e=>s(e))).once("open",(()=>{const t=n.createWriteStream(r,{mode:e.mode});t.on("error",(e=>s(e))).on("open",(()=>i.pipe(t))).once("close",(()=>setDestModeAndTimestamps(e,r,o,s)))}))}function setDestModeAndTimestamps(e,t,r,o){n.chmod(t,e.mode,(n=>{if(n)return o(n);if(r.preserveTimestamps){return a(t,e.atime,e.mtime,o)}return o()}))}function onDir(e,t,r,n,o,s){if(!t)return mkDirAndCopy(e,r,n,o,s);if(t&&!t.isDirectory()){return s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`))}return copyDir(r,n,o,s)}function mkDirAndCopy(e,t,r,o,s){n.mkdir(r,(i=>{if(i)return s(i);copyDir(t,r,o,(t=>{if(t)return s(t);return n.chmod(r,e.mode,s)}))}))}function copyDir(e,t,r,o){n.readdir(e,((n,s)=>{if(n)return o(n);return copyDirItems(s,e,t,r,o)}))}function copyDirItems(e,t,r,n,o){const s=e.pop();if(!s)return o();return copyDirItem(e,s,t,r,n,o)}function copyDirItem(e,t,r,n,s,i){const a=o.join(r,t);const l=o.join(n,t);c.checkPaths(a,l,"copy",((t,o)=>{if(t)return i(t);const{destStat:c}=o;startCopy(c,a,l,s,(t=>{if(t)return i(t);return copyDirItems(e,r,n,s,i)}))}))}function onLink(e,t,r,s,i){n.readlink(t,((t,a)=>{if(t)return i(t);if(s.dereference){a=o.resolve(process.cwd(),a)}if(!e){return n.symlink(a,r,i)}else{n.readlink(r,((t,l)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(a,r,i);return i(t)}if(s.dereference){l=o.resolve(process.cwd(),l)}if(c.isSrcSubdir(a,l)){return i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`))}if(e.isDirectory()&&c.isSrcSubdir(l,a)){return i(new Error(`Cannot overwrite '${l}' with '${a}'.`))}return copyLink(a,r,i)}))}}))}function copyLink(e,t,r){n.unlink(t,(o=>{if(o)return r(o);return n.symlink(e,t,r)}))}e.exports=copy},5523:(e,t,r)=>{const n=r(7859).S;e.exports={copy:n(r(5046))}},8531:(e,t,r)=>{const n=r(7859).S;const o=r(7551);const s=r(6928);const i=r(5914);const a=r(858);const c=n((function emptyDir(e,t){t=t||function(){};o.readdir(e,((r,n)=>{if(r)return i.mkdirs(e,t);n=n.map((t=>s.join(e,t)));deleteItem();function deleteItem(){const e=n.pop();if(!e)return t();a.remove(e,(e=>{if(e)return t(e);deleteItem()}))}}))}));function emptyDirSync(e){let t;try{t=o.readdirSync(e)}catch(t){return i.mkdirsSync(e)}t.forEach((t=>{t=s.join(e,t);a.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:c,emptydir:c}},8524:(e,t,r)=>{const n=r(7859).S;const o=r(6928);const s=r(7551);const i=r(5914);const a=r(4900).pathExists;function createFile(e,t){function makeFile(){s.writeFile(e,"",(e=>{if(e)return t(e);t()}))}s.stat(e,((r,n)=>{if(!r&&n.isFile())return t();const s=o.dirname(e);a(s,((e,r)=>{if(e)return t(e);if(r)return makeFile();i.mkdirs(s,(e=>{if(e)return t(e);makeFile()}))}))}))}function createFileSync(e){let t;try{t=s.statSync(e)}catch(e){}if(t&&t.isFile())return;const r=o.dirname(e);if(!s.existsSync(r)){i.mkdirsSync(r)}s.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},6644:(e,t,r)=>{const n=r(8524);const o=r(390);const s=r(2127);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:o.createLink,createLinkSync:o.createLinkSync,ensureLink:o.createLink,ensureLinkSync:o.createLinkSync,createSymlink:s.createSymlink,createSymlinkSync:s.createSymlinkSync,ensureSymlink:s.createSymlink,ensureSymlinkSync:s.createSymlinkSync}},390:(e,t,r)=>{const n=r(7859).S;const o=r(6928);const s=r(7551);const i=r(5914);const a=r(4900).pathExists;function createLink(e,t,r){function makeLink(e,t){s.link(e,t,(e=>{if(e)return r(e);r(null)}))}a(t,((n,c)=>{if(n)return r(n);if(c)return r(null);s.lstat(e,(n=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}const s=o.dirname(t);a(s,((n,o)=>{if(n)return r(n);if(o)return makeLink(e,t);i.mkdirs(s,(n=>{if(n)return r(n);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){const r=s.existsSync(t);if(r)return undefined;try{s.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=o.dirname(t);const a=s.existsSync(n);if(a)return s.linkSync(e,t);i.mkdirsSync(n);return s.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},450:(e,t,r)=>{const n=r(6928);const o=r(7551);const s=r(4900).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return o.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const i=n.dirname(t);const a=n.join(i,e);return s(a,((t,s)=>{if(t)return r(t);if(s){return r(null,{toCwd:a,toDst:e})}else{return o.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(i,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=o.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const s=n.dirname(t);const i=n.join(s,e);r=o.existsSync(i);if(r){return{toCwd:i,toDst:e}}else{r=o.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(s,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},9180:(e,t,r)=>{const n=r(7551);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch(e){return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},2127:(e,t,r)=>{const n=r(7859).S;const o=r(6928);const s=r(7551);const i=r(5914);const a=i.mkdirs;const c=i.mkdirsSync;const l=r(450);const u=l.symlinkPaths;const f=l.symlinkPathsSync;const p=r(9180);const d=p.symlinkType;const h=p.symlinkTypeSync;const m=r(4900).pathExists;function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;m(t,((i,c)=>{if(i)return n(i);if(c)return n(null);u(e,t,((i,c)=>{if(i)return n(i);e=c.toDst;d(c.toCwd,r,((r,i)=>{if(r)return n(r);const c=o.dirname(t);m(c,((r,o)=>{if(r)return n(r);if(o)return s.symlink(e,t,i,n);a(c,(r=>{if(r)return n(r);s.symlink(e,t,i,n)}))}))}))}))}))}function createSymlinkSync(e,t,r){const n=s.existsSync(t);if(n)return undefined;const i=f(e,t);e=i.toDst;r=h(i.toCwd,r);const a=o.dirname(t);const l=s.existsSync(a);if(l)return s.symlinkSync(e,t,r);c(a);return s.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},3917:(e,t,r)=>{const n=r(7859).S;const o=r(7551);const s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof o[e]==="function"));Object.keys(o).forEach((e=>{if(e==="promises"){return}t[e]=o[e]}));s.forEach((e=>{t[e]=n(o[e])}));t.exists=function(e,t){if(typeof t==="function"){return o.exists(e,t)}return new Promise((t=>o.exists(e,t)))};t.read=function(e,t,r,n,s,i){if(typeof i==="function"){return o.read(e,t,r,n,s,i)}return new Promise(((i,a)=>{o.read(e,t,r,n,s,((e,t,r)=>{if(e)return a(e);i({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return o.write(e,t,...r)}return new Promise(((n,s)=>{o.write(e,t,...r,((e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffer:r})}))}))};if(typeof o.realpath.native==="function"){t.realpath.native=n(o.realpath.native)}},8137:(e,t,r)=>{e.exports=Object.assign({},r(3917),r(3437),r(5523),r(8531),r(6644),r(1540),r(5914),r(5669),r(6587),r(6127),r(4900),r(858));const n=r(9896);if(Object.getOwnPropertyDescriptor(n,"promises")){Object.defineProperty(e.exports,"promises",{get(){return n.promises}})}},1540:(e,t,r)=>{const n=r(7859).S;const o=r(4578);o.outputJson=n(r(9158));o.outputJsonSync=r(2592);o.outputJSON=o.outputJson;o.outputJSONSync=o.outputJsonSync;o.writeJSON=o.writeJson;o.writeJSONSync=o.writeJsonSync;o.readJSON=o.readJson;o.readJSONSync=o.readJsonSync;e.exports=o},4578:(e,t,r)=>{const n=r(7859).S;const o=r(1926);e.exports={readJson:n(o.readFile),readJsonSync:o.readFileSync,writeJson:n(o.writeFile),writeJsonSync:o.writeFileSync}},2592:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(5914);const i=r(4578);function outputJsonSync(e,t,r){const a=o.dirname(e);if(!n.existsSync(a)){s.mkdirsSync(a)}i.writeJsonSync(e,t,r)}e.exports=outputJsonSync},9158:(e,t,r)=>{const n=r(6928);const o=r(5914);const s=r(4900).pathExists;const i=r(4578);function outputJson(e,t,r,a){if(typeof r==="function"){a=r;r={}}const c=n.dirname(e);s(c,((n,s)=>{if(n)return a(n);if(s)return i.writeJson(e,t,r,a);o.mkdirs(c,(n=>{if(n)return a(n);i.writeJson(e,t,r,a)}))}))}e.exports=outputJson},5914:(e,t,r)=>{const n=r(7859).S;const o=n(r(7360));const s=r(3274);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},3274:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(9201).invalidWin32Path;const i=parseInt("0777",8);function mkdirsSync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}let a=t.mode;const c=t.fs||n;if(process.platform==="win32"&&s(e)){const t=new Error(e+" contains invalid WIN32 path characters.");t.code="EINVAL";throw t}if(a===undefined){a=i&~process.umask()}if(!r)r=null;e=o.resolve(e);try{c.mkdirSync(e,a);r=r||e}catch(n){if(n.code==="ENOENT"){if(o.dirname(e)===e)throw n;r=mkdirsSync(o.dirname(e),t,r);mkdirsSync(e,t,r)}else{let t;try{t=c.statSync(e)}catch(e){throw n}if(!t.isDirectory())throw n}}return r}e.exports=mkdirsSync},7360:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(9201).invalidWin32Path;const i=parseInt("0777",8);function mkdirs(e,t,r,a){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}if(process.platform==="win32"&&s(e)){const t=new Error(e+" contains invalid WIN32 path characters.");t.code="EINVAL";return r(t)}let c=t.mode;const l=t.fs||n;if(c===undefined){c=i&~process.umask()}if(!a)a=null;r=r||function(){};e=o.resolve(e);l.mkdir(e,c,(n=>{if(!n){a=a||e;return r(null,a)}switch(n.code){case"ENOENT":if(o.dirname(e)===e)return r(n);mkdirs(o.dirname(e),t,((n,o)=>{if(n)r(n,o);else mkdirs(e,t,r,o)}));break;default:l.stat(e,((e,t)=>{if(e||!t.isDirectory())r(n,a);else r(null,a)}));break}}))}e.exports=mkdirs},9201:(e,t,r)=>{const n=r(6928);function getRootPath(e){e=n.normalize(n.resolve(e)).split(n.sep);if(e.length>0)return e[0];return null}const o=/[<>:"|?*]/;function invalidWin32Path(e){const t=getRootPath(e);e=e.replace(t,"");return o.test(e)}e.exports={getRootPath:getRootPath,invalidWin32Path:invalidWin32Path}},5669:(e,t,r)=>{e.exports={moveSync:r(586)}},586:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(3437).copySync;const i=r(858).removeSync;const a=r(5914).mkdirpSync;const c=r(2442);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:s}=c.checkPathsSync(e,t,"move");c.checkParentPathsSync(e,s,t,"move");a(o.dirname(t));return doRename(e,t,n)}function doRename(e,t,r){if(r){i(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};s(e,t,n);return i(e)}e.exports=moveSync},6587:(e,t,r)=>{const n=r(7859).S;e.exports={move:n(r(4374))}},4374:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(5523).copy;const i=r(858).remove;const a=r(5914).mkdirp;const c=r(4900).pathExists;const l=r(2442);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const s=r.overwrite||r.clobber||false;l.checkPaths(e,t,"move",((r,i)=>{if(r)return n(r);const{srcStat:c}=i;l.checkParentPaths(e,c,t,"move",(r=>{if(r)return n(r);a(o.dirname(t),(r=>{if(r)return n(r);return doRename(e,t,s,n)}))}))}))}function doRename(e,t,r,n){if(r){return i(t,(o=>{if(o)return n(o);return rename(e,t,r,n)}))}c(t,((o,s)=>{if(o)return n(o);if(s)return n(new Error("dest already exists."));return rename(e,t,r,n)}))}function rename(e,t,r,o){n.rename(e,t,(n=>{if(!n)return o();if(n.code!=="EXDEV")return o(n);return moveAcrossDevice(e,t,r,o)}))}function moveAcrossDevice(e,t,r,n){const o={overwrite:r,errorOnExist:true};s(e,t,o,(t=>{if(t)return n(t);return i(e,n)}))}e.exports=move},6127:(e,t,r)=>{const n=r(7859).S;const o=r(7551);const s=r(6928);const i=r(5914);const a=r(4900).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const c=s.dirname(e);a(c,((s,a)=>{if(s)return n(s);if(a)return o.writeFile(e,t,r,n);i.mkdirs(c,(s=>{if(s)return n(s);o.writeFile(e,t,r,n)}))}))}function outputFileSync(e,...t){const r=s.dirname(e);if(o.existsSync(r)){return o.writeFileSync(e,...t)}i.mkdirsSync(r);o.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},4900:(e,t,r)=>{const n=r(7859).z;const o=r(3917);function pathExists(e){return o.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:n(pathExists),pathExistsSync:o.existsSync}},858:(e,t,r)=>{const n=r(7859).S;const o=r(3997);e.exports={remove:n(o),removeSync:o.sync}},3997:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=r(2613);const i=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}s(e,"rimraf: missing path");s.strictEqual(typeof e,"string","rimraf: path should be a string");s.strictEqual(typeof r,"function","rimraf: callback function required");s(t,"rimraf: invalid options argument provided");s.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&nrimraf_(e,t,CB)),r)}if(o.code==="ENOENT")o=null}r(o)}))}function rimraf_(e,t,r){s(e);s(t);s(typeof r==="function");t.lstat(e,((n,o)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&i){return fixWinEPERM(e,t,n,r)}if(o&&o.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,(n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return i?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)}))}))}function fixWinEPERM(e,t,r,n){s(e);s(t);s(typeof n==="function");if(r){s(r instanceof Error)}t.chmod(e,438,(o=>{if(o){n(o.code==="ENOENT"?null:r)}else{t.stat(e,((o,s)=>{if(o){n(o.code==="ENOENT"?null:r)}else if(s.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}}))}}))}function fixWinEPERMSync(e,t,r){let n;s(e);s(t);if(r){s(r instanceof Error)}try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){s(e);s(t);if(r){s(r instanceof Error)}s(typeof n==="function");t.rmdir(e,(o=>{if(o&&(o.code==="ENOTEMPTY"||o.code==="EEXIST"||o.code==="EPERM")){rmkids(e,t,n)}else if(o&&o.code==="ENOTDIR"){n(r)}else{n(o)}}))}function rmkids(e,t,r){s(e);s(t);s(typeof r==="function");t.readdir(e,((n,s)=>{if(n)return r(n);let i=s.length;let a;if(i===0)return t.rmdir(e,r);s.forEach((n=>{rimraf(o.join(e,n),t,(n=>{if(a){return}if(n)return r(a=n);if(--i===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);s(e,"rimraf: missing path");s.strictEqual(typeof e,"string","rimraf: path should be a string");s(t,"rimraf: missing options");s.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&i){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return i?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){s(e);s(t);if(r){s(r instanceof Error)}try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){s(e);s(t);t.readdirSync(e).forEach((r=>rimrafSync(o.join(e,r),t)));if(i){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch(e){}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},7034:e=>{e.exports=function(e){if(typeof Buffer.allocUnsafe==="function"){try{return Buffer.allocUnsafe(e)}catch(t){return new Buffer(e)}}return new Buffer(e)}},2442:(e,t,r)=>{const n=r(7551);const o=r(6928);const s=10;const i=5;const a=0;const c=process.versions.node.split(".");const l=Number.parseInt(c[0],10);const u=Number.parseInt(c[1],10);const f=Number.parseInt(c[2],10);function nodeSupportsBigInt(){if(l>s){return true}else if(l===s){if(u>i){return true}else if(u===i){if(f>=a){return true}}}return false}function getStats(e,t,r){if(nodeSupportsBigInt()){n.stat(e,{bigint:true},((e,o)=>{if(e)return r(e);n.stat(t,{bigint:true},((e,t)=>{if(e){if(e.code==="ENOENT")return r(null,{srcStat:o,destStat:null});return r(e)}return r(null,{srcStat:o,destStat:t})}))}))}else{n.stat(e,((e,o)=>{if(e)return r(e);n.stat(t,((e,t)=>{if(e){if(e.code==="ENOENT")return r(null,{srcStat:o,destStat:null});return r(e)}return r(null,{srcStat:o,destStat:t})}))}))}}function getStatsSync(e,t){let r,o;if(nodeSupportsBigInt()){r=n.statSync(e,{bigint:true})}else{r=n.statSync(e)}try{if(nodeSupportsBigInt()){o=n.statSync(t,{bigint:true})}else{o=n.statSync(t)}}catch(e){if(e.code==="ENOENT")return{srcStat:r,destStat:null};throw e}return{srcStat:r,destStat:o}}function checkPaths(e,t,r,n){getStats(e,t,((o,s)=>{if(o)return n(o);const{srcStat:i,destStat:a}=s;if(a&&a.ino&&a.dev&&a.ino===i.ino&&a.dev===i.dev){return n(new Error("Source and destination must not be the same."))}if(i.isDirectory()&&isSrcSubdir(e,t)){return n(new Error(errMsg(e,t,r)))}return n(null,{srcStat:i,destStat:a})}))}function checkPathsSync(e,t,r){const{srcStat:n,destStat:o}=getStatsSync(e,t);if(o&&o.ino&&o.dev&&o.ino===n.ino&&o.dev===n.dev){throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:n,destStat:o}}function checkParentPaths(e,t,r,s,i){const a=o.resolve(o.dirname(e));const c=o.resolve(o.dirname(r));if(c===a||c===o.parse(c).root)return i();if(nodeSupportsBigInt()){n.stat(c,{bigint:true},((n,o)=>{if(n){if(n.code==="ENOENT")return i();return i(n)}if(o.ino&&o.dev&&o.ino===t.ino&&o.dev===t.dev){return i(new Error(errMsg(e,r,s)))}return checkParentPaths(e,t,c,s,i)}))}else{n.stat(c,((n,o)=>{if(n){if(n.code==="ENOENT")return i();return i(n)}if(o.ino&&o.dev&&o.ino===t.ino&&o.dev===t.dev){return i(new Error(errMsg(e,r,s)))}return checkParentPaths(e,t,c,s,i)}))}}function checkParentPathsSync(e,t,r,s){const i=o.resolve(o.dirname(e));const a=o.resolve(o.dirname(r));if(a===i||a===o.parse(a).root)return;let c;try{if(nodeSupportsBigInt()){c=n.statSync(a,{bigint:true})}else{c=n.statSync(a)}}catch(e){if(e.code==="ENOENT")return;throw e}if(c.ino&&c.dev&&c.ino===t.ino&&c.dev===t.dev){throw new Error(errMsg(e,r,s))}return checkParentPathsSync(e,t,a,s)}function isSrcSubdir(e,t){const r=o.resolve(e).split(o.sep).filter((e=>e));const n=o.resolve(t).split(o.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},551:(e,t,r)=>{const n=r(7551);const o=r(857);const s=r(6928);function hasMillisResSync(){let e=s.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));e=s.join(o.tmpdir(),e);const t=new Date(1435410243862);n.writeFileSync(e,"https://github.com/jprichardson/node-fs-extra/pull/141");const r=n.openSync(e,"r+");n.futimesSync(r,t,t);n.closeSync(r);return n.statSync(e).mtime>1435410243e3}function hasMillisRes(e){let t=s.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));t=s.join(o.tmpdir(),t);const r=new Date(1435410243862);n.writeFile(t,"https://github.com/jprichardson/node-fs-extra/pull/141",(o=>{if(o)return e(o);n.open(t,"r+",((o,s)=>{if(o)return e(o);n.futimes(s,r,r,(r=>{if(r)return e(r);n.close(s,(r=>{if(r)return e(r);n.stat(t,((t,r)=>{if(t)return e(t);e(null,r.mtime>1435410243e3)}))}))}))}))}))}function timeRemoveMillis(e){if(typeof e==="number"){return Math.floor(e/1e3)*1e3}else if(e instanceof Date){return new Date(Math.floor(e.getTime()/1e3)*1e3)}else{throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}}function utimesMillis(e,t,r,o){n.open(e,"r+",((e,s)=>{if(e)return o(e);n.futimes(s,t,r,(e=>{n.close(s,(t=>{if(o)o(e||t)}))}))}))}function utimesMillisSync(e,t,r){const o=n.openSync(e,"r+");n.futimesSync(o,t,r);return n.closeSync(o)}e.exports={hasMillisRes:hasMillisRes,hasMillisResSync:hasMillisResSync,timeRemoveMillis:timeRemoveMillis,utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},1403:e=>{e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},7551:(e,t,r)=>{var n=r(9896);var o=r(4538);var s=r(2611);var i=r(1403);var a=r(9023);var c;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var u=noop;if(a.debuglog)u=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))u=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[c]){var f=global[c]||[];publishQueue(n,f);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,l,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,l,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){u(n[c]);r(2613).equal(n[c].length,0)}))}}if(!global[c]){publishQueue(global,n[c])}e.exports=patch(i(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){o(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,o){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,o){if(typeof n==="function")o=n,n=null;return go$writeFile(e,t,n,o);function go$writeFile(e,t,n,o,s){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,o],r,s||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,o){if(typeof r==="function")o=r,r=null;return go$appendFile(e,t,r,o);function go$appendFile(e,t,r,o,s){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,o],n,s||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var i=e.copyFile;if(i)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,o){return i(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],s,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var a=e.readdir;e.readdir=readdir;var c=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=c.test(process.version)?function go$readdir(e,t,r,n){return a(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return a(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,o){return function(s,i){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([n,[e,t,r],s,o||Date.now(),Date.now()]);else{if(i&&i.sort)i.sort();if(typeof r==="function")r.call(this,s,i)}}}}if(process.version.substr(0,4)==="v0.8"){var l=s(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var u=e.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return u.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var h=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,o){return h(e,t,r,(function(s,i){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,t,r,n],s,o||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){u("ENQUEUE",e[0].name,e[1]);n[c].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var t=0;t2){n[c][t][3]=e;n[c][t][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(n[c].length===0)return;var e=n[c].shift();var t=e[0];var r=e[1];var o=e[2];var s=e[3];var i=e[4];if(s===undefined){u("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-s>=6e4){u("TIMEOUT",t.name,r);var a=r.pop();if(typeof a==="function")a.call(null,o)}else{var l=Date.now()-i;var f=Math.max(i-s,1);var d=Math.min(f*1.2,100);if(l>=d){u("RETRY",t.name,r);t.apply(null,r.concat([s]))}else{n[c].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},2611:(e,t,r)=>{var n=r(2203).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var o=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var i=0,a=s.length;ithis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){o._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){o.emit("error",e);o.readable=false;return}o.fd=t;o.emit("open",t);o._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var o=Object.keys(r);for(var s=0,i=o.length;s= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},4538:(e,t,r)=>{var n=r(9140);var o=process.cwd;var s=null;var i=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=o.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,a)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(i==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,o){var s=Date.now();var i=0;t(r,n,(function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM"||a.code==="EBUSY")&&Date.now()-s<6e4){setTimeout((function(){e.stat(n,(function(e,s){if(e&&e.code==="ENOENT")t(r,n,CB);else o(a)}))}),i);if(i<100)i+=10;return}if(o)o(a)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,o,s,i,a){var c;if(a&&typeof a==="function"){var l=0;c=function(u,f,p){if(u&&u.code==="EAGAIN"&&l<10){l++;return t.call(e,r,n,o,s,i,c)}a.apply(this,arguments)}}return t.call(e,r,n,o,s,i,c)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,o,s,i){var a=0;while(true){try{return t.call(e,r,n,o,s,i)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,o){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(o)o(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(o)o(t||e)}))}))}))};e.lchmodSync=function(t,r){var o=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var s=true;var i;try{i=e.fchmodSync(o,r);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return i}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,o,s){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(s)s(t);return}e.futimes(n,r,o,(function(t){e.close(n,(function(e){if(s)s(t||e)}))}))}))};e.lutimesSync=function(t,r,o){var s=e.openSync(t,n.O_SYMLINK);var i;var a=true;try{i=e.futimesSync(s,r,o);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return i}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,o){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,o,s){return t.call(e,r,n,o,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,o){try{return t.call(e,r,n,o)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,o){if(typeof n==="function"){o=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(o)o.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var o=n?t.call(e,r,n):t.call(e,r);if(o){if(o.uid<0)o.uid+=4294967296;if(o.gid<0)o.gid+=4294967296}return o}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},1330:e=>{e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const o=t.indexOf("--");return n!==-1&&(o===-1||n{var n;try{n=r(7551)}catch(e){n=r(9896)}function readFile(e,t,r){if(r==null){r=t;t={}}if(typeof t==="string"){t={encoding:t}}t=t||{};var o=t.fs||n;var s=true;if("throws"in t){s=t.throws}o.readFile(e,t,(function(n,o){if(n)return r(n);o=stripBom(o);var i;try{i=JSON.parse(o,t?t.reviver:null)}catch(t){if(s){t.message=e+": "+t.message;return r(t)}else{return r(null,null)}}r(null,i)}))}function readFileSync(e,t){t=t||{};if(typeof t==="string"){t={encoding:t}}var r=t.fs||n;var o=true;if("throws"in t){o=t.throws}try{var s=r.readFileSync(e,t);s=stripBom(s);return JSON.parse(s,t.reviver)}catch(t){if(o){t.message=e+": "+t.message;throw t}else{return null}}}function stringify(e,t){var r;var n="\n";if(typeof t==="object"&&t!==null){if(t.spaces){r=t.spaces}if(t.EOL){n=t.EOL}}var o=JSON.stringify(e,t?t.replacer:null,r);return o.replace(/\n/g,n)+n}function writeFile(e,t,r,o){if(o==null){o=r;r={}}r=r||{};var s=r.fs||n;var i="";try{i=stringify(t,r)}catch(e){if(o)o(e,null);return}s.writeFile(e,i,r,o)}function writeFileSync(e,t,r){r=r||{};var o=r.fs||n;var s=stringify(t,r);return o.writeFileSync(e,s,r)}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");e=e.replace(/^\uFEFF/,"");return e}var o={readFile:readFile,readFileSync:readFileSync,writeFile:writeFile,writeFileSync:writeFileSync};e.exports=o},709:(e,t,r)=>{const n=r(2513);const o=r(5557);class SerDe{constructor(){const e={__LOG4JS_undefined__:undefined,__LOG4JS_NaN__:Number("abc"),__LOG4JS_Infinity__:1/0,"__LOG4JS_-Infinity__":-1/0};this.deMap=e;this.serMap={};Object.keys(this.deMap).forEach((e=>{const t=this.deMap[e];this.serMap[t]=e}))}canSerialise(e){if(typeof e==="string")return false;return e in this.serMap}serialise(e){if(this.canSerialise(e))return this.serMap[e];return e}canDeserialise(e){return e in this.deMap}deserialise(e){if(this.canDeserialise(e))return this.deMap[e];return e}}const s=new SerDe;class LoggingEvent{constructor(e,t,r,n,o,s){this.startTime=new Date;this.categoryName=e;this.data=r;this.level=t;this.context=Object.assign({},n);this.pid=process.pid;this.error=s;if(typeof o!=="undefined"){if(!o||typeof o!=="object"||Array.isArray(o))throw new TypeError("Invalid location type passed to LoggingEvent constructor");this.constructor._getLocationKeys().forEach((e=>{if(typeof o[e]!=="undefined")this[e]=o[e]}))}}static _getLocationKeys(){return["fileName","lineNumber","columnNumber","callStack","className","functionName","functionAlias","callerName"]}serialise(){return n.stringify(this,((e,t)=>{if(t instanceof Error){t=Object.assign({message:t.message,stack:t.stack},t)}return s.serialise(t)}))}static deserialise(e){let t;try{const r=n.parse(e,((e,t)=>{if(t&&t.message&&t.stack){const e=new Error(t);Object.keys(t).forEach((r=>{e[r]=t[r]}));t=e}return s.deserialise(t)}));this._getLocationKeys().forEach((e=>{if(typeof r[e]!=="undefined"){if(!r.location)r.location={};r.location[e]=r[e]}}));t=new LoggingEvent(r.categoryName,o.getLevel(r.level.levelStr),r.data,r.context,r.location,r.error);t.startTime=new Date(r.startTime);t.pid=r.pid;if(r.cluster){t.cluster=r.cluster}}catch(r){t=new LoggingEvent("log4js",o.ERROR,["Unable to parse log:",e,"because: ",r])}return t}}e.exports=LoggingEvent},2095:e=>{function maxFileSizeUnitTransform(e){if(typeof e==="number"&&Number.isInteger(e)){return e}const t={K:1024,M:1024*1024,G:1024*1024*1024};const r=Object.keys(t);const n=e.slice(-1).toLocaleUpperCase();const o=e.slice(0,-1).trim();if(r.indexOf(n)<0||!Number.isInteger(Number(o))){throw Error(`maxLogSize: "${e}" is invalid`)}else{return o*t[n]}}function adapter(e,t){const r=Object.assign({},t);Object.keys(e).forEach((n=>{if(r[n]){r[n]=e[n](t[n])}}));return r}function fileAppenderAdapter(e){const t={maxLogSize:maxFileSizeUnitTransform};return adapter(t,e)}const t={dateFile:fileAppenderAdapter,file:fileAppenderAdapter,fileSync:fileAppenderAdapter};e.exports.modifyConfig=e=>t[e.type]?t[e.type](e):e},777:(e,t,r)=>{const n=r(9592)("log4js:categoryFilter");function categoryFilter(e,t){if(typeof e==="string")e=[e];return r=>{n(`Checking ${r.categoryName} against ${e}`);if(e.indexOf(r.categoryName)===-1){n("Not excluded, sending to appender");t(r)}}}function configure(e,t,r){const n=r(e.appender);return categoryFilter(e.exclude,n)}e.exports.configure=configure},6318:e=>{const t=console.log.bind(console);function consoleAppender(e,r){return n=>{t(e(n,r))}}function configure(e,t){let r=t.colouredLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}return consoleAppender(r,e.timezoneOffset)}e.exports.configure=configure},5697:(e,t,r)=>{const n=r(9055);const o=r(857);const s=o.EOL;function openTheStream(e,t,r){const o=new n.DateRollingFileStream(e,t,r);o.on("error",(t=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",e,t)}));o.on("drain",(()=>{process.emit("log4js:pause",false)}));return o}function appender(e,t,r,n,o){n.maxSize=n.maxLogSize;const i=openTheStream(e,t,n);const app=function(e){if(!i.writable){return}if(!i.write(r(e,o)+s,"utf8")){process.emit("log4js:pause",true)}};app.shutdown=function(e){i.end("","utf-8",e)};return app}function configure(e,t){let r=t.basicLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}if(!e.alwaysIncludePattern){e.alwaysIncludePattern=false}e.mode=e.mode||384;return appender(e.filename,e.pattern,r,e,e.timezoneOffset)}e.exports.configure=configure},173:(e,t,r)=>{const n=r(9592)("log4js:file");const o=r(6928);const s=r(9055);const i=r(857);const a=i.EOL;let c=false;const l=new Set;function mainSighupHandler(){l.forEach((e=>{e.sighupHandler()}))}function fileAppender(e,t,r,u,f,p){if(typeof e!=="string"||e.length===0){throw new Error(`Invalid filename: ${e}`)}else if(e.endsWith(o.sep)){throw new Error(`Filename is a directory: ${e}`)}else if(e.indexOf(`~${o.sep}`)===0){e=e.replace("~",i.homedir())}e=o.normalize(e);u=!u&&u!==0?5:u;n("Creating file appender (",e,", ",r,", ",u,", ",f,", ",p,")");function openTheStream(e,t,r,n){const o=new s.RollingFileStream(e,t,r,n);o.on("error",(t=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",e,t)}));o.on("drain",(()=>{process.emit("log4js:pause",false)}));return o}let d=openTheStream(e,r,u,f);const app=function(e){if(!d.writable){return}if(f.removeColor===true){const t=/\x1b[[0-9;]*m/g;e.data=e.data.map((e=>{if(typeof e==="string")return e.replace(t,"");return e}))}if(!d.write(t(e,p)+a,"utf8")){process.emit("log4js:pause",true)}};app.reopen=function(){d.end((()=>{d=openTheStream(e,r,u,f)}))};app.sighupHandler=function(){n("SIGHUP handler called.");app.reopen()};app.shutdown=function(e){l.delete(app);if(l.size===0&&c){process.removeListener("SIGHUP",mainSighupHandler);c=false}d.end("","utf-8",e)};l.add(app);if(!c){process.on("SIGHUP",mainSighupHandler);c=true}return app}function configure(e,t){let r=t.basicLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}e.mode=e.mode||384;return fileAppender(e.filename,r,e.maxLogSize,e.backups,e,e.timezoneOffset)}e.exports.configure=configure},3842:(e,t,r)=>{const n=r(9592)("log4js:fileSync");const o=r(6928);const s=r(9896);const i=r(857);const a=i.EOL;function touchFile(e,t){const mkdir=e=>{try{return s.mkdirSync(e,{recursive:true})}catch(t){if(t.code==="ENOENT"){mkdir(o.dirname(e));return mkdir(e)}if(t.code!=="EEXIST"&&t.code!=="EROFS"){throw t}else{try{if(s.statSync(e).isDirectory()){return e}throw t}catch(e){throw t}}}};mkdir(o.dirname(e));s.appendFileSync(e,"",{mode:t.mode,flag:t.flags})}class RollingFileSync{constructor(e,t,r,o){n("In RollingFileStream");if(t<0){throw new Error(`maxLogSize (${t}) should be > 0`)}this.filename=e;this.size=t;this.backups=r;this.options=o;this.currentSize=0;function currentFileSize(e){let t=0;try{t=s.statSync(e).size}catch(t){touchFile(e,o)}return t}this.currentSize=currentFileSize(this.filename)}shouldRoll(){n("should roll with current size %d, and max size %d",this.currentSize,this.size);return this.currentSize>=this.size}roll(e){const t=this;const r=new RegExp(`^${o.basename(e)}`);function justTheseFiles(e){return r.test(e)}function index(t){return parseInt(t.slice(`${o.basename(e)}.`.length),10)||0}function byIndex(e,t){return index(e)-index(t)}function increaseFileIndex(r){const i=index(r);n(`Index of ${r} is ${i}`);if(t.backups===0){s.truncateSync(e,0)}else if(i ${e}.${i+1}`);s.renameSync(o.join(o.dirname(e),r),`${e}.${i+1}`)}}function renameTheFiles(){n("Renaming the old files");const t=s.readdirSync(o.dirname(e));t.filter(justTheseFiles).sort(byIndex).reverse().forEach(increaseFileIndex)}n("Rolling, rolling, rolling");renameTheFiles()}write(e,t){const r=this;function writeTheChunk(){n("writing the chunk to the file");r.currentSize+=e.length;s.appendFileSync(r.filename,e)}n("in write");if(this.shouldRoll()){this.currentSize=0;this.roll(this.filename)}writeTheChunk()}}function fileAppender(e,t,r,c,l,u){if(typeof e!=="string"||e.length===0){throw new Error(`Invalid filename: ${e}`)}else if(e.endsWith(o.sep)){throw new Error(`Filename is a directory: ${e}`)}else if(e.indexOf(`~${o.sep}`)===0){e=e.replace("~",i.homedir())}e=o.normalize(e);c=!c&&c!==0?5:c;n("Creating fileSync appender (",e,", ",r,", ",c,", ",l,", ",u,")");function openTheStream(e,t,r){let n;if(t){n=new RollingFileSync(e,t,r,l)}else{n=(e=>{touchFile(e,l);return{write(t){s.appendFileSync(e,t)}}})(e)}return n}const f=openTheStream(e,r,c);return e=>{f.write(t(e,u)+a)}}function configure(e,t){let r=t.basicLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}const n={flags:e.flags||"a",encoding:e.encoding||"utf8",mode:e.mode||384};return fileAppender(e.filename,r,e.maxLogSize,e.backups,n,e.timezoneOffset)}e.exports.configure=configure},4975:(t,r,n)=>{const o=n(6928);const s=n(9592)("log4js:appenders");const i=n(7306);const a=n(5960);const c=n(5557);const l=n(8083);const u=n(2095);const f=new Map;f.set("console",n(6318));f.set("stdout",n(8564));f.set("stderr",n(1659));f.set("logLevelFilter",n(7953));f.set("categoryFilter",n(777));f.set("noLogFilter",n(1054));f.set("file",n(173));f.set("dateFile",n(5697));f.set("fileSync",n(3842));f.set("tcp",n(7968));const p=new Map;const tryLoading=(t,r)=>{let n;try{const r=`${t}.cjs`;n=e(import.meta.url).resolve(r);s("Loading module from ",r)}catch(e){n=t;s("Loading module from ",t)}try{return e(import.meta.url)(n)}catch(e){i.throwExceptionIf(r,e.code!=="MODULE_NOT_FOUND",`appender "${t}" could not be loaded (error was: ${e})`);return undefined}};const loadAppenderModule=(t,r)=>f.get(t)||tryLoading(`./${t}`,r)||tryLoading(t,r)||e(import.meta.url).main&&e(import.meta.url).main.filename&&tryLoading(o.join(o.dirname(e(import.meta.url).main.filename),t),r)||tryLoading(o.join(process.cwd(),t),r);const d=new Set;const getAppender=(e,t)=>{if(p.has(e))return p.get(e);if(!t.appenders[e])return false;if(d.has(e))throw new Error(`Dependency loop detected for appender ${e}.`);d.add(e);s(`Creating appender ${e}`);const r=createAppender(e,t);d.delete(e);p.set(e,r);return r};const createAppender=(e,t)=>{const r=t.appenders[e];const o=r.type.configure?r.type:loadAppenderModule(r.type,t);i.throwExceptionIf(t,i.not(o),`appender "${e}" is not valid (type "${r.type}" could not be found)`);if(o.appender){process.emitWarning(`Appender ${r.type} exports an appender function.`,"DeprecationWarning","log4js-node-DEP0001");s("[log4js-node-DEP0001]",`DEPRECATION: Appender ${r.type} exports an appender function.`)}if(o.shutdown){process.emitWarning(`Appender ${r.type} exports a shutdown function.`,"DeprecationWarning","log4js-node-DEP0002");s("[log4js-node-DEP0002]",`DEPRECATION: Appender ${r.type} exports a shutdown function.`)}s(`${e}: clustering.isMaster ? ${a.isMaster()}`);s(`${e}: appenderModule is ${n(9023).inspect(o)}`);return a.onlyOnMaster((()=>{s(`calling appenderModule.configure for ${e} / ${r.type}`);return o.configure(u.modifyConfig(r),l,(e=>getAppender(e,t)),c)}),(()=>{}))};const setup=e=>{p.clear();d.clear();if(!e){return}const t=[];Object.values(e.categories).forEach((e=>{t.push(...e.appenders)}));Object.keys(e.appenders).forEach((r=>{if(t.includes(r)||e.appenders[r].type==="tcp-server"||e.appenders[r].type==="multiprocess"){getAppender(r,e)}}))};const init=()=>{setup()};init();i.addListener((e=>{i.throwExceptionIf(e,i.not(i.anObject(e.appenders)),'must have a property "appenders" of type object.');const t=Object.keys(e.appenders);i.throwExceptionIf(e,i.not(t.length),"must define at least one appender.");t.forEach((t=>{i.throwExceptionIf(e,i.not(e.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)}))}));i.addListener(setup);t.exports=p;t.exports.init=init},7953:e=>{function logLevelFilter(e,t,r,n){const o=n.getLevel(e);const s=n.getLevel(t,n.FATAL);return e=>{const t=e.level;if(o.isLessThanOrEqualTo(t)&&s.isGreaterThanOrEqualTo(t)){r(e)}}}function configure(e,t,r,n){const o=r(e.appender);return logLevelFilter(e.level,e.maxLevel,o,n)}e.exports.configure=configure},1054:(e,t,r)=>{const n=r(9592)("log4js:noLogFilter");function removeNullOrEmptyRegexp(e){const t=e.filter((e=>e!=null&&e!==""));return t}function noLogFilter(e,t){return r=>{n(`Checking data: ${r.data} against filters: ${e}`);if(typeof e==="string"){e=[e]}e=removeNullOrEmptyRegexp(e);const o=new RegExp(e.join("|"),"i");if(e.length===0||r.data.findIndex((e=>o.test(e)))<0){n("Not excluded, sending to appender");t(r)}}}function configure(e,t,r){const n=r(e.appender);return noLogFilter(e.exclude,n)}e.exports.configure=configure},6460:(e,t,r)=>{const n=r(9592)("log4js:recording");const o=[];function configure(){return function(e){n(`received logEvent, number of events now ${o.length+1}`);n("log event was ",e);o.push(e)}}function replay(){return o.slice()}function reset(){o.length=0}e.exports={configure:configure,replay:replay,playback:replay,reset:reset,erase:reset}},1659:e=>{function stderrAppender(e,t){return r=>{process.stderr.write(`${e(r,t)}\n`)}}function configure(e,t){let r=t.colouredLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}return stderrAppender(r,e.timezoneOffset)}e.exports.configure=configure},8564:(e,t)=>{function stdoutAppender(e,t){return r=>{process.stdout.write(`${e(r,t)}\n`)}}function configure(e,t){let r=t.colouredLayout;if(e.layout){r=t.layout(e.layout.type,e.layout)}return stdoutAppender(r,e.timezoneOffset)}t.configure=configure},7968:(e,t,r)=>{const n=r(9592)("log4js:tcp");const o=r(9278);function appender(e,t){let r=false;const s=[];let i;let a=3;let c="__LOG4JS__";function write(e){n("Writing log event to socket");r=i.write(`${t(e)}${c}`,"utf8")}function emptyBuffer(){let e;n("emptying buffer");while(e=s.shift()){write(e)}}function createSocket(){n(`appender creating socket to ${e.host||"localhost"}:${e.port||5e3}`);c=`${e.endMsg||"__LOG4JS__"}`;i=o.createConnection(e.port||5e3,e.host||"localhost");i.on("connect",(()=>{n("socket connected");emptyBuffer();r=true}));i.on("drain",(()=>{n("drain event received, emptying buffer");r=true;emptyBuffer()}));i.on("timeout",i.end.bind(i));i.on("error",(e=>{n("connection error",e);r=false;emptyBuffer()}));i.on("close",createSocket)}createSocket();function log(e){if(r){write(e)}else{n("buffering log event because it cannot write at the moment");s.push(e)}}log.shutdown=function(e){n("shutdown called");if(s.length&&a){n("buffer has items, waiting 100ms to empty");a-=1;setTimeout((()=>{log.shutdown(e)}),100)}else{i.removeAllListeners("close");i.end(e)}};return log}function configure(e,t){n(`configure with config = ${e}`);let layout=function(e){return e.serialise()};if(e.layout){layout=t.layout(e.layout.type,e.layout)}return appender(e,layout)}e.exports.configure=configure},9878:(e,t,r)=>{const n=r(9592)("log4js:categories");const o=r(7306);const s=r(5557);const i=r(4975);const a=new Map;function inheritFromParent(e,t,r){if(t.inherit===false)return;const n=r.lastIndexOf(".");if(n<0)return;const o=r.slice(0,n);let s=e.categories[o];if(!s){s={inherit:true,appenders:[]}}inheritFromParent(e,s,o);if(!e.categories[o]&&s.appenders&&s.appenders.length&&s.level){e.categories[o]=s}t.appenders=t.appenders||[];t.level=t.level||s.level;s.appenders.forEach((e=>{if(!t.appenders.includes(e)){t.appenders.push(e)}}));t.parent=s}function addCategoryInheritance(e){if(!e.categories)return;const t=Object.keys(e.categories);t.forEach((t=>{const r=e.categories[t];inheritFromParent(e,r,t)}))}o.addPreProcessingListener((e=>addCategoryInheritance(e)));o.addListener((e=>{o.throwExceptionIf(e,o.not(o.anObject(e.categories)),'must have a property "categories" of type object.');const t=Object.keys(e.categories);o.throwExceptionIf(e,o.not(t.length),"must define at least one category.");t.forEach((t=>{const r=e.categories[t];o.throwExceptionIf(e,[o.not(r.appenders),o.not(r.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`);o.throwExceptionIf(e,o.not(Array.isArray(r.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`);o.throwExceptionIf(e,o.not(r.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`);if(Object.prototype.hasOwnProperty.call(r,"enableCallStack")){o.throwExceptionIf(e,typeof r.enableCallStack!=="boolean",`category "${t}" is not valid (enableCallStack must be boolean type)`)}r.appenders.forEach((r=>{o.throwExceptionIf(e,o.not(i.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)}));o.throwExceptionIf(e,o.not(s.getLevel(r.level)),`category "${t}" is not valid (level "${r.level}" not recognised;`+` valid levels are ${s.levels.join(", ")})`)}));o.throwExceptionIf(e,o.not(e.categories.default),'must define a "default" category.')}));const setup=e=>{a.clear();if(!e){return}const t=Object.keys(e.categories);t.forEach((t=>{const r=e.categories[t];const o=[];r.appenders.forEach((e=>{o.push(i.get(e));n(`Creating category ${t}`);a.set(t,{appenders:o,level:s.getLevel(r.level),enableCallStack:r.enableCallStack||false})}))}))};const init=()=>{setup()};init();o.addListener(setup);const configForCategory=e=>{n(`configForCategory: searching for config for ${e}`);if(a.has(e)){n(`configForCategory: ${e} exists in config, returning it`);return a.get(e)}let t;if(e.indexOf(".")>0){n(`configForCategory: ${e} has hierarchy, cloning from parents`);t={...configForCategory(e.slice(0,e.lastIndexOf(".")))}}else{if(!a.has("default")){setup({categories:{default:{appenders:["out"],level:"OFF"}}})}n("configForCategory: cloning default category");t={...a.get("default")}}a.set(e,t);return t};const appendersForCategory=e=>configForCategory(e).appenders;const getLevelForCategory=e=>configForCategory(e).level;const setLevelForCategory=(e,t)=>{configForCategory(e).level=t};const getEnableCallStackForCategory=e=>configForCategory(e).enableCallStack===true;const setEnableCallStackForCategory=(e,t)=>{configForCategory(e).enableCallStack=t};e.exports=a;e.exports=Object.assign(e.exports,{appendersForCategory:appendersForCategory,getLevelForCategory:getLevelForCategory,setLevelForCategory:setLevelForCategory,getEnableCallStackForCategory:getEnableCallStackForCategory,setEnableCallStackForCategory:setEnableCallStackForCategory,init:init})},5960:(e,t,r)=>{const n=r(9592)("log4js:clustering");const o=r(709);const s=r(7306);let i=false;let a=null;try{a=r(9907)}catch(e){n("cluster module not present");i=true}const c=[];let l=false;let u="NODE_APP_INSTANCE";const isPM2Master=()=>l&&process.env[u]==="0";const isMaster=()=>i||a&&a.isMaster||isPM2Master();const sendToListeners=e=>{c.forEach((t=>t(e)))};const receiver=(e,t)=>{n("cluster message received from worker ",e,": ",t);if(e.topic&&e.data){t=e;e=undefined}if(t&&t.topic&&t.topic==="log4js:message"){n("received message: ",t.data);const e=o.deserialise(t.data);sendToListeners(e)}};if(!i){s.addListener((e=>{c.length=0;({pm2:l,disableClustering:i,pm2InstanceVar:u="NODE_APP_INSTANCE"}=e);n(`clustering disabled ? ${i}`);n(`cluster.isMaster ? ${a&&a.isMaster}`);n(`pm2 enabled ? ${l}`);n(`pm2InstanceVar = ${u}`);n(`process.env[${u}] = ${process.env[u]}`);if(l){process.removeListener("message",receiver)}if(a&&a.removeListener){a.removeListener("message",receiver)}if(i||e.disableClustering){n("Not listening for cluster messages, because clustering disabled.")}else if(isPM2Master()){n("listening for PM2 broadcast messages");process.on("message",receiver)}else if(a&&a.isMaster){n("listening for cluster messages");a.on("message",receiver)}else{n("not listening for messages, because we are not a master process")}}))}e.exports={onlyOnMaster:(e,t)=>isMaster()?e():t,isMaster:isMaster,send:e=>{if(isMaster()){sendToListeners(e)}else{if(!l){e.cluster={workerId:a.worker.id,worker:process.pid}}process.send({topic:"log4js:message",data:e.serialise()})}},onMessage:e=>{c.push(e)}}},7306:(e,t,r)=>{const n=r(9023);const o=r(9592)("log4js:configuration");const s=[];const i=[];const not=e=>!e;const anObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const validIdentifier=e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e);const anInteger=e=>e&&typeof e==="number"&&Number.isInteger(e);const addListener=e=>{i.push(e);o(`Added listener, now ${i.length} listeners`)};const addPreProcessingListener=e=>{s.push(e);o(`Added pre-processing listener, now ${s.length} listeners`)};const throwExceptionIf=(e,t,r)=>{const o=Array.isArray(t)?t:[t];o.forEach((t=>{if(t){throw new Error(`Problem with log4js configuration: (${n.inspect(e,{depth:5})}) - ${r}`)}}))};const configure=e=>{o("New configuration to be validated: ",e);throwExceptionIf(e,not(anObject(e)),"must be an object.");o(`Calling pre-processing listeners (${s.length})`);s.forEach((t=>t(e)));o("Configuration pre-processing finished.");o(`Calling configuration listeners (${i.length})`);i.forEach((t=>t(e)));o("Configuration finished.")};e.exports={configure:configure,addListener:addListener,addPreProcessingListener:addPreProcessingListener,throwExceptionIf:throwExceptionIf,anObject:anObject,anInteger:anInteger,validIdentifier:validIdentifier,not:not}},3727:(e,t,r)=>{const n=r(5557);const o=":remote-addr - -"+' ":method :url HTTP/:http-version"'+' :status :content-length ":referrer"'+' ":user-agent"';function getUrl(e){return e.originalUrl||e.url}function assembleTokens(e,t,r){const arrayUniqueTokens=e=>{const t=e.concat();for(let e=0;ee.source?e.source:e));t=new RegExp(r.join("|"))}return t}function matchRules(e,t,r){let o=t;if(r){const t=r.find((t=>{let r=false;if(t.from&&t.to){r=e>=t.from&&e<=t.to}else{r=t.codes.indexOf(e)!==-1}return r}));if(t){o=n.getLevel(t.level,o)}}return o}e.exports=function getLogger(e,t){if(typeof t==="string"||typeof t==="function"){t={format:t}}else{t=t||{}}const r=e;let s=n.getLevel(t.level,n.INFO);const i=t.format||o;return(e,o,a)=>{if(typeof e._logging!=="undefined")return a();if(typeof t.nolog!=="function"){const r=createNoLogCondition(t.nolog);if(r&&r.test(e.originalUrl))return a()}if(r.isLevelEnabled(s)||t.level==="auto"){const a=new Date;const{writeHead:c}=o;e._logging=true;o.writeHead=(e,t)=>{o.writeHead=c;o.writeHead(e,t);o.__statusCode=e;o.__headers=t||{}};let l=false;const handler=()=>{if(l){return}l=true;if(typeof t.nolog==="function"){if(t.nolog(e,o)===true){e._logging=false;return}}o.responseTime=new Date-a;if(o.statusCode&&t.level==="auto"){s=n.INFO;if(o.statusCode>=300)s=n.WARN;if(o.statusCode>=400)s=n.ERROR}s=matchRules(o.statusCode,s,t.statusRules);const c=assembleTokens(e,o,t.tokens||[]);if(t.context)r.addContext("res",o);if(typeof i==="function"){const t=i(e,o,(e=>format(e,c)));if(t)r.log(s,t)}else{r.log(s,format(i,c))}if(t.context)r.removeContext("res")};o.on("end",handler);o.on("finish",handler);o.on("error",handler);o.on("close",handler)}return a()}}},8083:(e,t,r)=>{const n=r(8877);const o=r(857);const s=r(9023);const i=r(6928);const a=r(7016);const c=r(9592)("log4js:layouts");const l={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function colorizeStart(e){return e?`[${l[e][0]}m`:""}function colorizeEnd(e){return e?`[${l[e][1]}m`:""}function colorize(e,t){return colorizeStart(t)+e+colorizeEnd(t)}function timestampLevelAndCategory(e,t){return colorize(s.format("[%s] [%s] %s - ",n.asString(e.startTime),e.level.toString(),e.categoryName),t)}function basicLayout(e){return timestampLevelAndCategory(e)+s.format(...e.data)}function colouredLayout(e){return timestampLevelAndCategory(e,e.level.colour)+s.format(...e.data)}function messagePassThroughLayout(e){return s.format(...e.data)}function dummyLayout(e){return e.data[0]}function patternLayout(e,t){const r="%r %p %c - %m%n";const l=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;e=e||r;function categoryName(e,t){let r=e.categoryName;if(t){const e=parseInt(t,10);const n=r.split(".");if(ee){r=n.slice(-e).join(i.sep)}}return r}function lineNumber(e){return e.lineNumber?`${e.lineNumber}`:""}function columnNumber(e){return e.columnNumber?`${e.columnNumber}`:""}function callStack(e){return e.callStack||""}function className(e){return e.className||""}function functionName(e){return e.functionName||""}function functionAlias(e){return e.functionAlias||""}function callerName(e){return e.callerName||""}const u={c:categoryName,d:formatAsDate,h:hostname,m:formatMessage,n:endOfLine,p:logLevel,r:startTime,"[":startColour,"]":endColour,y:clusterInfo,z:pid,"%":percent,x:userDefined,X:contextDefined,f:fileName,l:lineNumber,o:columnNumber,s:callStack,C:className,M:functionName,A:functionAlias,F:callerName};function replaceToken(e,t,r){return u[e](t,r)}function truncate(e,t){let r;if(e){r=parseInt(e.slice(1),10);return r>0?t.slice(0,r):t.slice(r)}return t}function pad(e,t){let r;if(e){if(e.charAt(0)==="-"){r=parseInt(e.slice(1),10);while(t.length{const n=r(7306);const o=["white","grey","black","blue","cyan","green","magenta","red","yellow"];class Level{constructor(e,t,r){this.level=e;this.levelStr=t;this.colour=r}toString(){return this.levelStr}static getLevel(e,t){if(!e){return t}if(e instanceof Level){return e}if(e instanceof Object&&e.levelStr){e=e.levelStr}return Level[e.toString().toUpperCase()]||t}static addLevels(e){if(e){const t=Object.keys(e);t.forEach((t=>{const r=t.toUpperCase();Level[r]=new Level(e[t].value,r,e[t].colour);const n=Level.levels.findIndex((e=>e.levelStr===r));if(n>-1){Level.levels[n]=Level[r]}else{Level.levels.push(Level[r])}}));Level.levels.sort(((e,t)=>e.level-t.level))}}isLessThanOrEqualTo(e){if(typeof e==="string"){e=Level.getLevel(e)}return this.level<=e.level}isGreaterThanOrEqualTo(e){if(typeof e==="string"){e=Level.getLevel(e)}return this.level>=e.level}isEqualTo(e){if(typeof e==="string"){e=Level.getLevel(e)}return this.level===e.level}}Level.levels=[];Level.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}});n.addListener((e=>{const t=e.levels;if(t){n.throwExceptionIf(e,n.not(n.anObject(t)),"levels must be an object");const r=Object.keys(t);r.forEach((r=>{n.throwExceptionIf(e,n.not(n.validIdentifier(r)),`level name "${r}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`);n.throwExceptionIf(e,n.not(n.anObject(t[r])),`level "${r}" must be an object`);n.throwExceptionIf(e,n.not(t[r].value),`level "${r}" must have a 'value' property`);n.throwExceptionIf(e,n.not(n.anInteger(t[r].value)),`level "${r}".value must have an integer value`);n.throwExceptionIf(e,n.not(t[r].colour),`level "${r}" must have a 'colour' property`);n.throwExceptionIf(e,n.not(o.indexOf(t[r].colour)>-1),`level "${r}".colour must be one of ${o.join(", ")}`)}))}}));n.addListener((e=>{Level.addLevels(e.levels)}));e.exports=Level},2027:(e,t,r)=>{const n=r(9592)("log4js:main");const o=r(9896);const s=r(3934)({proto:true});const i=r(7306);const a=r(8083);const c=r(5557);const l=r(4975);const u=r(9878);const f=r(350);const p=r(5960);const d=r(3727);const h=r(6460);let m=false;function sendLogEventToAppender(e){if(!m)return;n("Received log event ",e);const t=u.appendersForCategory(e.categoryName);t.forEach((t=>{t(e)}))}function loadConfigurationFile(e){n(`Loading configuration from ${e}`);try{return JSON.parse(o.readFileSync(e,"utf8"))}catch(t){throw new Error(`Problem reading config from file "${e}". Error was ${t.message}`,t)}}function configure(e){if(m){shutdown()}let t=e;if(typeof t==="string"){t=loadConfigurationFile(e)}n(`Configuration is ${t}`);i.configure(s(t));p.onMessage(sendLogEventToAppender);m=true;return y}function isConfigured(){return m}function recording(){return h}function shutdown(e=()=>{}){if(typeof e!=="function"){throw new TypeError("Invalid callback passed to shutdown")}n("Shutdown called. Disabling all log writing.");m=false;const t=Array.from(l.values());l.init();u.init();const r=t.reduce(((e,t)=>t.shutdown?e+1:e),0);if(r===0){n("No appenders with shutdown functions found.");e()}let o=0;let s;n(`Found ${r} appenders with shutdown functions.`);function complete(t){s=s||t;o+=1;n(`Appender shutdowns complete: ${o} / ${r}`);if(o>=r){n("All shutdown functions completed.");e(s)}}t.filter((e=>e.shutdown)).forEach((e=>e.shutdown(complete)))}function getLogger(e){if(!m){configure(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}})}return new f(e||"default")}const y={getLogger:getLogger,configure:configure,isConfigured:isConfigured,shutdown:shutdown,connectLogger:d,levels:c,addLayout:a.addLayout,recording:recording};e.exports=y},350:(e,t,r)=>{const n=r(9592)("log4js:logger");const o=r(709);const s=r(5557);const i=r(5960);const a=r(9878);const c=r(7306);const l=/^(?:\s*)at (?:(.+) \()?(?:([^(]+?):(\d+):(\d+))\)?$/;const u=1;const f=3;function defaultParseCallStack(e,t=f+u){try{const r=e.stack.split("\n").slice(t);if(!r.length){return null}const n=l.exec(r[0]);if(n&&n.length===5){let e="";let t="";let o="";if(n[1]&&n[1]!==""){[t,o]=n[1].replace(/[[\]]/g,"").split(" as ");o=o||"";if(t.includes("."))[e,t]=t.split(".")}return{fileName:n[2],lineNumber:parseInt(n[3],10),columnNumber:parseInt(n[4],10),callStack:r.join("\n"),className:e,functionName:t,functionAlias:o,callerName:n[1]||""}}else{console.error("log4js.logger - defaultParseCallStack error")}}catch(e){console.error("log4js.logger - defaultParseCallStack error",e)}return null}class Logger{constructor(e){if(!e){throw new Error("No category provided.")}this.category=e;this.context={};this.callStackSkipIndex=0;this.parseCallStack=defaultParseCallStack;n(`Logger created (${this.category}, ${this.level})`)}get level(){return s.getLevel(a.getLevelForCategory(this.category),s.OFF)}set level(e){a.setLevelForCategory(this.category,s.getLevel(e,this.level))}get useCallStack(){return a.getEnableCallStackForCategory(this.category)}set useCallStack(e){a.setEnableCallStackForCategory(this.category,e===true)}get callStackLinesToSkip(){return this.callStackSkipIndex}set callStackLinesToSkip(e){if(typeof e!=="number"){throw new TypeError("Must be a number")}if(e<0){throw new RangeError("Must be >= 0")}this.callStackSkipIndex=e}log(e,...t){const r=s.getLevel(e);if(!r){if(c.validIdentifier(e)&&t.length>0){this.log(s.WARN,"log4js:logger.log: valid log-level not found as first parameter given:",e);this.log(s.INFO,`[${e}]`,...t)}else{this.log(s.INFO,e,...t)}}else if(this.isLevelEnabled(r)){this._log(r,t)}}isLevelEnabled(e){return this.level.isLessThanOrEqualTo(e)}_log(e,t){n(`sending log data (${e}) to appenders`);const r=t.find((e=>e instanceof Error));let s;if(this.useCallStack){try{if(r){s=this.parseCallStack(r,this.callStackSkipIndex+u)}}catch(e){}s=s||this.parseCallStack(new Error,this.callStackSkipIndex+f+u)}const a=new o(this.category,e,t,this.context,s,r);i.send(a)}addContext(e,t){this.context[e]=t}removeContext(e){delete this.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){if(typeof e==="function"){this.parseCallStack=e}else if(typeof e==="undefined"){this.parseCallStack=defaultParseCallStack}else{throw new TypeError("Invalid type passed to setParseCallStackFunction")}}}function addLevelMethods(e){const t=s.getLevel(e);const r=t.toString().toLowerCase();const n=r.replace(/_([a-z])/g,(e=>e[1].toUpperCase()));const o=n[0].toUpperCase()+n.slice(1);Logger.prototype[`is${o}Enabled`]=function(){return this.isLevelEnabled(t)};Logger.prototype[n]=function(...e){this.log(t,...e)}}s.levels.forEach(addLevelMethods);c.addListener((()=>{s.levels.forEach(addLevelMethods)}));e.exports=Logger},2134:e=>{var t=1e3;var r=t*60;var n=r*60;var o=n*24;var s=o*7;var i=o*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=o){return Math.round(e/o)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=r){return Math.round(e/r)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=o){return plural(e,s,o,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=r){return plural(e,s,r,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}},3934:e=>{e.exports=rfdc;function copyBuffer(e){if(e instanceof Buffer){return Buffer.from(e)}return new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function rfdc(e){e=e||{};if(e.circles)return rfdcCircles(e);const t=new Map;t.set(Date,(e=>new Date(e)));t.set(Map,((e,t)=>new Map(cloneArray(Array.from(e),t))));t.set(Set,((e,t)=>new Set(cloneArray(Array.from(e),t))));if(e.constructorHandlers){for(const r of e.constructorHandlers){t.set(r[0],r[1])}}let r=null;return e.proto?cloneProto:clone;function cloneArray(e,n){const o=Object.keys(e);const s=new Array(o.length);for(let i=0;inew Date(e)));n.set(Map,((e,t)=>new Map(cloneArray(Array.from(e),t))));n.set(Set,((e,t)=>new Set(cloneArray(Array.from(e),t))));if(e.constructorHandlers){for(const t of e.constructorHandlers){n.set(t[0],t[1])}}let o=null;return e.proto?cloneProto:clone;function cloneArray(e,s){const i=Object.keys(e);const a=new Array(i.length);for(let c=0;c{const n=r(1749);class DateRollingFileStream extends n{constructor(e,t,r){if(t&&typeof t==="object"){r=t;t=null}if(!r){r={}}if(!t){t="yyyy-MM-dd"}r.pattern=t;if(!r.numBackups&&r.numBackups!==0){if(!r.daysToKeep&&r.daysToKeep!==0){r.daysToKeep=1}else{process.emitWarning("options.daysToKeep is deprecated due to the confusion it causes when used "+"together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","streamroller-DEP0001")}r.numBackups=r.daysToKeep}else{r.daysToKeep=r.numBackups}super(e,r);this.mode=this.options.mode}get theStream(){return this.currentFileStream}}e.exports=DateRollingFileStream},3700:(e,t,r)=>{const n=r(1749);class RollingFileStream extends n{constructor(e,t,r,n){if(!n){n={}}if(t){n.maxSize=t}if(!n.numBackups&&n.numBackups!==0){if(!r&&r!==0){r=1}n.numBackups=r}super(e,n);this.backups=n.numBackups;this.size=this.options.maxSize}get theStream(){return this.currentFileStream}}e.exports=RollingFileStream},1749:(e,t,r)=>{const n=r(9592)("streamroller:RollingFileWriteStream");const o=r(8137);const s=r(6928);const i=r(857);const a=r(1187);const c=r(8877);const{Writable:l}=r(2203);const u=r(7474);const f=r(601);const p=r(6791);const deleteFiles=e=>{n(`deleteFiles: files to delete: ${e}`);return Promise.all(e.map((e=>o.unlink(e).catch((t=>{n(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)})))))};class RollingFileWriteStream extends l{constructor(e,t){n(`constructor: creating RollingFileWriteStream. path=${e}`);if(typeof e!=="string"||e.length===0){throw new Error(`Invalid filename: ${e}`)}else if(e.endsWith(s.sep)){throw new Error(`Filename is a directory: ${e}`)}else if(e.indexOf(`~${s.sep}`)===0){e=e.replace("~",i.homedir())}super(t);this.options=this._parseOption(t);this.fileObject=s.parse(e);if(this.fileObject.dir===""){this.fileObject=s.parse(s.join(process.cwd(),e))}this.fileFormatter=u({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize 0`)}if(r.numBackups||r.numBackups===0){if(r.numBackups<0){throw new Error(`options.numBackups (${r.numBackups}) should be >= 0`)}else if(r.numBackups>=Number.MAX_SAFE_INTEGER){throw new Error(`options.numBackups (${r.numBackups}) should be < Number.MAX_SAFE_INTEGER`)}else{r.numToKeep=r.numBackups+1}}else if(r.numToKeep<=0){throw new Error(`options.numToKeep (${r.numToKeep}) should be > 0`)}n(`_parseOption: creating stream with option=${JSON.stringify(r)}`);return r}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,r){this._shouldRoll().then((()=>{n(`_write: writing chunk. `+`file=${this.currentFileStream.path} `+`state=${JSON.stringify(this.state)} `+`chunk=${e}`);this.currentFileStream.write(e,t,(t=>{this.state.currentSize+=e.length;r(t)}))}))}async _shouldRoll(){if(this._dateChanged()||this._tooBig()){n(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`);await this._roll()}}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==c(this.options.pattern,a())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){n(`_roll: closing the current stream`);return new Promise(((e,t)=>{this.currentFileStream.end("",this.options.encoding,(()=>{this._moveOldFiles().then(e).catch(t)}))}))}async _moveOldFiles(){const e=await this._getExistingFiles();const t=this.state.currentDate?e.filter((e=>e.date===this.state.currentDate)):e;for(let e=t.length;e>=0;e--){n(`_moveOldFiles: i = ${e}`);const t=this.fileFormatter({date:this.state.currentDate,index:e});const r=this.fileFormatter({date:this.state.currentDate,index:e+1});const o={compress:this.options.compress&&e===0,mode:this.options.mode};await p(t,r,o)}this.state.currentSize=0;this.state.currentDate=this.state.currentDate?c(this.options.pattern,a()):null;n(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`);this._renewWriteStream();await new Promise(((e,t)=>{this.currentFileStream.write("","utf8",(()=>{this._clean().then(e).catch(t)}))}))}async _getExistingFiles(){const e=await o.readdir(this.fileObject.dir).catch((()=>[]));n(`_getExistingFiles: files=${e}`);const t=e.map((e=>this.fileNameParser(e))).filter((e=>e));const getKey=e=>(e.timestamp?e.timestamp:a().getTime())-e.index;t.sort(((e,t)=>getKey(e)-getKey(t)));return t}_renewWriteStream(){const e=this.fileFormatter({date:this.state.currentDate,index:0});const mkdir=e=>{try{return o.mkdirSync(e,{recursive:true})}catch(t){if(t.code==="ENOENT"){mkdir(s.dirname(e));return mkdir(e)}if(t.code!=="EEXIST"&&t.code!=="EROFS"){throw t}else{try{if(o.statSync(e).isDirectory()){return e}throw t}catch(e){throw t}}}};mkdir(this.fileObject.dir);const t={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};const renameKey=function(e,t,r){e[r]=e[t];delete e[t];return e};o.appendFileSync(e,"",renameKey({...t},"flags","flag"));this.currentFileStream=o.createWriteStream(e,t);this.currentFileStream.on("error",(e=>{this.emit("error",e)}))}async _clean(){const e=await this._getExistingFiles();n(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`);n("_clean: existing files are: ",e);if(this._tooManyFiles(e.length)){const t=e.slice(0,e.length-this.options.numToKeep).map((e=>s.format({dir:this.fileObject.dir,base:e.filename})));await deleteFiles(t)}}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}}e.exports=RollingFileWriteStream},7474:(e,t,r)=>{const n=r(9592)("streamroller:fileNameFormatter");const o=r(6928);const s=".gz";const i=".";e.exports=({file:e,keepFileExt:t,needsIndex:r,alwaysIncludeDate:a,compress:c,fileNameSep:l})=>{let u=l||i;const f=o.join(e.dir,e.name);const ext=t=>t+e.ext;const index=(e,t,n)=>(r||!n)&&t?e+u+t:e;const date=(e,t,r)=>(t>0||a)&&r?e+u+r:e;const gzip=(e,t)=>t&&c?e+s:e;const p=t?[date,index,ext,gzip]:[ext,date,index,gzip];return({date:e,index:t})=>{n(`_formatFileName: date=${e}, index=${t}`);return p.reduce(((r,n)=>n(r,t,e)),f)}}},601:(e,t,r)=>{const n=r(9592)("streamroller:fileNameParser");const o=".gz";const s=r(8877);const i=".";e.exports=({file:e,keepFileExt:t,pattern:r,fileNameSep:a})=>{let c=a||i;const zip=(e,t)=>{if(e.endsWith(o)){n("it is gzipped");t.isCompressed=true;return e.slice(0,-1*o.length)}return e};const l="__NOT_MATCHING__";const extAtEnd=t=>{if(t.startsWith(e.name)&&t.endsWith(e.ext)){n("it starts and ends with the right things");return t.slice(e.name.length+1,-1*e.ext.length)}return l};const extInMiddle=t=>{if(t.startsWith(e.base)){n("it starts with the right things");return t.slice(e.base.length+1)}return l};const dateAndIndex=(e,t)=>{const o=e.split(c);let i=o[o.length-1];n("items: ",o,", indexStr: ",i);let a=e;if(i!==undefined&&i.match(/^\d+$/)){a=e.slice(0,-1*(i.length+1));n(`dateStr is ${a}`);if(r&&!a){a=i;i="0"}}else{i="0"}try{const n=s.parse(r,a,new Date(0,0));if(s.asString(r,n)!==a)return e;t.index=parseInt(i,10);t.date=a;t.timestamp=n.getTime();return""}catch(t){n(`Problem parsing ${a} as ${r}, error was: `,t);return e}};const index=(e,t)=>{if(e.match(/^\d+$/)){n("it has an index");t.index=parseInt(e,10);return""}return e};let u=[zip,t?extAtEnd:extInMiddle,r?dateAndIndex:index];return e=>{let t={filename:e,index:0,isCompressed:false};let r=u.reduce(((e,r)=>r(e,t)),e);return r?null:t}}},9055:(e,t,r)=>{e.exports={RollingFileWriteStream:r(1749),RollingFileStream:r(3700),DateRollingFileStream:r(224)}},6791:(e,t,r)=>{const n=r(9592)("streamroller:moveAndMaybeCompressFile");const o=r(8137);const s=r(3106);const _parseOption=function(e){const t={mode:parseInt("0600",8),compress:false};const r=Object.assign({},t,e);n(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(r)}`);return r};const moveAndMaybeCompressFile=async(e,t,r)=>{r=_parseOption(r);if(e===t){n(`moveAndMaybeCompressFile: source and target are the same, not doing anything`);return}if(await o.pathExists(e)){n(`moveAndMaybeCompressFile: moving file from ${e} to ${t} ${r.compress?"with":"without"} compress`);if(r.compress){await new Promise(((i,a)=>{let c=false;const l=o.createWriteStream(t,{mode:r.mode,flags:"wx"}).on("open",(()=>{c=true;const t=o.createReadStream(e).on("open",(()=>{t.pipe(s.createGzip()).pipe(l)})).on("error",(t=>{n(`moveAndMaybeCompressFile: error reading ${e}`,t);l.destroy(t)}))})).on("finish",(()=>{n(`moveAndMaybeCompressFile: finished compressing ${t}, deleting ${e}`);o.unlink(e).then(i).catch((t=>{n(`moveAndMaybeCompressFile: error deleting ${e}, truncating instead`,t);o.truncate(e).then(i).catch((t=>{n(`moveAndMaybeCompressFile: error truncating ${e}`,t);a(t)}))}))})).on("error",(e=>{if(!c){n(`moveAndMaybeCompressFile: error creating ${t}`,e);a(e)}else{n(`moveAndMaybeCompressFile: error writing ${t}, deleting`,e);o.unlink(t).then((()=>{a(e)})).catch((e=>{n(`moveAndMaybeCompressFile: error deleting ${t}`,e);a(e)}))}}))})).catch((()=>{}))}else{n(`moveAndMaybeCompressFile: renaming ${e} to ${t}`);try{await o.move(e,t,{overwrite:true})}catch(r){n(`moveAndMaybeCompressFile: error renaming ${e} to ${t}`,r);if(r.code!=="ENOENT"){n(`moveAndMaybeCompressFile: trying copy+truncate instead`);try{await o.copy(e,t,{overwrite:true});await o.truncate(e)}catch(e){n(`moveAndMaybeCompressFile: error copy+truncate`,e)}}}}}};e.exports=moveAndMaybeCompressFile},1187:e=>{e.exports=()=>new Date},1953:(e,t,r)=>{const n=r(857);const o=r(2018);const s=r(1330);const{env:i}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(i.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},7859:(e,t)=>{t.S=function(e){return Object.defineProperty((function(){if(typeof arguments[arguments.length-1]==="function")e.apply(this,arguments);else{return new Promise(((t,r)=>{arguments[arguments.length]=(e,n)=>{if(e)return r(e);t(n)};arguments.length++;e.apply(this,arguments)}))}}),"name",{value:e.name})};t.z=function(e){return Object.defineProperty((function(){const t=arguments[arguments.length-1];if(typeof t!=="function")return e.apply(this,arguments);else e.apply(this,arguments).then((e=>t(null,e)),t)}),"name",{value:e.name})}},2613:t=>{t.exports=e(import.meta.url)("assert")},9907:t=>{t.exports=e(import.meta.url)("cluster")},9140:t=>{t.exports=e(import.meta.url)("constants")},9896:t=>{t.exports=e(import.meta.url)("fs")},9278:t=>{t.exports=e(import.meta.url)("net")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3106:t=>{t.exports=e(import.meta.url)("zlib")},2513:(e,t)=>{const{parse:r,stringify:n}=JSON;const{keys:o}=Object;const s=String;const i="string";const a={};const c="object";const noop=(e,t)=>t;const primitives=e=>e instanceof s?s(e):e;const Primitives=(e,t)=>typeof t===i?new s(t):t;const revive=(e,t,r,n)=>{const i=[];for(let l=o(r),{length:u}=l,f=0;f{const n=s(t.push(r)-1);e.set(r,n);return n};const parse=(e,t)=>{const n=r(e,Primitives).map(primitives);const o=n[0];const s=t||noop;const i=typeof o===c&&o?revive(n,new Set,o,s):o;return s.call({"":i},"",i)};t.parse=parse;const stringify=(e,t,r)=>{const o=t&&typeof t===c?(e,r)=>e===""||-1r(stringify(e));t.toJSON=toJSON;const fromJSON=e=>parse(n(e));t.fromJSON=fromJSON},629:(e,t,r)=>{r.a(e,(async(e,t)=>{try{var n=r(9022);var o=e([n]);n=(o.then?(await o)():o)[0];t()}catch(e){t(e)}}))},9022:(e,t,r)=>{r.a(e,(async(e,t)=>{try{var n=r(9896);var o=r(6928);var s=r(9015);var i=r(7969);var a=r(7155);var c=r(2027);c.configure({appenders:{out:{type:"stdout",layout:{type:"pattern",pattern:"%m%n"}}},categories:{default:{appenders:["out"],level:"info"}}});const e=c.getLogger();const l={"--help":{type:Boolean,alias:"-h"},"--version":{type:Boolean,alias:"-v"},"--cert":{type:String,alias:"-c"},"--keyId":{type:String,alias:"-k"},"--issuerId":{type:String,alias:"-i"}};const u=Object.keys(l).map((e=>{const t={};t[e]=l[e].type;return t})).reduce(((e,t)=>Object.assign(t,e)));const f=Object.keys(l).map((e=>{const t={};t[l[e].alias]=e;return t})).reduce(((e,t)=>Object.assign(t,e)));const p={...u,...f};try{const t=i(p);const o=JSON.parse(Buffer.from(n.readFileSync(r.ab+"package.json",{flag:"r"})).toString());const c=(0,a.Ay)` {bold USAGE} {dim $} {bold ${Object.keys(o.bin).pop()}} [--help] --string {underline some-arg} @@ -13,5 +13,4 @@ import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={ `;if(t["--help"]!==undefined){e.error(c);process.exit(0)}if(t["--version"]!==undefined){e.info(o.version);process.exit(0)}if(t["--cert"]===undefined){e.error("The certificate file path must be specified.");process.exit(1)}if(t["--keyId"]===undefined){e.error("Key ID must be specified.");process.exit(1)}if(t["--issuerId"]===undefined){e.error("Issuer ID must be specified.");process.exit(1)}const l=t["--cert"]??"";const u=n.readFileSync(l,{flag:"r"});const f=await s.Sh(u,t["--issuerId"]??"",t["--keyId"]??"",undefined);e.info((0,a.Ay)` {bold token} ${f} -`)}catch(t){e.error(t);process.exit(1)}t()}catch(e){t(e)}}),1)},9015:(e,t,r)=>{r.d(t,{Sh:()=>token});function base64_encodeBase64(e){if(Uint8Array.prototype.toBase64){return e.toBase64()}const t=32768;const r=[];for(let n=0;n{const r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}-----\n${r}\n-----END ${t}-----`};const genericExport=async(e,t,r)=>{if(isKeyObject(r)){if(r.type!==e){throw new TypeError(`key is not a ${e} key`)}return r.export({format:"pem",type:t})}if(!isCryptoKey(r)){throw new TypeError(invalidKeyInput(r,"CryptoKey","KeyObject"))}if(!r.extractable){throw new TypeError("CryptoKey is not extractable")}if(r.type!==e){throw new TypeError(`key is not a ${e} key`)}return formatPEM(encodeBase64(new Uint8Array(await crypto.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)};const toSPKI=e=>genericExport("public","spki",e);const toPKCS8=e=>genericExport("private","pkcs8",e);const bytesEqual=(e,t)=>{if(e.byteLength!==t.length)return false;for(let r=0;r({data:e,pos:0});const parseLength=e=>{const t=e.data[e.pos++];if(t&128){const r=t&127;let n=0;for(let t=0;t{if(t<=0)return;e.pos++;const r=parseLength(e);e.pos+=r;if(t>1){skipElement(e,t-1)}};const expectTag=(e,t,r)=>{if(e.data[e.pos++]!==t){throw new Error(r)}};const getSubarray=(e,t)=>{const r=e.data.subarray(e.pos,e.pos+t);e.pos+=t;return r};const parseAlgorithmOID=e=>{expectTag(e,6,"Expected algorithm OID");const t=parseLength(e);return getSubarray(e,t)};function parsePKCS8Header(e){expectTag(e,48,"Invalid PKCS#8 structure");parseLength(e);expectTag(e,2,"Expected version field");const t=parseLength(e);e.pos+=t;expectTag(e,48,"Expected algorithm identifier");const r=parseLength(e);const n=e.pos;return{algIdStart:n,algIdLength:r}}function parseSPKIHeader(e){expectTag(e,48,"Invalid SPKI structure");parseLength(e);expectTag(e,48,"Expected algorithm identifier");const t=parseLength(e);const r=e.pos;return{algIdStart:r,algIdLength:t}}const parseECAlgorithmIdentifier=e=>{const t=parseAlgorithmOID(e);if(bytesEqual(t,[43,101,110])){return"X25519"}if(!bytesEqual(t,[42,134,72,206,61,2,1])){throw new Error("Unsupported key algorithm")}expectTag(e,6,"Expected curve OID");const r=parseLength(e);const n=getSubarray(e,r);for(const{name:e,oid:t}of[{name:"P-256",oid:[42,134,72,206,61,3,1,7]},{name:"P-384",oid:[43,129,4,0,34]},{name:"P-521",oid:[43,129,4,0,35]}]){if(bytesEqual(n,t)){return e}}throw new Error("Unsupported named curve")};const genericImport=async(e,t,r,n)=>{let o;let s;const i=e==="spki";const getSigUsages=()=>i?["verify"]:["sign"];const getEncUsages=()=>i?["encrypt","wrapKey"]:["decrypt","unwrapKey"];switch(r){case"PS256":case"PS384":case"PS512":o={name:"RSA-PSS",hash:`SHA-${r.slice(-3)}`};s=getSigUsages();break;case"RS256":case"RS384":case"RS512":o={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${r.slice(-3)}`};s=getSigUsages();break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o={name:"RSA-OAEP",hash:`SHA-${parseInt(r.slice(-3),10)||1}`};s=getEncUsages();break;case"ES256":case"ES384":case"ES512":{const e={ES256:"P-256",ES384:"P-384",ES512:"P-521"};o={name:"ECDSA",namedCurve:e[r]};s=getSigUsages();break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{try{const e=n.getNamedCurve(t);o=e==="X25519"?{name:"X25519"}:{name:"ECDH",namedCurve:e}}catch(e){throw new errors_JOSENotSupported("Invalid or unsupported key format")}s=i?[]:["deriveBits"];break}case"Ed25519":case"EdDSA":o={name:"Ed25519"};s=getSigUsages();break;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":o={name:r};s=getSigUsages();break;default:throw new errors_JOSENotSupported('Invalid or unsupported "alg" (Algorithm) value')}return crypto.subtle.importKey(e,t,o,n?.extractable??(i?true:false),s)};const processPEMData=(e,t)=>decodeBase64(e.replace(t,""));const fromPKCS8=(e,t,r)=>{const n=processPEMData(e,/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g);let o=r;if(t?.startsWith?.("ECDH-ES")){o||={};o.getNamedCurve=e=>{const t=createASN1State(e);parsePKCS8Header(t);return parseECAlgorithmIdentifier(t)}}return genericImport("pkcs8",n,t,o)};const asn1_fromSPKI=(e,t,r)=>{const n=processPEMData(e,/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);let o=r;if(t?.startsWith?.("ECDH-ES")){o||={};o.getNamedCurve=e=>{const t=createASN1State(e);parseSPKIHeader(t);return parseECAlgorithmIdentifier(t)}}return genericImport("spki",n,t,o)};function spkiFromX509(e){const t=createASN1State(e);expectTag(t,48,"Invalid certificate structure");parseLength(t);expectTag(t,48,"Invalid tbsCertificate structure");parseLength(t);if(e[t.pos]===160){skipElement(t,6)}else{skipElement(t,5)}const r=t.pos;expectTag(t,48,"Invalid SPKI structure");const n=parseLength(t);return e.subarray(r,r+n+(t.pos-r))}function extractX509SPKI(e){const t=processPEMData(e,/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g);return spkiFromX509(t)}const asn1_fromX509=(e,t,r)=>{let n;try{n=extractX509SPKI(e)}catch(e){throw new TypeError("Failed to parse the X.509 certificate",{cause:e})}return asn1_fromSPKI(formatPEM(encodeBase64(n),"PUBLIC KEY"),t,r)};async function importSPKI(e,t,r){if(typeof e!=="string"||e.indexOf("-----BEGIN PUBLIC KEY-----")!==0){throw new TypeError('"spki" must be SPKI formatted string')}return fromSPKI(e,t,r)}async function importX509(e,t,r){if(typeof e!=="string"||e.indexOf("-----BEGIN CERTIFICATE-----")!==0){throw new TypeError('"x509" must be X.509 formatted string')}return fromX509(e,t,r)}async function importPKCS8(e,t,r){if(typeof e!=="string"||e.indexOf("-----BEGIN PRIVATE KEY-----")!==0){throw new TypeError('"pkcs8" must be PKCS#8 formatted string')}return fromPKCS8(e,t,r)}async function importJWK(e,t,r){if(!isObject(e)){throw new TypeError("JWK must be an object")}let n;t??=e.alg;n??=r?.extractable??e.ext;switch(e.kty){case"oct":if(typeof e.k!=="string"||!e.k){throw new TypeError('missing "k" (Key Value) Parameter value')}return decodeBase64URL(e.k);case"RSA":if("oth"in e&&e.oth!==undefined){throw new JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported')}return toCryptoKey({...e,alg:t,ext:n});case"AKP":{if(typeof e.alg!=="string"||!e.alg){throw new TypeError('missing "alg" (Algorithm) Parameter value')}if(t!==undefined&&t!==e.alg){throw new TypeError("JWK alg and alg option value mismatch")}return toCryptoKey({...e,ext:n})}case"EC":case"OKP":return toCryptoKey({...e,alg:t,ext:n});default:throw new JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}const n=new TextEncoder;const o=new TextDecoder;const s=null&&2**32;function concat(...e){const t=e.reduce(((e,{length:t})=>e+t),0);const r=new Uint8Array(t);let n=0;for(const t of e){r.set(t,n);n+=t.length}return r}function writeUInt32BE(e,t,r){if(t<0||t>=s){throw new RangeError(`value must be >= 0 and <= ${s-1}. Received ${t}`)}e.set([t>>>24,t>>>16,t>>>8,t&255],r)}function uint64be(e){const t=Math.floor(e/s);const r=e%s;const n=new Uint8Array(8);writeUInt32BE(n,t,0);writeUInt32BE(n,r,4);return n}function uint32be(e){const t=new Uint8Array(4);writeUInt32BE(t,e);return t}function decode(e){if(Uint8Array.fromBase64){return Uint8Array.fromBase64(typeof e==="string"?e:o.decode(e),{alphabet:"base64url"})}let t=e;if(t instanceof Uint8Array){t=o.decode(t)}t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return decodeBase64(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}function encode(e){let t=e;if(typeof t==="string"){t=n.encode(t)}if(Uint8Array.prototype.toBase64){return t.toBase64({alphabet:"base64url",omitPadding:true})}return base64_encodeBase64(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}const subtle_dsa=(e,t)=>{const r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:parseInt(e.slice(-3),10)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":case"EdDSA":return{name:"Ed25519"};case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return{name:e};default:throw new errors_JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`)}};const check_key_length=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:r}=t.algorithm;if(typeof r!=="number"||r<2048){throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}}};function unusable(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function isAlgorithm(e,t){return e.name===t}function getHashLength(e){return parseInt(e.name.slice(4),10)}function getNamedCurve(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function checkUsage(e,t){if(t&&!e.usages.includes(t)){throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`)}}function checkSigCryptoKey(e,t,r){switch(t){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(e.algorithm,"HMAC"))throw unusable("HMAC");const r=parseInt(t.slice(2),10);const n=getHashLength(e.algorithm.hash);if(n!==r)throw unusable(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(e.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");const r=parseInt(t.slice(2),10);const n=getHashLength(e.algorithm.hash);if(n!==r)throw unusable(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(e.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");const r=parseInt(t.slice(2),10);const n=getHashLength(e.algorithm.hash);if(n!==r)throw unusable(`SHA-${r}`,"algorithm.hash");break}case"Ed25519":case"EdDSA":{if(!isAlgorithm(e.algorithm,"Ed25519"))throw unusable("Ed25519");break}case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":{if(!isAlgorithm(e.algorithm,t))throw unusable(t);break}case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(e.algorithm,"ECDSA"))throw unusable("ECDSA");const r=getNamedCurve(t);const n=e.algorithm.namedCurve;if(n!==r)throw unusable(r,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(e,r)}function checkEncCryptoKey(e,t,r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!isAlgorithm(e.algorithm,"AES-GCM"))throw unusable("AES-GCM");const r=parseInt(t.slice(1,4),10);const n=e.algorithm.length;if(n!==r)throw unusable(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!isAlgorithm(e.algorithm,"AES-KW"))throw unusable("AES-KW");const r=parseInt(t.slice(1,4),10);const n=e.algorithm.length;if(n!==r)throw unusable(r,"algorithm.length");break}case"ECDH":{switch(e.algorithm.name){case"ECDH":case"X25519":break;default:throw unusable("ECDH or X25519")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!isAlgorithm(e.algorithm,"PBKDF2"))throw unusable("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!isAlgorithm(e.algorithm,"RSA-OAEP"))throw unusable("RSA-OAEP");const r=parseInt(t.slice(9),10)||1;const n=getHashLength(e.algorithm.hash);if(n!==r)throw unusable(`SHA-${r}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(e,r)}function message(e,t,...r){r=r.filter(Boolean);if(r.length>2){const t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else if(r.length===2){e+=`one of type ${r[0]} or ${r[1]}.`}else{e+=`of type ${r[0]}.`}if(t==null){e+=` Received ${t}`}else if(typeof t==="function"&&t.name){e+=` Received function ${t.name}`}else if(typeof t==="object"&&t!=null){if(t.constructor?.name){e+=` Received an instance of ${t.constructor.name}`}}return e}const invalid_key_input=(e,...t)=>message("Key must be ",e,...t);function withAlg(e,t,...r){return message(`Key for the ${e} algorithm must be `,t,...r)}const get_sign_verify_key=async(e,t,r)=>{if(t instanceof Uint8Array){if(!e.startsWith("HS")){throw new TypeError(invalid_key_input(t,"CryptoKey","KeyObject","JSON Web Key"))}return crypto.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},false,[r])}checkSigCryptoKey(t,e,r);return t};const sign=async(e,t,r)=>{const n=await get_sign_verify_key(e,t,"sign");check_key_length(e,n);const o=await crypto.subtle.sign(subtle_dsa(e,n.algorithm),n,r);return new Uint8Array(o)};const is_disjoint=(...e)=>{const t=e.filter(Boolean);if(t.length===0||t.length===1){return true}let r;for(const e of t){const t=Object.keys(e);if(!r||r.size===0){r=new Set(t);continue}for(const e of t){if(r.has(e)){return false}r.add(e)}}return true};function assertCryptoKey(e){if(!is_key_like_isCryptoKey(e)){throw new Error("CryptoKey instance expected")}}function is_key_like_isCryptoKey(e){return e?.[Symbol.toStringTag]==="CryptoKey"}function is_key_like_isKeyObject(e){return e?.[Symbol.toStringTag]==="KeyObject"}const is_key_like=e=>is_key_like_isCryptoKey(e)||is_key_like_isKeyObject(e);function isObjectLike(e){return typeof e==="object"&&e!==null}const is_object=e=>{if(!isObjectLike(e)||Object.prototype.toString.call(e)!=="[object Object]"){return false}if(Object.getPrototypeOf(e)===null){return true}let t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t};function isJWK(e){return is_object(e)&&typeof e.kty==="string"}function isPrivateJWK(e){return e.kty!=="oct"&&(e.kty==="AKP"&&typeof e.priv==="string"||typeof e.d==="string")}function isPublicJWK(e){return e.kty!=="oct"&&typeof e.d==="undefined"&&typeof e.priv==="undefined"}function isSecretJWK(e){return e.kty==="oct"&&typeof e.k==="string"}const tag=e=>e?.[Symbol.toStringTag];const jwkMatchesOp=(e,t,r)=>{if(t.use!==undefined){let e;switch(r){case"sign":case"verify":e="sig";break;case"encrypt":case"decrypt":e="enc";break}if(t.use!==e){throw new TypeError(`Invalid key for this operation, its "use" must be "${e}" when present`)}}if(t.alg!==undefined&&t.alg!==e){throw new TypeError(`Invalid key for this operation, its "alg" must be "${e}" when present`)}if(Array.isArray(t.key_ops)){let n;switch(true){case r==="sign"||r==="verify":case e==="dir":case e.includes("CBC-HS"):n=r;break;case e.startsWith("PBES2"):n="deriveBits";break;case/^A\d{3}(?:GCM)?(?:KW)?$/.test(e):if(!e.includes("GCM")&&e.endsWith("KW")){n=r==="encrypt"?"wrapKey":"unwrapKey"}else{n=r}break;case r==="encrypt"&&e.startsWith("RSA"):n="wrapKey";break;case r==="decrypt":n=e.startsWith("RSA")?"unwrapKey":"deriveBits";break}if(n&&t.key_ops?.includes?.(n)===false){throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${n}" when present`)}}return true};const symmetricTypeCheck=(e,t,r)=>{if(t instanceof Uint8Array)return;if(isJWK(t)){if(isSecretJWK(t)&&jwkMatchesOp(e,t,r))return;throw new TypeError(`JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present`)}if(!is_key_like(t)){throw new TypeError(withAlg(e,t,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"))}if(t.type!=="secret"){throw new TypeError(`${tag(t)} instances for symmetric algorithms must be of type "secret"`)}};const asymmetricTypeCheck=(e,t,r)=>{if(isJWK(t)){switch(r){case"decrypt":case"sign":if(isPrivateJWK(t)&&jwkMatchesOp(e,t,r))return;throw new TypeError(`JSON Web Key for this operation be a private JWK`);case"encrypt":case"verify":if(isPublicJWK(t)&&jwkMatchesOp(e,t,r))return;throw new TypeError(`JSON Web Key for this operation be a public JWK`)}}if(!is_key_like(t)){throw new TypeError(withAlg(e,t,"CryptoKey","KeyObject","JSON Web Key"))}if(t.type==="secret"){throw new TypeError(`${tag(t)} instances for asymmetric algorithms must not be of type "secret"`)}if(t.type==="public"){switch(r){case"sign":throw new TypeError(`${tag(t)} instances for asymmetric algorithm signing must be of type "private"`);case"decrypt":throw new TypeError(`${tag(t)} instances for asymmetric algorithm decryption must be of type "private"`);default:break}}if(t.type==="private"){switch(r){case"verify":throw new TypeError(`${tag(t)} instances for asymmetric algorithm verifying must be of type "public"`);case"encrypt":throw new TypeError(`${tag(t)} instances for asymmetric algorithm encryption must be of type "public"`);default:break}}};const check_key_type=(e,t,r)=>{const n=e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e)||/^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e);if(n){symmetricTypeCheck(e,t,r)}else{asymmetricTypeCheck(e,t,r)}};const validate_crit=(e,t,r,n,o)=>{if(o.crit!==undefined&&n?.crit===undefined){throw new e('"crit" (Critical) Header Parameter MUST be integrity protected')}if(!n||n.crit===undefined){return new Set}if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some((e=>typeof e!=="string"||e.length===0))){throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present')}let s;if(r!==undefined){s=new Map([...Object.entries(r),...t.entries()])}else{s=t}for(const t of n.crit){if(!s.has(t)){throw new errors_JOSENotSupported(`Extension Header Parameter "${t}" is not recognized`)}if(o[t]===undefined){throw new e(`Extension Header Parameter "${t}" is missing`)}if(s.get(t)&&n[t]===undefined){throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}}return new Set(n.crit)};function subtleMapping(e){let t;let r;switch(e.kty){case"AKP":{switch(e.alg){case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":t={name:e.alg};r=e.priv?["sign"]:["verify"];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`};r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`};r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`};r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"};r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"};r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"};r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv};r=e.d?["deriveBits"]:[];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"Ed25519":case"EdDSA":t={name:"Ed25519"};r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv};r=e.d?["deriveBits"]:[];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}const jwk_to_key=async e=>{if(!e.alg){throw new TypeError('"alg" argument is required when "jwk.alg" is not present')}const{algorithm:t,keyUsages:r}=subtleMapping(e);const n={...e};if(n.kty!=="AKP"){delete n.alg}delete n.use;return crypto.subtle.importKey("jwk",n,t,e.ext??(e.d||e.priv?false:true),e.key_ops??r)};let i;const handleJWK=async(e,t,r,n=false)=>{i||=new WeakMap;let o=i.get(e);if(o?.[r]){return o[r]}const s=await jwk_to_key({...t,alg:r});if(n)Object.freeze(e);if(!o){i.set(e,{[r]:s})}else{o[r]=s}return s};const handleKeyObject=(e,t)=>{i||=new WeakMap;let r=i.get(e);if(r?.[t]){return r[t]}const n=e.type==="public";const o=n?true:false;let s;if(e.asymmetricKeyType==="x25519"){switch(t){case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":break;default:throw new TypeError("given KeyObject instance cannot be used for this algorithm")}s=e.toCryptoKey(e.asymmetricKeyType,o,n?[]:["deriveBits"])}if(e.asymmetricKeyType==="ed25519"){if(t!=="EdDSA"&&t!=="Ed25519"){throw new TypeError("given KeyObject instance cannot be used for this algorithm")}s=e.toCryptoKey(e.asymmetricKeyType,o,[n?"verify":"sign"])}switch(e.asymmetricKeyType){case"ml-dsa-44":case"ml-dsa-65":case"ml-dsa-87":{if(t!==e.asymmetricKeyType.toUpperCase()){throw new TypeError("given KeyObject instance cannot be used for this algorithm")}s=e.toCryptoKey(e.asymmetricKeyType,o,[n?"verify":"sign"])}}if(e.asymmetricKeyType==="rsa"){let r;switch(t){case"RSA-OAEP":r="SHA-1";break;case"RS256":case"PS256":case"RSA-OAEP-256":r="SHA-256";break;case"RS384":case"PS384":case"RSA-OAEP-384":r="SHA-384";break;case"RS512":case"PS512":case"RSA-OAEP-512":r="SHA-512";break;default:throw new TypeError("given KeyObject instance cannot be used for this algorithm")}if(t.startsWith("RSA-OAEP")){return e.toCryptoKey({name:"RSA-OAEP",hash:r},o,n?["encrypt"]:["decrypt"])}s=e.toCryptoKey({name:t.startsWith("PS")?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:r},o,[n?"verify":"sign"])}if(e.asymmetricKeyType==="ec"){const r=new Map([["prime256v1","P-256"],["secp384r1","P-384"],["secp521r1","P-521"]]);const i=r.get(e.asymmetricKeyDetails?.namedCurve);if(!i){throw new TypeError("given KeyObject instance cannot be used for this algorithm")}if(t==="ES256"&&i==="P-256"){s=e.toCryptoKey({name:"ECDSA",namedCurve:i},o,[n?"verify":"sign"])}if(t==="ES384"&&i==="P-384"){s=e.toCryptoKey({name:"ECDSA",namedCurve:i},o,[n?"verify":"sign"])}if(t==="ES512"&&i==="P-521"){s=e.toCryptoKey({name:"ECDSA",namedCurve:i},o,[n?"verify":"sign"])}if(t.startsWith("ECDH-ES")){s=e.toCryptoKey({name:"ECDH",namedCurve:i},o,n?[]:["deriveBits"])}}if(!s){throw new TypeError("given KeyObject instance cannot be used for this algorithm")}if(!r){i.set(e,{[t]:s})}else{r[t]=s}return s};const normalize_key=async(e,t)=>{if(e instanceof Uint8Array){return e}if(is_key_like_isCryptoKey(e)){return e}if(is_key_like_isKeyObject(e)){if(e.type==="secret"){return e.export()}if("toCryptoKey"in e&&typeof e.toCryptoKey==="function"){try{return handleKeyObject(e,t)}catch(e){if(e instanceof TypeError){throw e}}}let r=e.export({format:"jwk"});return handleJWK(e,r,t)}if(isJWK(e)){if(e.k){return decode(e.k)}return handleJWK(e,e,t,true)}throw new Error("unreachable")};class FlattenedSign{#e;#t;#r;constructor(e){if(!(e instanceof Uint8Array)){throw new TypeError("payload must be an instance of Uint8Array")}this.#e=e}setProtectedHeader(e){if(this.#t){throw new TypeError("setProtectedHeader can only be called once")}this.#t=e;return this}setUnprotectedHeader(e){if(this.#r){throw new TypeError("setUnprotectedHeader can only be called once")}this.#r=e;return this}async sign(e,t){if(!this.#t&&!this.#r){throw new JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()")}if(!is_disjoint(this.#t,this.#r)){throw new JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const r={...this.#t,...this.#r};const s=validate_crit(JWSInvalid,new Map([["b64",true]]),t?.crit,this.#t,r);let i=true;if(s.has("b64")){i=this.#t.b64;if(typeof i!=="boolean"){throw new JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:a}=r;if(typeof a!=="string"||!a){throw new JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}check_key_type(a,e,"sign");let c=this.#e;if(i){c=n.encode(encode(c))}let l;if(this.#t){l=n.encode(encode(JSON.stringify(this.#t)))}else{l=n.encode("")}const u=concat(l,n.encode("."),c);const f=await normalize_key(e,a);const p=await sign(a,f,u);const d={signature:encode(p),payload:""};if(i){d.payload=o.decode(c)}if(this.#r){d.header=this.#r}if(this.#t){d.protected=o.decode(l)}return d}}class CompactSign{#n;constructor(e){this.#n=new FlattenedSign(e)}setProtectedHeader(e){this.#n.setProtectedHeader(e);return this}async sign(e,t){const r=await this.#n.sign(e,t);if(r.payload===undefined){throw new TypeError("use the flattened module for creating JWS with b64: false")}return`${r.protected}.${r.payload}.${r.signature}`}}const lib_epoch=e=>Math.floor(e.getTime()/1e3);const a=60;const c=a*60;const l=c*24;const u=l*7;const f=l*365.25;const p=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;const lib_secs=e=>{const t=p.exec(e);if(!t||t[4]&&t[1]){throw new TypeError("Invalid time period format")}const r=parseFloat(t[2]);const n=t[3].toLowerCase();let o;switch(n){case"sec":case"secs":case"second":case"seconds":case"s":o=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":o=Math.round(r*a);break;case"hour":case"hours":case"hr":case"hrs":case"h":o=Math.round(r*c);break;case"day":case"days":case"d":o=Math.round(r*l);break;case"week":case"weeks":case"w":o=Math.round(r*u);break;default:o=Math.round(r*f);break}if(t[1]==="-"||t[4]==="ago"){return-o}return o};function validateInput(e,t){if(!Number.isFinite(t)){throw new TypeError(`Invalid ${e} input`)}return t}const normalizeTyp=e=>{if(e.includes("/")){return e.toLowerCase()}return`application/${e.toLowerCase()}`};const checkAudiencePresence=(e,t)=>{if(typeof e==="string"){return t.includes(e)}if(Array.isArray(e)){return t.some(Set.prototype.has.bind(new Set(e)))}return false};function validateClaimsSet(e,t,r={}){let n;try{n=JSON.parse(decoder.decode(t))}catch{}if(!isObject(n)){throw new JWTInvalid("JWT Claims Set must be a top-level JSON object")}const{typ:o}=r;if(o&&(typeof e.typ!=="string"||normalizeTyp(e.typ)!==normalizeTyp(o))){throw new JWTClaimValidationFailed('unexpected "typ" JWT header value',n,"typ","check_failed")}const{requiredClaims:s=[],issuer:i,subject:a,audience:c,maxTokenAge:l}=r;const u=[...s];if(l!==undefined)u.push("iat");if(c!==undefined)u.push("aud");if(a!==undefined)u.push("sub");if(i!==undefined)u.push("iss");for(const e of new Set(u.reverse())){if(!(e in n)){throw new JWTClaimValidationFailed(`missing required "${e}" claim`,n,e,"missing")}}if(i&&!(Array.isArray(i)?i:[i]).includes(n.iss)){throw new JWTClaimValidationFailed('unexpected "iss" claim value',n,"iss","check_failed")}if(a&&n.sub!==a){throw new JWTClaimValidationFailed('unexpected "sub" claim value',n,"sub","check_failed")}if(c&&!checkAudiencePresence(n.aud,typeof c==="string"?[c]:c)){throw new JWTClaimValidationFailed('unexpected "aud" claim value',n,"aud","check_failed")}let f;switch(typeof r.clockTolerance){case"string":f=secs(r.clockTolerance);break;case"number":f=r.clockTolerance;break;case"undefined":f=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:p}=r;const d=epoch(p||new Date);if((n.iat!==undefined||l)&&typeof n.iat!=="number"){throw new JWTClaimValidationFailed('"iat" claim must be a number',n,"iat","invalid")}if(n.nbf!==undefined){if(typeof n.nbf!=="number"){throw new JWTClaimValidationFailed('"nbf" claim must be a number',n,"nbf","invalid")}if(n.nbf>d+f){throw new JWTClaimValidationFailed('"nbf" claim timestamp check failed',n,"nbf","check_failed")}}if(n.exp!==undefined){if(typeof n.exp!=="number"){throw new JWTClaimValidationFailed('"exp" claim must be a number',n,"exp","invalid")}if(n.exp<=d-f){throw new JWTExpired('"exp" claim timestamp check failed',n,"exp","check_failed")}}if(l){const e=d-n.iat;const t=typeof l==="number"?l:secs(l);if(e-f>t){throw new JWTExpired('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed")}if(e<0-f){throw new JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}}return n}class JWTClaimsBuilder{#e;constructor(e){if(!is_object(e)){throw new TypeError("JWT Claims Set MUST be an object")}this.#e=structuredClone(e)}data(){return n.encode(JSON.stringify(this.#e))}get iss(){return this.#e.iss}set iss(e){this.#e.iss=e}get sub(){return this.#e.sub}set sub(e){this.#e.sub=e}get aud(){return this.#e.aud}set aud(e){this.#e.aud=e}set jti(e){this.#e.jti=e}set nbf(e){if(typeof e==="number"){this.#e.nbf=validateInput("setNotBefore",e)}else if(e instanceof Date){this.#e.nbf=validateInput("setNotBefore",lib_epoch(e))}else{this.#e.nbf=lib_epoch(new Date)+lib_secs(e)}}set exp(e){if(typeof e==="number"){this.#e.exp=validateInput("setExpirationTime",e)}else if(e instanceof Date){this.#e.exp=validateInput("setExpirationTime",lib_epoch(e))}else{this.#e.exp=lib_epoch(new Date)+lib_secs(e)}}set iat(e){if(typeof e==="undefined"){this.#e.iat=lib_epoch(new Date)}else if(e instanceof Date){this.#e.iat=validateInput("setIssuedAt",lib_epoch(e))}else if(typeof e==="string"){this.#e.iat=validateInput("setIssuedAt",lib_epoch(new Date)+lib_secs(e))}else{this.#e.iat=validateInput("setIssuedAt",e)}}}class SignJWT{#t;#o;constructor(e={}){this.#o=new JWTClaimsBuilder(e)}setIssuer(e){this.#o.iss=e;return this}setSubject(e){this.#o.sub=e;return this}setAudience(e){this.#o.aud=e;return this}setJti(e){this.#o.jti=e;return this}setNotBefore(e){this.#o.nbf=e;return this}setExpirationTime(e){this.#o.exp=e;return this}setIssuedAt(e){this.#o.iat=e;return this}setProtectedHeader(e){this.#t=e;return this}async sign(e,t){const r=new CompactSign(this.#o.data());r.setProtectedHeader(this.#t);if(Array.isArray(this.#t?.crit)&&this.#t.crit.includes("b64")&&this.#t.b64===false){throw new errors_JWTInvalid("JWTs MUST NOT use unencoded payload")}return r.sign(e,t)}}const payload=(e,t)=>({audience:"appstoreconnect-v1",expiresIn:t,issuer:e});function tokenSync(e,t,r,n=500){let o;token(e,t,r,n).then((e=>{o=e;return e})).catch((e=>{throw new Error(`Failed to generate token: ${e.message}`)}));return o??""}async function token(e,t,r,n=500){const o=await importPKCS8(e.toString(),"ES256");return new SignJWT(payload(t,n)).setProtectedHeader({alg:"ES256",kid:r}).sign(o)}const d={tokenSync:tokenSync,token:token};const h=null&&d},7155:(t,r,n)=>{n.d(r,{Ay:()=>M});const o=10;const wrapAnsi16=(e=0)=>t=>`[${t+e}m`;const wrapAnsi256=(e=0)=>t=>`[${38+e};5;${t}m`;const wrapAnsi16m=(e=0)=>(t,r,n)=>`[${38+e};2;${t};${r};${n}m`;const s={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]}};const i=Object.keys(s.modifier);const a=Object.keys(s.color);const c=Object.keys(s.bgColor);const l=[...a,...c];function assembleStyles(){const e=new Map;for(const[t,r]of Object.entries(s)){for(const[t,n]of Object.entries(r)){s[t]={open:`[${n[0]}m`,close:`[${n[1]}m`};r[t]=s[t];e.set(n[0],n[1])}Object.defineProperty(s,t,{value:r,enumerable:false})}Object.defineProperty(s,"codes",{value:e,enumerable:false});s.color.close="";s.bgColor.close="";s.color.ansi=wrapAnsi16();s.color.ansi256=wrapAnsi256();s.color.ansi16m=wrapAnsi16m();s.bgColor.ansi=wrapAnsi16(o);s.bgColor.ansi256=wrapAnsi256(o);s.bgColor.ansi16m=wrapAnsi16m(o);Object.defineProperties(s,{rgbToAnsi256:{value(e,t,r){if(e===t&&t===r){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}return 16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},enumerable:false},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t){return[0,0,0]}let[r]=t;if(r.length===3){r=[...r].map((e=>e+e)).join("")}const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,n&255]},enumerable:false},hexToAnsi256:{value:e=>s.rgbToAnsi256(...s.hexToRgb(e)),enumerable:false},ansi256ToAnsi:{value(e){if(e<8){return 30+e}if(e<16){return 90+(e-8)}let t;let r;let n;if(e>=232){t=((e-232)*10+8)/255;r=t;n=t}else{e-=16;const o=e%36;t=Math.floor(e/36)/5;r=Math.floor(o/6)/5;n=o%6/5}const o=Math.max(t,r,n)*2;if(o===0){return 30}let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));if(o===2){s+=60}return s},enumerable:false},rgbToAnsi:{value:(e,t,r)=>s.ansi256ToAnsi(s.rgbToAnsi256(e,t,r)),enumerable:false},hexToAnsi:{value:e=>s.ansi256ToAnsi(s.hexToAnsi256(e)),enumerable:false}});return s}const u=assembleStyles();const f=u;const p=e(import.meta.url)("node:process");const d=e(import.meta.url)("node:os");const h=e(import.meta.url)("node:tty");function hasFlag(e,t=(globalThis.Deno?globalThis.Deno.args:p.argv)){const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const o=t.indexOf("--");return n!==-1&&(o===-1||n=2,has16m:e>=3}}function _supportsColor(e,{streamIsTTY:t,sniffFlags:r=true}={}){const n=envForceColor();if(n!==undefined){y=n}const o=r?y:n;if(o===0){return 0}if(r){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in m&&"AGENT_NAME"in m){return 1}if(e&&!t&&o===undefined){return 0}const s=o||0;if(m.TERM==="dumb"){return s}if(p.platform==="win32"){const e=d.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in m){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((e=>e in m))){return 3}if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in m))||m.CI_NAME==="codeship"){return 1}return s}if("TEAMCITY_VERSION"in m){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0}if(m.COLORTERM==="truecolor"){return 3}if(m.TERM==="xterm-kitty"){return 3}if(m.TERM==="xterm-ghostty"){return 3}if(m.TERM==="wezterm"){return 3}if("TERM_PROGRAM"in m){const e=Number.parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":{return e>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(m.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)){return 1}if("COLORTERM"in m){return 1}return s}function createSupportsColor(e,t={}){const r=_supportsColor(e,{streamIsTTY:e&&e.isTTY,...t});return translateLevel(r)}const g={stdout:createSupportsColor({isTTY:h.isatty(1)}),stderr:createSupportsColor({isTTY:h.isatty(2)})};const S=g;function stringReplaceAll(e,t,r){let n=e.indexOf(t);if(n===-1){return e}const o=t.length;let s=0;let i="";do{i+=e.slice(s,n)+t+r;s=n+o;n=e.indexOf(t,s)}while(n!==-1);i+=e.slice(s);return i}function stringEncaseCRLFWithFirstIndex(e,t,r,n){let o=0;let s="";do{const i=e[n-1]==="\r";s+=e.slice(o,i?n-1:n)+t+(i?"\r\n":"\n")+r;o=n+1;n=e.indexOf("\n",o)}while(n!==-1);s+=e.slice(o);return s}const{stdout:w,stderr:b}=S;const E=Symbol("GENERATOR");const v=Symbol("STYLER");const k=Symbol("IS_EMPTY");const C=["ansi","ansi","ansi256","ansi16m"];const A=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const r=w?w.level:0;e.level=t.level===undefined?r:t.level};class Chalk{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const chalk=(...e)=>e.join(" ");applyOptions(chalk,e);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(e){return chalkFactory(e)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[e,t]of Object.entries(f)){A[e]={get(){const r=createBuilder(this,createStyler(t.open,t.close,this[v]),this[k]);Object.defineProperty(this,e,{value:r});return r}}}A.visible={get(){const e=createBuilder(this,this[v],true);Object.defineProperty(this,"visible",{value:e});return e}};const getModelAnsi=(e,t,r,...n)=>{if(e==="rgb"){if(t==="ansi16m"){return f[r].ansi16m(...n)}if(t==="ansi256"){return f[r].ansi256(f.rgbToAnsi256(...n))}return f[r].ansi(f.rgbToAnsi(...n))}if(e==="hex"){return getModelAnsi("rgb",t,r,...f.hexToRgb(...n))}return f[r][e](...n)};const O=["rgb","hex","ansi256"];for(const e of O){A[e]={get(){const{level:t}=this;return function(...r){const n=createStyler(getModelAnsi(e,C[t],"color",...r),f.color.close,this[v]);return createBuilder(this,n,this[k])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);A[t]={get(){const{level:t}=this;return function(...r){const n=createStyler(getModelAnsi(e,C[t],"bgColor",...r),f.bgColor.close,this[v]);return createBuilder(this,n,this[k])}}}}const x=Object.defineProperties((()=>{}),{...A,level:{enumerable:true,get(){return this[E].level},set(e){this[E].level=e}}});const createStyler=(e,t,r)=>{let n;let o;if(r===undefined){n=e;o=t}else{n=r.openAll+e;o=t+r.closeAll}return{open:e,close:t,openAll:n,closeAll:o,parent:r}};const createBuilder=(e,t,r)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));Object.setPrototypeOf(builder,x);builder[E]=e;builder[v]=t;builder[k]=r;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e[k]?"":t}let r=e[v];if(r===undefined){return t}const{openAll:n,closeAll:o}=r;if(t.includes("")){while(r!==undefined){t=stringReplaceAll(t,r.close,r.open);r=r.parent}}const s=t.indexOf("\n");if(s!==-1){t=stringEncaseCRLFWithFirstIndex(t,o,n,s)}return n+t+o};Object.defineProperties(createChalk.prototype,A);const F=createChalk();const T=createChalk({level:b?b.level:0});const _=F;const I=/(?:\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.))|(?:{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(})|((?:.|[\r\n\f])+?)/gi;const P=/(?:^|\.)(?:(?:(\w+)(?:\(([^)]*)\))?)|(?:#(?=[:a-fA-F\d]{2,})([a-fA-F\d]{6})?(?::([a-fA-F\d]{6}))?))/g;const R=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const D=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const L=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function chalk_template_unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCodePoint(Number.parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(Number.parseInt(e.slice(2,-1),16))}return L.get(e)||e}function parseArguments(e,t){const r=[];const n=t.trim().split(/\s*,\s*/g);let o;for(const t of n){const n=Number(t);if(!Number.isNaN(n)){r.push(n)}else if(o=t.match(R)){r.push(o[2].replace(D,((e,t,r)=>t?chalk_template_unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseHex(e){const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]}function parseStyle(e){P.lastIndex=0;const t=[];let r;while((r=P.exec(e))!==null){const e=r[1];if(r[2]){t.push([e,...parseArguments(e,r[2])])}else if(r[3]||r[4]){if(r[3]){t.push(["rgb",...parseHex(r[3])])}if(r[4]){t.push(["bgRgb",...parseHex(r[4])])}}else{t.push([e])}}return t}function makeTemplate(e){function buildStyle(t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}n=t.length>0?n[e](...t):n[e]}return n}function template(e){const t=[];const r=[];let n=[];e.replace(I,((e,o,s,i,a,c)=>{if(o){n.push(chalk_template_unescape(o))}else if(i){const e=n.join("");n=[];r.push(t.length===0?e:buildStyle(t)(e));t.push({inverse:s,styles:parseStyle(i)})}else if(a){if(t.length===0){throw new Error("Found extraneous } in Chalk template literal")}r.push(buildStyle(t)(n.join("")));n=[];t.pop()}else{n.push(c)}}));r.push(n.join(""));if(t.length>0){throw new Error(`Chalk template literal is missing ${t.length} closing bracket${t.length===1?"":"s"} (\`}\`)`)}return r.join("")}return template}function makeChalkTemplate(e){function chalkTemplate(t,...r){if(!Array.isArray(t)||!Array.isArray(t.raw)){throw new TypeError("A tagged template literal must be provided")}const n=[t.raw[0]];for(let e=1;emakeChalkTemplate(makeTemplate(e));const N=makeTemplate(_);const M=makeChalkTemplate(N);const $=makeTemplate(T);const j=makeChalkTemplate($)}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var o=r[e]={exports:{}};var s=true;try{t[e](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete r[e]}return o.exports}(()=>{var e=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var t=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var r=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=e=>{if(e&&e.d<1){e.d=1;e.forEach((e=>e.r--));e.forEach((e=>e.r--?e.r++:e()))}};var wrapDeps=n=>n.map((n=>{if(n!==null&&typeof n==="object"){if(n[e])return n;if(n.then){var o=[];o.d=0;n.then((e=>{s[t]=e;resolveQueue(o)}),(e=>{s[r]=e;resolveQueue(o)}));var s={};s[e]=e=>e(o);return s}}var i={};i[e]=e=>{};i[t]=n;return i}));__nccwpck_require__.a=(n,o,s)=>{var i;s&&((i=[]).d=-1);var a=new Set;var c=n.exports;var l;var u;var f;var p=new Promise(((e,t)=>{f=t;u=e}));p[t]=c;p[e]=e=>(i&&e(i),a.forEach(e),p["catch"]((e=>{})));n.exports=p;o((n=>{l=wrapDeps(n);var o;var getResult=()=>l.map((e=>{if(e[r])throw e[r];return e[t]}));var s=new Promise((t=>{o=()=>t(getResult);o.r=0;var fnQueue=e=>e!==i&&!a.has(e)&&(a.add(e),e&&!e.d&&(o.r++,e.push(o)));l.map((t=>t[e](fnQueue)))}));return o.r?s:getResult()}),(e=>(e?f(p[r]=e):u(c),resolveQueue(i))));i&&i.d<0&&(i.d=0)}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n=__nccwpck_require__(629);n=await n; -//# sourceMappingURL=index.js.map \ No newline at end of file +`)}catch(t){e.error(t);process.exit(1)}t()}catch(e){t(e)}}),1)},9015:(e,t,r)=>{r.d(t,{Sh:()=>token});function base64_encodeBase64(e){if(Uint8Array.prototype.toBase64){return e.toBase64()}const t=32768;const r=[];for(let n=0;n{const r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}-----\n${r}\n-----END ${t}-----`};const genericExport=async(e,t,r)=>{if(isKeyObject(r)){if(r.type!==e){throw new TypeError(`key is not a ${e} key`)}return r.export({format:"pem",type:t})}if(!isCryptoKey(r)){throw new TypeError(invalidKeyInput(r,"CryptoKey","KeyObject"))}if(!r.extractable){throw new TypeError("CryptoKey is not extractable")}if(r.type!==e){throw new TypeError(`key is not a ${e} key`)}return formatPEM(encodeBase64(new Uint8Array(await crypto.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)};const toSPKI=e=>genericExport("public","spki",e);const toPKCS8=e=>genericExport("private","pkcs8",e);const bytesEqual=(e,t)=>{if(e.byteLength!==t.length)return false;for(let r=0;r({data:e,pos:0});const parseLength=e=>{const t=e.data[e.pos++];if(t&128){const r=t&127;let n=0;for(let t=0;t{if(t<=0)return;e.pos++;const r=parseLength(e);e.pos+=r;if(t>1){skipElement(e,t-1)}};const expectTag=(e,t,r)=>{if(e.data[e.pos++]!==t){throw new Error(r)}};const getSubarray=(e,t)=>{const r=e.data.subarray(e.pos,e.pos+t);e.pos+=t;return r};const parseAlgorithmOID=e=>{expectTag(e,6,"Expected algorithm OID");const t=parseLength(e);return getSubarray(e,t)};function parsePKCS8Header(e){expectTag(e,48,"Invalid PKCS#8 structure");parseLength(e);expectTag(e,2,"Expected version field");const t=parseLength(e);e.pos+=t;expectTag(e,48,"Expected algorithm identifier");const r=parseLength(e);const n=e.pos;return{algIdStart:n,algIdLength:r}}function parseSPKIHeader(e){expectTag(e,48,"Invalid SPKI structure");parseLength(e);expectTag(e,48,"Expected algorithm identifier");const t=parseLength(e);const r=e.pos;return{algIdStart:r,algIdLength:t}}const parseECAlgorithmIdentifier=e=>{const t=parseAlgorithmOID(e);if(bytesEqual(t,[43,101,110])){return"X25519"}if(!bytesEqual(t,[42,134,72,206,61,2,1])){throw new Error("Unsupported key algorithm")}expectTag(e,6,"Expected curve OID");const r=parseLength(e);const n=getSubarray(e,r);for(const{name:e,oid:t}of[{name:"P-256",oid:[42,134,72,206,61,3,1,7]},{name:"P-384",oid:[43,129,4,0,34]},{name:"P-521",oid:[43,129,4,0,35]}]){if(bytesEqual(n,t)){return e}}throw new Error("Unsupported named curve")};const genericImport=async(e,t,r,n)=>{let o;let s;const i=e==="spki";const getSigUsages=()=>i?["verify"]:["sign"];const getEncUsages=()=>i?["encrypt","wrapKey"]:["decrypt","unwrapKey"];switch(r){case"PS256":case"PS384":case"PS512":o={name:"RSA-PSS",hash:`SHA-${r.slice(-3)}`};s=getSigUsages();break;case"RS256":case"RS384":case"RS512":o={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${r.slice(-3)}`};s=getSigUsages();break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o={name:"RSA-OAEP",hash:`SHA-${parseInt(r.slice(-3),10)||1}`};s=getEncUsages();break;case"ES256":case"ES384":case"ES512":{const e={ES256:"P-256",ES384:"P-384",ES512:"P-521"};o={name:"ECDSA",namedCurve:e[r]};s=getSigUsages();break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{try{const e=n.getNamedCurve(t);o=e==="X25519"?{name:"X25519"}:{name:"ECDH",namedCurve:e}}catch(e){throw new errors_JOSENotSupported("Invalid or unsupported key format")}s=i?[]:["deriveBits"];break}case"Ed25519":case"EdDSA":o={name:"Ed25519"};s=getSigUsages();break;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":o={name:r};s=getSigUsages();break;default:throw new errors_JOSENotSupported('Invalid or unsupported "alg" (Algorithm) value')}return crypto.subtle.importKey(e,t,o,n?.extractable??(i?true:false),s)};const processPEMData=(e,t)=>decodeBase64(e.replace(t,""));const fromPKCS8=(e,t,r)=>{const n=processPEMData(e,/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g);let o=r;if(t?.startsWith?.("ECDH-ES")){o||={};o.getNamedCurve=e=>{const t=createASN1State(e);parsePKCS8Header(t);return parseECAlgorithmIdentifier(t)}}return genericImport("pkcs8",n,t,o)};const asn1_fromSPKI=(e,t,r)=>{const n=processPEMData(e,/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);let o=r;if(t?.startsWith?.("ECDH-ES")){o||={};o.getNamedCurve=e=>{const t=createASN1State(e);parseSPKIHeader(t);return parseECAlgorithmIdentifier(t)}}return genericImport("spki",n,t,o)};function spkiFromX509(e){const t=createASN1State(e);expectTag(t,48,"Invalid certificate structure");parseLength(t);expectTag(t,48,"Invalid tbsCertificate structure");parseLength(t);if(e[t.pos]===160){skipElement(t,6)}else{skipElement(t,5)}const r=t.pos;expectTag(t,48,"Invalid SPKI structure");const n=parseLength(t);return e.subarray(r,r+n+(t.pos-r))}function extractX509SPKI(e){const t=processPEMData(e,/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g);return spkiFromX509(t)}const asn1_fromX509=(e,t,r)=>{let n;try{n=extractX509SPKI(e)}catch(e){throw new TypeError("Failed to parse the X.509 certificate",{cause:e})}return asn1_fromSPKI(formatPEM(encodeBase64(n),"PUBLIC KEY"),t,r)};async function importSPKI(e,t,r){if(typeof e!=="string"||e.indexOf("-----BEGIN PUBLIC KEY-----")!==0){throw new TypeError('"spki" must be SPKI formatted string')}return fromSPKI(e,t,r)}async function importX509(e,t,r){if(typeof e!=="string"||e.indexOf("-----BEGIN CERTIFICATE-----")!==0){throw new TypeError('"x509" must be X.509 formatted string')}return fromX509(e,t,r)}async function importPKCS8(e,t,r){if(typeof e!=="string"||e.indexOf("-----BEGIN PRIVATE KEY-----")!==0){throw new TypeError('"pkcs8" must be PKCS#8 formatted string')}return fromPKCS8(e,t,r)}async function importJWK(e,t,r){if(!isObject(e)){throw new TypeError("JWK must be an object")}let n;t??=e.alg;n??=r?.extractable??e.ext;switch(e.kty){case"oct":if(typeof e.k!=="string"||!e.k){throw new TypeError('missing "k" (Key Value) Parameter value')}return decodeBase64URL(e.k);case"RSA":if("oth"in e&&e.oth!==undefined){throw new JOSENotSupported('RSA JWK "oth" (Other Primes Info) Parameter value is not supported')}return toCryptoKey({...e,alg:t,ext:n});case"AKP":{if(typeof e.alg!=="string"||!e.alg){throw new TypeError('missing "alg" (Algorithm) Parameter value')}if(t!==undefined&&t!==e.alg){throw new TypeError("JWK alg and alg option value mismatch")}return toCryptoKey({...e,ext:n})}case"EC":case"OKP":return toCryptoKey({...e,alg:t,ext:n});default:throw new JOSENotSupported('Unsupported "kty" (Key Type) Parameter value')}}const n=new TextEncoder;const o=new TextDecoder;const s=null&&2**32;function concat(...e){const t=e.reduce(((e,{length:t})=>e+t),0);const r=new Uint8Array(t);let n=0;for(const t of e){r.set(t,n);n+=t.length}return r}function writeUInt32BE(e,t,r){if(t<0||t>=s){throw new RangeError(`value must be >= 0 and <= ${s-1}. Received ${t}`)}e.set([t>>>24,t>>>16,t>>>8,t&255],r)}function uint64be(e){const t=Math.floor(e/s);const r=e%s;const n=new Uint8Array(8);writeUInt32BE(n,t,0);writeUInt32BE(n,r,4);return n}function uint32be(e){const t=new Uint8Array(4);writeUInt32BE(t,e);return t}function decode(e){if(Uint8Array.fromBase64){return Uint8Array.fromBase64(typeof e==="string"?e:o.decode(e),{alphabet:"base64url"})}let t=e;if(t instanceof Uint8Array){t=o.decode(t)}t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return decodeBase64(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}function encode(e){let t=e;if(typeof t==="string"){t=n.encode(t)}if(Uint8Array.prototype.toBase64){return t.toBase64({alphabet:"base64url",omitPadding:true})}return base64_encodeBase64(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}const subtle_dsa=(e,t)=>{const r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:parseInt(e.slice(-3),10)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":case"EdDSA":return{name:"Ed25519"};case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return{name:e};default:throw new errors_JOSENotSupported(`alg ${e} is not supported either by JOSE or your javascript runtime`)}};const check_key_length=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:r}=t.algorithm;if(typeof r!=="number"||r<2048){throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}}};function unusable(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function isAlgorithm(e,t){return e.name===t}function getHashLength(e){return parseInt(e.name.slice(4),10)}function getNamedCurve(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function checkUsage(e,t){if(t&&!e.usages.includes(t)){throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`)}}function checkSigCryptoKey(e,t,r){switch(t){case"HS256":case"HS384":case"HS512":{if(!isAlgorithm(e.algorithm,"HMAC"))throw unusable("HMAC");const r=parseInt(t.slice(2),10);const n=getHashLength(e.algorithm.hash);if(n!==r)throw unusable(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!isAlgorithm(e.algorithm,"RSASSA-PKCS1-v1_5"))throw unusable("RSASSA-PKCS1-v1_5");const r=parseInt(t.slice(2),10);const n=getHashLength(e.algorithm.hash);if(n!==r)throw unusable(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!isAlgorithm(e.algorithm,"RSA-PSS"))throw unusable("RSA-PSS");const r=parseInt(t.slice(2),10);const n=getHashLength(e.algorithm.hash);if(n!==r)throw unusable(`SHA-${r}`,"algorithm.hash");break}case"Ed25519":case"EdDSA":{if(!isAlgorithm(e.algorithm,"Ed25519"))throw unusable("Ed25519");break}case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":{if(!isAlgorithm(e.algorithm,t))throw unusable(t);break}case"ES256":case"ES384":case"ES512":{if(!isAlgorithm(e.algorithm,"ECDSA"))throw unusable("ECDSA");const r=getNamedCurve(t);const n=e.algorithm.namedCurve;if(n!==r)throw unusable(r,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(e,r)}function checkEncCryptoKey(e,t,r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!isAlgorithm(e.algorithm,"AES-GCM"))throw unusable("AES-GCM");const r=parseInt(t.slice(1,4),10);const n=e.algorithm.length;if(n!==r)throw unusable(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!isAlgorithm(e.algorithm,"AES-KW"))throw unusable("AES-KW");const r=parseInt(t.slice(1,4),10);const n=e.algorithm.length;if(n!==r)throw unusable(r,"algorithm.length");break}case"ECDH":{switch(e.algorithm.name){case"ECDH":case"X25519":break;default:throw unusable("ECDH or X25519")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!isAlgorithm(e.algorithm,"PBKDF2"))throw unusable("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!isAlgorithm(e.algorithm,"RSA-OAEP"))throw unusable("RSA-OAEP");const r=parseInt(t.slice(9),10)||1;const n=getHashLength(e.algorithm.hash);if(n!==r)throw unusable(`SHA-${r}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}checkUsage(e,r)}function message(e,t,...r){r=r.filter(Boolean);if(r.length>2){const t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else if(r.length===2){e+=`one of type ${r[0]} or ${r[1]}.`}else{e+=`of type ${r[0]}.`}if(t==null){e+=` Received ${t}`}else if(typeof t==="function"&&t.name){e+=` Received function ${t.name}`}else if(typeof t==="object"&&t!=null){if(t.constructor?.name){e+=` Received an instance of ${t.constructor.name}`}}return e}const invalid_key_input=(e,...t)=>message("Key must be ",e,...t);function withAlg(e,t,...r){return message(`Key for the ${e} algorithm must be `,t,...r)}const get_sign_verify_key=async(e,t,r)=>{if(t instanceof Uint8Array){if(!e.startsWith("HS")){throw new TypeError(invalid_key_input(t,"CryptoKey","KeyObject","JSON Web Key"))}return crypto.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},false,[r])}checkSigCryptoKey(t,e,r);return t};const sign=async(e,t,r)=>{const n=await get_sign_verify_key(e,t,"sign");check_key_length(e,n);const o=await crypto.subtle.sign(subtle_dsa(e,n.algorithm),n,r);return new Uint8Array(o)};const is_disjoint=(...e)=>{const t=e.filter(Boolean);if(t.length===0||t.length===1){return true}let r;for(const e of t){const t=Object.keys(e);if(!r||r.size===0){r=new Set(t);continue}for(const e of t){if(r.has(e)){return false}r.add(e)}}return true};function assertCryptoKey(e){if(!is_key_like_isCryptoKey(e)){throw new Error("CryptoKey instance expected")}}function is_key_like_isCryptoKey(e){return e?.[Symbol.toStringTag]==="CryptoKey"}function is_key_like_isKeyObject(e){return e?.[Symbol.toStringTag]==="KeyObject"}const is_key_like=e=>is_key_like_isCryptoKey(e)||is_key_like_isKeyObject(e);function isObjectLike(e){return typeof e==="object"&&e!==null}const is_object=e=>{if(!isObjectLike(e)||Object.prototype.toString.call(e)!=="[object Object]"){return false}if(Object.getPrototypeOf(e)===null){return true}let t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t};function isJWK(e){return is_object(e)&&typeof e.kty==="string"}function isPrivateJWK(e){return e.kty!=="oct"&&(e.kty==="AKP"&&typeof e.priv==="string"||typeof e.d==="string")}function isPublicJWK(e){return e.kty!=="oct"&&typeof e.d==="undefined"&&typeof e.priv==="undefined"}function isSecretJWK(e){return e.kty==="oct"&&typeof e.k==="string"}const tag=e=>e?.[Symbol.toStringTag];const jwkMatchesOp=(e,t,r)=>{if(t.use!==undefined){let e;switch(r){case"sign":case"verify":e="sig";break;case"encrypt":case"decrypt":e="enc";break}if(t.use!==e){throw new TypeError(`Invalid key for this operation, its "use" must be "${e}" when present`)}}if(t.alg!==undefined&&t.alg!==e){throw new TypeError(`Invalid key for this operation, its "alg" must be "${e}" when present`)}if(Array.isArray(t.key_ops)){let n;switch(true){case r==="sign"||r==="verify":case e==="dir":case e.includes("CBC-HS"):n=r;break;case e.startsWith("PBES2"):n="deriveBits";break;case/^A\d{3}(?:GCM)?(?:KW)?$/.test(e):if(!e.includes("GCM")&&e.endsWith("KW")){n=r==="encrypt"?"wrapKey":"unwrapKey"}else{n=r}break;case r==="encrypt"&&e.startsWith("RSA"):n="wrapKey";break;case r==="decrypt":n=e.startsWith("RSA")?"unwrapKey":"deriveBits";break}if(n&&t.key_ops?.includes?.(n)===false){throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${n}" when present`)}}return true};const symmetricTypeCheck=(e,t,r)=>{if(t instanceof Uint8Array)return;if(isJWK(t)){if(isSecretJWK(t)&&jwkMatchesOp(e,t,r))return;throw new TypeError(`JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present`)}if(!is_key_like(t)){throw new TypeError(withAlg(e,t,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"))}if(t.type!=="secret"){throw new TypeError(`${tag(t)} instances for symmetric algorithms must be of type "secret"`)}};const asymmetricTypeCheck=(e,t,r)=>{if(isJWK(t)){switch(r){case"decrypt":case"sign":if(isPrivateJWK(t)&&jwkMatchesOp(e,t,r))return;throw new TypeError(`JSON Web Key for this operation be a private JWK`);case"encrypt":case"verify":if(isPublicJWK(t)&&jwkMatchesOp(e,t,r))return;throw new TypeError(`JSON Web Key for this operation be a public JWK`)}}if(!is_key_like(t)){throw new TypeError(withAlg(e,t,"CryptoKey","KeyObject","JSON Web Key"))}if(t.type==="secret"){throw new TypeError(`${tag(t)} instances for asymmetric algorithms must not be of type "secret"`)}if(t.type==="public"){switch(r){case"sign":throw new TypeError(`${tag(t)} instances for asymmetric algorithm signing must be of type "private"`);case"decrypt":throw new TypeError(`${tag(t)} instances for asymmetric algorithm decryption must be of type "private"`);default:break}}if(t.type==="private"){switch(r){case"verify":throw new TypeError(`${tag(t)} instances for asymmetric algorithm verifying must be of type "public"`);case"encrypt":throw new TypeError(`${tag(t)} instances for asymmetric algorithm encryption must be of type "public"`);default:break}}};const check_key_type=(e,t,r)=>{const n=e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e)||/^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e);if(n){symmetricTypeCheck(e,t,r)}else{asymmetricTypeCheck(e,t,r)}};const validate_crit=(e,t,r,n,o)=>{if(o.crit!==undefined&&n?.crit===undefined){throw new e('"crit" (Critical) Header Parameter MUST be integrity protected')}if(!n||n.crit===undefined){return new Set}if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some((e=>typeof e!=="string"||e.length===0))){throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present')}let s;if(r!==undefined){s=new Map([...Object.entries(r),...t.entries()])}else{s=t}for(const t of n.crit){if(!s.has(t)){throw new errors_JOSENotSupported(`Extension Header Parameter "${t}" is not recognized`)}if(o[t]===undefined){throw new e(`Extension Header Parameter "${t}" is missing`)}if(s.get(t)&&n[t]===undefined){throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}}return new Set(n.crit)};function subtleMapping(e){let t;let r;switch(e.kty){case"AKP":{switch(e.alg){case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":t={name:e.alg};r=e.priv?["sign"]:["verify"];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`};r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`};r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`};r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"};r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"};r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"};r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv};r=e.d?["deriveBits"]:[];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"Ed25519":case"EdDSA":t={name:"Ed25519"};r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv};r=e.d?["deriveBits"]:[];break;default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new errors_JOSENotSupported('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}const jwk_to_key=async e=>{if(!e.alg){throw new TypeError('"alg" argument is required when "jwk.alg" is not present')}const{algorithm:t,keyUsages:r}=subtleMapping(e);const n={...e};if(n.kty!=="AKP"){delete n.alg}delete n.use;return crypto.subtle.importKey("jwk",n,t,e.ext??(e.d||e.priv?false:true),e.key_ops??r)};let i;const handleJWK=async(e,t,r,n=false)=>{i||=new WeakMap;let o=i.get(e);if(o?.[r]){return o[r]}const s=await jwk_to_key({...t,alg:r});if(n)Object.freeze(e);if(!o){i.set(e,{[r]:s})}else{o[r]=s}return s};const handleKeyObject=(e,t)=>{i||=new WeakMap;let r=i.get(e);if(r?.[t]){return r[t]}const n=e.type==="public";const o=n?true:false;let s;if(e.asymmetricKeyType==="x25519"){switch(t){case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":break;default:throw new TypeError("given KeyObject instance cannot be used for this algorithm")}s=e.toCryptoKey(e.asymmetricKeyType,o,n?[]:["deriveBits"])}if(e.asymmetricKeyType==="ed25519"){if(t!=="EdDSA"&&t!=="Ed25519"){throw new TypeError("given KeyObject instance cannot be used for this algorithm")}s=e.toCryptoKey(e.asymmetricKeyType,o,[n?"verify":"sign"])}switch(e.asymmetricKeyType){case"ml-dsa-44":case"ml-dsa-65":case"ml-dsa-87":{if(t!==e.asymmetricKeyType.toUpperCase()){throw new TypeError("given KeyObject instance cannot be used for this algorithm")}s=e.toCryptoKey(e.asymmetricKeyType,o,[n?"verify":"sign"])}}if(e.asymmetricKeyType==="rsa"){let r;switch(t){case"RSA-OAEP":r="SHA-1";break;case"RS256":case"PS256":case"RSA-OAEP-256":r="SHA-256";break;case"RS384":case"PS384":case"RSA-OAEP-384":r="SHA-384";break;case"RS512":case"PS512":case"RSA-OAEP-512":r="SHA-512";break;default:throw new TypeError("given KeyObject instance cannot be used for this algorithm")}if(t.startsWith("RSA-OAEP")){return e.toCryptoKey({name:"RSA-OAEP",hash:r},o,n?["encrypt"]:["decrypt"])}s=e.toCryptoKey({name:t.startsWith("PS")?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:r},o,[n?"verify":"sign"])}if(e.asymmetricKeyType==="ec"){const r=new Map([["prime256v1","P-256"],["secp384r1","P-384"],["secp521r1","P-521"]]);const i=r.get(e.asymmetricKeyDetails?.namedCurve);if(!i){throw new TypeError("given KeyObject instance cannot be used for this algorithm")}if(t==="ES256"&&i==="P-256"){s=e.toCryptoKey({name:"ECDSA",namedCurve:i},o,[n?"verify":"sign"])}if(t==="ES384"&&i==="P-384"){s=e.toCryptoKey({name:"ECDSA",namedCurve:i},o,[n?"verify":"sign"])}if(t==="ES512"&&i==="P-521"){s=e.toCryptoKey({name:"ECDSA",namedCurve:i},o,[n?"verify":"sign"])}if(t.startsWith("ECDH-ES")){s=e.toCryptoKey({name:"ECDH",namedCurve:i},o,n?[]:["deriveBits"])}}if(!s){throw new TypeError("given KeyObject instance cannot be used for this algorithm")}if(!r){i.set(e,{[t]:s})}else{r[t]=s}return s};const normalize_key=async(e,t)=>{if(e instanceof Uint8Array){return e}if(is_key_like_isCryptoKey(e)){return e}if(is_key_like_isKeyObject(e)){if(e.type==="secret"){return e.export()}if("toCryptoKey"in e&&typeof e.toCryptoKey==="function"){try{return handleKeyObject(e,t)}catch(e){if(e instanceof TypeError){throw e}}}let r=e.export({format:"jwk"});return handleJWK(e,r,t)}if(isJWK(e)){if(e.k){return decode(e.k)}return handleJWK(e,e,t,true)}throw new Error("unreachable")};class FlattenedSign{#e;#t;#r;constructor(e){if(!(e instanceof Uint8Array)){throw new TypeError("payload must be an instance of Uint8Array")}this.#e=e}setProtectedHeader(e){if(this.#t){throw new TypeError("setProtectedHeader can only be called once")}this.#t=e;return this}setUnprotectedHeader(e){if(this.#r){throw new TypeError("setUnprotectedHeader can only be called once")}this.#r=e;return this}async sign(e,t){if(!this.#t&&!this.#r){throw new JWSInvalid("either setProtectedHeader or setUnprotectedHeader must be called before #sign()")}if(!is_disjoint(this.#t,this.#r)){throw new JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const r={...this.#t,...this.#r};const s=validate_crit(JWSInvalid,new Map([["b64",true]]),t?.crit,this.#t,r);let i=true;if(s.has("b64")){i=this.#t.b64;if(typeof i!=="boolean"){throw new JWSInvalid('The "b64" (base64url-encode payload) Header Parameter must be a boolean')}}const{alg:a}=r;if(typeof a!=="string"||!a){throw new JWSInvalid('JWS "alg" (Algorithm) Header Parameter missing or invalid')}check_key_type(a,e,"sign");let c=this.#e;if(i){c=n.encode(encode(c))}let l;if(this.#t){l=n.encode(encode(JSON.stringify(this.#t)))}else{l=n.encode("")}const u=concat(l,n.encode("."),c);const f=await normalize_key(e,a);const p=await sign(a,f,u);const d={signature:encode(p),payload:""};if(i){d.payload=o.decode(c)}if(this.#r){d.header=this.#r}if(this.#t){d.protected=o.decode(l)}return d}}class CompactSign{#n;constructor(e){this.#n=new FlattenedSign(e)}setProtectedHeader(e){this.#n.setProtectedHeader(e);return this}async sign(e,t){const r=await this.#n.sign(e,t);if(r.payload===undefined){throw new TypeError("use the flattened module for creating JWS with b64: false")}return`${r.protected}.${r.payload}.${r.signature}`}}const lib_epoch=e=>Math.floor(e.getTime()/1e3);const a=60;const c=a*60;const l=c*24;const u=l*7;const f=l*365.25;const p=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;const lib_secs=e=>{const t=p.exec(e);if(!t||t[4]&&t[1]){throw new TypeError("Invalid time period format")}const r=parseFloat(t[2]);const n=t[3].toLowerCase();let o;switch(n){case"sec":case"secs":case"second":case"seconds":case"s":o=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":o=Math.round(r*a);break;case"hour":case"hours":case"hr":case"hrs":case"h":o=Math.round(r*c);break;case"day":case"days":case"d":o=Math.round(r*l);break;case"week":case"weeks":case"w":o=Math.round(r*u);break;default:o=Math.round(r*f);break}if(t[1]==="-"||t[4]==="ago"){return-o}return o};function validateInput(e,t){if(!Number.isFinite(t)){throw new TypeError(`Invalid ${e} input`)}return t}const normalizeTyp=e=>{if(e.includes("/")){return e.toLowerCase()}return`application/${e.toLowerCase()}`};const checkAudiencePresence=(e,t)=>{if(typeof e==="string"){return t.includes(e)}if(Array.isArray(e)){return t.some(Set.prototype.has.bind(new Set(e)))}return false};function validateClaimsSet(e,t,r={}){let n;try{n=JSON.parse(decoder.decode(t))}catch{}if(!isObject(n)){throw new JWTInvalid("JWT Claims Set must be a top-level JSON object")}const{typ:o}=r;if(o&&(typeof e.typ!=="string"||normalizeTyp(e.typ)!==normalizeTyp(o))){throw new JWTClaimValidationFailed('unexpected "typ" JWT header value',n,"typ","check_failed")}const{requiredClaims:s=[],issuer:i,subject:a,audience:c,maxTokenAge:l}=r;const u=[...s];if(l!==undefined)u.push("iat");if(c!==undefined)u.push("aud");if(a!==undefined)u.push("sub");if(i!==undefined)u.push("iss");for(const e of new Set(u.reverse())){if(!(e in n)){throw new JWTClaimValidationFailed(`missing required "${e}" claim`,n,e,"missing")}}if(i&&!(Array.isArray(i)?i:[i]).includes(n.iss)){throw new JWTClaimValidationFailed('unexpected "iss" claim value',n,"iss","check_failed")}if(a&&n.sub!==a){throw new JWTClaimValidationFailed('unexpected "sub" claim value',n,"sub","check_failed")}if(c&&!checkAudiencePresence(n.aud,typeof c==="string"?[c]:c)){throw new JWTClaimValidationFailed('unexpected "aud" claim value',n,"aud","check_failed")}let f;switch(typeof r.clockTolerance){case"string":f=secs(r.clockTolerance);break;case"number":f=r.clockTolerance;break;case"undefined":f=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:p}=r;const d=epoch(p||new Date);if((n.iat!==undefined||l)&&typeof n.iat!=="number"){throw new JWTClaimValidationFailed('"iat" claim must be a number',n,"iat","invalid")}if(n.nbf!==undefined){if(typeof n.nbf!=="number"){throw new JWTClaimValidationFailed('"nbf" claim must be a number',n,"nbf","invalid")}if(n.nbf>d+f){throw new JWTClaimValidationFailed('"nbf" claim timestamp check failed',n,"nbf","check_failed")}}if(n.exp!==undefined){if(typeof n.exp!=="number"){throw new JWTClaimValidationFailed('"exp" claim must be a number',n,"exp","invalid")}if(n.exp<=d-f){throw new JWTExpired('"exp" claim timestamp check failed',n,"exp","check_failed")}}if(l){const e=d-n.iat;const t=typeof l==="number"?l:secs(l);if(e-f>t){throw new JWTExpired('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed")}if(e<0-f){throw new JWTClaimValidationFailed('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}}return n}class JWTClaimsBuilder{#e;constructor(e){if(!is_object(e)){throw new TypeError("JWT Claims Set MUST be an object")}this.#e=structuredClone(e)}data(){return n.encode(JSON.stringify(this.#e))}get iss(){return this.#e.iss}set iss(e){this.#e.iss=e}get sub(){return this.#e.sub}set sub(e){this.#e.sub=e}get aud(){return this.#e.aud}set aud(e){this.#e.aud=e}set jti(e){this.#e.jti=e}set nbf(e){if(typeof e==="number"){this.#e.nbf=validateInput("setNotBefore",e)}else if(e instanceof Date){this.#e.nbf=validateInput("setNotBefore",lib_epoch(e))}else{this.#e.nbf=lib_epoch(new Date)+lib_secs(e)}}set exp(e){if(typeof e==="number"){this.#e.exp=validateInput("setExpirationTime",e)}else if(e instanceof Date){this.#e.exp=validateInput("setExpirationTime",lib_epoch(e))}else{this.#e.exp=lib_epoch(new Date)+lib_secs(e)}}set iat(e){if(typeof e==="undefined"){this.#e.iat=lib_epoch(new Date)}else if(e instanceof Date){this.#e.iat=validateInput("setIssuedAt",lib_epoch(e))}else if(typeof e==="string"){this.#e.iat=validateInput("setIssuedAt",lib_epoch(new Date)+lib_secs(e))}else{this.#e.iat=validateInput("setIssuedAt",e)}}}class SignJWT{#t;#o;constructor(e={}){this.#o=new JWTClaimsBuilder(e)}setIssuer(e){this.#o.iss=e;return this}setSubject(e){this.#o.sub=e;return this}setAudience(e){this.#o.aud=e;return this}setJti(e){this.#o.jti=e;return this}setNotBefore(e){this.#o.nbf=e;return this}setExpirationTime(e){this.#o.exp=e;return this}setIssuedAt(e){this.#o.iat=e;return this}setProtectedHeader(e){this.#t=e;return this}async sign(e,t){const r=new CompactSign(this.#o.data());r.setProtectedHeader(this.#t);if(Array.isArray(this.#t?.crit)&&this.#t.crit.includes("b64")&&this.#t.b64===false){throw new errors_JWTInvalid("JWTs MUST NOT use unencoded payload")}return r.sign(e,t)}}const payload=(e,t)=>({audience:"appstoreconnect-v1",expiresIn:t,issuer:e});function tokenSync(e,t,r,n=500){let o;token(e,t,r,n).then((e=>{o=e;return e})).catch((e=>{throw new Error(`Failed to generate token: ${e.message}`)}));return o??""}async function token(e,t,r,n=500){const o=await importPKCS8(e.toString(),"ES256");return new SignJWT(payload(t,n)).setProtectedHeader({alg:"ES256",kid:r}).sign(o)}const d={tokenSync:tokenSync,token:token};const h=null&&d},7155:(t,r,n)=>{n.d(r,{Ay:()=>M});const o=10;const wrapAnsi16=(e=0)=>t=>`[${t+e}m`;const wrapAnsi256=(e=0)=>t=>`[${38+e};5;${t}m`;const wrapAnsi16m=(e=0)=>(t,r,n)=>`[${38+e};2;${t};${r};${n}m`;const s={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]}};const i=Object.keys(s.modifier);const a=Object.keys(s.color);const c=Object.keys(s.bgColor);const l=[...a,...c];function assembleStyles(){const e=new Map;for(const[t,r]of Object.entries(s)){for(const[t,n]of Object.entries(r)){s[t]={open:`[${n[0]}m`,close:`[${n[1]}m`};r[t]=s[t];e.set(n[0],n[1])}Object.defineProperty(s,t,{value:r,enumerable:false})}Object.defineProperty(s,"codes",{value:e,enumerable:false});s.color.close="";s.bgColor.close="";s.color.ansi=wrapAnsi16();s.color.ansi256=wrapAnsi256();s.color.ansi16m=wrapAnsi16m();s.bgColor.ansi=wrapAnsi16(o);s.bgColor.ansi256=wrapAnsi256(o);s.bgColor.ansi16m=wrapAnsi16m(o);Object.defineProperties(s,{rgbToAnsi256:{value(e,t,r){if(e===t&&t===r){if(e<8){return 16}if(e>248){return 231}return Math.round((e-8)/247*24)+232}return 16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},enumerable:false},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t){return[0,0,0]}let[r]=t;if(r.length===3){r=[...r].map((e=>e+e)).join("")}const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,n&255]},enumerable:false},hexToAnsi256:{value:e=>s.rgbToAnsi256(...s.hexToRgb(e)),enumerable:false},ansi256ToAnsi:{value(e){if(e<8){return 30+e}if(e<16){return 90+(e-8)}let t;let r;let n;if(e>=232){t=((e-232)*10+8)/255;r=t;n=t}else{e-=16;const o=e%36;t=Math.floor(e/36)/5;r=Math.floor(o/6)/5;n=o%6/5}const o=Math.max(t,r,n)*2;if(o===0){return 30}let s=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));if(o===2){s+=60}return s},enumerable:false},rgbToAnsi:{value:(e,t,r)=>s.ansi256ToAnsi(s.rgbToAnsi256(e,t,r)),enumerable:false},hexToAnsi:{value:e=>s.ansi256ToAnsi(s.hexToAnsi256(e)),enumerable:false}});return s}const u=assembleStyles();const f=u;const p=e(import.meta.url)("node:process");const d=e(import.meta.url)("node:os");const h=e(import.meta.url)("node:tty");function hasFlag(e,t=(globalThis.Deno?globalThis.Deno.args:p.argv)){const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const o=t.indexOf("--");return n!==-1&&(o===-1||n=2,has16m:e>=3}}function _supportsColor(e,{streamIsTTY:t,sniffFlags:r=true}={}){const n=envForceColor();if(n!==undefined){y=n}const o=r?y:n;if(o===0){return 0}if(r){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in m&&"AGENT_NAME"in m){return 1}if(e&&!t&&o===undefined){return 0}const s=o||0;if(m.TERM==="dumb"){return s}if(p.platform==="win32"){const e=d.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in m){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((e=>e in m))){return 3}if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in m))||m.CI_NAME==="codeship"){return 1}return s}if("TEAMCITY_VERSION"in m){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0}if(m.COLORTERM==="truecolor"){return 3}if(m.TERM==="xterm-kitty"){return 3}if(m.TERM==="xterm-ghostty"){return 3}if(m.TERM==="wezterm"){return 3}if("TERM_PROGRAM"in m){const e=Number.parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":{return e>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(m.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)){return 1}if("COLORTERM"in m){return 1}return s}function createSupportsColor(e,t={}){const r=_supportsColor(e,{streamIsTTY:e&&e.isTTY,...t});return translateLevel(r)}const g={stdout:createSupportsColor({isTTY:h.isatty(1)}),stderr:createSupportsColor({isTTY:h.isatty(2)})};const S=g;function stringReplaceAll(e,t,r){let n=e.indexOf(t);if(n===-1){return e}const o=t.length;let s=0;let i="";do{i+=e.slice(s,n)+t+r;s=n+o;n=e.indexOf(t,s)}while(n!==-1);i+=e.slice(s);return i}function stringEncaseCRLFWithFirstIndex(e,t,r,n){let o=0;let s="";do{const i=e[n-1]==="\r";s+=e.slice(o,i?n-1:n)+t+(i?"\r\n":"\n")+r;o=n+1;n=e.indexOf("\n",o)}while(n!==-1);s+=e.slice(o);return s}const{stdout:w,stderr:b}=S;const E=Symbol("GENERATOR");const v=Symbol("STYLER");const k=Symbol("IS_EMPTY");const C=["ansi","ansi","ansi256","ansi16m"];const A=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const r=w?w.level:0;e.level=t.level===undefined?r:t.level};class Chalk{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const chalk=(...e)=>e.join(" ");applyOptions(chalk,e);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(e){return chalkFactory(e)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[e,t]of Object.entries(f)){A[e]={get(){const r=createBuilder(this,createStyler(t.open,t.close,this[v]),this[k]);Object.defineProperty(this,e,{value:r});return r}}}A.visible={get(){const e=createBuilder(this,this[v],true);Object.defineProperty(this,"visible",{value:e});return e}};const getModelAnsi=(e,t,r,...n)=>{if(e==="rgb"){if(t==="ansi16m"){return f[r].ansi16m(...n)}if(t==="ansi256"){return f[r].ansi256(f.rgbToAnsi256(...n))}return f[r].ansi(f.rgbToAnsi(...n))}if(e==="hex"){return getModelAnsi("rgb",t,r,...f.hexToRgb(...n))}return f[r][e](...n)};const O=["rgb","hex","ansi256"];for(const e of O){A[e]={get(){const{level:t}=this;return function(...r){const n=createStyler(getModelAnsi(e,C[t],"color",...r),f.color.close,this[v]);return createBuilder(this,n,this[k])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);A[t]={get(){const{level:t}=this;return function(...r){const n=createStyler(getModelAnsi(e,C[t],"bgColor",...r),f.bgColor.close,this[v]);return createBuilder(this,n,this[k])}}}}const x=Object.defineProperties((()=>{}),{...A,level:{enumerable:true,get(){return this[E].level},set(e){this[E].level=e}}});const createStyler=(e,t,r)=>{let n;let o;if(r===undefined){n=e;o=t}else{n=r.openAll+e;o=t+r.closeAll}return{open:e,close:t,openAll:n,closeAll:o,parent:r}};const createBuilder=(e,t,r)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));Object.setPrototypeOf(builder,x);builder[E]=e;builder[v]=t;builder[k]=r;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e[k]?"":t}let r=e[v];if(r===undefined){return t}const{openAll:n,closeAll:o}=r;if(t.includes("")){while(r!==undefined){t=stringReplaceAll(t,r.close,r.open);r=r.parent}}const s=t.indexOf("\n");if(s!==-1){t=stringEncaseCRLFWithFirstIndex(t,o,n,s)}return n+t+o};Object.defineProperties(createChalk.prototype,A);const F=createChalk();const T=createChalk({level:b?b.level:0});const _=F;const I=/(?:\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.))|(?:{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(})|((?:.|[\r\n\f])+?)/gi;const P=/(?:^|\.)(?:(?:(\w+)(?:\(([^)]*)\))?)|(?:#(?=[:a-fA-F\d]{2,})([a-fA-F\d]{6})?(?::([a-fA-F\d]{6}))?))/g;const R=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const D=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const L=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function chalk_template_unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCodePoint(Number.parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(Number.parseInt(e.slice(2,-1),16))}return L.get(e)||e}function parseArguments(e,t){const r=[];const n=t.trim().split(/\s*,\s*/g);let o;for(const t of n){const n=Number(t);if(!Number.isNaN(n)){r.push(n)}else if(o=t.match(R)){r.push(o[2].replace(D,((e,t,r)=>t?chalk_template_unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseHex(e){const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]}function parseStyle(e){P.lastIndex=0;const t=[];let r;while((r=P.exec(e))!==null){const e=r[1];if(r[2]){t.push([e,...parseArguments(e,r[2])])}else if(r[3]||r[4]){if(r[3]){t.push(["rgb",...parseHex(r[3])])}if(r[4]){t.push(["bgRgb",...parseHex(r[4])])}}else{t.push([e])}}return t}function makeTemplate(e){function buildStyle(t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}n=t.length>0?n[e](...t):n[e]}return n}function template(e){const t=[];const r=[];let n=[];e.replace(I,((e,o,s,i,a,c)=>{if(o){n.push(chalk_template_unescape(o))}else if(i){const e=n.join("");n=[];r.push(t.length===0?e:buildStyle(t)(e));t.push({inverse:s,styles:parseStyle(i)})}else if(a){if(t.length===0){throw new Error("Found extraneous } in Chalk template literal")}r.push(buildStyle(t)(n.join("")));n=[];t.pop()}else{n.push(c)}}));r.push(n.join(""));if(t.length>0){throw new Error(`Chalk template literal is missing ${t.length} closing bracket${t.length===1?"":"s"} (\`}\`)`)}return r.join("")}return template}function makeChalkTemplate(e){function chalkTemplate(t,...r){if(!Array.isArray(t)||!Array.isArray(t.raw)){throw new TypeError("A tagged template literal must be provided")}const n=[t.raw[0]];for(let e=1;emakeChalkTemplate(makeTemplate(e));const N=makeTemplate(_);const M=makeChalkTemplate(N);const $=makeTemplate(T);const j=makeChalkTemplate($)}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var o=r[e]={exports:{}};var s=true;try{t[e](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete r[e]}return o.exports}(()=>{var e=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var t=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var r=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=e=>{if(e&&e.d<1){e.d=1;e.forEach((e=>e.r--));e.forEach((e=>e.r--?e.r++:e()))}};var wrapDeps=n=>n.map((n=>{if(n!==null&&typeof n==="object"){if(n[e])return n;if(n.then){var o=[];o.d=0;n.then((e=>{s[t]=e;resolveQueue(o)}),(e=>{s[r]=e;resolveQueue(o)}));var s={};s[e]=e=>e(o);return s}}var i={};i[e]=e=>{};i[t]=n;return i}));__nccwpck_require__.a=(n,o,s)=>{var i;s&&((i=[]).d=-1);var a=new Set;var c=n.exports;var l;var u;var f;var p=new Promise(((e,t)=>{f=t;u=e}));p[t]=c;p[e]=e=>(i&&e(i),a.forEach(e),p["catch"]((e=>{})));n.exports=p;o((n=>{l=wrapDeps(n);var o;var getResult=()=>l.map((e=>{if(e[r])throw e[r];return e[t]}));var s=new Promise((t=>{o=()=>t(getResult);o.r=0;var fnQueue=e=>e!==i&&!a.has(e)&&(a.add(e),e&&!e.d&&(o.r++,e.push(o)));l.map((t=>t[e](fnQueue)))}));return o.r?s:getResult()}),(e=>(e?f(p[r]=e):u(c),resolveQueue(i))));i&&i.d<0&&(i.d=0)}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n=__nccwpck_require__(629);n=await n; \ No newline at end of file diff --git a/bin/index.js.map b/bin/index.js.map deleted file mode 100644 index 932ca358..00000000 --- a/bin/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","names":["flagSymbol","Symbol","ArgError","Error","constructor","msg","code","super","this","name","Object","setPrototypeOf","prototype","arg","opts","argv","process","slice","permissive","stopAtPositional","result","_","aliases","handlers","key","keys","length","type","isFlag","Array","isArray","fn","value","prev","push","Boolean","i","len","wholeArg","concat","separatedArguments","split","map","a","j","originalArgName","argStr","undefined","argName","match","Number","BigInt","extended","flag","COUNT","v","existingCount","module","exports","padWithZeros","vNumber","width","numAsString","toString","addZero","offset","timezoneOffset","os","Math","abs","h","String","floor","m","asString","format","date","ISO8601_FORMAT","now","vDay","getDate","vMonth","getMonth","vYearLong","getFullYear","vYearShort","substring","vYear","indexOf","vHour","getHours","vMinute","getMinutes","vSecond","getSeconds","vMillisecond","getMilliseconds","vTimeZone","getTimezoneOffset","formatted","replace","setDatePart","part","local","extractDateParts","pattern","str","missingValuesDate","monthOverflow","matchers","regexp","setUTCMinutes","getUTCMinutes","parsedPattern","reduce","p","test","index","dateFns","filter","sort","b","matcher","RegExp","matches","exec","forEach","f","parse","Date","ISO8601_WITH_TZ_OFFSET_FORMAT","DATETIME_FORMAT","ABSOLUTETIME_FORMAT","formatArgs","save","load","useColors","storage","localstorage","destroy","warned","console","warn","colors","window","__nwjs","navigator","userAgent","toLowerCase","document","documentElement","style","WebkitAppearance","firebug","exception","table","parseInt","args","namespace","humanize","diff","c","color","splice","lastC","log","debug","namespaces","setItem","removeItem","error","r","getItem","env","DEBUG","localStorage","__webpack_require__","formatters","JSON","stringify","message","setup","createDebug","default","coerce","disable","enable","enabled","names","skips","selectColor","hash","charCodeAt","prevTime","enableOverride","namespacesCache","enabledCache","self","curr","ms","unshift","formatter","val","call","logFn","apply","extend","defineProperty","enumerable","configurable","get","set","init","delimiter","newDebug","trim","ns","matchesTemplate","search","template","searchIndex","templateIndex","starIndex","matchIndex","join","skip","stack","browser","tty","util","deprecate","supportsColor","stderr","level","inspectOpts","obj","prop","k","toUpperCase","isatty","fd","colorCode","prefix","hideDate","toISOString","write","formatWithOptions","o","inspect","O","fs","path","mkdirpSync","utimesSync","stat","copySync","src","dest","clobber","overwrite","preserveTimestamps","arch","srcStat","destStat","checkPathsSync","checkParentPathsSync","handleFilterAndCopy","destParent","dirname","existsSync","startCopy","getStats","statSync","dereference","lstatSync","isDirectory","onDir","isFile","isCharacterDevice","isBlockDevice","onFile","isSymbolicLink","onLink","copyFile","mayCopyFile","unlinkSync","errorOnExist","copyFileSync","chmodSync","mode","atime","mtime","copyFileFallback","BUF_LENGTH","_buff","fdr","openSync","fdw","pos","size","bytesRead","readSync","writeSync","futimesSync","closeSync","mkDirAndCopy","copyDir","mkdirSync","readdirSync","item","copyDirItem","srcItem","destItem","resolvedSrc","readlinkSync","resolve","cwd","symlinkSync","resolvedDest","err","isSrcSubdir","copyLink","mkdirp","pathExists","utimes","copy","cb","checkPaths","stats","checkParentPaths","handleFilter","checkParentDir","dirExists","onInclude","Promise","then","include","lstat","unlink","setDestModeAndTimestamps","rs","createReadStream","on","once","ws","createWriteStream","pipe","chmod","mkdir","readdir","items","copyDirItems","pop","readlink","symlink","u","remove","emptyDir","dir","callback","mkdirs","deleteItem","emptyDirSync","mkdirsSync","removeSync","emptydirSync","emptydir","createFile","file","makeFile","writeFile","createFileSync","e","writeFileSync","link","ensureFile","ensureFileSync","createLink","createLinkSync","ensureLink","ensureLinkSync","createSymlink","createSymlinkSync","ensureSymlink","ensureSymlinkSync","srcpath","dstpath","makeLink","destinationExists","linkSync","symlinkPaths","isAbsolute","toCwd","toDst","dstdir","relativeToDst","exists","relative","symlinkPathsSync","symlinkType","symlinkTypeSync","_mkdirs","_symlinkPaths","_symlinkType","api","method","filename","read","buffer","position","reject","bytesWritten","realpath","native","assign","getOwnPropertyDescriptor","promises","jsonFile","outputJson","outputJsonSync","outputJSON","outputJSONSync","writeJSON","writeJson","writeJSONSync","writeJsonSync","readJSON","readJson","readJSONSync","readJsonSync","readFile","readFileSync","data","options","itDoes","ensureDir","ensureDirSync","invalidWin32Path","o777","made","xfs","platform","errInval","umask","err0","err1","er","er2","getRootPath","normalize","sep","INVALID_PATH_CHARS","rp","moveSync","doRename","rename","renameSync","moveAcrossDevice","move","destExists","outputFile","encoding","outputFileSync","access","catch","pathExistsSync","rimraf","sync","assert","isWindows","defaults","methods","maxBusyTries","busyTries","strictEqual","rimraf_","CB","time","setTimeout","st","fixWinEPERM","rmdir","er3","fixWinEPERMSync","rmdirSync","originalEr","rmkids","files","n","errState","rimrafSync","rmkidsSync","startTime","ret","Buffer","allocUnsafe","NODE_VERSION_MAJOR_WITH_BIGINT","NODE_VERSION_MINOR_WITH_BIGINT","NODE_VERSION_PATCH_WITH_BIGINT","nodeVersion","versions","node","nodeVersionMajor","nodeVersionMinor","nodeVersionPatch","nodeSupportsBigInt","bigint","getStatsSync","funcName","ino","dev","errMsg","srcParent","root","srcArr","destArr","acc","cur","hasMillisResSync","tmpfile","random","tmpdir","d","hasMillisRes","open","futimes","close","timeRemoveMillis","timestamp","getTime","utimesMillis","futimesErr","closeErr","utimesMillisSync","clone","getPrototypeOf","__proto__","create","getOwnPropertyNames","polyfills","legacy","gracefulQueue","previousSymbol","for","noop","publishQueue","context","queue","debuglog","NODE_DEBUG","arguments","global","fs$close","resetQueue","fs$closeSync","equal","patch","TEST_GRACEFUL_FS_GLOBAL_PATCH","__patched","gracefulify","fs$readFile","go$readFile","enqueue","fs$writeFile","go$writeFile","fs$appendFile","appendFile","go$appendFile","fs$copyFile","flags","go$copyFile","fs$readdir","noReaddirOptionVersions","go$readdir","version","fs$readdirCallback","substr","legStreams","ReadStream","WriteStream","fs$ReadStream","ReadStream$open","fs$WriteStream","WriteStream$open","FileReadStream","FileWriteStream","that","autoClose","emit","fs$open","go$open","elem","retry","retryTimer","clearTimeout","shift","lastTime","sinceAttempt","sinceStart","max","desiredDelay","min","Stream","readable","paused","bufferSize","setEncoding","start","TypeError","end","Infinity","nextTick","_read","writable","busy","_queue","_open","flush","constants","origCwd","GRACEFUL_FS_PLATFORM","chdir","hasOwnProperty","patchLchmod","lutimes","patchLutimes","chown","chownFix","fchown","lchown","chmodFix","fchmod","lchmod","chownSync","chownFixSync","fchownSync","lchownSync","chmodFixSync","fchmodSync","lchmodSync","statFix","fstat","statFixSync","fstatSync","uid","gid","fs$rename","from","to","backoff","stater","fs$read","callback_","eagCounter","__","fs$readSync","O_WRONLY","O_SYMLINK","err2","threw","at","mt","lutimesSync","_a","_b","_c","orig","target","chownErOk","nonroot","getuid","startsWith","terminatorPosition","_fs","shouldThrow","throws","stripBom","reviver","content","spaces","EOL","replacer","isBuffer","jsonfile","flatted","levels","SerDe","deserialise","__LOG4JS_undefined__","__LOG4JS_NaN__","__LOG4JS_Infinity__","deMap","serMap","canSerialise","serialise","canDeserialise","serde","LoggingEvent","categoryName","location","pid","_getLocationKeys","serialised","event","rehydratedEvent","fakeError","getLevel","levelStr","cluster","ERROR","maxFileSizeUnitTransform","maxLogSize","isInteger","units","K","M","G","validUnit","unit","toLocaleUpperCase","adapter","configAdapter","config","newConfig","fileAppenderAdapter","adapters","dateFile","fileSync","modifyConfig","categoryFilter","excludes","appender","logEvent","configure","layouts","findAppender","exclude","consoleLog","bind","consoleAppender","layout","loggingEvent","colouredLayout","streams","eol","openTheStream","stream","DateRollingFileStream","maxSize","writer","app","shutdown","complete","basicLayout","alwaysIncludePattern","mainSighupListenerStarted","sighupListeners","Set","mainSighupHandler","sighupHandler","fileAppender","logSize","numBackups","endsWith","homedir","filePath","fileSize","numFiles","opt","RollingFileStream","removeColor","regex","reopen","delete","removeListener","add","backups","touchFile","recursive","appendFileSync","RollingFileSync","currentSize","currentFileSize","shouldRoll","roll","nameMatcher","basename","justTheseFiles","filename_","byIndex","increaseFileIndex","fileToRename","idx","truncateSync","renameTheFiles","reverse","chunk","writeTheChunk","logFile","resolvedPath","__WEBPACK_EXTERNAL_createRequire","url","modulePathCJS","main","tryLoading","logLevelFilter","minLevelString","maxLevelString","minLevel","maxLevel","FATAL","eventLevel","isLessThanOrEqualTo","isGreaterThanOrEqualTo","removeNullOrEmptyRegexp","filtered","el","noLogFilter","filters","findIndex","recordedEvents","replay","reset","playback","erase","stderrAppender","stdoutAppender","stdout","net","canWrite","socket","shutdownAttempts","endMsg","emptyBuffer","evt","createSocket","host","port","createConnection","removeAllListeners","configuration","appenders","categories","Map","inheritFromParent","category","inherit","lastDotIndex","lastIndexOf","parentCategoryName","parentCategory","ap","includes","parent","addCategoryInheritance","categoryNames","addPreProcessingListener","addListener","throwExceptionIf","not","anObject","enableCallStack","clear","categoryAppenders","configForCategory","has","sourceCategoryConfig","appendersForCategory","getLevelForCategory","setLevelForCategory","getEnableCallStackForCategory","setEnableCallStackForCategory","useCallStack","disabled","listeners","pm2","pm2InstanceVar","isPM2Master","isMaster","sendToListeners","l","receiver","worker","topic","disableClustering","onlyOnMaster","notMaster","send","workerId","id","onMessage","listener","preProcessingListeners","thing","validIdentifier","anInteger","checks","tests","depth","candidate","DEFAULT_FORMAT","getUrl","req","originalUrl","assembleTokens","res","customTokens","arrayUniqueTokens","array","token","defaultTokens","replacement","protocol","hostname","__statusCode","statusCode","responseTime","toUTCString","headers","referer","referrer","httpVersionMajor","httpVersionMinor","ip","_remoteAddress","remoteAddress","getHeader","__headers","field","tokens","createNoLogCondition","nolog","regexpsAsStrings","reg","source","matchRules","currentLevel","ruleSet","matchedRule","find","rule","ruleMatched","codes","getLogger","logger4js","thisLogger","INFO","fmt","next","_logging","isLevelEnabled","writeHead","finished","handler","WARN","statusRules","combinedTokens","addContext","line","removeContext","dateFormat","styles","bold","italic","underline","inverse","white","grey","black","blue","cyan","green","magenta","red","yellow","colorizeStart","colorizeEnd","colorize","timestampLevelAndCategory","colour","messagePassThroughLayout","dummyLayout","patternLayout","TTCC_CONVERSION_PATTERN","specifier","loggerName","precision","loggerNameBits","formatAsDate","emitWarning","formatMessage","dataSlice","lowerBound","upperBound","endOfLine","logLevel","startColour","endColour","percent","clusterInfo","userDefined","contextDefined","resolver","fileName","convertFileURLToPath","filepath","urlPrefix","fileURLToPath","fileDepth","fileList","lineNumber","columnNumber","callStack","className","functionName","functionAlias","callerName","replacers","y","z","x","X","s","C","A","F","replaceToken","conversionCharacter","truncate","truncation","toTruncate","pad","padding","toPad","charAt","truncateAndPad","toTruncAndPad","formattedString","searchString","text","layoutMakers","messagePassThrough","basic","colored","coloured","dummy","coloredLayout","addLayout","serializerGenerator","validColours","Level","sArg","defaultLevel","addLevels","customLevels","existingLevelIndex","lvl","otherLevel","isEqualTo","ALL","MIN_VALUE","TRACE","MARK","OFF","MAX_VALUE","levelConfig","newLevels","deepClone","proto","Logger","clustering","connectLogger","recordingModule","sendLogEventToAppender","loadConfigurationFile","configurationFileOrObject","configObject","log4js","isConfigured","recording","appendersToCheck","values","shutdownFunctions","accum","completed","LOG4JS_CONFIG","out","stackReg","baseCallStackSkip","defaultErrorCallStackSkip","defaultParseCallStack","skipIdx","stacklines","lineMatch","callStackSkipIndex","parseCallStack","bool","callStackLinesToSkip","number","RangeError","_log","_err","clearContext","setParseCallStackFunction","parseFunction","addLevelMethods","levelStrLower","levelMethod","g","isLevelMethod","w","isFinite","long","fmtLong","fmtShort","parseFloat","msAbs","round","plural","isPlural","rfdc","copyBuffer","byteOffset","circles","rfdcCircles","constructorHandlers","cloneArray","cloneProto","a2","ArrayBuffer","isView","o2","refs","refsNew","RollingFileWriteStream","daysToKeep","theStream","currentFileStream","newNow","Writable","fileNameFormatter","fileNameParser","moveAndMaybeCompressFile","deleteFiles","fileNames","all","_parseOption","fileObject","fileFormatter","alwaysIncludeDate","needsIndex","MAX_SAFE_INTEGER","compress","keepFileExt","fileNameSep","state","currentDate","_setExistingSizeAndDate","_renewWriteStream","rawOptions","defaultOptions","numToKeep","_final","_write","_shouldRoll","_dateChanged","_tooBig","_roll","_moveOldFiles","_getExistingFiles","todaysFiles","sourceFilePath","targetFilePath","moveAndCompressOptions","_clean","existingFileDetails","getKey","ops","renameKey","oldKey","newKey","_tooManyFiles","fileNamesToRemove","base","ZIP_EXT","DEFAULT_FILENAME_SEP","FILENAME_SEP","dirAndName","ext","gzip","parts","zip","isCompressed","__NOT_MATCHING__","extAtEnd","extInMiddle","dateAndIndex","indexStr","dateStr","whatsLeftOver","remains","zlib","async","isCreated","writeStream","readStream","createGzip","hasFlag","forceColor","FORCE_COLOR","translateLevel","hasBasic","has256","has16m","haveStream","streamIsTTY","TERM","osRelease","release","some","sign","CI_NAME","TEAMCITY_VERSION","COLORTERM","TERM_PROGRAM_VERSION","TERM_PROGRAM","getSupportLevel","isTTY","S","$parse","$stringify","Primitive","primitive","ignore","object","primitives","Primitives","revive","input","parsed","output","$","lazy","ke","tmp","known","space","firstRun","after","toJSON","fromJSON","packageJson","fs__WEBPACK_IMPORTED_MODULE_0__","ab","base64_encodeBase64","Uint8Array","toBase64","CHUNK_SIZE","arr","fromCharCode","subarray","btoa","decodeBase64","encoded","fromBase64","binary","atob","bytes","JOSEError","static","captureStackTrace","errors_JWTClaimValidationFailed","claim","reason","payload","cause","errors_JWTExpired","JOSEAlgNotAllowed","errors_JOSENotSupported","JWEDecryptionFailed","JWEInvalid","JWSInvalid","errors_JWTInvalid","JWKInvalid","JWKSInvalid","JWKSNoMatchingKey","JWKSMultipleMatchingKeys","asyncIterator","JWKSTimeout","JWSSignatureVerificationFailed","formatPEM","b64","descriptor","newlined","genericExport","keyType","keyFormat","isKeyObject","export","isCryptoKey","invalidKeyInput","extractable","encodeBase64","crypto","subtle","exportKey","toSPKI","toPKCS8","bytesEqual","byteLength","createASN1State","parseLength","first","lengthOfLen","skipElement","count","expectTag","expectedTag","errorMessage","getSubarray","parseAlgorithmOID","oidLen","parsePKCS8Header","verLen","algIdLen","algIdStart","algIdLength","parseSPKIHeader","parseECAlgorithmIdentifier","algOid","curveOidLen","curveOid","oid","genericImport","keyData","alg","algorithm","keyUsages","isPublic","getSigUsages","getEncUsages","curveMap","ES256","ES384","ES512","namedCurve","getNamedCurve","importKey","processPEMData","pem","fromPKCS8","asn1_fromSPKI","spkiFromX509","buf","spkiStart","spkiContentLen","extractX509SPKI","x509","derBytes","asn1_fromX509","spki","importSPKI","fromSPKI","importX509","fromX509","importPKCS8","pkcs8","importJWK","jwk","isObject","kty","decodeBase64URL","oth","JOSENotSupported","toCryptoKey","encoder","TextEncoder","buffer_utils_decoder","TextDecoder","MAX_INT32","buffers","writeUInt32BE","uint64be","high","low","uint32be","decode","alphabet","encode","unencoded","omitPadding","subtle_dsa","saltLength","check_key_length","modulusLength","unusable","isAlgorithm","getHashLength","checkUsage","usage","usages","checkSigCryptoKey","expected","actual","checkEncCryptoKey","types","last","invalid_key_input","withAlg","get_sign_verify_key","cryptoKey","signature","is_disjoint","sources","header","parameters","parameter","assertCryptoKey","is_key_like_isCryptoKey","toStringTag","is_key_like_isKeyObject","is_key_like","isObjectLike","is_object","isJWK","isPrivateJWK","priv","isPublicJWK","isSecretJWK","tag","jwkMatchesOp","use","key_ops","expectedKeyOp","symmetricTypeCheck","asymmetricTypeCheck","check_key_type","symmetric","validate_crit","Err","recognizedDefault","recognizedOption","protectedHeader","joseHeader","crit","recognized","entries","subtleMapping","crv","jwk_to_key","cache","handleJWK","freeze","WeakMap","cached","handleKeyObject","keyObject","asymmetricKeyType","nist","asymmetricKeyDetails","normalize_key","FlattenedSign","unprotectedHeader","setProtectedHeader","setUnprotectedHeader","extensions","jws","protected","CompactSign","flattened","lib_epoch","minute","hour","day","week","year","REGEX","lib_secs","matched","numericDate","validateInput","label","normalizeTyp","checkAudiencePresence","audPayload","audOption","validateClaimsSet","encodedPayload","decoder","JWTInvalid","typ","JWTClaimValidationFailed","requiredClaims","issuer","subject","audience","maxTokenAge","presenceCheck","iss","sub","aud","tolerance","clockTolerance","secs","epoch","iat","nbf","exp","JWTExpired","age","JWTClaimsBuilder","structuredClone","jti","SignJWT","jwt","setIssuer","setSubject","setAudience","setJti","jwtId","setNotBefore","setExpirationTime","setIssuedAt","sig","issuerId","duration","expiresIn","tokenSync","privateKey","privateKeyId","kid","jwtGenCore","esm","ANSI_BACKGROUND_OFFSET","wrapAnsi16","wrapAnsi256","wrapAnsi16m","modifier","dim","overline","hidden","strikethrough","blackBright","gray","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgColor","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgBlackBright","bgGray","bgGrey","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","modifierNames","foregroundColorNames","backgroundColorNames","colorNames","assembleStyles","groupName","group","styleName","ansi","ansi256","ansi16m","defineProperties","rgbToAnsi256","hexToRgb","hex","colorString","character","integer","hexToAnsi256","ansi256ToAnsi","remainder","rgbToAnsi","hexToAnsi","ansiStyles","ansi_styles","external_node_process_namespaceObject","external_node_os_namespaceObject","external_node_tty_namespaceObject","globalThis","Deno","flagForceColor","envForceColor","_supportsColor","sniffFlags","noFlagForceColor","createSupportsColor","supports_color","stringReplaceAll","string","substringLength","endIndex","returnValue","stringEncaseCRLFWithFirstIndex","postfix","gotCR","stdoutColor","stderrColor","GENERATOR","STYLER","IS_EMPTY","levelMapping","source_styles","applyOptions","colorLevel","Chalk","chalkFactory","chalk","strings","createChalk","Function","builder","createBuilder","createStyler","visible","getModelAnsi","model","arguments_","usedModels","styler","bgModel","openAll","closeAll","_styler","_isEmpty","applyStyle","lfIndex","chalkStderr","TEMPLATE_REGEX","STYLE_REGEX","STRING_REGEX","ESCAPE_REGEX","ESCAPES","chalk_template_unescape","bracket","fromCodePoint","parseArguments","results","chunks","isNaN","escape","parseHex","parseStyle","lastIndex","makeTemplate","buildStyle","layer","current","escapeCharacter","makeChalkTemplate","chalkTemplate","firstString","raw","makeTaggedTemplate","chalkInstance","chalk_template","templateStderr","chalkTemplateStderr","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","webpackQueues","webpackExports","webpackError","resolveQueue","wrapDeps","deps","dep","body","hasAwait","depQueues","currentDeps","outerResolve","promise","rej","getResult","fnQueue","q","definition","URL","pathname","__webpack_exports__"],"sources":["../node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.js","../node_modules/.pnpm/date-format@4.0.14/node_modules/date-format/lib/index.js","../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js","../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js","../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js","../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy-sync/copy-sync.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy-sync/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy/copy.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/copy/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/empty/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/file.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/link.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink-type.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/ensure/symlink.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/fs/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/jsonfile.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/output-json-sync.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/json/output-json.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/mkdirs.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/mkdirs/win32.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move-sync/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move-sync/move-sync.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/move/move.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/output/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/path-exists/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/remove/index.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/remove/rimraf.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/buffer.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/stat.js","../node_modules/.pnpm/fs-extra@8.1.0/node_modules/fs-extra/lib/util/utimes.js","../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js","../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js","../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js","../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js","../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js","../node_modules/.pnpm/jsonfile@4.0.0/node_modules/jsonfile/index.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/LoggingEvent.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/adapters.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/categoryFilter.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/console.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/dateFile.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/file.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/fileSync.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/index.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/logLevelFilter.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/noLogFilter.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/recording.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/stderr.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/stdout.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/appenders/tcp.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/categories.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/clustering.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/configuration.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/connect-logger.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/layouts.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/levels.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/log4js.js","../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/lib/logger.js","../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js","../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js","../node_modules/.pnpm/streamroller@3.1.5/node_modules/streamroller/lib/DateRollingFileStream.js","../node_modules/.pnpm/streamroller@3.1.5/node_modules/streamroller/lib/RollingFileStream.js","../node_modules/.pnpm/streamroller@3.1.5/node_modules/streamroller/lib/RollingFileWriteStream.js","../node_modules/.pnpm/streamroller@3.1.5/node_modules/streamroller/lib/fileNameFormatter.js","../node_modules/.pnpm/streamroller@3.1.5/node_modules/streamroller/lib/fileNameParser.js","../node_modules/.pnpm/streamroller@3.1.5/node_modules/streamroller/lib/index.js","../node_modules/.pnpm/streamroller@3.1.5/node_modules/streamroller/lib/moveAndMaybeCompressFile.js","../node_modules/.pnpm/streamroller@3.1.5/node_modules/streamroller/lib/now.js","../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js","../node_modules/.pnpm/universalify@0.1.2/node_modules/universalify/index.js","../external node-commonjs \"assert\"","../external node-commonjs \"cluster\"","../external node-commonjs \"constants\"","../external node-commonjs \"fs\"","../external node-commonjs \"net\"","../external node-commonjs \"os\"","../external node-commonjs \"path\"","../external node-commonjs \"stream\"","../external node-commonjs \"tty\"","../external node-commonjs \"url\"","../external node-commonjs \"util\"","../external node-commonjs \"zlib\"","../node_modules/.pnpm/flatted@3.3.3/node_modules/flatted/cjs/index.js","../bin/main.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/base64.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/util/errors.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/asn1.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/key/import.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/buffer_utils.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/util/base64url.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/subtle_dsa.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/check_key_length.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/crypto_key.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/invalid_key_input.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/sign.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/is_disjoint.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/is_key_like.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/is_object.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/is_jwk.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/check_key_type.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/validate_crit.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/jwk_to_key.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/normalize_key.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/jws/flattened/sign.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/jws/compact/sign.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/epoch.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/secs.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/lib/jwt_claims_set.js","../node_modules/.pnpm/jose@6.1.0/node_modules/jose/dist/webapi/jwt/sign.js","../node_modules/.pnpm/appstore-connect-jwt-generator-core@2.0.1/node_modules/appstore-connect-jwt-generator-core/esm/index.js","../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js","../external node-commonjs \"node:process\"","../external node-commonjs \"node:os\"","../external node-commonjs \"node:tty\"","../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js","../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js","../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js","../node_modules/.pnpm/chalk-template@1.1.2/node_modules/chalk-template/index.js","../webpack/bootstrap","../webpack/runtime/async module","../webpack/runtime/define property getters","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/compat","../webpack/startup"],"sourcesContent":["const flagSymbol = Symbol('arg flag');\n\nclass ArgError extends Error {\n\tconstructor(msg, code) {\n\t\tsuper(msg);\n\t\tthis.name = 'ArgError';\n\t\tthis.code = code;\n\n\t\tObject.setPrototypeOf(this, ArgError.prototype);\n\t}\n}\n\nfunction arg(\n\topts,\n\t{\n\t\targv = process.argv.slice(2),\n\t\tpermissive = false,\n\t\tstopAtPositional = false\n\t} = {}\n) {\n\tif (!opts) {\n\t\tthrow new ArgError(\n\t\t\t'argument specification object is required',\n\t\t\t'ARG_CONFIG_NO_SPEC'\n\t\t);\n\t}\n\n\tconst result = { _: [] };\n\n\tconst aliases = {};\n\tconst handlers = {};\n\n\tfor (const key of Object.keys(opts)) {\n\t\tif (!key) {\n\t\t\tthrow new ArgError(\n\t\t\t\t'argument key cannot be an empty string',\n\t\t\t\t'ARG_CONFIG_EMPTY_KEY'\n\t\t\t);\n\t\t}\n\n\t\tif (key[0] !== '-') {\n\t\t\tthrow new ArgError(\n\t\t\t\t`argument key must start with '-' but found: '${key}'`,\n\t\t\t\t'ARG_CONFIG_NONOPT_KEY'\n\t\t\t);\n\t\t}\n\n\t\tif (key.length === 1) {\n\t\t\tthrow new ArgError(\n\t\t\t\t`argument key must have a name; singular '-' keys are not allowed: ${key}`,\n\t\t\t\t'ARG_CONFIG_NONAME_KEY'\n\t\t\t);\n\t\t}\n\n\t\tif (typeof opts[key] === 'string') {\n\t\t\taliases[key] = opts[key];\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet type = opts[key];\n\t\tlet isFlag = false;\n\n\t\tif (\n\t\t\tArray.isArray(type) &&\n\t\t\ttype.length === 1 &&\n\t\t\ttypeof type[0] === 'function'\n\t\t) {\n\t\t\tconst [fn] = type;\n\t\t\ttype = (value, name, prev = []) => {\n\t\t\t\tprev.push(fn(value, name, prev[prev.length - 1]));\n\t\t\t\treturn prev;\n\t\t\t};\n\t\t\tisFlag = fn === Boolean || fn[flagSymbol] === true;\n\t\t} else if (typeof type === 'function') {\n\t\t\tisFlag = type === Boolean || type[flagSymbol] === true;\n\t\t} else {\n\t\t\tthrow new ArgError(\n\t\t\t\t`type missing or not a function or valid array type: ${key}`,\n\t\t\t\t'ARG_CONFIG_VAD_TYPE'\n\t\t\t);\n\t\t}\n\n\t\tif (key[1] !== '-' && key.length > 2) {\n\t\t\tthrow new ArgError(\n\t\t\t\t`short argument keys (with a single hyphen) must have only one character: ${key}`,\n\t\t\t\t'ARG_CONFIG_SHORTOPT_TOOLONG'\n\t\t\t);\n\t\t}\n\n\t\thandlers[key] = [type, isFlag];\n\t}\n\n\tfor (let i = 0, len = argv.length; i < len; i++) {\n\t\tconst wholeArg = argv[i];\n\n\t\tif (stopAtPositional && result._.length > 0) {\n\t\t\tresult._ = result._.concat(argv.slice(i));\n\t\t\tbreak;\n\t\t}\n\n\t\tif (wholeArg === '--') {\n\t\t\tresult._ = result._.concat(argv.slice(i + 1));\n\t\t\tbreak;\n\t\t}\n\n\t\tif (wholeArg.length > 1 && wholeArg[0] === '-') {\n\t\t\t/* eslint-disable operator-linebreak */\n\t\t\tconst separatedArguments =\n\t\t\t\twholeArg[1] === '-' || wholeArg.length === 2\n\t\t\t\t\t? [wholeArg]\n\t\t\t\t\t: wholeArg\n\t\t\t\t\t\t\t.slice(1)\n\t\t\t\t\t\t\t.split('')\n\t\t\t\t\t\t\t.map((a) => `-${a}`);\n\t\t\t/* eslint-enable operator-linebreak */\n\n\t\t\tfor (let j = 0; j < separatedArguments.length; j++) {\n\t\t\t\tconst arg = separatedArguments[j];\n\t\t\t\tconst [originalArgName, argStr] =\n\t\t\t\t\targ[1] === '-' ? arg.split(/=(.*)/, 2) : [arg, undefined];\n\n\t\t\t\tlet argName = originalArgName;\n\t\t\t\twhile (argName in aliases) {\n\t\t\t\t\targName = aliases[argName];\n\t\t\t\t}\n\n\t\t\t\tif (!(argName in handlers)) {\n\t\t\t\t\tif (permissive) {\n\t\t\t\t\t\tresult._.push(arg);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new ArgError(\n\t\t\t\t\t\t\t`unknown or unexpected option: ${originalArgName}`,\n\t\t\t\t\t\t\t'ARG_UNKNOWN_OPTION'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tconst [type, isFlag] = handlers[argName];\n\n\t\t\t\tif (!isFlag && j + 1 < separatedArguments.length) {\n\t\t\t\t\tthrow new ArgError(\n\t\t\t\t\t\t`option requires argument (but was followed by another short argument): ${originalArgName}`,\n\t\t\t\t\t\t'ARG_MISSING_REQUIRED_SHORTARG'\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tif (isFlag) {\n\t\t\t\t\tresult[argName] = type(true, argName, result[argName]);\n\t\t\t\t} else if (argStr === undefined) {\n\t\t\t\t\tif (\n\t\t\t\t\t\targv.length < i + 2 ||\n\t\t\t\t\t\t(argv[i + 1].length > 1 &&\n\t\t\t\t\t\t\targv[i + 1][0] === '-' &&\n\t\t\t\t\t\t\t!(\n\t\t\t\t\t\t\t\targv[i + 1].match(/^-?\\d*(\\.(?=\\d))?\\d*$/) &&\n\t\t\t\t\t\t\t\t(type === Number ||\n\t\t\t\t\t\t\t\t\t// eslint-disable-next-line no-undef\n\t\t\t\t\t\t\t\t\t(typeof BigInt !== 'undefined' && type === BigInt))\n\t\t\t\t\t\t\t))\n\t\t\t\t\t) {\n\t\t\t\t\t\tconst extended =\n\t\t\t\t\t\t\toriginalArgName === argName ? '' : ` (alias for ${argName})`;\n\t\t\t\t\t\tthrow new ArgError(\n\t\t\t\t\t\t\t`option requires argument: ${originalArgName}${extended}`,\n\t\t\t\t\t\t\t'ARG_MISSING_REQUIRED_LONGARG'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tresult[argName] = type(argv[i + 1], argName, result[argName]);\n\t\t\t\t\t++i;\n\t\t\t\t} else {\n\t\t\t\t\tresult[argName] = type(argStr, argName, result[argName]);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tresult._.push(wholeArg);\n\t\t}\n\t}\n\n\treturn result;\n}\n\narg.flag = (fn) => {\n\tfn[flagSymbol] = true;\n\treturn fn;\n};\n\n// Utility types\narg.COUNT = arg.flag((v, name, existingCount) => (existingCount || 0) + 1);\n\n// Expose error class\narg.ArgError = ArgError;\n\nmodule.exports = arg;\n","\"use strict\";\n\nfunction padWithZeros(vNumber, width) {\n var numAsString = vNumber.toString();\n while (numAsString.length < width) {\n numAsString = \"0\" + numAsString;\n }\n return numAsString;\n}\n\nfunction addZero(vNumber) {\n return padWithZeros(vNumber, 2);\n}\n\n/**\n * Formats the TimeOffset\n * Thanks to http://www.svendtofte.com/code/date_format/\n * @private\n */\nfunction offset(timezoneOffset) {\n var os = Math.abs(timezoneOffset);\n var h = String(Math.floor(os / 60));\n var m = String(os % 60);\n h = (\"0\" + h).slice(-2);\n m = (\"0\" + m).slice(-2);\n return timezoneOffset === 0 ? \"Z\" : (timezoneOffset < 0 ? \"+\" : \"-\") + h + \":\" + m;\n}\n\nfunction asString(format, date) {\n if (typeof format !== \"string\") {\n date = format;\n format = module.exports.ISO8601_FORMAT;\n }\n if (!date) {\n date = module.exports.now();\n }\n\n // Issue # 14 - Per ISO8601 standard, the time string should be local time\n // with timezone info.\n // See https://en.wikipedia.org/wiki/ISO_8601 section \"Time offsets from UTC\"\n\n var vDay = addZero(date.getDate());\n var vMonth = addZero(date.getMonth() + 1);\n var vYearLong = addZero(date.getFullYear());\n var vYearShort = addZero(vYearLong.substring(2, 4));\n var vYear = format.indexOf(\"yyyy\") > -1 ? vYearLong : vYearShort;\n var vHour = addZero(date.getHours());\n var vMinute = addZero(date.getMinutes());\n var vSecond = addZero(date.getSeconds());\n var vMillisecond = padWithZeros(date.getMilliseconds(), 3);\n var vTimeZone = offset(date.getTimezoneOffset());\n var formatted = format\n .replace(/dd/g, vDay)\n .replace(/MM/g, vMonth)\n .replace(/y{1,4}/g, vYear)\n .replace(/hh/g, vHour)\n .replace(/mm/g, vMinute)\n .replace(/ss/g, vSecond)\n .replace(/SSS/g, vMillisecond)\n .replace(/O/g, vTimeZone);\n return formatted;\n}\n\nfunction setDatePart(date, part, value, local) {\n date['set' + (local ? '' : 'UTC') + part](value);\n}\n\nfunction extractDateParts(pattern, str, missingValuesDate) {\n // Javascript Date object doesn't support custom timezone. Sets all felds as\n // GMT based to begin with. If the timezone offset is provided, then adjust\n // it using provided timezone, otherwise, adjust it with the system timezone.\n var local = pattern.indexOf('O') < 0;\n var monthOverflow = false;\n var matchers = [\n {\n pattern: /y{1,4}/,\n regexp: \"\\\\d{1,4}\",\n fn: function(date, value) {\n setDatePart(date, 'FullYear', value, local);\n }\n },\n {\n pattern: /MM/,\n regexp: \"\\\\d{1,2}\",\n fn: function(date, value) {\n setDatePart(date, 'Month', (value - 1), local);\n if (date.getMonth() !== (value - 1)) {\n // in the event of 31 May --> 31 Feb --> 3 Mar\n // this is correct behavior if no Date is involved\n monthOverflow = true;\n }\n }\n },\n {\n pattern: /dd/,\n regexp: \"\\\\d{1,2}\",\n fn: function(date, value) {\n // in the event of 31 May --> 31 Feb --> 3 Mar\n // reset Mar back to Feb, before setting the Date\n if (monthOverflow) {\n setDatePart(date, 'Month', (date.getMonth() - 1), local);\n }\n setDatePart(date, 'Date', value, local);\n }\n },\n {\n pattern: /hh/,\n regexp: \"\\\\d{1,2}\",\n fn: function(date, value) {\n setDatePart(date, 'Hours', value, local);\n }\n },\n {\n pattern: /mm/,\n regexp: \"\\\\d\\\\d\",\n fn: function(date, value) {\n setDatePart(date, 'Minutes', value, local);\n }\n },\n {\n pattern: /ss/,\n regexp: \"\\\\d\\\\d\",\n fn: function(date, value) {\n setDatePart(date, 'Seconds', value, local);\n }\n },\n {\n pattern: /SSS/,\n regexp: \"\\\\d\\\\d\\\\d\",\n fn: function(date, value) {\n setDatePart(date, 'Milliseconds', value, local);\n }\n },\n {\n pattern: /O/,\n regexp: \"[+-]\\\\d{1,2}:?\\\\d{2}?|Z\",\n fn: function(date, value) {\n if (value === \"Z\") {\n value = 0;\n }\n else {\n value = value.replace(\":\", \"\");\n }\n var offset = Math.abs(value);\n var timezoneOffset = (value > 0 ? -1 : 1 ) * ((offset % 100) + Math.floor(offset / 100) * 60);\n // Per ISO8601 standard: UTC = local time - offset\n //\n // For example, 2000-01-01T01:00:00-0700\n // local time: 2000-01-01T01:00:00\n // ==> UTC : 2000-01-01T08:00:00 ( 01 - (-7) = 8 )\n //\n // To make it even more confusing, the date.getTimezoneOffset() is\n // opposite sign of offset string in the ISO8601 standard. So if offset\n // is '-0700' the getTimezoneOffset() would be (+)420. The line above\n // calculates timezoneOffset to matche Javascript's behavior.\n //\n // The date/time of the input is actually the local time, so the date\n // object that was constructed is actually local time even thought the\n // UTC setters are used. This means the date object's internal UTC\n // representation was wrong. It needs to be fixed by substracting the\n // offset (or adding the offset minutes as they are opposite sign).\n //\n // Note: the time zone has to be processed after all other fields are\n // set. The result would be incorrect if the offset was calculated\n // first then overriden by the other filed setters.\n date.setUTCMinutes(date.getUTCMinutes() + timezoneOffset);\n }\n }\n ];\n\n var parsedPattern = matchers.reduce(\n function(p, m) {\n if (m.pattern.test(p.regexp)) {\n m.index = p.regexp.match(m.pattern).index;\n p.regexp = p.regexp.replace(m.pattern, \"(\" + m.regexp + \")\");\n } else {\n m.index = -1;\n }\n return p;\n },\n { regexp: pattern, index: [] }\n );\n\n var dateFns = matchers.filter(function(m) {\n return m.index > -1;\n });\n dateFns.sort(function(a, b) {\n return a.index - b.index;\n });\n\n var matcher = new RegExp(parsedPattern.regexp);\n var matches = matcher.exec(str);\n if (matches) {\n var date = missingValuesDate || module.exports.now();\n dateFns.forEach(function(f, i) {\n f.fn(date, matches[i + 1]);\n });\n\n return date;\n }\n\n throw new Error(\n \"String '\" + str + \"' could not be parsed as '\" + pattern + \"'\"\n );\n}\n\nfunction parse(pattern, str, missingValuesDate) {\n if (!pattern) {\n throw new Error(\"pattern must be supplied\");\n }\n\n return extractDateParts(pattern, str, missingValuesDate);\n}\n\n/**\n * Used for testing - replace this function with a fixed date.\n */\nfunction now() {\n return new Date();\n}\n\nmodule.exports = asString;\nmodule.exports.asString = asString;\nmodule.exports.parse = parse;\nmodule.exports.now = now;\nmodule.exports.ISO8601_FORMAT = \"yyyy-MM-ddThh:mm:ss.SSS\";\nmodule.exports.ISO8601_WITH_TZ_OFFSET_FORMAT = \"yyyy-MM-ddThh:mm:ss.SSSO\";\nmodule.exports.DATETIME_FORMAT = \"dd MM yyyy hh:mm:ss.SSS\";\nmodule.exports.ABSOLUTETIME_FORMAT = \"hh:mm:ss.SSS\";\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\tlet m;\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\t// eslint-disable-next-line no-return-assign\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[1], 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '')\n\t\t\t.trim()\n\t\t\t.replace(/\\s+/g, ',')\n\t\t\t.split(',')\n\t\t\t.filter(Boolean);\n\n\t\tfor (const ns of split) {\n\t\t\tif (ns[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(ns.slice(1));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(ns);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the given string matches a namespace template, honoring\n\t * asterisks as wildcards.\n\t *\n\t * @param {String} search\n\t * @param {String} template\n\t * @return {Boolean}\n\t */\n\tfunction matchesTemplate(search, template) {\n\t\tlet searchIndex = 0;\n\t\tlet templateIndex = 0;\n\t\tlet starIndex = -1;\n\t\tlet matchIndex = 0;\n\n\t\twhile (searchIndex < search.length) {\n\t\t\tif (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {\n\t\t\t\t// Match character or proceed with wildcard\n\t\t\t\tif (template[templateIndex] === '*') {\n\t\t\t\t\tstarIndex = templateIndex;\n\t\t\t\t\tmatchIndex = searchIndex;\n\t\t\t\t\ttemplateIndex++; // Skip the '*'\n\t\t\t\t} else {\n\t\t\t\t\tsearchIndex++;\n\t\t\t\t\ttemplateIndex++;\n\t\t\t\t}\n\t\t\t} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition\n\t\t\t\t// Backtrack to the last '*' and try to match more characters\n\t\t\t\ttemplateIndex = starIndex + 1;\n\t\t\t\tmatchIndex++;\n\t\t\t\tsearchIndex = matchIndex;\n\t\t\t} else {\n\t\t\t\treturn false; // No match\n\t\t\t}\n\t\t}\n\n\t\t// Handle trailing '*' in template\n\t\twhile (templateIndex < template.length && template[templateIndex] === '*') {\n\t\t\ttemplateIndex++;\n\t\t}\n\n\t\treturn templateIndex === template.length;\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names,\n\t\t\t...createDebug.skips.map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tfor (const skip of createDebug.skips) {\n\t\t\tif (matchesTemplate(name, skip)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (const ns of createDebug.names) {\n\t\t\tif (matchesTemplate(name, ns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n","/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst mkdirpSync = require('../mkdirs').mkdirsSync\nconst utimesSync = require('../util/utimes.js').utimesMillisSync\nconst stat = require('../util/stat')\n\nfunction copySync (src, dest, opts) {\n if (typeof opts === 'function') {\n opts = { filter: opts }\n }\n\n opts = opts || {}\n opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now\n opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber\n\n // Warn about using preserveTimestamps on 32-bit node\n if (opts.preserveTimestamps && process.arch === 'ia32') {\n console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)\n }\n\n const { srcStat, destStat } = stat.checkPathsSync(src, dest, 'copy')\n stat.checkParentPathsSync(src, srcStat, dest, 'copy')\n return handleFilterAndCopy(destStat, src, dest, opts)\n}\n\nfunction handleFilterAndCopy (destStat, src, dest, opts) {\n if (opts.filter && !opts.filter(src, dest)) return\n const destParent = path.dirname(dest)\n if (!fs.existsSync(destParent)) mkdirpSync(destParent)\n return startCopy(destStat, src, dest, opts)\n}\n\nfunction startCopy (destStat, src, dest, opts) {\n if (opts.filter && !opts.filter(src, dest)) return\n return getStats(destStat, src, dest, opts)\n}\n\nfunction getStats (destStat, src, dest, opts) {\n const statSync = opts.dereference ? fs.statSync : fs.lstatSync\n const srcStat = statSync(src)\n\n if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts)\n else if (srcStat.isFile() ||\n srcStat.isCharacterDevice() ||\n srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts)\n else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts)\n}\n\nfunction onFile (srcStat, destStat, src, dest, opts) {\n if (!destStat) return copyFile(srcStat, src, dest, opts)\n return mayCopyFile(srcStat, src, dest, opts)\n}\n\nfunction mayCopyFile (srcStat, src, dest, opts) {\n if (opts.overwrite) {\n fs.unlinkSync(dest)\n return copyFile(srcStat, src, dest, opts)\n } else if (opts.errorOnExist) {\n throw new Error(`'${dest}' already exists`)\n }\n}\n\nfunction copyFile (srcStat, src, dest, opts) {\n if (typeof fs.copyFileSync === 'function') {\n fs.copyFileSync(src, dest)\n fs.chmodSync(dest, srcStat.mode)\n if (opts.preserveTimestamps) {\n return utimesSync(dest, srcStat.atime, srcStat.mtime)\n }\n return\n }\n return copyFileFallback(srcStat, src, dest, opts)\n}\n\nfunction copyFileFallback (srcStat, src, dest, opts) {\n const BUF_LENGTH = 64 * 1024\n const _buff = require('../util/buffer')(BUF_LENGTH)\n\n const fdr = fs.openSync(src, 'r')\n const fdw = fs.openSync(dest, 'w', srcStat.mode)\n let pos = 0\n\n while (pos < srcStat.size) {\n const bytesRead = fs.readSync(fdr, _buff, 0, BUF_LENGTH, pos)\n fs.writeSync(fdw, _buff, 0, bytesRead)\n pos += bytesRead\n }\n\n if (opts.preserveTimestamps) fs.futimesSync(fdw, srcStat.atime, srcStat.mtime)\n\n fs.closeSync(fdr)\n fs.closeSync(fdw)\n}\n\nfunction onDir (srcStat, destStat, src, dest, opts) {\n if (!destStat) return mkDirAndCopy(srcStat, src, dest, opts)\n if (destStat && !destStat.isDirectory()) {\n throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)\n }\n return copyDir(src, dest, opts)\n}\n\nfunction mkDirAndCopy (srcStat, src, dest, opts) {\n fs.mkdirSync(dest)\n copyDir(src, dest, opts)\n return fs.chmodSync(dest, srcStat.mode)\n}\n\nfunction copyDir (src, dest, opts) {\n fs.readdirSync(src).forEach(item => copyDirItem(item, src, dest, opts))\n}\n\nfunction copyDirItem (item, src, dest, opts) {\n const srcItem = path.join(src, item)\n const destItem = path.join(dest, item)\n const { destStat } = stat.checkPathsSync(srcItem, destItem, 'copy')\n return startCopy(destStat, srcItem, destItem, opts)\n}\n\nfunction onLink (destStat, src, dest, opts) {\n let resolvedSrc = fs.readlinkSync(src)\n if (opts.dereference) {\n resolvedSrc = path.resolve(process.cwd(), resolvedSrc)\n }\n\n if (!destStat) {\n return fs.symlinkSync(resolvedSrc, dest)\n } else {\n let resolvedDest\n try {\n resolvedDest = fs.readlinkSync(dest)\n } catch (err) {\n // dest exists and is a regular file or directory,\n // Windows may throw UNKNOWN error. If dest already exists,\n // fs throws error anyway, so no need to guard against it here.\n if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlinkSync(resolvedSrc, dest)\n throw err\n }\n if (opts.dereference) {\n resolvedDest = path.resolve(process.cwd(), resolvedDest)\n }\n if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {\n throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)\n }\n\n // prevent copy if src is a subdir of dest since unlinking\n // dest in this case would result in removing src contents\n // and therefore a broken symlink would be created.\n if (fs.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) {\n throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)\n }\n return copyLink(resolvedSrc, dest)\n }\n}\n\nfunction copyLink (resolvedSrc, dest) {\n fs.unlinkSync(dest)\n return fs.symlinkSync(resolvedSrc, dest)\n}\n\nmodule.exports = copySync\n","'use strict'\n\nmodule.exports = {\n copySync: require('./copy-sync')\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst mkdirp = require('../mkdirs').mkdirs\nconst pathExists = require('../path-exists').pathExists\nconst utimes = require('../util/utimes').utimesMillis\nconst stat = require('../util/stat')\n\nfunction copy (src, dest, opts, cb) {\n if (typeof opts === 'function' && !cb) {\n cb = opts\n opts = {}\n } else if (typeof opts === 'function') {\n opts = { filter: opts }\n }\n\n cb = cb || function () {}\n opts = opts || {}\n\n opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now\n opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber\n\n // Warn about using preserveTimestamps on 32-bit node\n if (opts.preserveTimestamps && process.arch === 'ia32') {\n console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)\n }\n\n stat.checkPaths(src, dest, 'copy', (err, stats) => {\n if (err) return cb(err)\n const { srcStat, destStat } = stats\n stat.checkParentPaths(src, srcStat, dest, 'copy', err => {\n if (err) return cb(err)\n if (opts.filter) return handleFilter(checkParentDir, destStat, src, dest, opts, cb)\n return checkParentDir(destStat, src, dest, opts, cb)\n })\n })\n}\n\nfunction checkParentDir (destStat, src, dest, opts, cb) {\n const destParent = path.dirname(dest)\n pathExists(destParent, (err, dirExists) => {\n if (err) return cb(err)\n if (dirExists) return startCopy(destStat, src, dest, opts, cb)\n mkdirp(destParent, err => {\n if (err) return cb(err)\n return startCopy(destStat, src, dest, opts, cb)\n })\n })\n}\n\nfunction handleFilter (onInclude, destStat, src, dest, opts, cb) {\n Promise.resolve(opts.filter(src, dest)).then(include => {\n if (include) return onInclude(destStat, src, dest, opts, cb)\n return cb()\n }, error => cb(error))\n}\n\nfunction startCopy (destStat, src, dest, opts, cb) {\n if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb)\n return getStats(destStat, src, dest, opts, cb)\n}\n\nfunction getStats (destStat, src, dest, opts, cb) {\n const stat = opts.dereference ? fs.stat : fs.lstat\n stat(src, (err, srcStat) => {\n if (err) return cb(err)\n\n if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb)\n else if (srcStat.isFile() ||\n srcStat.isCharacterDevice() ||\n srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb)\n else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb)\n })\n}\n\nfunction onFile (srcStat, destStat, src, dest, opts, cb) {\n if (!destStat) return copyFile(srcStat, src, dest, opts, cb)\n return mayCopyFile(srcStat, src, dest, opts, cb)\n}\n\nfunction mayCopyFile (srcStat, src, dest, opts, cb) {\n if (opts.overwrite) {\n fs.unlink(dest, err => {\n if (err) return cb(err)\n return copyFile(srcStat, src, dest, opts, cb)\n })\n } else if (opts.errorOnExist) {\n return cb(new Error(`'${dest}' already exists`))\n } else return cb()\n}\n\nfunction copyFile (srcStat, src, dest, opts, cb) {\n if (typeof fs.copyFile === 'function') {\n return fs.copyFile(src, dest, err => {\n if (err) return cb(err)\n return setDestModeAndTimestamps(srcStat, dest, opts, cb)\n })\n }\n return copyFileFallback(srcStat, src, dest, opts, cb)\n}\n\nfunction copyFileFallback (srcStat, src, dest, opts, cb) {\n const rs = fs.createReadStream(src)\n rs.on('error', err => cb(err)).once('open', () => {\n const ws = fs.createWriteStream(dest, { mode: srcStat.mode })\n ws.on('error', err => cb(err))\n .on('open', () => rs.pipe(ws))\n .once('close', () => setDestModeAndTimestamps(srcStat, dest, opts, cb))\n })\n}\n\nfunction setDestModeAndTimestamps (srcStat, dest, opts, cb) {\n fs.chmod(dest, srcStat.mode, err => {\n if (err) return cb(err)\n if (opts.preserveTimestamps) {\n return utimes(dest, srcStat.atime, srcStat.mtime, cb)\n }\n return cb()\n })\n}\n\nfunction onDir (srcStat, destStat, src, dest, opts, cb) {\n if (!destStat) return mkDirAndCopy(srcStat, src, dest, opts, cb)\n if (destStat && !destStat.isDirectory()) {\n return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`))\n }\n return copyDir(src, dest, opts, cb)\n}\n\nfunction mkDirAndCopy (srcStat, src, dest, opts, cb) {\n fs.mkdir(dest, err => {\n if (err) return cb(err)\n copyDir(src, dest, opts, err => {\n if (err) return cb(err)\n return fs.chmod(dest, srcStat.mode, cb)\n })\n })\n}\n\nfunction copyDir (src, dest, opts, cb) {\n fs.readdir(src, (err, items) => {\n if (err) return cb(err)\n return copyDirItems(items, src, dest, opts, cb)\n })\n}\n\nfunction copyDirItems (items, src, dest, opts, cb) {\n const item = items.pop()\n if (!item) return cb()\n return copyDirItem(items, item, src, dest, opts, cb)\n}\n\nfunction copyDirItem (items, item, src, dest, opts, cb) {\n const srcItem = path.join(src, item)\n const destItem = path.join(dest, item)\n stat.checkPaths(srcItem, destItem, 'copy', (err, stats) => {\n if (err) return cb(err)\n const { destStat } = stats\n startCopy(destStat, srcItem, destItem, opts, err => {\n if (err) return cb(err)\n return copyDirItems(items, src, dest, opts, cb)\n })\n })\n}\n\nfunction onLink (destStat, src, dest, opts, cb) {\n fs.readlink(src, (err, resolvedSrc) => {\n if (err) return cb(err)\n if (opts.dereference) {\n resolvedSrc = path.resolve(process.cwd(), resolvedSrc)\n }\n\n if (!destStat) {\n return fs.symlink(resolvedSrc, dest, cb)\n } else {\n fs.readlink(dest, (err, resolvedDest) => {\n if (err) {\n // dest exists and is a regular file or directory,\n // Windows may throw UNKNOWN error. If dest already exists,\n // fs throws error anyway, so no need to guard against it here.\n if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlink(resolvedSrc, dest, cb)\n return cb(err)\n }\n if (opts.dereference) {\n resolvedDest = path.resolve(process.cwd(), resolvedDest)\n }\n if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {\n return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`))\n }\n\n // do not copy if src is a subdir of dest since unlinking\n // dest in this case would result in removing src contents\n // and therefore a broken symlink would be created.\n if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) {\n return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`))\n }\n return copyLink(resolvedSrc, dest, cb)\n })\n }\n })\n}\n\nfunction copyLink (resolvedSrc, dest, cb) {\n fs.unlink(dest, err => {\n if (err) return cb(err)\n return fs.symlink(resolvedSrc, dest, cb)\n })\n}\n\nmodule.exports = copy\n","'use strict'\n\nconst u = require('universalify').fromCallback\nmodule.exports = {\n copy: u(require('./copy'))\n}\n","'use strict'\n\nconst u = require('universalify').fromCallback\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst mkdir = require('../mkdirs')\nconst remove = require('../remove')\n\nconst emptyDir = u(function emptyDir (dir, callback) {\n callback = callback || function () {}\n fs.readdir(dir, (err, items) => {\n if (err) return mkdir.mkdirs(dir, callback)\n\n items = items.map(item => path.join(dir, item))\n\n deleteItem()\n\n function deleteItem () {\n const item = items.pop()\n if (!item) return callback()\n remove.remove(item, err => {\n if (err) return callback(err)\n deleteItem()\n })\n }\n })\n})\n\nfunction emptyDirSync (dir) {\n let items\n try {\n items = fs.readdirSync(dir)\n } catch (err) {\n return mkdir.mkdirsSync(dir)\n }\n\n items.forEach(item => {\n item = path.join(dir, item)\n remove.removeSync(item)\n })\n}\n\nmodule.exports = {\n emptyDirSync,\n emptydirSync: emptyDirSync,\n emptyDir,\n emptydir: emptyDir\n}\n","'use strict'\n\nconst u = require('universalify').fromCallback\nconst path = require('path')\nconst fs = require('graceful-fs')\nconst mkdir = require('../mkdirs')\nconst pathExists = require('../path-exists').pathExists\n\nfunction createFile (file, callback) {\n function makeFile () {\n fs.writeFile(file, '', err => {\n if (err) return callback(err)\n callback()\n })\n }\n\n fs.stat(file, (err, stats) => { // eslint-disable-line handle-callback-err\n if (!err && stats.isFile()) return callback()\n const dir = path.dirname(file)\n pathExists(dir, (err, dirExists) => {\n if (err) return callback(err)\n if (dirExists) return makeFile()\n mkdir.mkdirs(dir, err => {\n if (err) return callback(err)\n makeFile()\n })\n })\n })\n}\n\nfunction createFileSync (file) {\n let stats\n try {\n stats = fs.statSync(file)\n } catch (e) {}\n if (stats && stats.isFile()) return\n\n const dir = path.dirname(file)\n if (!fs.existsSync(dir)) {\n mkdir.mkdirsSync(dir)\n }\n\n fs.writeFileSync(file, '')\n}\n\nmodule.exports = {\n createFile: u(createFile),\n createFileSync\n}\n","'use strict'\n\nconst file = require('./file')\nconst link = require('./link')\nconst symlink = require('./symlink')\n\nmodule.exports = {\n // file\n createFile: file.createFile,\n createFileSync: file.createFileSync,\n ensureFile: file.createFile,\n ensureFileSync: file.createFileSync,\n // link\n createLink: link.createLink,\n createLinkSync: link.createLinkSync,\n ensureLink: link.createLink,\n ensureLinkSync: link.createLinkSync,\n // symlink\n createSymlink: symlink.createSymlink,\n createSymlinkSync: symlink.createSymlinkSync,\n ensureSymlink: symlink.createSymlink,\n ensureSymlinkSync: symlink.createSymlinkSync\n}\n","'use strict'\n\nconst u = require('universalify').fromCallback\nconst path = require('path')\nconst fs = require('graceful-fs')\nconst mkdir = require('../mkdirs')\nconst pathExists = require('../path-exists').pathExists\n\nfunction createLink (srcpath, dstpath, callback) {\n function makeLink (srcpath, dstpath) {\n fs.link(srcpath, dstpath, err => {\n if (err) return callback(err)\n callback(null)\n })\n }\n\n pathExists(dstpath, (err, destinationExists) => {\n if (err) return callback(err)\n if (destinationExists) return callback(null)\n fs.lstat(srcpath, (err) => {\n if (err) {\n err.message = err.message.replace('lstat', 'ensureLink')\n return callback(err)\n }\n\n const dir = path.dirname(dstpath)\n pathExists(dir, (err, dirExists) => {\n if (err) return callback(err)\n if (dirExists) return makeLink(srcpath, dstpath)\n mkdir.mkdirs(dir, err => {\n if (err) return callback(err)\n makeLink(srcpath, dstpath)\n })\n })\n })\n })\n}\n\nfunction createLinkSync (srcpath, dstpath) {\n const destinationExists = fs.existsSync(dstpath)\n if (destinationExists) return undefined\n\n try {\n fs.lstatSync(srcpath)\n } catch (err) {\n err.message = err.message.replace('lstat', 'ensureLink')\n throw err\n }\n\n const dir = path.dirname(dstpath)\n const dirExists = fs.existsSync(dir)\n if (dirExists) return fs.linkSync(srcpath, dstpath)\n mkdir.mkdirsSync(dir)\n\n return fs.linkSync(srcpath, dstpath)\n}\n\nmodule.exports = {\n createLink: u(createLink),\n createLinkSync\n}\n","'use strict'\n\nconst path = require('path')\nconst fs = require('graceful-fs')\nconst pathExists = require('../path-exists').pathExists\n\n/**\n * Function that returns two types of paths, one relative to symlink, and one\n * relative to the current working directory. Checks if path is absolute or\n * relative. If the path is relative, this function checks if the path is\n * relative to symlink or relative to current working directory. This is an\n * initiative to find a smarter `srcpath` to supply when building symlinks.\n * This allows you to determine which path to use out of one of three possible\n * types of source paths. The first is an absolute path. This is detected by\n * `path.isAbsolute()`. When an absolute path is provided, it is checked to\n * see if it exists. If it does it's used, if not an error is returned\n * (callback)/ thrown (sync). The other two options for `srcpath` are a\n * relative url. By default Node's `fs.symlink` works by creating a symlink\n * using `dstpath` and expects the `srcpath` to be relative to the newly\n * created symlink. If you provide a `srcpath` that does not exist on the file\n * system it results in a broken symlink. To minimize this, the function\n * checks to see if the 'relative to symlink' source file exists, and if it\n * does it will use it. If it does not, it checks if there's a file that\n * exists that is relative to the current working directory, if does its used.\n * This preserves the expectations of the original fs.symlink spec and adds\n * the ability to pass in `relative to current working direcotry` paths.\n */\n\nfunction symlinkPaths (srcpath, dstpath, callback) {\n if (path.isAbsolute(srcpath)) {\n return fs.lstat(srcpath, (err) => {\n if (err) {\n err.message = err.message.replace('lstat', 'ensureSymlink')\n return callback(err)\n }\n return callback(null, {\n 'toCwd': srcpath,\n 'toDst': srcpath\n })\n })\n } else {\n const dstdir = path.dirname(dstpath)\n const relativeToDst = path.join(dstdir, srcpath)\n return pathExists(relativeToDst, (err, exists) => {\n if (err) return callback(err)\n if (exists) {\n return callback(null, {\n 'toCwd': relativeToDst,\n 'toDst': srcpath\n })\n } else {\n return fs.lstat(srcpath, (err) => {\n if (err) {\n err.message = err.message.replace('lstat', 'ensureSymlink')\n return callback(err)\n }\n return callback(null, {\n 'toCwd': srcpath,\n 'toDst': path.relative(dstdir, srcpath)\n })\n })\n }\n })\n }\n}\n\nfunction symlinkPathsSync (srcpath, dstpath) {\n let exists\n if (path.isAbsolute(srcpath)) {\n exists = fs.existsSync(srcpath)\n if (!exists) throw new Error('absolute srcpath does not exist')\n return {\n 'toCwd': srcpath,\n 'toDst': srcpath\n }\n } else {\n const dstdir = path.dirname(dstpath)\n const relativeToDst = path.join(dstdir, srcpath)\n exists = fs.existsSync(relativeToDst)\n if (exists) {\n return {\n 'toCwd': relativeToDst,\n 'toDst': srcpath\n }\n } else {\n exists = fs.existsSync(srcpath)\n if (!exists) throw new Error('relative srcpath does not exist')\n return {\n 'toCwd': srcpath,\n 'toDst': path.relative(dstdir, srcpath)\n }\n }\n }\n}\n\nmodule.exports = {\n symlinkPaths,\n symlinkPathsSync\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\n\nfunction symlinkType (srcpath, type, callback) {\n callback = (typeof type === 'function') ? type : callback\n type = (typeof type === 'function') ? false : type\n if (type) return callback(null, type)\n fs.lstat(srcpath, (err, stats) => {\n if (err) return callback(null, 'file')\n type = (stats && stats.isDirectory()) ? 'dir' : 'file'\n callback(null, type)\n })\n}\n\nfunction symlinkTypeSync (srcpath, type) {\n let stats\n\n if (type) return type\n try {\n stats = fs.lstatSync(srcpath)\n } catch (e) {\n return 'file'\n }\n return (stats && stats.isDirectory()) ? 'dir' : 'file'\n}\n\nmodule.exports = {\n symlinkType,\n symlinkTypeSync\n}\n","'use strict'\n\nconst u = require('universalify').fromCallback\nconst path = require('path')\nconst fs = require('graceful-fs')\nconst _mkdirs = require('../mkdirs')\nconst mkdirs = _mkdirs.mkdirs\nconst mkdirsSync = _mkdirs.mkdirsSync\n\nconst _symlinkPaths = require('./symlink-paths')\nconst symlinkPaths = _symlinkPaths.symlinkPaths\nconst symlinkPathsSync = _symlinkPaths.symlinkPathsSync\n\nconst _symlinkType = require('./symlink-type')\nconst symlinkType = _symlinkType.symlinkType\nconst symlinkTypeSync = _symlinkType.symlinkTypeSync\n\nconst pathExists = require('../path-exists').pathExists\n\nfunction createSymlink (srcpath, dstpath, type, callback) {\n callback = (typeof type === 'function') ? type : callback\n type = (typeof type === 'function') ? false : type\n\n pathExists(dstpath, (err, destinationExists) => {\n if (err) return callback(err)\n if (destinationExists) return callback(null)\n symlinkPaths(srcpath, dstpath, (err, relative) => {\n if (err) return callback(err)\n srcpath = relative.toDst\n symlinkType(relative.toCwd, type, (err, type) => {\n if (err) return callback(err)\n const dir = path.dirname(dstpath)\n pathExists(dir, (err, dirExists) => {\n if (err) return callback(err)\n if (dirExists) return fs.symlink(srcpath, dstpath, type, callback)\n mkdirs(dir, err => {\n if (err) return callback(err)\n fs.symlink(srcpath, dstpath, type, callback)\n })\n })\n })\n })\n })\n}\n\nfunction createSymlinkSync (srcpath, dstpath, type) {\n const destinationExists = fs.existsSync(dstpath)\n if (destinationExists) return undefined\n\n const relative = symlinkPathsSync(srcpath, dstpath)\n srcpath = relative.toDst\n type = symlinkTypeSync(relative.toCwd, type)\n const dir = path.dirname(dstpath)\n const exists = fs.existsSync(dir)\n if (exists) return fs.symlinkSync(srcpath, dstpath, type)\n mkdirsSync(dir)\n return fs.symlinkSync(srcpath, dstpath, type)\n}\n\nmodule.exports = {\n createSymlink: u(createSymlink),\n createSymlinkSync\n}\n","'use strict'\n// This is adapted from https://github.com/normalize/mz\n// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors\nconst u = require('universalify').fromCallback\nconst fs = require('graceful-fs')\n\nconst api = [\n 'access',\n 'appendFile',\n 'chmod',\n 'chown',\n 'close',\n 'copyFile',\n 'fchmod',\n 'fchown',\n 'fdatasync',\n 'fstat',\n 'fsync',\n 'ftruncate',\n 'futimes',\n 'lchown',\n 'lchmod',\n 'link',\n 'lstat',\n 'mkdir',\n 'mkdtemp',\n 'open',\n 'readFile',\n 'readdir',\n 'readlink',\n 'realpath',\n 'rename',\n 'rmdir',\n 'stat',\n 'symlink',\n 'truncate',\n 'unlink',\n 'utimes',\n 'writeFile'\n].filter(key => {\n // Some commands are not available on some systems. Ex:\n // fs.copyFile was added in Node.js v8.5.0\n // fs.mkdtemp was added in Node.js v5.10.0\n // fs.lchown is not available on at least some Linux\n return typeof fs[key] === 'function'\n})\n\n// Export all keys:\nObject.keys(fs).forEach(key => {\n if (key === 'promises') {\n // fs.promises is a getter property that triggers ExperimentalWarning\n // Don't re-export it here, the getter is defined in \"lib/index.js\"\n return\n }\n exports[key] = fs[key]\n})\n\n// Universalify async methods:\napi.forEach(method => {\n exports[method] = u(fs[method])\n})\n\n// We differ from mz/fs in that we still ship the old, broken, fs.exists()\n// since we are a drop-in replacement for the native module\nexports.exists = function (filename, callback) {\n if (typeof callback === 'function') {\n return fs.exists(filename, callback)\n }\n return new Promise(resolve => {\n return fs.exists(filename, resolve)\n })\n}\n\n// fs.read() & fs.write need special treatment due to multiple callback args\n\nexports.read = function (fd, buffer, offset, length, position, callback) {\n if (typeof callback === 'function') {\n return fs.read(fd, buffer, offset, length, position, callback)\n }\n return new Promise((resolve, reject) => {\n fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => {\n if (err) return reject(err)\n resolve({ bytesRead, buffer })\n })\n })\n}\n\n// Function signature can be\n// fs.write(fd, buffer[, offset[, length[, position]]], callback)\n// OR\n// fs.write(fd, string[, position[, encoding]], callback)\n// We need to handle both cases, so we use ...args\nexports.write = function (fd, buffer, ...args) {\n if (typeof args[args.length - 1] === 'function') {\n return fs.write(fd, buffer, ...args)\n }\n\n return new Promise((resolve, reject) => {\n fs.write(fd, buffer, ...args, (err, bytesWritten, buffer) => {\n if (err) return reject(err)\n resolve({ bytesWritten, buffer })\n })\n })\n}\n\n// fs.realpath.native only available in Node v9.2+\nif (typeof fs.realpath.native === 'function') {\n exports.realpath.native = u(fs.realpath.native)\n}\n","'use strict'\n\nmodule.exports = Object.assign(\n {},\n // Export promiseified graceful-fs:\n require('./fs'),\n // Export extra methods:\n require('./copy-sync'),\n require('./copy'),\n require('./empty'),\n require('./ensure'),\n require('./json'),\n require('./mkdirs'),\n require('./move-sync'),\n require('./move'),\n require('./output'),\n require('./path-exists'),\n require('./remove')\n)\n\n// Export fs.promises as a getter property so that we don't trigger\n// ExperimentalWarning before fs.promises is actually accessed.\nconst fs = require('fs')\nif (Object.getOwnPropertyDescriptor(fs, 'promises')) {\n Object.defineProperty(module.exports, 'promises', {\n get () { return fs.promises }\n })\n}\n","'use strict'\n\nconst u = require('universalify').fromCallback\nconst jsonFile = require('./jsonfile')\n\njsonFile.outputJson = u(require('./output-json'))\njsonFile.outputJsonSync = require('./output-json-sync')\n// aliases\njsonFile.outputJSON = jsonFile.outputJson\njsonFile.outputJSONSync = jsonFile.outputJsonSync\njsonFile.writeJSON = jsonFile.writeJson\njsonFile.writeJSONSync = jsonFile.writeJsonSync\njsonFile.readJSON = jsonFile.readJson\njsonFile.readJSONSync = jsonFile.readJsonSync\n\nmodule.exports = jsonFile\n","'use strict'\n\nconst u = require('universalify').fromCallback\nconst jsonFile = require('jsonfile')\n\nmodule.exports = {\n // jsonfile exports\n readJson: u(jsonFile.readFile),\n readJsonSync: jsonFile.readFileSync,\n writeJson: u(jsonFile.writeFile),\n writeJsonSync: jsonFile.writeFileSync\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst mkdir = require('../mkdirs')\nconst jsonFile = require('./jsonfile')\n\nfunction outputJsonSync (file, data, options) {\n const dir = path.dirname(file)\n\n if (!fs.existsSync(dir)) {\n mkdir.mkdirsSync(dir)\n }\n\n jsonFile.writeJsonSync(file, data, options)\n}\n\nmodule.exports = outputJsonSync\n","'use strict'\n\nconst path = require('path')\nconst mkdir = require('../mkdirs')\nconst pathExists = require('../path-exists').pathExists\nconst jsonFile = require('./jsonfile')\n\nfunction outputJson (file, data, options, callback) {\n if (typeof options === 'function') {\n callback = options\n options = {}\n }\n\n const dir = path.dirname(file)\n\n pathExists(dir, (err, itDoes) => {\n if (err) return callback(err)\n if (itDoes) return jsonFile.writeJson(file, data, options, callback)\n\n mkdir.mkdirs(dir, err => {\n if (err) return callback(err)\n jsonFile.writeJson(file, data, options, callback)\n })\n })\n}\n\nmodule.exports = outputJson\n","'use strict'\nconst u = require('universalify').fromCallback\nconst mkdirs = u(require('./mkdirs'))\nconst mkdirsSync = require('./mkdirs-sync')\n\nmodule.exports = {\n mkdirs,\n mkdirsSync,\n // alias\n mkdirp: mkdirs,\n mkdirpSync: mkdirsSync,\n ensureDir: mkdirs,\n ensureDirSync: mkdirsSync\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst invalidWin32Path = require('./win32').invalidWin32Path\n\nconst o777 = parseInt('0777', 8)\n\nfunction mkdirsSync (p, opts, made) {\n if (!opts || typeof opts !== 'object') {\n opts = { mode: opts }\n }\n\n let mode = opts.mode\n const xfs = opts.fs || fs\n\n if (process.platform === 'win32' && invalidWin32Path(p)) {\n const errInval = new Error(p + ' contains invalid WIN32 path characters.')\n errInval.code = 'EINVAL'\n throw errInval\n }\n\n if (mode === undefined) {\n mode = o777 & (~process.umask())\n }\n if (!made) made = null\n\n p = path.resolve(p)\n\n try {\n xfs.mkdirSync(p, mode)\n made = made || p\n } catch (err0) {\n if (err0.code === 'ENOENT') {\n if (path.dirname(p) === p) throw err0\n made = mkdirsSync(path.dirname(p), opts, made)\n mkdirsSync(p, opts, made)\n } else {\n // In the case of any other error, just see if there's a dir there\n // already. If so, then hooray! If not, then something is borked.\n let stat\n try {\n stat = xfs.statSync(p)\n } catch (err1) {\n throw err0\n }\n if (!stat.isDirectory()) throw err0\n }\n }\n\n return made\n}\n\nmodule.exports = mkdirsSync\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst invalidWin32Path = require('./win32').invalidWin32Path\n\nconst o777 = parseInt('0777', 8)\n\nfunction mkdirs (p, opts, callback, made) {\n if (typeof opts === 'function') {\n callback = opts\n opts = {}\n } else if (!opts || typeof opts !== 'object') {\n opts = { mode: opts }\n }\n\n if (process.platform === 'win32' && invalidWin32Path(p)) {\n const errInval = new Error(p + ' contains invalid WIN32 path characters.')\n errInval.code = 'EINVAL'\n return callback(errInval)\n }\n\n let mode = opts.mode\n const xfs = opts.fs || fs\n\n if (mode === undefined) {\n mode = o777 & (~process.umask())\n }\n if (!made) made = null\n\n callback = callback || function () {}\n p = path.resolve(p)\n\n xfs.mkdir(p, mode, er => {\n if (!er) {\n made = made || p\n return callback(null, made)\n }\n switch (er.code) {\n case 'ENOENT':\n if (path.dirname(p) === p) return callback(er)\n mkdirs(path.dirname(p), opts, (er, made) => {\n if (er) callback(er, made)\n else mkdirs(p, opts, callback, made)\n })\n break\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n xfs.stat(p, (er2, stat) => {\n // if the stat fails, then that's super weird.\n // let the original error be the failure reason.\n if (er2 || !stat.isDirectory()) callback(er, made)\n else callback(null, made)\n })\n break\n }\n })\n}\n\nmodule.exports = mkdirs\n","'use strict'\n\nconst path = require('path')\n\n// get drive on windows\nfunction getRootPath (p) {\n p = path.normalize(path.resolve(p)).split(path.sep)\n if (p.length > 0) return p[0]\n return null\n}\n\n// http://stackoverflow.com/a/62888/10333 contains more accurate\n// TODO: expand to include the rest\nconst INVALID_PATH_CHARS = /[<>:\"|?*]/\n\nfunction invalidWin32Path (p) {\n const rp = getRootPath(p)\n p = p.replace(rp, '')\n return INVALID_PATH_CHARS.test(p)\n}\n\nmodule.exports = {\n getRootPath,\n invalidWin32Path\n}\n","'use strict'\n\nmodule.exports = {\n moveSync: require('./move-sync')\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst copySync = require('../copy-sync').copySync\nconst removeSync = require('../remove').removeSync\nconst mkdirpSync = require('../mkdirs').mkdirpSync\nconst stat = require('../util/stat')\n\nfunction moveSync (src, dest, opts) {\n opts = opts || {}\n const overwrite = opts.overwrite || opts.clobber || false\n\n const { srcStat } = stat.checkPathsSync(src, dest, 'move')\n stat.checkParentPathsSync(src, srcStat, dest, 'move')\n mkdirpSync(path.dirname(dest))\n return doRename(src, dest, overwrite)\n}\n\nfunction doRename (src, dest, overwrite) {\n if (overwrite) {\n removeSync(dest)\n return rename(src, dest, overwrite)\n }\n if (fs.existsSync(dest)) throw new Error('dest already exists.')\n return rename(src, dest, overwrite)\n}\n\nfunction rename (src, dest, overwrite) {\n try {\n fs.renameSync(src, dest)\n } catch (err) {\n if (err.code !== 'EXDEV') throw err\n return moveAcrossDevice(src, dest, overwrite)\n }\n}\n\nfunction moveAcrossDevice (src, dest, overwrite) {\n const opts = {\n overwrite,\n errorOnExist: true\n }\n copySync(src, dest, opts)\n return removeSync(src)\n}\n\nmodule.exports = moveSync\n","'use strict'\n\nconst u = require('universalify').fromCallback\nmodule.exports = {\n move: u(require('./move'))\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst copy = require('../copy').copy\nconst remove = require('../remove').remove\nconst mkdirp = require('../mkdirs').mkdirp\nconst pathExists = require('../path-exists').pathExists\nconst stat = require('../util/stat')\n\nfunction move (src, dest, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts\n opts = {}\n }\n\n const overwrite = opts.overwrite || opts.clobber || false\n\n stat.checkPaths(src, dest, 'move', (err, stats) => {\n if (err) return cb(err)\n const { srcStat } = stats\n stat.checkParentPaths(src, srcStat, dest, 'move', err => {\n if (err) return cb(err)\n mkdirp(path.dirname(dest), err => {\n if (err) return cb(err)\n return doRename(src, dest, overwrite, cb)\n })\n })\n })\n}\n\nfunction doRename (src, dest, overwrite, cb) {\n if (overwrite) {\n return remove(dest, err => {\n if (err) return cb(err)\n return rename(src, dest, overwrite, cb)\n })\n }\n pathExists(dest, (err, destExists) => {\n if (err) return cb(err)\n if (destExists) return cb(new Error('dest already exists.'))\n return rename(src, dest, overwrite, cb)\n })\n}\n\nfunction rename (src, dest, overwrite, cb) {\n fs.rename(src, dest, err => {\n if (!err) return cb()\n if (err.code !== 'EXDEV') return cb(err)\n return moveAcrossDevice(src, dest, overwrite, cb)\n })\n}\n\nfunction moveAcrossDevice (src, dest, overwrite, cb) {\n const opts = {\n overwrite,\n errorOnExist: true\n }\n copy(src, dest, opts, err => {\n if (err) return cb(err)\n return remove(src, cb)\n })\n}\n\nmodule.exports = move\n","'use strict'\n\nconst u = require('universalify').fromCallback\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst mkdir = require('../mkdirs')\nconst pathExists = require('../path-exists').pathExists\n\nfunction outputFile (file, data, encoding, callback) {\n if (typeof encoding === 'function') {\n callback = encoding\n encoding = 'utf8'\n }\n\n const dir = path.dirname(file)\n pathExists(dir, (err, itDoes) => {\n if (err) return callback(err)\n if (itDoes) return fs.writeFile(file, data, encoding, callback)\n\n mkdir.mkdirs(dir, err => {\n if (err) return callback(err)\n\n fs.writeFile(file, data, encoding, callback)\n })\n })\n}\n\nfunction outputFileSync (file, ...args) {\n const dir = path.dirname(file)\n if (fs.existsSync(dir)) {\n return fs.writeFileSync(file, ...args)\n }\n mkdir.mkdirsSync(dir)\n fs.writeFileSync(file, ...args)\n}\n\nmodule.exports = {\n outputFile: u(outputFile),\n outputFileSync\n}\n","'use strict'\nconst u = require('universalify').fromPromise\nconst fs = require('../fs')\n\nfunction pathExists (path) {\n return fs.access(path).then(() => true).catch(() => false)\n}\n\nmodule.exports = {\n pathExists: u(pathExists),\n pathExistsSync: fs.existsSync\n}\n","'use strict'\n\nconst u = require('universalify').fromCallback\nconst rimraf = require('./rimraf')\n\nmodule.exports = {\n remove: u(rimraf),\n removeSync: rimraf.sync\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\nconst assert = require('assert')\n\nconst isWindows = (process.platform === 'win32')\n\nfunction defaults (options) {\n const methods = [\n 'unlink',\n 'chmod',\n 'stat',\n 'lstat',\n 'rmdir',\n 'readdir'\n ]\n methods.forEach(m => {\n options[m] = options[m] || fs[m]\n m = m + 'Sync'\n options[m] = options[m] || fs[m]\n })\n\n options.maxBusyTries = options.maxBusyTries || 3\n}\n\nfunction rimraf (p, options, cb) {\n let busyTries = 0\n\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n assert(p, 'rimraf: missing path')\n assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string')\n assert.strictEqual(typeof cb, 'function', 'rimraf: callback function required')\n assert(options, 'rimraf: invalid options argument provided')\n assert.strictEqual(typeof options, 'object', 'rimraf: options should be object')\n\n defaults(options)\n\n rimraf_(p, options, function CB (er) {\n if (er) {\n if ((er.code === 'EBUSY' || er.code === 'ENOTEMPTY' || er.code === 'EPERM') &&\n busyTries < options.maxBusyTries) {\n busyTries++\n const time = busyTries * 100\n // try again, with the same exact callback as this one.\n return setTimeout(() => rimraf_(p, options, CB), time)\n }\n\n // already gone\n if (er.code === 'ENOENT') er = null\n }\n\n cb(er)\n })\n}\n\n// Two possible strategies.\n// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR\n// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR\n//\n// Both result in an extra syscall when you guess wrong. However, there\n// are likely far more normal files in the world than directories. This\n// is based on the assumption that a the average number of files per\n// directory is >= 1.\n//\n// If anyone ever complains about this, then I guess the strategy could\n// be made configurable somehow. But until then, YAGNI.\nfunction rimraf_ (p, options, cb) {\n assert(p)\n assert(options)\n assert(typeof cb === 'function')\n\n // sunos lets the root user unlink directories, which is... weird.\n // so we have to lstat here and make sure it's not a dir.\n options.lstat(p, (er, st) => {\n if (er && er.code === 'ENOENT') {\n return cb(null)\n }\n\n // Windows can EPERM on stat. Life is suffering.\n if (er && er.code === 'EPERM' && isWindows) {\n return fixWinEPERM(p, options, er, cb)\n }\n\n if (st && st.isDirectory()) {\n return rmdir(p, options, er, cb)\n }\n\n options.unlink(p, er => {\n if (er) {\n if (er.code === 'ENOENT') {\n return cb(null)\n }\n if (er.code === 'EPERM') {\n return (isWindows)\n ? fixWinEPERM(p, options, er, cb)\n : rmdir(p, options, er, cb)\n }\n if (er.code === 'EISDIR') {\n return rmdir(p, options, er, cb)\n }\n }\n return cb(er)\n })\n })\n}\n\nfunction fixWinEPERM (p, options, er, cb) {\n assert(p)\n assert(options)\n assert(typeof cb === 'function')\n if (er) {\n assert(er instanceof Error)\n }\n\n options.chmod(p, 0o666, er2 => {\n if (er2) {\n cb(er2.code === 'ENOENT' ? null : er)\n } else {\n options.stat(p, (er3, stats) => {\n if (er3) {\n cb(er3.code === 'ENOENT' ? null : er)\n } else if (stats.isDirectory()) {\n rmdir(p, options, er, cb)\n } else {\n options.unlink(p, cb)\n }\n })\n }\n })\n}\n\nfunction fixWinEPERMSync (p, options, er) {\n let stats\n\n assert(p)\n assert(options)\n if (er) {\n assert(er instanceof Error)\n }\n\n try {\n options.chmodSync(p, 0o666)\n } catch (er2) {\n if (er2.code === 'ENOENT') {\n return\n } else {\n throw er\n }\n }\n\n try {\n stats = options.statSync(p)\n } catch (er3) {\n if (er3.code === 'ENOENT') {\n return\n } else {\n throw er\n }\n }\n\n if (stats.isDirectory()) {\n rmdirSync(p, options, er)\n } else {\n options.unlinkSync(p)\n }\n}\n\nfunction rmdir (p, options, originalEr, cb) {\n assert(p)\n assert(options)\n if (originalEr) {\n assert(originalEr instanceof Error)\n }\n assert(typeof cb === 'function')\n\n // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)\n // if we guessed wrong, and it's not a directory, then\n // raise the original error.\n options.rmdir(p, er => {\n if (er && (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM')) {\n rmkids(p, options, cb)\n } else if (er && er.code === 'ENOTDIR') {\n cb(originalEr)\n } else {\n cb(er)\n }\n })\n}\n\nfunction rmkids (p, options, cb) {\n assert(p)\n assert(options)\n assert(typeof cb === 'function')\n\n options.readdir(p, (er, files) => {\n if (er) return cb(er)\n\n let n = files.length\n let errState\n\n if (n === 0) return options.rmdir(p, cb)\n\n files.forEach(f => {\n rimraf(path.join(p, f), options, er => {\n if (errState) {\n return\n }\n if (er) return cb(errState = er)\n if (--n === 0) {\n options.rmdir(p, cb)\n }\n })\n })\n })\n}\n\n// this looks simpler, and is strictly *faster*, but will\n// tie up the JavaScript thread and fail on excessively\n// deep directory trees.\nfunction rimrafSync (p, options) {\n let st\n\n options = options || {}\n defaults(options)\n\n assert(p, 'rimraf: missing path')\n assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string')\n assert(options, 'rimraf: missing options')\n assert.strictEqual(typeof options, 'object', 'rimraf: options should be object')\n\n try {\n st = options.lstatSync(p)\n } catch (er) {\n if (er.code === 'ENOENT') {\n return\n }\n\n // Windows can EPERM on stat. Life is suffering.\n if (er.code === 'EPERM' && isWindows) {\n fixWinEPERMSync(p, options, er)\n }\n }\n\n try {\n // sunos lets the root user unlink directories, which is... weird.\n if (st && st.isDirectory()) {\n rmdirSync(p, options, null)\n } else {\n options.unlinkSync(p)\n }\n } catch (er) {\n if (er.code === 'ENOENT') {\n return\n } else if (er.code === 'EPERM') {\n return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er)\n } else if (er.code !== 'EISDIR') {\n throw er\n }\n rmdirSync(p, options, er)\n }\n}\n\nfunction rmdirSync (p, options, originalEr) {\n assert(p)\n assert(options)\n if (originalEr) {\n assert(originalEr instanceof Error)\n }\n\n try {\n options.rmdirSync(p)\n } catch (er) {\n if (er.code === 'ENOTDIR') {\n throw originalEr\n } else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') {\n rmkidsSync(p, options)\n } else if (er.code !== 'ENOENT') {\n throw er\n }\n }\n}\n\nfunction rmkidsSync (p, options) {\n assert(p)\n assert(options)\n options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options))\n\n if (isWindows) {\n // We only end up here once we got ENOTEMPTY at least once, and\n // at this point, we are guaranteed to have removed all the kids.\n // So, we know that it won't be ENOENT or ENOTDIR or anything else.\n // try really hard to delete stuff on windows, because it has a\n // PROFOUNDLY annoying habit of not closing handles promptly when\n // files are deleted, resulting in spurious ENOTEMPTY errors.\n const startTime = Date.now()\n do {\n try {\n const ret = options.rmdirSync(p, options)\n return ret\n } catch (er) { }\n } while (Date.now() - startTime < 500) // give up after 500ms\n } else {\n const ret = options.rmdirSync(p, options)\n return ret\n }\n}\n\nmodule.exports = rimraf\nrimraf.sync = rimrafSync\n","'use strict'\n/* eslint-disable node/no-deprecated-api */\nmodule.exports = function (size) {\n if (typeof Buffer.allocUnsafe === 'function') {\n try {\n return Buffer.allocUnsafe(size)\n } catch (e) {\n return new Buffer(size)\n }\n }\n return new Buffer(size)\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst path = require('path')\n\nconst NODE_VERSION_MAJOR_WITH_BIGINT = 10\nconst NODE_VERSION_MINOR_WITH_BIGINT = 5\nconst NODE_VERSION_PATCH_WITH_BIGINT = 0\nconst nodeVersion = process.versions.node.split('.')\nconst nodeVersionMajor = Number.parseInt(nodeVersion[0], 10)\nconst nodeVersionMinor = Number.parseInt(nodeVersion[1], 10)\nconst nodeVersionPatch = Number.parseInt(nodeVersion[2], 10)\n\nfunction nodeSupportsBigInt () {\n if (nodeVersionMajor > NODE_VERSION_MAJOR_WITH_BIGINT) {\n return true\n } else if (nodeVersionMajor === NODE_VERSION_MAJOR_WITH_BIGINT) {\n if (nodeVersionMinor > NODE_VERSION_MINOR_WITH_BIGINT) {\n return true\n } else if (nodeVersionMinor === NODE_VERSION_MINOR_WITH_BIGINT) {\n if (nodeVersionPatch >= NODE_VERSION_PATCH_WITH_BIGINT) {\n return true\n }\n }\n }\n return false\n}\n\nfunction getStats (src, dest, cb) {\n if (nodeSupportsBigInt()) {\n fs.stat(src, { bigint: true }, (err, srcStat) => {\n if (err) return cb(err)\n fs.stat(dest, { bigint: true }, (err, destStat) => {\n if (err) {\n if (err.code === 'ENOENT') return cb(null, { srcStat, destStat: null })\n return cb(err)\n }\n return cb(null, { srcStat, destStat })\n })\n })\n } else {\n fs.stat(src, (err, srcStat) => {\n if (err) return cb(err)\n fs.stat(dest, (err, destStat) => {\n if (err) {\n if (err.code === 'ENOENT') return cb(null, { srcStat, destStat: null })\n return cb(err)\n }\n return cb(null, { srcStat, destStat })\n })\n })\n }\n}\n\nfunction getStatsSync (src, dest) {\n let srcStat, destStat\n if (nodeSupportsBigInt()) {\n srcStat = fs.statSync(src, { bigint: true })\n } else {\n srcStat = fs.statSync(src)\n }\n try {\n if (nodeSupportsBigInt()) {\n destStat = fs.statSync(dest, { bigint: true })\n } else {\n destStat = fs.statSync(dest)\n }\n } catch (err) {\n if (err.code === 'ENOENT') return { srcStat, destStat: null }\n throw err\n }\n return { srcStat, destStat }\n}\n\nfunction checkPaths (src, dest, funcName, cb) {\n getStats(src, dest, (err, stats) => {\n if (err) return cb(err)\n const { srcStat, destStat } = stats\n if (destStat && destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) {\n return cb(new Error('Source and destination must not be the same.'))\n }\n if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {\n return cb(new Error(errMsg(src, dest, funcName)))\n }\n return cb(null, { srcStat, destStat })\n })\n}\n\nfunction checkPathsSync (src, dest, funcName) {\n const { srcStat, destStat } = getStatsSync(src, dest)\n if (destStat && destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) {\n throw new Error('Source and destination must not be the same.')\n }\n if (srcStat.isDirectory() && isSrcSubdir(src, dest)) {\n throw new Error(errMsg(src, dest, funcName))\n }\n return { srcStat, destStat }\n}\n\n// recursively check if dest parent is a subdirectory of src.\n// It works for all file types including symlinks since it\n// checks the src and dest inodes. It starts from the deepest\n// parent and stops once it reaches the src parent or the root path.\nfunction checkParentPaths (src, srcStat, dest, funcName, cb) {\n const srcParent = path.resolve(path.dirname(src))\n const destParent = path.resolve(path.dirname(dest))\n if (destParent === srcParent || destParent === path.parse(destParent).root) return cb()\n if (nodeSupportsBigInt()) {\n fs.stat(destParent, { bigint: true }, (err, destStat) => {\n if (err) {\n if (err.code === 'ENOENT') return cb()\n return cb(err)\n }\n if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) {\n return cb(new Error(errMsg(src, dest, funcName)))\n }\n return checkParentPaths(src, srcStat, destParent, funcName, cb)\n })\n } else {\n fs.stat(destParent, (err, destStat) => {\n if (err) {\n if (err.code === 'ENOENT') return cb()\n return cb(err)\n }\n if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) {\n return cb(new Error(errMsg(src, dest, funcName)))\n }\n return checkParentPaths(src, srcStat, destParent, funcName, cb)\n })\n }\n}\n\nfunction checkParentPathsSync (src, srcStat, dest, funcName) {\n const srcParent = path.resolve(path.dirname(src))\n const destParent = path.resolve(path.dirname(dest))\n if (destParent === srcParent || destParent === path.parse(destParent).root) return\n let destStat\n try {\n if (nodeSupportsBigInt()) {\n destStat = fs.statSync(destParent, { bigint: true })\n } else {\n destStat = fs.statSync(destParent)\n }\n } catch (err) {\n if (err.code === 'ENOENT') return\n throw err\n }\n if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) {\n throw new Error(errMsg(src, dest, funcName))\n }\n return checkParentPathsSync(src, srcStat, destParent, funcName)\n}\n\n// return true if dest is a subdir of src, otherwise false.\n// It only checks the path strings.\nfunction isSrcSubdir (src, dest) {\n const srcArr = path.resolve(src).split(path.sep).filter(i => i)\n const destArr = path.resolve(dest).split(path.sep).filter(i => i)\n return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true)\n}\n\nfunction errMsg (src, dest, funcName) {\n return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`\n}\n\nmodule.exports = {\n checkPaths,\n checkPathsSync,\n checkParentPaths,\n checkParentPathsSync,\n isSrcSubdir\n}\n","'use strict'\n\nconst fs = require('graceful-fs')\nconst os = require('os')\nconst path = require('path')\n\n// HFS, ext{2,3}, FAT do not, Node.js v0.10 does not\nfunction hasMillisResSync () {\n let tmpfile = path.join('millis-test-sync' + Date.now().toString() + Math.random().toString().slice(2))\n tmpfile = path.join(os.tmpdir(), tmpfile)\n\n // 550 millis past UNIX epoch\n const d = new Date(1435410243862)\n fs.writeFileSync(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141')\n const fd = fs.openSync(tmpfile, 'r+')\n fs.futimesSync(fd, d, d)\n fs.closeSync(fd)\n return fs.statSync(tmpfile).mtime > 1435410243000\n}\n\nfunction hasMillisRes (callback) {\n let tmpfile = path.join('millis-test' + Date.now().toString() + Math.random().toString().slice(2))\n tmpfile = path.join(os.tmpdir(), tmpfile)\n\n // 550 millis past UNIX epoch\n const d = new Date(1435410243862)\n fs.writeFile(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141', err => {\n if (err) return callback(err)\n fs.open(tmpfile, 'r+', (err, fd) => {\n if (err) return callback(err)\n fs.futimes(fd, d, d, err => {\n if (err) return callback(err)\n fs.close(fd, err => {\n if (err) return callback(err)\n fs.stat(tmpfile, (err, stats) => {\n if (err) return callback(err)\n callback(null, stats.mtime > 1435410243000)\n })\n })\n })\n })\n })\n}\n\nfunction timeRemoveMillis (timestamp) {\n if (typeof timestamp === 'number') {\n return Math.floor(timestamp / 1000) * 1000\n } else if (timestamp instanceof Date) {\n return new Date(Math.floor(timestamp.getTime() / 1000) * 1000)\n } else {\n throw new Error('fs-extra: timeRemoveMillis() unknown parameter type')\n }\n}\n\nfunction utimesMillis (path, atime, mtime, callback) {\n // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback)\n fs.open(path, 'r+', (err, fd) => {\n if (err) return callback(err)\n fs.futimes(fd, atime, mtime, futimesErr => {\n fs.close(fd, closeErr => {\n if (callback) callback(futimesErr || closeErr)\n })\n })\n })\n}\n\nfunction utimesMillisSync (path, atime, mtime) {\n const fd = fs.openSync(path, 'r+')\n fs.futimesSync(fd, atime, mtime)\n return fs.closeSync(fd)\n}\n\nmodule.exports = {\n hasMillisRes,\n hasMillisResSync,\n timeRemoveMillis,\n utimesMillis,\n utimesMillisSync\n}\n","'use strict'\n\nmodule.exports = clone\n\nvar getPrototypeOf = Object.getPrototypeOf || function (obj) {\n return obj.__proto__\n}\n\nfunction clone (obj) {\n if (obj === null || typeof obj !== 'object')\n return obj\n\n if (obj instanceof Object)\n var copy = { __proto__: getPrototypeOf(obj) }\n else\n var copy = Object.create(null)\n\n Object.getOwnPropertyNames(obj).forEach(function (key) {\n Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))\n })\n\n return copy\n}\n","var fs = require('fs')\nvar polyfills = require('./polyfills.js')\nvar legacy = require('./legacy-streams.js')\nvar clone = require('./clone.js')\n\nvar util = require('util')\n\n/* istanbul ignore next - node 0.x polyfill */\nvar gracefulQueue\nvar previousSymbol\n\n/* istanbul ignore else - node 0.x polyfill */\nif (typeof Symbol === 'function' && typeof Symbol.for === 'function') {\n gracefulQueue = Symbol.for('graceful-fs.queue')\n // This is used in testing by future versions\n previousSymbol = Symbol.for('graceful-fs.previous')\n} else {\n gracefulQueue = '___graceful-fs.queue'\n previousSymbol = '___graceful-fs.previous'\n}\n\nfunction noop () {}\n\nfunction publishQueue(context, queue) {\n Object.defineProperty(context, gracefulQueue, {\n get: function() {\n return queue\n }\n })\n}\n\nvar debug = noop\nif (util.debuglog)\n debug = util.debuglog('gfs4')\nelse if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || ''))\n debug = function() {\n var m = util.format.apply(util, arguments)\n m = 'GFS4: ' + m.split(/\\n/).join('\\nGFS4: ')\n console.error(m)\n }\n\n// Once time initialization\nif (!fs[gracefulQueue]) {\n // This queue can be shared by multiple loaded instances\n var queue = global[gracefulQueue] || []\n publishQueue(fs, queue)\n\n // Patch fs.close/closeSync to shared queue version, because we need\n // to retry() whenever a close happens *anywhere* in the program.\n // This is essential when multiple graceful-fs instances are\n // in play at the same time.\n fs.close = (function (fs$close) {\n function close (fd, cb) {\n return fs$close.call(fs, fd, function (err) {\n // This function uses the graceful-fs shared queue\n if (!err) {\n resetQueue()\n }\n\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n })\n }\n\n Object.defineProperty(close, previousSymbol, {\n value: fs$close\n })\n return close\n })(fs.close)\n\n fs.closeSync = (function (fs$closeSync) {\n function closeSync (fd) {\n // This function uses the graceful-fs shared queue\n fs$closeSync.apply(fs, arguments)\n resetQueue()\n }\n\n Object.defineProperty(closeSync, previousSymbol, {\n value: fs$closeSync\n })\n return closeSync\n })(fs.closeSync)\n\n if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || '')) {\n process.on('exit', function() {\n debug(fs[gracefulQueue])\n require('assert').equal(fs[gracefulQueue].length, 0)\n })\n }\n}\n\nif (!global[gracefulQueue]) {\n publishQueue(global, fs[gracefulQueue]);\n}\n\nmodule.exports = patch(clone(fs))\nif (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {\n module.exports = patch(fs)\n fs.__patched = true;\n}\n\nfunction patch (fs) {\n // Everything that references the open() function needs to be in here\n polyfills(fs)\n fs.gracefulify = patch\n\n fs.createReadStream = createReadStream\n fs.createWriteStream = createWriteStream\n var fs$readFile = fs.readFile\n fs.readFile = readFile\n function readFile (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$readFile(path, options, cb)\n\n function go$readFile (path, options, cb, startTime) {\n return fs$readFile(path, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$writeFile = fs.writeFile\n fs.writeFile = writeFile\n function writeFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$writeFile(path, data, options, cb)\n\n function go$writeFile (path, data, options, cb, startTime) {\n return fs$writeFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$appendFile = fs.appendFile\n if (fs$appendFile)\n fs.appendFile = appendFile\n function appendFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$appendFile(path, data, options, cb)\n\n function go$appendFile (path, data, options, cb, startTime) {\n return fs$appendFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$copyFile = fs.copyFile\n if (fs$copyFile)\n fs.copyFile = copyFile\n function copyFile (src, dest, flags, cb) {\n if (typeof flags === 'function') {\n cb = flags\n flags = 0\n }\n return go$copyFile(src, dest, flags, cb)\n\n function go$copyFile (src, dest, flags, cb, startTime) {\n return fs$copyFile(src, dest, flags, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$readdir = fs.readdir\n fs.readdir = readdir\n var noReaddirOptionVersions = /^v[0-5]\\./\n function readdir (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n var go$readdir = noReaddirOptionVersions.test(process.version)\n ? function go$readdir (path, options, cb, startTime) {\n return fs$readdir(path, fs$readdirCallback(\n path, options, cb, startTime\n ))\n }\n : function go$readdir (path, options, cb, startTime) {\n return fs$readdir(path, options, fs$readdirCallback(\n path, options, cb, startTime\n ))\n }\n\n return go$readdir(path, options, cb)\n\n function fs$readdirCallback (path, options, cb, startTime) {\n return function (err, files) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([\n go$readdir,\n [path, options, cb],\n err,\n startTime || Date.now(),\n Date.now()\n ])\n else {\n if (files && files.sort)\n files.sort()\n\n if (typeof cb === 'function')\n cb.call(this, err, files)\n }\n }\n }\n }\n\n if (process.version.substr(0, 4) === 'v0.8') {\n var legStreams = legacy(fs)\n ReadStream = legStreams.ReadStream\n WriteStream = legStreams.WriteStream\n }\n\n var fs$ReadStream = fs.ReadStream\n if (fs$ReadStream) {\n ReadStream.prototype = Object.create(fs$ReadStream.prototype)\n ReadStream.prototype.open = ReadStream$open\n }\n\n var fs$WriteStream = fs.WriteStream\n if (fs$WriteStream) {\n WriteStream.prototype = Object.create(fs$WriteStream.prototype)\n WriteStream.prototype.open = WriteStream$open\n }\n\n Object.defineProperty(fs, 'ReadStream', {\n get: function () {\n return ReadStream\n },\n set: function (val) {\n ReadStream = val\n },\n enumerable: true,\n configurable: true\n })\n Object.defineProperty(fs, 'WriteStream', {\n get: function () {\n return WriteStream\n },\n set: function (val) {\n WriteStream = val\n },\n enumerable: true,\n configurable: true\n })\n\n // legacy names\n var FileReadStream = ReadStream\n Object.defineProperty(fs, 'FileReadStream', {\n get: function () {\n return FileReadStream\n },\n set: function (val) {\n FileReadStream = val\n },\n enumerable: true,\n configurable: true\n })\n var FileWriteStream = WriteStream\n Object.defineProperty(fs, 'FileWriteStream', {\n get: function () {\n return FileWriteStream\n },\n set: function (val) {\n FileWriteStream = val\n },\n enumerable: true,\n configurable: true\n })\n\n function ReadStream (path, options) {\n if (this instanceof ReadStream)\n return fs$ReadStream.apply(this, arguments), this\n else\n return ReadStream.apply(Object.create(ReadStream.prototype), arguments)\n }\n\n function ReadStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n if (that.autoClose)\n that.destroy()\n\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n that.read()\n }\n })\n }\n\n function WriteStream (path, options) {\n if (this instanceof WriteStream)\n return fs$WriteStream.apply(this, arguments), this\n else\n return WriteStream.apply(Object.create(WriteStream.prototype), arguments)\n }\n\n function WriteStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n that.destroy()\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n }\n })\n }\n\n function createReadStream (path, options) {\n return new fs.ReadStream(path, options)\n }\n\n function createWriteStream (path, options) {\n return new fs.WriteStream(path, options)\n }\n\n var fs$open = fs.open\n fs.open = open\n function open (path, flags, mode, cb) {\n if (typeof mode === 'function')\n cb = mode, mode = null\n\n return go$open(path, flags, mode, cb)\n\n function go$open (path, flags, mode, cb, startTime) {\n return fs$open(path, flags, mode, function (err, fd) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n return fs\n}\n\nfunction enqueue (elem) {\n debug('ENQUEUE', elem[0].name, elem[1])\n fs[gracefulQueue].push(elem)\n retry()\n}\n\n// keep track of the timeout between retry() calls\nvar retryTimer\n\n// reset the startTime and lastTime to now\n// this resets the start of the 60 second overall timeout as well as the\n// delay between attempts so that we'll retry these jobs sooner\nfunction resetQueue () {\n var now = Date.now()\n for (var i = 0; i < fs[gracefulQueue].length; ++i) {\n // entries that are only a length of 2 are from an older version, don't\n // bother modifying those since they'll be retried anyway.\n if (fs[gracefulQueue][i].length > 2) {\n fs[gracefulQueue][i][3] = now // startTime\n fs[gracefulQueue][i][4] = now // lastTime\n }\n }\n // call retry to make sure we're actively processing the queue\n retry()\n}\n\nfunction retry () {\n // clear the timer and remove it to help prevent unintended concurrency\n clearTimeout(retryTimer)\n retryTimer = undefined\n\n if (fs[gracefulQueue].length === 0)\n return\n\n var elem = fs[gracefulQueue].shift()\n var fn = elem[0]\n var args = elem[1]\n // these items may be unset if they were added by an older graceful-fs\n var err = elem[2]\n var startTime = elem[3]\n var lastTime = elem[4]\n\n // if we don't have a startTime we have no way of knowing if we've waited\n // long enough, so go ahead and retry this item now\n if (startTime === undefined) {\n debug('RETRY', fn.name, args)\n fn.apply(null, args)\n } else if (Date.now() - startTime >= 60000) {\n // it's been more than 60 seconds total, bail now\n debug('TIMEOUT', fn.name, args)\n var cb = args.pop()\n if (typeof cb === 'function')\n cb.call(null, err)\n } else {\n // the amount of time between the last attempt and right now\n var sinceAttempt = Date.now() - lastTime\n // the amount of time between when we first tried, and when we last tried\n // rounded up to at least 1\n var sinceStart = Math.max(lastTime - startTime, 1)\n // backoff. wait longer than the total time we've been retrying, but only\n // up to a maximum of 100ms\n var desiredDelay = Math.min(sinceStart * 1.2, 100)\n // it's been long enough since the last retry, do it again\n if (sinceAttempt >= desiredDelay) {\n debug('RETRY', fn.name, args)\n fn.apply(null, args.concat([startTime]))\n } else {\n // if we can't do this job yet, push it to the end of the queue\n // and let the next iteration check again\n fs[gracefulQueue].push(elem)\n }\n }\n\n // schedule our next run if one isn't already scheduled\n if (retryTimer === undefined) {\n retryTimer = setTimeout(retry, 0)\n }\n}\n","var Stream = require('stream').Stream\n\nmodule.exports = legacy\n\nfunction legacy (fs) {\n return {\n ReadStream: ReadStream,\n WriteStream: WriteStream\n }\n\n function ReadStream (path, options) {\n if (!(this instanceof ReadStream)) return new ReadStream(path, options);\n\n Stream.call(this);\n\n var self = this;\n\n this.path = path;\n this.fd = null;\n this.readable = true;\n this.paused = false;\n\n this.flags = 'r';\n this.mode = 438; /*=0666*/\n this.bufferSize = 64 * 1024;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.encoding) this.setEncoding(this.encoding);\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.end === undefined) {\n this.end = Infinity;\n } else if ('number' !== typeof this.end) {\n throw TypeError('end must be a Number');\n }\n\n if (this.start > this.end) {\n throw new Error('start must be <= end');\n }\n\n this.pos = this.start;\n }\n\n if (this.fd !== null) {\n process.nextTick(function() {\n self._read();\n });\n return;\n }\n\n fs.open(this.path, this.flags, this.mode, function (err, fd) {\n if (err) {\n self.emit('error', err);\n self.readable = false;\n return;\n }\n\n self.fd = fd;\n self.emit('open', fd);\n self._read();\n })\n }\n\n function WriteStream (path, options) {\n if (!(this instanceof WriteStream)) return new WriteStream(path, options);\n\n Stream.call(this);\n\n this.path = path;\n this.fd = null;\n this.writable = true;\n\n this.flags = 'w';\n this.encoding = 'binary';\n this.mode = 438; /*=0666*/\n this.bytesWritten = 0;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.start < 0) {\n throw new Error('start must be >= zero');\n }\n\n this.pos = this.start;\n }\n\n this.busy = false;\n this._queue = [];\n\n if (this.fd === null) {\n this._open = fs.open;\n this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);\n this.flush();\n }\n }\n}\n","var constants = require('constants')\n\nvar origCwd = process.cwd\nvar cwd = null\n\nvar platform = process.env.GRACEFUL_FS_PLATFORM || process.platform\n\nprocess.cwd = function() {\n if (!cwd)\n cwd = origCwd.call(process)\n return cwd\n}\ntry {\n process.cwd()\n} catch (er) {}\n\n// This check is needed until node.js 12 is required\nif (typeof process.chdir === 'function') {\n var chdir = process.chdir\n process.chdir = function (d) {\n cwd = null\n chdir.call(process, d)\n }\n if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)\n}\n\nmodule.exports = patch\n\nfunction patch (fs) {\n // (re-)implement some things that are known busted or missing.\n\n // lchmod, broken prior to 0.6.2\n // back-port the fix here.\n if (constants.hasOwnProperty('O_SYMLINK') &&\n process.version.match(/^v0\\.6\\.[0-2]|^v0\\.5\\./)) {\n patchLchmod(fs)\n }\n\n // lutimes implementation, or no-op\n if (!fs.lutimes) {\n patchLutimes(fs)\n }\n\n // https://github.com/isaacs/node-graceful-fs/issues/4\n // Chown should not fail on einval or eperm if non-root.\n // It should not fail on enosys ever, as this just indicates\n // that a fs doesn't support the intended operation.\n\n fs.chown = chownFix(fs.chown)\n fs.fchown = chownFix(fs.fchown)\n fs.lchown = chownFix(fs.lchown)\n\n fs.chmod = chmodFix(fs.chmod)\n fs.fchmod = chmodFix(fs.fchmod)\n fs.lchmod = chmodFix(fs.lchmod)\n\n fs.chownSync = chownFixSync(fs.chownSync)\n fs.fchownSync = chownFixSync(fs.fchownSync)\n fs.lchownSync = chownFixSync(fs.lchownSync)\n\n fs.chmodSync = chmodFixSync(fs.chmodSync)\n fs.fchmodSync = chmodFixSync(fs.fchmodSync)\n fs.lchmodSync = chmodFixSync(fs.lchmodSync)\n\n fs.stat = statFix(fs.stat)\n fs.fstat = statFix(fs.fstat)\n fs.lstat = statFix(fs.lstat)\n\n fs.statSync = statFixSync(fs.statSync)\n fs.fstatSync = statFixSync(fs.fstatSync)\n fs.lstatSync = statFixSync(fs.lstatSync)\n\n // if lchmod/lchown do not exist, then make them no-ops\n if (fs.chmod && !fs.lchmod) {\n fs.lchmod = function (path, mode, cb) {\n if (cb) process.nextTick(cb)\n }\n fs.lchmodSync = function () {}\n }\n if (fs.chown && !fs.lchown) {\n fs.lchown = function (path, uid, gid, cb) {\n if (cb) process.nextTick(cb)\n }\n fs.lchownSync = function () {}\n }\n\n // on Windows, A/V software can lock the directory, causing this\n // to fail with an EACCES or EPERM if the directory contains newly\n // created files. Try again on failure, for up to 60 seconds.\n\n // Set the timeout this long because some Windows Anti-Virus, such as Parity\n // bit9, may lock files for up to a minute, causing npm package install\n // failures. Also, take care to yield the scheduler. Windows scheduling gives\n // CPU to a busy looping process, which can cause the program causing the lock\n // contention to be starved of CPU by node, so the contention doesn't resolve.\n if (platform === \"win32\") {\n fs.rename = typeof fs.rename !== 'function' ? fs.rename\n : (function (fs$rename) {\n function rename (from, to, cb) {\n var start = Date.now()\n var backoff = 0;\n fs$rename(from, to, function CB (er) {\n if (er\n && (er.code === \"EACCES\" || er.code === \"EPERM\" || er.code === \"EBUSY\")\n && Date.now() - start < 60000) {\n setTimeout(function() {\n fs.stat(to, function (stater, st) {\n if (stater && stater.code === \"ENOENT\")\n fs$rename(from, to, CB);\n else\n cb(er)\n })\n }, backoff)\n if (backoff < 100)\n backoff += 10;\n return;\n }\n if (cb) cb(er)\n })\n }\n if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename)\n return rename\n })(fs.rename)\n }\n\n // if read() returns EAGAIN, then just try it again.\n fs.read = typeof fs.read !== 'function' ? fs.read\n : (function (fs$read) {\n function read (fd, buffer, offset, length, position, callback_) {\n var callback\n if (callback_ && typeof callback_ === 'function') {\n var eagCounter = 0\n callback = function (er, _, __) {\n if (er && er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n callback_.apply(this, arguments)\n }\n }\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n\n // This ensures `util.promisify` works as it does for native `fs.read`.\n if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)\n return read\n })(fs.read)\n\n fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync\n : (function (fs$readSync) { return function (fd, buffer, offset, length, position) {\n var eagCounter = 0\n while (true) {\n try {\n return fs$readSync.call(fs, fd, buffer, offset, length, position)\n } catch (er) {\n if (er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n continue\n }\n throw er\n }\n }\n }})(fs.readSync)\n\n function patchLchmod (fs) {\n fs.lchmod = function (path, mode, callback) {\n fs.open( path\n , constants.O_WRONLY | constants.O_SYMLINK\n , mode\n , function (err, fd) {\n if (err) {\n if (callback) callback(err)\n return\n }\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n fs.fchmod(fd, mode, function (err) {\n fs.close(fd, function(err2) {\n if (callback) callback(err || err2)\n })\n })\n })\n }\n\n fs.lchmodSync = function (path, mode) {\n var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)\n\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n var threw = true\n var ret\n try {\n ret = fs.fchmodSync(fd, mode)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n }\n\n function patchLutimes (fs) {\n if (constants.hasOwnProperty(\"O_SYMLINK\") && fs.futimes) {\n fs.lutimes = function (path, at, mt, cb) {\n fs.open(path, constants.O_SYMLINK, function (er, fd) {\n if (er) {\n if (cb) cb(er)\n return\n }\n fs.futimes(fd, at, mt, function (er) {\n fs.close(fd, function (er2) {\n if (cb) cb(er || er2)\n })\n })\n })\n }\n\n fs.lutimesSync = function (path, at, mt) {\n var fd = fs.openSync(path, constants.O_SYMLINK)\n var ret\n var threw = true\n try {\n ret = fs.futimesSync(fd, at, mt)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n\n } else if (fs.futimes) {\n fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }\n fs.lutimesSync = function () {}\n }\n }\n\n function chmodFix (orig) {\n if (!orig) return orig\n return function (target, mode, cb) {\n return orig.call(fs, target, mode, function (er) {\n if (chownErOk(er)) er = null\n if (cb) cb.apply(this, arguments)\n })\n }\n }\n\n function chmodFixSync (orig) {\n if (!orig) return orig\n return function (target, mode) {\n try {\n return orig.call(fs, target, mode)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n }\n\n\n function chownFix (orig) {\n if (!orig) return orig\n return function (target, uid, gid, cb) {\n return orig.call(fs, target, uid, gid, function (er) {\n if (chownErOk(er)) er = null\n if (cb) cb.apply(this, arguments)\n })\n }\n }\n\n function chownFixSync (orig) {\n if (!orig) return orig\n return function (target, uid, gid) {\n try {\n return orig.call(fs, target, uid, gid)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n }\n\n function statFix (orig) {\n if (!orig) return orig\n // Older versions of Node erroneously returned signed integers for\n // uid + gid.\n return function (target, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = null\n }\n function callback (er, stats) {\n if (stats) {\n if (stats.uid < 0) stats.uid += 0x100000000\n if (stats.gid < 0) stats.gid += 0x100000000\n }\n if (cb) cb.apply(this, arguments)\n }\n return options ? orig.call(fs, target, options, callback)\n : orig.call(fs, target, callback)\n }\n }\n\n function statFixSync (orig) {\n if (!orig) return orig\n // Older versions of Node erroneously returned signed integers for\n // uid + gid.\n return function (target, options) {\n var stats = options ? orig.call(fs, target, options)\n : orig.call(fs, target)\n if (stats) {\n if (stats.uid < 0) stats.uid += 0x100000000\n if (stats.gid < 0) stats.gid += 0x100000000\n }\n return stats;\n }\n }\n\n // ENOSYS means that the fs doesn't support the op. Just ignore\n // that, because it doesn't matter.\n //\n // if there's no getuid, or if getuid() is something other\n // than 0, and the error is EINVAL or EPERM, then just ignore\n // it.\n //\n // This specific case is a silent failure in cp, install, tar,\n // and most other unix tools that manage permissions.\n //\n // When running as root, or if other types of errors are\n // encountered, then it's strict.\n function chownErOk (er) {\n if (!er)\n return true\n\n if (er.code === \"ENOSYS\")\n return true\n\n var nonroot = !process.getuid || process.getuid() !== 0\n if (nonroot) {\n if (er.code === \"EINVAL\" || er.code === \"EPERM\")\n return true\n }\n\n return false\n }\n}\n","'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n","var _fs\ntry {\n _fs = require('graceful-fs')\n} catch (_) {\n _fs = require('fs')\n}\n\nfunction readFile (file, options, callback) {\n if (callback == null) {\n callback = options\n options = {}\n }\n\n if (typeof options === 'string') {\n options = {encoding: options}\n }\n\n options = options || {}\n var fs = options.fs || _fs\n\n var shouldThrow = true\n if ('throws' in options) {\n shouldThrow = options.throws\n }\n\n fs.readFile(file, options, function (err, data) {\n if (err) return callback(err)\n\n data = stripBom(data)\n\n var obj\n try {\n obj = JSON.parse(data, options ? options.reviver : null)\n } catch (err2) {\n if (shouldThrow) {\n err2.message = file + ': ' + err2.message\n return callback(err2)\n } else {\n return callback(null, null)\n }\n }\n\n callback(null, obj)\n })\n}\n\nfunction readFileSync (file, options) {\n options = options || {}\n if (typeof options === 'string') {\n options = {encoding: options}\n }\n\n var fs = options.fs || _fs\n\n var shouldThrow = true\n if ('throws' in options) {\n shouldThrow = options.throws\n }\n\n try {\n var content = fs.readFileSync(file, options)\n content = stripBom(content)\n return JSON.parse(content, options.reviver)\n } catch (err) {\n if (shouldThrow) {\n err.message = file + ': ' + err.message\n throw err\n } else {\n return null\n }\n }\n}\n\nfunction stringify (obj, options) {\n var spaces\n var EOL = '\\n'\n if (typeof options === 'object' && options !== null) {\n if (options.spaces) {\n spaces = options.spaces\n }\n if (options.EOL) {\n EOL = options.EOL\n }\n }\n\n var str = JSON.stringify(obj, options ? options.replacer : null, spaces)\n\n return str.replace(/\\n/g, EOL) + EOL\n}\n\nfunction writeFile (file, obj, options, callback) {\n if (callback == null) {\n callback = options\n options = {}\n }\n options = options || {}\n var fs = options.fs || _fs\n\n var str = ''\n try {\n str = stringify(obj, options)\n } catch (err) {\n // Need to return whether a callback was passed or not\n if (callback) callback(err, null)\n return\n }\n\n fs.writeFile(file, str, options, callback)\n}\n\nfunction writeFileSync (file, obj, options) {\n options = options || {}\n var fs = options.fs || _fs\n\n var str = stringify(obj, options)\n // not sure if fs.writeFileSync returns anything, but just in case\n return fs.writeFileSync(file, str, options)\n}\n\nfunction stripBom (content) {\n // we do this because JSON.parse would convert it to a utf8 string if encoding wasn't specified\n if (Buffer.isBuffer(content)) content = content.toString('utf8')\n content = content.replace(/^\\uFEFF/, '')\n return content\n}\n\nvar jsonfile = {\n readFile: readFile,\n readFileSync: readFileSync,\n writeFile: writeFile,\n writeFileSync: writeFileSync\n}\n\nmodule.exports = jsonfile\n","/* eslint max-classes-per-file: [\"error\", 2] */\n/* eslint no-underscore-dangle: [\"error\", { \"allow\": [\"_getLocationKeys\"] }] */\n\nconst flatted = require('flatted');\nconst levels = require('./levels');\n\nclass SerDe {\n constructor() {\n const deserialise = {\n __LOG4JS_undefined__: undefined,\n __LOG4JS_NaN__: Number('abc'),\n __LOG4JS_Infinity__: 1 / 0,\n '__LOG4JS_-Infinity__': -1 / 0,\n };\n this.deMap = deserialise;\n this.serMap = {};\n Object.keys(this.deMap).forEach((key) => {\n const value = this.deMap[key];\n this.serMap[value] = key;\n });\n }\n\n canSerialise(key) {\n if (typeof key === 'string') return false;\n return key in this.serMap;\n }\n\n serialise(key) {\n if (this.canSerialise(key)) return this.serMap[key];\n return key;\n }\n\n canDeserialise(key) {\n return key in this.deMap;\n }\n\n deserialise(key) {\n if (this.canDeserialise(key)) return this.deMap[key];\n return key;\n }\n}\nconst serde = new SerDe();\n\n/**\n * @name LoggingEvent\n * @namespace Log4js\n */\nclass LoggingEvent {\n /**\n * Models a logging event.\n * @constructor\n * @param {string} categoryName name of category\n * @param {Log4js.Level} level level of message\n * @param {Array} data objects to log\n * @param {Error} [error]\n * @author Seth Chisamore\n */\n constructor(categoryName, level, data, context, location, error) {\n this.startTime = new Date();\n this.categoryName = categoryName;\n this.data = data;\n this.level = level;\n this.context = Object.assign({}, context); // eslint-disable-line prefer-object-spread\n this.pid = process.pid;\n this.error = error;\n\n if (typeof location !== 'undefined') {\n if (!location || typeof location !== 'object' || Array.isArray(location))\n throw new TypeError(\n 'Invalid location type passed to LoggingEvent constructor'\n );\n\n this.constructor._getLocationKeys().forEach((key) => {\n if (typeof location[key] !== 'undefined') this[key] = location[key];\n });\n }\n }\n\n /** @private */\n static _getLocationKeys() {\n return [\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'callStack',\n 'className',\n 'functionName',\n 'functionAlias',\n 'callerName',\n ];\n }\n\n serialise() {\n return flatted.stringify(this, (key, value) => {\n // JSON.stringify(new Error('test')) returns {}, which is not really useful for us.\n // The following allows us to serialize errors (semi) correctly.\n if (value instanceof Error) {\n // eslint-disable-next-line prefer-object-spread\n value = Object.assign(\n { message: value.message, stack: value.stack },\n value\n );\n }\n // JSON.stringify({a: Number('abc'), b: 1/0, c: -1/0}) returns {a: null, b: null, c: null}.\n // The following allows us to serialize to NaN, Infinity and -Infinity correctly.\n // JSON.stringify([undefined]) returns [null].\n // The following allows us to serialize to undefined correctly.\n return serde.serialise(value);\n });\n }\n\n static deserialise(serialised) {\n let event;\n try {\n const rehydratedEvent = flatted.parse(serialised, (key, value) => {\n if (value && value.message && value.stack) {\n const fakeError = new Error(value);\n Object.keys(value).forEach((k) => {\n fakeError[k] = value[k];\n });\n value = fakeError;\n }\n return serde.deserialise(value);\n });\n this._getLocationKeys().forEach((key) => {\n if (typeof rehydratedEvent[key] !== 'undefined') {\n if (!rehydratedEvent.location) rehydratedEvent.location = {};\n rehydratedEvent.location[key] = rehydratedEvent[key];\n }\n });\n event = new LoggingEvent(\n rehydratedEvent.categoryName,\n levels.getLevel(rehydratedEvent.level.levelStr),\n rehydratedEvent.data,\n rehydratedEvent.context,\n rehydratedEvent.location,\n rehydratedEvent.error\n );\n event.startTime = new Date(rehydratedEvent.startTime);\n event.pid = rehydratedEvent.pid;\n if (rehydratedEvent.cluster) {\n event.cluster = rehydratedEvent.cluster;\n }\n } catch (e) {\n event = new LoggingEvent('log4js', levels.ERROR, [\n 'Unable to parse log:',\n serialised,\n 'because: ',\n e,\n ]);\n }\n\n return event;\n }\n}\n\nmodule.exports = LoggingEvent;\n","function maxFileSizeUnitTransform(maxLogSize) {\n if (typeof maxLogSize === 'number' && Number.isInteger(maxLogSize)) {\n return maxLogSize;\n }\n\n const units = {\n K: 1024,\n M: 1024 * 1024,\n G: 1024 * 1024 * 1024,\n };\n const validUnit = Object.keys(units);\n const unit = maxLogSize.slice(-1).toLocaleUpperCase();\n const value = maxLogSize.slice(0, -1).trim();\n\n if (validUnit.indexOf(unit) < 0 || !Number.isInteger(Number(value))) {\n throw Error(`maxLogSize: \"${maxLogSize}\" is invalid`);\n } else {\n return value * units[unit];\n }\n}\n\nfunction adapter(configAdapter, config) {\n const newConfig = Object.assign({}, config); // eslint-disable-line prefer-object-spread\n Object.keys(configAdapter).forEach((key) => {\n if (newConfig[key]) {\n newConfig[key] = configAdapter[key](config[key]);\n }\n });\n return newConfig;\n}\n\nfunction fileAppenderAdapter(config) {\n const configAdapter = {\n maxLogSize: maxFileSizeUnitTransform,\n };\n return adapter(configAdapter, config);\n}\n\nconst adapters = {\n dateFile: fileAppenderAdapter,\n file: fileAppenderAdapter,\n fileSync: fileAppenderAdapter,\n};\n\nmodule.exports.modifyConfig = (config) =>\n adapters[config.type] ? adapters[config.type](config) : config;\n","const debug = require('debug')('log4js:categoryFilter');\n\nfunction categoryFilter(excludes, appender) {\n if (typeof excludes === 'string') excludes = [excludes];\n return (logEvent) => {\n debug(`Checking ${logEvent.categoryName} against ${excludes}`);\n if (excludes.indexOf(logEvent.categoryName) === -1) {\n debug('Not excluded, sending to appender');\n appender(logEvent);\n }\n };\n}\n\nfunction configure(config, layouts, findAppender) {\n const appender = findAppender(config.appender);\n return categoryFilter(config.exclude, appender);\n}\n\nmodule.exports.configure = configure;\n","// eslint-disable-next-line no-console\nconst consoleLog = console.log.bind(console);\n\nfunction consoleAppender(layout, timezoneOffset) {\n return (loggingEvent) => {\n consoleLog(layout(loggingEvent, timezoneOffset));\n };\n}\n\nfunction configure(config, layouts) {\n let layout = layouts.colouredLayout;\n if (config.layout) {\n layout = layouts.layout(config.layout.type, config.layout);\n }\n return consoleAppender(layout, config.timezoneOffset);\n}\n\nmodule.exports.configure = configure;\n","const streams = require('streamroller');\nconst os = require('os');\n\nconst eol = os.EOL;\n\nfunction openTheStream(filename, pattern, options) {\n const stream = new streams.DateRollingFileStream(filename, pattern, options);\n stream.on('error', (err) => {\n // eslint-disable-next-line no-console\n console.error(\n 'log4js.dateFileAppender - Writing to file %s, error happened ',\n filename,\n err\n );\n });\n stream.on('drain', () => {\n process.emit('log4js:pause', false);\n });\n return stream;\n}\n\n/**\n * File appender that rolls files according to a date pattern.\n * @param filename base filename.\n * @param pattern the format that will be added to the end of filename when rolling,\n * also used to check when to roll files - defaults to '.yyyy-MM-dd'\n * @param layout layout function for log messages - defaults to basicLayout\n * @param options - options to be passed to the underlying stream\n * @param timezoneOffset - optional timezone offset in minutes (default system local)\n */\nfunction appender(filename, pattern, layout, options, timezoneOffset) {\n // the options for file appender use maxLogSize, but the docs say any file appender\n // options should work for dateFile as well.\n options.maxSize = options.maxLogSize;\n\n const writer = openTheStream(filename, pattern, options);\n\n const app = function (logEvent) {\n if (!writer.writable) {\n return;\n }\n if (!writer.write(layout(logEvent, timezoneOffset) + eol, 'utf8')) {\n process.emit('log4js:pause', true);\n }\n };\n\n app.shutdown = function (complete) {\n writer.end('', 'utf-8', complete);\n };\n\n return app;\n}\n\nfunction configure(config, layouts) {\n let layout = layouts.basicLayout;\n if (config.layout) {\n layout = layouts.layout(config.layout.type, config.layout);\n }\n\n if (!config.alwaysIncludePattern) {\n config.alwaysIncludePattern = false;\n }\n\n // security default (instead of relying on streamroller default)\n config.mode = config.mode || 0o600;\n\n return appender(\n config.filename,\n config.pattern,\n layout,\n config,\n config.timezoneOffset\n );\n}\n\nmodule.exports.configure = configure;\n","const debug = require('debug')('log4js:file');\nconst path = require('path');\nconst streams = require('streamroller');\nconst os = require('os');\n\nconst eol = os.EOL;\n\nlet mainSighupListenerStarted = false;\nconst sighupListeners = new Set();\nfunction mainSighupHandler() {\n sighupListeners.forEach((app) => {\n app.sighupHandler();\n });\n}\n\n/**\n * File Appender writing the logs to a text file. Supports rolling of logs by size.\n *\n * @param file the file log messages will be written to\n * @param layout a function that takes a logEvent and returns a string\n * (defaults to basicLayout).\n * @param logSize - the maximum size (in bytes) for a log file,\n * if not provided then logs won't be rotated.\n * @param numBackups - the number of log files to keep after logSize\n * has been reached (default 5)\n * @param options - options to be passed to the underlying stream\n * @param timezoneOffset - optional timezone offset in minutes (default system local)\n */\nfunction fileAppender(\n file,\n layout,\n logSize,\n numBackups,\n options,\n timezoneOffset\n) {\n if (typeof file !== 'string' || file.length === 0) {\n throw new Error(`Invalid filename: ${file}`);\n } else if (file.endsWith(path.sep)) {\n throw new Error(`Filename is a directory: ${file}`);\n } else if (file.indexOf(`~${path.sep}`) === 0) {\n // handle ~ expansion: https://github.com/nodejs/node/issues/684\n // exclude ~ and ~filename as these can be valid files\n file = file.replace('~', os.homedir());\n }\n file = path.normalize(file);\n numBackups = !numBackups && numBackups !== 0 ? 5 : numBackups;\n\n debug(\n 'Creating file appender (',\n file,\n ', ',\n logSize,\n ', ',\n numBackups,\n ', ',\n options,\n ', ',\n timezoneOffset,\n ')'\n );\n\n function openTheStream(filePath, fileSize, numFiles, opt) {\n const stream = new streams.RollingFileStream(\n filePath,\n fileSize,\n numFiles,\n opt\n );\n stream.on('error', (err) => {\n // eslint-disable-next-line no-console\n console.error(\n 'log4js.fileAppender - Writing to file %s, error happened ',\n filePath,\n err\n );\n });\n stream.on('drain', () => {\n process.emit('log4js:pause', false);\n });\n return stream;\n }\n\n let writer = openTheStream(file, logSize, numBackups, options);\n\n const app = function (loggingEvent) {\n if (!writer.writable) {\n return;\n }\n if (options.removeColor === true) {\n // eslint-disable-next-line no-control-regex\n const regex = /\\x1b[[0-9;]*m/g;\n loggingEvent.data = loggingEvent.data.map((d) => {\n if (typeof d === 'string') return d.replace(regex, '');\n return d;\n });\n }\n if (!writer.write(layout(loggingEvent, timezoneOffset) + eol, 'utf8')) {\n process.emit('log4js:pause', true);\n }\n };\n\n app.reopen = function () {\n writer.end(() => {\n writer = openTheStream(file, logSize, numBackups, options);\n });\n };\n\n app.sighupHandler = function () {\n debug('SIGHUP handler called.');\n app.reopen();\n };\n\n app.shutdown = function (complete) {\n sighupListeners.delete(app);\n if (sighupListeners.size === 0 && mainSighupListenerStarted) {\n process.removeListener('SIGHUP', mainSighupHandler);\n mainSighupListenerStarted = false;\n }\n writer.end('', 'utf-8', complete);\n };\n\n // On SIGHUP, close and reopen all files. This allows this appender to work with\n // logrotate. Note that if you are using logrotate, you should not set\n // `logSize`.\n sighupListeners.add(app);\n if (!mainSighupListenerStarted) {\n process.on('SIGHUP', mainSighupHandler);\n mainSighupListenerStarted = true;\n }\n\n return app;\n}\n\nfunction configure(config, layouts) {\n let layout = layouts.basicLayout;\n if (config.layout) {\n layout = layouts.layout(config.layout.type, config.layout);\n }\n\n // security default (instead of relying on streamroller default)\n config.mode = config.mode || 0o600;\n\n return fileAppender(\n config.filename,\n layout,\n config.maxLogSize,\n config.backups,\n config,\n config.timezoneOffset\n );\n}\n\nmodule.exports.configure = configure;\n","const debug = require('debug')('log4js:fileSync');\nconst path = require('path');\nconst fs = require('fs');\nconst os = require('os');\n\nconst eol = os.EOL;\n\nfunction touchFile(file, options) {\n // attempt to create the directory\n const mkdir = (dir) => {\n try {\n return fs.mkdirSync(dir, { recursive: true });\n } catch (e) {\n // backward-compatible fs.mkdirSync for nodejs pre-10.12.0 (without recursive option)\n // recursive creation of parent first\n if (e.code === 'ENOENT') {\n mkdir(path.dirname(dir));\n return mkdir(dir);\n }\n\n // throw error for all except EEXIST and EROFS (read-only filesystem)\n if (e.code !== 'EEXIST' && e.code !== 'EROFS') {\n throw e;\n }\n\n // EEXIST: throw if file and not directory\n // EROFS : throw if directory not found\n else {\n try {\n if (fs.statSync(dir).isDirectory()) {\n return dir;\n }\n throw e;\n } catch (err) {\n throw e;\n }\n }\n }\n };\n mkdir(path.dirname(file));\n\n // try to throw EISDIR, EROFS, EACCES\n fs.appendFileSync(file, '', { mode: options.mode, flag: options.flags });\n}\n\nclass RollingFileSync {\n constructor(filename, maxLogSize, backups, options) {\n debug('In RollingFileStream');\n\n if (maxLogSize < 0) {\n throw new Error(`maxLogSize (${maxLogSize}) should be > 0`);\n }\n\n this.filename = filename;\n this.size = maxLogSize;\n this.backups = backups;\n this.options = options;\n this.currentSize = 0;\n\n function currentFileSize(file) {\n let fileSize = 0;\n\n try {\n fileSize = fs.statSync(file).size;\n } catch (e) {\n // file does not exist\n touchFile(file, options);\n }\n return fileSize;\n }\n\n this.currentSize = currentFileSize(this.filename);\n }\n\n shouldRoll() {\n debug(\n 'should roll with current size %d, and max size %d',\n this.currentSize,\n this.size\n );\n return this.currentSize >= this.size;\n }\n\n roll(filename) {\n const that = this;\n const nameMatcher = new RegExp(`^${path.basename(filename)}`);\n\n function justTheseFiles(item) {\n return nameMatcher.test(item);\n }\n\n function index(filename_) {\n return (\n parseInt(filename_.slice(`${path.basename(filename)}.`.length), 10) || 0\n );\n }\n\n function byIndex(a, b) {\n return index(a) - index(b);\n }\n\n function increaseFileIndex(fileToRename) {\n const idx = index(fileToRename);\n debug(`Index of ${fileToRename} is ${idx}`);\n if (that.backups === 0) {\n fs.truncateSync(filename, 0);\n } else if (idx < that.backups) {\n // on windows, you can get a EEXIST error if you rename a file to an existing file\n // so, we'll try to delete the file we're renaming to first\n try {\n fs.unlinkSync(`${filename}.${idx + 1}`);\n } catch (e) {\n // ignore err: if we could not delete, it's most likely that it doesn't exist\n }\n\n debug(`Renaming ${fileToRename} -> ${filename}.${idx + 1}`);\n fs.renameSync(\n path.join(path.dirname(filename), fileToRename),\n `${filename}.${idx + 1}`\n );\n }\n }\n\n function renameTheFiles() {\n // roll the backups (rename file.n to file.n+1, where n <= numBackups)\n debug('Renaming the old files');\n\n const files = fs.readdirSync(path.dirname(filename));\n files\n .filter(justTheseFiles)\n .sort(byIndex)\n .reverse()\n .forEach(increaseFileIndex);\n }\n\n debug('Rolling, rolling, rolling');\n renameTheFiles();\n }\n\n // eslint-disable-next-line no-unused-vars\n write(chunk, encoding) {\n const that = this;\n\n function writeTheChunk() {\n debug('writing the chunk to the file');\n that.currentSize += chunk.length;\n fs.appendFileSync(that.filename, chunk);\n }\n\n debug('in write');\n\n if (this.shouldRoll()) {\n this.currentSize = 0;\n this.roll(this.filename);\n }\n\n writeTheChunk();\n }\n}\n\n/**\n * File Appender writing the logs to a text file. Supports rolling of logs by size.\n *\n * @param file the file log messages will be written to\n * @param layout a function that takes a logevent and returns a string\n * (defaults to basicLayout).\n * @param logSize - the maximum size (in bytes) for a log file,\n * if not provided then logs won't be rotated.\n * @param numBackups - the number of log files to keep after logSize\n * has been reached (default 5)\n * @param options - options to be passed to the underlying stream\n * @param timezoneOffset - optional timezone offset in minutes (default system local)\n */\nfunction fileAppender(\n file,\n layout,\n logSize,\n numBackups,\n options,\n timezoneOffset\n) {\n if (typeof file !== 'string' || file.length === 0) {\n throw new Error(`Invalid filename: ${file}`);\n } else if (file.endsWith(path.sep)) {\n throw new Error(`Filename is a directory: ${file}`);\n } else if (file.indexOf(`~${path.sep}`) === 0) {\n // handle ~ expansion: https://github.com/nodejs/node/issues/684\n // exclude ~ and ~filename as these can be valid files\n file = file.replace('~', os.homedir());\n }\n file = path.normalize(file);\n numBackups = !numBackups && numBackups !== 0 ? 5 : numBackups;\n\n debug(\n 'Creating fileSync appender (',\n file,\n ', ',\n logSize,\n ', ',\n numBackups,\n ', ',\n options,\n ', ',\n timezoneOffset,\n ')'\n );\n\n function openTheStream(filePath, fileSize, numFiles) {\n let stream;\n\n if (fileSize) {\n stream = new RollingFileSync(filePath, fileSize, numFiles, options);\n } else {\n stream = ((f) => {\n // touch the file to apply flags (like w to truncate the file)\n touchFile(f, options);\n\n return {\n write(data) {\n fs.appendFileSync(f, data);\n },\n };\n })(filePath);\n }\n\n return stream;\n }\n\n const logFile = openTheStream(file, logSize, numBackups);\n\n return (loggingEvent) => {\n logFile.write(layout(loggingEvent, timezoneOffset) + eol);\n };\n}\n\nfunction configure(config, layouts) {\n let layout = layouts.basicLayout;\n if (config.layout) {\n layout = layouts.layout(config.layout.type, config.layout);\n }\n\n const options = {\n flags: config.flags || 'a',\n encoding: config.encoding || 'utf8',\n mode: config.mode || 0o600,\n };\n\n return fileAppender(\n config.filename,\n layout,\n config.maxLogSize,\n config.backups,\n options,\n config.timezoneOffset\n );\n}\n\nmodule.exports.configure = configure;\n",null,"function logLevelFilter(minLevelString, maxLevelString, appender, levels) {\n const minLevel = levels.getLevel(minLevelString);\n const maxLevel = levels.getLevel(maxLevelString, levels.FATAL);\n return (logEvent) => {\n const eventLevel = logEvent.level;\n if (\n minLevel.isLessThanOrEqualTo(eventLevel) &&\n maxLevel.isGreaterThanOrEqualTo(eventLevel)\n ) {\n appender(logEvent);\n }\n };\n}\n\nfunction configure(config, layouts, findAppender, levels) {\n const appender = findAppender(config.appender);\n return logLevelFilter(config.level, config.maxLevel, appender, levels);\n}\n\nmodule.exports.configure = configure;\n","const debug = require('debug')('log4js:noLogFilter');\n\n/**\n * The function removes empty or null regexp from the array\n * @param {string[]} regexp\n * @returns {string[]} a filtered string array with not empty or null regexp\n */\nfunction removeNullOrEmptyRegexp(regexp) {\n const filtered = regexp.filter((el) => el != null && el !== '');\n return filtered;\n}\n\n/**\n * Returns a function that will exclude the events in case they match\n * with the regular expressions provided\n * @param {(string|string[])} filters contains the regexp that will be used for the evaluation\n * @param {*} appender\n * @returns {function}\n */\nfunction noLogFilter(filters, appender) {\n return (logEvent) => {\n debug(`Checking data: ${logEvent.data} against filters: ${filters}`);\n if (typeof filters === 'string') {\n filters = [filters];\n }\n filters = removeNullOrEmptyRegexp(filters);\n const regex = new RegExp(filters.join('|'), 'i');\n if (\n filters.length === 0 ||\n logEvent.data.findIndex((value) => regex.test(value)) < 0\n ) {\n debug('Not excluded, sending to appender');\n appender(logEvent);\n }\n };\n}\n\nfunction configure(config, layouts, findAppender) {\n const appender = findAppender(config.appender);\n return noLogFilter(config.exclude, appender);\n}\n\nmodule.exports.configure = configure;\n","const debug = require('debug')('log4js:recording');\n\nconst recordedEvents = [];\n\nfunction configure() {\n return function (logEvent) {\n debug(\n `received logEvent, number of events now ${recordedEvents.length + 1}`\n );\n debug('log event was ', logEvent);\n recordedEvents.push(logEvent);\n };\n}\n\nfunction replay() {\n return recordedEvents.slice();\n}\n\nfunction reset() {\n recordedEvents.length = 0;\n}\n\nmodule.exports = {\n configure,\n replay,\n playback: replay,\n reset,\n erase: reset,\n};\n","function stderrAppender(layout, timezoneOffset) {\n return (loggingEvent) => {\n process.stderr.write(`${layout(loggingEvent, timezoneOffset)}\\n`);\n };\n}\n\nfunction configure(config, layouts) {\n let layout = layouts.colouredLayout;\n if (config.layout) {\n layout = layouts.layout(config.layout.type, config.layout);\n }\n return stderrAppender(layout, config.timezoneOffset);\n}\n\nmodule.exports.configure = configure;\n","function stdoutAppender(layout, timezoneOffset) {\n return (loggingEvent) => {\n process.stdout.write(`${layout(loggingEvent, timezoneOffset)}\\n`);\n };\n}\n\nfunction configure(config, layouts) {\n let layout = layouts.colouredLayout;\n if (config.layout) {\n layout = layouts.layout(config.layout.type, config.layout);\n }\n return stdoutAppender(layout, config.timezoneOffset);\n}\n\nexports.configure = configure;\n","const debug = require('debug')('log4js:tcp');\nconst net = require('net');\n\nfunction appender(config, layout) {\n let canWrite = false;\n const buffer = [];\n let socket;\n let shutdownAttempts = 3;\n let endMsg = '__LOG4JS__';\n\n function write(loggingEvent) {\n debug('Writing log event to socket');\n canWrite = socket.write(`${layout(loggingEvent)}${endMsg}`, 'utf8');\n }\n\n function emptyBuffer() {\n let evt;\n debug('emptying buffer');\n while ((evt = buffer.shift())) {\n write(evt);\n }\n }\n\n function createSocket() {\n debug(\n `appender creating socket to ${config.host || 'localhost'}:${\n config.port || 5000\n }`\n );\n endMsg = `${config.endMsg || '__LOG4JS__'}`;\n socket = net.createConnection(\n config.port || 5000,\n config.host || 'localhost'\n );\n socket.on('connect', () => {\n debug('socket connected');\n emptyBuffer();\n canWrite = true;\n });\n socket.on('drain', () => {\n debug('drain event received, emptying buffer');\n canWrite = true;\n emptyBuffer();\n });\n socket.on('timeout', socket.end.bind(socket));\n socket.on('error', (e) => {\n debug('connection error', e);\n canWrite = false;\n emptyBuffer();\n });\n socket.on('close', createSocket);\n }\n\n createSocket();\n\n function log(loggingEvent) {\n if (canWrite) {\n write(loggingEvent);\n } else {\n debug('buffering log event because it cannot write at the moment');\n buffer.push(loggingEvent);\n }\n }\n\n log.shutdown = function (cb) {\n debug('shutdown called');\n if (buffer.length && shutdownAttempts) {\n debug('buffer has items, waiting 100ms to empty');\n shutdownAttempts -= 1;\n setTimeout(() => {\n log.shutdown(cb);\n }, 100);\n } else {\n socket.removeAllListeners('close');\n socket.end(cb);\n }\n };\n return log;\n}\n\nfunction configure(config, layouts) {\n debug(`configure with config = ${config}`);\n let layout = function (loggingEvent) {\n return loggingEvent.serialise();\n };\n if (config.layout) {\n layout = layouts.layout(config.layout.type, config.layout);\n }\n return appender(config, layout);\n}\n\nmodule.exports.configure = configure;\n","const debug = require('debug')('log4js:categories');\nconst configuration = require('./configuration');\nconst levels = require('./levels');\nconst appenders = require('./appenders');\n\nconst categories = new Map();\n\n/**\n * Add inherited config to this category. That includes extra appenders from parent,\n * and level, if none is set on this category.\n * This is recursive, so each parent also gets loaded with inherited appenders.\n * Inheritance is blocked if a category has inherit=false\n * @param {*} config\n * @param {*} category the child category\n * @param {string} categoryName dotted path to category\n * @return {void}\n */\nfunction inheritFromParent(config, category, categoryName) {\n if (category.inherit === false) return;\n const lastDotIndex = categoryName.lastIndexOf('.');\n if (lastDotIndex < 0) return; // category is not a child\n const parentCategoryName = categoryName.slice(0, lastDotIndex);\n let parentCategory = config.categories[parentCategoryName];\n\n if (!parentCategory) {\n // parent is missing, so implicitly create it, so that it can inherit from its parents\n parentCategory = { inherit: true, appenders: [] };\n }\n\n // make sure parent has had its inheritance taken care of before pulling its properties to this child\n inheritFromParent(config, parentCategory, parentCategoryName);\n\n // if the parent is not in the config (because we just created it above),\n // and it inherited a valid configuration, add it to config.categories\n if (\n !config.categories[parentCategoryName] &&\n parentCategory.appenders &&\n parentCategory.appenders.length &&\n parentCategory.level\n ) {\n config.categories[parentCategoryName] = parentCategory;\n }\n\n category.appenders = category.appenders || [];\n category.level = category.level || parentCategory.level;\n\n // merge in appenders from parent (parent is already holding its inherited appenders)\n parentCategory.appenders.forEach((ap) => {\n if (!category.appenders.includes(ap)) {\n category.appenders.push(ap);\n }\n });\n category.parent = parentCategory;\n}\n\n/**\n * Walk all categories in the config, and pull down any configuration from parent to child.\n * This includes inherited appenders, and level, where level is not set.\n * Inheritance is skipped where a category has inherit=false.\n * @param {*} config\n */\nfunction addCategoryInheritance(config) {\n if (!config.categories) return;\n const categoryNames = Object.keys(config.categories);\n categoryNames.forEach((name) => {\n const category = config.categories[name];\n // add inherited appenders and level to this category\n inheritFromParent(config, category, name);\n });\n}\n\nconfiguration.addPreProcessingListener((config) =>\n addCategoryInheritance(config)\n);\n\nconfiguration.addListener((config) => {\n configuration.throwExceptionIf(\n config,\n configuration.not(configuration.anObject(config.categories)),\n 'must have a property \"categories\" of type object.'\n );\n\n const categoryNames = Object.keys(config.categories);\n configuration.throwExceptionIf(\n config,\n configuration.not(categoryNames.length),\n 'must define at least one category.'\n );\n\n categoryNames.forEach((name) => {\n const category = config.categories[name];\n configuration.throwExceptionIf(\n config,\n [\n configuration.not(category.appenders),\n configuration.not(category.level),\n ],\n `category \"${name}\" is not valid (must be an object with properties \"appenders\" and \"level\")`\n );\n\n configuration.throwExceptionIf(\n config,\n configuration.not(Array.isArray(category.appenders)),\n `category \"${name}\" is not valid (appenders must be an array of appender names)`\n );\n\n configuration.throwExceptionIf(\n config,\n configuration.not(category.appenders.length),\n `category \"${name}\" is not valid (appenders must contain at least one appender name)`\n );\n\n if (Object.prototype.hasOwnProperty.call(category, 'enableCallStack')) {\n configuration.throwExceptionIf(\n config,\n typeof category.enableCallStack !== 'boolean',\n `category \"${name}\" is not valid (enableCallStack must be boolean type)`\n );\n }\n\n category.appenders.forEach((appender) => {\n configuration.throwExceptionIf(\n config,\n configuration.not(appenders.get(appender)),\n `category \"${name}\" is not valid (appender \"${appender}\" is not defined)`\n );\n });\n\n configuration.throwExceptionIf(\n config,\n configuration.not(levels.getLevel(category.level)),\n `category \"${name}\" is not valid (level \"${category.level}\" not recognised;` +\n ` valid levels are ${levels.levels.join(', ')})`\n );\n });\n\n configuration.throwExceptionIf(\n config,\n configuration.not(config.categories.default),\n 'must define a \"default\" category.'\n );\n});\n\nconst setup = (config) => {\n categories.clear();\n if (!config) {\n return;\n }\n\n const categoryNames = Object.keys(config.categories);\n categoryNames.forEach((name) => {\n const category = config.categories[name];\n const categoryAppenders = [];\n category.appenders.forEach((appender) => {\n categoryAppenders.push(appenders.get(appender));\n debug(`Creating category ${name}`);\n categories.set(name, {\n appenders: categoryAppenders,\n level: levels.getLevel(category.level),\n enableCallStack: category.enableCallStack || false,\n });\n });\n });\n};\n\nconst init = () => {\n setup();\n};\ninit();\n\nconfiguration.addListener(setup);\n\nconst configForCategory = (category) => {\n debug(`configForCategory: searching for config for ${category}`);\n if (categories.has(category)) {\n debug(`configForCategory: ${category} exists in config, returning it`);\n return categories.get(category);\n }\n\n let sourceCategoryConfig;\n if (category.indexOf('.') > 0) {\n debug(`configForCategory: ${category} has hierarchy, cloning from parents`);\n sourceCategoryConfig = {\n ...configForCategory(category.slice(0, category.lastIndexOf('.'))),\n };\n } else {\n if (!categories.has('default')) {\n setup({ categories: { default: { appenders: ['out'], level: 'OFF' } } });\n }\n debug('configForCategory: cloning default category');\n sourceCategoryConfig = { ...categories.get('default') };\n }\n categories.set(category, sourceCategoryConfig);\n return sourceCategoryConfig;\n};\n\nconst appendersForCategory = (category) =>\n configForCategory(category).appenders;\n\nconst getLevelForCategory = (category) => configForCategory(category).level;\nconst setLevelForCategory = (category, level) => {\n configForCategory(category).level = level;\n};\n\nconst getEnableCallStackForCategory = (category) =>\n configForCategory(category).enableCallStack === true;\nconst setEnableCallStackForCategory = (category, useCallStack) => {\n configForCategory(category).enableCallStack = useCallStack;\n};\n\nmodule.exports = categories;\nmodule.exports = Object.assign(module.exports, {\n appendersForCategory,\n getLevelForCategory,\n setLevelForCategory,\n getEnableCallStackForCategory,\n setEnableCallStackForCategory,\n init,\n});\n","const debug = require('debug')('log4js:clustering');\nconst LoggingEvent = require('./LoggingEvent');\nconst configuration = require('./configuration');\n\nlet disabled = false;\nlet cluster = null;\ntry {\n // eslint-disable-next-line global-require\n cluster = require('cluster');\n} catch (e) {\n debug('cluster module not present');\n disabled = true;\n}\n\nconst listeners = [];\n\nlet pm2 = false;\nlet pm2InstanceVar = 'NODE_APP_INSTANCE';\n\nconst isPM2Master = () => pm2 && process.env[pm2InstanceVar] === '0';\nconst isMaster = () =>\n disabled || (cluster && cluster.isMaster) || isPM2Master();\n\nconst sendToListeners = (logEvent) => {\n listeners.forEach((l) => l(logEvent));\n};\n\n// in a multi-process node environment, worker loggers will use\n// process.send\nconst receiver = (worker, message) => {\n // prior to node v6, the worker parameter was not passed (args were message, handle)\n debug('cluster message received from worker ', worker, ': ', message);\n if (worker.topic && worker.data) {\n message = worker;\n worker = undefined;\n }\n if (message && message.topic && message.topic === 'log4js:message') {\n debug('received message: ', message.data);\n const logEvent = LoggingEvent.deserialise(message.data);\n sendToListeners(logEvent);\n }\n};\n\nif (!disabled) {\n configuration.addListener((config) => {\n // clear out the listeners, because configure has been called.\n listeners.length = 0;\n\n ({\n pm2,\n disableClustering: disabled,\n pm2InstanceVar = 'NODE_APP_INSTANCE',\n } = config);\n\n debug(`clustering disabled ? ${disabled}`);\n debug(`cluster.isMaster ? ${cluster && cluster.isMaster}`);\n debug(`pm2 enabled ? ${pm2}`);\n debug(`pm2InstanceVar = ${pm2InstanceVar}`);\n debug(`process.env[${pm2InstanceVar}] = ${process.env[pm2InstanceVar]}`);\n\n // just in case configure is called after shutdown\n if (pm2) {\n process.removeListener('message', receiver);\n }\n if (cluster && cluster.removeListener) {\n cluster.removeListener('message', receiver);\n }\n\n if (disabled || config.disableClustering) {\n debug('Not listening for cluster messages, because clustering disabled.');\n } else if (isPM2Master()) {\n // PM2 cluster support\n // PM2 runs everything as workers - install pm2-intercom for this to work.\n // we only want one of the app instances to write logs\n debug('listening for PM2 broadcast messages');\n process.on('message', receiver);\n } else if (cluster && cluster.isMaster) {\n debug('listening for cluster messages');\n cluster.on('message', receiver);\n } else {\n debug('not listening for messages, because we are not a master process');\n }\n });\n}\n\nmodule.exports = {\n onlyOnMaster: (fn, notMaster) => (isMaster() ? fn() : notMaster),\n isMaster,\n send: (msg) => {\n if (isMaster()) {\n sendToListeners(msg);\n } else {\n if (!pm2) {\n msg.cluster = {\n workerId: cluster.worker.id,\n worker: process.pid,\n };\n }\n process.send({ topic: 'log4js:message', data: msg.serialise() });\n }\n },\n onMessage: (listener) => {\n listeners.push(listener);\n },\n};\n","const util = require('util');\nconst debug = require('debug')('log4js:configuration');\n\nconst preProcessingListeners = [];\nconst listeners = [];\n\nconst not = (thing) => !thing;\n\nconst anObject = (thing) =>\n thing && typeof thing === 'object' && !Array.isArray(thing);\n\nconst validIdentifier = (thing) => /^[A-Za-z][A-Za-z0-9_]*$/g.test(thing);\n\nconst anInteger = (thing) =>\n thing && typeof thing === 'number' && Number.isInteger(thing);\n\nconst addListener = (fn) => {\n listeners.push(fn);\n debug(`Added listener, now ${listeners.length} listeners`);\n};\n\nconst addPreProcessingListener = (fn) => {\n preProcessingListeners.push(fn);\n debug(\n `Added pre-processing listener, now ${preProcessingListeners.length} listeners`\n );\n};\n\nconst throwExceptionIf = (config, checks, message) => {\n const tests = Array.isArray(checks) ? checks : [checks];\n tests.forEach((test) => {\n if (test) {\n throw new Error(\n `Problem with log4js configuration: (${util.inspect(config, {\n depth: 5,\n })}) - ${message}`\n );\n }\n });\n};\n\nconst configure = (candidate) => {\n debug('New configuration to be validated: ', candidate);\n throwExceptionIf(candidate, not(anObject(candidate)), 'must be an object.');\n\n debug(`Calling pre-processing listeners (${preProcessingListeners.length})`);\n preProcessingListeners.forEach((listener) => listener(candidate));\n debug('Configuration pre-processing finished.');\n\n debug(`Calling configuration listeners (${listeners.length})`);\n listeners.forEach((listener) => listener(candidate));\n debug('Configuration finished.');\n};\n\nmodule.exports = {\n configure,\n addListener,\n addPreProcessingListener,\n throwExceptionIf,\n anObject,\n anInteger,\n validIdentifier,\n not,\n};\n","/* eslint no-underscore-dangle: [\"error\", { \"allow\": [\"__statusCode\", \"_remoteAddress\", \"__headers\", \"_logging\"] }] */\n\nconst levels = require('./levels');\n\nconst DEFAULT_FORMAT =\n ':remote-addr - -' +\n ' \":method :url HTTP/:http-version\"' +\n ' :status :content-length \":referrer\"' +\n ' \":user-agent\"';\n\n/**\n * Return request url path,\n * adding this function prevents the Cyclomatic Complexity,\n * for the assemble_tokens function at low, to pass the tests.\n *\n * @param {IncomingMessage} req\n * @return {string}\n * @api private\n */\nfunction getUrl(req) {\n return req.originalUrl || req.url;\n}\n\n/**\n * Adds custom {token, replacement} objects to defaults,\n * overwriting the defaults if any tokens clash\n *\n * @param {IncomingMessage} req\n * @param {ServerResponse} res\n * @param {Array} customTokens\n * [{ token: string-or-regexp, replacement: string-or-replace-function }]\n * @return {Array}\n */\nfunction assembleTokens(req, res, customTokens) {\n const arrayUniqueTokens = (array) => {\n const a = array.concat();\n for (let i = 0; i < a.length; ++i) {\n for (let j = i + 1; j < a.length; ++j) {\n // not === because token can be regexp object\n // eslint-disable-next-line eqeqeq\n if (a[i].token == a[j].token) {\n a.splice(j--, 1); // eslint-disable-line no-plusplus\n }\n }\n }\n return a;\n };\n\n const defaultTokens = [];\n defaultTokens.push({ token: ':url', replacement: getUrl(req) });\n defaultTokens.push({ token: ':protocol', replacement: req.protocol });\n defaultTokens.push({ token: ':hostname', replacement: req.hostname });\n defaultTokens.push({ token: ':method', replacement: req.method });\n defaultTokens.push({\n token: ':status',\n replacement: res.__statusCode || res.statusCode,\n });\n defaultTokens.push({\n token: ':response-time',\n replacement: res.responseTime,\n });\n defaultTokens.push({ token: ':date', replacement: new Date().toUTCString() });\n defaultTokens.push({\n token: ':referrer',\n replacement: req.headers.referer || req.headers.referrer || '',\n });\n defaultTokens.push({\n token: ':http-version',\n replacement: `${req.httpVersionMajor}.${req.httpVersionMinor}`,\n });\n defaultTokens.push({\n token: ':remote-addr',\n replacement:\n req.headers['x-forwarded-for'] ||\n req.ip ||\n req._remoteAddress ||\n (req.socket &&\n (req.socket.remoteAddress ||\n (req.socket.socket && req.socket.socket.remoteAddress))),\n });\n defaultTokens.push({\n token: ':user-agent',\n replacement: req.headers['user-agent'],\n });\n defaultTokens.push({\n token: ':content-length',\n replacement:\n res.getHeader('content-length') ||\n (res.__headers && res.__headers['Content-Length']) ||\n '-',\n });\n defaultTokens.push({\n token: /:req\\[([^\\]]+)]/g,\n replacement(_, field) {\n return req.headers[field.toLowerCase()];\n },\n });\n defaultTokens.push({\n token: /:res\\[([^\\]]+)]/g,\n replacement(_, field) {\n return (\n res.getHeader(field.toLowerCase()) ||\n (res.__headers && res.__headers[field])\n );\n },\n });\n\n return arrayUniqueTokens(customTokens.concat(defaultTokens));\n}\n\n/**\n * Return formatted log line.\n *\n * @param {string} str\n * @param {Array} tokens\n * @return {string}\n * @api private\n */\nfunction format(str, tokens) {\n for (let i = 0; i < tokens.length; i++) {\n str = str.replace(tokens[i].token, tokens[i].replacement);\n }\n return str;\n}\n\n/**\n * Return RegExp Object about nolog\n *\n * @param {(string|Array)} nolog\n * @return {RegExp}\n * @api private\n *\n * syntax\n * 1. String\n * 1.1 \"\\\\.gif\"\n * NOT LOGGING http://example.com/hoge.gif and http://example.com/hoge.gif?fuga\n * LOGGING http://example.com/hoge.agif\n * 1.2 in \"\\\\.gif|\\\\.jpg$\"\n * NOT LOGGING http://example.com/hoge.gif and\n * http://example.com/hoge.gif?fuga and http://example.com/hoge.jpg?fuga\n * LOGGING http://example.com/hoge.agif,\n * http://example.com/hoge.ajpg and http://example.com/hoge.jpg?hoge\n * 1.3 in \"\\\\.(gif|jpe?g|png)$\"\n * NOT LOGGING http://example.com/hoge.gif and http://example.com/hoge.jpeg\n * LOGGING http://example.com/hoge.gif?uid=2 and http://example.com/hoge.jpg?pid=3\n * 2. RegExp\n * 2.1 in /\\.(gif|jpe?g|png)$/\n * SAME AS 1.3\n * 3. Array\n * 3.1 [\"\\\\.jpg$\", \"\\\\.png\", \"\\\\.gif\"]\n * SAME AS \"\\\\.jpg|\\\\.png|\\\\.gif\"\n */\nfunction createNoLogCondition(nolog) {\n let regexp = null;\n\n if (nolog instanceof RegExp) {\n regexp = nolog;\n }\n\n if (typeof nolog === 'string') {\n regexp = new RegExp(nolog);\n }\n\n if (Array.isArray(nolog)) {\n // convert to strings\n const regexpsAsStrings = nolog.map((reg) =>\n reg.source ? reg.source : reg\n );\n regexp = new RegExp(regexpsAsStrings.join('|'));\n }\n\n return regexp;\n}\n\n/**\n * Allows users to define rules around status codes to assign them to a specific\n * logging level.\n * There are two types of rules:\n * - RANGE: matches a code within a certain range\n * E.g. { 'from': 200, 'to': 299, 'level': 'info' }\n * - CONTAINS: matches a code to a set of expected codes\n * E.g. { 'codes': [200, 203], 'level': 'debug' }\n * Note*: Rules are respected only in order of prescendence.\n *\n * @param {Number} statusCode\n * @param {Level} currentLevel\n * @param {Object} ruleSet\n * @return {Level}\n * @api private\n */\nfunction matchRules(statusCode, currentLevel, ruleSet) {\n let level = currentLevel;\n\n if (ruleSet) {\n const matchedRule = ruleSet.find((rule) => {\n let ruleMatched = false;\n if (rule.from && rule.to) {\n ruleMatched = statusCode >= rule.from && statusCode <= rule.to;\n } else {\n ruleMatched = rule.codes.indexOf(statusCode) !== -1;\n }\n return ruleMatched;\n });\n if (matchedRule) {\n level = levels.getLevel(matchedRule.level, level);\n }\n }\n return level;\n}\n\n/**\n * Log requests with the given `options` or a `format` string.\n *\n * Options:\n *\n * - `format` Format string, see below for tokens\n * - `level` A log4js levels instance. Supports also 'auto'\n * - `nolog` A string or RegExp to exclude target logs or function(req, res): boolean\n * - `statusRules` A array of rules for setting specific logging levels base on status codes\n * - `context` Whether to add a response of express to the context\n *\n * Tokens:\n *\n * - `:req[header]` ex: `:req[Accept]`\n * - `:res[header]` ex: `:res[Content-Length]`\n * - `:http-version`\n * - `:response-time`\n * - `:remote-addr`\n * - `:date`\n * - `:method`\n * - `:url`\n * - `:referrer`\n * - `:user-agent`\n * - `:status`\n *\n * @return {Function}\n * @param logger4js\n * @param options\n * @api public\n */\nmodule.exports = function getLogger(logger4js, options) {\n if (typeof options === 'string' || typeof options === 'function') {\n options = { format: options };\n } else {\n options = options || {};\n }\n\n const thisLogger = logger4js;\n let level = levels.getLevel(options.level, levels.INFO);\n const fmt = options.format || DEFAULT_FORMAT;\n\n return (req, res, next) => {\n // mount safety\n if (typeof req._logging !== 'undefined') return next();\n\n // nologs\n if (typeof options.nolog !== 'function') {\n const nolog = createNoLogCondition(options.nolog);\n if (nolog && nolog.test(req.originalUrl)) return next();\n }\n\n if (thisLogger.isLevelEnabled(level) || options.level === 'auto') {\n const start = new Date();\n const { writeHead } = res;\n\n // flag as logging\n req._logging = true;\n\n // proxy for statusCode.\n res.writeHead = (code, headers) => {\n res.writeHead = writeHead;\n res.writeHead(code, headers);\n\n res.__statusCode = code;\n res.__headers = headers || {};\n };\n\n // hook on end request to emit the log entry of the HTTP request.\n let finished = false;\n const handler = () => {\n if (finished) {\n return;\n }\n finished = true;\n\n // nologs\n if (typeof options.nolog === 'function') {\n if (options.nolog(req, res) === true) {\n req._logging = false;\n return;\n }\n }\n\n res.responseTime = new Date() - start;\n // status code response level handling\n if (res.statusCode && options.level === 'auto') {\n level = levels.INFO;\n if (res.statusCode >= 300) level = levels.WARN;\n if (res.statusCode >= 400) level = levels.ERROR;\n }\n level = matchRules(res.statusCode, level, options.statusRules);\n\n const combinedTokens = assembleTokens(req, res, options.tokens || []);\n\n if (options.context) thisLogger.addContext('res', res);\n if (typeof fmt === 'function') {\n const line = fmt(req, res, (str) => format(str, combinedTokens));\n if (line) thisLogger.log(level, line);\n } else {\n thisLogger.log(level, format(fmt, combinedTokens));\n }\n if (options.context) thisLogger.removeContext('res');\n };\n res.on('end', handler);\n res.on('finish', handler);\n res.on('error', handler);\n res.on('close', handler);\n }\n\n // ensure next gets always called\n return next();\n };\n};\n","const dateFormat = require('date-format');\nconst os = require('os');\nconst util = require('util');\nconst path = require('path');\nconst url = require('url');\nconst debug = require('debug')('log4js:layouts');\n\nconst styles = {\n // styles\n bold: [1, 22],\n italic: [3, 23],\n underline: [4, 24],\n inverse: [7, 27],\n // grayscale\n white: [37, 39],\n grey: [90, 39],\n black: [90, 39],\n // colors\n blue: [34, 39],\n cyan: [36, 39],\n green: [32, 39],\n magenta: [35, 39],\n red: [91, 39],\n yellow: [33, 39],\n};\n\nfunction colorizeStart(style) {\n return style ? `\\x1B[${styles[style][0]}m` : '';\n}\n\nfunction colorizeEnd(style) {\n return style ? `\\x1B[${styles[style][1]}m` : '';\n}\n\n/**\n * Taken from masylum's fork (https://github.com/masylum/log4js-node)\n */\nfunction colorize(str, style) {\n return colorizeStart(style) + str + colorizeEnd(style);\n}\n\nfunction timestampLevelAndCategory(loggingEvent, colour) {\n return colorize(\n util.format(\n '[%s] [%s] %s - ',\n dateFormat.asString(loggingEvent.startTime),\n loggingEvent.level.toString(),\n loggingEvent.categoryName\n ),\n colour\n );\n}\n\n/**\n * BasicLayout is a simple layout for storing the logs. The logs are stored\n * in following format:\n *
\n * [startTime] [logLevel] categoryName - message\\n\n * 
\n *\n * @author Stephan Strittmatter\n */\nfunction basicLayout(loggingEvent) {\n return (\n timestampLevelAndCategory(loggingEvent) + util.format(...loggingEvent.data)\n );\n}\n\n/**\n * colouredLayout - taken from masylum's fork.\n * same as basicLayout, but with colours.\n */\nfunction colouredLayout(loggingEvent) {\n return (\n timestampLevelAndCategory(loggingEvent, loggingEvent.level.colour) +\n util.format(...loggingEvent.data)\n );\n}\n\nfunction messagePassThroughLayout(loggingEvent) {\n return util.format(...loggingEvent.data);\n}\n\nfunction dummyLayout(loggingEvent) {\n return loggingEvent.data[0];\n}\n\n/**\n * PatternLayout\n * Format for specifiers is %[padding].[truncation][field]{[format]}\n * e.g. %5.10p - left pad the log level by 5 characters, up to a max of 10\n * both padding and truncation can be negative.\n * Negative truncation = trunc from end of string\n * Positive truncation = trunc from start of string\n * Negative padding = pad right\n * Positive padding = pad left\n *\n * Fields can be any of:\n * - %r time in toLocaleTimeString format\n * - %p log level\n * - %c log category\n * - %h hostname\n * - %m log data\n * - %m{l} where l is an integer, log data.slice(l)\n * - %m{l,u} where l and u are integers, log data.slice(l, u)\n * - %d date in constious formats\n * - %% %\n * - %n newline\n * - %z pid\n * - %f filename\n * - %l line number\n * - %o column postion\n * - %s call stack\n * - %C class name [#1316](https://github.com/log4js-node/log4js-node/pull/1316)\n * - %M method or function name [#1316](https://github.com/log4js-node/log4js-node/pull/1316)\n * - %A method or function alias [#1316](https://github.com/log4js-node/log4js-node/pull/1316)\n * - %F fully qualified caller name [#1316](https://github.com/log4js-node/log4js-node/pull/1316)\n * - %x{} add dynamic tokens to your log. Tokens are specified in the tokens parameter\n * - %X{} add dynamic tokens to your log. Tokens are specified in logger context\n * You can use %[ and %] to define a colored block.\n *\n * Tokens are specified as simple key:value objects.\n * The key represents the token name whereas the value can be a string or function\n * which is called to extract the value to put in the log message. If token is not\n * found, it doesn't replace the field.\n *\n * A sample token would be: { 'pid' : function() { return process.pid; } }\n *\n * Takes a pattern string, array of tokens and returns a layout function.\n * @return {Function}\n * @param pattern\n * @param tokens\n * @param timezoneOffset\n *\n * @authors ['Stephan Strittmatter', 'Jan Schmidle']\n */\nfunction patternLayout(pattern, tokens) {\n const TTCC_CONVERSION_PATTERN = '%r %p %c - %m%n';\n const regex =\n /%(-?[0-9]+)?(\\.?-?[0-9]+)?([[\\]cdhmnprzxXyflosCMAF%])(\\{([^}]+)\\})?|([^%]+)/;\n\n pattern = pattern || TTCC_CONVERSION_PATTERN;\n\n function categoryName(loggingEvent, specifier) {\n let loggerName = loggingEvent.categoryName;\n if (specifier) {\n const precision = parseInt(specifier, 10);\n const loggerNameBits = loggerName.split('.');\n if (precision < loggerNameBits.length) {\n loggerName = loggerNameBits\n .slice(loggerNameBits.length - precision)\n .join('.');\n }\n }\n return loggerName;\n }\n\n function formatAsDate(loggingEvent, specifier) {\n let format = dateFormat.ISO8601_FORMAT;\n if (specifier) {\n format = specifier;\n // Pick up special cases\n switch (format) {\n case 'ISO8601':\n case 'ISO8601_FORMAT':\n format = dateFormat.ISO8601_FORMAT;\n break;\n case 'ISO8601_WITH_TZ_OFFSET':\n case 'ISO8601_WITH_TZ_OFFSET_FORMAT':\n format = dateFormat.ISO8601_WITH_TZ_OFFSET_FORMAT;\n break;\n case 'ABSOLUTE':\n process.emitWarning(\n 'Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. ' +\n 'Please use %d{ABSOLUTETIME} instead.',\n 'DeprecationWarning',\n 'log4js-node-DEP0003'\n );\n debug(\n '[log4js-node-DEP0003]',\n 'DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.'\n );\n // falls through\n case 'ABSOLUTETIME':\n case 'ABSOLUTETIME_FORMAT':\n format = dateFormat.ABSOLUTETIME_FORMAT;\n break;\n case 'DATE':\n process.emitWarning(\n 'Pattern %d{DATE} is deprecated due to the confusion it causes when used. ' +\n 'Please use %d{DATETIME} instead.',\n 'DeprecationWarning',\n 'log4js-node-DEP0004'\n );\n debug(\n '[log4js-node-DEP0004]',\n 'DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.'\n );\n // falls through\n case 'DATETIME':\n case 'DATETIME_FORMAT':\n format = dateFormat.DATETIME_FORMAT;\n break;\n // no default\n }\n }\n // Format the date\n return dateFormat.asString(format, loggingEvent.startTime);\n }\n\n function hostname() {\n return os.hostname().toString();\n }\n\n function formatMessage(loggingEvent, specifier) {\n let dataSlice = loggingEvent.data;\n if (specifier) {\n const [lowerBound, upperBound] = specifier.split(',');\n dataSlice = dataSlice.slice(lowerBound, upperBound);\n }\n return util.format(...dataSlice);\n }\n\n function endOfLine() {\n return os.EOL;\n }\n\n function logLevel(loggingEvent) {\n return loggingEvent.level.toString();\n }\n\n function startTime(loggingEvent) {\n return dateFormat.asString('hh:mm:ss', loggingEvent.startTime);\n }\n\n function startColour(loggingEvent) {\n return colorizeStart(loggingEvent.level.colour);\n }\n\n function endColour(loggingEvent) {\n return colorizeEnd(loggingEvent.level.colour);\n }\n\n function percent() {\n return '%';\n }\n\n function pid(loggingEvent) {\n return loggingEvent && loggingEvent.pid\n ? loggingEvent.pid.toString()\n : process.pid.toString();\n }\n\n function clusterInfo() {\n // this used to try to return the master and worker pids,\n // but it would never have worked because master pid is not available to workers\n // leaving this here to maintain compatibility for patterns\n return pid();\n }\n\n function userDefined(loggingEvent, specifier) {\n if (typeof tokens[specifier] !== 'undefined') {\n return typeof tokens[specifier] === 'function'\n ? tokens[specifier](loggingEvent)\n : tokens[specifier];\n }\n\n return null;\n }\n\n function contextDefined(loggingEvent, specifier) {\n const resolver = loggingEvent.context[specifier];\n\n if (typeof resolver !== 'undefined') {\n return typeof resolver === 'function' ? resolver(loggingEvent) : resolver;\n }\n\n return null;\n }\n\n function fileName(loggingEvent, specifier) {\n let filename = loggingEvent.fileName || '';\n\n // support for ESM as it uses url instead of path for file\n /* istanbul ignore next: unsure how to simulate ESM for test coverage */\n const convertFileURLToPath = function (filepath) {\n const urlPrefix = 'file://';\n if (filepath.startsWith(urlPrefix)) {\n // https://nodejs.org/api/url.html#urlfileurltopathurl\n if (typeof url.fileURLToPath === 'function') {\n filepath = url.fileURLToPath(filepath);\n }\n // backward-compatible for nodejs pre-10.12.0 (without url.fileURLToPath method)\n else {\n // posix: file:///hello/world/foo.txt -> /hello/world/foo.txt -> /hello/world/foo.txt\n // win32: file:///C:/path/foo.txt -> /C:/path/foo.txt -> \\C:\\path\\foo.txt -> C:\\path\\foo.txt\n // win32: file://nas/foo.txt -> //nas/foo.txt -> nas\\foo.txt -> \\\\nas\\foo.txt\n filepath = path.normalize(\n filepath.replace(new RegExp(`^${urlPrefix}`), '')\n );\n if (process.platform === 'win32') {\n if (filepath.startsWith('\\\\')) {\n filepath = filepath.slice(1);\n } else {\n filepath = path.sep + path.sep + filepath;\n }\n }\n }\n }\n return filepath;\n };\n filename = convertFileURLToPath(filename);\n\n if (specifier) {\n const fileDepth = parseInt(specifier, 10);\n const fileList = filename.split(path.sep);\n if (fileList.length > fileDepth) {\n filename = fileList.slice(-fileDepth).join(path.sep);\n }\n }\n\n return filename;\n }\n\n function lineNumber(loggingEvent) {\n return loggingEvent.lineNumber ? `${loggingEvent.lineNumber}` : '';\n }\n\n function columnNumber(loggingEvent) {\n return loggingEvent.columnNumber ? `${loggingEvent.columnNumber}` : '';\n }\n\n function callStack(loggingEvent) {\n return loggingEvent.callStack || '';\n }\n\n function className(loggingEvent) {\n return loggingEvent.className || '';\n }\n\n function functionName(loggingEvent) {\n return loggingEvent.functionName || '';\n }\n\n function functionAlias(loggingEvent) {\n return loggingEvent.functionAlias || '';\n }\n\n function callerName(loggingEvent) {\n return loggingEvent.callerName || '';\n }\n\n const replacers = {\n c: categoryName,\n d: formatAsDate,\n h: hostname,\n m: formatMessage,\n n: endOfLine,\n p: logLevel,\n r: startTime,\n '[': startColour,\n ']': endColour,\n y: clusterInfo,\n z: pid,\n '%': percent,\n x: userDefined,\n X: contextDefined,\n f: fileName,\n l: lineNumber,\n o: columnNumber,\n s: callStack,\n C: className,\n M: functionName,\n A: functionAlias,\n F: callerName,\n };\n\n function replaceToken(conversionCharacter, loggingEvent, specifier) {\n return replacers[conversionCharacter](loggingEvent, specifier);\n }\n\n function truncate(truncation, toTruncate) {\n let len;\n if (truncation) {\n len = parseInt(truncation.slice(1), 10);\n // negative truncate length means truncate from end of string\n return len > 0 ? toTruncate.slice(0, len) : toTruncate.slice(len);\n }\n\n return toTruncate;\n }\n\n function pad(padding, toPad) {\n let len;\n if (padding) {\n if (padding.charAt(0) === '-') {\n len = parseInt(padding.slice(1), 10);\n // Right pad with spaces\n while (toPad.length < len) {\n toPad += ' ';\n }\n } else {\n len = parseInt(padding, 10);\n // Left pad with spaces\n while (toPad.length < len) {\n toPad = ` ${toPad}`;\n }\n }\n }\n return toPad;\n }\n\n function truncateAndPad(toTruncAndPad, truncation, padding) {\n let replacement = toTruncAndPad;\n replacement = truncate(truncation, replacement);\n replacement = pad(padding, replacement);\n return replacement;\n }\n\n return function (loggingEvent) {\n let formattedString = '';\n let result;\n let searchString = pattern;\n\n while ((result = regex.exec(searchString)) !== null) {\n // const matchedString = result[0];\n const padding = result[1];\n const truncation = result[2];\n const conversionCharacter = result[3];\n const specifier = result[5];\n const text = result[6];\n\n // Check if the pattern matched was just normal text\n if (text) {\n formattedString += text.toString();\n } else {\n // Create a raw replacement string based on the conversion\n // character and specifier\n const replacement = replaceToken(\n conversionCharacter,\n loggingEvent,\n specifier\n );\n formattedString += truncateAndPad(replacement, truncation, padding);\n }\n searchString = searchString.slice(result.index + result[0].length);\n }\n return formattedString;\n };\n}\n\nconst layoutMakers = {\n messagePassThrough() {\n return messagePassThroughLayout;\n },\n basic() {\n return basicLayout;\n },\n colored() {\n return colouredLayout;\n },\n coloured() {\n return colouredLayout;\n },\n pattern(config) {\n return patternLayout(config && config.pattern, config && config.tokens);\n },\n dummy() {\n return dummyLayout;\n },\n};\n\nmodule.exports = {\n basicLayout,\n messagePassThroughLayout,\n patternLayout,\n colouredLayout,\n coloredLayout: colouredLayout,\n dummyLayout,\n addLayout(name, serializerGenerator) {\n layoutMakers[name] = serializerGenerator;\n },\n layout(name, config) {\n return layoutMakers[name] && layoutMakers[name](config);\n },\n};\n","const configuration = require('./configuration');\n\nconst validColours = [\n 'white',\n 'grey',\n 'black',\n 'blue',\n 'cyan',\n 'green',\n 'magenta',\n 'red',\n 'yellow',\n];\n\nclass Level {\n constructor(level, levelStr, colour) {\n this.level = level;\n this.levelStr = levelStr;\n this.colour = colour;\n }\n\n toString() {\n return this.levelStr;\n }\n\n /**\n * converts given String to corresponding Level\n * @param {(Level|string)} sArg -- String value of Level OR Log4js.Level\n * @param {Level} [defaultLevel] -- default Level, if no String representation\n * @return {Level}\n */\n static getLevel(sArg, defaultLevel) {\n if (!sArg) {\n return defaultLevel;\n }\n\n if (sArg instanceof Level) {\n return sArg;\n }\n\n // a json-serialised level won't be an instance of Level (see issue #768)\n if (sArg instanceof Object && sArg.levelStr) {\n sArg = sArg.levelStr;\n }\n\n return Level[sArg.toString().toUpperCase()] || defaultLevel;\n }\n\n static addLevels(customLevels) {\n if (customLevels) {\n const levels = Object.keys(customLevels);\n levels.forEach((l) => {\n const levelStr = l.toUpperCase();\n Level[levelStr] = new Level(\n customLevels[l].value,\n levelStr,\n customLevels[l].colour\n );\n const existingLevelIndex = Level.levels.findIndex(\n (lvl) => lvl.levelStr === levelStr\n );\n if (existingLevelIndex > -1) {\n Level.levels[existingLevelIndex] = Level[levelStr];\n } else {\n Level.levels.push(Level[levelStr]);\n }\n });\n Level.levels.sort((a, b) => a.level - b.level);\n }\n }\n\n isLessThanOrEqualTo(otherLevel) {\n if (typeof otherLevel === 'string') {\n otherLevel = Level.getLevel(otherLevel);\n }\n return this.level <= otherLevel.level;\n }\n\n isGreaterThanOrEqualTo(otherLevel) {\n if (typeof otherLevel === 'string') {\n otherLevel = Level.getLevel(otherLevel);\n }\n return this.level >= otherLevel.level;\n }\n\n isEqualTo(otherLevel) {\n if (typeof otherLevel === 'string') {\n otherLevel = Level.getLevel(otherLevel);\n }\n return this.level === otherLevel.level;\n }\n}\n\nLevel.levels = [];\nLevel.addLevels({\n ALL: { value: Number.MIN_VALUE, colour: 'grey' },\n TRACE: { value: 5000, colour: 'blue' },\n DEBUG: { value: 10000, colour: 'cyan' },\n INFO: { value: 20000, colour: 'green' },\n WARN: { value: 30000, colour: 'yellow' },\n ERROR: { value: 40000, colour: 'red' },\n FATAL: { value: 50000, colour: 'magenta' },\n MARK: { value: 9007199254740992, colour: 'grey' }, // 2^53\n OFF: { value: Number.MAX_VALUE, colour: 'grey' },\n});\n\nconfiguration.addListener((config) => {\n const levelConfig = config.levels;\n if (levelConfig) {\n configuration.throwExceptionIf(\n config,\n configuration.not(configuration.anObject(levelConfig)),\n 'levels must be an object'\n );\n const newLevels = Object.keys(levelConfig);\n newLevels.forEach((l) => {\n configuration.throwExceptionIf(\n config,\n configuration.not(configuration.validIdentifier(l)),\n `level name \"${l}\" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`\n );\n configuration.throwExceptionIf(\n config,\n configuration.not(configuration.anObject(levelConfig[l])),\n `level \"${l}\" must be an object`\n );\n configuration.throwExceptionIf(\n config,\n configuration.not(levelConfig[l].value),\n `level \"${l}\" must have a 'value' property`\n );\n configuration.throwExceptionIf(\n config,\n configuration.not(configuration.anInteger(levelConfig[l].value)),\n `level \"${l}\".value must have an integer value`\n );\n configuration.throwExceptionIf(\n config,\n configuration.not(levelConfig[l].colour),\n `level \"${l}\" must have a 'colour' property`\n );\n configuration.throwExceptionIf(\n config,\n configuration.not(validColours.indexOf(levelConfig[l].colour) > -1),\n `level \"${l}\".colour must be one of ${validColours.join(', ')}`\n );\n });\n }\n});\n\nconfiguration.addListener((config) => {\n Level.addLevels(config.levels);\n});\n\nmodule.exports = Level;\n","/**\n * @fileoverview log4js is a library to log in JavaScript in similar manner\n * than in log4j for Java (but not really).\n *\n *

Example:

\n *
\n *  const logging = require('log4js');\n *  const log = logging.getLogger('some-category');\n *\n *  //call the log\n *  log.trace('trace me' );\n * 
\n *\n * NOTE: the authors below are the original browser-based log4js authors\n * don't try to contact them about bugs in this version :)\n * @author Stephan Strittmatter - http://jroller.com/page/stritti\n * @author Seth Chisamore - http://www.chisamore.com\n * @since 2005-05-20\n * Website: http://log4js.berlios.de\n */\nconst debug = require('debug')('log4js:main');\nconst fs = require('fs');\nconst deepClone = require('rfdc')({ proto: true });\nconst configuration = require('./configuration');\nconst layouts = require('./layouts');\nconst levels = require('./levels');\nconst appenders = require('./appenders');\nconst categories = require('./categories');\nconst Logger = require('./logger');\nconst clustering = require('./clustering');\nconst connectLogger = require('./connect-logger');\nconst recordingModule = require('./appenders/recording');\n\nlet enabled = false;\n\nfunction sendLogEventToAppender(logEvent) {\n if (!enabled) return;\n debug('Received log event ', logEvent);\n const categoryAppenders = categories.appendersForCategory(\n logEvent.categoryName\n );\n categoryAppenders.forEach((appender) => {\n appender(logEvent);\n });\n}\n\nfunction loadConfigurationFile(filename) {\n debug(`Loading configuration from ${filename}`);\n try {\n return JSON.parse(fs.readFileSync(filename, 'utf8'));\n } catch (e) {\n throw new Error(\n `Problem reading config from file \"${filename}\". Error was ${e.message}`,\n e\n );\n }\n}\n\nfunction configure(configurationFileOrObject) {\n if (enabled) {\n // eslint-disable-next-line no-use-before-define\n shutdown();\n }\n\n let configObject = configurationFileOrObject;\n\n if (typeof configObject === 'string') {\n configObject = loadConfigurationFile(configurationFileOrObject);\n }\n debug(`Configuration is ${configObject}`);\n\n configuration.configure(deepClone(configObject));\n\n clustering.onMessage(sendLogEventToAppender);\n\n enabled = true;\n\n // eslint-disable-next-line no-use-before-define\n return log4js;\n}\n\nfunction isConfigured() {\n return enabled;\n}\n\nfunction recording() {\n return recordingModule;\n}\n\n/**\n * This callback type is called `shutdownCallback` and is displayed as a global symbol.\n *\n * @callback shutdownCallback\n * @param {Error} [error]\n */\n\n/**\n * Shutdown all log appenders. This will first disable all writing to appenders\n * and then call the shutdown function each appender.\n *\n * @param {shutdownCallback} [callback] - The callback to be invoked once all appenders have\n * shutdown. If an error occurs, the callback will be given the error object\n * as the first argument.\n */\nfunction shutdown(callback = () => {}) {\n if (typeof callback !== 'function') {\n throw new TypeError('Invalid callback passed to shutdown');\n }\n debug('Shutdown called. Disabling all log writing.');\n // First, disable all writing to appenders. This prevents appenders from\n // not being able to be drained because of run-away log writes.\n enabled = false;\n\n // Clone out to maintain a reference\n const appendersToCheck = Array.from(appenders.values());\n\n // Reset immediately to prevent leaks\n appenders.init();\n categories.init();\n\n // Count the number of shutdown functions\n const shutdownFunctions = appendersToCheck.reduce(\n (accum, next) => (next.shutdown ? accum + 1 : accum),\n 0\n );\n if (shutdownFunctions === 0) {\n debug('No appenders with shutdown functions found.');\n callback();\n }\n\n let completed = 0;\n let error;\n debug(`Found ${shutdownFunctions} appenders with shutdown functions.`);\n function complete(err) {\n error = error || err;\n completed += 1;\n debug(`Appender shutdowns complete: ${completed} / ${shutdownFunctions}`);\n if (completed >= shutdownFunctions) {\n debug('All shutdown functions completed.');\n callback(error);\n }\n }\n\n // Call each of the shutdown functions\n appendersToCheck\n .filter((a) => a.shutdown)\n .forEach((a) => a.shutdown(complete));\n}\n\n/**\n * Get a logger instance.\n * @static\n * @param {string} [category=default]\n * @return {Logger} instance of logger for the category\n */\nfunction getLogger(category) {\n if (!enabled) {\n configure(\n process.env.LOG4JS_CONFIG || {\n appenders: { out: { type: 'stdout' } },\n categories: { default: { appenders: ['out'], level: 'OFF' } },\n }\n );\n }\n return new Logger(category || 'default');\n}\n\n/**\n * @name log4js\n * @namespace Log4js\n * @property getLogger\n * @property configure\n * @property shutdown\n */\nconst log4js = {\n getLogger,\n configure,\n isConfigured,\n shutdown,\n connectLogger,\n levels,\n addLayout: layouts.addLayout,\n recording,\n};\n\nmodule.exports = log4js;\n","/* eslint no-underscore-dangle: [\"error\", { \"allow\": [\"_log\"] }] */\n\nconst debug = require('debug')('log4js:logger');\nconst LoggingEvent = require('./LoggingEvent');\nconst levels = require('./levels');\nconst clustering = require('./clustering');\nconst categories = require('./categories');\nconst configuration = require('./configuration');\n\nconst stackReg = /^(?:\\s*)at (?:(.+) \\()?(?:([^(]+?):(\\d+):(\\d+))\\)?$/;\n/**\n * The top entry is the Error\n */\nconst baseCallStackSkip = 1;\n/**\n * The _log function is 3 levels deep, we need to skip those to make it to the callSite\n */\nconst defaultErrorCallStackSkip = 3;\n\n/**\n *\n * @param {Error} data\n * @param {number} skipIdx\n * @returns {import('../types/log4js').CallStack | null}\n */\nfunction defaultParseCallStack(\n data,\n skipIdx = defaultErrorCallStackSkip + baseCallStackSkip\n) {\n try {\n const stacklines = data.stack.split('\\n').slice(skipIdx);\n if (!stacklines.length) {\n // There's no stack in this stack\n // Should we try a previous index if skipIdx was set?\n return null;\n }\n const lineMatch = stackReg.exec(stacklines[0]);\n /* istanbul ignore else: failsafe */\n if (lineMatch && lineMatch.length === 5) {\n // extract class, function and alias names\n let className = '';\n let functionName = '';\n let functionAlias = '';\n if (lineMatch[1] && lineMatch[1] !== '') {\n // WARN: this will unset alias if alias is not present.\n [functionName, functionAlias] = lineMatch[1]\n .replace(/[[\\]]/g, '')\n .split(' as ');\n functionAlias = functionAlias || '';\n\n if (functionName.includes('.'))\n [className, functionName] = functionName.split('.');\n }\n\n return {\n fileName: lineMatch[2],\n lineNumber: parseInt(lineMatch[3], 10),\n columnNumber: parseInt(lineMatch[4], 10),\n callStack: stacklines.join('\\n'),\n className,\n functionName,\n functionAlias,\n callerName: lineMatch[1] || '',\n };\n // eslint-disable-next-line no-else-return\n } else {\n // will never get here unless nodejs has changes to Error\n console.error('log4js.logger - defaultParseCallStack error'); // eslint-disable-line no-console\n }\n } catch (err) {\n // will never get error unless nodejs has breaking changes to Error\n console.error('log4js.logger - defaultParseCallStack error', err); // eslint-disable-line no-console\n }\n return null;\n}\n\n/**\n * Logger to log messages.\n * use {@see log4js#getLogger(String)} to get an instance.\n *\n * @name Logger\n * @namespace Log4js\n * @param name name of category to log to\n * @param level - the loglevel for the category\n * @param dispatch - the function which will receive the logevents\n *\n * @author Stephan Strittmatter\n */\nclass Logger {\n constructor(name) {\n if (!name) {\n throw new Error('No category provided.');\n }\n this.category = name;\n this.context = {};\n /** @private */\n this.callStackSkipIndex = 0;\n /** @private */\n this.parseCallStack = defaultParseCallStack;\n debug(`Logger created (${this.category}, ${this.level})`);\n }\n\n get level() {\n return levels.getLevel(\n categories.getLevelForCategory(this.category),\n levels.OFF\n );\n }\n\n set level(level) {\n categories.setLevelForCategory(\n this.category,\n levels.getLevel(level, this.level)\n );\n }\n\n get useCallStack() {\n return categories.getEnableCallStackForCategory(this.category);\n }\n\n set useCallStack(bool) {\n categories.setEnableCallStackForCategory(this.category, bool === true);\n }\n\n get callStackLinesToSkip() {\n return this.callStackSkipIndex;\n }\n\n set callStackLinesToSkip(number) {\n if (typeof number !== 'number') {\n throw new TypeError('Must be a number');\n }\n if (number < 0) {\n throw new RangeError('Must be >= 0');\n }\n this.callStackSkipIndex = number;\n }\n\n log(level, ...args) {\n const logLevel = levels.getLevel(level);\n if (!logLevel) {\n if (configuration.validIdentifier(level) && args.length > 0) {\n // logLevel not found but of valid signature, WARN before fallback to INFO\n this.log(\n levels.WARN,\n 'log4js:logger.log: valid log-level not found as first parameter given:',\n level\n );\n this.log(levels.INFO, `[${level}]`, ...args);\n } else {\n // apart from fallback, allow .log(...args) to be synonym with .log(\"INFO\", ...args)\n this.log(levels.INFO, level, ...args);\n }\n } else if (this.isLevelEnabled(logLevel)) {\n this._log(logLevel, args);\n }\n }\n\n isLevelEnabled(otherLevel) {\n return this.level.isLessThanOrEqualTo(otherLevel);\n }\n\n _log(level, data) {\n debug(`sending log data (${level}) to appenders`);\n const error = data.find((item) => item instanceof Error);\n let callStack;\n if (this.useCallStack) {\n try {\n if (error) {\n callStack = this.parseCallStack(\n error,\n this.callStackSkipIndex + baseCallStackSkip\n );\n }\n } catch (_err) {\n // Ignore Error and use the original method of creating a new Error.\n }\n callStack =\n callStack ||\n this.parseCallStack(\n new Error(),\n this.callStackSkipIndex +\n defaultErrorCallStackSkip +\n baseCallStackSkip\n );\n }\n const loggingEvent = new LoggingEvent(\n this.category,\n level,\n data,\n this.context,\n callStack,\n error\n );\n clustering.send(loggingEvent);\n }\n\n addContext(key, value) {\n this.context[key] = value;\n }\n\n removeContext(key) {\n delete this.context[key];\n }\n\n clearContext() {\n this.context = {};\n }\n\n setParseCallStackFunction(parseFunction) {\n if (typeof parseFunction === 'function') {\n this.parseCallStack = parseFunction;\n } else if (typeof parseFunction === 'undefined') {\n this.parseCallStack = defaultParseCallStack;\n } else {\n throw new TypeError('Invalid type passed to setParseCallStackFunction');\n }\n }\n}\n\nfunction addLevelMethods(target) {\n const level = levels.getLevel(target);\n\n const levelStrLower = level.toString().toLowerCase();\n const levelMethod = levelStrLower.replace(/_([a-z])/g, (g) =>\n g[1].toUpperCase()\n );\n const isLevelMethod = levelMethod[0].toUpperCase() + levelMethod.slice(1);\n\n Logger.prototype[`is${isLevelMethod}Enabled`] = function () {\n return this.isLevelEnabled(level);\n };\n\n Logger.prototype[levelMethod] = function (...args) {\n this.log(level, ...args);\n };\n}\n\nlevels.levels.forEach(addLevelMethods);\n\nconfiguration.addListener(() => {\n levels.levels.forEach(addLevelMethods);\n});\n\nmodule.exports = Logger;\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","'use strict'\nmodule.exports = rfdc\n\nfunction copyBuffer (cur) {\n if (cur instanceof Buffer) {\n return Buffer.from(cur)\n }\n\n return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length)\n}\n\nfunction rfdc (opts) {\n opts = opts || {}\n if (opts.circles) return rfdcCircles(opts)\n\n const constructorHandlers = new Map()\n constructorHandlers.set(Date, (o) => new Date(o))\n constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)))\n constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)))\n if (opts.constructorHandlers) {\n for (const handler of opts.constructorHandlers) {\n constructorHandlers.set(handler[0], handler[1])\n }\n }\n\n let handler = null\n\n return opts.proto ? cloneProto : clone\n\n function cloneArray (a, fn) {\n const keys = Object.keys(a)\n const a2 = new Array(keys.length)\n for (let i = 0; i < keys.length; i++) {\n const k = keys[i]\n const cur = a[k]\n if (typeof cur !== 'object' || cur === null) {\n a2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n a2[k] = handler(cur, fn)\n } else if (ArrayBuffer.isView(cur)) {\n a2[k] = copyBuffer(cur)\n } else {\n a2[k] = fn(cur)\n }\n }\n return a2\n }\n\n function clone (o) {\n if (typeof o !== 'object' || o === null) return o\n if (Array.isArray(o)) return cloneArray(o, clone)\n if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {\n return handler(o, clone)\n }\n const o2 = {}\n for (const k in o) {\n if (Object.hasOwnProperty.call(o, k) === false) continue\n const cur = o[k]\n if (typeof cur !== 'object' || cur === null) {\n o2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n o2[k] = handler(cur, clone)\n } else if (ArrayBuffer.isView(cur)) {\n o2[k] = copyBuffer(cur)\n } else {\n o2[k] = clone(cur)\n }\n }\n return o2\n }\n\n function cloneProto (o) {\n if (typeof o !== 'object' || o === null) return o\n if (Array.isArray(o)) return cloneArray(o, cloneProto)\n if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {\n return handler(o, cloneProto)\n }\n const o2 = {}\n for (const k in o) {\n const cur = o[k]\n if (typeof cur !== 'object' || cur === null) {\n o2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n o2[k] = handler(cur, cloneProto)\n } else if (ArrayBuffer.isView(cur)) {\n o2[k] = copyBuffer(cur)\n } else {\n o2[k] = cloneProto(cur)\n }\n }\n return o2\n }\n}\n\nfunction rfdcCircles (opts) {\n const refs = []\n const refsNew = []\n\n const constructorHandlers = new Map()\n constructorHandlers.set(Date, (o) => new Date(o))\n constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)))\n constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)))\n if (opts.constructorHandlers) {\n for (const handler of opts.constructorHandlers) {\n constructorHandlers.set(handler[0], handler[1])\n }\n }\n\n let handler = null\n return opts.proto ? cloneProto : clone\n\n function cloneArray (a, fn) {\n const keys = Object.keys(a)\n const a2 = new Array(keys.length)\n for (let i = 0; i < keys.length; i++) {\n const k = keys[i]\n const cur = a[k]\n if (typeof cur !== 'object' || cur === null) {\n a2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n a2[k] = handler(cur, fn)\n } else if (ArrayBuffer.isView(cur)) {\n a2[k] = copyBuffer(cur)\n } else {\n const index = refs.indexOf(cur)\n if (index !== -1) {\n a2[k] = refsNew[index]\n } else {\n a2[k] = fn(cur)\n }\n }\n }\n return a2\n }\n\n function clone (o) {\n if (typeof o !== 'object' || o === null) return o\n if (Array.isArray(o)) return cloneArray(o, clone)\n if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {\n return handler(o, clone)\n }\n const o2 = {}\n refs.push(o)\n refsNew.push(o2)\n for (const k in o) {\n if (Object.hasOwnProperty.call(o, k) === false) continue\n const cur = o[k]\n if (typeof cur !== 'object' || cur === null) {\n o2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n o2[k] = handler(cur, clone)\n } else if (ArrayBuffer.isView(cur)) {\n o2[k] = copyBuffer(cur)\n } else {\n const i = refs.indexOf(cur)\n if (i !== -1) {\n o2[k] = refsNew[i]\n } else {\n o2[k] = clone(cur)\n }\n }\n }\n refs.pop()\n refsNew.pop()\n return o2\n }\n\n function cloneProto (o) {\n if (typeof o !== 'object' || o === null) return o\n if (Array.isArray(o)) return cloneArray(o, cloneProto)\n if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {\n return handler(o, cloneProto)\n }\n const o2 = {}\n refs.push(o)\n refsNew.push(o2)\n for (const k in o) {\n const cur = o[k]\n if (typeof cur !== 'object' || cur === null) {\n o2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n o2[k] = handler(cur, cloneProto)\n } else if (ArrayBuffer.isView(cur)) {\n o2[k] = copyBuffer(cur)\n } else {\n const i = refs.indexOf(cur)\n if (i !== -1) {\n o2[k] = refsNew[i]\n } else {\n o2[k] = cloneProto(cur)\n }\n }\n }\n refs.pop()\n refsNew.pop()\n return o2\n }\n}\n","const RollingFileWriteStream = require('./RollingFileWriteStream');\n\n// just to adapt the previous version\nclass DateRollingFileStream extends RollingFileWriteStream {\n constructor(filename, pattern, options) {\n if (pattern && typeof(pattern) === 'object') {\n options = pattern;\n pattern = null;\n }\n if (!options) {\n options = {};\n }\n if (!pattern) {\n pattern = 'yyyy-MM-dd';\n }\n options.pattern = pattern;\n if (!options.numBackups && options.numBackups !== 0) {\n if (!options.daysToKeep && options.daysToKeep !== 0) {\n options.daysToKeep = 1;\n } else {\n process.emitWarning(\n \"options.daysToKeep is deprecated due to the confusion it causes when used \" + \n \"together with file size rolling. Please use options.numBackups instead.\",\n \"DeprecationWarning\", \"streamroller-DEP0001\"\n );\n }\n options.numBackups = options.daysToKeep;\n } else {\n options.daysToKeep = options.numBackups;\n }\n super(filename, options);\n this.mode = this.options.mode;\n }\n\n get theStream() {\n return this.currentFileStream;\n }\n\n}\n\nmodule.exports = DateRollingFileStream;\n","const RollingFileWriteStream = require('./RollingFileWriteStream');\n\n// just to adapt the previous version\nclass RollingFileStream extends RollingFileWriteStream {\n constructor(filename, size, backups, options) {\n if (!options) {\n options = {};\n }\n if (size) {\n options.maxSize = size;\n }\n if (!options.numBackups && options.numBackups !== 0) {\n if (!backups && backups !== 0) {\n backups = 1;\n }\n options.numBackups = backups;\n }\n super(filename, options);\n this.backups = options.numBackups;\n this.size = this.options.maxSize;\n }\n\n get theStream() {\n return this.currentFileStream;\n }\n\n}\n\nmodule.exports = RollingFileStream;\n","const debug = require(\"debug\")(\"streamroller:RollingFileWriteStream\");\nconst fs = require(\"fs-extra\");\nconst path = require(\"path\");\nconst os = require(\"os\");\nconst newNow = require(\"./now\");\nconst format = require(\"date-format\");\nconst { Writable } = require(\"stream\");\nconst fileNameFormatter = require(\"./fileNameFormatter\");\nconst fileNameParser = require(\"./fileNameParser\");\nconst moveAndMaybeCompressFile = require(\"./moveAndMaybeCompressFile\");\n\nconst deleteFiles = fileNames => {\n debug(`deleteFiles: files to delete: ${fileNames}`);\n return Promise.all(fileNames.map(f => fs.unlink(f).catch((e) => {\n debug(`deleteFiles: error when unlinking ${f}, ignoring. Error was ${e}`);\n })));\n};\n\n/**\n * RollingFileWriteStream is mainly used when writing to a file rolling by date or size.\n * RollingFileWriteStream inherits from stream.Writable\n */\nclass RollingFileWriteStream extends Writable {\n /**\n * Create a RollingFileWriteStream\n * @constructor\n * @param {string} filePath - The file path to write.\n * @param {object} options - The extra options\n * @param {number} options.numToKeep - The max numbers of files to keep.\n * @param {number} options.maxSize - The maxSize one file can reach. Unit is Byte.\n * This should be more than 1024. The default is 0.\n * If not specified or 0, then no log rolling will happen.\n * @param {string} options.mode - The mode of the files. The default is '0600'. Refer to stream.writable for more.\n * @param {string} options.flags - The default is 'a'. Refer to stream.flags for more.\n * @param {boolean} options.compress - Whether to compress backup files.\n * @param {boolean} options.keepFileExt - Whether to keep the file extension.\n * @param {string} options.pattern - The date string pattern in the file name.\n * @param {boolean} options.alwaysIncludePattern - Whether to add date to the name of the first file.\n */\n constructor(filePath, options) {\n debug(`constructor: creating RollingFileWriteStream. path=${filePath}`);\n if (typeof filePath !== \"string\" || filePath.length === 0) {\n throw new Error(`Invalid filename: ${filePath}`);\n } else if (filePath.endsWith(path.sep)) {\n throw new Error(`Filename is a directory: ${filePath}`);\n } else if (filePath.indexOf(`~${path.sep}`) === 0) {\n // handle ~ expansion: https://github.com/nodejs/node/issues/684\n // exclude ~ and ~filename as these can be valid files\n filePath = filePath.replace(\"~\", os.homedir());\n }\n super(options);\n this.options = this._parseOption(options);\n this.fileObject = path.parse(filePath);\n if (this.fileObject.dir === \"\") {\n this.fileObject = path.parse(path.join(process.cwd(), filePath));\n }\n this.fileFormatter = fileNameFormatter({\n file: this.fileObject,\n alwaysIncludeDate: this.options.alwaysIncludePattern,\n needsIndex: this.options.maxSize < Number.MAX_SAFE_INTEGER,\n compress: this.options.compress,\n keepFileExt: this.options.keepFileExt,\n fileNameSep: this.options.fileNameSep\n });\n\n this.fileNameParser = fileNameParser({\n file: this.fileObject,\n keepFileExt: this.options.keepFileExt,\n pattern: this.options.pattern,\n fileNameSep: this.options.fileNameSep\n });\n\n this.state = {\n currentSize: 0\n };\n\n if (this.options.pattern) {\n this.state.currentDate = format(this.options.pattern, newNow());\n }\n\n this.filename = this.fileFormatter({\n index: 0,\n date: this.state.currentDate\n });\n if ([\"a\", \"a+\", \"as\", \"as+\"].includes(this.options.flags)) {\n this._setExistingSizeAndDate();\n }\n\n debug(\n `constructor: create new file ${this.filename}, state=${JSON.stringify(\n this.state\n )}`\n );\n this._renewWriteStream();\n }\n\n _setExistingSizeAndDate() {\n try {\n const stats = fs.statSync(this.filename);\n this.state.currentSize = stats.size;\n if (this.options.pattern) {\n this.state.currentDate = format(this.options.pattern, stats.mtime);\n }\n } catch (e) {\n //file does not exist, that's fine - move along\n return;\n }\n }\n\n _parseOption(rawOptions) {\n const defaultOptions = {\n maxSize: 0,\n numToKeep: Number.MAX_SAFE_INTEGER,\n encoding: \"utf8\",\n mode: parseInt(\"0600\", 8),\n flags: \"a\",\n compress: false,\n keepFileExt: false,\n alwaysIncludePattern: false\n };\n const options = Object.assign({}, defaultOptions, rawOptions);\n if (!options.maxSize) {\n delete options.maxSize;\n } else if (options.maxSize <= 0) {\n throw new Error(`options.maxSize (${options.maxSize}) should be > 0`);\n }\n // options.numBackups will supercede options.numToKeep\n if (options.numBackups || options.numBackups === 0) {\n if (options.numBackups < 0) {\n throw new Error(`options.numBackups (${options.numBackups}) should be >= 0`);\n } else if (options.numBackups >= Number.MAX_SAFE_INTEGER) {\n // to cater for numToKeep (include the hot file) at Number.MAX_SAFE_INTEGER\n throw new Error(`options.numBackups (${options.numBackups}) should be < Number.MAX_SAFE_INTEGER`);\n } else {\n options.numToKeep = options.numBackups + 1;\n }\n } else if (options.numToKeep <= 0) {\n throw new Error(`options.numToKeep (${options.numToKeep}) should be > 0`);\n }\n debug(\n `_parseOption: creating stream with option=${JSON.stringify(options)}`\n );\n return options;\n }\n\n _final(callback) {\n this.currentFileStream.end(\"\", this.options.encoding, callback);\n }\n\n _write(chunk, encoding, callback) {\n this._shouldRoll().then(() => {\n debug(\n `_write: writing chunk. ` +\n `file=${this.currentFileStream.path} ` +\n `state=${JSON.stringify(this.state)} ` +\n `chunk=${chunk}`\n );\n this.currentFileStream.write(chunk, encoding, e => {\n this.state.currentSize += chunk.length;\n callback(e);\n });\n });\n }\n\n async _shouldRoll() {\n if (this._dateChanged() || this._tooBig()) {\n debug(\n `_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`\n );\n await this._roll();\n }\n }\n\n _dateChanged() {\n return (\n this.state.currentDate &&\n this.state.currentDate !== format(this.options.pattern, newNow())\n );\n }\n\n _tooBig() {\n return this.state.currentSize >= this.options.maxSize;\n }\n\n _roll() {\n debug(`_roll: closing the current stream`);\n return new Promise((resolve, reject) => {\n this.currentFileStream.end(\"\", this.options.encoding, () => {\n this._moveOldFiles()\n .then(resolve)\n .catch(reject);\n });\n });\n }\n\n async _moveOldFiles() {\n const files = await this._getExistingFiles();\n const todaysFiles = this.state.currentDate\n ? files.filter(f => f.date === this.state.currentDate)\n : files;\n for (let i = todaysFiles.length; i >= 0; i--) {\n debug(`_moveOldFiles: i = ${i}`);\n const sourceFilePath = this.fileFormatter({\n date: this.state.currentDate,\n index: i\n });\n const targetFilePath = this.fileFormatter({\n date: this.state.currentDate,\n index: i + 1\n });\n\n const moveAndCompressOptions = {\n compress: this.options.compress && i === 0,\n mode: this.options.mode\n };\n await moveAndMaybeCompressFile(\n sourceFilePath,\n targetFilePath,\n moveAndCompressOptions\n );\n }\n\n this.state.currentSize = 0;\n this.state.currentDate = this.state.currentDate\n ? format(this.options.pattern, newNow())\n : null;\n debug(\n `_moveOldFiles: finished rolling files. state=${JSON.stringify(\n this.state\n )}`\n );\n this._renewWriteStream();\n // wait for the file to be open before cleaning up old ones,\n // otherwise the daysToKeep calculations can be off\n await new Promise((resolve, reject) => {\n this.currentFileStream.write(\"\", \"utf8\", () => {\n this._clean()\n .then(resolve)\n .catch(reject);\n });\n });\n }\n\n // Sorted from the oldest to the latest\n async _getExistingFiles() {\n const files = await fs.readdir(this.fileObject.dir)\n .catch( /* istanbul ignore next: will not happen on windows */ () => []);\n\n debug(`_getExistingFiles: files=${files}`);\n const existingFileDetails = files\n .map(n => this.fileNameParser(n))\n .filter(n => n);\n\n const getKey = n =>\n (n.timestamp ? n.timestamp : newNow().getTime()) - n.index;\n existingFileDetails.sort((a, b) => getKey(a) - getKey(b));\n\n return existingFileDetails;\n }\n\n _renewWriteStream() {\n const filePath = this.fileFormatter({\n date: this.state.currentDate,\n index: 0\n });\n\n // attempt to create the directory\n const mkdir = (dir) => {\n try {\n return fs.mkdirSync(dir, { recursive: true });\n }\n // backward-compatible fs.mkdirSync for nodejs pre-10.12.0 (without recursive option)\n catch (e) {\n // recursive creation of parent first\n if (e.code === \"ENOENT\") {\n mkdir(path.dirname(dir));\n return mkdir(dir);\n }\n\n // throw error for all except EEXIST and EROFS (read-only filesystem)\n if (e.code !== \"EEXIST\" && e.code !== \"EROFS\") {\n throw e;\n }\n\n // EEXIST: throw if file and not directory\n // EROFS : throw if directory not found\n else {\n try {\n if (fs.statSync(dir).isDirectory()) {\n return dir;\n }\n throw e;\n } catch (err) {\n throw e;\n }\n }\n }\n };\n mkdir(this.fileObject.dir);\n\n const ops = {\n flags: this.options.flags,\n encoding: this.options.encoding,\n mode: this.options.mode\n };\n const renameKey = function(obj, oldKey, newKey) {\n obj[newKey] = obj[oldKey];\n delete obj[oldKey];\n return obj;\n };\n // try to throw EISDIR, EROFS, EACCES\n fs.appendFileSync(filePath, \"\", renameKey({ ...ops }, \"flags\", \"flag\"));\n this.currentFileStream = fs.createWriteStream(filePath, ops);\n this.currentFileStream.on(\"error\", e => {\n this.emit(\"error\", e);\n });\n }\n\n async _clean() {\n const existingFileDetails = await this._getExistingFiles();\n debug(\n `_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${existingFileDetails.length}`\n );\n debug(\"_clean: existing files are: \", existingFileDetails);\n if (this._tooManyFiles(existingFileDetails.length)) {\n const fileNamesToRemove = existingFileDetails\n .slice(0, existingFileDetails.length - this.options.numToKeep)\n .map(f => path.format({ dir: this.fileObject.dir, base: f.filename }));\n await deleteFiles(fileNamesToRemove);\n }\n }\n\n _tooManyFiles(numFiles) {\n return this.options.numToKeep > 0 && numFiles > this.options.numToKeep;\n }\n}\n\nmodule.exports = RollingFileWriteStream;\n","const debug = require(\"debug\")(\"streamroller:fileNameFormatter\");\nconst path = require(\"path\");\nconst ZIP_EXT = \".gz\";\nconst DEFAULT_FILENAME_SEP = \".\";\n\nmodule.exports = ({\n file,\n keepFileExt,\n needsIndex,\n alwaysIncludeDate,\n compress,\n fileNameSep\n}) => {\n let FILENAME_SEP = fileNameSep || DEFAULT_FILENAME_SEP;\n const dirAndName = path.join(file.dir, file.name);\n\n const ext = f => f + file.ext;\n\n const index = (f, i, d) =>\n (needsIndex || !d) && i ? f + FILENAME_SEP + i : f;\n\n const date = (f, i, d) => {\n return (i > 0 || alwaysIncludeDate) && d ? f + FILENAME_SEP + d : f;\n };\n\n const gzip = (f, i) => (i && compress ? f + ZIP_EXT : f);\n\n const parts = keepFileExt\n ? [date, index, ext, gzip]\n : [ext, date, index, gzip];\n\n return ({ date, index }) => {\n debug(`_formatFileName: date=${date}, index=${index}`);\n return parts.reduce(\n (filename, part) => part(filename, index, date),\n dirAndName\n );\n };\n};\n","const debug = require(\"debug\")(\"streamroller:fileNameParser\");\nconst ZIP_EXT = \".gz\";\nconst format = require(\"date-format\");\nconst DEFAULT_FILENAME_SEP = \".\";\n\nmodule.exports = ({ file, keepFileExt, pattern, fileNameSep }) => {\n let FILENAME_SEP = fileNameSep || DEFAULT_FILENAME_SEP;\n // All these functions take two arguments: f, the filename, and p, the result placeholder\n // They return the filename with any matching parts removed.\n // The \"zip\" function, for instance, removes the \".gz\" part of the filename (if present)\n const zip = (f, p) => {\n if (f.endsWith(ZIP_EXT)) {\n debug(\"it is gzipped\");\n p.isCompressed = true;\n return f.slice(0, -1 * ZIP_EXT.length);\n }\n return f;\n };\n\n const __NOT_MATCHING__ = \"__NOT_MATCHING__\";\n\n const extAtEnd = f => {\n if (f.startsWith(file.name) && f.endsWith(file.ext)) {\n debug(\"it starts and ends with the right things\");\n return f.slice(file.name.length + 1, -1 * file.ext.length);\n }\n return __NOT_MATCHING__;\n };\n\n const extInMiddle = f => {\n if (f.startsWith(file.base)) {\n debug(\"it starts with the right things\");\n return f.slice(file.base.length + 1);\n }\n return __NOT_MATCHING__;\n };\n\n const dateAndIndex = (f, p) => {\n const items = f.split(FILENAME_SEP);\n let indexStr = items[items.length - 1];\n debug(\"items: \", items, \", indexStr: \", indexStr);\n let dateStr = f;\n if (indexStr !== undefined && indexStr.match(/^\\d+$/)) {\n dateStr = f.slice(0, -1 * (indexStr.length + 1));\n debug(`dateStr is ${dateStr}`);\n if (pattern && !dateStr) {\n dateStr = indexStr;\n indexStr = \"0\";\n }\n } else {\n indexStr = \"0\";\n }\n\n try {\n // Two arguments for new Date() are intentional. This will set other date\n // components to minimal values in the current timezone instead of UTC,\n // as new Date(0) will do.\n const date = format.parse(pattern, dateStr, new Date(0, 0));\n if (format.asString(pattern, date) !== dateStr) return f;\n p.index = parseInt(indexStr, 10);\n p.date = dateStr;\n p.timestamp = date.getTime();\n return \"\";\n } catch (e) {\n //not a valid date, don't panic.\n debug(`Problem parsing ${dateStr} as ${pattern}, error was: `, e);\n return f;\n }\n };\n\n const index = (f, p) => {\n if (f.match(/^\\d+$/)) {\n debug(\"it has an index\");\n p.index = parseInt(f, 10);\n return \"\";\n }\n return f;\n };\n\n let parts = [\n zip,\n keepFileExt ? extAtEnd : extInMiddle,\n pattern ? dateAndIndex : index\n ];\n\n return filename => {\n let result = { filename, index: 0, isCompressed: false };\n // pass the filename through each of the file part parsers\n let whatsLeftOver = parts.reduce(\n (remains, part) => part(remains, result),\n filename\n );\n // if there's anything left after parsing, then it wasn't a valid filename\n return whatsLeftOver ? null : result;\n };\n};\n","module.exports = {\n RollingFileWriteStream: require('./RollingFileWriteStream'),\n RollingFileStream: require('./RollingFileStream'),\n DateRollingFileStream: require('./DateRollingFileStream')\n};\n","const debug = require('debug')('streamroller:moveAndMaybeCompressFile');\nconst fs = require('fs-extra');\nconst zlib = require('zlib');\n\nconst _parseOption = function(rawOptions){\n const defaultOptions = {\n mode: parseInt(\"0600\", 8),\n compress: false,\n };\n const options = Object.assign({}, defaultOptions, rawOptions);\n debug(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(options)}`);\n return options;\n};\n\nconst moveAndMaybeCompressFile = async (\n sourceFilePath,\n targetFilePath,\n options\n) => {\n options = _parseOption(options);\n\n if (sourceFilePath === targetFilePath) {\n debug(`moveAndMaybeCompressFile: source and target are the same, not doing anything`);\n return;\n }\n\n if (await fs.pathExists(sourceFilePath)) {\n debug(\n `moveAndMaybeCompressFile: moving file from ${sourceFilePath} to ${targetFilePath} ${\n options.compress ? \"with\" : \"without\"\n } compress`\n );\n if (options.compress) {\n await new Promise((resolve, reject) => {\n let isCreated = false;\n // to avoid concurrency, the forked process which can create the file will proceed (using flags wx)\n const writeStream = fs.createWriteStream(targetFilePath, { mode: options.mode, flags: \"wx\" })\n // wait until writable stream is valid before proceeding to read\n .on(\"open\", () => {\n isCreated = true;\n const readStream = fs.createReadStream(sourceFilePath)\n // wait until readable stream is valid before piping\n .on(\"open\", () => {\n readStream.pipe(zlib.createGzip()).pipe(writeStream);\n })\n .on(\"error\", (e) => {\n debug(`moveAndMaybeCompressFile: error reading ${sourceFilePath}`, e);\n // manually close writable: https://nodejs.org/api/stream.html#readablepipedestination-options\n writeStream.destroy(e);\n });\n })\n .on(\"finish\", () => {\n debug(`moveAndMaybeCompressFile: finished compressing ${targetFilePath}, deleting ${sourceFilePath}`);\n // delete sourceFilePath\n fs.unlink(sourceFilePath)\n .then(resolve)\n .catch((e) => {\n debug(`moveAndMaybeCompressFile: error deleting ${sourceFilePath}, truncating instead`, e);\n // fallback to truncate\n fs.truncate(sourceFilePath)\n .then(resolve)\n .catch((e) => {\n debug(`moveAndMaybeCompressFile: error truncating ${sourceFilePath}`, e);\n reject(e);\n });\n });\n })\n .on(\"error\", (e) => {\n if (!isCreated) {\n debug(`moveAndMaybeCompressFile: error creating ${targetFilePath}`, e);\n // do not do anything if handled by another forked process\n reject(e);\n } else {\n debug(`moveAndMaybeCompressFile: error writing ${targetFilePath}, deleting`, e);\n // delete targetFilePath (taking as nothing happened)\n fs.unlink(targetFilePath)\n .then(() => { reject(e); })\n .catch((e) => {\n debug(`moveAndMaybeCompressFile: error deleting ${targetFilePath}`, e);\n reject(e);\n });\n }\n });\n }).catch(() => {});\n } else {\n debug(`moveAndMaybeCompressFile: renaming ${sourceFilePath} to ${targetFilePath}`);\n try {\n await fs.move(sourceFilePath, targetFilePath, { overwrite: true });\n } catch (e) {\n debug(`moveAndMaybeCompressFile: error renaming ${sourceFilePath} to ${targetFilePath}`, e);\n /* istanbul ignore else: no need to do anything if file does not exist */\n if (e.code !== \"ENOENT\") {\n debug(`moveAndMaybeCompressFile: trying copy+truncate instead`);\n try {\n await fs.copy(sourceFilePath, targetFilePath, { overwrite: true });\n await fs.truncate(sourceFilePath);\n } catch (e) {\n debug(`moveAndMaybeCompressFile: error copy+truncate`, e);\n }\n }\n }\n }\n }\n};\n\nmodule.exports = moveAndMaybeCompressFile;\n","// allows us to inject a mock date in tests\nmodule.exports = () => new Date();\n","'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n","'use strict'\n\nexports.fromCallback = function (fn) {\n return Object.defineProperty(function () {\n if (typeof arguments[arguments.length - 1] === 'function') fn.apply(this, arguments)\n else {\n return new Promise((resolve, reject) => {\n arguments[arguments.length] = (err, res) => {\n if (err) return reject(err)\n resolve(res)\n }\n arguments.length++\n fn.apply(this, arguments)\n })\n }\n }, 'name', { value: fn.name })\n}\n\nexports.fromPromise = function (fn) {\n return Object.defineProperty(function () {\n const cb = arguments[arguments.length - 1]\n if (typeof cb !== 'function') return fn.apply(this, arguments)\n else fn.apply(this, arguments).then(r => cb(null, r), cb)\n }, 'name', { value: fn.name })\n}\n","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"assert\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"cluster\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"constants\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"fs\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"net\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"os\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"path\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"stream\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"tty\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"url\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"util\");","module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"zlib\");","'use strict';\n/// \n\n// (c) 2020-present Andrea Giammarchi\n\nconst {parse: $parse, stringify: $stringify} = JSON;\nconst {keys} = Object;\n\nconst Primitive = String; // it could be Number\nconst primitive = 'string'; // it could be 'number'\n\nconst ignore = {};\nconst object = 'object';\n\nconst noop = (_, value) => value;\n\nconst primitives = value => (\n value instanceof Primitive ? Primitive(value) : value\n);\n\nconst Primitives = (_, value) => (\n typeof value === primitive ? new Primitive(value) : value\n);\n\nconst revive = (input, parsed, output, $) => {\n const lazy = [];\n for (let ke = keys(output), {length} = ke, y = 0; y < length; y++) {\n const k = ke[y];\n const value = output[k];\n if (value instanceof Primitive) {\n const tmp = input[value];\n if (typeof tmp === object && !parsed.has(tmp)) {\n parsed.add(tmp);\n output[k] = ignore;\n lazy.push({k, a: [input, parsed, tmp, $]});\n }\n else\n output[k] = $.call(output, k, tmp);\n }\n else if (output[k] !== ignore)\n output[k] = $.call(output, k, value);\n }\n for (let {length} = lazy, i = 0; i < length; i++) {\n const {k, a} = lazy[i];\n output[k] = $.call(output, k, revive.apply(null, a));\n }\n return output;\n};\n\nconst set = (known, input, value) => {\n const index = Primitive(input.push(value) - 1);\n known.set(value, index);\n return index;\n};\n\n/**\n * Converts a specialized flatted string into a JS value.\n * @param {string} text\n * @param {(this: any, key: string, value: any) => any} [reviver]\n * @returns {any}\n */\nconst parse = (text, reviver) => {\n const input = $parse(text, Primitives).map(primitives);\n const value = input[0];\n const $ = reviver || noop;\n const tmp = typeof value === object && value ?\n revive(input, new Set, value, $) :\n value;\n return $.call({'': tmp}, '', tmp);\n};\nexports.parse = parse;\n\n/**\n * Converts a JS value into a specialized flatted string.\n * @param {any} value\n * @param {((this: any, key: string, value: any) => any) | (string | number)[] | null | undefined} [replacer]\n * @param {string | number | undefined} [space]\n * @returns {string}\n */\nconst stringify = (value, replacer, space) => {\n const $ = replacer && typeof replacer === object ?\n (k, v) => (k === '' || -1 < replacer.indexOf(k) ? v : void 0) :\n (replacer || noop);\n const known = new Map;\n const input = [];\n const output = [];\n let i = +set(known, input, $.call({'': value}, '', value));\n let firstRun = !i;\n while (i < input.length) {\n firstRun = true;\n output[i] = $stringify(input[i++], replace, space);\n }\n return '[' + output.join(',') + ']';\n function replace(key, value) {\n if (firstRun) {\n firstRun = !firstRun;\n return value;\n }\n const after = $.call(this, key, value);\n switch (typeof after) {\n case object:\n if (after === null) return after;\n case primitive:\n return known.get(after) || set(known, input, after);\n }\n return after;\n }\n};\nexports.stringify = stringify;\n\n/**\n * Converts a generic value into a JSON serializable object without losing recursion.\n * @param {any} value\n * @returns {any}\n */\nconst toJSON = value => $parse(stringify(value));\nexports.toJSON = toJSON;\n\n/**\n * Converts a previously serialized object with recursion into a recursive one.\n * @param {any} value\n * @returns {any}\n */\nconst fromJSON = value => parse($stringify(value));\nexports.fromJSON = fromJSON;\n",null,"export function encodeBase64(input) {\n if (Uint8Array.prototype.toBase64) {\n return input.toBase64();\n }\n const CHUNK_SIZE = 0x8000;\n const arr = [];\n for (let i = 0; i < input.length; i += CHUNK_SIZE) {\n arr.push(String.fromCharCode.apply(null, input.subarray(i, i + CHUNK_SIZE)));\n }\n return btoa(arr.join(''));\n}\nexport function decodeBase64(encoded) {\n if (Uint8Array.fromBase64) {\n return Uint8Array.fromBase64(encoded);\n }\n const binary = atob(encoded);\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n return bytes;\n}\n","export class JOSEError extends Error {\n static code = 'ERR_JOSE_GENERIC';\n code = 'ERR_JOSE_GENERIC';\n constructor(message, options) {\n super(message, options);\n this.name = this.constructor.name;\n Error.captureStackTrace?.(this, this.constructor);\n }\n}\nexport class JWTClaimValidationFailed extends JOSEError {\n static code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';\n code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';\n claim;\n reason;\n payload;\n constructor(message, payload, claim = 'unspecified', reason = 'unspecified') {\n super(message, { cause: { claim, reason, payload } });\n this.claim = claim;\n this.reason = reason;\n this.payload = payload;\n }\n}\nexport class JWTExpired extends JOSEError {\n static code = 'ERR_JWT_EXPIRED';\n code = 'ERR_JWT_EXPIRED';\n claim;\n reason;\n payload;\n constructor(message, payload, claim = 'unspecified', reason = 'unspecified') {\n super(message, { cause: { claim, reason, payload } });\n this.claim = claim;\n this.reason = reason;\n this.payload = payload;\n }\n}\nexport class JOSEAlgNotAllowed extends JOSEError {\n static code = 'ERR_JOSE_ALG_NOT_ALLOWED';\n code = 'ERR_JOSE_ALG_NOT_ALLOWED';\n}\nexport class JOSENotSupported extends JOSEError {\n static code = 'ERR_JOSE_NOT_SUPPORTED';\n code = 'ERR_JOSE_NOT_SUPPORTED';\n}\nexport class JWEDecryptionFailed extends JOSEError {\n static code = 'ERR_JWE_DECRYPTION_FAILED';\n code = 'ERR_JWE_DECRYPTION_FAILED';\n constructor(message = 'decryption operation failed', options) {\n super(message, options);\n }\n}\nexport class JWEInvalid extends JOSEError {\n static code = 'ERR_JWE_INVALID';\n code = 'ERR_JWE_INVALID';\n}\nexport class JWSInvalid extends JOSEError {\n static code = 'ERR_JWS_INVALID';\n code = 'ERR_JWS_INVALID';\n}\nexport class JWTInvalid extends JOSEError {\n static code = 'ERR_JWT_INVALID';\n code = 'ERR_JWT_INVALID';\n}\nexport class JWKInvalid extends JOSEError {\n static code = 'ERR_JWK_INVALID';\n code = 'ERR_JWK_INVALID';\n}\nexport class JWKSInvalid extends JOSEError {\n static code = 'ERR_JWKS_INVALID';\n code = 'ERR_JWKS_INVALID';\n}\nexport class JWKSNoMatchingKey extends JOSEError {\n static code = 'ERR_JWKS_NO_MATCHING_KEY';\n code = 'ERR_JWKS_NO_MATCHING_KEY';\n constructor(message = 'no applicable key found in the JSON Web Key Set', options) {\n super(message, options);\n }\n}\nexport class JWKSMultipleMatchingKeys extends JOSEError {\n [Symbol.asyncIterator];\n static code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';\n code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';\n constructor(message = 'multiple matching keys found in the JSON Web Key Set', options) {\n super(message, options);\n }\n}\nexport class JWKSTimeout extends JOSEError {\n static code = 'ERR_JWKS_TIMEOUT';\n code = 'ERR_JWKS_TIMEOUT';\n constructor(message = 'request timed out', options) {\n super(message, options);\n }\n}\nexport class JWSSignatureVerificationFailed extends JOSEError {\n static code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';\n code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';\n constructor(message = 'signature verification failed', options) {\n super(message, options);\n }\n}\n","import invalidKeyInput from './invalid_key_input.js';\nimport { encodeBase64, decodeBase64 } from '../lib/base64.js';\nimport { JOSENotSupported } from '../util/errors.js';\nimport { isCryptoKey, isKeyObject } from './is_key_like.js';\nconst formatPEM = (b64, descriptor) => {\n const newlined = (b64.match(/.{1,64}/g) || []).join('\\n');\n return `-----BEGIN ${descriptor}-----\\n${newlined}\\n-----END ${descriptor}-----`;\n};\nconst genericExport = async (keyType, keyFormat, key) => {\n if (isKeyObject(key)) {\n if (key.type !== keyType) {\n throw new TypeError(`key is not a ${keyType} key`);\n }\n return key.export({ format: 'pem', type: keyFormat });\n }\n if (!isCryptoKey(key)) {\n throw new TypeError(invalidKeyInput(key, 'CryptoKey', 'KeyObject'));\n }\n if (!key.extractable) {\n throw new TypeError('CryptoKey is not extractable');\n }\n if (key.type !== keyType) {\n throw new TypeError(`key is not a ${keyType} key`);\n }\n return formatPEM(encodeBase64(new Uint8Array(await crypto.subtle.exportKey(keyFormat, key))), `${keyType.toUpperCase()} KEY`);\n};\nexport const toSPKI = (key) => {\n return genericExport('public', 'spki', key);\n};\nexport const toPKCS8 = (key) => {\n return genericExport('private', 'pkcs8', key);\n};\nconst bytesEqual = (a, b) => {\n if (a.byteLength !== b.length)\n return false;\n for (let i = 0; i < a.byteLength; i++) {\n if (a[i] !== b[i])\n return false;\n }\n return true;\n};\nconst createASN1State = (data) => ({ data, pos: 0 });\nconst parseLength = (state) => {\n const first = state.data[state.pos++];\n if (first & 0x80) {\n const lengthOfLen = first & 0x7f;\n let length = 0;\n for (let i = 0; i < lengthOfLen; i++) {\n length = (length << 8) | state.data[state.pos++];\n }\n return length;\n }\n return first;\n};\nconst skipElement = (state, count = 1) => {\n if (count <= 0)\n return;\n state.pos++;\n const length = parseLength(state);\n state.pos += length;\n if (count > 1) {\n skipElement(state, count - 1);\n }\n};\nconst expectTag = (state, expectedTag, errorMessage) => {\n if (state.data[state.pos++] !== expectedTag) {\n throw new Error(errorMessage);\n }\n};\nconst getSubarray = (state, length) => {\n const result = state.data.subarray(state.pos, state.pos + length);\n state.pos += length;\n return result;\n};\nconst parseAlgorithmOID = (state) => {\n expectTag(state, 0x06, 'Expected algorithm OID');\n const oidLen = parseLength(state);\n return getSubarray(state, oidLen);\n};\nfunction parsePKCS8Header(state) {\n expectTag(state, 0x30, 'Invalid PKCS#8 structure');\n parseLength(state);\n expectTag(state, 0x02, 'Expected version field');\n const verLen = parseLength(state);\n state.pos += verLen;\n expectTag(state, 0x30, 'Expected algorithm identifier');\n const algIdLen = parseLength(state);\n const algIdStart = state.pos;\n return { algIdStart, algIdLength: algIdLen };\n}\nfunction parseSPKIHeader(state) {\n expectTag(state, 0x30, 'Invalid SPKI structure');\n parseLength(state);\n expectTag(state, 0x30, 'Expected algorithm identifier');\n const algIdLen = parseLength(state);\n const algIdStart = state.pos;\n return { algIdStart, algIdLength: algIdLen };\n}\nconst parseECAlgorithmIdentifier = (state) => {\n const algOid = parseAlgorithmOID(state);\n if (bytesEqual(algOid, [0x2b, 0x65, 0x6e])) {\n return 'X25519';\n }\n if (!bytesEqual(algOid, [0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02, 0x01])) {\n throw new Error('Unsupported key algorithm');\n }\n expectTag(state, 0x06, 'Expected curve OID');\n const curveOidLen = parseLength(state);\n const curveOid = getSubarray(state, curveOidLen);\n for (const { name, oid } of [\n { name: 'P-256', oid: [0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07] },\n { name: 'P-384', oid: [0x2b, 0x81, 0x04, 0x00, 0x22] },\n { name: 'P-521', oid: [0x2b, 0x81, 0x04, 0x00, 0x23] },\n ]) {\n if (bytesEqual(curveOid, oid)) {\n return name;\n }\n }\n throw new Error('Unsupported named curve');\n};\nconst genericImport = async (keyFormat, keyData, alg, options) => {\n let algorithm;\n let keyUsages;\n const isPublic = keyFormat === 'spki';\n const getSigUsages = () => (isPublic ? ['verify'] : ['sign']);\n const getEncUsages = () => isPublic ? ['encrypt', 'wrapKey'] : ['decrypt', 'unwrapKey'];\n switch (alg) {\n case 'PS256':\n case 'PS384':\n case 'PS512':\n algorithm = { name: 'RSA-PSS', hash: `SHA-${alg.slice(-3)}` };\n keyUsages = getSigUsages();\n break;\n case 'RS256':\n case 'RS384':\n case 'RS512':\n algorithm = { name: 'RSASSA-PKCS1-v1_5', hash: `SHA-${alg.slice(-3)}` };\n keyUsages = getSigUsages();\n break;\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512':\n algorithm = {\n name: 'RSA-OAEP',\n hash: `SHA-${parseInt(alg.slice(-3), 10) || 1}`,\n };\n keyUsages = getEncUsages();\n break;\n case 'ES256':\n case 'ES384':\n case 'ES512': {\n const curveMap = { ES256: 'P-256', ES384: 'P-384', ES512: 'P-521' };\n algorithm = { name: 'ECDSA', namedCurve: curveMap[alg] };\n keyUsages = getSigUsages();\n break;\n }\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW': {\n try {\n const namedCurve = options.getNamedCurve(keyData);\n algorithm = namedCurve === 'X25519' ? { name: 'X25519' } : { name: 'ECDH', namedCurve };\n }\n catch (cause) {\n throw new JOSENotSupported('Invalid or unsupported key format');\n }\n keyUsages = isPublic ? [] : ['deriveBits'];\n break;\n }\n case 'Ed25519':\n case 'EdDSA':\n algorithm = { name: 'Ed25519' };\n keyUsages = getSigUsages();\n break;\n case 'ML-DSA-44':\n case 'ML-DSA-65':\n case 'ML-DSA-87':\n algorithm = { name: alg };\n keyUsages = getSigUsages();\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported \"alg\" (Algorithm) value');\n }\n return crypto.subtle.importKey(keyFormat, keyData, algorithm, options?.extractable ?? (isPublic ? true : false), keyUsages);\n};\nconst processPEMData = (pem, pattern) => {\n return decodeBase64(pem.replace(pattern, ''));\n};\nexport const fromPKCS8 = (pem, alg, options) => {\n const keyData = processPEMData(pem, /(?:-----(?:BEGIN|END) PRIVATE KEY-----|\\s)/g);\n let opts = options;\n if (alg?.startsWith?.('ECDH-ES')) {\n opts ||= {};\n opts.getNamedCurve = (keyData) => {\n const state = createASN1State(keyData);\n parsePKCS8Header(state);\n return parseECAlgorithmIdentifier(state);\n };\n }\n return genericImport('pkcs8', keyData, alg, opts);\n};\nexport const fromSPKI = (pem, alg, options) => {\n const keyData = processPEMData(pem, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\\s)/g);\n let opts = options;\n if (alg?.startsWith?.('ECDH-ES')) {\n opts ||= {};\n opts.getNamedCurve = (keyData) => {\n const state = createASN1State(keyData);\n parseSPKIHeader(state);\n return parseECAlgorithmIdentifier(state);\n };\n }\n return genericImport('spki', keyData, alg, opts);\n};\nfunction spkiFromX509(buf) {\n const state = createASN1State(buf);\n expectTag(state, 0x30, 'Invalid certificate structure');\n parseLength(state);\n expectTag(state, 0x30, 'Invalid tbsCertificate structure');\n parseLength(state);\n if (buf[state.pos] === 0xa0) {\n skipElement(state, 6);\n }\n else {\n skipElement(state, 5);\n }\n const spkiStart = state.pos;\n expectTag(state, 0x30, 'Invalid SPKI structure');\n const spkiContentLen = parseLength(state);\n return buf.subarray(spkiStart, spkiStart + spkiContentLen + (state.pos - spkiStart));\n}\nfunction extractX509SPKI(x509) {\n const derBytes = processPEMData(x509, /(?:-----(?:BEGIN|END) CERTIFICATE-----|\\s)/g);\n return spkiFromX509(derBytes);\n}\nexport const fromX509 = (pem, alg, options) => {\n let spki;\n try {\n spki = extractX509SPKI(pem);\n }\n catch (cause) {\n throw new TypeError('Failed to parse the X.509 certificate', { cause });\n }\n return fromSPKI(formatPEM(encodeBase64(spki), 'PUBLIC KEY'), alg, options);\n};\n","import { decode as decodeBase64URL } from '../util/base64url.js';\nimport { fromSPKI, fromPKCS8, fromX509 } from '../lib/asn1.js';\nimport toCryptoKey from '../lib/jwk_to_key.js';\nimport { JOSENotSupported } from '../util/errors.js';\nimport isObject from '../lib/is_object.js';\nexport async function importSPKI(spki, alg, options) {\n if (typeof spki !== 'string' || spki.indexOf('-----BEGIN PUBLIC KEY-----') !== 0) {\n throw new TypeError('\"spki\" must be SPKI formatted string');\n }\n return fromSPKI(spki, alg, options);\n}\nexport async function importX509(x509, alg, options) {\n if (typeof x509 !== 'string' || x509.indexOf('-----BEGIN CERTIFICATE-----') !== 0) {\n throw new TypeError('\"x509\" must be X.509 formatted string');\n }\n return fromX509(x509, alg, options);\n}\nexport async function importPKCS8(pkcs8, alg, options) {\n if (typeof pkcs8 !== 'string' || pkcs8.indexOf('-----BEGIN PRIVATE KEY-----') !== 0) {\n throw new TypeError('\"pkcs8\" must be PKCS#8 formatted string');\n }\n return fromPKCS8(pkcs8, alg, options);\n}\nexport async function importJWK(jwk, alg, options) {\n if (!isObject(jwk)) {\n throw new TypeError('JWK must be an object');\n }\n let ext;\n alg ??= jwk.alg;\n ext ??= options?.extractable ?? jwk.ext;\n switch (jwk.kty) {\n case 'oct':\n if (typeof jwk.k !== 'string' || !jwk.k) {\n throw new TypeError('missing \"k\" (Key Value) Parameter value');\n }\n return decodeBase64URL(jwk.k);\n case 'RSA':\n if ('oth' in jwk && jwk.oth !== undefined) {\n throw new JOSENotSupported('RSA JWK \"oth\" (Other Primes Info) Parameter value is not supported');\n }\n return toCryptoKey({ ...jwk, alg, ext });\n case 'AKP': {\n if (typeof jwk.alg !== 'string' || !jwk.alg) {\n throw new TypeError('missing \"alg\" (Algorithm) Parameter value');\n }\n if (alg !== undefined && alg !== jwk.alg) {\n throw new TypeError('JWK alg and alg option value mismatch');\n }\n return toCryptoKey({ ...jwk, ext });\n }\n case 'EC':\n case 'OKP':\n return toCryptoKey({ ...jwk, alg, ext });\n default:\n throw new JOSENotSupported('Unsupported \"kty\" (Key Type) Parameter value');\n }\n}\n","export const encoder = new TextEncoder();\nexport const decoder = new TextDecoder();\nconst MAX_INT32 = 2 ** 32;\nexport function concat(...buffers) {\n const size = buffers.reduce((acc, { length }) => acc + length, 0);\n const buf = new Uint8Array(size);\n let i = 0;\n for (const buffer of buffers) {\n buf.set(buffer, i);\n i += buffer.length;\n }\n return buf;\n}\nfunction writeUInt32BE(buf, value, offset) {\n if (value < 0 || value >= MAX_INT32) {\n throw new RangeError(`value must be >= 0 and <= ${MAX_INT32 - 1}. Received ${value}`);\n }\n buf.set([value >>> 24, value >>> 16, value >>> 8, value & 0xff], offset);\n}\nexport function uint64be(value) {\n const high = Math.floor(value / MAX_INT32);\n const low = value % MAX_INT32;\n const buf = new Uint8Array(8);\n writeUInt32BE(buf, high, 0);\n writeUInt32BE(buf, low, 4);\n return buf;\n}\nexport function uint32be(value) {\n const buf = new Uint8Array(4);\n writeUInt32BE(buf, value);\n return buf;\n}\n","import { encoder, decoder } from '../lib/buffer_utils.js';\nimport { encodeBase64, decodeBase64 } from '../lib/base64.js';\nexport function decode(input) {\n if (Uint8Array.fromBase64) {\n return Uint8Array.fromBase64(typeof input === 'string' ? input : decoder.decode(input), {\n alphabet: 'base64url',\n });\n }\n let encoded = input;\n if (encoded instanceof Uint8Array) {\n encoded = decoder.decode(encoded);\n }\n encoded = encoded.replace(/-/g, '+').replace(/_/g, '/').replace(/\\s/g, '');\n try {\n return decodeBase64(encoded);\n }\n catch {\n throw new TypeError('The input to be decoded is not correctly encoded.');\n }\n}\nexport function encode(input) {\n let unencoded = input;\n if (typeof unencoded === 'string') {\n unencoded = encoder.encode(unencoded);\n }\n if (Uint8Array.prototype.toBase64) {\n return unencoded.toBase64({ alphabet: 'base64url', omitPadding: true });\n }\n return encodeBase64(unencoded).replace(/=/g, '').replace(/\\+/g, '-').replace(/\\//g, '_');\n}\n","import { JOSENotSupported } from '../util/errors.js';\nexport default (alg, algorithm) => {\n const hash = `SHA-${alg.slice(-3)}`;\n switch (alg) {\n case 'HS256':\n case 'HS384':\n case 'HS512':\n return { hash, name: 'HMAC' };\n case 'PS256':\n case 'PS384':\n case 'PS512':\n return { hash, name: 'RSA-PSS', saltLength: parseInt(alg.slice(-3), 10) >> 3 };\n case 'RS256':\n case 'RS384':\n case 'RS512':\n return { hash, name: 'RSASSA-PKCS1-v1_5' };\n case 'ES256':\n case 'ES384':\n case 'ES512':\n return { hash, name: 'ECDSA', namedCurve: algorithm.namedCurve };\n case 'Ed25519':\n case 'EdDSA':\n return { name: 'Ed25519' };\n case 'ML-DSA-44':\n case 'ML-DSA-65':\n case 'ML-DSA-87':\n return { name: alg };\n default:\n throw new JOSENotSupported(`alg ${alg} is not supported either by JOSE or your javascript runtime`);\n }\n};\n","export default (alg, key) => {\n if (alg.startsWith('RS') || alg.startsWith('PS')) {\n const { modulusLength } = key.algorithm;\n if (typeof modulusLength !== 'number' || modulusLength < 2048) {\n throw new TypeError(`${alg} requires key modulusLength to be 2048 bits or larger`);\n }\n }\n};\n","function unusable(name, prop = 'algorithm.name') {\n return new TypeError(`CryptoKey does not support this operation, its ${prop} must be ${name}`);\n}\nfunction isAlgorithm(algorithm, name) {\n return algorithm.name === name;\n}\nfunction getHashLength(hash) {\n return parseInt(hash.name.slice(4), 10);\n}\nfunction getNamedCurve(alg) {\n switch (alg) {\n case 'ES256':\n return 'P-256';\n case 'ES384':\n return 'P-384';\n case 'ES512':\n return 'P-521';\n default:\n throw new Error('unreachable');\n }\n}\nfunction checkUsage(key, usage) {\n if (usage && !key.usages.includes(usage)) {\n throw new TypeError(`CryptoKey does not support this operation, its usages must include ${usage}.`);\n }\n}\nexport function checkSigCryptoKey(key, alg, usage) {\n switch (alg) {\n case 'HS256':\n case 'HS384':\n case 'HS512': {\n if (!isAlgorithm(key.algorithm, 'HMAC'))\n throw unusable('HMAC');\n const expected = parseInt(alg.slice(2), 10);\n const actual = getHashLength(key.algorithm.hash);\n if (actual !== expected)\n throw unusable(`SHA-${expected}`, 'algorithm.hash');\n break;\n }\n case 'RS256':\n case 'RS384':\n case 'RS512': {\n if (!isAlgorithm(key.algorithm, 'RSASSA-PKCS1-v1_5'))\n throw unusable('RSASSA-PKCS1-v1_5');\n const expected = parseInt(alg.slice(2), 10);\n const actual = getHashLength(key.algorithm.hash);\n if (actual !== expected)\n throw unusable(`SHA-${expected}`, 'algorithm.hash');\n break;\n }\n case 'PS256':\n case 'PS384':\n case 'PS512': {\n if (!isAlgorithm(key.algorithm, 'RSA-PSS'))\n throw unusable('RSA-PSS');\n const expected = parseInt(alg.slice(2), 10);\n const actual = getHashLength(key.algorithm.hash);\n if (actual !== expected)\n throw unusable(`SHA-${expected}`, 'algorithm.hash');\n break;\n }\n case 'Ed25519':\n case 'EdDSA': {\n if (!isAlgorithm(key.algorithm, 'Ed25519'))\n throw unusable('Ed25519');\n break;\n }\n case 'ML-DSA-44':\n case 'ML-DSA-65':\n case 'ML-DSA-87': {\n if (!isAlgorithm(key.algorithm, alg))\n throw unusable(alg);\n break;\n }\n case 'ES256':\n case 'ES384':\n case 'ES512': {\n if (!isAlgorithm(key.algorithm, 'ECDSA'))\n throw unusable('ECDSA');\n const expected = getNamedCurve(alg);\n const actual = key.algorithm.namedCurve;\n if (actual !== expected)\n throw unusable(expected, 'algorithm.namedCurve');\n break;\n }\n default:\n throw new TypeError('CryptoKey does not support this operation');\n }\n checkUsage(key, usage);\n}\nexport function checkEncCryptoKey(key, alg, usage) {\n switch (alg) {\n case 'A128GCM':\n case 'A192GCM':\n case 'A256GCM': {\n if (!isAlgorithm(key.algorithm, 'AES-GCM'))\n throw unusable('AES-GCM');\n const expected = parseInt(alg.slice(1, 4), 10);\n const actual = key.algorithm.length;\n if (actual !== expected)\n throw unusable(expected, 'algorithm.length');\n break;\n }\n case 'A128KW':\n case 'A192KW':\n case 'A256KW': {\n if (!isAlgorithm(key.algorithm, 'AES-KW'))\n throw unusable('AES-KW');\n const expected = parseInt(alg.slice(1, 4), 10);\n const actual = key.algorithm.length;\n if (actual !== expected)\n throw unusable(expected, 'algorithm.length');\n break;\n }\n case 'ECDH': {\n switch (key.algorithm.name) {\n case 'ECDH':\n case 'X25519':\n break;\n default:\n throw unusable('ECDH or X25519');\n }\n break;\n }\n case 'PBES2-HS256+A128KW':\n case 'PBES2-HS384+A192KW':\n case 'PBES2-HS512+A256KW':\n if (!isAlgorithm(key.algorithm, 'PBKDF2'))\n throw unusable('PBKDF2');\n break;\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512': {\n if (!isAlgorithm(key.algorithm, 'RSA-OAEP'))\n throw unusable('RSA-OAEP');\n const expected = parseInt(alg.slice(9), 10) || 1;\n const actual = getHashLength(key.algorithm.hash);\n if (actual !== expected)\n throw unusable(`SHA-${expected}`, 'algorithm.hash');\n break;\n }\n default:\n throw new TypeError('CryptoKey does not support this operation');\n }\n checkUsage(key, usage);\n}\n","function message(msg, actual, ...types) {\n types = types.filter(Boolean);\n if (types.length > 2) {\n const last = types.pop();\n msg += `one of type ${types.join(', ')}, or ${last}.`;\n }\n else if (types.length === 2) {\n msg += `one of type ${types[0]} or ${types[1]}.`;\n }\n else {\n msg += `of type ${types[0]}.`;\n }\n if (actual == null) {\n msg += ` Received ${actual}`;\n }\n else if (typeof actual === 'function' && actual.name) {\n msg += ` Received function ${actual.name}`;\n }\n else if (typeof actual === 'object' && actual != null) {\n if (actual.constructor?.name) {\n msg += ` Received an instance of ${actual.constructor.name}`;\n }\n }\n return msg;\n}\nexport default (actual, ...types) => {\n return message('Key must be ', actual, ...types);\n};\nexport function withAlg(alg, actual, ...types) {\n return message(`Key for the ${alg} algorithm must be `, actual, ...types);\n}\n","import { checkSigCryptoKey } from './crypto_key.js';\nimport invalidKeyInput from './invalid_key_input.js';\nexport default async (alg, key, usage) => {\n if (key instanceof Uint8Array) {\n if (!alg.startsWith('HS')) {\n throw new TypeError(invalidKeyInput(key, 'CryptoKey', 'KeyObject', 'JSON Web Key'));\n }\n return crypto.subtle.importKey('raw', key, { hash: `SHA-${alg.slice(-3)}`, name: 'HMAC' }, false, [usage]);\n }\n checkSigCryptoKey(key, alg, usage);\n return key;\n};\n","import subtleAlgorithm from './subtle_dsa.js';\nimport checkKeyLength from './check_key_length.js';\nimport getSignKey from './get_sign_verify_key.js';\nexport default async (alg, key, data) => {\n const cryptoKey = await getSignKey(alg, key, 'sign');\n checkKeyLength(alg, cryptoKey);\n const signature = await crypto.subtle.sign(subtleAlgorithm(alg, cryptoKey.algorithm), cryptoKey, data);\n return new Uint8Array(signature);\n};\n","export default (...headers) => {\n const sources = headers.filter(Boolean);\n if (sources.length === 0 || sources.length === 1) {\n return true;\n }\n let acc;\n for (const header of sources) {\n const parameters = Object.keys(header);\n if (!acc || acc.size === 0) {\n acc = new Set(parameters);\n continue;\n }\n for (const parameter of parameters) {\n if (acc.has(parameter)) {\n return false;\n }\n acc.add(parameter);\n }\n }\n return true;\n};\n","export function assertCryptoKey(key) {\n if (!isCryptoKey(key)) {\n throw new Error('CryptoKey instance expected');\n }\n}\nexport function isCryptoKey(key) {\n return key?.[Symbol.toStringTag] === 'CryptoKey';\n}\nexport function isKeyObject(key) {\n return key?.[Symbol.toStringTag] === 'KeyObject';\n}\nexport default (key) => {\n return isCryptoKey(key) || isKeyObject(key);\n};\n","function isObjectLike(value) {\n return typeof value === 'object' && value !== null;\n}\nexport default (input) => {\n if (!isObjectLike(input) || Object.prototype.toString.call(input) !== '[object Object]') {\n return false;\n }\n if (Object.getPrototypeOf(input) === null) {\n return true;\n }\n let proto = input;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(input) === proto;\n};\n","import isObject from './is_object.js';\nexport function isJWK(key) {\n return isObject(key) && typeof key.kty === 'string';\n}\nexport function isPrivateJWK(key) {\n return (key.kty !== 'oct' &&\n ((key.kty === 'AKP' && typeof key.priv === 'string') || typeof key.d === 'string'));\n}\nexport function isPublicJWK(key) {\n return key.kty !== 'oct' && typeof key.d === 'undefined' && typeof key.priv === 'undefined';\n}\nexport function isSecretJWK(key) {\n return key.kty === 'oct' && typeof key.k === 'string';\n}\n","import { withAlg as invalidKeyInput } from './invalid_key_input.js';\nimport isKeyLike from './is_key_like.js';\nimport * as jwk from './is_jwk.js';\nconst tag = (key) => key?.[Symbol.toStringTag];\nconst jwkMatchesOp = (alg, key, usage) => {\n if (key.use !== undefined) {\n let expected;\n switch (usage) {\n case 'sign':\n case 'verify':\n expected = 'sig';\n break;\n case 'encrypt':\n case 'decrypt':\n expected = 'enc';\n break;\n }\n if (key.use !== expected) {\n throw new TypeError(`Invalid key for this operation, its \"use\" must be \"${expected}\" when present`);\n }\n }\n if (key.alg !== undefined && key.alg !== alg) {\n throw new TypeError(`Invalid key for this operation, its \"alg\" must be \"${alg}\" when present`);\n }\n if (Array.isArray(key.key_ops)) {\n let expectedKeyOp;\n switch (true) {\n case usage === 'sign' || usage === 'verify':\n case alg === 'dir':\n case alg.includes('CBC-HS'):\n expectedKeyOp = usage;\n break;\n case alg.startsWith('PBES2'):\n expectedKeyOp = 'deriveBits';\n break;\n case /^A\\d{3}(?:GCM)?(?:KW)?$/.test(alg):\n if (!alg.includes('GCM') && alg.endsWith('KW')) {\n expectedKeyOp = usage === 'encrypt' ? 'wrapKey' : 'unwrapKey';\n }\n else {\n expectedKeyOp = usage;\n }\n break;\n case usage === 'encrypt' && alg.startsWith('RSA'):\n expectedKeyOp = 'wrapKey';\n break;\n case usage === 'decrypt':\n expectedKeyOp = alg.startsWith('RSA') ? 'unwrapKey' : 'deriveBits';\n break;\n }\n if (expectedKeyOp && key.key_ops?.includes?.(expectedKeyOp) === false) {\n throw new TypeError(`Invalid key for this operation, its \"key_ops\" must include \"${expectedKeyOp}\" when present`);\n }\n }\n return true;\n};\nconst symmetricTypeCheck = (alg, key, usage) => {\n if (key instanceof Uint8Array)\n return;\n if (jwk.isJWK(key)) {\n if (jwk.isSecretJWK(key) && jwkMatchesOp(alg, key, usage))\n return;\n throw new TypeError(`JSON Web Key for symmetric algorithms must have JWK \"kty\" (Key Type) equal to \"oct\" and the JWK \"k\" (Key Value) present`);\n }\n if (!isKeyLike(key)) {\n throw new TypeError(invalidKeyInput(alg, key, 'CryptoKey', 'KeyObject', 'JSON Web Key', 'Uint8Array'));\n }\n if (key.type !== 'secret') {\n throw new TypeError(`${tag(key)} instances for symmetric algorithms must be of type \"secret\"`);\n }\n};\nconst asymmetricTypeCheck = (alg, key, usage) => {\n if (jwk.isJWK(key)) {\n switch (usage) {\n case 'decrypt':\n case 'sign':\n if (jwk.isPrivateJWK(key) && jwkMatchesOp(alg, key, usage))\n return;\n throw new TypeError(`JSON Web Key for this operation be a private JWK`);\n case 'encrypt':\n case 'verify':\n if (jwk.isPublicJWK(key) && jwkMatchesOp(alg, key, usage))\n return;\n throw new TypeError(`JSON Web Key for this operation be a public JWK`);\n }\n }\n if (!isKeyLike(key)) {\n throw new TypeError(invalidKeyInput(alg, key, 'CryptoKey', 'KeyObject', 'JSON Web Key'));\n }\n if (key.type === 'secret') {\n throw new TypeError(`${tag(key)} instances for asymmetric algorithms must not be of type \"secret\"`);\n }\n if (key.type === 'public') {\n switch (usage) {\n case 'sign':\n throw new TypeError(`${tag(key)} instances for asymmetric algorithm signing must be of type \"private\"`);\n case 'decrypt':\n throw new TypeError(`${tag(key)} instances for asymmetric algorithm decryption must be of type \"private\"`);\n default:\n break;\n }\n }\n if (key.type === 'private') {\n switch (usage) {\n case 'verify':\n throw new TypeError(`${tag(key)} instances for asymmetric algorithm verifying must be of type \"public\"`);\n case 'encrypt':\n throw new TypeError(`${tag(key)} instances for asymmetric algorithm encryption must be of type \"public\"`);\n default:\n break;\n }\n }\n};\nexport default (alg, key, usage) => {\n const symmetric = alg.startsWith('HS') ||\n alg === 'dir' ||\n alg.startsWith('PBES2') ||\n /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(alg) ||\n /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(alg);\n if (symmetric) {\n symmetricTypeCheck(alg, key, usage);\n }\n else {\n asymmetricTypeCheck(alg, key, usage);\n }\n};\n","import { JOSENotSupported, JWEInvalid, JWSInvalid } from '../util/errors.js';\nexport default (Err, recognizedDefault, recognizedOption, protectedHeader, joseHeader) => {\n if (joseHeader.crit !== undefined && protectedHeader?.crit === undefined) {\n throw new Err('\"crit\" (Critical) Header Parameter MUST be integrity protected');\n }\n if (!protectedHeader || protectedHeader.crit === undefined) {\n return new Set();\n }\n if (!Array.isArray(protectedHeader.crit) ||\n protectedHeader.crit.length === 0 ||\n protectedHeader.crit.some((input) => typeof input !== 'string' || input.length === 0)) {\n throw new Err('\"crit\" (Critical) Header Parameter MUST be an array of non-empty strings when present');\n }\n let recognized;\n if (recognizedOption !== undefined) {\n recognized = new Map([...Object.entries(recognizedOption), ...recognizedDefault.entries()]);\n }\n else {\n recognized = recognizedDefault;\n }\n for (const parameter of protectedHeader.crit) {\n if (!recognized.has(parameter)) {\n throw new JOSENotSupported(`Extension Header Parameter \"${parameter}\" is not recognized`);\n }\n if (joseHeader[parameter] === undefined) {\n throw new Err(`Extension Header Parameter \"${parameter}\" is missing`);\n }\n if (recognized.get(parameter) && protectedHeader[parameter] === undefined) {\n throw new Err(`Extension Header Parameter \"${parameter}\" MUST be integrity protected`);\n }\n }\n return new Set(protectedHeader.crit);\n};\n","import { JOSENotSupported } from '../util/errors.js';\nfunction subtleMapping(jwk) {\n let algorithm;\n let keyUsages;\n switch (jwk.kty) {\n case 'AKP': {\n switch (jwk.alg) {\n case 'ML-DSA-44':\n case 'ML-DSA-65':\n case 'ML-DSA-87':\n algorithm = { name: jwk.alg };\n keyUsages = jwk.priv ? ['sign'] : ['verify'];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n }\n case 'RSA': {\n switch (jwk.alg) {\n case 'PS256':\n case 'PS384':\n case 'PS512':\n algorithm = { name: 'RSA-PSS', hash: `SHA-${jwk.alg.slice(-3)}` };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'RS256':\n case 'RS384':\n case 'RS512':\n algorithm = { name: 'RSASSA-PKCS1-v1_5', hash: `SHA-${jwk.alg.slice(-3)}` };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512':\n algorithm = {\n name: 'RSA-OAEP',\n hash: `SHA-${parseInt(jwk.alg.slice(-3), 10) || 1}`,\n };\n keyUsages = jwk.d ? ['decrypt', 'unwrapKey'] : ['encrypt', 'wrapKey'];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n }\n case 'EC': {\n switch (jwk.alg) {\n case 'ES256':\n algorithm = { name: 'ECDSA', namedCurve: 'P-256' };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'ES384':\n algorithm = { name: 'ECDSA', namedCurve: 'P-384' };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'ES512':\n algorithm = { name: 'ECDSA', namedCurve: 'P-521' };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW':\n algorithm = { name: 'ECDH', namedCurve: jwk.crv };\n keyUsages = jwk.d ? ['deriveBits'] : [];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n }\n case 'OKP': {\n switch (jwk.alg) {\n case 'Ed25519':\n case 'EdDSA':\n algorithm = { name: 'Ed25519' };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW':\n algorithm = { name: jwk.crv };\n keyUsages = jwk.d ? ['deriveBits'] : [];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n }\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"kty\" (Key Type) Parameter value');\n }\n return { algorithm, keyUsages };\n}\nexport default async (jwk) => {\n if (!jwk.alg) {\n throw new TypeError('\"alg\" argument is required when \"jwk.alg\" is not present');\n }\n const { algorithm, keyUsages } = subtleMapping(jwk);\n const keyData = { ...jwk };\n if (keyData.kty !== 'AKP') {\n delete keyData.alg;\n }\n delete keyData.use;\n return crypto.subtle.importKey('jwk', keyData, algorithm, jwk.ext ?? (jwk.d || jwk.priv ? false : true), jwk.key_ops ?? keyUsages);\n};\n","import { isJWK } from './is_jwk.js';\nimport { decode } from '../util/base64url.js';\nimport importJWK from './jwk_to_key.js';\nimport { isCryptoKey, isKeyObject } from './is_key_like.js';\nlet cache;\nconst handleJWK = async (key, jwk, alg, freeze = false) => {\n cache ||= new WeakMap();\n let cached = cache.get(key);\n if (cached?.[alg]) {\n return cached[alg];\n }\n const cryptoKey = await importJWK({ ...jwk, alg });\n if (freeze)\n Object.freeze(key);\n if (!cached) {\n cache.set(key, { [alg]: cryptoKey });\n }\n else {\n cached[alg] = cryptoKey;\n }\n return cryptoKey;\n};\nconst handleKeyObject = (keyObject, alg) => {\n cache ||= new WeakMap();\n let cached = cache.get(keyObject);\n if (cached?.[alg]) {\n return cached[alg];\n }\n const isPublic = keyObject.type === 'public';\n const extractable = isPublic ? true : false;\n let cryptoKey;\n if (keyObject.asymmetricKeyType === 'x25519') {\n switch (alg) {\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW':\n break;\n default:\n throw new TypeError('given KeyObject instance cannot be used for this algorithm');\n }\n cryptoKey = keyObject.toCryptoKey(keyObject.asymmetricKeyType, extractable, isPublic ? [] : ['deriveBits']);\n }\n if (keyObject.asymmetricKeyType === 'ed25519') {\n if (alg !== 'EdDSA' && alg !== 'Ed25519') {\n throw new TypeError('given KeyObject instance cannot be used for this algorithm');\n }\n cryptoKey = keyObject.toCryptoKey(keyObject.asymmetricKeyType, extractable, [\n isPublic ? 'verify' : 'sign',\n ]);\n }\n switch (keyObject.asymmetricKeyType) {\n case 'ml-dsa-44':\n case 'ml-dsa-65':\n case 'ml-dsa-87': {\n if (alg !== keyObject.asymmetricKeyType.toUpperCase()) {\n throw new TypeError('given KeyObject instance cannot be used for this algorithm');\n }\n cryptoKey = keyObject.toCryptoKey(keyObject.asymmetricKeyType, extractable, [\n isPublic ? 'verify' : 'sign',\n ]);\n }\n }\n if (keyObject.asymmetricKeyType === 'rsa') {\n let hash;\n switch (alg) {\n case 'RSA-OAEP':\n hash = 'SHA-1';\n break;\n case 'RS256':\n case 'PS256':\n case 'RSA-OAEP-256':\n hash = 'SHA-256';\n break;\n case 'RS384':\n case 'PS384':\n case 'RSA-OAEP-384':\n hash = 'SHA-384';\n break;\n case 'RS512':\n case 'PS512':\n case 'RSA-OAEP-512':\n hash = 'SHA-512';\n break;\n default:\n throw new TypeError('given KeyObject instance cannot be used for this algorithm');\n }\n if (alg.startsWith('RSA-OAEP')) {\n return keyObject.toCryptoKey({\n name: 'RSA-OAEP',\n hash,\n }, extractable, isPublic ? ['encrypt'] : ['decrypt']);\n }\n cryptoKey = keyObject.toCryptoKey({\n name: alg.startsWith('PS') ? 'RSA-PSS' : 'RSASSA-PKCS1-v1_5',\n hash,\n }, extractable, [isPublic ? 'verify' : 'sign']);\n }\n if (keyObject.asymmetricKeyType === 'ec') {\n const nist = new Map([\n ['prime256v1', 'P-256'],\n ['secp384r1', 'P-384'],\n ['secp521r1', 'P-521'],\n ]);\n const namedCurve = nist.get(keyObject.asymmetricKeyDetails?.namedCurve);\n if (!namedCurve) {\n throw new TypeError('given KeyObject instance cannot be used for this algorithm');\n }\n if (alg === 'ES256' && namedCurve === 'P-256') {\n cryptoKey = keyObject.toCryptoKey({\n name: 'ECDSA',\n namedCurve,\n }, extractable, [isPublic ? 'verify' : 'sign']);\n }\n if (alg === 'ES384' && namedCurve === 'P-384') {\n cryptoKey = keyObject.toCryptoKey({\n name: 'ECDSA',\n namedCurve,\n }, extractable, [isPublic ? 'verify' : 'sign']);\n }\n if (alg === 'ES512' && namedCurve === 'P-521') {\n cryptoKey = keyObject.toCryptoKey({\n name: 'ECDSA',\n namedCurve,\n }, extractable, [isPublic ? 'verify' : 'sign']);\n }\n if (alg.startsWith('ECDH-ES')) {\n cryptoKey = keyObject.toCryptoKey({\n name: 'ECDH',\n namedCurve,\n }, extractable, isPublic ? [] : ['deriveBits']);\n }\n }\n if (!cryptoKey) {\n throw new TypeError('given KeyObject instance cannot be used for this algorithm');\n }\n if (!cached) {\n cache.set(keyObject, { [alg]: cryptoKey });\n }\n else {\n cached[alg] = cryptoKey;\n }\n return cryptoKey;\n};\nexport default async (key, alg) => {\n if (key instanceof Uint8Array) {\n return key;\n }\n if (isCryptoKey(key)) {\n return key;\n }\n if (isKeyObject(key)) {\n if (key.type === 'secret') {\n return key.export();\n }\n if ('toCryptoKey' in key && typeof key.toCryptoKey === 'function') {\n try {\n return handleKeyObject(key, alg);\n }\n catch (err) {\n if (err instanceof TypeError) {\n throw err;\n }\n }\n }\n let jwk = key.export({ format: 'jwk' });\n return handleJWK(key, jwk, alg);\n }\n if (isJWK(key)) {\n if (key.k) {\n return decode(key.k);\n }\n return handleJWK(key, key, alg, true);\n }\n throw new Error('unreachable');\n};\n","import { encode as b64u } from '../../util/base64url.js';\nimport sign from '../../lib/sign.js';\nimport isDisjoint from '../../lib/is_disjoint.js';\nimport { JWSInvalid } from '../../util/errors.js';\nimport { encoder, decoder, concat } from '../../lib/buffer_utils.js';\nimport checkKeyType from '../../lib/check_key_type.js';\nimport validateCrit from '../../lib/validate_crit.js';\nimport normalizeKey from '../../lib/normalize_key.js';\nexport class FlattenedSign {\n #payload;\n #protectedHeader;\n #unprotectedHeader;\n constructor(payload) {\n if (!(payload instanceof Uint8Array)) {\n throw new TypeError('payload must be an instance of Uint8Array');\n }\n this.#payload = payload;\n }\n setProtectedHeader(protectedHeader) {\n if (this.#protectedHeader) {\n throw new TypeError('setProtectedHeader can only be called once');\n }\n this.#protectedHeader = protectedHeader;\n return this;\n }\n setUnprotectedHeader(unprotectedHeader) {\n if (this.#unprotectedHeader) {\n throw new TypeError('setUnprotectedHeader can only be called once');\n }\n this.#unprotectedHeader = unprotectedHeader;\n return this;\n }\n async sign(key, options) {\n if (!this.#protectedHeader && !this.#unprotectedHeader) {\n throw new JWSInvalid('either setProtectedHeader or setUnprotectedHeader must be called before #sign()');\n }\n if (!isDisjoint(this.#protectedHeader, this.#unprotectedHeader)) {\n throw new JWSInvalid('JWS Protected and JWS Unprotected Header Parameter names must be disjoint');\n }\n const joseHeader = {\n ...this.#protectedHeader,\n ...this.#unprotectedHeader,\n };\n const extensions = validateCrit(JWSInvalid, new Map([['b64', true]]), options?.crit, this.#protectedHeader, joseHeader);\n let b64 = true;\n if (extensions.has('b64')) {\n b64 = this.#protectedHeader.b64;\n if (typeof b64 !== 'boolean') {\n throw new JWSInvalid('The \"b64\" (base64url-encode payload) Header Parameter must be a boolean');\n }\n }\n const { alg } = joseHeader;\n if (typeof alg !== 'string' || !alg) {\n throw new JWSInvalid('JWS \"alg\" (Algorithm) Header Parameter missing or invalid');\n }\n checkKeyType(alg, key, 'sign');\n let payload = this.#payload;\n if (b64) {\n payload = encoder.encode(b64u(payload));\n }\n let protectedHeader;\n if (this.#protectedHeader) {\n protectedHeader = encoder.encode(b64u(JSON.stringify(this.#protectedHeader)));\n }\n else {\n protectedHeader = encoder.encode('');\n }\n const data = concat(protectedHeader, encoder.encode('.'), payload);\n const k = await normalizeKey(key, alg);\n const signature = await sign(alg, k, data);\n const jws = {\n signature: b64u(signature),\n payload: '',\n };\n if (b64) {\n jws.payload = decoder.decode(payload);\n }\n if (this.#unprotectedHeader) {\n jws.header = this.#unprotectedHeader;\n }\n if (this.#protectedHeader) {\n jws.protected = decoder.decode(protectedHeader);\n }\n return jws;\n }\n}\n","import { FlattenedSign } from '../flattened/sign.js';\nexport class CompactSign {\n #flattened;\n constructor(payload) {\n this.#flattened = new FlattenedSign(payload);\n }\n setProtectedHeader(protectedHeader) {\n this.#flattened.setProtectedHeader(protectedHeader);\n return this;\n }\n async sign(key, options) {\n const jws = await this.#flattened.sign(key, options);\n if (jws.payload === undefined) {\n throw new TypeError('use the flattened module for creating JWS with b64: false');\n }\n return `${jws.protected}.${jws.payload}.${jws.signature}`;\n }\n}\n","export default (date) => Math.floor(date.getTime() / 1000);\n","const minute = 60;\nconst hour = minute * 60;\nconst day = hour * 24;\nconst week = day * 7;\nconst year = day * 365.25;\nconst REGEX = /^(\\+|\\-)? ?(\\d+|\\d+\\.\\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;\nexport default (str) => {\n const matched = REGEX.exec(str);\n if (!matched || (matched[4] && matched[1])) {\n throw new TypeError('Invalid time period format');\n }\n const value = parseFloat(matched[2]);\n const unit = matched[3].toLowerCase();\n let numericDate;\n switch (unit) {\n case 'sec':\n case 'secs':\n case 'second':\n case 'seconds':\n case 's':\n numericDate = Math.round(value);\n break;\n case 'minute':\n case 'minutes':\n case 'min':\n case 'mins':\n case 'm':\n numericDate = Math.round(value * minute);\n break;\n case 'hour':\n case 'hours':\n case 'hr':\n case 'hrs':\n case 'h':\n numericDate = Math.round(value * hour);\n break;\n case 'day':\n case 'days':\n case 'd':\n numericDate = Math.round(value * day);\n break;\n case 'week':\n case 'weeks':\n case 'w':\n numericDate = Math.round(value * week);\n break;\n default:\n numericDate = Math.round(value * year);\n break;\n }\n if (matched[1] === '-' || matched[4] === 'ago') {\n return -numericDate;\n }\n return numericDate;\n};\n","import { JWTClaimValidationFailed, JWTExpired, JWTInvalid } from '../util/errors.js';\nimport { decoder } from './buffer_utils.js';\nimport epoch from './epoch.js';\nimport secs from './secs.js';\nimport isObject from './is_object.js';\nimport { encoder } from './buffer_utils.js';\nfunction validateInput(label, input) {\n if (!Number.isFinite(input)) {\n throw new TypeError(`Invalid ${label} input`);\n }\n return input;\n}\nconst normalizeTyp = (value) => {\n if (value.includes('/')) {\n return value.toLowerCase();\n }\n return `application/${value.toLowerCase()}`;\n};\nconst checkAudiencePresence = (audPayload, audOption) => {\n if (typeof audPayload === 'string') {\n return audOption.includes(audPayload);\n }\n if (Array.isArray(audPayload)) {\n return audOption.some(Set.prototype.has.bind(new Set(audPayload)));\n }\n return false;\n};\nexport function validateClaimsSet(protectedHeader, encodedPayload, options = {}) {\n let payload;\n try {\n payload = JSON.parse(decoder.decode(encodedPayload));\n }\n catch {\n }\n if (!isObject(payload)) {\n throw new JWTInvalid('JWT Claims Set must be a top-level JSON object');\n }\n const { typ } = options;\n if (typ &&\n (typeof protectedHeader.typ !== 'string' ||\n normalizeTyp(protectedHeader.typ) !== normalizeTyp(typ))) {\n throw new JWTClaimValidationFailed('unexpected \"typ\" JWT header value', payload, 'typ', 'check_failed');\n }\n const { requiredClaims = [], issuer, subject, audience, maxTokenAge } = options;\n const presenceCheck = [...requiredClaims];\n if (maxTokenAge !== undefined)\n presenceCheck.push('iat');\n if (audience !== undefined)\n presenceCheck.push('aud');\n if (subject !== undefined)\n presenceCheck.push('sub');\n if (issuer !== undefined)\n presenceCheck.push('iss');\n for (const claim of new Set(presenceCheck.reverse())) {\n if (!(claim in payload)) {\n throw new JWTClaimValidationFailed(`missing required \"${claim}\" claim`, payload, claim, 'missing');\n }\n }\n if (issuer &&\n !(Array.isArray(issuer) ? issuer : [issuer]).includes(payload.iss)) {\n throw new JWTClaimValidationFailed('unexpected \"iss\" claim value', payload, 'iss', 'check_failed');\n }\n if (subject && payload.sub !== subject) {\n throw new JWTClaimValidationFailed('unexpected \"sub\" claim value', payload, 'sub', 'check_failed');\n }\n if (audience &&\n !checkAudiencePresence(payload.aud, typeof audience === 'string' ? [audience] : audience)) {\n throw new JWTClaimValidationFailed('unexpected \"aud\" claim value', payload, 'aud', 'check_failed');\n }\n let tolerance;\n switch (typeof options.clockTolerance) {\n case 'string':\n tolerance = secs(options.clockTolerance);\n break;\n case 'number':\n tolerance = options.clockTolerance;\n break;\n case 'undefined':\n tolerance = 0;\n break;\n default:\n throw new TypeError('Invalid clockTolerance option type');\n }\n const { currentDate } = options;\n const now = epoch(currentDate || new Date());\n if ((payload.iat !== undefined || maxTokenAge) && typeof payload.iat !== 'number') {\n throw new JWTClaimValidationFailed('\"iat\" claim must be a number', payload, 'iat', 'invalid');\n }\n if (payload.nbf !== undefined) {\n if (typeof payload.nbf !== 'number') {\n throw new JWTClaimValidationFailed('\"nbf\" claim must be a number', payload, 'nbf', 'invalid');\n }\n if (payload.nbf > now + tolerance) {\n throw new JWTClaimValidationFailed('\"nbf\" claim timestamp check failed', payload, 'nbf', 'check_failed');\n }\n }\n if (payload.exp !== undefined) {\n if (typeof payload.exp !== 'number') {\n throw new JWTClaimValidationFailed('\"exp\" claim must be a number', payload, 'exp', 'invalid');\n }\n if (payload.exp <= now - tolerance) {\n throw new JWTExpired('\"exp\" claim timestamp check failed', payload, 'exp', 'check_failed');\n }\n }\n if (maxTokenAge) {\n const age = now - payload.iat;\n const max = typeof maxTokenAge === 'number' ? maxTokenAge : secs(maxTokenAge);\n if (age - tolerance > max) {\n throw new JWTExpired('\"iat\" claim timestamp check failed (too far in the past)', payload, 'iat', 'check_failed');\n }\n if (age < 0 - tolerance) {\n throw new JWTClaimValidationFailed('\"iat\" claim timestamp check failed (it should be in the past)', payload, 'iat', 'check_failed');\n }\n }\n return payload;\n}\nexport class JWTClaimsBuilder {\n #payload;\n constructor(payload) {\n if (!isObject(payload)) {\n throw new TypeError('JWT Claims Set MUST be an object');\n }\n this.#payload = structuredClone(payload);\n }\n data() {\n return encoder.encode(JSON.stringify(this.#payload));\n }\n get iss() {\n return this.#payload.iss;\n }\n set iss(value) {\n this.#payload.iss = value;\n }\n get sub() {\n return this.#payload.sub;\n }\n set sub(value) {\n this.#payload.sub = value;\n }\n get aud() {\n return this.#payload.aud;\n }\n set aud(value) {\n this.#payload.aud = value;\n }\n set jti(value) {\n this.#payload.jti = value;\n }\n set nbf(value) {\n if (typeof value === 'number') {\n this.#payload.nbf = validateInput('setNotBefore', value);\n }\n else if (value instanceof Date) {\n this.#payload.nbf = validateInput('setNotBefore', epoch(value));\n }\n else {\n this.#payload.nbf = epoch(new Date()) + secs(value);\n }\n }\n set exp(value) {\n if (typeof value === 'number') {\n this.#payload.exp = validateInput('setExpirationTime', value);\n }\n else if (value instanceof Date) {\n this.#payload.exp = validateInput('setExpirationTime', epoch(value));\n }\n else {\n this.#payload.exp = epoch(new Date()) + secs(value);\n }\n }\n set iat(value) {\n if (typeof value === 'undefined') {\n this.#payload.iat = epoch(new Date());\n }\n else if (value instanceof Date) {\n this.#payload.iat = validateInput('setIssuedAt', epoch(value));\n }\n else if (typeof value === 'string') {\n this.#payload.iat = validateInput('setIssuedAt', epoch(new Date()) + secs(value));\n }\n else {\n this.#payload.iat = validateInput('setIssuedAt', value);\n }\n }\n}\n","import { CompactSign } from '../jws/compact/sign.js';\nimport { JWTInvalid } from '../util/errors.js';\nimport { JWTClaimsBuilder } from '../lib/jwt_claims_set.js';\nexport class SignJWT {\n #protectedHeader;\n #jwt;\n constructor(payload = {}) {\n this.#jwt = new JWTClaimsBuilder(payload);\n }\n setIssuer(issuer) {\n this.#jwt.iss = issuer;\n return this;\n }\n setSubject(subject) {\n this.#jwt.sub = subject;\n return this;\n }\n setAudience(audience) {\n this.#jwt.aud = audience;\n return this;\n }\n setJti(jwtId) {\n this.#jwt.jti = jwtId;\n return this;\n }\n setNotBefore(input) {\n this.#jwt.nbf = input;\n return this;\n }\n setExpirationTime(input) {\n this.#jwt.exp = input;\n return this;\n }\n setIssuedAt(input) {\n this.#jwt.iat = input;\n return this;\n }\n setProtectedHeader(protectedHeader) {\n this.#protectedHeader = protectedHeader;\n return this;\n }\n async sign(key, options) {\n const sig = new CompactSign(this.#jwt.data());\n sig.setProtectedHeader(this.#protectedHeader);\n if (Array.isArray(this.#protectedHeader?.crit) &&\n this.#protectedHeader.crit.includes('b64') &&\n this.#protectedHeader.b64 === false) {\n throw new JWTInvalid('JWTs MUST NOT use unencoded payload');\n }\n return sig.sign(key, options);\n }\n}\n","import { SignJWT, importPKCS8 } from 'jose';\nconst payload = (issuerId, duration)=>({\n audience: 'appstoreconnect-v1',\n expiresIn: duration,\n issuer: issuerId\n });\n/**\n * Synchronous token generation.\n * @deprecated Use `token` instead.\n * \n * @param privateKey\n * @param issuerId \n * @param privateKeyId \n * @param duration \n * @returns \n */ export function tokenSync(privateKey, issuerId, privateKeyId, duration = 500) {\n let result;\n token(privateKey, issuerId, privateKeyId, duration).then((token)=>{\n result = token;\n return token;\n }).catch((error)=>{\n throw new Error(`Failed to generate token: ${error.message}`);\n });\n return result ?? '';\n}\n/**\n * Asynchronous token generation.\n * @param privateKey \n * @param issuerId \n * @param privateKeyId \n * @param duration \n * @returns \n */ export async function token(privateKey, issuerId, privateKeyId, duration = 500) {\n const key = await importPKCS8(privateKey.toString(), 'ES256');\n return new SignJWT(payload(issuerId, duration)).setProtectedHeader({\n alg: 'ES256',\n kid: privateKeyId\n }).sign(key);\n}\nconst jwtGenCore = {\n tokenSync,\n token\n};\nexport default jwtGenCore;\n\n\n//# sourceMappingURL=index.js.map","const ANSI_BACKGROUND_OFFSET = 10;\n\nconst wrapAnsi16 = (offset = 0) => code => `\\u001B[${code + offset}m`;\n\nconst wrapAnsi256 = (offset = 0) => code => `\\u001B[${38 + offset};5;${code}m`;\n\nconst wrapAnsi16m = (offset = 0) => (red, green, blue) => `\\u001B[${38 + offset};2;${red};${green};${blue}m`;\n\nconst styles = {\n\tmodifier: {\n\t\treset: [0, 0],\n\t\t// 21 isn't widely supported and 22 does the same thing\n\t\tbold: [1, 22],\n\t\tdim: [2, 22],\n\t\titalic: [3, 23],\n\t\tunderline: [4, 24],\n\t\toverline: [53, 55],\n\t\tinverse: [7, 27],\n\t\thidden: [8, 28],\n\t\tstrikethrough: [9, 29],\n\t},\n\tcolor: {\n\t\tblack: [30, 39],\n\t\tred: [31, 39],\n\t\tgreen: [32, 39],\n\t\tyellow: [33, 39],\n\t\tblue: [34, 39],\n\t\tmagenta: [35, 39],\n\t\tcyan: [36, 39],\n\t\twhite: [37, 39],\n\n\t\t// Bright color\n\t\tblackBright: [90, 39],\n\t\tgray: [90, 39], // Alias of `blackBright`\n\t\tgrey: [90, 39], // Alias of `blackBright`\n\t\tredBright: [91, 39],\n\t\tgreenBright: [92, 39],\n\t\tyellowBright: [93, 39],\n\t\tblueBright: [94, 39],\n\t\tmagentaBright: [95, 39],\n\t\tcyanBright: [96, 39],\n\t\twhiteBright: [97, 39],\n\t},\n\tbgColor: {\n\t\tbgBlack: [40, 49],\n\t\tbgRed: [41, 49],\n\t\tbgGreen: [42, 49],\n\t\tbgYellow: [43, 49],\n\t\tbgBlue: [44, 49],\n\t\tbgMagenta: [45, 49],\n\t\tbgCyan: [46, 49],\n\t\tbgWhite: [47, 49],\n\n\t\t// Bright color\n\t\tbgBlackBright: [100, 49],\n\t\tbgGray: [100, 49], // Alias of `bgBlackBright`\n\t\tbgGrey: [100, 49], // Alias of `bgBlackBright`\n\t\tbgRedBright: [101, 49],\n\t\tbgGreenBright: [102, 49],\n\t\tbgYellowBright: [103, 49],\n\t\tbgBlueBright: [104, 49],\n\t\tbgMagentaBright: [105, 49],\n\t\tbgCyanBright: [106, 49],\n\t\tbgWhiteBright: [107, 49],\n\t},\n};\n\nexport const modifierNames = Object.keys(styles.modifier);\nexport const foregroundColorNames = Object.keys(styles.color);\nexport const backgroundColorNames = Object.keys(styles.bgColor);\nexport const colorNames = [...foregroundColorNames, ...backgroundColorNames];\n\nfunction assembleStyles() {\n\tconst codes = new Map();\n\n\tfor (const [groupName, group] of Object.entries(styles)) {\n\t\tfor (const [styleName, style] of Object.entries(group)) {\n\t\t\tstyles[styleName] = {\n\t\t\t\topen: `\\u001B[${style[0]}m`,\n\t\t\t\tclose: `\\u001B[${style[1]}m`,\n\t\t\t};\n\n\t\t\tgroup[styleName] = styles[styleName];\n\n\t\t\tcodes.set(style[0], style[1]);\n\t\t}\n\n\t\tObject.defineProperty(styles, groupName, {\n\t\t\tvalue: group,\n\t\t\tenumerable: false,\n\t\t});\n\t}\n\n\tObject.defineProperty(styles, 'codes', {\n\t\tvalue: codes,\n\t\tenumerable: false,\n\t});\n\n\tstyles.color.close = '\\u001B[39m';\n\tstyles.bgColor.close = '\\u001B[49m';\n\n\tstyles.color.ansi = wrapAnsi16();\n\tstyles.color.ansi256 = wrapAnsi256();\n\tstyles.color.ansi16m = wrapAnsi16m();\n\tstyles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);\n\tstyles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);\n\n\t// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n\tObject.defineProperties(styles, {\n\t\trgbToAnsi256: {\n\t\t\tvalue(red, green, blue) {\n\t\t\t\t// We use the extended greyscale palette here, with the exception of\n\t\t\t\t// black and white. normal palette only has 4 greyscale shades.\n\t\t\t\tif (red === green && green === blue) {\n\t\t\t\t\tif (red < 8) {\n\t\t\t\t\t\treturn 16;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (red > 248) {\n\t\t\t\t\t\treturn 231;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Math.round(((red - 8) / 247) * 24) + 232;\n\t\t\t\t}\n\n\t\t\t\treturn 16\n\t\t\t\t\t+ (36 * Math.round(red / 255 * 5))\n\t\t\t\t\t+ (6 * Math.round(green / 255 * 5))\n\t\t\t\t\t+ Math.round(blue / 255 * 5);\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToRgb: {\n\t\t\tvalue(hex) {\n\t\t\t\tconst matches = /[a-f\\d]{6}|[a-f\\d]{3}/i.exec(hex.toString(16));\n\t\t\t\tif (!matches) {\n\t\t\t\t\treturn [0, 0, 0];\n\t\t\t\t}\n\n\t\t\t\tlet [colorString] = matches;\n\n\t\t\t\tif (colorString.length === 3) {\n\t\t\t\t\tcolorString = [...colorString].map(character => character + character).join('');\n\t\t\t\t}\n\n\t\t\t\tconst integer = Number.parseInt(colorString, 16);\n\n\t\t\t\treturn [\n\t\t\t\t\t/* eslint-disable no-bitwise */\n\t\t\t\t\t(integer >> 16) & 0xFF,\n\t\t\t\t\t(integer >> 8) & 0xFF,\n\t\t\t\t\tinteger & 0xFF,\n\t\t\t\t\t/* eslint-enable no-bitwise */\n\t\t\t\t];\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi256: {\n\t\t\tvalue: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t\tansi256ToAnsi: {\n\t\t\tvalue(code) {\n\t\t\t\tif (code < 8) {\n\t\t\t\t\treturn 30 + code;\n\t\t\t\t}\n\n\t\t\t\tif (code < 16) {\n\t\t\t\t\treturn 90 + (code - 8);\n\t\t\t\t}\n\n\t\t\t\tlet red;\n\t\t\t\tlet green;\n\t\t\t\tlet blue;\n\n\t\t\t\tif (code >= 232) {\n\t\t\t\t\tred = (((code - 232) * 10) + 8) / 255;\n\t\t\t\t\tgreen = red;\n\t\t\t\t\tblue = red;\n\t\t\t\t} else {\n\t\t\t\t\tcode -= 16;\n\n\t\t\t\t\tconst remainder = code % 36;\n\n\t\t\t\t\tred = Math.floor(code / 36) / 5;\n\t\t\t\t\tgreen = Math.floor(remainder / 6) / 5;\n\t\t\t\t\tblue = (remainder % 6) / 5;\n\t\t\t\t}\n\n\t\t\t\tconst value = Math.max(red, green, blue) * 2;\n\n\t\t\t\tif (value === 0) {\n\t\t\t\t\treturn 30;\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\t\tlet result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));\n\n\t\t\t\tif (value === 2) {\n\t\t\t\t\tresult += 60;\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tenumerable: false,\n\t\t},\n\t\trgbToAnsi: {\n\t\t\tvalue: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),\n\t\t\tenumerable: false,\n\t\t},\n\t\thexToAnsi: {\n\t\t\tvalue: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),\n\t\t\tenumerable: false,\n\t\t},\n\t});\n\n\treturn styles;\n}\n\nconst ansiStyles = assembleStyles();\n\nexport default ansiStyles;\n","const __WEBPACK_NAMESPACE_OBJECT__ = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"node:process\");","const __WEBPACK_NAMESPACE_OBJECT__ = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"node:os\");","const __WEBPACK_NAMESPACE_OBJECT__ = __WEBPACK_EXTERNAL_createRequire(import.meta.url)(\"node:tty\");","import process from 'node:process';\nimport os from 'node:os';\nimport tty from 'node:tty';\n\n// From: https://github.com/sindresorhus/has-flag/blob/main/index.js\n/// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {\nfunction hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process.argv) {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n}\n\nconst {env} = process;\n\nlet flagForceColor;\nif (\n\thasFlag('no-color')\n\t|| hasFlag('no-colors')\n\t|| hasFlag('color=false')\n\t|| hasFlag('color=never')\n) {\n\tflagForceColor = 0;\n} else if (\n\thasFlag('color')\n\t|| hasFlag('colors')\n\t|| hasFlag('color=true')\n\t|| hasFlag('color=always')\n) {\n\tflagForceColor = 1;\n}\n\nfunction envForceColor() {\n\tif ('FORCE_COLOR' in env) {\n\t\tif (env.FORCE_COLOR === 'true') {\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (env.FORCE_COLOR === 'false') {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3,\n\t};\n}\n\nfunction _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m')\n\t\t\t|| hasFlag('color=full')\n\t\t\t|| hasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\t// Check for Azure DevOps pipelines.\n\t// Has to be above the `!streamIsTTY` check.\n\tif ('TF_BUILD' in env && 'AGENT_NAME' in env) {\n\t\treturn 1;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10\n\t\t\t&& Number(osRelease[2]) >= 10_586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14_931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['GITHUB_ACTIONS', 'GITEA_ACTIONS', 'CIRCLECI'].some(key => key in env)) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (['TRAVIS', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-kitty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'xterm-ghostty') {\n\t\treturn 3;\n\t}\n\n\tif (env.TERM === 'wezterm') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app': {\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\t}\n\n\t\t\tcase 'Apple_Terminal': {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nexport function createSupportsColor(stream, options = {}) {\n\tconst level = _supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options,\n\t});\n\n\treturn translateLevel(level);\n}\n\nconst supportsColor = {\n\tstdout: createSupportsColor({isTTY: tty.isatty(1)}),\n\tstderr: createSupportsColor({isTTY: tty.isatty(2)}),\n};\n\nexport default supportsColor;\n","// TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.\nexport function stringReplaceAll(string, substring, replacer) {\n\tlet index = string.indexOf(substring);\n\tif (index === -1) {\n\t\treturn string;\n\t}\n\n\tconst substringLength = substring.length;\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\treturnValue += string.slice(endIndex, index) + substring + replacer;\n\t\tendIndex = index + substringLength;\n\t\tindex = string.indexOf(substring, endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n\nexport function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {\n\tlet endIndex = 0;\n\tlet returnValue = '';\n\tdo {\n\t\tconst gotCR = string[index - 1] === '\\r';\n\t\treturnValue += string.slice(endIndex, (gotCR ? index - 1 : index)) + prefix + (gotCR ? '\\r\\n' : '\\n') + postfix;\n\t\tendIndex = index + 1;\n\t\tindex = string.indexOf('\\n', endIndex);\n\t} while (index !== -1);\n\n\treturnValue += string.slice(endIndex);\n\treturn returnValue;\n}\n","import ansiStyles from '#ansi-styles';\nimport supportsColor from '#supports-color';\nimport { // eslint-disable-line import/order\n\tstringReplaceAll,\n\tstringEncaseCRLFWithFirstIndex,\n} from './utilities.js';\n\nconst {stdout: stdoutColor, stderr: stderrColor} = supportsColor;\n\nconst GENERATOR = Symbol('GENERATOR');\nconst STYLER = Symbol('STYLER');\nconst IS_EMPTY = Symbol('IS_EMPTY');\n\n// `supportsColor.level` → `ansiStyles.color[name]` mapping\nconst levelMapping = [\n\t'ansi',\n\t'ansi',\n\t'ansi256',\n\t'ansi16m',\n];\n\nconst styles = Object.create(null);\n\nconst applyOptions = (object, options = {}) => {\n\tif (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {\n\t\tthrow new Error('The `level` option should be an integer from 0 to 3');\n\t}\n\n\t// Detect level if not set manually\n\tconst colorLevel = stdoutColor ? stdoutColor.level : 0;\n\tobject.level = options.level === undefined ? colorLevel : options.level;\n};\n\nexport class Chalk {\n\tconstructor(options) {\n\t\t// eslint-disable-next-line no-constructor-return\n\t\treturn chalkFactory(options);\n\t}\n}\n\nconst chalkFactory = options => {\n\tconst chalk = (...strings) => strings.join(' ');\n\tapplyOptions(chalk, options);\n\n\tObject.setPrototypeOf(chalk, createChalk.prototype);\n\n\treturn chalk;\n};\n\nfunction createChalk(options) {\n\treturn chalkFactory(options);\n}\n\nObject.setPrototypeOf(createChalk.prototype, Function.prototype);\n\nfor (const [styleName, style] of Object.entries(ansiStyles)) {\n\tstyles[styleName] = {\n\t\tget() {\n\t\t\tconst builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);\n\t\t\tObject.defineProperty(this, styleName, {value: builder});\n\t\t\treturn builder;\n\t\t},\n\t};\n}\n\nstyles.visible = {\n\tget() {\n\t\tconst builder = createBuilder(this, this[STYLER], true);\n\t\tObject.defineProperty(this, 'visible', {value: builder});\n\t\treturn builder;\n\t},\n};\n\nconst getModelAnsi = (model, level, type, ...arguments_) => {\n\tif (model === 'rgb') {\n\t\tif (level === 'ansi16m') {\n\t\t\treturn ansiStyles[type].ansi16m(...arguments_);\n\t\t}\n\n\t\tif (level === 'ansi256') {\n\t\t\treturn ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));\n\t\t}\n\n\t\treturn ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));\n\t}\n\n\tif (model === 'hex') {\n\t\treturn getModelAnsi('rgb', level, type, ...ansiStyles.hexToRgb(...arguments_));\n\t}\n\n\treturn ansiStyles[type][model](...arguments_);\n};\n\nconst usedModels = ['rgb', 'hex', 'ansi256'];\n\nfor (const model of usedModels) {\n\tstyles[model] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), ansiStyles.color.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n\n\tconst bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);\n\tstyles[bgModel] = {\n\t\tget() {\n\t\t\tconst {level} = this;\n\t\t\treturn function (...arguments_) {\n\t\t\t\tconst styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), ansiStyles.bgColor.close, this[STYLER]);\n\t\t\t\treturn createBuilder(this, styler, this[IS_EMPTY]);\n\t\t\t};\n\t\t},\n\t};\n}\n\nconst proto = Object.defineProperties(() => {}, {\n\t...styles,\n\tlevel: {\n\t\tenumerable: true,\n\t\tget() {\n\t\t\treturn this[GENERATOR].level;\n\t\t},\n\t\tset(level) {\n\t\t\tthis[GENERATOR].level = level;\n\t\t},\n\t},\n});\n\nconst createStyler = (open, close, parent) => {\n\tlet openAll;\n\tlet closeAll;\n\tif (parent === undefined) {\n\t\topenAll = open;\n\t\tcloseAll = close;\n\t} else {\n\t\topenAll = parent.openAll + open;\n\t\tcloseAll = close + parent.closeAll;\n\t}\n\n\treturn {\n\t\topen,\n\t\tclose,\n\t\topenAll,\n\t\tcloseAll,\n\t\tparent,\n\t};\n};\n\nconst createBuilder = (self, _styler, _isEmpty) => {\n\t// Single argument is hot path, implicit coercion is faster than anything\n\t// eslint-disable-next-line no-implicit-coercion\n\tconst builder = (...arguments_) => applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));\n\n\t// We alter the prototype because we must return a function, but there is\n\t// no way to create a function with a different prototype\n\tObject.setPrototypeOf(builder, proto);\n\n\tbuilder[GENERATOR] = self;\n\tbuilder[STYLER] = _styler;\n\tbuilder[IS_EMPTY] = _isEmpty;\n\n\treturn builder;\n};\n\nconst applyStyle = (self, string) => {\n\tif (self.level <= 0 || !string) {\n\t\treturn self[IS_EMPTY] ? '' : string;\n\t}\n\n\tlet styler = self[STYLER];\n\n\tif (styler === undefined) {\n\t\treturn string;\n\t}\n\n\tconst {openAll, closeAll} = styler;\n\tif (string.includes('\\u001B')) {\n\t\twhile (styler !== undefined) {\n\t\t\t// Replace any instances already present with a re-opening code\n\t\t\t// otherwise only the part of the string until said closing code\n\t\t\t// will be colored, and the rest will simply be 'plain'.\n\t\t\tstring = stringReplaceAll(string, styler.close, styler.open);\n\n\t\t\tstyler = styler.parent;\n\t\t}\n\t}\n\n\t// We can move both next actions out of loop, because remaining actions in loop won't have\n\t// any/visible effect on parts we add here. Close the styling before a linebreak and reopen\n\t// after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92\n\tconst lfIndex = string.indexOf('\\n');\n\tif (lfIndex !== -1) {\n\t\tstring = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);\n\t}\n\n\treturn openAll + string + closeAll;\n};\n\nObject.defineProperties(createChalk.prototype, styles);\n\nconst chalk = createChalk();\nexport const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});\n\nexport {\n\tmodifierNames,\n\tforegroundColorNames,\n\tbackgroundColorNames,\n\tcolorNames,\n\n\t// TODO: Remove these aliases in the next major version\n\tmodifierNames as modifiers,\n\tforegroundColorNames as foregroundColors,\n\tbackgroundColorNames as backgroundColors,\n\tcolorNames as colors,\n} from './vendor/ansi-styles/index.js';\n\nexport {\n\tstdoutColor as supportsColor,\n\tstderrColor as supportsColorStderr,\n};\n\nexport default chalk;\n","// eslint-disable-next-line unicorn/import-style\nimport chalk, {chalkStderr} from 'chalk';\n\nconst TEMPLATE_REGEX = /(?:\\\\(u(?:[a-f\\d]{4}|{[a-f\\d]{1,6}})|x[a-f\\d]{2}|.))|(?:{(~)?(#?[\\w:]+(?:\\([^)]*\\))?(?:\\.#?[\\w:]+(?:\\([^)]*\\))?)*)(?:[ \\t]|(?=\\r?\\n)))|(})|((?:.|[\\r\\n\\f])+?)/gi;\nconst STYLE_REGEX = /(?:^|\\.)(?:(?:(\\w+)(?:\\(([^)]*)\\))?)|(?:#(?=[:a-fA-F\\d]{2,})([a-fA-F\\d]{6})?(?::([a-fA-F\\d]{6}))?))/g;\nconst STRING_REGEX = /^(['\"])((?:\\\\.|(?!\\1)[^\\\\])*)\\1$/;\nconst ESCAPE_REGEX = /\\\\(u(?:[a-f\\d]{4}|{[a-f\\d]{1,6}})|x[a-f\\d]{2}|.)|([^\\\\])/gi;\n\nconst ESCAPES = new Map([\n\t['n', '\\n'],\n\t['r', '\\r'],\n\t['t', '\\t'],\n\t['b', '\\b'],\n\t['f', '\\f'],\n\t['v', '\\v'],\n\t['0', '\\0'],\n\t['\\\\', '\\\\'],\n\t['e', '\\u001B'],\n\t['a', '\\u0007'],\n]);\n\nfunction unescape(c) {\n\tconst u = c[0] === 'u';\n\tconst bracket = c[1] === '{';\n\n\tif ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {\n\t\treturn String.fromCodePoint(Number.parseInt(c.slice(1), 16));\n\t}\n\n\tif (u && bracket) {\n\t\treturn String.fromCodePoint(Number.parseInt(c.slice(2, -1), 16));\n\t}\n\n\treturn ESCAPES.get(c) || c;\n}\n\nfunction parseArguments(name, arguments_) {\n\tconst results = [];\n\tconst chunks = arguments_.trim().split(/\\s*,\\s*/g);\n\tlet matches;\n\n\tfor (const chunk of chunks) {\n\t\tconst number = Number(chunk);\n\t\tif (!Number.isNaN(number)) {\n\t\t\tresults.push(number);\n\t\t} else if ((matches = chunk.match(STRING_REGEX))) {\n\t\t\tresults.push(matches[2].replace(ESCAPE_REGEX, (_, escape, character) => escape ? unescape(escape) : character));\n\t\t} else {\n\t\t\tthrow new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);\n\t\t}\n\t}\n\n\treturn results;\n}\n\nfunction parseHex(hex) {\n\tconst n = Number.parseInt(hex, 16);\n\treturn [\n\t\t// eslint-disable-next-line no-bitwise\n\t\t(n >> 16) & 0xFF,\n\t\t// eslint-disable-next-line no-bitwise\n\t\t(n >> 8) & 0xFF,\n\t\t// eslint-disable-next-line no-bitwise\n\t\tn & 0xFF,\n\t];\n}\n\nfunction parseStyle(style) {\n\tSTYLE_REGEX.lastIndex = 0;\n\n\tconst results = [];\n\tlet matches;\n\n\twhile ((matches = STYLE_REGEX.exec(style)) !== null) {\n\t\tconst name = matches[1];\n\n\t\tif (matches[2]) {\n\t\t\tresults.push([name, ...parseArguments(name, matches[2])]);\n\t\t} else if (matches[3] || matches[4]) {\n\t\t\tif (matches[3]) {\n\t\t\t\tresults.push(['rgb', ...parseHex(matches[3])]);\n\t\t\t}\n\n\t\t\tif (matches[4]) {\n\t\t\t\tresults.push(['bgRgb', ...parseHex(matches[4])]);\n\t\t\t}\n\t\t} else {\n\t\t\tresults.push([name]);\n\t\t}\n\t}\n\n\treturn results;\n}\n\nexport function makeTemplate(chalk) {\n\tfunction buildStyle(styles) {\n\t\tconst enabled = {};\n\n\t\tfor (const layer of styles) {\n\t\t\tfor (const style of layer.styles) {\n\t\t\t\tenabled[style[0]] = layer.inverse ? null : style.slice(1);\n\t\t\t}\n\t\t}\n\n\t\tlet current = chalk;\n\t\tfor (const [styleName, styles] of Object.entries(enabled)) {\n\t\t\tif (!Array.isArray(styles)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!(styleName in current)) {\n\t\t\t\tthrow new Error(`Unknown Chalk style: ${styleName}`);\n\t\t\t}\n\n\t\t\tcurrent = styles.length > 0 ? current[styleName](...styles) : current[styleName];\n\t\t}\n\n\t\treturn current;\n\t}\n\n\tfunction template(string) {\n\t\tconst styles = [];\n\t\tconst chunks = [];\n\t\tlet chunk = [];\n\n\t\t// eslint-disable-next-line max-params\n\t\tstring.replace(TEMPLATE_REGEX, (_, escapeCharacter, inverse, style, close, character) => {\n\t\t\tif (escapeCharacter) {\n\t\t\t\tchunk.push(unescape(escapeCharacter));\n\t\t\t} else if (style) {\n\t\t\t\tconst string = chunk.join('');\n\t\t\t\tchunk = [];\n\t\t\t\tchunks.push(styles.length === 0 ? string : buildStyle(styles)(string));\n\t\t\t\tstyles.push({inverse, styles: parseStyle(style)});\n\t\t\t} else if (close) {\n\t\t\t\tif (styles.length === 0) {\n\t\t\t\t\tthrow new Error('Found extraneous } in Chalk template literal');\n\t\t\t\t}\n\n\t\t\t\tchunks.push(buildStyle(styles)(chunk.join('')));\n\t\t\t\tchunk = [];\n\t\t\t\tstyles.pop();\n\t\t\t} else {\n\t\t\t\tchunk.push(character);\n\t\t\t}\n\t\t});\n\n\t\tchunks.push(chunk.join(''));\n\n\t\tif (styles.length > 0) {\n\t\t\tthrow new Error(`Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\\`}\\`)`);\n\t\t}\n\n\t\treturn chunks.join('');\n\t}\n\n\treturn template;\n}\n\nfunction makeChalkTemplate(template) {\n\tfunction chalkTemplate(firstString, ...arguments_) {\n\t\tif (!Array.isArray(firstString) || !Array.isArray(firstString.raw)) {\n\t\t\t// If chalkTemplate() was called by itself or with a string\n\t\t\tthrow new TypeError('A tagged template literal must be provided');\n\t\t}\n\n\t\tconst parts = [firstString.raw[0]];\n\n\t\tfor (let index = 1; index < firstString.raw.length; index++) {\n\t\t\tparts.push(\n\t\t\t\tString(arguments_[index - 1]).replace(/[{}\\\\]/g, '\\\\$&'),\n\t\t\t\tString(firstString.raw[index]),\n\t\t\t);\n\t\t}\n\n\t\treturn template(parts.join(''));\n\t}\n\n\treturn chalkTemplate;\n}\n\nexport const makeTaggedTemplate = chalkInstance => makeChalkTemplate(makeTemplate(chalkInstance));\n\nexport const template = makeTemplate(chalk);\nexport default makeChalkTemplate(template);\n\nexport const templateStderr = makeTemplate(chalkStderr);\nexport const chalkTemplateStderr = makeChalkTemplate(templateStderr);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","var webpackQueues = typeof Symbol === \"function\" ? Symbol(\"webpack queues\") : \"__webpack_queues__\";\nvar webpackExports = typeof Symbol === \"function\" ? Symbol(\"webpack exports\") : \"__webpack_exports__\";\nvar webpackError = typeof Symbol === \"function\" ? Symbol(\"webpack error\") : \"__webpack_error__\";\nvar resolveQueue = (queue) => {\n\tif(queue && queue.d < 1) {\n\t\tqueue.d = 1;\n\t\tqueue.forEach((fn) => (fn.r--));\n\t\tqueue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));\n\t}\n}\nvar wrapDeps = (deps) => (deps.map((dep) => {\n\tif(dep !== null && typeof dep === \"object\") {\n\t\tif(dep[webpackQueues]) return dep;\n\t\tif(dep.then) {\n\t\t\tvar queue = [];\n\t\t\tqueue.d = 0;\n\t\t\tdep.then((r) => {\n\t\t\t\tobj[webpackExports] = r;\n\t\t\t\tresolveQueue(queue);\n\t\t\t}, (e) => {\n\t\t\t\tobj[webpackError] = e;\n\t\t\t\tresolveQueue(queue);\n\t\t\t});\n\t\t\tvar obj = {};\n\t\t\tobj[webpackQueues] = (fn) => (fn(queue));\n\t\t\treturn obj;\n\t\t}\n\t}\n\tvar ret = {};\n\tret[webpackQueues] = x => {};\n\tret[webpackExports] = dep;\n\treturn ret;\n}));\n__webpack_require__.a = (module, body, hasAwait) => {\n\tvar queue;\n\thasAwait && ((queue = []).d = -1);\n\tvar depQueues = new Set();\n\tvar exports = module.exports;\n\tvar currentDeps;\n\tvar outerResolve;\n\tvar reject;\n\tvar promise = new Promise((resolve, rej) => {\n\t\treject = rej;\n\t\touterResolve = resolve;\n\t});\n\tpromise[webpackExports] = exports;\n\tpromise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise[\"catch\"](x => {}));\n\tmodule.exports = promise;\n\tbody((deps) => {\n\t\tcurrentDeps = wrapDeps(deps);\n\t\tvar fn;\n\t\tvar getResult = () => (currentDeps.map((d) => {\n\t\t\tif(d[webpackError]) throw d[webpackError];\n\t\t\treturn d[webpackExports];\n\t\t}))\n\t\tvar promise = new Promise((resolve) => {\n\t\t\tfn = () => (resolve(getResult));\n\t\t\tfn.r = 0;\n\t\t\tvar fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));\n\t\t\tcurrentDeps.map((dep) => (dep[webpackQueues](fnQueue)));\n\t\t});\n\t\treturn fn.r ? promise : getResult();\n\t}, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));\n\tqueue && queue.d < 0 && (queue.d = 0);\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\\/\\/\\/\\w:/) ? 1 : 0, -1) + \"/\";","// startup\n// Load entry module and return exports\n// This entry module used 'module' so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(629);\n"],"mappings":"uDAAA,MAAAA,EAAAC,OAAA,YAEA,MAAAC,iBAAAC,MACA,WAAAC,CAAAC,EAAAC,GACAC,MAAAF,GACAG,KAAAC,KAAA,WACAD,KAAAF,OAEAI,OAAAC,eAAAH,KAAAN,SAAAU,UACA,EAGA,SAAAC,IACAC,GACAC,KACAA,EAAAC,QAAAD,KAAAE,MAAA,GAAAC,WACAA,EAAA,MAAAC,iBACAA,EAAA,OACA,IAEA,IAAAL,EAAA,CACA,UAAAZ,SACA,4CACA,qBAEA,CAEA,MAAAkB,EAAA,CAAAC,EAAA,IAEA,MAAAC,EAAA,GACA,MAAAC,EAAA,GAEA,UAAAC,KAAAd,OAAAe,KAAAX,GAAA,CACA,IAAAU,EAAA,CACA,UAAAtB,SACA,yCACA,uBAEA,CAEA,GAAAsB,EAAA,UACA,UAAAtB,SACA,gDAAAsB,KACA,wBAEA,CAEA,GAAAA,EAAAE,SAAA,GACA,UAAAxB,SACA,qEAAAsB,IACA,wBAEA,CAEA,UAAAV,EAAAU,KAAA,UACAF,EAAAE,GAAAV,EAAAU,GACA,QACA,CAEA,IAAAG,EAAAb,EAAAU,GACA,IAAAI,EAAA,MAEA,GACAC,MAAAC,QAAAH,IACAA,EAAAD,SAAA,UACAC,EAAA,gBACA,CACA,MAAAI,GAAAJ,EACAA,EAAA,CAAAK,EAAAvB,EAAAwB,EAAA,MACAA,EAAAC,KAAAH,EAAAC,EAAAvB,EAAAwB,IAAAP,OAAA,KACA,OAAAO,CAAA,EAEAL,EAAAG,IAAAI,SAAAJ,EAAA/B,KAAA,IACA,gBAAA2B,IAAA,Y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H,QACA,IAAAc,EAAAF,EAAAG,KAAAnB,GACA,GAAAkB,EAAA,CACA,IAAAhD,EAAA+B,GAAAlD,EAAAC,QAAAoB,MACAwC,EAAAQ,SAAA,SAAAC,EAAA3F,GACA2F,EAAAhG,GAAA6C,EAAAgD,EAAAxF,EAAA,GACA,IAEA,OAAAwC,CACA,CAEA,UAAAzE,MACA,WAAAuG,EAAA,6BAAAD,EAAA,IAEA,CAEA,SAAAuB,MAAAvB,EAAAC,EAAAC,GACA,IAAAF,EAAA,CACA,UAAAtG,MAAA,2BACA,CAEA,OAAAqG,iBAAAC,EAAAC,EAAAC,EACA,CAKA,SAAA7B,MACA,WAAAmD,IACA,CAEAxE,EAAAC,QAAAgB,SACAjB,EAAAC,QAAAgB,kBACAjB,EAAAC,QAAAsE,YACAvE,EAAAC,QAAAoB,QACArB,EAAAC,QAAAmB,eAAA,0BACApB,EAAAC,QAAAwE,8BAAA,2BACAzE,EAAAC,QAAAyE,gBAAA,0BACA1E,EAAAC,QAAA0E,oBAAA,c,iBC9NA1E,EAAA2E,sBACA3E,EAAA4E,UACA5E,EAAA6E,UACA7E,EAAA8E,oBACA9E,EAAA+E,QAAAC,eACAhF,EAAAiF,QAAA,MACA,IAAAC,EAAA,MAEA,WACA,IAAAA,EAAA,CACAA,EAAA,KACAC,QAAAC,KAAA,wIACA,EAEA,EATA,GAeApF,EAAAqF,OAAA,CACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAYA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ACA,CACA,OAAAsB,CACA,CAMA,SAAA/D,UACAE,QAAAC,KAAA,wIACA,CAEAwC,YAAAI,OAAAJ,YAAA/C,QAEA,OAAA+C,WACA,CAEA7H,EAAAC,QAAA2H,K,iBC9RA,UAAArK,UAAA,aAAAA,QAAAW,OAAA,YAAAX,QAAAmN,UAAA,MAAAnN,QAAAiI,OAAA,CACAxF,EAAAC,QAAAsH,EAAA,KACA,MACAvH,EAAAC,QAAAsH,EAAA,KACA,C,iBCLA,MAAAoD,EAAApD,EAAA,MACA,MAAAqD,EAAArD,EAAA,MAMAtH,EAAA0J,UACA1J,EAAA2G,QACA3G,EAAA2E,sBACA3E,EAAA4E,UACA5E,EAAA6E,UACA7E,EAAA8E,oBACA9E,EAAAiF,QAAA0F,EAAAC,WACA,QACA,yIAOA5K,EAAAqF,OAAA,cAEA,IAGA,MAAAwF,EAAAvD,EAAA,MAEA,GAAAuD,MAAAC,QAAAD,GAAAE,OAAA,GACA/K,EAAAqF,OAAA,CACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IACA,IAEA,CACA,OAAA2B,GAEA,CAQAhH,EAAAgL,YAAAhO,OAAAe,KAAAT,QAAA6J,KAAAtD,QAAA/F,GACA,WAAA4F,KAAA5F,KACA0F,QAAA,CAAAyH,EAAAnN,KAEA,MAAAoN,EAAApN,EACA8D,UAAA,GACA8D,cACAhD,QAAA,cAAA/E,EAAAwN,IACAA,EAAAC,gBAIA,IAAApC,EAAA1L,QAA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4B,KAAAm4B,SAAAnpD,kBAAAgxB,IAAAhvB,MAAA,+BCEA,IAAAonD,EAAAr/C,oBAAA,K","ignoreList":[]} \ No newline at end of file diff --git a/bin/licenses.txt b/bin/licenses.txt index 0841d264..de03e5cd 100644 --- a/bin/licenses.txt +++ b/bin/licenses.txt @@ -1,3 +1,366 @@ +appstore-connect-jwt-generator-cli +MIT +appstore-connect-jwt-generator-core +MIT +MIT License + +Copyright (c) 2020 Kenji Saito + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +arg +MIT +The MIT License (MIT) + +Copyright (c) 2021 Vercel, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +chalk +MIT +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +chalk-template +MIT +MIT License + +Copyright (c) Josh Junon +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +date-format +MIT +The MIT License (MIT) + +Copyright (c) 2013 Gareth Jones + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +debug +MIT +(The MIT License) + +Copyright (c) 2014-2017 TJ Holowaychuk +Copyright (c) 2018-2021 Josh Junon + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software +and associated documentation files (the 'Software'), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +flatted +ISC +ISC License + +Copyright (c) 2018-2020, Andrea Giammarchi, @WebReflection + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +fs-extra +MIT +(The MIT License) + +Copyright (c) 2011-2017 JP Richardson + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files +(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, + merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +graceful-fs +ISC +The ISC License + +Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +has-flag +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +jose +MIT +The MIT License (MIT) + +Copyright (c) 2018 Filip Skokan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +jsonfile +MIT +(The MIT License) + +Copyright (c) 2012-2015, JP Richardson + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files +(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, + merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +log4js +Apache-2.0 +Copyright 2015 Gareth Jones (with contributions from many other people) + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +ms +MIT +The MIT License (MIT) + +Copyright (c) 2020 Vercel, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +rfdc +MIT +Copyright 2019 "David Mark Clements " + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and +to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +streamroller +MIT +The MIT License (MIT) + +Copyright (c) 2013 Gareth Jones + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +supports-color +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +universalify +MIT +(The MIT License) + +Copyright (c) 2017, Ryan Zimmerman + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the 'Software'), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + appstore-connect-jwt-generator-core MIT MIT License diff --git a/bin/main.js b/bin/main.js index 2cd64db1..03391757 100644 --- a/bin/main.js +++ b/bin/main.js @@ -106,4 +106,3 @@ catch (e) { logger.error(e); process.exit(1); } -//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/bin/main.js.map b/bin/main.js.map deleted file mode 100644 index 1b75287b..00000000 --- a/bin/main.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,YAAY,MAAM,qCAAqC,CAAC;AAEpE,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,SAAS,CAAC;IACf,SAAS,EAAE;QACT,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE;gBACN,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,MAAM;aAChB;SACF;KACF;IACD,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;CAC/D,CAAC,CAAC;AACH,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;AAUlC,MAAM,MAAM,GAAmB;IAC7B,QAAQ,EAAE;QACR,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,IAAI;KACZ;IACD,WAAW,EAAE;QACX,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,IAAI;KACZ;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,IAAI;KACZ;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,KA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IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,SAAS,CAAC,CAAC;IACzG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAA;;EAEzB,KAAK;CACN,CAAC,CAAC;AACH,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IACX,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/bin/package.json b/bin/package.json index 576fe668..f3fe76e0 100644 --- a/bin/package.json +++ b/bin/package.json @@ -1 +1 @@ -{"name":"appstore-connect-jwt-generator-cli","version":"1.0.7","author":"poad","license":"MIT","private":false,"homepage":"https://github.com/poad/appstore-connect-jwt-generator-cli#readme","bin":{"jwt-gen":"bin/index.js"},"main":"bin/cli.js","type":"module","repository":{"type":"git","url":"git+https://github.com/poad/appstore-connect-jwt-generator-cli.git"},"keywords":["jwt","appstore","cli"],"scripts":{"test":"vitest run --silent=false --coverage --passWithNoTests","clean":"tsc --build --clean","compile":"tsc","watch":"tsc --watch","build":"pnpm clean && pnpm compile","dev":"tsx src/main.ts","package":"ncc build --source-map --license licenses.txt -m -q -o bin","lint":"eslint","lint-fix":"eslint --fix","all":"pnpm build && pnpm package && pnpm lint && pnpm test"},"devDependencies":{"@eslint/compat":"^1.3.2","@eslint/js":"^9.35.0","@stylistic/eslint-plugin":"^5.3.1","@types/node":"^24.3.1","@vercel/ncc":"^0.38.3","@vitest/coverage-v8":"^3.2.4","eslint":"^9.35.0","eslint-config-prettier":"^10.1.8","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-flowtype":"^8.0.3","eslint-plugin-import":"^2.32.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-prettier":"^5.5.4","eslint-plugin-promise":"^7.2.1","prettier":"^3.6.2","tsx":"^4.20.5","typescript":"^5.9.2","typescript-eslint":"^8.43.0","vite":"^7.1.5","vite-tsconfig-paths":"^5.1.4","vitest":"^3.2.4"},"dependencies":{"appstore-connect-jwt-generator-core":"^2.0.1","arg":"^5.0.2","chalk":"^5.6.2","chalk-template":"^1.1.2","log4js":"^6.9.1"},"files":["package.json","bin/*"],"exports":{".":{"node":"./bin/index.js","default":"./bin/index.js"}},"engines":{"npm":"use pnpm please!","yarn":"use pnpm please!","pnpm":">=8.7.1","node":">=22.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"packageManager":"pnpm@10.15.1"} \ No newline at end of file +{"name":"appstore-connect-jwt-generator-cli","version":"1.0.7","author":"poad","license":"MIT","private":false,"homepage":"https://github.com/poad/appstore-connect-jwt-generator-cli#readme","main":"bin/cli.js","bin":{"jwt-gen":"./bin/cli.js","appstore-jwt-gen":"./bin/cli.js"},"type":"module","repository":{"type":"git","url":"git+https://github.com/poad/appstore-connect-jwt-generator-cli.git"},"keywords":["appstore","jwt","api","cli"],"preferGlobal":false,"scripts":{"test":"vitest run --silent=false --coverage --passWithNoTests","prebuild":"tsc --build --clean","watch":"tsc --watch","build":"tsc","dev":"tsx src/main.ts","package":"ncc build --license licenses.txt -m -q -o bin && chmod +x bin/cli.js","lint":"eslint","lint-fix":"eslint --fix","all":"pnpm build && pnpm package && pnpm lint && pnpm test"},"devDependencies":{"@eslint/compat":"^1.3.2","@eslint/js":"^9.35.0","@stylistic/eslint-plugin":"^5.3.1","@types/node":"^24.3.1","@vercel/ncc":"^0.38.3","@vitest/coverage-v8":"^3.2.4","eslint":"^9.35.0","eslint-config-prettier":"^10.1.8","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-flowtype":"^8.0.3","eslint-plugin-import":"^2.32.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-prettier":"^5.5.4","eslint-plugin-promise":"^7.2.1","prettier":"^3.6.2","tsx":"^4.20.5","typescript":"^5.9.2","typescript-eslint":"^8.43.0","vite":"^7.1.5","vite-tsconfig-paths":"^5.1.4","vitest":"^3.2.4"},"dependencies":{"appstore-connect-jwt-generator-core":"^2.0.2","arg":"^5.0.2","chalk":"^5.6.2","chalk-template":"^1.1.2","log4js":"^6.9.1"},"files":["package.json","bin/*","README.md"],"exports":{".":{"node":"./bin/index.js","default":"./bin/index.js"}},"engines":{"npm":"use pnpm please!","yarn":"use pnpm please!","node":">=22.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"packageManager":"pnpm@10.15.1"} \ No newline at end of file diff --git a/bin/sourcemap-register.cjs b/bin/sourcemap-register.cjs deleted file mode 100644 index cb1fb136..00000000 --- a/bin/sourcemap-register.cjs +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e={296:e=>{var r=Object.prototype.toString;var n=typeof Buffer!=="undefined"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){throw new RangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,r):new Buffer(e,r)}function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,r,t)}if(typeof e==="string"){return fromString(e,r)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},599:(e,r,n)=>{e=n.nmd(e);var t=n(927).SourceMapConsumer;var o=n(928);var i;try{i=n(896);if(!i.existsSync||!i.readFileSync){i=null}}catch(e){}var a=n(296);function dynamicRequire(e,r){return e.require(r)}var u=false;var s=false;var l=false;var c="auto";var p={};var f={};var g=/^data:application\/json[^,]+base64,/;var d=[];var h=[];function isInBrowser(){if(c==="browser")return true;if(c==="node")return false;return typeof window!=="undefined"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function hasGlobalProcessEventEmitter(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function globalProcessVersion(){if(typeof process==="object"&&process!==null){return process.version}else{return""}}function globalProcessStderr(){if(typeof process==="object"&&process!==null){return process.stderr}}function globalProcessExit(e){if(typeof process==="object"&&process!==null&&typeof process.exit==="function"){return process.exit(e)}}function handlerExec(e){return function(r){for(var n=0;n"}var n=this.getLineNumber();if(n!=null){r+=":"+n;var t=this.getColumnNumber();if(t){r+=":"+t}}}var o="";var i=this.getFunctionName();var a=true;var u=this.isConstructor();var s=!(this.isToplevel()||u);if(s){var l=this.getTypeName();if(l==="[object Object]"){l="null"}var c=this.getMethodName();if(i){if(l&&i.indexOf(l)!=0){o+=l+"."}o+=i;if(c&&i.indexOf("."+c)!=i.length-c.length-1){o+=" [as "+c+"]"}}else{o+=l+"."+(c||"")}}else if(u){o+="new "+(i||"")}else if(i){o+=i}else{o+=r;a=false}if(a){o+=" ("+r+")"}return o}function cloneCallSite(e){var r={};Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(n){r[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}));r.toString=CallSiteToString;return r}function wrapCallSite(e,r){if(r===undefined){r={nextPosition:null,curPosition:null}}if(e.isNative()){r.curPosition=null;return e}var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var t=e.getLineNumber();var o=e.getColumnNumber()-1;var i=/^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)/;var a=i.test(globalProcessVersion())?0:62;if(t===1&&o>a&&!isInBrowser()&&!e.isEval()){o-=a}var u=mapSourcePosition({source:n,line:t,column:o});r.curPosition=u;e=cloneCallSite(e);var s=e.getFunctionName;e.getFunctionName=function(){if(r.nextPosition==null){return s()}return r.nextPosition.name||s()};e.getFileName=function(){return u.source};e.getLineNumber=function(){return u.line};e.getColumnNumber=function(){return u.column+1};e.getScriptNameOrSourceURL=function(){return u.source};return e}var l=e.isEval()&&e.getEvalOrigin();if(l){l=mapEvalOrigin(l);e=cloneCallSite(e);e.getEvalOrigin=function(){return l};return e}return e}function prepareStackTrace(e,r){if(l){p={};f={}}var n=e.name||"Error";var t=e.message||"";var o=n+": "+t;var i={nextPosition:null,curPosition:null};var a=[];for(var u=r.length-1;u>=0;u--){a.push("\n at "+wrapCallSite(r[u],i));i.nextPosition=i.curPosition}i.curPosition=i.nextPosition=null;return o+a.reverse().join("")}function getErrorSource(e){var r=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(r){var n=r[1];var t=+r[2];var o=+r[3];var a=p[n];if(!a&&i&&i.existsSync(n)){try{a=i.readFileSync(n,"utf8")}catch(e){a=""}}if(a){var u=a.split(/(?:\r\n|\r|\n)/)[t-1];if(u){return n+":"+t+"\n"+u+"\n"+new Array(o).join(" ")+"^"}}}return null}function printErrorAndExit(e){var r=getErrorSource(e);var n=globalProcessStderr();if(n&&n._handle&&n._handle.setBlocking){n._handle.setBlocking(true)}if(r){console.error();console.error(r)}console.error(e.stack);globalProcessExit(1)}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(r){if(r==="uncaughtException"){var n=arguments[1]&&arguments[1].stack;var t=this.listeners(r).length>0;if(n&&!t){return printErrorAndExit(arguments[1])}}return e.apply(this,arguments)}}var S=d.slice(0);var _=h.slice(0);r.wrapCallSite=wrapCallSite;r.getErrorSource=getErrorSource;r.mapSourcePosition=mapSourcePosition;r.retrieveSourceMap=v;r.install=function(r){r=r||{};if(r.environment){c=r.environment;if(["node","browser","auto"].indexOf(c)===-1){throw new Error("environment "+c+" was unknown. Available options are {auto, browser, node}")}}if(r.retrieveFile){if(r.overrideRetrieveFile){d.length=0}d.unshift(r.retrieveFile)}if(r.retrieveSourceMap){if(r.overrideRetrieveSourceMap){h.length=0}h.unshift(r.retrieveSourceMap)}if(r.hookRequire&&!isInBrowser()){var n=dynamicRequire(e,"module");var t=n.prototype._compile;if(!t.__sourceMapSupport){n.prototype._compile=function(e,r){p[r]=e;f[r]=undefined;return t.call(this,e,r)};n.prototype._compile.__sourceMapSupport=true}}if(!l){l="emptyCacheBetweenOperations"in r?r.emptyCacheBetweenOperations:false}if(!u){u=true;Error.prepareStackTrace=prepareStackTrace}if(!s){var o="handleUncaughtExceptions"in r?r.handleUncaughtExceptions:true;try{var i=dynamicRequire(e,"worker_threads");if(i.isMainThread===false){o=false}}catch(e){}if(o&&hasGlobalProcessEventEmitter()){s=true;shimEmitUncaughtException()}}};r.resetRetrieveHandlers=function(){d.length=0;h.length=0;d=S.slice(0);h=_.slice(0);v=handlerExec(h);m=handlerExec(d)}},517:(e,r,n)=>{var t=n(297);var o=Object.prototype.hasOwnProperty;var i=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=i?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,r){var n=new ArraySet;for(var t=0,o=e.length;t=0){return r}}else{var n=t.toSetString(e);if(o.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e{var t=n(158);var o=5;var i=1<>1;return r?-n:n}r.encode=function base64VLQ_encode(e){var r="";var n;var i=toVLQSigned(e);do{n=i&a;i>>>=o;if(i>0){n|=u}r+=t.encode(n)}while(i>0);return r};r.decode=function base64VLQ_decode(e,r,n){var i=e.length;var s=0;var l=0;var c,p;do{if(r>=i){throw new Error("Expected more digits in base 64 VLQ value.")}p=t.decode(e.charCodeAt(r++));if(p===-1){throw new Error("Invalid base64 digit: "+e.charAt(r-1))}c=!!(p&u);p&=a;s=s+(p<{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e{r.GREATEST_LOWER_BOUND=1;r.LEAST_UPPER_BOUND=2;function recursiveSearch(e,n,t,o,i,a){var u=Math.floor((n-e)/2)+e;var s=i(t,o[u],true);if(s===0){return u}else if(s>0){if(n-u>1){return recursiveSearch(u,n,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){return n1){return recursiveSearch(e,u,t,o,i,a)}if(a==r.LEAST_UPPER_BOUND){return u}else{return e<0?-1:e}}}r.search=function search(e,n,t,o){if(n.length===0){return-1}var i=recursiveSearch(-1,n.length,e,n,t,o||r.GREATEST_LOWER_BOUND);if(i<0){return-1}while(i-1>=0){if(t(n[i],n[i-1],true)!==0){break}--i}return i}},24:(e,r,n)=>{var t=n(297);function generatedPositionAfter(e,r){var n=e.generatedLine;var o=r.generatedLine;var i=e.generatedColumn;var a=r.generatedColumn;return o>n||o==n&&a>=i||t.compareByGeneratedPositionsInflated(e,r)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,r){this._array.forEach(e,r)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(t.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};r.P=MappingList},299:(e,r)=>{function swap(e,r,n){var t=e[r];e[r]=e[n];e[n]=t}function randomIntInRange(e,r){return Math.round(e+Math.random()*(r-e))}function doQuickSort(e,r,n,t){if(n{var t;var o=n(297);var i=n(197);var a=n(517).C;var u=n(818);var s=n(299).g;function SourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n=o.parseSourceMapInput(e)}return n.sections!=null?new IndexedSourceMapConsumer(n,r):new BasicSourceMapConsumer(n,r)}SourceMapConsumer.fromSourceMap=function(e,r){return BasicSourceMapConsumer.fromSourceMap(e,r)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,r){var n=e.charAt(r);return n===";"||n===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,r){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,r,n){var t=r||null;var i=n||SourceMapConsumer.GENERATED_ORDER;var a;switch(i){case SourceMapConsumer.GENERATED_ORDER:a=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;a.map((function(e){var r=e.source===null?null:this._sources.at(e.source);r=o.computeSourceURL(u,r,this._sourceMapURL);return{source:r,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}}),this).forEach(e,t)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var r=o.getArg(e,"line");var n={source:o.getArg(e,"source"),originalLine:r,originalColumn:o.getArg(e,"column",0)};n.source=this._findSourceIndex(n.source);if(n.source<0){return[]}var t=[];var a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(a>=0){var u=this._originalMappings[a];if(e.column===undefined){var s=u.originalLine;while(u&&u.originalLine===s){t.push({line:o.getArg(u,"generatedLine",null),column:o.getArg(u,"generatedColumn",null),lastColumn:o.getArg(u,"lastGeneratedColumn",null)});u=this._originalMappings[++a]}}else{var l=u.originalColumn;while(u&&u.originalLine===r&&u.originalColumn==l){t.push({line:o.getArg(u,"generatedLine",null),column:o.getArg(u,"generatedColumn",null),lastColumn:o.getArg(u,"lastGeneratedColumn",null)});u=this._originalMappings[++a]}}}return t};r.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n=o.parseSourceMapInput(e)}var t=o.getArg(n,"version");var i=o.getArg(n,"sources");var u=o.getArg(n,"names",[]);var s=o.getArg(n,"sourceRoot",null);var l=o.getArg(n,"sourcesContent",null);var c=o.getArg(n,"mappings");var p=o.getArg(n,"file",null);if(t!=this._version){throw new Error("Unsupported version: "+t)}if(s){s=o.normalize(s)}i=i.map(String).map(o.normalize).map((function(e){return s&&o.isAbsolute(s)&&o.isAbsolute(e)?o.relative(s,e):e}));this._names=a.fromArray(u.map(String),true);this._sources=a.fromArray(i,true);this._absoluteSources=this._sources.toArray().map((function(e){return o.computeSourceURL(s,e,r)}));this.sourceRoot=s;this.sourcesContent=l;this._mappings=c;this._sourceMapURL=r;this.file=p}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var r=e;if(this.sourceRoot!=null){r=o.relative(this.sourceRoot,r)}if(this._sources.has(r)){return this._sources.indexOf(r)}var n;for(n=0;n1){v.source=l+_[1];l+=_[1];v.originalLine=i+_[2];i=v.originalLine;v.originalLine+=1;v.originalColumn=a+_[3];a=v.originalColumn;if(_.length>4){v.name=c+_[4];c+=_[4]}}m.push(v);if(typeof v.originalLine==="number"){h.push(v)}}}s(m,o.compareByGeneratedPositionsDeflated);this.__generatedMappings=m;s(h,o.compareByOriginalPositions);this.__originalMappings=h};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,r,n,t,o,a){if(e[n]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[n])}if(e[t]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[t])}return i.search(e,r,o,a)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e=0){var t=this._generatedMappings[n];if(t.generatedLine===r.generatedLine){var i=o.getArg(t,"source",null);if(i!==null){i=this._sources.at(i);i=o.computeSourceURL(this.sourceRoot,i,this._sourceMapURL)}var a=o.getArg(t,"name",null);if(a!==null){a=this._names.at(a)}return{source:i,line:o.getArg(t,"originalLine",null),column:o.getArg(t,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return e==null}))};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,r){if(!this.sourcesContent){return null}var n=this._findSourceIndex(e);if(n>=0){return this.sourcesContent[n]}var t=e;if(this.sourceRoot!=null){t=o.relative(this.sourceRoot,t)}var i;if(this.sourceRoot!=null&&(i=o.urlParse(this.sourceRoot))){var a=t.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(a)){return this.sourcesContent[this._sources.indexOf(a)]}if((!i.path||i.path=="/")&&this._sources.has("/"+t)){return this.sourcesContent[this._sources.indexOf("/"+t)]}}if(r){return null}else{throw new Error('"'+t+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var r=o.getArg(e,"source");r=this._findSourceIndex(r);if(r<0){return{line:null,column:null,lastColumn:null}}var n={source:r,originalLine:o.getArg(e,"line"),originalColumn:o.getArg(e,"column")};var t=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions,o.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(t>=0){var i=this._originalMappings[t];if(i.source===n.source){return{line:o.getArg(i,"generatedLine",null),column:o.getArg(i,"generatedColumn",null),lastColumn:o.getArg(i,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};t=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e,r){var n=e;if(typeof e==="string"){n=o.parseSourceMapInput(e)}var t=o.getArg(n,"version");var i=o.getArg(n,"sections");if(t!=this._version){throw new Error("Unsupported version: "+t)}this._sources=new a;this._names=new a;var u={line:-1,column:0};this._sections=i.map((function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var n=o.getArg(e,"offset");var t=o.getArg(n,"line");var i=o.getArg(n,"column");if(t{var t=n(818);var o=n(297);var i=n(517).C;var a=n(24).P;function SourceMapGenerator(e){if(!e){e={}}this._file=o.getArg(e,"file",null);this._sourceRoot=o.getArg(e,"sourceRoot",null);this._skipValidation=o.getArg(e,"skipValidation",false);this._sources=new i;this._names=new i;this._mappings=new a;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var r=e.sourceRoot;var n=new SourceMapGenerator({file:e.file,sourceRoot:r});e.eachMapping((function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){t.source=e.source;if(r!=null){t.source=o.relative(r,t.source)}t.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){t.name=e.name}}n.addMapping(t)}));e.sources.forEach((function(t){var i=t;if(r!==null){i=o.relative(r,t)}if(!n._sources.has(i)){n._sources.add(i)}var a=e.sourceContentFor(t);if(a!=null){n.setSourceContent(t,a)}}));return n};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var r=o.getArg(e,"generated");var n=o.getArg(e,"original",null);var t=o.getArg(e,"source",null);var i=o.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(r,n,t,i)}if(t!=null){t=String(t);if(!this._sources.has(t)){this._sources.add(t)}}if(i!=null){i=String(i);if(!this._names.has(i)){this._names.add(i)}}this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:t,name:i})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,r){var n=e;if(this._sourceRoot!=null){n=o.relative(this._sourceRoot,n)}if(r!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[o.toSetString(n)]=r}else if(this._sourcesContents){delete this._sourcesContents[o.toSetString(n)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,r,n){var t=r;if(r==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}t=e.file}var a=this._sourceRoot;if(a!=null){t=o.relative(a,t)}var u=new i;var s=new i;this._mappings.unsortedForEach((function(r){if(r.source===t&&r.originalLine!=null){var i=e.originalPositionFor({line:r.originalLine,column:r.originalColumn});if(i.source!=null){r.source=i.source;if(n!=null){r.source=o.join(n,r.source)}if(a!=null){r.source=o.relative(a,r.source)}r.originalLine=i.line;r.originalColumn=i.column;if(i.name!=null){r.name=i.name}}}var l=r.source;if(l!=null&&!u.has(l)){u.add(l)}var c=r.name;if(c!=null&&!s.has(c)){s.add(c)}}),this);this._sources=u;this._names=s;e.sources.forEach((function(r){var t=e.sourceContentFor(r);if(t!=null){if(n!=null){r=o.join(n,r)}if(a!=null){r=o.relative(a,r)}this.setSourceContent(r,t)}}),this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,r,n,t){if(r&&typeof r.line!=="number"&&typeof r.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!t){return}else if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:t}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var r=1;var n=0;var i=0;var a=0;var u=0;var s="";var l;var c;var p;var f;var g=this._mappings.toArray();for(var d=0,h=g.length;d0){if(!o.compareByGeneratedPositionsInflated(c,g[d-1])){continue}l+=","}}l+=t.encode(c.generatedColumn-e);e=c.generatedColumn;if(c.source!=null){f=this._sources.indexOf(c.source);l+=t.encode(f-u);u=f;l+=t.encode(c.originalLine-1-i);i=c.originalLine-1;l+=t.encode(c.originalColumn-n);n=c.originalColumn;if(c.name!=null){p=this._names.indexOf(c.name);l+=t.encode(p-a);a=p}}s+=l}return s};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,r){return e.map((function(e){if(!this._sourcesContents){return null}if(r!=null){e=o.relative(r,e)}var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};r.x=SourceMapGenerator},565:(e,r,n)=>{var t;var o=n(163).x;var i=n(297);var a=/(\r?\n)/;var u=10;var s="$$$isSourceNode$$$";function SourceNode(e,r,n,t,o){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=r==null?null:r;this.source=n==null?null:n;this.name=o==null?null:o;this[s]=true;if(t!=null)this.add(t)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,r,n){var t=new SourceNode;var o=e.split(a);var u=0;var shiftNextLine=function(){var e=getNextLine();var r=getNextLine()||"";return e+r;function getNextLine(){return u=0;r--){this.prepend(e[r])}}else if(e[s]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var r;for(var n=0,t=this.children.length;n0){r=[];for(n=0;n{function getArg(e,r,n){if(r in e){return e[r]}else if(arguments.length===3){return n}else{throw new Error('"'+r+'" is a required argument.')}}r.getArg=getArg;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;var t=/^data:.+\,.+$/;function urlParse(e){var r=e.match(n);if(!r){return null}return{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}}r.urlParse=urlParse;function urlGenerate(e){var r="";if(e.scheme){r+=e.scheme+":"}r+="//";if(e.auth){r+=e.auth+"@"}if(e.host){r+=e.host}if(e.port){r+=":"+e.port}if(e.path){r+=e.path}return r}r.urlGenerate=urlGenerate;function normalize(e){var n=e;var t=urlParse(e);if(t){if(!t.path){return e}n=t.path}var o=r.isAbsolute(n);var i=n.split(/\/+/);for(var a,u=0,s=i.length-1;s>=0;s--){a=i[s];if(a==="."){i.splice(s,1)}else if(a===".."){u++}else if(u>0){if(a===""){i.splice(s+1,u);u=0}else{i.splice(s,2);u--}}}n=i.join("/");if(n===""){n=o?"/":"."}if(t){t.path=n;return urlGenerate(t)}return n}r.normalize=normalize;function join(e,r){if(e===""){e="."}if(r===""){r="."}var n=urlParse(r);var o=urlParse(e);if(o){e=o.path||"/"}if(n&&!n.scheme){if(o){n.scheme=o.scheme}return urlGenerate(n)}if(n||r.match(t)){return r}if(o&&!o.host&&!o.path){o.host=r;return urlGenerate(o)}var i=r.charAt(0)==="/"?r:normalize(e.replace(/\/+$/,"")+"/"+r);if(o){o.path=i;return urlGenerate(o)}return i}r.join=join;r.isAbsolute=function(e){return e.charAt(0)==="/"||n.test(e)};function relative(e,r){if(e===""){e="."}e=e.replace(/\/$/,"");var n=0;while(r.indexOf(e+"/")!==0){var t=e.lastIndexOf("/");if(t<0){return r}e=e.slice(0,t);if(e.match(/^([^\/]+:\/)?\/*$/)){return r}++n}return Array(n+1).join("../")+r.substr(e.length+1)}r.relative=relative;var o=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}r.toSetString=o?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}r.fromSetString=o?identity:fromSetString;function isProtoString(e){if(!e){return false}var r=e.length;if(r<9){return false}if(e.charCodeAt(r-1)!==95||e.charCodeAt(r-2)!==95||e.charCodeAt(r-3)!==111||e.charCodeAt(r-4)!==116||e.charCodeAt(r-5)!==111||e.charCodeAt(r-6)!==114||e.charCodeAt(r-7)!==112||e.charCodeAt(r-8)!==95||e.charCodeAt(r-9)!==95){return false}for(var n=r-10;n>=0;n--){if(e.charCodeAt(n)!==36){return false}}return true}function compareByOriginalPositions(e,r,n){var t=strcmp(e.source,r.source);if(t!==0){return t}t=e.originalLine-r.originalLine;if(t!==0){return t}t=e.originalColumn-r.originalColumn;if(t!==0||n){return t}t=e.generatedColumn-r.generatedColumn;if(t!==0){return t}t=e.generatedLine-r.generatedLine;if(t!==0){return t}return strcmp(e.name,r.name)}r.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,r,n){var t=e.generatedLine-r.generatedLine;if(t!==0){return t}t=e.generatedColumn-r.generatedColumn;if(t!==0||n){return t}t=strcmp(e.source,r.source);if(t!==0){return t}t=e.originalLine-r.originalLine;if(t!==0){return t}t=e.originalColumn-r.originalColumn;if(t!==0){return t}return strcmp(e.name,r.name)}r.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,r){if(e===r){return 0}if(e===null){return 1}if(r===null){return-1}if(e>r){return 1}return-1}function compareByGeneratedPositionsInflated(e,r){var n=e.generatedLine-r.generatedLine;if(n!==0){return n}n=e.generatedColumn-r.generatedColumn;if(n!==0){return n}n=strcmp(e.source,r.source);if(n!==0){return n}n=e.originalLine-r.originalLine;if(n!==0){return n}n=e.originalColumn-r.originalColumn;if(n!==0){return n}return strcmp(e.name,r.name)}r.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}r.parseSourceMapInput=parseSourceMapInput;function computeSourceURL(e,r,n){r=r||"";if(e){if(e[e.length-1]!=="/"&&r[0]!=="/"){e+="/"}r=e+r}if(n){var t=urlParse(n);if(!t){throw new Error("sourceMapURL could not be parsed")}if(t.path){var o=t.path.lastIndexOf("/");if(o>=0){t.path=t.path.substring(0,o+1)}}r=join(urlGenerate(t),r)}return normalize(r)}r.computeSourceURL=computeSourceURL},927:(e,r,n)=>{n(163).x;r.SourceMapConsumer=n(684).SourceMapConsumer;n(565)},896:e=>{"use strict";e.exports=require("fs")},928:e=>{"use strict";e.exports=require("path")}};var r={};function __webpack_require__(n){var t=r[n];if(t!==undefined){return t.exports}var o=r[n]={id:n,loaded:false,exports:{}};var i=true;try{e[n](o,o.exports,__webpack_require__);i=false}finally{if(i)delete r[n]}o.loaded=true;return o.exports}(()=>{__webpack_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __webpack_require__!=="undefined")__webpack_require__.ab=__dirname+"/";var n={};__webpack_require__(599).install();module.exports=n})(); \ No newline at end of file diff --git a/package.json b/package.json index c79fd8a3..e1d89410 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "private": false, "homepage": "https://github.com/poad/appstore-connect-jwt-generator-cli#readme", - "main": "bin/index.js", + "main": "bin/cli.js", "bin": { "jwt-gen": "./bin/cli.js", "appstore-jwt-gen": "./bin/cli.js" @@ -24,12 +24,11 @@ "preferGlobal": false, "scripts": { "test": "vitest run --silent=false --coverage --passWithNoTests", - "clean": "tsc --build --clean", - "compile": "tsc", + "prebuild": "tsc --build --clean", "watch": "tsc --watch", - "build": "pnpm clean && pnpm compile", + "build": "tsc", "dev": "tsx src/main.ts", - "package": "ncc build --source-map --license licenses.txt -m -q -o bin", + "package": "ncc build --license licenses.txt -m -q -o bin && chmod +x bin/cli.js", "lint": "eslint", "lint-fix": "eslint --fix", "all": "pnpm build && pnpm package && pnpm lint && pnpm test" diff --git a/tsconfig.json b/tsconfig.json index 9793b326..92fbc12b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "outDir": "./bin", "declaration": false, "declarationMap": false, - "sourceMap": true, + "sourceMap": false, "strict": true, "noImplicitAny": true, "esModuleInterop": true,