@qc2168/mib
Version:
data backup tool
25 lines • 242 kB
JavaScript
var Kg=Object.create;var na=Object.defineProperty;var Zg=Object.getOwnPropertyDescriptor;var Qg=Object.getOwnPropertyNames;var Xg=Object.getPrototypeOf,em=Object.prototype.hasOwnProperty;var q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var c=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var tm=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Qg(e))!em.call(t,s)&&s!==r&&na(t,s,{get:()=>e[s],enumerable:!(i=Zg(e,s))||i.enumerable});return t};var oa=(t,e,r)=>(r=t!=null?Kg(Xg(t)):{},tm(e||!t||!t.__esModule?na(r,"default",{value:t,enumerable:!0}):r,t));var re=c((Ux,aa)=>{"use strict";var Qi=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
Found: ${e.toString().split(`
`)[0]}
`),Error.captureStackTrace(this,t)}};aa.exports=t=>{if(t.length>2)throw new Qi(t);function e(i={}){this.options=i}e.prototype.transform=t;function r(i){return new e(i)}return r.Format=e,r}});var ca=c((Gx,ha)=>{"use strict";var la={};ha.exports=la;var ua={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(ua).forEach(function(t){var e=ua[t],r=la[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var da=c((Wx,fa)=>{"use strict";fa.exports=function(t,e){e=e||process.argv;var r=e.indexOf("--"),i=/^-{1,2}/.test(t)?"":"--",s=e.indexOf(i+t);return s!==-1&&(r===-1?!0:s<r)}});var ga=c((Vx,pa)=>{"use strict";var rm=q("os"),fe=da(),Q=process.env,bt=void 0;fe("no-color")||fe("no-colors")||fe("color=false")?bt=!1:(fe("color")||fe("colors")||fe("color=true")||fe("color=always"))&&(bt=!0);"FORCE_COLOR"in Q&&(bt=Q.FORCE_COLOR.length===0||parseInt(Q.FORCE_COLOR,10)!==0);function im(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function sm(t){if(bt===!1)return 0;if(fe("color=16m")||fe("color=full")||fe("color=truecolor"))return 3;if(fe("color=256"))return 2;if(t&&!t.isTTY&&bt!==!0)return 0;var e=bt?1:0;if(process.platform==="win32"){var r=rm.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(s){return s in Q})||Q.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Q){var i=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:(Q.TERM==="dumb",e)}function Xi(t){var e=sm(t);return im(e)}pa.exports={supportsColor:Xi,stdout:Xi(process.stdout),stderr:Xi(process.stderr)}});var va=c((Jx,ma)=>{"use strict";ma.exports=function(e,r){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var s={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(n){n=n.toLowerCase();var o=s[n]||[" "],a=Math.floor(Math.random()*o.length);typeof s[n]<"u"?i+=s[n][a]:i+=n}),i}});var ya=c((Kx,ba)=>{"use strict";ba.exports=function(e,r){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},s=[].concat(i.up,i.down,i.mid);function n(u){var l=Math.floor(Math.random()*u);return l}function o(u){var l=!1;return s.filter(function(g){l=g===u}),l}function a(u,l){var g="",d,h;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",u=u.split("");for(h in u)if(!o(h)){switch(g=g+u[h],d={up:0,down:0,mid:0},l.size){case"mini":d.up=n(8),d.mid=n(2),d.down=n(8);break;case"maxi":d.up=n(16)+3,d.mid=n(4)+1,d.down=n(64)+3;break;default:d.up=n(8)+1,d.mid=n(6)/2,d.down=n(8)+1;break}var p=["up","mid","down"];for(var m in p)for(var b=p[m],_=0;_<=d[b];_++)l[b]&&(g=g+i[b][n(i[b].length)])}return g}return a(e,r)}});var _a=c((Zx,wa)=>{"use strict";wa.exports=function(t){return function(e,r,i){if(e===" ")return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var Sa=c((Qx,xa)=>{"use strict";xa.exports=function(t){return function(e,r,i){return r%2===0?e:t.inverse(e)}}});var Ma=c((Xx,Ea)=>{"use strict";Ea.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,i,s){return r===" "?r:t[e[i++%e.length]](r)}}});var qa=c((eS,Oa)=>{"use strict";Oa.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,i,s){return r===" "?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}});var Da=c((rS,$a)=>{"use strict";var M={};$a.exports=M;M.themes={};var nm=q("util"),et=M.styles=ca(),Ra=Object.defineProperties,om=new RegExp(/[\r\n]+/g);M.supportsColor=ga().supportsColor;typeof M.enabled>"u"&&(M.enabled=M.supportsColor()!==!1);M.enable=function(){M.enabled=!0};M.disable=function(){M.enabled=!1};M.stripColors=M.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var tS=M.stylize=function(e,r){if(!M.enabled)return e+"";var i=et[r];return!i&&r in M?M[r](e):i.open+e+i.close},am=/[|\\{}()[\]^$+*?.]/g,um=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(am,"\\$&")};function Pa(t){var e=function r(){return hm.apply(r,arguments)};return e._styles=t,e.__proto__=lm,e}var Aa=function(){var t={};return et.grey=et.gray,Object.keys(et).forEach(function(e){et[e].closeRe=new RegExp(um(et[e].close),"g"),t[e]={get:function(){return Pa(this._styles.concat(e))}}}),t}(),lm=Ra(function(){},Aa);function hm(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:nm.inspect(o)}).join(" ");if(!M.enabled||!e)return e;for(var r=e.indexOf(`
`)!=-1,i=this._styles,s=i.length;s--;){var n=et[i[s]];e=n.open+e.replace(n.closeRe,n.open)+n.close,r&&(e=e.replace(om,function(o){return n.close+o+n.open}))}return e}M.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(r){M[r]=function(i){if(typeof t[r]=="object"){var s=i;for(var n in t[r])s=M[t[r][n]](s);return s}return M[t[r]](i)}})(e)};function cm(){var t={};return Object.keys(Aa).forEach(function(e){t[e]={get:function(){return Pa([e])}}}),t}var fm=function(e,r){var i=r.split("");return i=i.map(e),i.join("")};M.trap=va();M.zalgo=ya();M.maps={};M.maps.america=_a()(M);M.maps.zebra=Sa()(M);M.maps.rainbow=Ma()(M);M.maps.random=qa()(M);for(Ta in M.maps)(function(t){M[t]=function(e){return fm(M.maps[t],e)}})(Ta);var Ta;Ra(M,cm())});var es=c((iS,Ca)=>{"use strict";var dm=Da();Ca.exports=dm});var Ia=c(ts=>{"use strict";ts.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};ts.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var La=c(rs=>{"use strict";rs.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};rs.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var Na=c(is=>{"use strict";is.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};is.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var ja=c(Mr=>{"use strict";Object.defineProperty(Mr,"cli",{value:Ia()});Object.defineProperty(Mr,"npm",{value:La()});Object.defineProperty(Mr,"syslog",{value:Na()})});var B=c(jt=>{"use strict";Object.defineProperty(jt,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(jt,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(jt,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(jt,"configs",{value:ja()})});var Tr=c((lS,qr)=>{"use strict";var os=es(),{LEVEL:ss,MESSAGE:ns}=B();os.enabled=!0;var ka=/\s+/,Or=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let r=Object.keys(e).reduce((i,s)=>(i[s]=ka.test(e[s])?e[s].split(ka):e[s],i),{});return t.allColors=Object.assign({},t.allColors||{},r),t.allColors}addColors(e){return t.addColors(e)}colorize(e,r,i){if(typeof i>"u"&&(i=r),!Array.isArray(t.allColors[e]))return os[t.allColors[e]](i);for(let s=0,n=t.allColors[e].length;s<n;s++)i=os[t.allColors[e][s]](i);return i}transform(e,r){return r.all&&typeof e[ns]=="string"&&(e[ns]=this.colorize(e[ss],e.level,e[ns])),(r.level||r.all||!r.message)&&(e.level=this.colorize(e[ss],e.level)),(r.all||r.message)&&(e.message=this.colorize(e[ss],e.level,e.message)),e}};qr.exports=t=>new Or(t);qr.exports.Colorizer=qr.exports.Format=Or});var Ha=c((hS,Fa)=>{"use strict";var{Colorizer:pm}=Tr();Fa.exports=t=>(pm.addColors(t.colors||t),t)});var Ba=c((cS,Ya)=>{"use strict";var gm=re();Ya.exports=gm(t=>(t.message=` ${t.message}`,t))});var Ga=c((fS,Ua)=>{"use strict";var mm=re(),{LEVEL:za,MESSAGE:as}=B();Ua.exports=mm((t,{stack:e,cause:r})=>{if(t instanceof Error){let s=Object.assign({},t,{level:t.level,[za]:t[za]||t.level,message:t.message,[as]:t[as]||t.message});return e&&(s.stack=t.stack),r&&(s.cause=t.cause),s}if(!(t.message instanceof Error))return t;let i=t.message;return Object.assign(t,i),t.message=i.message,t[as]=i.message,e&&(t.stack=i.stack),r&&(t.cause=i.cause),t})});var ls=c((dS,Pr)=>{"use strict";var{configs:vm,LEVEL:Wa,MESSAGE:us}=B(),Rr=class t{constructor(e={levels:vm.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let r=Object.keys(e).map(i=>i.length);return Math.max(...r)}static paddingForLevel(e,r,i){let s=i+1-e.length,n=Math.floor(s/r.length);return`${r}${r.repeat(n)}`.slice(0,s)}static paddingForLevels(e,r=" "){let i=t.getLongestLevel(e);return Object.keys(e).reduce((s,n)=>(s[n]=t.paddingForLevel(n,r,i),s),{})}transform(e,r){return e.message=`${this.paddings[e[Wa]]}${e.message}`,e[us]&&(e[us]=`${this.paddings[e[Wa]]}${e[us]}`),e}};Pr.exports=t=>new Rr(t);Pr.exports.Padder=Pr.exports.Format=Rr});var Va=c((pS,hs)=>{"use strict";var{Colorizer:bm}=Tr(),{Padder:ym}=ls(),{configs:wm,MESSAGE:_m}=B(),Ar=class{constructor(e={}){e.levels||(e.levels=wm.cli.levels),this.colorizer=new bm(e),this.padder=new ym(e),this.options=e}transform(e,r){return this.colorizer.transform(this.padder.transform(e,r),r),e[_m]=`${e.level}:${e.message}`,e}};hs.exports=t=>new Ar(t);hs.exports.Format=Ar});var Ka=c((gS,cs)=>{"use strict";var xm=re();function Ja(t){if(t.every(Sm))return e=>{let r=e;for(let i=0;i<t.length;i++)if(r=t[i].transform(r,t[i].options),!r)return!1;return r}}function Sm(t){if(typeof t.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
`));return!0}cs.exports=(...t)=>{let e=xm(Ja(t)),r=e();return r.Format=e.Format,r};cs.exports.cascade=Ja});var kt=c((vs,Xa)=>{"use strict";var rt=ms();rt.configure=ms;rt.stringify=rt;rt.default=rt;vs.stringify=rt;vs.configure=ms;Xa.exports=rt;var Em=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,Mm=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/g,gs=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function Om(t){if(t.length===2){let r=t.charCodeAt(1);return`${t[0]}\\u${r.toString(16)}`}let e=t.charCodeAt(0);return gs.length>e?gs[e]:`\\u${e.toString(16)}`}function Fe(t){if(t.length<5e3&&!Em.test(t))return t;if(t.length>100)return t.replace(Mm,Om);let e="",r=0;for(let i=0;i<t.length;i++){let s=t.charCodeAt(i);if(s===34||s===92||s<32)e+=`${t.slice(r,i)}${gs[s]}`,r=i+1;else if(s>=55296&&s<=57343){if(s<=56319&&i+1<t.length){let n=t.charCodeAt(i+1);if(n>=56320&&n<=57343){i++;continue}}e+=`${t.slice(r,i)}${`\\u${s.toString(16)}`}`,r=i+1}}return e+=t.slice(r),e}function fs(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let r=t[e],i=e;for(;i!==0&&t[i-1]>r;)t[i]=t[i-1],i--;t[i]=r}return t}var qm=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Uint8Array)),Symbol.toStringTag).get;function ds(t){return qm.call(t)!==void 0&&t.length!==0}function ps(t,e,r){t.length<r&&(r=t.length);let i=e===","?"":" ",s=`"0":${i}${t[0]}`;for(let n=1;n<r;n++)s+=`${e}"${n}":${i}${t[n]}`;return s}function Tm(t){if(t&&Object.prototype.hasOwnProperty.call(t,"circularValue")){var e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Za(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e)){var r=t[e];if(typeof r!="boolean")throw new TypeError(`The "${e}" argument must be of type boolean`)}return r===void 0?!0:r}function Qa(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e)){var r=t[e];if(typeof r!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${e}" argument must be an integer`);if(r<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return r===void 0?1/0:r}function tt(t){return t===1?"1 item":`${t} items`}function Rm(t){let e=new Set;for(let r of t)typeof r=="string"?e.add(r):typeof r=="number"&&e.add(String(r));return e}function ms(t){let e=Tm(t),r=Za(t,"bigint"),i=Za(t,"deterministic"),s=Qa(t,"maximumDepth"),n=Qa(t,"maximumBreadth");function o(d,h,p,m,b,_){let v=h[d];switch(typeof v=="object"&&v!==null&&typeof v.toJSON=="function"&&(v=v.toJSON(d)),v=m.call(h,d,v),typeof v){case"string":return`"${Fe(v)}"`;case"object":{if(v===null)return"null";if(p.indexOf(v)!==-1)return e;let S="",x=",",I=_;if(Array.isArray(v)){if(v.length===0)return"[]";if(s<p.length+1)return'"[Array]"';p.push(v),b!==""&&(_+=b,S+=`
${_}`,x=`,
${_}`);let V=Math.min(v.length,n),Z=0;for(;Z<V-1;Z++){let Qe=o(Z,v,p,m,b,_);S+=Qe!==void 0?Qe:"null",S+=x}let ne=o(Z,v,p,m,b,_);if(S+=ne!==void 0?ne:"null",v.length-1>n){let Qe=v.length-n-1;S+=`${x}"... ${tt(Qe)} not stringified"`}return b!==""&&(S+=`
${I}`),p.pop(),`[${S}]`}let A=Object.keys(v),Y=A.length;if(Y===0)return"{}";if(s<p.length+1)return'"[Object]"';let R="",z="";b!==""&&(_+=b,x=`,
${_}`,R=" ");let K=Math.min(Y,n);ds(v)&&(S+=ps(v,x,n),A=A.slice(v.length),K-=v.length,z=x),i&&(A=fs(A)),p.push(v);for(let V=0;V<K;V++){let Z=A[V],ne=o(Z,v,p,m,b,_);ne!==void 0&&(S+=`${z}"${Fe(Z)}":${R}${ne}`,z=x)}if(Y>n){let V=Y-n;S+=`${z}"...":${R}"${tt(V)} not stringified"`,z=x}return b!==""&&z.length>1&&(S=`
${_}${S}
${I}`),p.pop(),`{${S}}`}case"number":return isFinite(v)?String(v):"null";case"boolean":return v===!0?"true":"false";case"bigint":return r?String(v):void 0}}function a(d,h,p,m,b,_){switch(typeof h=="object"&&h!==null&&typeof h.toJSON=="function"&&(h=h.toJSON(d)),typeof h){case"string":return`"${Fe(h)}"`;case"object":{if(h===null)return"null";if(p.indexOf(h)!==-1)return e;let v=_,S="",x=",";if(Array.isArray(h)){if(h.length===0)return"[]";if(s<p.length+1)return'"[Array]"';p.push(h),b!==""&&(_+=b,S+=`
${_}`,x=`,
${_}`);let Y=Math.min(h.length,n),R=0;for(;R<Y-1;R++){let K=a(R,h[R],p,m,b,_);S+=K!==void 0?K:"null",S+=x}let z=a(R,h[R],p,m,b,_);if(S+=z!==void 0?z:"null",h.length-1>n){let K=h.length-n-1;S+=`${x}"... ${tt(K)} not stringified"`}return b!==""&&(S+=`
${v}`),p.pop(),`[${S}]`}if(m.size===0)return"{}";p.push(h);let I="";b!==""&&(_+=b,x=`,
${_}`,I=" ");let A="";for(let Y of m){let R=a(Y,h[Y],p,m,b,_);R!==void 0&&(S+=`${A}"${Fe(Y)}":${I}${R}`,A=x)}return b!==""&&A.length>1&&(S=`
${_}${S}
${v}`),p.pop(),`{${S}}`}case"number":return isFinite(h)?String(h):"null";case"boolean":return h===!0?"true":"false";case"bigint":return r?String(h):void 0}}function u(d,h,p,m,b){switch(typeof h){case"string":return`"${Fe(h)}"`;case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(d),typeof h!="object")return u(d,h,p,m,b);if(h===null)return"null"}if(p.indexOf(h)!==-1)return e;let _=b;if(Array.isArray(h)){if(h.length===0)return"[]";if(s<p.length+1)return'"[Array]"';p.push(h),b+=m;let R=`
${b}`,z=`,
${b}`,K=Math.min(h.length,n),V=0;for(;V<K-1;V++){let ne=u(V,h[V],p,m,b);R+=ne!==void 0?ne:"null",R+=z}let Z=u(V,h[V],p,m,b);if(R+=Z!==void 0?Z:"null",h.length-1>n){let ne=h.length-n-1;R+=`${z}"... ${tt(ne)} not stringified"`}return R+=`
${_}`,p.pop(),`[${R}]`}let v=Object.keys(h),S=v.length;if(S===0)return"{}";if(s<p.length+1)return'"[Object]"';b+=m;let x=`,
${b}`,I="",A="",Y=Math.min(S,n);ds(h)&&(I+=ps(h,x,n),v=v.slice(h.length),Y-=h.length,A=x),i&&(v=fs(v)),p.push(h);for(let R=0;R<Y;R++){let z=v[R],K=u(z,h[z],p,m,b);K!==void 0&&(I+=`${A}"${Fe(z)}": ${K}`,A=x)}if(S>n){let R=S-n;I+=`${A}"...": "${tt(R)} not stringified"`,A=x}return A!==""&&(I=`
${b}${I}
${_}`),p.pop(),`{${I}}`}case"number":return isFinite(h)?String(h):"null";case"boolean":return h===!0?"true":"false";case"bigint":return r?String(h):void 0}}function l(d,h,p){switch(typeof h){case"string":return`"${Fe(h)}"`;case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(d),typeof h!="object")return l(d,h,p);if(h===null)return"null"}if(p.indexOf(h)!==-1)return e;let m="";if(Array.isArray(h)){if(h.length===0)return"[]";if(s<p.length+1)return'"[Array]"';p.push(h);let x=Math.min(h.length,n),I=0;for(;I<x-1;I++){let Y=l(I,h[I],p);m+=Y!==void 0?Y:"null",m+=","}let A=l(I,h[I],p);if(m+=A!==void 0?A:"null",h.length-1>n){let Y=h.length-n-1;m+=`,"... ${tt(Y)} not stringified"`}return p.pop(),`[${m}]`}let b=Object.keys(h),_=b.length;if(_===0)return"{}";if(s<p.length+1)return'"[Object]"';let v="",S=Math.min(_,n);ds(h)&&(m+=ps(h,",",n),b=b.slice(h.length),S-=h.length,v=","),i&&(b=fs(b)),p.push(h);for(let x=0;x<S;x++){let I=b[x],A=l(I,h[I],p);A!==void 0&&(m+=`${v}"${Fe(I)}":${A}`,v=",")}if(_>n){let x=_-n;m+=`${v}"...":"${tt(x)} not stringified"`}return p.pop(),`{${m}}`}case"number":return isFinite(h)?String(h):"null";case"boolean":return h===!0?"true":"false";case"bigint":return r?String(h):void 0}}function g(d,h,p){if(arguments.length>1){let m="";if(typeof p=="number"?m=" ".repeat(Math.min(p,10)):typeof p=="string"&&(m=p.slice(0,10)),h!=null){if(typeof h=="function")return o("",{"":d},[],h,m,"");if(Array.isArray(h))return a("",d,[],Rm(h),m,"")}if(m.length!==0)return u("",d,[],m,"")}return l("",d,[])}return g}});var bs=c((mS,eu)=>{"use strict";var Pm=re(),{MESSAGE:Am}=B(),$m=kt();function Dm(t,e){return typeof e=="bigint"?e.toString():e}eu.exports=Pm((t,e)=>{let r=$m.configure(e);return t[Am]=r(t,e.replacer||Dm,e.space),t})});var ru=c((vS,tu)=>{"use strict";var Cm=re();tu.exports=Cm((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var su=c((bS,iu)=>{"use strict";var Im=re(),{MESSAGE:Lm}=B(),Nm=kt();iu.exports=Im(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[Lm]=Nm(e),t})});var ou=c((yS,nu)=>{"use strict";var jm=re();function km(t,e,r){let i=e.reduce((n,o)=>(n[o]=t[o],delete t[o],n),{}),s=Object.keys(t).reduce((n,o)=>(n[o]=t[o],delete t[o],n),{});return Object.assign(t,i,{[r]:s}),t}function Fm(t,e,r){return t[r]=e.reduce((i,s)=>(i[s]=t[s],delete t[s],i),{}),t}nu.exports=jm((t,e={})=>{let r="metadata";e.key&&(r=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?km(t,i,r):e.fillWith?Fm(t,e.fillWith,r):t})});var uu=c((wS,au)=>{"use strict";var yt=1e3,wt=yt*60,_t=wt*60,it=_t*24,Hm=it*7,Ym=it*365.25;au.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Bm(t);if(r==="number"&&isFinite(t))return e.long?Um(t):zm(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Bm(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Ym;case"weeks":case"week":case"w":return r*Hm;case"days":case"day":case"d":return r*it;case"hours":case"hour":case"hrs":case"hr":case"h":return r*_t;case"minutes":case"minute":case"mins":case"min":case"m":return r*wt;case"seconds":case"second":case"secs":case"sec":case"s":return r*yt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function zm(t){var e=Math.abs(t);return e>=it?Math.round(t/it)+"d":e>=_t?Math.round(t/_t)+"h":e>=wt?Math.round(t/wt)+"m":e>=yt?Math.round(t/yt)+"s":t+"ms"}function Um(t){var e=Math.abs(t);return e>=it?$r(t,e,it,"day"):e>=_t?$r(t,e,_t,"hour"):e>=wt?$r(t,e,wt,"minute"):e>=yt?$r(t,e,yt,"second"):t+" ms"}function $r(t,e,r,i){var s=e>=r*1.5;return Math.round(t/r)+" "+i+(s?"s":"")}});var hu=c((Ft,lu)=>{"use strict";var Gm=re(),Wm=uu();lu.exports=Gm(t=>{let e=+new Date;return Ft.diff=e-(Ft.prevTime||e),Ft.prevTime=e,t.ms=`+${Wm(Ft.diff)}`,t})});var du=c((_S,fu)=>{"use strict";var Vm=q("util").inspect,Jm=re(),{LEVEL:Km,MESSAGE:cu,SPLAT:Zm}=B();fu.exports=Jm((t,e={})=>{let r=Object.assign({},t);return delete r[Km],delete r[cu],delete r[Zm],t[cu]=Vm(r,!1,e.depth||null,e.colorize),t})});var pu=c((xS,Cr)=>{"use strict";var{MESSAGE:Qm}=B(),Dr=class{constructor(e){this.template=e}transform(e){return e[Qm]=this.template(e),e}};Cr.exports=t=>new Dr(t);Cr.exports.Printf=Cr.exports.Format=Dr});var vu=c((SS,mu)=>{"use strict";var Xm=re(),{MESSAGE:gu}=B(),e0=kt();mu.exports=Xm(t=>{let e=e0(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[gu]=`${t.level}:${r} ${t.message} ${e}`:t[gu]=`${t.level}:${r} ${t.message}`,t})});var wu=c((ES,yu)=>{"use strict";var t0=q("util"),{SPLAT:bu}=B(),r0=/%[scdjifoO%]/g,i0=/%%/g,ys=class{constructor(e){this.options=e}_splat(e,r){let i=e.message,s=e[bu]||e.splat||[],n=i.match(i0),o=n&&n.length||0,u=r.length-o-s.length,l=u<0?s.splice(u,-1*u):[],g=l.length;if(g)for(let d=0;d<g;d++)Object.assign(e,l[d]);return e.message=t0.format(i,...s),e}transform(e){let r=e.message,i=e[bu]||e.splat;if(!i||!i.length)return e;let s=r&&r.match&&r.match(r0);if(!s&&(i||i.length)){let n=i.length>1?i.splice(0):i,o=n.length;if(o)for(let a=0;a<o;a++)Object.assign(e,n[a]);return e}return s?this._splat(e,s):e}};yu.exports=t=>new ys(t)});var xu=c((Ir,_u)=>{"use strict";(function(t,e){typeof Ir=="object"&&typeof _u<"u"?e(Ir):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(Ir,function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="[1-9]\\d?",i="\\d\\d",s="\\d{3}",n="\\d{4}",o="[^\\s]+",a=/\[([^]*?)\]/gm;function u(f,y){for(var $=[],te=0,O=f.length;te<O;te++)$.push(f[te].substr(0,y));return $}var l=function(f){return function(y,$){var te=$[f].map(function(ve){return ve.toLowerCase()}),O=te.indexOf(y.toLowerCase());return O>-1?O:null}};function g(f){for(var y=[],$=1;$<arguments.length;$++)y[$-1]=arguments[$];for(var te=0,O=y;te<O.length;te++){var ve=O[te];for(var Xe in ve)f[Xe]=ve[Xe]}return f}var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"],p=u(h,3),m=u(d,3),b={dayNamesShort:m,dayNames:d,monthNamesShort:p,monthNames:h,amPm:["am","pm"],DoFn:function(f){return f+["th","st","nd","rd"][f%10>3?0:(f-f%10!==10?1:0)*f%10]}},_=g({},b),v=function(f){return _=g(_,f)},S=function(f){return f.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},x=function(f,y){for(y===void 0&&(y=2),f=String(f);f.length<y;)f="0"+f;return f},I={D:function(f){return String(f.getDate())},DD:function(f){return x(f.getDate())},Do:function(f,y){return y.DoFn(f.getDate())},d:function(f){return String(f.getDay())},dd:function(f){return x(f.getDay())},ddd:function(f,y){return y.dayNamesShort[f.getDay()]},dddd:function(f,y){return y.dayNames[f.getDay()]},M:function(f){return String(f.getMonth()+1)},MM:function(f){return x(f.getMonth()+1)},MMM:function(f,y){return y.monthNamesShort[f.getMonth()]},MMMM:function(f,y){return y.monthNames[f.getMonth()]},YY:function(f){return x(String(f.getFullYear()),4).substr(2)},YYYY:function(f){return x(f.getFullYear(),4)},h:function(f){return String(f.getHours()%12||12)},hh:function(f){return x(f.getHours()%12||12)},H:function(f){return String(f.getHours())},HH:function(f){return x(f.getHours())},m:function(f){return String(f.getMinutes())},mm:function(f){return x(f.getMinutes())},s:function(f){return String(f.getSeconds())},ss:function(f){return x(f.getSeconds())},S:function(f){return String(Math.round(f.getMilliseconds()/100))},SS:function(f){return x(Math.round(f.getMilliseconds()/10),2)},SSS:function(f){return x(f.getMilliseconds(),3)},a:function(f,y){return f.getHours()<12?y.amPm[0]:y.amPm[1]},A:function(f,y){return f.getHours()<12?y.amPm[0].toUpperCase():y.amPm[1].toUpperCase()},ZZ:function(f){var y=f.getTimezoneOffset();return(y>0?"-":"+")+x(Math.floor(Math.abs(y)/60)*100+Math.abs(y)%60,4)},Z:function(f){var y=f.getTimezoneOffset();return(y>0?"-":"+")+x(Math.floor(Math.abs(y)/60),2)+":"+x(Math.abs(y)%60,2)}},A=function(f){return+f-1},Y=[null,r],R=[null,o],z=["isPm",o,function(f,y){var $=f.toLowerCase();return $===y.amPm[0]?0:$===y.amPm[1]?1:null}],K=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(f){var y=(f+"").match(/([+-]|\d\d)/gi);if(y){var $=+y[1]*60+parseInt(y[2],10);return y[0]==="+"?$:-$}return 0}],V={D:["day",r],DD:["day",i],Do:["day",r+o,function(f){return parseInt(f,10)}],M:["month",r,A],MM:["month",i,A],YY:["year",i,function(f){var y=new Date,$=+(""+y.getFullYear()).substr(0,2);return+(""+(+f>68?$-1:$)+f)}],h:["hour",r,void 0,"isPm"],hh:["hour",i,void 0,"isPm"],H:["hour",r],HH:["hour",i],m:["minute",r],mm:["minute",i],s:["second",r],ss:["second",i],YYYY:["year",n],S:["millisecond","\\d",function(f){return+f*100}],SS:["millisecond",i,function(f){return+f*10}],SSS:["millisecond",s],d:Y,dd:Y,ddd:R,dddd:R,MMM:["month",o,l("monthNamesShort")],MMMM:["month",o,l("monthNames")],a:z,A:z,ZZ:K,Z:K},Z={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ne=function(f){return g(Z,f)},Qe=function(f,y,$){if(y===void 0&&(y=Z.default),$===void 0&&($={}),typeof f=="number"&&(f=new Date(f)),Object.prototype.toString.call(f)!=="[object Date]"||isNaN(f.getTime()))throw new Error("Invalid Date pass to format");y=Z[y]||y;var te=[];y=y.replace(a,function(ve,Xe){return te.push(Xe),"@@@"});var O=g(g({},_),$);return y=y.replace(e,function(ve){return I[ve](f,O)}),y.replace(/@@@/g,function(){return te.shift()})};function Qo(f,y,$){if($===void 0&&($={}),typeof y!="string")throw new Error("Invalid format in fecha parse");if(y=Z[y]||y,f.length>1e3)return null;var te=new Date,O={year:te.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ve=[],Xe=[],Lt=y.replace(a,function(Nt,vt){return Xe.push(S(vt)),"@@@"}),xr={},Xo={};Lt=S(Lt).replace(e,function(Nt){var vt=V[Nt],Zi=vt[0],Jg=vt[1],sa=vt[3];if(xr[Zi])throw new Error("Invalid format. "+Zi+" specified twice in format");return xr[Zi]=!0,sa&&(Xo[sa]=!0),ve.push(vt),"("+Jg+")"}),Object.keys(Xo).forEach(function(Nt){if(!xr[Nt])throw new Error("Invalid format. "+Nt+" is required in specified format")}),Lt=Lt.replace(/@@@/g,function(){return Xe.shift()});var Sr=f.match(new RegExp(Lt,"i"));if(!Sr)return null;for(var Gg=g(g({},_),$),ce=1;ce<Sr.length;ce++){var ea=ve[ce-1],Wg=ea[0],ta=ea[2],ra=ta?ta(Sr[ce],Gg):+Sr[ce];if(ra==null)return null;O[Wg]=ra}O.isPm===1&&O.hour!=null&&+O.hour!=12?O.hour=+O.hour+12:O.isPm===0&&+O.hour==12&&(O.hour=0);for(var ia=new Date(O.year,O.month,O.day,O.hour,O.minute,O.second,O.millisecond),Er=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ce=0,Vg=Er.length;ce<Vg;ce++)if(xr[Er[ce][0]]&&O[Er[ce][0]]!==ia[Er[ce][1]]())return null;return O.timezoneOffset==null?ia:new Date(Date.UTC(O.year,O.month,O.day,O.hour,O.minute-O.timezoneOffset,O.second,O.millisecond))}var Ug={format:Qe,parse:Qo,defaultI18n:b,setGlobalDateI18n:v,setGlobalDateMasks:ne};t.assign=g,t.default=Ug,t.format=Qe,t.parse=Qo,t.defaultI18n=b,t.setGlobalDateI18n=v,t.setGlobalDateMasks=ne,Object.defineProperty(t,"__esModule",{value:!0})})});var Eu=c((MS,Su)=>{"use strict";var s0=xu(),n0=re();Su.exports=n0((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():s0.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Ou=c((OS,Mu)=>{"use strict";var ws=es(),o0=re(),{MESSAGE:_s}=B();Mu.exports=o0((t,e)=>(e.level!==!1&&(t.level=ws.strip(t.level)),e.message!==!1&&(t.message=ws.strip(String(t.message))),e.raw!==!1&&t[_s]&&(t[_s]=ws.strip(String(t[_s]))),t))});var Ss=c(xs=>{"use strict";var a0=xs.format=re();xs.levels=Ha();function G(t,e){Object.defineProperty(a0,t,{get(){return e()},configurable:!0})}G("align",function(){return Ba()});G("errors",function(){return Ga()});G("cli",function(){return Va()});G("combine",function(){return Ka()});G("colorize",function(){return Tr()});G("json",function(){return bs()});G("label",function(){return ru()});G("logstash",function(){return su()});G("metadata",function(){return ou()});G("ms",function(){return hu()});G("padLevels",function(){return ls()});G("prettyPrint",function(){return du()});G("printf",function(){return pu()});G("simple",function(){return vu()});G("splat",function(){return wu()});G("timestamp",function(){return Eu()});G("uncolorize",function(){return Ou()})});var Es=c(Lr=>{"use strict";var{format:qu}=q("util");Lr.warn={deprecated(t){return()=>{throw new Error(qu("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([qu("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
`))}},forFunctions(t,e,r){r.forEach(i=>{t[i]=Lr.warn[e](i)})},forProperties(t,e,r){r.forEach(i=>{let s=Lr.warn[e](i);Object.defineProperty(t,i,{get:s,set:s})})}}});var Tu=c((RS,u0)=>{u0.exports={name:"winston",description:"A logger for just about everything.",version:"3.10.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"1.5.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.5.0"},devDependencies:{"@babel/cli":"^7.17.0","@babel/core":"^7.17.2","@babel/preset-env":"^7.16.7","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.3.1","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.9.0",hock:"^1.4.1",mocha:"8.1.3",nyc:"^15.1.0",rimraf:"^3.0.2",split2:"^4.1.0","std-mocks":"^1.0.1",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var Pu=c((PS,Ru)=>{"use strict";Ru.exports=q("util").deprecate});var Ms=c((AS,Au)=>{"use strict";Au.exports=q("stream")});var qs=c(($S,Du)=>{"use strict";function l0(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Os,this,t)):process.nextTick(Os,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(n){!e&&n?r._writableState?r._writableState.errorEmitted?process.nextTick(Nr,r):(r._writableState.errorEmitted=!0,process.nextTick($u,r,n)):process.nextTick($u,r,n):e?(process.nextTick(Nr,r),e(n)):process.nextTick(Nr,r)}),this)}function $u(t,e){Os(t,e),Nr(t)}function Nr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function h0(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Os(t,e){t.emit("error",e)}function c0(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}Du.exports={destroy:l0,undestroy:h0,errorOrDestroy:c0}});var He=c((DS,Lu)=>{"use strict";var Iu={};function le(t,e,r){r||(r=Error);function i(n,o,a){return typeof e=="string"?e:e(n,o,a)}class s extends r{constructor(o,a,u){super(i(o,a,u))}}s.prototype.name=r.name,s.prototype.code=t,Iu[t]=s}function Cu(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function f0(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function d0(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function p0(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}le("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);le("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&f0(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let s;if(d0(t," argument"))s=`The ${t} ${i} ${Cu(e,"type")}`;else{let n=p0(t,".")?"property":"argument";s=`The "${t}" ${n} ${i} ${Cu(e,"type")}`}return s+=`. Received type ${typeof r}`,s},TypeError);le("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");le("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});le("ERR_STREAM_PREMATURE_CLOSE","Premature close");le("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});le("ERR_MULTIPLE_CALLBACK","Callback called multiple times");le("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");le("ERR_STREAM_WRITE_AFTER_END","write after end");le("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);le("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);le("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Lu.exports.codes=Iu});var Ts=c((CS,Nu)=>{"use strict";var g0=He().codes.ERR_INVALID_OPT_VALUE;function m0(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function v0(t,e,r,i){var s=m0(e,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var n=i?r:"highWaterMark";throw new g0(n,s)}return Math.floor(s)}return t.objectMode?16:16*1024}Nu.exports={getHighWaterMark:v0}});var ju=c((IS,Rs)=>{"use strict";typeof Object.create=="function"?Rs.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Rs.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var xt=c((LS,As)=>{"use strict";try{if(Ps=q("util"),typeof Ps.inherits!="function")throw"";As.exports=Ps.inherits}catch{As.exports=ju()}var Ps});var zu=c((NS,Bu)=>{"use strict";function ku(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Fu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ku(Object(r),!0).forEach(function(i){b0(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ku(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function b0(t,e,r){return e=Yu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hu(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Yu(i.key),i)}}function w0(t,e,r){return e&&Hu(t.prototype,e),r&&Hu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yu(t){var e=_0(t,"string");return typeof e=="symbol"?e:String(e)}function _0(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var x0=q("buffer"),jr=x0.Buffer,S0=q("util"),$s=S0.inspect,E0=$s&&$s.custom||"inspect";function M0(t,e,r){jr.prototype.copy.call(t,e,r)}Bu.exports=function(){function t(){y0(this,t),this.head=null,this.tail=null,this.length=0}return w0(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,s=""+i.data;i=i.next;)s+=r+i.data;return s}},{key:"concat",value:function(r){if(this.length===0)return jr.alloc(0);for(var i=jr.allocUnsafe(r>>>0),s=this.head,n=0;s;)M0(s.data,i,n),n+=s.data.length,s=s.next;return i}},{key:"consume",value:function(r,i){var s;return r<this.head.data.length?(s=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?s=this.shift():s=i?this._getString(r):this._getBuffer(r),s}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,s=1,n=i.data;for(r-=n.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?n+=o:n+=o.slice(0,r),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:"_getBuffer",value:function(r){var i=jr.allocUnsafe(r),s=this.head,n=1;for(s.data.copy(i),r-=s.data.length;s=s.next;){var o=s.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++n,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=o.slice(a));break}++n}return this.length-=n,i}},{key:E0,value:function(r,i){return $s(this,Fu(Fu({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var Wu=c((Ds,Gu)=>{"use strict";var kr=q("buffer"),be=kr.Buffer;function Uu(t,e){for(var r in t)e[r]=t[r]}be.from&&be.alloc&&be.allocUnsafe&&be.allocUnsafeSlow?Gu.exports=kr:(Uu(kr,Ds),Ds.Buffer=st);function st(t,e,r){return be(t,e,r)}st.prototype=Object.create(be.prototype);Uu(be,st);st.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return be(t,e,r)};st.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=be(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};st.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return be(t)};st.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return kr.SlowBuffer(t)}});var Ls=c(Ju=>{"use strict";var Is=Wu().Buffer,Vu=Is.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function O0(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function q0(t){var e=O0(t);if(typeof e!="string"&&(Is.isEncoding===Vu||!Vu(t)))throw new Error("Unknown encoding: "+t);return e||t}Ju.StringDecoder=Ht;function Ht(t){this.encoding=q0(t);var e;switch(this.encoding){case"utf16le":this.text=D0,this.end=C0,e=4;break;case"utf8":this.fillLast=P0,e=4;break;case"base64":this.text=I0,this.end=L0,e=3;break;default:this.write=N0,this.end=j0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Is.allocUnsafe(e)}Ht.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Ht.prototype.end=$0;Ht.prototype.text=A0;Ht.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Cs(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function T0(t,e,r){var i=e.length-1;if(i<r)return 0;var s=Cs(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<r||s===-2?0:(s=Cs(e[i]),s>=0?(s>0&&(t.lastNeed=s-2),s):--i<r||s===-2?0:(s=Cs(e[i]),s>=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}function R0(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function P0(t){var e=this.lastTotal-this.lastNeed,r=R0(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function A0(t,e){var r=T0(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function $0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function D0(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function C0(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function I0(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function L0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function N0(t){return t.toString(this.encoding)}function j0(t){return t&&t.length?this.write(t):""}});var Fr=c((kS,Qu)=>{"use strict";var Ku=He().codes.ERR_STREAM_PREMATURE_CLOSE;function k0(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];t.apply(this,i)}}}function F0(){}function H0(t){return t.setHeader&&typeof t.abort=="function"}function Zu(t,e,r){if(typeof e=="function")return Zu(t,null,e);e||(e={}),r=k0(r||F0);var i=e.readable||e.readable!==!1&&t.readable,s=e.writable||e.writable!==!1&&t.writable,n=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){s=!1,o=!0,i||r.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){i=!1,u=!0,s||r.call(t)},g=function(m){r.call(t,m)},d=function(){var m;if(i&&!u)return(!t._readableState||!t._readableState.ended)&&(m=new Ku),r.call(t,m);if(s&&!o)return(!t._writableState||!t._writableState.ended)&&(m=new Ku),r.call(t,m)},h=function(){t.req.on("finish",a)};return H0(t)?(t.on("complete",a),t.on("abort",d),t.req?h():t.on("request",h)):s&&!t._writableState&&(t.on("end",n),t.on("close",n)),t.on("end",l),t.on("finish",a),e.error!==!1&&t.on("error",g),t.on("close",d),function(){t.removeListener("complete",a),t.removeListener("abort",d),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",n),t.removeListener("close",n),t.removeListener("finish",a),t.removeListener("end",l),t.removeListener("error",g),t.removeListener("close",d)}}Qu.exports=Zu});var el=c((FS,Xu)=>{"use strict";var Hr;function Ye(t,e,r){return e=Y0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Y0(t){var e=B0(t,"string");return typeof e=="symbol"?e:String(e)}function B0(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var z0=Fr(),Be=Symbol("lastResolve"),nt=Sym