@seed-design/codemod 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.cjs +46 -46
- package/bin/transforms/replace-alpha-color/index.js +30 -30
- package/bin/transforms/replace-css-seed-design-color-variable/index.js +43 -42
- package/bin/transforms/replace-css-seed-design-typography-variable/index.js +41 -40
- package/bin/transforms/replace-custom-color-to-seed-design-vars-color/index.js +30 -30
- package/bin/transforms/replace-custom-imported-typography-variable/index.js +29 -29
- package/bin/transforms/replace-custom-seed-design-color/index.js +29 -29
- package/bin/transforms/replace-custom-seed-design-text-component/index.js +29 -29
- package/bin/transforms/replace-custom-seed-design-typography/index.js +26 -26
- package/bin/transforms/replace-custom-seed-design-vars/index.js +27 -27
- package/bin/transforms/replace-custom-text-component-color-prop/index.js +28 -28
- package/bin/transforms/replace-react-icon/index.js +29 -29
- package/bin/transforms/replace-seed-design-token-typography-classname/index.js +30 -30
- package/bin/transforms/replace-seed-design-token-vars/index.js +24 -24
- package/bin/transforms/replace-semantic-stroke-color/index.js +30 -30
- package/bin/transforms/replace-stitches-styled-color/index.js +30 -30
- package/bin/transforms/replace-stitches-styled-typography/index.js +30 -30
- package/bin/transforms/replace-stitches-theme-color/index.js +27 -27
- package/bin/transforms/replace-tailwind-color/index.js +26 -26
- package/bin/transforms/replace-tailwind-typography/index.js +30 -30
- package/package.json +9 -10
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
1
|
+
var nl=Object.create;var Nt=Object.defineProperty;var il=Object.getOwnPropertyDescriptor;var sl=Object.getOwnPropertyNames;var ol=Object.getPrototypeOf,al=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ul=(t,e)=>{for(var r in e)Nt(t,r,{get:e[r],enumerable:!0})},wi=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of sl(e))!al.call(t,i)&&i!==r&&Nt(t,i,{get:()=>e[i],enumerable:!(n=il(e,i))||n.enumerable});return t};var ll=(t,e,r)=>(r=t!=null?nl(ol(t)):{},wi(e||!t||!t.__esModule?Nt(r,"default",{value:t,enumerable:!0}):r,t)),cl=t=>wi(Nt({},"__esModule",{value:!0}),t);var Z=f((Pg,Ei)=>{"use strict";var Cr=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
2
2
|
Found: ${e.toString().split(`
|
|
3
3
|
`)[0]}
|
|
4
|
-
`),Error.captureStackTrace(this,t)}};
|
|
5
|
-
`)!=-1,n=this._styles,i=n.length;i--;){var s=
|
|
6
|
-
`));return!0}
|
|
7
|
-
${
|
|
8
|
-
${
|
|
9
|
-
${
|
|
10
|
-
${
|
|
11
|
-
${
|
|
12
|
-
${
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
${S}`,
|
|
20
|
-
${S}`,
|
|
21
|
-
${
|
|
22
|
-
${S}`,
|
|
23
|
-
${S}${
|
|
24
|
-
${q}`),m.pop(),`{${N}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(f);default:return e?e(f):void 0}}function g(v,f,m){switch(typeof f){case"string":return ve(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(v),typeof f!="object")return g(v,f,m);if(f===null)return"null"}if(m.indexOf(f)!==-1)return r;let _="",S=f.length!==void 0;if(S&&Array.isArray(f)){if(f.length===0)return"[]";if(a<m.length+1)return'"[Array]"';m.push(f);let N=Math.min(f.length,o),A=0;for(;A<N-1;A++){let O=g(String(A),f[A],m);_+=O!==void 0?O:"null",_+=","}let D=g(String(A),f[A],m);if(_+=D!==void 0?D:"null",f.length-1>o){let O=f.length-o-1;_+=`,"... ${qe(O)} not stringified"`}return m.pop(),`[${_}]`}let q=Object.keys(f),w=q.length;if(w===0)return"{}";if(a<m.length+1)return'"[Object]"';let R="",P=Math.min(w,o);S&&nn(f)&&(_+=ws(f,",",o),q=q.slice(f.length),P-=f.length,R=","),i&&(q=rn(q,s)),m.push(f);for(let N=0;N<P;N++){let A=q[N],D=g(A,f[A],m);D!==void 0&&(_+=`${R}${ve(A)}:${D}`,R=",")}if(w>o){let N=w-o;_+=`${R}"...":"${qe(N)} not stringified"`}return m.pop(),`{${_}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(f);default:return e?e(f):void 0}}function p(v,f,m){if(arguments.length>1){let _="";if(typeof m=="number"?_=" ".repeat(Math.min(m,10)):typeof m=="string"&&(_=m.slice(0,10)),f!=null){if(typeof f=="function")return u("",{"":v},[],f,_,"");if(Array.isArray(f))return l("",v,[],vf(f),_,"")}if(_.length!==0)return d("",v,[],_,"")}return g("",v,[])}return p}});var on=c((k0,Ss)=>{"use strict";var bf=J(),{MESSAGE:wf}=C(),_f=st();function Ef(t,e){return typeof e=="bigint"?e.toString():e}Ss.exports=bf((t,e)=>{let r=_f.configure(e);return t[wf]=r(t,e.replacer||Ef,e.space),t})});var Ms=c((C0,xs)=>{"use strict";var Sf=J();xs.exports=Sf((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var qs=c((I0,Rs)=>{"use strict";var xf=J(),{MESSAGE:Mf}=C(),Rf=st();Rs.exports=xf(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[Mf]=Rf(e),t})});var Ts=c((F0,Os)=>{"use strict";var qf=J();function Of(t,e,r){let n=e.reduce((s,a)=>(s[a]=t[a],delete t[a],s),{}),i=Object.keys(t).reduce((s,a)=>(s[a]=t[a],delete t[a],s),{});return Object.assign(t,n,{[r]:i}),t}function Tf(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}Os.exports=qf((t,e={})=>{let r="metadata";e.key&&(r=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?Of(t,n,r):e.fillWith?Tf(t,e.fillWith,r):t})});var Ls=c((B0,As)=>{var He=1e3,We=He*60,ze=We*60,Te=ze*24,Af=Te*7,Lf=Te*365.25;As.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return jf(t);if(r==="number"&&isFinite(t))return e.long?Nf(t):Pf(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function jf(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]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Lf;case"weeks":case"week":case"w":return r*Af;case"days":case"day":case"d":return r*Te;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ze;case"minutes":case"minute":case"mins":case"min":case"m":return r*We;case"seconds":case"second":case"secs":case"sec":case"s":return r*He;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Pf(t){var e=Math.abs(t);return e>=Te?Math.round(t/Te)+"d":e>=ze?Math.round(t/ze)+"h":e>=We?Math.round(t/We)+"m":e>=He?Math.round(t/He)+"s":t+"ms"}function Nf(t){var e=Math.abs(t);return e>=Te?Ht(t,e,Te,"day"):e>=ze?Ht(t,e,ze,"hour"):e>=We?Ht(t,e,We,"minute"):e>=He?Ht(t,e,He,"second"):t+" ms"}function Ht(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Ps=c((at,js)=>{"use strict";var Df=J(),$f=Ls();js.exports=Df(t=>{let e=+new Date;return at.diff=e-(at.prevTime||e),at.prevTime=e,t.ms=`+${$f(at.diff)}`,t})});var $s=c((H0,Ds)=>{"use strict";var kf=require("util").inspect,Cf=J(),{LEVEL:If,MESSAGE:Ns,SPLAT:Ff}=C();Ds.exports=Cf((t,e={})=>{let r=Object.assign({},t);return delete r[If],delete r[Ns],delete r[Ff],t[Ns]=kf(r,!1,e.depth||null,e.colorize),t})});var ks=c((W0,zt)=>{"use strict";var{MESSAGE:Bf}=C(),Wt=class{constructor(e){this.template=e}transform(e){return e[Bf]=this.template(e),e}};zt.exports=t=>new Wt(t);zt.exports.Printf=zt.exports.Format=Wt});var Fs=c((z0,Is)=>{"use strict";var Hf=J(),{MESSAGE:Cs}=C(),Wf=st();Is.exports=Hf(t=>{let e=Wf(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Cs]=`${t.level}:${r} ${t.message} ${e}`:t[Cs]=`${t.level}:${r} ${t.message}`,t})});var Ws=c((U0,Hs)=>{"use strict";var zf=require("util"),{SPLAT:Bs}=C(),Uf=/%[scdjifoO%]/g,Yf=/%%/g,un=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[Bs]||e.splat||[],s=n.match(Yf),a=s&&s.length||0,u=r.length-a-i.length,l=u<0?i.splice(u,-1*u):[],d=l.length;if(d)for(let g=0;g<d;g++)Object.assign(e,l[g]);return e.message=zf.format(n,...i),e}transform(e){let r=e.message,n=e[Bs]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(Uf);if(!i&&(n||n.length)){let s=n.length>1?n.splice(0):n,a=s.length;if(a)for(let o=0;o<a;o++)Object.assign(e,s[o]);return e}return i?this._splat(e,i):e}};Hs.exports=t=>new un(t)});var Us=c((Ut,zs)=>{(function(t,e){typeof Ut=="object"&&typeof zs<"u"?e(Ut):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(Ut,(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="\\d\\d?",n="\\d\\d",i="\\d{3}",s="\\d{4}",a="[^\\s]+",o=/\[([^]*?)\]/gm;function u(h,y){for(var j=[],K=0,E=h.length;K<E;K++)j.push(h[K].substr(0,y));return j}var l=function(h){return function(y,j){var K=j[h].map(function(ue){return ue.toLowerCase()}),E=K.indexOf(y.toLowerCase());return E>-1?E:null}};function d(h){for(var y=[],j=1;j<arguments.length;j++)y[j-1]=arguments[j];for(var K=0,E=y;K<E.length;K++){var ue=E[K];for(var Me in ue)h[Me]=ue[Me]}return h}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],v=u(p,3),f=u(g,3),m={dayNamesShort:f,dayNames:g,monthNamesShort:v,monthNames:p,amPm:["am","pm"],DoFn:function(h){return h+["th","st","nd","rd"][h%10>3?0:(h-h%10!==10?1:0)*h%10]}},_=d({},m),S=function(h){return _=d(_,h)},q=function(h){return h.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},w=function(h,y){for(y===void 0&&(y=2),h=String(h);h.length<y;)h="0"+h;return h},R={D:function(h){return String(h.getDate())},DD:function(h){return w(h.getDate())},Do:function(h,y){return y.DoFn(h.getDate())},d:function(h){return String(h.getDay())},dd:function(h){return w(h.getDay())},ddd:function(h,y){return y.dayNamesShort[h.getDay()]},dddd:function(h,y){return y.dayNames[h.getDay()]},M:function(h){return String(h.getMonth()+1)},MM:function(h){return w(h.getMonth()+1)},MMM:function(h,y){return y.monthNamesShort[h.getMonth()]},MMMM:function(h,y){return y.monthNames[h.getMonth()]},YY:function(h){return w(String(h.getFullYear()),4).substr(2)},YYYY:function(h){return w(h.getFullYear(),4)},h:function(h){return String(h.getHours()%12||12)},hh:function(h){return w(h.getHours()%12||12)},H:function(h){return String(h.getHours())},HH:function(h){return w(h.getHours())},m:function(h){return String(h.getMinutes())},mm:function(h){return w(h.getMinutes())},s:function(h){return String(h.getSeconds())},ss:function(h){return w(h.getSeconds())},S:function(h){return String(Math.round(h.getMilliseconds()/100))},SS:function(h){return w(Math.round(h.getMilliseconds()/10),2)},SSS:function(h){return w(h.getMilliseconds(),3)},a:function(h,y){return h.getHours()<12?y.amPm[0]:y.amPm[1]},A:function(h,y){return h.getHours()<12?y.amPm[0].toUpperCase():y.amPm[1].toUpperCase()},ZZ:function(h){var y=h.getTimezoneOffset();return(y>0?"-":"+")+w(Math.floor(Math.abs(y)/60)*100+Math.abs(y)%60,4)},Z:function(h){var y=h.getTimezoneOffset();return(y>0?"-":"+")+w(Math.floor(Math.abs(y)/60),2)+":"+w(Math.abs(y)%60,2)}},P=function(h){return+h-1},N=[null,r],A=[null,a],D=["isPm",a,function(h,y){var j=h.toLowerCase();return j===y.amPm[0]?0:j===y.amPm[1]?1:null}],O=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(h){var y=(h+"").match(/([+-]|\d\d)/gi);if(y){var j=+y[1]*60+parseInt(y[2],10);return y[0]==="+"?j:-j}return 0}],H={D:["day",r],DD:["day",n],Do:["day",r+a,function(h){return parseInt(h,10)}],M:["month",r,P],MM:["month",n,P],YY:["year",n,function(h){var y=new Date,j=+(""+y.getFullYear()).substr(0,2);return+(""+(+h>68?j-1:j)+h)}],h:["hour",r,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",r],HH:["hour",n],m:["minute",r],mm:["minute",n],s:["second",r],ss:["second",n],YYYY:["year",s],S:["millisecond","\\d",function(h){return+h*100}],SS:["millisecond",n,function(h){return+h*10}],SSS:["millisecond",i],d:N,dd:N,ddd:A,dddd:A,MMM:["month",a,l("monthNamesShort")],MMMM:["month",a,l("monthNames")],a:D,A:D,ZZ:O,Z:O},Y={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"},W=function(h){return d(Y,h)},Q=function(h,y,j){if(y===void 0&&(y=Y.default),j===void 0&&(j={}),typeof h=="number"&&(h=new Date(h)),Object.prototype.toString.call(h)!=="[object Date]"||isNaN(h.getTime()))throw new Error("Invalid Date pass to format");y=Y[y]||y;var K=[];y=y.replace(o,function(ue,Me){return K.push(Me),"@@@"});var E=d(d({},_),j);return y=y.replace(e,function(ue){return R[ue](h,E)}),y.replace(/@@@/g,function(){return K.shift()})};function X(h,y,j){if(j===void 0&&(j={}),typeof y!="string")throw new Error("Invalid format in fecha parse");if(y=Y[y]||y,h.length>1e3)return null;var K=new Date,E={year:K.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ue=[],Me=[],tt=y.replace(o,function(rt,Fe){return Me.push(q(Fe)),"@@@"}),At={},xi={};tt=q(tt).replace(e,function(rt){var Fe=H[rt],Br=Fe[0],Nl=Fe[1],Oi=Fe[3];if(At[Br])throw new Error("Invalid format. "+Br+" specified twice in format");return At[Br]=!0,Oi&&(xi[Oi]=!0),ue.push(Fe),"("+Nl+")"}),Object.keys(xi).forEach(function(rt){if(!At[rt])throw new Error("Invalid format. "+rt+" is required in specified format")}),tt=tt.replace(/@@@/g,function(){return Me.shift()});var Lt=h.match(new RegExp(tt,"i"));if(!Lt)return null;for(var Ll=d(d({},_),j),ie=1;ie<Lt.length;ie++){var Mi=ue[ie-1],jl=Mi[0],Ri=Mi[2],qi=Ri?Ri(Lt[ie],Ll):+Lt[ie];if(qi==null)return null;E[jl]=qi}E.isPm===1&&E.hour!=null&&+E.hour!=12?E.hour=+E.hour+12:E.isPm===0&&+E.hour==12&&(E.hour=0);var jt;if(E.timezoneOffset==null){jt=new Date(E.year,E.month,E.day,E.hour,E.minute,E.second,E.millisecond);for(var Pt=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ie=0,Pl=Pt.length;ie<Pl;ie++)if(At[Pt[ie][0]]&&E[Pt[ie][0]]!==jt[Pt[ie][1]]())return null}else if(jt=new Date(Date.UTC(E.year,E.month,E.day,E.hour,E.minute-E.timezoneOffset,E.second,E.millisecond)),E.month>11||E.month<0||E.day>31||E.day<1||E.hour>23||E.hour<0||E.minute>59||E.minute<0||E.second>59||E.second<0)return null;return jt}var Ie={format:Q,parse:X,defaultI18n:m,setGlobalDateI18n:S,setGlobalDateMasks:W};t.assign=d,t.default=Ie,t.format=Q,t.parse=X,t.defaultI18n=m,t.setGlobalDateI18n=S,t.setGlobalDateMasks=W,Object.defineProperty(t,"__esModule",{value:!0})}))});var Gs=c((Y0,Ys)=>{"use strict";var Gf=Us(),Vf=J();Ys.exports=Vf((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():Gf.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Ks=c((G0,Vs)=>{"use strict";var ln=zr(),Kf=J(),{MESSAGE:fn}=C();Vs.exports=Kf((t,e)=>(e.level!==!1&&(t.level=ln.strip(t.level)),e.message!==!1&&(t.message=ln.strip(String(t.message))),e.raw!==!1&&t[fn]&&(t[fn]=ln.strip(String(t[fn]))),t))});var hn=c(cn=>{"use strict";var Jf=cn.format=J();cn.levels=fs();function z(t,e){Object.defineProperty(Jf,t,{get(){return e()},configurable:!0})}z("align",function(){return hs()});z("errors",function(){return gs()});z("cli",function(){return vs()});z("combine",function(){return bs()});z("colorize",function(){return Ct()});z("json",function(){return on()});z("label",function(){return Ms()});z("logstash",function(){return qs()});z("metadata",function(){return Ts()});z("ms",function(){return Ps()});z("padLevels",function(){return Xr()});z("prettyPrint",function(){return $s()});z("printf",function(){return ks()});z("simple",function(){return Fs()});z("splat",function(){return Ws()});z("timestamp",function(){return Gs()});z("uncolorize",function(){return Ks()})});var dn=c(Yt=>{"use strict";var{format:Js}=require("util");Yt.warn={deprecated(t){return()=>{throw new Error(Js("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([Js("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
25
|
-
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=Yt.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=Yt.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Zs=c((J0,Zf)=>{Zf.exports={name:"winston",description:"A logger for just about everything.",version:"3.17.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.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.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.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^17.1.0",rimraf:"5.0.1",split2:"^4.1.0","std-mocks":"^2.0.0",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:"rimraf test/fixtures/logs/* && 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 Xs=c((Z0,Qs)=>{Qs.exports=require("util").deprecate});var pn=c((Q0,ea)=>{ea.exports=require("stream")});var mn=c((X0,ra)=>{"use strict";function Qf(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(gn,this,t)):process.nextTick(gn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Gt,r):(r._writableState.errorEmitted=!0,process.nextTick(ta,r,s)):process.nextTick(ta,r,s):e?(process.nextTick(Gt,r),e(s)):process.nextTick(Gt,r)}),this)}function ta(t,e){gn(t,e),Gt(t)}function Gt(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Xf(){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 gn(t,e){t.emit("error",e)}function ec(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}ra.exports={destroy:Qf,undestroy:Xf,errorOrDestroy:ec}});var ye=c((em,sa)=>{"use strict";var ia={};function re(t,e,r){r||(r=Error);function n(s,a,o){return typeof e=="string"?e:e(s,a,o)}class i extends r{constructor(a,o,u){super(n(a,o,u))}}i.prototype.name=r.name,i.prototype.code=t,ia[t]=i}function na(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),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 tc(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function rc(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function nc(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}re("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);re("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&tc(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(rc(t," argument"))i=`The ${t} ${n} ${na(e,"type")}`;else{let s=nc(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${na(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);re("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");re("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});re("ERR_STREAM_PREMATURE_CLOSE","Premature close");re("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});re("ERR_MULTIPLE_CALLBACK","Callback called multiple times");re("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");re("ERR_STREAM_WRITE_AFTER_END","write after end");re("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);re("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);re("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");sa.exports.codes=ia});var vn=c((tm,aa)=>{"use strict";var ic=ye().codes.ERR_INVALID_OPT_VALUE;function sc(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function ac(t,e,r,n){var i=sc(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new ic(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}aa.exports={getHighWaterMark:ac}});var oa=c((rm,yn)=>{typeof Object.create=="function"?yn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:yn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Ue=c((nm,wn)=>{try{if(bn=require("util"),typeof bn.inherits!="function")throw"";wn.exports=bn.inherits}catch{wn.exports=oa()}var bn});var da=c((im,ha)=>{"use strict";function ua(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function la(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ua(Object(r),!0).forEach(function(n){oc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ua(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function oc(t,e,r){return e=ca(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ca(n.key),n)}}function lc(t,e,r){return e&&fa(t.prototype,e),r&&fa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ca(t){var e=fc(t,"string");return typeof e=="symbol"?e:String(e)}function fc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cc=require("buffer"),Vt=cc.Buffer,hc=require("util"),_n=hc.inspect,dc=_n&&_n.custom||"inspect";function pc(t,e,r){Vt.prototype.copy.call(t,e,r)}ha.exports=(function(){function t(){uc(this,t),this.head=null,this.tail=null,this.length=0}return lc(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++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 n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Vt.alloc(0);for(var n=Vt.allocUnsafe(r>>>0),i=this.head,s=0;i;)pc(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var a=n.data,o=r>a.length?a.length:r;if(o===a.length?s+=a:s+=a.slice(0,r),r-=o,r===0){o===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(o));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Vt.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var a=i.data,o=r>a.length?a.length:r;if(a.copy(n,n.length-r,0,o),r-=o,r===0){o===a.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++s}return this.length-=s,n}},{key:dc,value:function(r,n){return _n(this,la(la({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var ma=c((En,ga)=>{var Kt=require("buffer"),le=Kt.Buffer;function pa(t,e){for(var r in t)e[r]=t[r]}le.from&&le.alloc&&le.allocUnsafe&&le.allocUnsafeSlow?ga.exports=Kt:(pa(Kt,En),En.Buffer=Ae);function Ae(t,e,r){return le(t,e,r)}Ae.prototype=Object.create(le.prototype);pa(le,Ae);Ae.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return le(t,e,r)};Ae.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=le(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Ae.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return le(t)};Ae.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Kt.SlowBuffer(t)}});var Mn=c(ya=>{"use strict";var xn=ma().Buffer,va=xn.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 gc(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 mc(t){var e=gc(t);if(typeof e!="string"&&(xn.isEncoding===va||!va(t)))throw new Error("Unknown encoding: "+t);return e||t}ya.StringDecoder=ot;function ot(t){this.encoding=mc(t);var e;switch(this.encoding){case"utf16le":this.text=Ec,this.end=Sc,e=4;break;case"utf8":this.fillLast=bc,e=4;break;case"base64":this.text=xc,this.end=Mc,e=3;break;default:this.write=Rc,this.end=qc;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xn.allocUnsafe(e)}ot.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||""};ot.prototype.end=_c;ot.prototype.text=wc;ot.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 Sn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function vc(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Sn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Sn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Sn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function yc(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 bc(t){var e=this.lastTotal-this.lastNeed,r=yc(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 wc(t,e){var r=vc(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function _c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Ec(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=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 Sc(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 xc(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 Mc(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Rc(t){return t.toString(this.encoding)}function qc(t){return t&&t.length?this.write(t):""}});var Jt=c((am,_a)=>{"use strict";var ba=ye().codes.ERR_STREAM_PREMATURE_CLOSE;function Oc(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function Tc(){}function Ac(t){return t.setHeader&&typeof t.abort=="function"}function wa(t,e,r){if(typeof e=="function")return wa(t,null,e);e||(e={}),r=Oc(r||Tc);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||o()},a=t._writableState&&t._writableState.finished,o=function(){i=!1,a=!0,n||r.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){n=!1,u=!0,i||r.call(t)},d=function(f){r.call(t,f)},g=function(){var f;if(n&&!u)return(!t._readableState||!t._readableState.ended)&&(f=new ba),r.call(t,f);if(i&&!a)return(!t._writableState||!t._writableState.ended)&&(f=new ba),r.call(t,f)},p=function(){t.req.on("finish",o)};return Ac(t)?(t.on("complete",o),t.on("abort",g),t.req?p():t.on("request",p)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",o),e.error!==!1&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",o),t.removeListener("abort",g),t.removeListener("request",p),t.req&&t.req.removeListener("finish",o),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",o),t.removeListener("end",l),t.removeListener("error",d),t.removeListener("close",g)}}_a.exports=wa});var Sa=c((om,Ea)=>{"use strict";var Zt;function be(t,e,r){return e=Lc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lc(t){var e=jc(t,"string");return typeof e=="symbol"?e:String(e)}function jc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Pc=Jt(),we=Symbol("lastResolve"),Le=Symbol("lastReject"),ut=Symbol("error"),Qt=Symbol("ended"),je=Symbol("lastPromise"),Rn=Symbol("handlePromise"),Pe=Symbol("stream");function _e(t,e){return{value:t,done:e}}function Nc(t){var e=t[we];if(e!==null){var r=t[Pe].read();r!==null&&(t[je]=null,t[we]=null,t[Le]=null,e(_e(r,!1)))}}function Dc(t){process.nextTick(Nc,t)}function $c(t,e){return function(r,n){t.then(function(){if(e[Qt]){r(_e(void 0,!0));return}e[Rn](r,n)},n)}}var kc=Object.getPrototypeOf(function(){}),Cc=Object.setPrototypeOf((Zt={get stream(){return this[Pe]},next:function(){var e=this,r=this[ut];if(r!==null)return Promise.reject(r);if(this[Qt])return Promise.resolve(_e(void 0,!0));if(this[Pe].destroyed)return new Promise(function(a,o){process.nextTick(function(){e[ut]?o(e[ut]):a(_e(void 0,!0))})});var n=this[je],i;if(n)i=new Promise($c(n,this));else{var s=this[Pe].read();if(s!==null)return Promise.resolve(_e(s,!1));i=new Promise(this[Rn])}return this[je]=i,i}},be(Zt,Symbol.asyncIterator,function(){return this}),be(Zt,"return",function(){var e=this;return new Promise(function(r,n){e[Pe].destroy(null,function(i){if(i){n(i);return}r(_e(void 0,!0))})})}),Zt),kc),Ic=function(e){var r,n=Object.create(Cc,(r={},be(r,Pe,{value:e,writable:!0}),be(r,we,{value:null,writable:!0}),be(r,Le,{value:null,writable:!0}),be(r,ut,{value:null,writable:!0}),be(r,Qt,{value:e._readableState.endEmitted,writable:!0}),be(r,Rn,{value:function(s,a){var o=n[Pe].read();o?(n[je]=null,n[we]=null,n[Le]=null,s(_e(o,!1))):(n[we]=s,n[Le]=a)},writable:!0}),r));return n[je]=null,Pc(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Le];s!==null&&(n[je]=null,n[we]=null,n[Le]=null,s(i)),n[ut]=i;return}var a=n[we];a!==null&&(n[je]=null,n[we]=null,n[Le]=null,a(_e(void 0,!0))),n[Qt]=!0}),e.on("readable",Dc.bind(null,n)),n};Ea.exports=Ic});var qa=c((um,Ra)=>{"use strict";function xa(t,e,r,n,i,s,a){try{var o=t[s](a),u=o.value}catch(l){r(l);return}o.done?e(u):Promise.resolve(u).then(n,i)}function Fc(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function a(u){xa(s,n,i,a,o,"next",u)}function o(u){xa(s,n,i,a,o,"throw",u)}a(void 0)})}}function Ma(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ma(Object(r),!0).forEach(function(n){Hc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ma(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hc(t,e,r){return e=Wc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wc(t){var e=zc(t,"string");return typeof e=="symbol"?e:String(e)}function zc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Uc=ye().codes.ERR_INVALID_ARG_TYPE;function Yc(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new Uc("iterable",["Iterable"],e);var i=new t(Bc({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,a())};function a(){return o.apply(this,arguments)}function o(){return o=Fc(function*(){try{var u=yield n.next(),l=u.value,d=u.done;d?i.push(null):i.push(yield l)?a():s=!1}catch(g){i.destroy(g)}}),o.apply(this,arguments)}return i}Ra.exports=Yc});var $n=c((fm,ka)=>{"use strict";ka.exports=T;var Ye;T.ReadableState=La;var lm=require("events").EventEmitter,Aa=function(e,r){return e.listeners(r).length},ft=pn(),Xt=require("buffer").Buffer,Gc=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Vc(t){return Xt.from(t)}function Kc(t){return Xt.isBuffer(t)||t instanceof Gc}var qn=require("util"),x;qn&&qn.debuglog?x=qn.debuglog("stream"):x=function(){};var Jc=da(),Nn=mn(),Zc=vn(),Qc=Zc.getHighWaterMark,er=ye().codes,Xc=er.ERR_INVALID_ARG_TYPE,eh=er.ERR_STREAM_PUSH_AFTER_EOF,th=er.ERR_METHOD_NOT_IMPLEMENTED,rh=er.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ge,On,Tn;Ue()(T,ft);var lt=Nn.errorOrDestroy,An=["error","close","destroy","pause","resume"];function nh(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function La(t,e,r){Ye=Ye||Ne(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ye),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Qc(this,t,"readableHighWaterMark",r),this.buffer=new Jc,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ge||(Ge=Mn().StringDecoder),this.decoder=new Ge(t.encoding),this.encoding=t.encoding)}function T(t){if(Ye=Ye||Ne(),!(this instanceof T))return new T(t);var e=this instanceof Ye;this._readableState=new La(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ft.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});T.prototype.destroy=Nn.destroy;T.prototype._undestroy=Nn.undestroy;T.prototype._destroy=function(t,e){e(t)};T.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Xt.from(t,e),e=""),n=!0),ja(this,t,e,!1,n)};T.prototype.unshift=function(t){return ja(this,t,null,!0,!1)};function ja(t,e,r,n,i){x("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,ah(t,s);else{var a;if(i||(a=ih(s,e)),a)lt(t,a);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Xt.prototype&&(e=Vc(e)),n)s.endEmitted?lt(t,new rh):Ln(t,s,e,!0);else if(s.ended)lt(t,new eh);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Ln(t,s,e,!1):Pn(t,s)):Ln(t,s,e,!1)}else n||(s.reading=!1,Pn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Ln(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&tr(t)),Pn(t,e)}function ih(t,e){var r;return!Kc(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Xc("chunk",["string","Buffer","Uint8Array"],e)),r}T.prototype.isPaused=function(){return this._readableState.flowing===!1};T.prototype.setEncoding=function(t){Ge||(Ge=Mn().StringDecoder);var e=new Ge(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Oa=1073741824;function sh(t){return t>=Oa?t=Oa:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Ta(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=sh(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}T.prototype.read=function(t){x("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return x("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?jn(this):tr(this),null;if(t=Ta(t,e),t===0&&e.ended)return e.length===0&&jn(this),null;var n=e.needReadable;x("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,x("length less than watermark",n)),e.ended||e.reading?(n=!1,x("reading or ended",n)):n&&(x("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ta(r,e)));var i;return t>0?i=Da(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&jn(this)),i!==null&&this.emit("data",i),i};function ah(t,e){if(x("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?tr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Pa(t)))}}function tr(t){var e=t._readableState;x("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(x("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Pa,t))}function Pa(t){var e=t._readableState;x("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Dn(t)}function Pn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(oh,t,e))}function oh(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(x("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}T.prototype._read=function(t){lt(this,new th("_read()"))};T.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,x("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?o:m;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",a);function a(_,S){x("onunpipe"),_===r&&S&&S.hasUnpiped===!1&&(S.hasUnpiped=!0,d())}function o(){x("onend"),t.end()}var u=uh(r);t.on("drain",u);var l=!1;function d(){x("cleanup"),t.removeListener("close",v),t.removeListener("finish",f),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",m),r.removeListener("data",g),l=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",g);function g(_){x("ondata");var S=t.write(_);x("dest.write",S),S===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&$a(n.pipes,t)!==-1)&&!l&&(x("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(_){x("onerror",_),m(),t.removeListener("error",p),Aa(t,"error")===0&<(t,_)}nh(t,"error",p);function v(){t.removeListener("finish",f),m()}t.once("close",v);function f(){x("onfinish"),t.removeListener("close",v),m()}t.once("finish",f);function m(){x("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(x("pipe resume"),r.resume()),t};function uh(t){return function(){var r=t._readableState;x("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Aa(t,"data")&&(r.flowing=!0,Dn(t))}}T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=$a(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};T.prototype.on=function(t,e){var r=ft.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,x("on readable",n.length,n.reading),n.length?tr(this):n.reading||process.nextTick(lh,this)),r};T.prototype.addListener=T.prototype.on;T.prototype.removeListener=function(t,e){var r=ft.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Na,this),r};T.prototype.removeAllListeners=function(t){var e=ft.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Na,this),e};function Na(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function lh(t){x("readable nexttick read 0"),t.read(0)}T.prototype.resume=function(){var t=this._readableState;return t.flowing||(x("resume"),t.flowing=!t.readableListening,fh(this,t)),t.paused=!1,this};function fh(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(ch,t,e))}function ch(t,e){x("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Dn(t),e.flowing&&!e.reading&&t.read(0)}T.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Dn(t){var e=t._readableState;for(x("flow",e.flowing);e.flowing&&t.read()!==null;);}T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(x("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&e.push(a)}e.push(null)}),t.on("data",function(a){if(x("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=e.push(a);o||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(o){return function(){return t[o].apply(t,arguments)}})(i));for(var s=0;s<An.length;s++)t.on(An[s],this.emit.bind(this,An[s]));return this._read=function(a){x("wrapped _read",a),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return On===void 0&&(On=Sa()),On(this)});Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});T._fromList=Da;Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Da(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function jn(t){var e=t._readableState;x("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(hh,e,t))}function hh(t,e){if(x("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(T.from=function(t,e){return Tn===void 0&&(Tn=qa()),Tn(T,t,e)});function $a(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Ne=c((cm,Ia)=>{"use strict";var dh=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Ia.exports=fe;var Ca=$n(),Cn=ir();Ue()(fe,Ca);for(kn=dh(Cn.prototype),rr=0;rr<kn.length;rr++)nr=kn[rr],fe.prototype[nr]||(fe.prototype[nr]=Cn.prototype[nr]);var kn,nr,rr;function fe(t){if(!(this instanceof fe))return new fe(t);Ca.call(this,t),Cn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ph)))}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(fe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(fe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ph(){this._writableState.ended||process.nextTick(gh,this)}function gh(t){t.end()}Object.defineProperty(fe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var ir=c((hm,Ua)=>{"use strict";Ua.exports=$;function Ba(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Hh(e,t)}}var Ve;$.WritableState=ht;var mh={deprecate:Xs()},Ha=pn(),ar=require("buffer").Buffer,vh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function yh(t){return ar.from(t)}function bh(t){return ar.isBuffer(t)||t instanceof vh}var Fn=mn(),wh=vn(),_h=wh.getHighWaterMark,Ee=ye().codes,Eh=Ee.ERR_INVALID_ARG_TYPE,Sh=Ee.ERR_METHOD_NOT_IMPLEMENTED,xh=Ee.ERR_MULTIPLE_CALLBACK,Mh=Ee.ERR_STREAM_CANNOT_PIPE,Rh=Ee.ERR_STREAM_DESTROYED,qh=Ee.ERR_STREAM_NULL_VALUES,Oh=Ee.ERR_STREAM_WRITE_AFTER_END,Th=Ee.ERR_UNKNOWN_ENCODING,Ke=Fn.errorOrDestroy;Ue()($,Ha);function Ah(){}function ht(t,e,r){Ve=Ve||Ne(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ve),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=_h(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){kh(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ba(this)}ht.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(ht.prototype,"buffer",{get:mh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var sr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(sr=Function.prototype[Symbol.hasInstance],Object.defineProperty($,Symbol.hasInstance,{value:function(e){return sr.call(this,e)?!0:this!==$?!1:e&&e._writableState instanceof ht}})):sr=function(e){return e instanceof this};function $(t){Ve=Ve||Ne();var e=this instanceof Ve;if(!e&&!sr.call($,this))return new $(t);this._writableState=new ht(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Ha.call(this)}$.prototype.pipe=function(){Ke(this,new Mh)};function Lh(t,e){var r=new Oh;Ke(t,r),process.nextTick(e,r)}function jh(t,e,r,n){var i;return r===null?i=new qh:typeof r!="string"&&!e.objectMode&&(i=new Eh("chunk",["string","Buffer"],r)),i?(Ke(t,i),process.nextTick(n,i),!1):!0}$.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&bh(t);return s&&!ar.isBuffer(t)&&(t=yh(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Ah),n.ending?Lh(this,r):(s||jh(this,n,t,r))&&(n.pendingcb++,i=Nh(this,n,s,t,e,r)),i};$.prototype.cork=function(){this._writableState.corked++};$.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Wa(this,t))};$.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Th(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty($.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ph(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ar.from(e,r)),e}Object.defineProperty($.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Nh(t,e,r,n,i,s){if(!r){var a=Ph(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var o=e.objectMode?1:n.length;e.length+=o;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else In(t,e,!1,o,n,i,s);return u}function In(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Rh("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Dh(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(ct,t,e),t._writableState.errorEmitted=!0,Ke(t,n)):(i(n),t._writableState.errorEmitted=!0,Ke(t,n),ct(t,e))}function $h(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function kh(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new xh;if($h(r),e)Dh(t,r,n,e,i);else{var s=za(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Wa(t,r),n?process.nextTick(Fa,t,r,s,i):Fa(t,r,s,i)}}function Fa(t,e,r,n){r||Ch(t,e),e.pendingcb--,n(),ct(t,e)}function Ch(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Wa(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var a=0,o=!0;r;)i[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,In(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Ba(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback,g=e.objectMode?1:u.length;if(In(t,e,!1,g,u,l,d),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}$.prototype._write=function(t,e,r){r(new Sh("_write()"))};$.prototype._writev=null;$.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Bh(this,n,r),this};Object.defineProperty($.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function za(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Ih(t,e){t._final(function(r){e.pendingcb--,r&&Ke(t,r),e.prefinished=!0,t.emit("prefinish"),ct(t,e)})}function Fh(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Ih,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ct(t,e){var r=za(e);if(r&&(Fh(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function Bh(t,e,r){e.ending=!0,ct(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Hh(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});$.prototype.destroy=Fn.destroy;$.prototype._undestroy=Fn.undestroy;$.prototype._destroy=function(t,e){e(t)}});var Bn=c((dm,Va)=>{"use strict";var Wh=require("util"),Ya=ir(),{LEVEL:Ga}=C(),dt=Va.exports=function(e={}){Ya.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",r=>{this.levels=r.levels,this.parent=r}),this.once("unpipe",r=>{r===this.parent&&(this.parent=null,this.close&&this.close())})};Wh.inherits(dt,Ya);dt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[Ga]]){if(e&&!this.format)return this.log(e,n);let s,a;try{a=this.format.transform(Object.assign({},e),this.format.options)}catch(o){s=o}if(s||!a){if(n(),s)throw s;return}return this.log(a,n)}return this._writableState.sync=!1,n(null)};dt.prototype._writev=function(e,r){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,r):r(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,s;try{s=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(a){i=a}if(i||!s){if(e[n].callback(),i)throw r(null),i}else this.log(s,e[n].callback)}return r(null)};dt.prototype._accept=function(e){let r=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((r.exception===!0||!n||this.levels[n]>=this.levels[r[Ga]])&&(this.handleExceptions||r.exception!==!0))};dt.prototype._nop=function(){}});var Wn=c((pm,Ja)=>{"use strict";var zh=require("util"),{LEVEL:Hn}=C(),Ka=Bn(),pt=Ja.exports=function(e={}){if(Ka.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function r(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};zh.inherits(pt,Ka);pt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[Hn]])&&this.transport.log(e[Hn],e.message,e,this._nop),n(null)};pt.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Hn],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};pt.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
26
|
-
`))};pt.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Je=c((gm,zn)=>{"use strict";zn.exports=Bn();zn.exports.LegacyTransportStream=Wn()});var Xa=c((vm,Qa)=>{"use strict";var Uh=require("os"),{LEVEL:Za,MESSAGE:Ze}=C(),Yh=Je();Qa.exports=class extends Yh{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:Uh.EOL,this.forceConsole=e.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[Za]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleError(e[Ze]),r&&r();return}else if(this.consoleWarnLevels[e[Za]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleWarn(e[Ze]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Ze]}${this.eol}`):this._consoleLog(e[Ze]),r&&r()}_stringArrayToSet(e,r){if(!e)return{};if(r=r||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(r);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(r);return n[i]=!0,n},{})}}});var ur=c((or,eo)=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.default=Gh;function Gh(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}eo.exports=or.default});var ro=c((lr,to)=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};to.exports=lr.default});var so=c(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.fallback=no;Se.wrap=io;var Vh=Se.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Kh=Se.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Jh=Se.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function no(t){setTimeout(t,0)}function io(t){return(e,...r)=>t(()=>e(...r))}var gt;Vh?gt=queueMicrotask:Kh?gt=setImmediate:Jh?gt=process.nextTick:gt=no;Se.default=io(gt)});var fo=c((fr,lo)=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.default=rd;var Zh=ro(),Qh=uo(Zh),Xh=so(),ed=uo(Xh),td=De();function uo(t){return t&&t.__esModule?t:{default:t}}function rd(t){return(0,td.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return ao(n,r)}:(0,Qh.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return ao(n,r);r(null,n)})}function ao(t,e){return t.then(r=>{oo(e,null,r)},r=>{oo(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function oo(t,e,r){try{t(e,r)}catch(n){(0,ed.default)(i=>{throw i},n)}}lo.exports=fr.default});var De=c(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.isAsyncIterable=pe.isAsyncGenerator=pe.isAsync=void 0;var nd=fo(),id=sd(nd);function sd(t){return t&&t.__esModule?t:{default:t}}function co(t){return t[Symbol.toStringTag]==="AsyncFunction"}function ad(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function od(t){return typeof t[Symbol.asyncIterator]=="function"}function ud(t){if(typeof t!="function")throw new Error("expected a function");return co(t)?(0,id.default)(t):t}pe.default=ud;pe.isAsync=co;pe.isAsyncGenerator=ad;pe.isAsyncIterable=od});var Qe=c((cr,ho)=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.default=ld;function ld(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((i,s)=>{n[e-1]=(a,...o)=>{if(a)return s(a);i(o.length>1?o:o[0])},t.apply(this,n)})}return r}ho.exports=cr.default});var go=c((hr,po)=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});var fd=ur(),cd=Un(fd),hd=De(),dd=Un(hd),pd=Qe(),gd=Un(pd);function Un(t){return t&&t.__esModule?t:{default:t}}hr.default=(0,gd.default)((t,e,r)=>{var n=(0,cd.default)(e)?[]:{};t(e,(i,s,a)=>{(0,dd.default)(i)((o,...u)=>{u.length<2&&([u]=u),n[s]=u,a(o)})},i=>r(i,n))},3);po.exports=hr.default});var Yn=c((dr,mo)=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.default=md;function md(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}mo.exports=dr.default});var yo=c((pr,vo)=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};vo.exports=pr.default});var _o=c((gr,wo)=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=xd;var vd=ur(),yd=bo(vd),bd=yo(),wd=bo(bd);function bo(t){return t&&t.__esModule?t:{default:t}}function _d(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Ed(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function Sd(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var s=e[++r];return s==="__proto__"?i():r<n?{value:t[s],key:s}:null}}function xd(t){if((0,yd.default)(t))return _d(t);var e=(0,wd.default)(t);return e?Ed(e):Sd(t)}wo.exports=gr.default});var Gn=c((mr,Eo)=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.default=Md;function Md(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}Eo.exports=mr.default});var yr=c((vr,So)=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});var Rd={};vr.default=Rd;So.exports=vr.default});var Mo=c((br,xo)=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.default=Ad;var qd=yr(),Od=Td(qd);function Td(t){return t&&t.__esModule?t:{default:t}}function Ad(t,e,r,n){let i=!1,s=!1,a=!1,o=0,u=0;function l(){o>=e||a||i||(a=!0,t.next().then(({value:p,done:v})=>{if(!(s||i)){if(a=!1,v){i=!0,o<=0&&n(null);return}o++,r(p,u,d),u++,l()}}).catch(g))}function d(p,v){if(o-=1,!s){if(p)return g(p);if(p===!1){i=!0,s=!0;return}if(v===Od.default||i&&o<=0)return i=!0,n(null);l()}}function g(p){s||(a=!1,i=!0,n(p))}l()}xo.exports=br.default});var To=c((wr,Oo)=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});var Ld=Yn(),jd=mt(Ld),Pd=_o(),Nd=mt(Pd),Dd=Gn(),$d=mt(Dd),Ro=De(),kd=Mo(),qo=mt(kd),Cd=yr(),Id=mt(Cd);function mt(t){return t&&t.__esModule?t:{default:t}}wr.default=t=>(e,r,n)=>{if(n=(0,jd.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,Ro.isAsyncGenerator)(e))return(0,qo.default)(e,t,r,n);if((0,Ro.isAsyncIterable)(e))return(0,qo.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,Nd.default)(e),s=!1,a=!1,o=0,u=!1;function l(g,p){if(!a)if(o-=1,g)s=!0,n(g);else if(g===!1)s=!0,a=!0;else{if(p===Id.default||s&&o<=0)return s=!0,n(null);u||d()}}function d(){for(u=!0;o<t&&!s;){var g=i();if(g===null){s=!0,o<=0&&n(null);return}o+=1,r(g.value,g.key,(0,$d.default)(l))}u=!1}d()};Oo.exports=wr.default});var Kn=c((_r,Ao)=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var Fd=To(),Bd=Vn(Fd),Hd=De(),Wd=Vn(Hd),zd=Qe(),Ud=Vn(zd);function Vn(t){return t&&t.__esModule?t:{default:t}}function Yd(t,e,r,n){return(0,Bd.default)(e)(t,(0,Wd.default)(r),n)}_r.default=(0,Ud.default)(Yd,4);Ao.exports=_r.default});var Po=c((Er,jo)=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});var Gd=Kn(),Vd=Lo(Gd),Kd=Qe(),Jd=Lo(Kd);function Lo(t){return t&&t.__esModule?t:{default:t}}function Zd(t,e,r){return(0,Vd.default)(t,1,e,r)}Er.default=(0,Jd.default)(Zd,3);jo.exports=Er.default});var $o=c((Sr,Do)=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.default=rp;var Qd=go(),Xd=No(Qd),ep=Po(),tp=No(ep);function No(t){return t&&t.__esModule?t:{default:t}}function rp(t,e){return(0,Xd.default)(tp.default,t,e)}Do.exports=Sr.default});var Jn=c((wm,Co)=>{"use strict";Co.exports=ge;var xr=ye().codes,np=xr.ERR_METHOD_NOT_IMPLEMENTED,ip=xr.ERR_MULTIPLE_CALLBACK,sp=xr.ERR_TRANSFORM_ALREADY_TRANSFORMING,ap=xr.ERR_TRANSFORM_WITH_LENGTH_0,Mr=Ne();Ue()(ge,Mr);function op(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new ip);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ge(t){if(!(this instanceof ge))return new ge(t);Mr.call(this,t),this._transformState={afterTransform:op.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",up)}function up(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){ko(t,e,r)}):ko(this,null,null)}ge.prototype.push=function(t,e){return this._transformState.needTransform=!1,Mr.prototype.push.call(this,t,e)};ge.prototype._transform=function(t,e,r){r(new np("_transform()"))};ge.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ge.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ge.prototype._destroy=function(t,e){Mr.prototype._destroy.call(this,t,function(r){e(r)})};function ko(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new ap;if(t._transformState.transforming)throw new sp;return t.push(null)}});var Bo=c((_m,Fo)=>{"use strict";Fo.exports=vt;var Io=Jn();Ue()(vt,Io);function vt(t){if(!(this instanceof vt))return new vt(t);Io.call(this,t)}vt.prototype._transform=function(t,e,r){r(null,t)}});var Yo=c((Em,Uo)=>{"use strict";var Zn;function lp(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var zo=ye().codes,fp=zo.ERR_MISSING_ARGS,cp=zo.ERR_STREAM_DESTROYED;function Ho(t){if(t)throw t}function hp(t){return t.setHeader&&typeof t.abort=="function"}function dp(t,e,r,n){n=lp(n);var i=!1;t.on("close",function(){i=!0}),Zn===void 0&&(Zn=Jt()),Zn(t,{readable:e,writable:r},function(a){if(a)return n(a);i=!0,n()});var s=!1;return function(a){if(!i&&!s){if(s=!0,hp(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(a||new cp("pipe"))}}}function Wo(t){t()}function pp(t,e){return t.pipe(e)}function gp(t){return!t.length||typeof t[t.length-1]!="function"?Ho:t.pop()}function mp(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=gp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new fp("streams");var i,s=e.map(function(a,o){var u=o<e.length-1,l=o>0;return dp(a,u,l,function(d){i||(i=d),d&&s.forEach(Wo),!u&&(s.forEach(Wo),n(i))})});return e.reduce(pp)}Uo.exports=mp});var $e=c((ne,bt)=>{var yt=require("stream");process.env.READABLE_STREAM==="disable"&&yt?(bt.exports=yt.Readable,Object.assign(bt.exports,yt),bt.exports.Stream=yt):(ne=bt.exports=$n(),ne.Stream=yt||ne,ne.Readable=ne,ne.Writable=ir(),ne.Duplex=Ne(),ne.Transform=Jn(),ne.PassThrough=Bo(),ne.finished=Jt(),ne.pipeline=Yo())});var ii=c((Sm,Vo)=>{var Xe=[],wt=[],Qn=function(){};function ei(t){return~Xe.indexOf(t)?!1:(Xe.push(t),!0)}function ti(t){Qn=t}function vp(t){for(var e=[],r=0;r<Xe.length;r++){if(Xe[r].async){e.push(Xe[r]);continue}if(Xe[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(a){return a(t)})).then(function(a){i(a.some(Boolean))})}):!1}function ri(t){return~wt.indexOf(t)?!1:(wt.push(t),!0)}function Xn(){Qn.apply(Qn,arguments)}function Go(t){for(var e=0;e<wt.length;e++)t=wt[e].apply(wt[e],arguments);return t}function ni(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function yp(t){return t.enabled=!1,t.modify=ri,t.set=ti,t.use=ei,ni(function(){return!1},t)}function bp(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Xn.call(Xn,t,Go(r,t)),!0}return t.enabled=!0,t.modify=ri,t.set=ti,t.use=ei,ni(e,t)}Vo.exports=function(e){return e.introduce=ni,e.enabled=vp,e.process=Go,e.modify=ri,e.write=Xn,e.nope=yp,e.yep=bp,e.set=ti,e.use=ei,e}});var Jo=c((xm,Ko)=>{var wp=ii(),_p=wp(function t(e,r){return r=r||{},r.namespace=e,r.prod=!0,r.dev=!1,r.force||t.force?t.yep(r):t.nope(r)});Ko.exports=_p});var Qo=c((Mm,Zo)=>{"use strict";Zo.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var eu=c((Rm,Xo)=>{Xo.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var nu=c((qm,ru)=>{"use strict";var Ep=eu(),Sp=Array.prototype.concat,xp=Array.prototype.slice,tu=ru.exports=function(e){for(var r=[],n=0,i=e.length;n<i;n++){var s=e[n];Ep(s)?r=Sp.call(r,xp.call(s)):r.push(s)}return r};tu.wrap=function(t){return function(){return t(tu(arguments))}}});var ou=c((Om,au)=>{var _t=Qo(),Et=nu(),iu=Object.hasOwnProperty,su=Object.create(null);for(Rr in _t)iu.call(_t,Rr)&&(su[_t[Rr]]=Rr);var Rr,ee=au.exports={to:{},get:{}};ee.get=function(t){var e=t.substring(0,3).toLowerCase(),r,n;switch(e){case"hsl":r=ee.get.hsl(t),n="hsl";break;case"hwb":r=ee.get.hwb(t),n="hwb";break;default:r=ee.get.rgb(t),n="rgb";break}return r?{model:n,value:r}:null};ee.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,a=[0,0,0,1],o,u,l;if(o=t.match(r)){for(l=o[2],o=o[1],u=0;u<3;u++){var d=u*2;a[u]=parseInt(o.slice(d,d+2),16)}l&&(a[3]=parseInt(l,16)/255)}else if(o=t.match(e)){for(o=o[1],l=o[3],u=0;u<3;u++)a[u]=parseInt(o[u]+o[u],16);l&&(a[3]=parseInt(l+l,16)/255)}else if(o=t.match(n)){for(u=0;u<3;u++)a[u]=parseInt(o[u+1],0);o[4]&&(o[5]?a[3]=parseFloat(o[4])*.01:a[3]=parseFloat(o[4]))}else if(o=t.match(i)){for(u=0;u<3;u++)a[u]=Math.round(parseFloat(o[u+1])*2.55);o[4]&&(o[5]?a[3]=parseFloat(o[4])*.01:a[3]=parseFloat(o[4]))}else return(o=t.match(s))?o[1]==="transparent"?[0,0,0,0]:iu.call(_t,o[1])?(a=_t[o[1]],a[3]=1,a):null:null;for(u=0;u<3;u++)a[u]=xe(a[u],0,255);return a[3]=xe(a[3],0,1),a};ee.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,s=xe(parseFloat(r[2]),0,100),a=xe(parseFloat(r[3]),0,100),o=xe(isNaN(n)?1:n,0,1);return[i,s,a,o]}return null};ee.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,s=xe(parseFloat(r[2]),0,100),a=xe(parseFloat(r[3]),0,100),o=xe(isNaN(n)?1:n,0,1);return[i,s,a,o]}return null};ee.to.hex=function(){var t=Et(arguments);return"#"+qr(t[0])+qr(t[1])+qr(t[2])+(t[3]<1?qr(Math.round(t[3]*255)):"")};ee.to.rgb=function(){var t=Et(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ee.to.rgb.percent=function(){var t=Et(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"};ee.to.hsl=function(){var t=Et(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ee.to.hwb=function(){var t=Et(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ee.to.keyword=function(t){return su[t.slice(0,3)]};function xe(t,e,r){return Math.min(Math.max(e,t),r)}function qr(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var lu=c((Tm,uu)=>{"use strict";uu.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var si=c((Am,du)=>{var ke=lu(),hu={};for(Or in ke)ke.hasOwnProperty(Or)&&(hu[ke[Or]]=Or);var Or,b=du.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(V in b)if(b.hasOwnProperty(V)){if(!("channels"in b[V]))throw new Error("missing channels property: "+V);if(!("labels"in b[V]))throw new Error("missing channel labels property: "+V);if(b[V].labels.length!==b[V].channels)throw new Error("channel and label counts mismatch: "+V);fu=b[V].channels,cu=b[V].labels,delete b[V].channels,delete b[V].labels,Object.defineProperty(b[V],"channels",{value:fu}),Object.defineProperty(b[V],"labels",{value:cu})}var fu,cu,V;b.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),a=s-i,o,u,l;return s===i?o=0:e===s?o=(r-n)/a:r===s?o=2+(n-e)/a:n===s&&(o=4+(e-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),l=(i+s)/2,s===i?u=0:l<=.5?u=a/(s+i):u=a/(2-s-i),[o,u*100,l*100]};b.rgb.hsv=function(t){var e,r,n,i,s,a=t[0]/255,o=t[1]/255,u=t[2]/255,l=Math.max(a,o,u),d=l-Math.min(a,o,u),g=function(p){return(l-p)/6/d+1/2};return d===0?i=s=0:(s=d/l,e=g(a),r=g(o),n=g(u),a===l?i=n-r:o===l?i=1/3+e-n:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};b.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=b.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};b.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,a,o;return o=Math.min(1-e,1-r,1-n),i=(1-e-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,[i*100,s*100,a*100,o*100]};function Mp(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}b.rgb.keyword=function(t){var e=hu[t];if(e)return e;var r=1/0,n;for(var i in ke)if(ke.hasOwnProperty(i)){var s=ke[i],a=Mp(t,s);a<r&&(r=a,n=i)}return n};b.keyword.rgb=function(t){return ke[t]};b.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,a=e*.0193+r*.1192+n*.9505;return[i*100,s*100,a*100]};b.rgb.lab=function(t){var e=b.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,a,o;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,a=500*(r-n),o=200*(n-i),[s,a,o]};b.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,a,o,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,o=[0,0,0];for(var l=0;l<3;l++)a=e+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?u=i+(s-i)*6*a:2*a<1?u=s:3*a<2?u=i+(s-i)*(2/3-a)*6:u=i,o[l]=u*255;return o};b.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),a,o;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r),[e,a*100,o*100]};b.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),a=255*n*(1-r),o=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,a];case 1:return[o,n,a];case 2:return[a,n,u];case 3:return[a,o,n];case 4:return[u,a,n];case 5:return[n,a,o]}};b.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,a,o;return o=(2-r)*n,s=(2-r)*i,a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[e,a*100,o*100]};b.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,a,o,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),a=1-n,o=6*e-s,(s&1)!==0&&(o=1-o),u=r+o*(a-r);var l,d,g;switch(s){default:case 6:case 0:l=a,d=u,g=r;break;case 1:l=u,d=a,g=r;break;case 2:l=r,d=a,g=u;break;case 3:l=r,d=u,g=a;break;case 4:l=u,d=r,g=a;break;case 5:l=a,d=r,g=u;break}return[l*255,d*255,g*255]};b.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,a,o;return s=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),[s*255,a*255,o*255]};b.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,a;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,a=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[i*255,s*255,a*255]};b.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,a;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),a=200*(r-n),[i,s,a]};b.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,a;s=(e+16)/116,i=r/500+s,a=s-n/200;var o=Math.pow(s,3),u=Math.pow(i,3),l=Math.pow(a,3);return s=o>.008856?o:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,s*=100,a*=108.883,[i,s,a]};b.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,a;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),a=Math.sqrt(r*r+n*n),[e,a,s]};b.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),s=r*Math.sin(a),[e,i,s]};b.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:b.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};b.hsv.ansi16=function(t){return b.rgb.ansi16(b.hsv.rgb(t),t[2])};b.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};b.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};b.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};b.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};b.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,a=n&255;return[i,s,a]};b.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),a=i-s,o,u;return a<1?o=s/(1-a):o=0,a<=0?u=0:i===e?u=(r-n)/a%6:i===r?u=2+(n-e)/a:u=4+(e-r)/a+4,u/=6,u%=1,[u*360,a*100,o*100]};b.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};b.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};b.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,a=s%1,o=1-a,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};b.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};b.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};b.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};b.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};b.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};b.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};b.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};b.gray.hsl=b.gray.hsv=function(t){return[0,0,t[0]]};b.gray.hwb=function(t){return[0,100,t[0]]};b.gray.cmyk=function(t){return[0,0,0,t[0]]};b.gray.lab=function(t){return[t[0],0,0]};b.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};b.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var gu=c((Lm,pu)=>{var Tr=si();function Rp(){for(var t={},e=Object.keys(Tr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function qp(t){var e=Rp(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Tr[n]),s=i.length,a=0;a<s;a++){var o=i[a],u=e[o];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(o))}return e}function Op(t,e){return function(r){return e(t(r))}}function Tp(t,e){for(var r=[e[t].parent,t],n=Tr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=Op(Tr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}pu.exports=function(t){for(var e=qp(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var a=n[s],o=e[a];o.parent!==null&&(r[a]=Tp(a,e))}return r}});var vu=c((jm,mu)=>{var ai=si(),Ap=gu(),et={},Lp=Object.keys(ai);function jp(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Pp(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}Lp.forEach(function(t){et[t]={},Object.defineProperty(et[t],"channels",{value:ai[t].channels}),Object.defineProperty(et[t],"labels",{value:ai[t].labels});var e=Ap(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];et[t][n]=Pp(i),et[t][n].raw=jp(i)})});mu.exports=et});var wu=c((Pm,bu)=>{"use strict";var St=ou(),te=vu(),li=[].slice,yu=["keyword","gray","hex"],oi={};Object.keys(te).forEach(function(t){oi[li.call(te[t].labels).sort().join("")]=t});var Ar={};function U(t,e){if(!(this instanceof U))return new U(t,e);if(e&&e in yu&&(e=null),e&&!(e in te))throw new Error("Unknown model: "+e);var r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof U)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var i=St.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=te[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(t.length){this.model=e||"rgb",n=te[this.model].channels;var s=li.call(t,0,n);this.color=ui(s,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var a=Object.keys(t);"alpha"in t&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var o=a.sort().join("");if(!(o in oi))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=oi[o];var u=te[this.model].labels,l=[];for(r=0;r<u.length;r++)l.push(t[u[r]]);this.color=ui(l)}if(Ar[this.model])for(n=te[this.model].channels,r=0;r<n;r++){var d=Ar[this.model][r];d&&(this.color[r]=d(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}U.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in St.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var r=e.valpha===1?e.color:e.color.concat(this.valpha);return St.to[e.model](r)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),r=e.valpha===1?e.color:e.color.concat(this.valpha);return St.to.rgb.percent(r)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=te[this.model].channels,r=te[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new U(this.color.map(Dp(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new U(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:k("rgb",0,I(255)),green:k("rgb",1,I(255)),blue:k("rgb",2,I(255)),hue:k(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:k("hsl",1,I(100)),lightness:k("hsl",2,I(100)),saturationv:k("hsv",1,I(100)),value:k("hsv",2,I(100)),chroma:k("hcg",1,I(100)),gray:k("hcg",2,I(100)),white:k("hwb",1,I(100)),wblack:k("hwb",2,I(100)),cyan:k("cmyk",0,I(100)),magenta:k("cmyk",1,I(100)),yellow:k("cmyk",2,I(100)),black:k("cmyk",3,I(100)),x:k("xyz",0,I(100)),y:k("xyz",1,I(100)),z:k("xyz",2,I(100)),l:k("lab",0,I(100)),a:k("lab",1),b:k("lab",2),keyword:function(t){return arguments.length?new U(t):te[this.model].keyword(this.color)},hex:function(t){return arguments.length?new U(t):St.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return U.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),i=e===void 0?.5:e,s=2*i-1,a=r.alpha()-n.alpha(),o=((s*a===-1?s:(s+a)/(1+s*a))+1)/2,u=1-o;return U.rgb(o*r.red()+u*n.red(),o*r.green()+u*n.green(),o*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};Object.keys(te).forEach(function(t){if(yu.indexOf(t)===-1){var e=te[t].channels;U.prototype[t]=function(){if(this.model===t)return new U(this);if(arguments.length)return new U(arguments,t);var r=typeof arguments[e]=="number"?e:this.valpha;return new U($p(te[this.model][t].raw(this.color)).concat(r),t)},U[t]=function(r){return typeof r=="number"&&(r=ui(li.call(arguments),e)),new U(r,t)}}});function Np(t,e){return Number(t.toFixed(e))}function Dp(t){return function(e){return Np(e,t)}}function k(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Ar[n]||(Ar[n]=[]))[e]=r}),t=t[0],function(n){var i;return arguments.length?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function I(t){return function(e){return Math.max(0,Math.min(t,e))}}function $p(t){return Array.isArray(t)?t:[t]}function ui(t,e){for(var r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}bu.exports=U});var Eu=c((Nm,_u)=>{"use strict";_u.exports=function(e){for(var r=0,n=0;r<e.length;n=e.charCodeAt(r++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i}});var Ru=c((Dm,Mu)=>{"use strict";var Su=wu(),xu=Eu();Mu.exports=function(e,r){var n=e.split(r||":"),i=xu(n[0]);if(!n.length)return i;for(var s=0,a=n.length-1;s<a;s++)i=Su(i).mix(Su(xu(n[s+1]))).saturate(1).hex();return i}});var Ou=c(($m,qu)=>{"use strict";function ae(t,e){if(e)return new ae(t).style(e);if(!(this instanceof ae))return new ae(t);this.text=t}ae.prototype.prefix="\x1B[";ae.prototype.suffix="m";ae.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var r=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(r,16),parseInt(n,16),parseInt(i,16)]};ae.prototype.rgb=function(e,r,n){var i=e/255*5,s=r/255*5,a=n/255*5;return this.ansi(i,s,a)};ae.prototype.ansi=function(e,r,n){var i=Math.round(e),s=Math.round(r),a=Math.round(n);return 16+i*36+s*6+a};ae.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ae.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};qu.exports=ae});var Au=c((km,Tu)=>{var kp=Ru(),Cp=Ou();Tu.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?Cp(n+":",kp(n)):n+":";return e[0]=i+" "+e[0],e}});var ju=c((Cm,Lu)=>{"use strict";Lu.exports=function(e,r){if(!r)return!1;for(var n=r.split(/[\s,]+/),i=0;i<n.length;i++){if(r=n[i].replace("*",".*?"),r.charAt(0)==="-"){if(new RegExp("^"+r.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+r+"$").test(e))return!0}return!1}});var Nu=c((Im,Pu)=>{var Ip=ju();Pu.exports=function(e){return function(n){try{return Ip(n,e())}catch{}return!1}}});var $u=c((Fm,Du)=>{var Fp=Nu();Du.exports=Fp(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Cu=c((Bm,ku)=>{ku.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Fu=c((Hm,Iu)=>{var Bp=ii(),Hp=require("tty").isatty(1),Lr=Bp(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:Hp,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Lr.modify(Au());Lr.use($u());Lr.set(Cu());Iu.exports=Lr});var xt=c((Wm,fi)=>{process.env.NODE_ENV==="production"?fi.exports=Jo():fi.exports=Fu()});var Hu=c((zm,Bu)=>{"use strict";var ci=require("fs"),{StringDecoder:Wp}=require("string_decoder"),{Stream:zp}=$e();function Up(){}Bu.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new Wp("utf8"),i=new zp,s="",a=0,o=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},ci.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):i.emit("error",u),i.destroy();return}(function d(){if(i.destroyed){ci.close(l,Up);return}return ci.read(l,r,0,r.length,a,(g,p)=>{if(g){e?e(g):i.emit("error",g),i.destroy();return}if(!p)return s&&((t.start==null||o>t.start)&&(e?e(null,s):i.emit("line",s)),o++,s=""),setTimeout(d,1e3);let v=n.write(r.slice(0,p));e||i.emit("data",v),v=(s+v).split(/\n+/);let f=v.length-1,m=0;for(;m<f;m++)(t.start==null||o>t.start)&&(e?e(null,v[m]):i.emit("line",v[m])),o++;return s=v[f],a+=p,d()})})()}),e?i.destroy:i}});var Yu=c((Ym,Uu)=>{"use strict";var Z=require("fs"),F=require("path"),Wu=$o(),Yp=require("zlib"),{MESSAGE:Gp}=C(),{Stream:Vp,PassThrough:zu}=$e(),Kp=Je(),oe=xt()("winston:file"),Jp=require("os"),Zp=Hu();Uu.exports=class extends Kp{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${n} together`)})}if(this._stream=new zu,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)r("filename or dirname","stream"),this._basename=this.filename=e.filename?F.basename(e.filename):"winston.log",this.dirname=e.dirname||F.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),r("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=F.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:Jp.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,r=()=>{}){if(this.silent)return r(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,r)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,r)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,r)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,r)})});return}}let n=`${e[Gp]}${this.eol}`,i=Buffer.byteLength(n);function s(){if(this._size+=i,this._pendingSize-=i,oe("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let a=this._stream.write(n,s.bind(this));return a?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),oe("written",a,this._drain),this.finishIfEnding(),a}query(e,r){typeof e=="function"&&(r=e,e={}),e=g(e);let n=F.join(this.dirname,this.filename),i="",s=[],a=0,o=Z.createReadStream(n,{encoding:"utf8"});o.on("error",p=>{if(o.readable&&o.destroy(),!!r)return p.code!=="ENOENT"?r(p):r(null,s)}),o.on("data",p=>{p=(i+p).split(/\n+/);let v=p.length-1,f=0;for(;f<v;f++)(!e.start||a>=e.start)&&u(p[f]),a++;i=p[v]}),o.on("close",()=>{i&&u(i,!0),e.order==="desc"&&(s=s.reverse()),r&&r(null,s)});function u(p,v){try{let f=JSON.parse(p);d(f)&&l(f)}catch(f){v||o.emit("error",f)}}function l(p){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(p=e.fields.reduce((v,f)=>(v[f]=p[f],v),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(p)}function d(p){if(!p||typeof p!="object")return;let v=new Date(p.timestamp);if(!(e.from&&v<e.from||e.until&&v>e.until||e.level&&e.level!==p.level))return!0}function g(p){return p=p||{},p.rows=p.rows||p.limit||10,p.start=p.start||0,p.until=p.until||new Date,typeof p.until!="object"&&(p.until=new Date(p.until)),p.from=p.from||p.until-1440*60*1e3,typeof p.from!="object"&&(p.from=new Date(p.from)),p.order=p.order||"desc",p}}stream(e={}){let r=F.join(this.dirname,this.filename),n=new Vp,i={file:r,start:e.start};return n.destroy=Zp(i,(s,a)=>{if(s)return n.emit("error",s);try{n.emit("data",a),a=JSON.parse(a),n.emit("log",a)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,r)=>{if(e)return this.emit("error",e);oe("stat done: %s { size: %s }",this.filename,r),this._size=r,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let r=this._getFile(),n=F.join(this.dirname,r);Z.stat(n,(i,s)=>{if(i&&i.code==="ENOENT")return oe("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return oe(`err ${i.code} ${n}`),e(i);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let r=F.join(this.dirname,this.filename);oe("create stream start",r,this.options);let n=Z.createWriteStream(r,this.options).on("error",i=>oe(i)).on("close",()=>oe("close",n.path,n.bytesWritten)).on("open",()=>{oe("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new zu,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return oe("create stream ok",r),n}_incFile(e){oe("_incFile",this.filename);let r=F.extname(this._basename),n=F.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(s){let a=this._created>0&&!this.tailable?this._created:"";this._compressFile(F.join(this.dirname,`${n}${a}${r}`),F.join(this.dirname,`${n}${a}${r}.gz`),s)}.bind(this)),i.push(function(s){this.tailable?this._checkMaxFilesTailable(r,n,s):(this._created+=1,this._checkMaxFilesIncrementing(r,n,s))}.bind(this)),Wu(i,e)}_getFile(){let e=F.extname(this._basename),r=F.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${n}${e}`:`${r}${e}`}_checkMaxFilesIncrementing(e,r,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,s=i!==0?i:"",a=this.zippedArchive?".gz":"",o=`${r}${s}${e}${a}`,u=F.join(this.dirname,o);Z.unlink(u,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let a=this.maxFiles-1;a>1;a--)i.push(function(o,u){let l=`${r}${o-1}${e}${s}`,d=F.join(this.dirname,l);Z.exists(d,g=>{if(!g)return u(null);l=`${r}${o}${e}${s}`,Z.rename(d,F.join(this.dirname,l),u)})}.bind(this,a));Wu(i,()=>{Z.rename(F.join(this.dirname,`${r}${e}${s}`),F.join(this.dirname,`${r}1${e}${s}`),n)})}_compressFile(e,r,n){Z.access(e,Z.F_OK,i=>{if(i)return n();var s=Yp.createGzip(),a=Z.createReadStream(e),o=Z.createWriteStream(r);o.on("finish",()=>{Z.unlink(e,n)}),a.pipe(s).pipe(o)})}_createLogDirIfNotExist(e){Z.existsSync(e)||Z.mkdirSync(e,{recursive:!0})}}});var Vu=c((Vm,Gu)=>{"use strict";var Qp=require("http"),Xp=require("https"),{Stream:eg}=$e(),tg=Je(),{configure:rg}=st();Gu.exports=class extends tg{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,r){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),r&&setImmediate(r)}query(e,r){typeof e=="function"&&(r=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(s,a,o)=>{if(a&&a.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),s)return r(s);if(typeof o=="string")try{o=JSON.parse(o)}catch(u){return r(u)}r(null,o)})}stream(e={}){let r=new eg;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let s="",a=this._request(e,i,n);return r.destroy=()=>a.destroy(),a.on("data",o=>{o=(s+o).split(/\n+/);let u=o.length-1,l=0;for(;l<u;l++)try{r.emit("log",JSON.parse(o[l]))}catch(d){r.emit("error",d)}s=o[u]}),a.on("error",o=>r.emit("error",o)),r}_request(e,r,n,i){e=e||{},r=r||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,r,n):this._doRequest(e,i,r,n)}_doBatch(e,r,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,r,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,r,n)}_doRequest(e,r,n,i){let s=Object.assign({},this.headers);n&&n.bearer&&(s.Authorization=`Bearer ${n.bearer}`);let a=(this.ssl?Xp:Qp).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:s,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});a.on("error",r),a.on("response",u=>u.on("end",()=>r(null,u)).resume());let o=rg({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});a.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var hi=c((Km,Ku)=>{"use strict";var ce=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";ce.writable=t=>ce(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ce.readable=t=>ce(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ce.duplex=t=>ce.writable(t)&&ce.readable(t);ce.transform=t=>ce.duplex(t)&&typeof t._transform=="function";Ku.exports=ce});var Zu=c((Zm,Ju)=>{"use strict";var ng=hi(),{MESSAGE:ig}=C(),sg=require("os"),ag=Je();Ju.exports=class extends ag{constructor(e={}){if(super(e),!e.stream||!ng(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:sg.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[ig]}${this.eol}`),r&&r()}}});var Qu=c(Mt=>{"use strict";Object.defineProperty(Mt,"Console",{configurable:!0,enumerable:!0,get(){return Xa()}});Object.defineProperty(Mt,"File",{configurable:!0,enumerable:!0,get(){return Yu()}});Object.defineProperty(Mt,"Http",{configurable:!0,enumerable:!0,get(){return Vu()}});Object.defineProperty(Mt,"Stream",{configurable:!0,enumerable:!0,get(){return Zu()}})});var Pr=c(Rt=>{"use strict";var jr=hn(),{configs:di}=C();Rt.cli=jr.levels(di.cli);Rt.npm=jr.levels(di.npm);Rt.syslog=jr.levels(di.syslog);Rt.addColors=jr.levels});var el=c((Nr,Xu)=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var og=ur(),ug=Ce(og),lg=yr(),fg=Ce(lg),cg=Kn(),hg=Ce(cg),dg=Yn(),pg=Ce(dg),gg=Gn(),mg=Ce(gg),vg=De(),yg=Ce(vg),bg=Qe(),wg=Ce(bg);function Ce(t){return t&&t.__esModule?t:{default:t}}function _g(t,e,r){r=(0,pg.default)(r);var n=0,i=0,{length:s}=t,a=!1;s===0&&r(null);function o(u,l){u===!1&&(a=!0),a!==!0&&(u?r(u):(++i===s||l===fg.default)&&r(null))}for(;n<s;n++)e(t[n],n,(0,mg.default)(o))}function Eg(t,e,r){return(0,hg.default)(t,1/0,e,r)}function Sg(t,e,r){var n=(0,ug.default)(t)?_g:Eg;return n(t,(0,yg.default)(e),r)}Nr.default=(0,wg.default)(Sg,3);Xu.exports=Nr.default});var rl=c((Dr,tl)=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.default=xg;function xg(t){return(e,r,n)=>t(e,n)}tl.exports=Dr.default});var Cr=c((kr,nl)=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});var Mg=el(),Rg=$r(Mg),qg=rl(),Og=$r(qg),Tg=De(),Ag=$r(Tg),Lg=Qe(),jg=$r(Lg);function $r(t){return t&&t.__esModule?t:{default:t}}function Pg(t,e,r){return(0,Rg.default)(t,(0,Og.default)((0,Ag.default)(e)),r)}kr.default=(0,jg.default)(Pg,3);nl.exports=kr.default});var sl=c((ev,il)=>{"use strict";var Ng=Object.prototype.toString;il.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var r=e.toString(),n=Ng.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var pi=c((tv,al)=>{"use strict";var Dg=sl();al.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=Dg(e),i}});var gi=c(Ot=>{Ot.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(s,a){return a},Error.captureStackTrace(r,t||Ot.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Ot.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
|
|
27
|
-
`).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var s=null,
|
|
28
|
-
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
|
29
|
-
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg
|
|
30
|
-
`));
|
|
31
|
-
`))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function
|
|
32
|
-
\u21B3 reason: ${p} ${
|
|
4
|
+
`),Error.captureStackTrace(this,t)}};Ei.exports=t=>{if(t.length>2)throw new Cr(t);function e(n={}){this.options=n}e.prototype.transform=t;function r(n){return new e(n)}return r.Format=e,r}});var Ri=f((Dg,Mi)=>{var xi={};Mi.exports=xi;var Si={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(Si).forEach(function(t){var e=Si[t],r=xi[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var qi=f(($g,Oi)=>{"use strict";Oi.exports=function(t,e){e=e||process.argv||[];var r=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",i=e.indexOf(n+t);return i!==-1&&(r===-1?!0:i<r)}});var Ai=f((Cg,Ti)=>{"use strict";var fl=require("os"),ie=qi(),K=process.env,Be=void 0;ie("no-color")||ie("no-colors")||ie("color=false")?Be=!1:(ie("color")||ie("colors")||ie("color=true")||ie("color=always"))&&(Be=!0);"FORCE_COLOR"in K&&(Be=K.FORCE_COLOR.length===0||parseInt(K.FORCE_COLOR,10)!==0);function hl(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function dl(t){if(Be===!1)return 0;if(ie("color=16m")||ie("color=full")||ie("color=truecolor"))return 3;if(ie("color=256"))return 2;if(t&&!t.isTTY&&Be!==!0)return 0;var e=Be?1:0;if(process.platform==="win32"){var r=fl.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 K)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in K})||K.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in K){var n=parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(K.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM)||"COLORTERM"in K?1:(K.TERM==="dumb",e)}function kr(t){var e=dl(t);return hl(e)}Ti.exports={supportsColor:kr,stdout:kr(process.stdout),stderr:kr(process.stderr)}});var Li=f((kg,ji)=>{ji.exports=function(e,r){var n="";e=e||"Run the trap, drop the bass",e=e.split("");var i={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(s){s=s.toLowerCase();var o=i[s]||[" "],a=Math.floor(Math.random()*o.length);typeof i[s]<"u"?n+=i[s][a]:n+=s}),n}});var Pi=f((Ig,Ni)=>{Ni.exports=function(e,r){e=e||" he is here ";var n={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"]},i=[].concat(n.up,n.down,n.mid);function s(u){var l=Math.floor(Math.random()*u);return l}function o(u){var l=!1;return i.filter(function(d){l=d===u}),l}function a(u,l){var d="",g,p;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(p in u)if(!o(p)){switch(d=d+u[p],g={up:0,down:0,mid:0},l.size){case"mini":g.up=s(8),g.mid=s(2),g.down=s(8);break;case"maxi":g.up=s(16)+3,g.mid=s(4)+1,g.down=s(64)+3;break;default:g.up=s(8)+1,g.mid=s(6)/2,g.down=s(8)+1;break}var b=["up","mid","down"];for(var c in b)for(var y=b[c],w=0;w<=g[y];w++)l[y]&&(d=d+n[y][s(n[y].length)])}return d}return a(e,r)}});var $i=f((Fg,Di)=>{Di.exports=function(t){return function(e,r,n){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 ki=f((Bg,Ci)=>{Ci.exports=function(t){return function(e,r,n){return r%2===0?e:t.inverse(e)}}});var Fi=f((Hg,Ii)=>{Ii.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,n,i){return r===" "?r:t[e[n++%e.length]](r)}}});var Hi=f((Wg,Bi)=>{Bi.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,n,i){return r===" "?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}});var Vi=f((zg,Gi)=>{var M={};Gi.exports=M;M.themes={};var pl=require("util"),Oe=M.styles=Ri(),Ui=Object.defineProperties,gl=new RegExp(/[\r\n]+/g);M.supportsColor=Ai().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 Ug=M.stylize=function(e,r){if(!M.enabled)return e+"";var n=Oe[r];return!n&&r in M?M[r](e):n.open+e+n.close},ml=/[|\\{}()[\]^$+*?.]/g,yl=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(ml,"\\$&")};function zi(t){var e=function r(){return _l.apply(r,arguments)};return e._styles=t,e.__proto__=bl,e}var Yi=(function(){var t={};return Oe.grey=Oe.gray,Object.keys(Oe).forEach(function(e){Oe[e].closeRe=new RegExp(yl(Oe[e].close),"g"),t[e]={get:function(){return zi(this._styles.concat(e))}}}),t})(),bl=Ui(function(){},Yi);function _l(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:pl.inspect(o)}).join(" ");if(!M.enabled||!e)return e;for(var r=e.indexOf(`
|
|
5
|
+
`)!=-1,n=this._styles,i=n.length;i--;){var s=Oe[n[i]];e=s.open+e.replace(s.closeRe,s.open)+s.close,r&&(e=e.replace(gl,function(o){return s.close+o+s.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(n){if(typeof t[r]=="object"){var i=n;for(var s in t[r])i=M[t[r][s]](i);return i}return M[t[r]](n)}})(e)};function vl(){var t={};return Object.keys(Yi).forEach(function(e){t[e]={get:function(){return zi([e])}}}),t}var wl=function(e,r){var n=r.split("");return n=n.map(e),n.join("")};M.trap=Li();M.zalgo=Pi();M.maps={};M.maps.america=$i()(M);M.maps.zebra=ki()(M);M.maps.rainbow=Fi()(M);M.maps.random=Hi()(M);for(Wi in M.maps)(function(t){M[t]=function(e){return wl(M.maps[t],e)}})(Wi);var Wi;Ui(M,vl())});var Ir=f((Yg,Ki)=>{var El=Vi();Ki.exports=El});var Ji=f(Fr=>{"use strict";Fr.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Fr.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var Zi=f(Br=>{"use strict";Br.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Br.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var Qi=f(Hr=>{"use strict";Hr.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Hr.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var Xi=f(Pt=>{"use strict";Object.defineProperty(Pt,"cli",{value:Ji()});Object.defineProperty(Pt,"npm",{value:Zi()});Object.defineProperty(Pt,"syslog",{value:Qi()})});var k=f(it=>{"use strict";Object.defineProperty(it,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(it,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(it,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(it,"configs",{value:Xi()})});var Ct=f((Qg,$t)=>{"use strict";var zr=Ir(),{LEVEL:Wr,MESSAGE:Ur}=k();zr.enabled=!0;var es=/\s+/,Dt=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let r=Object.keys(e).reduce((n,i)=>(n[i]=es.test(e[i])?e[i].split(es):e[i],n),{});return t.allColors=Object.assign({},t.allColors||{},r),t.allColors}addColors(e){return t.addColors(e)}colorize(e,r,n){if(typeof n>"u"&&(n=r),!Array.isArray(t.allColors[e]))return zr[t.allColors[e]](n);for(let i=0,s=t.allColors[e].length;i<s;i++)n=zr[t.allColors[e][i]](n);return n}transform(e,r){return r.all&&typeof e[Ur]=="string"&&(e[Ur]=this.colorize(e[Wr],e.level,e[Ur])),(r.level||r.all||!r.message)&&(e.level=this.colorize(e[Wr],e.level)),(r.all||r.message)&&(e.message=this.colorize(e[Wr],e.level,e.message)),e}};$t.exports=t=>new Dt(t);$t.exports.Colorizer=$t.exports.Format=Dt});var rs=f((Xg,ts)=>{"use strict";var{Colorizer:Sl}=Ct();ts.exports=t=>(Sl.addColors(t.colors||t),t)});var is=f((e0,ns)=>{"use strict";var xl=Z();ns.exports=xl(t=>(t.message=` ${t.message}`,t))});var as=f((t0,os)=>{"use strict";var Ml=Z(),{LEVEL:ss,MESSAGE:Yr}=k();os.exports=Ml((t,{stack:e,cause:r})=>{if(t instanceof Error){let i=Object.assign({},t,{level:t.level,[ss]:t[ss]||t.level,message:t.message,[Yr]:t[Yr]||t.message});return e&&(i.stack=t.stack),r&&(i.cause=t.cause),i}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[Yr]=n.message,e&&(t.stack=n.stack),r&&(t.cause=n.cause),t})});var Vr=f((r0,It)=>{"use strict";var{configs:Rl,LEVEL:us,MESSAGE:Gr}=k(),kt=class t{constructor(e={levels:Rl.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let r=Object.keys(e).map(n=>n.length);return Math.max(...r)}static paddingForLevel(e,r,n){let i=n+1-e.length,s=Math.floor(i/r.length);return`${r}${r.repeat(s)}`.slice(0,i)}static paddingForLevels(e,r=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((i,s)=>(i[s]=t.paddingForLevel(s,r,n),i),{})}transform(e,r){return e.message=`${this.paddings[e[us]]}${e.message}`,e[Gr]&&(e[Gr]=`${this.paddings[e[us]]}${e[Gr]}`),e}};It.exports=t=>new kt(t);It.exports.Padder=It.exports.Format=kt});var ls=f((n0,Kr)=>{"use strict";var{Colorizer:Ol}=Ct(),{Padder:ql}=Vr(),{configs:Tl,MESSAGE:Al}=k(),Ft=class{constructor(e={}){e.levels||(e.levels=Tl.cli.levels),this.colorizer=new Ol(e),this.padder=new ql(e),this.options=e}transform(e,r){return this.colorizer.transform(this.padder.transform(e,r),r),e[Al]=`${e.level}:${e.message}`,e}};Kr.exports=t=>new Ft(t);Kr.exports.Format=Ft});var fs=f((i0,Jr)=>{"use strict";var jl=Z();function cs(t){if(t.every(Ll))return e=>{let r=e;for(let n=0;n<t.length;n++)if(r=t[n].transform(r,t[n].options),!r)return!1;return r}}function Ll(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(`
|
|
6
|
+
`));return!0}Jr.exports=(...t)=>{let e=jl(cs(t)),r=e();return r.Format=e.Format,r};Jr.exports.cascade=cs});var ot=f((en,ps)=>{"use strict";var{hasOwnProperty:st}=Object.prototype,Te=Xr();Te.configure=Xr;Te.stringify=Te;Te.default=Te;en.stringify=Te;en.configure=Xr;ps.exports=Te;var Nl=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function be(t){return t.length<5e3&&!Nl.test(t)?`"${t}"`:JSON.stringify(t)}function Zr(t,e){if(t.length>200||e)return t.sort(e);for(let r=1;r<t.length;r++){let n=t[r],i=r;for(;i!==0&&t[i-1]>n;)t[i]=t[i-1],i--;t[i]=n}return t}var Pl=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Qr(t){return Pl.call(t)!==void 0&&t.length!==0}function hs(t,e,r){t.length<r&&(r=t.length);let n=e===","?"":" ",i=`"0":${n}${t[0]}`;for(let s=1;s<r;s++)i+=`${e}"${s}":${n}${t[s]}`;return i}function Dl(t){if(st.call(t,"circularValue")){let 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 $l(t){let e;if(st.call(t,"deterministic")&&(e=t.deterministic,typeof e!="boolean"&&typeof e!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return e===void 0?!0:e}function Cl(t,e){let r;if(st.call(t,e)&&(r=t[e],typeof r!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return r===void 0?!0:r}function ds(t,e){let r;if(st.call(t,e)){if(r=t[e],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 qe(t){return t===1?"1 item":`${t} items`}function kl(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}function Il(t){if(st.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function Xr(t){t={...t};let e=Il(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=Dl(t),n=Cl(t,"bigint"),i=$l(t),s=typeof i=="function"?i:void 0,o=ds(t,"maximumDepth"),a=ds(t,"maximumBreadth");function u(b,c,y,w,S,O){let v=c[b];switch(typeof v=="object"&&v!==null&&typeof v.toJSON=="function"&&(v=v.toJSON(b)),v=w.call(c,b,v),typeof v){case"string":return be(v);case"object":{if(v===null)return"null";if(y.indexOf(v)!==-1)return r;let R="",N=",",P=O;if(Array.isArray(v)){if(v.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(v),S!==""&&(O+=S,R+=`
|
|
7
|
+
${O}`,N=`,
|
|
8
|
+
${O}`);let Y=Math.min(v.length,a),X=0;for(;X<Y-1;X++){let Ie=u(String(X),v,y,w,S,O);R+=Ie!==void 0?Ie:"null",R+=N}let ee=u(String(X),v,y,w,S,O);if(R+=ee!==void 0?ee:"null",v.length-1>a){let Ie=v.length-a-1;R+=`${N}"... ${qe(Ie)} not stringified"`}return S!==""&&(R+=`
|
|
9
|
+
${P}`),y.pop(),`[${R}]`}let A=Object.keys(v),D=A.length;if(D===0)return"{}";if(o<y.length+1)return'"[Object]"';let q="",z="";S!==""&&(O+=S,N=`,
|
|
10
|
+
${O}`,q=" ");let V=Math.min(D,a);i&&!Qr(v)&&(A=Zr(A,s)),y.push(v);for(let Y=0;Y<V;Y++){let X=A[Y],ee=u(X,v,y,w,S,O);ee!==void 0&&(R+=`${z}${be(X)}:${q}${ee}`,z=N)}if(D>a){let Y=D-a;R+=`${z}"...":${q}"${qe(Y)} not stringified"`,z=N}return S!==""&&z.length>1&&(R=`
|
|
11
|
+
${O}${R}
|
|
12
|
+
${P}`),y.pop(),`{${R}}`}case"number":return isFinite(v)?String(v):e?e(v):"null";case"boolean":return v===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(v);default:return e?e(v):void 0}}function l(b,c,y,w,S,O){switch(typeof c=="object"&&c!==null&&typeof c.toJSON=="function"&&(c=c.toJSON(b)),typeof c){case"string":return be(c);case"object":{if(c===null)return"null";if(y.indexOf(c)!==-1)return r;let v=O,R="",N=",";if(Array.isArray(c)){if(c.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(c),S!==""&&(O+=S,R+=`
|
|
13
|
+
${O}`,N=`,
|
|
14
|
+
${O}`);let D=Math.min(c.length,a),q=0;for(;q<D-1;q++){let V=l(String(q),c[q],y,w,S,O);R+=V!==void 0?V:"null",R+=N}let z=l(String(q),c[q],y,w,S,O);if(R+=z!==void 0?z:"null",c.length-1>a){let V=c.length-a-1;R+=`${N}"... ${qe(V)} not stringified"`}return S!==""&&(R+=`
|
|
15
|
+
${v}`),y.pop(),`[${R}]`}y.push(c);let P="";S!==""&&(O+=S,N=`,
|
|
16
|
+
${O}`,P=" ");let A="";for(let D of w){let q=l(D,c[D],y,w,S,O);q!==void 0&&(R+=`${A}${be(D)}:${P}${q}`,A=N)}return S!==""&&A.length>1&&(R=`
|
|
17
|
+
${O}${R}
|
|
18
|
+
${v}`),y.pop(),`{${R}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function d(b,c,y,w,S){switch(typeof c){case"string":return be(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(b),typeof c!="object")return d(b,c,y,w,S);if(c===null)return"null"}if(y.indexOf(c)!==-1)return r;let O=S;if(Array.isArray(c)){if(c.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(c),S+=w;let q=`
|
|
19
|
+
${S}`,z=`,
|
|
20
|
+
${S}`,V=Math.min(c.length,a),Y=0;for(;Y<V-1;Y++){let ee=d(String(Y),c[Y],y,w,S);q+=ee!==void 0?ee:"null",q+=z}let X=d(String(Y),c[Y],y,w,S);if(q+=X!==void 0?X:"null",c.length-1>a){let ee=c.length-a-1;q+=`${z}"... ${qe(ee)} not stringified"`}return q+=`
|
|
21
|
+
${O}`,y.pop(),`[${q}]`}let v=Object.keys(c),R=v.length;if(R===0)return"{}";if(o<y.length+1)return'"[Object]"';S+=w;let N=`,
|
|
22
|
+
${S}`,P="",A="",D=Math.min(R,a);Qr(c)&&(P+=hs(c,N,a),v=v.slice(c.length),D-=c.length,A=N),i&&(v=Zr(v,s)),y.push(c);for(let q=0;q<D;q++){let z=v[q],V=d(z,c[z],y,w,S);V!==void 0&&(P+=`${A}${be(z)}: ${V}`,A=N)}if(R>a){let q=R-a;P+=`${A}"...": "${qe(q)} not stringified"`,A=N}return A!==""&&(P=`
|
|
23
|
+
${S}${P}
|
|
24
|
+
${O}`),y.pop(),`{${P}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function g(b,c,y){switch(typeof c){case"string":return be(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(b),typeof c!="object")return g(b,c,y);if(c===null)return"null"}if(y.indexOf(c)!==-1)return r;let w="",S=c.length!==void 0;if(S&&Array.isArray(c)){if(c.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(c);let P=Math.min(c.length,a),A=0;for(;A<P-1;A++){let q=g(String(A),c[A],y);w+=q!==void 0?q:"null",w+=","}let D=g(String(A),c[A],y);if(w+=D!==void 0?D:"null",c.length-1>a){let q=c.length-a-1;w+=`,"... ${qe(q)} not stringified"`}return y.pop(),`[${w}]`}let O=Object.keys(c),v=O.length;if(v===0)return"{}";if(o<y.length+1)return'"[Object]"';let R="",N=Math.min(v,a);S&&Qr(c)&&(w+=hs(c,",",a),O=O.slice(c.length),N-=c.length,R=","),i&&(O=Zr(O,s)),y.push(c);for(let P=0;P<N;P++){let A=O[P],D=g(A,c[A],y);D!==void 0&&(w+=`${R}${be(A)}:${D}`,R=",")}if(v>a){let P=v-a;w+=`${R}"...":"${qe(P)} not stringified"`}return y.pop(),`{${w}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";case"boolean":return c===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(c);default:return e?e(c):void 0}}function p(b,c,y){if(arguments.length>1){let w="";if(typeof y=="number"?w=" ".repeat(Math.min(y,10)):typeof y=="string"&&(w=y.slice(0,10)),c!=null){if(typeof c=="function")return u("",{"":b},[],c,w,"");if(Array.isArray(c))return l("",b,[],kl(c),w,"")}if(w.length!==0)return d("",b,[],w,"")}return g("",b,[])}return p}});var tn=f((s0,gs)=>{"use strict";var Fl=Z(),{MESSAGE:Bl}=k(),Hl=ot();function Wl(t,e){return typeof e=="bigint"?e.toString():e}gs.exports=Fl((t,e)=>{let r=Hl.configure(e);return t[Bl]=r(t,e.replacer||Wl,e.space),t})});var ys=f((o0,ms)=>{"use strict";var Ul=Z();ms.exports=Ul((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var _s=f((a0,bs)=>{"use strict";var zl=Z(),{MESSAGE:Yl}=k(),Gl=ot();bs.exports=zl(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[Yl]=Gl(e),t})});var ws=f((u0,vs)=>{"use strict";var Vl=Z();function Kl(t,e,r){let n=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),i=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,n,{[r]:i}),t}function Jl(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}vs.exports=Vl((t,e={})=>{let r="metadata";e.key&&(r=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?Kl(t,n,r):e.fillWith?Jl(t,e.fillWith,r):t})});var Ss=f((l0,Es)=>{var He=1e3,We=He*60,Ue=We*60,Ae=Ue*24,Zl=Ae*7,Ql=Ae*365.25;Es.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Xl(t);if(r==="number"&&isFinite(t))return e.long?tc(t):ec(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Xl(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]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ql;case"weeks":case"week":case"w":return r*Zl;case"days":case"day":case"d":return r*Ae;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ue;case"minutes":case"minute":case"mins":case"min":case"m":return r*We;case"seconds":case"second":case"secs":case"sec":case"s":return r*He;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ec(t){var e=Math.abs(t);return e>=Ae?Math.round(t/Ae)+"d":e>=Ue?Math.round(t/Ue)+"h":e>=We?Math.round(t/We)+"m":e>=He?Math.round(t/He)+"s":t+"ms"}function tc(t){var e=Math.abs(t);return e>=Ae?Bt(t,e,Ae,"day"):e>=Ue?Bt(t,e,Ue,"hour"):e>=We?Bt(t,e,We,"minute"):e>=He?Bt(t,e,He,"second"):t+" ms"}function Bt(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Ms=f((at,xs)=>{"use strict";var rc=Z(),nc=Ss();xs.exports=rc(t=>{let e=+new Date;return at.diff=e-(at.prevTime||e),at.prevTime=e,t.ms=`+${nc(at.diff)}`,t})});var qs=f((c0,Os)=>{"use strict";var ic=require("util").inspect,sc=Z(),{LEVEL:oc,MESSAGE:Rs,SPLAT:ac}=k();Os.exports=sc((t,e={})=>{let r=Object.assign({},t);return delete r[oc],delete r[Rs],delete r[ac],t[Rs]=ic(r,!1,e.depth||null,e.colorize),t})});var Ts=f((f0,Wt)=>{"use strict";var{MESSAGE:uc}=k(),Ht=class{constructor(e){this.template=e}transform(e){return e[uc]=this.template(e),e}};Wt.exports=t=>new Ht(t);Wt.exports.Printf=Wt.exports.Format=Ht});var Ls=f((h0,js)=>{"use strict";var lc=Z(),{MESSAGE:As}=k(),cc=ot();js.exports=lc(t=>{let e=cc(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[As]=`${t.level}:${r} ${t.message} ${e}`:t[As]=`${t.level}:${r} ${t.message}`,t})});var Ds=f((d0,Ps)=>{"use strict";var fc=require("util"),{SPLAT:Ns}=k(),hc=/%[scdjifoO%]/g,dc=/%%/g,rn=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[Ns]||e.splat||[],s=n.match(dc),o=s&&s.length||0,u=r.length-o-i.length,l=u<0?i.splice(u,-1*u):[],d=l.length;if(d)for(let g=0;g<d;g++)Object.assign(e,l[g]);return e.message=fc.format(n,...i),e}transform(e){let r=e.message,n=e[Ns]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(hc);if(!i&&(n||n.length)){let s=n.length>1?n.splice(0):n,o=s.length;if(o)for(let a=0;a<o;a++)Object.assign(e,s[a]);return e}return i?this._splat(e,i):e}};Ps.exports=t=>new rn(t)});var Cs=f((Ut,$s)=>{(function(t,e){typeof Ut=="object"&&typeof $s<"u"?e(Ut):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(Ut,(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="\\d\\d?",n="\\d\\d",i="\\d{3}",s="\\d{4}",o="[^\\s]+",a=/\[([^]*?)\]/gm;function u(h,_){for(var L=[],J=0,E=h.length;J<E;J++)L.push(h[J].substr(0,_));return L}var l=function(h){return function(_,L){var J=L[h].map(function(ae){return ae.toLowerCase()}),E=J.indexOf(_.toLowerCase());return E>-1?E:null}};function d(h){for(var _=[],L=1;L<arguments.length;L++)_[L-1]=arguments[L];for(var J=0,E=_;J<E.length;J++){var ae=E[J];for(var Re in ae)h[Re]=ae[Re]}return h}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],b=u(p,3),c=u(g,3),y={dayNamesShort:c,dayNames:g,monthNamesShort:b,monthNames:p,amPm:["am","pm"],DoFn:function(h){return h+["th","st","nd","rd"][h%10>3?0:(h-h%10!==10?1:0)*h%10]}},w=d({},y),S=function(h){return w=d(w,h)},O=function(h){return h.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},v=function(h,_){for(_===void 0&&(_=2),h=String(h);h.length<_;)h="0"+h;return h},R={D:function(h){return String(h.getDate())},DD:function(h){return v(h.getDate())},Do:function(h,_){return _.DoFn(h.getDate())},d:function(h){return String(h.getDay())},dd:function(h){return v(h.getDay())},ddd:function(h,_){return _.dayNamesShort[h.getDay()]},dddd:function(h,_){return _.dayNames[h.getDay()]},M:function(h){return String(h.getMonth()+1)},MM:function(h){return v(h.getMonth()+1)},MMM:function(h,_){return _.monthNamesShort[h.getMonth()]},MMMM:function(h,_){return _.monthNames[h.getMonth()]},YY:function(h){return v(String(h.getFullYear()),4).substr(2)},YYYY:function(h){return v(h.getFullYear(),4)},h:function(h){return String(h.getHours()%12||12)},hh:function(h){return v(h.getHours()%12||12)},H:function(h){return String(h.getHours())},HH:function(h){return v(h.getHours())},m:function(h){return String(h.getMinutes())},mm:function(h){return v(h.getMinutes())},s:function(h){return String(h.getSeconds())},ss:function(h){return v(h.getSeconds())},S:function(h){return String(Math.round(h.getMilliseconds()/100))},SS:function(h){return v(Math.round(h.getMilliseconds()/10),2)},SSS:function(h){return v(h.getMilliseconds(),3)},a:function(h,_){return h.getHours()<12?_.amPm[0]:_.amPm[1]},A:function(h,_){return h.getHours()<12?_.amPm[0].toUpperCase():_.amPm[1].toUpperCase()},ZZ:function(h){var _=h.getTimezoneOffset();return(_>0?"-":"+")+v(Math.floor(Math.abs(_)/60)*100+Math.abs(_)%60,4)},Z:function(h){var _=h.getTimezoneOffset();return(_>0?"-":"+")+v(Math.floor(Math.abs(_)/60),2)+":"+v(Math.abs(_)%60,2)}},N=function(h){return+h-1},P=[null,r],A=[null,o],D=["isPm",o,function(h,_){var L=h.toLowerCase();return L===_.amPm[0]?0:L===_.amPm[1]?1:null}],q=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(h){var _=(h+"").match(/([+-]|\d\d)/gi);if(_){var L=+_[1]*60+parseInt(_[2],10);return _[0]==="+"?L:-L}return 0}],z={D:["day",r],DD:["day",n],Do:["day",r+o,function(h){return parseInt(h,10)}],M:["month",r,N],MM:["month",n,N],YY:["year",n,function(h){var _=new Date,L=+(""+_.getFullYear()).substr(0,2);return+(""+(+h>68?L-1:L)+h)}],h:["hour",r,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",r],HH:["hour",n],m:["minute",r],mm:["minute",n],s:["second",r],ss:["second",n],YYYY:["year",s],S:["millisecond","\\d",function(h){return+h*100}],SS:["millisecond",n,function(h){return+h*10}],SSS:["millisecond",i],d:P,dd:P,ddd:A,dddd:A,MMM:["month",o,l("monthNamesShort")],MMMM:["month",o,l("monthNames")],a:D,A:D,ZZ:q,Z:q},V={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"},Y=function(h){return d(V,h)},X=function(h,_,L){if(_===void 0&&(_=V.default),L===void 0&&(L={}),typeof h=="number"&&(h=new Date(h)),Object.prototype.toString.call(h)!=="[object Date]"||isNaN(h.getTime()))throw new Error("Invalid Date pass to format");_=V[_]||_;var J=[];_=_.replace(a,function(ae,Re){return J.push(Re),"@@@"});var E=d(d({},w),L);return _=_.replace(e,function(ae){return R[ae](h,E)}),_.replace(/@@@/g,function(){return J.shift()})};function ee(h,_,L){if(L===void 0&&(L={}),typeof _!="string")throw new Error("Invalid format in fecha parse");if(_=V[_]||_,h.length>1e3)return null;var J=new Date,E={year:J.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ae=[],Re=[],rt=_.replace(a,function(nt,Fe){return Re.push(O(Fe)),"@@@"}),Tt={},mi={};rt=O(rt).replace(e,function(nt){var Fe=z[nt],$r=Fe[0],rl=Fe[1],vi=Fe[3];if(Tt[$r])throw new Error("Invalid format. "+$r+" specified twice in format");return Tt[$r]=!0,vi&&(mi[vi]=!0),ae.push(Fe),"("+rl+")"}),Object.keys(mi).forEach(function(nt){if(!Tt[nt])throw new Error("Invalid format. "+nt+" is required in specified format")}),rt=rt.replace(/@@@/g,function(){return Re.shift()});var At=h.match(new RegExp(rt,"i"));if(!At)return null;for(var Xu=d(d({},w),L),ne=1;ne<At.length;ne++){var yi=ae[ne-1],el=yi[0],bi=yi[2],_i=bi?bi(At[ne],Xu):+At[ne];if(_i==null)return null;E[el]=_i}E.isPm===1&&E.hour!=null&&+E.hour!=12?E.hour=+E.hour+12:E.isPm===0&&+E.hour==12&&(E.hour=0);var jt;if(E.timezoneOffset==null){jt=new Date(E.year,E.month,E.day,E.hour,E.minute,E.second,E.millisecond);for(var Lt=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ne=0,tl=Lt.length;ne<tl;ne++)if(Tt[Lt[ne][0]]&&E[Lt[ne][0]]!==jt[Lt[ne][1]]())return null}else if(jt=new Date(Date.UTC(E.year,E.month,E.day,E.hour,E.minute-E.timezoneOffset,E.second,E.millisecond)),E.month>11||E.month<0||E.day>31||E.day<1||E.hour>23||E.hour<0||E.minute>59||E.minute<0||E.second>59||E.second<0)return null;return jt}var Ie={format:X,parse:ee,defaultI18n:y,setGlobalDateI18n:S,setGlobalDateMasks:Y};t.assign=d,t.default=Ie,t.format=X,t.parse=ee,t.defaultI18n=y,t.setGlobalDateI18n=S,t.setGlobalDateMasks=Y,Object.defineProperty(t,"__esModule",{value:!0})}))});var Is=f((p0,ks)=>{"use strict";var pc=Cs(),gc=Z();ks.exports=gc((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():pc.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Bs=f((g0,Fs)=>{"use strict";var nn=Ir(),mc=Z(),{MESSAGE:sn}=k();Fs.exports=mc((t,e)=>(e.level!==!1&&(t.level=nn.strip(t.level)),e.message!==!1&&(t.message=nn.strip(String(t.message))),e.raw!==!1&&t[sn]&&(t[sn]=nn.strip(String(t[sn]))),t))});var an=f(on=>{"use strict";var yc=on.format=Z();on.levels=rs();function G(t,e){Object.defineProperty(yc,t,{get(){return e()},configurable:!0})}G("align",function(){return is()});G("errors",function(){return as()});G("cli",function(){return ls()});G("combine",function(){return fs()});G("colorize",function(){return Ct()});G("json",function(){return tn()});G("label",function(){return ys()});G("logstash",function(){return _s()});G("metadata",function(){return ws()});G("ms",function(){return Ms()});G("padLevels",function(){return Vr()});G("prettyPrint",function(){return qs()});G("printf",function(){return Ts()});G("simple",function(){return Ls()});G("splat",function(){return Ds()});G("timestamp",function(){return Is()});G("uncolorize",function(){return Bs()})});var un=f(zt=>{"use strict";var{format:Hs}=require("util");zt.warn={deprecated(t){return()=>{throw new Error(Hs("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([Hs("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
25
|
+
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=zt.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=zt.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Ws=f((b0,bc)=>{bc.exports={name:"winston",description:"A logger for just about everything.",version:"3.18.3",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.8","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.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.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^17.1.0",rimraf:"5.0.1",split2:"^4.1.0","std-mocks":"^2.0.0",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:"rimraf test/fixtures/logs/* && 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 zs=f((_0,Us)=>{Us.exports=require("util").deprecate});var ln=f((v0,Ys)=>{Ys.exports=require("stream")});var fn=f((w0,Vs)=>{"use strict";function _c(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(cn,this,t)):process.nextTick(cn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Yt,r):(r._writableState.errorEmitted=!0,process.nextTick(Gs,r,s)):process.nextTick(Gs,r,s):e?(process.nextTick(Yt,r),e(s)):process.nextTick(Yt,r)}),this)}function Gs(t,e){cn(t,e),Yt(t)}function Yt(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function vc(){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 cn(t,e){t.emit("error",e)}function wc(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Vs.exports={destroy:_c,undestroy:vc,errorOrDestroy:wc}});var _e=f((E0,Zs)=>{"use strict";var Js={};function te(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,u){super(n(o,a,u))}}i.prototype.name=r.name,i.prototype.code=t,Js[t]=i}function Ks(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),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 Ec(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Sc(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function xc(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}te("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);te("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Ec(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Sc(t," argument"))i=`The ${t} ${n} ${Ks(e,"type")}`;else{let s=xc(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${Ks(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);te("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");te("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});te("ERR_STREAM_PREMATURE_CLOSE","Premature close");te("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});te("ERR_MULTIPLE_CALLBACK","Callback called multiple times");te("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");te("ERR_STREAM_WRITE_AFTER_END","write after end");te("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);te("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);te("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Zs.exports.codes=Js});var hn=f((S0,Qs)=>{"use strict";var Mc=_e().codes.ERR_INVALID_OPT_VALUE;function Rc(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Oc(t,e,r,n){var i=Rc(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Mc(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Qs.exports={getHighWaterMark:Oc}});var Xs=f((x0,dn)=>{typeof Object.create=="function"?dn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:dn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var ze=f((M0,gn)=>{try{if(pn=require("util"),typeof pn.inherits!="function")throw"";gn.exports=pn.inherits}catch{gn.exports=Xs()}var pn});var so=f((R0,io)=>{"use strict";function eo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function to(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eo(Object(r),!0).forEach(function(n){qc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qc(t,e,r){return e=no(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ro(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,no(n.key),n)}}function Ac(t,e,r){return e&&ro(t.prototype,e),r&&ro(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function no(t){var e=jc(t,"string");return typeof e=="symbol"?e:String(e)}function jc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Lc=require("buffer"),Gt=Lc.Buffer,Nc=require("util"),mn=Nc.inspect,Pc=mn&&mn.custom||"inspect";function Dc(t,e,r){Gt.prototype.copy.call(t,e,r)}io.exports=(function(){function t(){Tc(this,t),this.head=null,this.tail=null,this.length=0}return Ac(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++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 n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Gt.alloc(0);for(var n=Gt.allocUnsafe(r>>>0),i=this.head,s=0;i;)Dc(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Gt.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),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:Pc,value:function(r,n){return mn(this,to(to({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var uo=f((yn,ao)=>{var Vt=require("buffer"),ue=Vt.Buffer;function oo(t,e){for(var r in t)e[r]=t[r]}ue.from&&ue.alloc&&ue.allocUnsafe&&ue.allocUnsafeSlow?ao.exports=Vt:(oo(Vt,yn),yn.Buffer=je);function je(t,e,r){return ue(t,e,r)}je.prototype=Object.create(ue.prototype);oo(ue,je);je.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ue(t,e,r)};je.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ue(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};je.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ue(t)};je.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Vt.SlowBuffer(t)}});var vn=f(co=>{"use strict";var _n=uo().Buffer,lo=_n.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 $c(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 Cc(t){var e=$c(t);if(typeof e!="string"&&(_n.isEncoding===lo||!lo(t)))throw new Error("Unknown encoding: "+t);return e||t}co.StringDecoder=ut;function ut(t){this.encoding=Cc(t);var e;switch(this.encoding){case"utf16le":this.text=Wc,this.end=Uc,e=4;break;case"utf8":this.fillLast=Fc,e=4;break;case"base64":this.text=zc,this.end=Yc,e=3;break;default:this.write=Gc,this.end=Vc;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_n.allocUnsafe(e)}ut.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||""};ut.prototype.end=Hc;ut.prototype.text=Bc;ut.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 bn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function kc(t,e,r){var n=e.length-1;if(n<r)return 0;var i=bn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=bn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=bn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function Ic(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 Fc(t){var e=this.lastTotal-this.lastNeed,r=Ic(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 Bc(t,e){var r=kc(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function Hc(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Wc(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=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 Uc(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 zc(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 Yc(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Gc(t){return t.toString(this.encoding)}function Vc(t){return t&&t.length?this.write(t):""}});var Kt=f((q0,po)=>{"use strict";var fo=_e().codes.ERR_STREAM_PREMATURE_CLOSE;function Kc(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function Jc(){}function Zc(t){return t.setHeader&&typeof t.abort=="function"}function ho(t,e,r){if(typeof e=="function")return ho(t,null,e);e||(e={}),r=Kc(r||Jc);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){n=!1,u=!0,i||r.call(t)},d=function(c){r.call(t,c)},g=function(){var c;if(n&&!u)return(!t._readableState||!t._readableState.ended)&&(c=new fo),r.call(t,c);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(c=new fo),r.call(t,c)},p=function(){t.req.on("finish",a)};return Zc(t)?(t.on("complete",a),t.on("abort",g),t.req?p():t.on("request",p)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",a),e.error!==!1&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",a),t.removeListener("abort",g),t.removeListener("request",p),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",l),t.removeListener("error",d),t.removeListener("close",g)}}po.exports=ho});var mo=f((T0,go)=>{"use strict";var Jt;function ve(t,e,r){return e=Qc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qc(t){var e=Xc(t,"string");return typeof e=="symbol"?e:String(e)}function Xc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ef=Kt(),we=Symbol("lastResolve"),Le=Symbol("lastReject"),lt=Symbol("error"),Zt=Symbol("ended"),Ne=Symbol("lastPromise"),wn=Symbol("handlePromise"),Pe=Symbol("stream");function Ee(t,e){return{value:t,done:e}}function tf(t){var e=t[we];if(e!==null){var r=t[Pe].read();r!==null&&(t[Ne]=null,t[we]=null,t[Le]=null,e(Ee(r,!1)))}}function rf(t){process.nextTick(tf,t)}function nf(t,e){return function(r,n){t.then(function(){if(e[Zt]){r(Ee(void 0,!0));return}e[wn](r,n)},n)}}var sf=Object.getPrototypeOf(function(){}),of=Object.setPrototypeOf((Jt={get stream(){return this[Pe]},next:function(){var e=this,r=this[lt];if(r!==null)return Promise.reject(r);if(this[Zt])return Promise.resolve(Ee(void 0,!0));if(this[Pe].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[lt]?a(e[lt]):o(Ee(void 0,!0))})});var n=this[Ne],i;if(n)i=new Promise(nf(n,this));else{var s=this[Pe].read();if(s!==null)return Promise.resolve(Ee(s,!1));i=new Promise(this[wn])}return this[Ne]=i,i}},ve(Jt,Symbol.asyncIterator,function(){return this}),ve(Jt,"return",function(){var e=this;return new Promise(function(r,n){e[Pe].destroy(null,function(i){if(i){n(i);return}r(Ee(void 0,!0))})})}),Jt),sf),af=function(e){var r,n=Object.create(of,(r={},ve(r,Pe,{value:e,writable:!0}),ve(r,we,{value:null,writable:!0}),ve(r,Le,{value:null,writable:!0}),ve(r,lt,{value:null,writable:!0}),ve(r,Zt,{value:e._readableState.endEmitted,writable:!0}),ve(r,wn,{value:function(s,o){var a=n[Pe].read();a?(n[Ne]=null,n[we]=null,n[Le]=null,s(Ee(a,!1))):(n[we]=s,n[Le]=o)},writable:!0}),r));return n[Ne]=null,ef(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Le];s!==null&&(n[Ne]=null,n[we]=null,n[Le]=null,s(i)),n[lt]=i;return}var o=n[we];o!==null&&(n[Ne]=null,n[we]=null,n[Le]=null,o(Ee(void 0,!0))),n[Zt]=!0}),e.on("readable",rf.bind(null,n)),n};go.exports=af});var vo=f((A0,_o)=>{"use strict";function yo(t,e,r,n,i,s,o){try{var a=t[s](o),u=a.value}catch(l){r(l);return}a.done?e(u):Promise.resolve(u).then(n,i)}function uf(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(u){yo(s,n,i,o,a,"next",u)}function a(u){yo(s,n,i,o,a,"throw",u)}o(void 0)})}}function bo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function lf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bo(Object(r),!0).forEach(function(n){cf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function cf(t,e,r){return e=ff(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ff(t){var e=hf(t,"string");return typeof e=="symbol"?e:String(e)}function hf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var df=_e().codes.ERR_INVALID_ARG_TYPE;function pf(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new df("iterable",["Iterable"],e);var i=new t(lf({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=uf(function*(){try{var u=yield n.next(),l=u.value,d=u.done;d?i.push(null):i.push(yield l)?o():s=!1}catch(g){i.destroy(g)}}),a.apply(this,arguments)}return i}_o.exports=pf});var jn=f((L0,Ao)=>{"use strict";Ao.exports=T;var Ye;T.ReadableState=xo;var j0=require("events").EventEmitter,So=function(e,r){return e.listeners(r).length},ft=ln(),Qt=require("buffer").Buffer,gf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mf(t){return Qt.from(t)}function yf(t){return Qt.isBuffer(t)||t instanceof gf}var En=require("util"),x;En&&En.debuglog?x=En.debuglog("stream"):x=function(){};var bf=so(),Tn=fn(),_f=hn(),vf=_f.getHighWaterMark,Xt=_e().codes,wf=Xt.ERR_INVALID_ARG_TYPE,Ef=Xt.ERR_STREAM_PUSH_AFTER_EOF,Sf=Xt.ERR_METHOD_NOT_IMPLEMENTED,xf=Xt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ge,Sn,xn;ze()(T,ft);var ct=Tn.errorOrDestroy,Mn=["error","close","destroy","pause","resume"];function Mf(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function xo(t,e,r){Ye=Ye||De(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ye),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=vf(this,t,"readableHighWaterMark",r),this.buffer=new bf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ge||(Ge=vn().StringDecoder),this.decoder=new Ge(t.encoding),this.encoding=t.encoding)}function T(t){if(Ye=Ye||De(),!(this instanceof T))return new T(t);var e=this instanceof Ye;this._readableState=new xo(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ft.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});T.prototype.destroy=Tn.destroy;T.prototype._undestroy=Tn.undestroy;T.prototype._destroy=function(t,e){e(t)};T.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Qt.from(t,e),e=""),n=!0),Mo(this,t,e,!1,n)};T.prototype.unshift=function(t){return Mo(this,t,null,!0,!1)};function Mo(t,e,r,n,i){x("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,qf(t,s);else{var o;if(i||(o=Rf(s,e)),o)ct(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Qt.prototype&&(e=mf(e)),n)s.endEmitted?ct(t,new xf):Rn(t,s,e,!0);else if(s.ended)ct(t,new Ef);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Rn(t,s,e,!1):qn(t,s)):Rn(t,s,e,!1)}else n||(s.reading=!1,qn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Rn(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&er(t)),qn(t,e)}function Rf(t,e){var r;return!yf(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new wf("chunk",["string","Buffer","Uint8Array"],e)),r}T.prototype.isPaused=function(){return this._readableState.flowing===!1};T.prototype.setEncoding=function(t){Ge||(Ge=vn().StringDecoder);var e=new Ge(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var wo=1073741824;function Of(t){return t>=wo?t=wo:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Eo(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Of(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}T.prototype.read=function(t){x("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return x("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?On(this):er(this),null;if(t=Eo(t,e),t===0&&e.ended)return e.length===0&&On(this),null;var n=e.needReadable;x("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,x("length less than watermark",n)),e.ended||e.reading?(n=!1,x("reading or ended",n)):n&&(x("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Eo(r,e)));var i;return t>0?i=qo(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&On(this)),i!==null&&this.emit("data",i),i};function qf(t,e){if(x("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?er(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Ro(t)))}}function er(t){var e=t._readableState;x("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(x("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Ro,t))}function Ro(t){var e=t._readableState;x("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,An(t)}function qn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Tf,t,e))}function Tf(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(x("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}T.prototype._read=function(t){ct(this,new Sf("_read()"))};T.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,x("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:y;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(w,S){x("onunpipe"),w===r&&S&&S.hasUnpiped===!1&&(S.hasUnpiped=!0,d())}function a(){x("onend"),t.end()}var u=Af(r);t.on("drain",u);var l=!1;function d(){x("cleanup"),t.removeListener("close",b),t.removeListener("finish",c),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",g),l=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",g);function g(w){x("ondata");var S=t.write(w);x("dest.write",S),S===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&To(n.pipes,t)!==-1)&&!l&&(x("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(w){x("onerror",w),y(),t.removeListener("error",p),So(t,"error")===0&&ct(t,w)}Mf(t,"error",p);function b(){t.removeListener("finish",c),y()}t.once("close",b);function c(){x("onfinish"),t.removeListener("close",b),y()}t.once("finish",c);function y(){x("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(x("pipe resume"),r.resume()),t};function Af(t){return function(){var r=t._readableState;x("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&So(t,"data")&&(r.flowing=!0,An(t))}}T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=To(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};T.prototype.on=function(t,e){var r=ft.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,x("on readable",n.length,n.reading),n.length?er(this):n.reading||process.nextTick(jf,this)),r};T.prototype.addListener=T.prototype.on;T.prototype.removeListener=function(t,e){var r=ft.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Oo,this),r};T.prototype.removeAllListeners=function(t){var e=ft.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Oo,this),e};function Oo(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function jf(t){x("readable nexttick read 0"),t.read(0)}T.prototype.resume=function(){var t=this._readableState;return t.flowing||(x("resume"),t.flowing=!t.readableListening,Lf(this,t)),t.paused=!1,this};function Lf(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Nf,t,e))}function Nf(t,e){x("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),An(t),e.flowing&&!e.reading&&t.read(0)}T.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function An(t){var e=t._readableState;for(x("flow",e.flowing);e.flowing&&t.read()!==null;);}T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(x("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(x("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(a){return function(){return t[a].apply(t,arguments)}})(i));for(var s=0;s<Mn.length;s++)t.on(Mn[s],this.emit.bind(this,Mn[s]));return this._read=function(o){x("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return Sn===void 0&&(Sn=mo()),Sn(this)});Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});T._fromList=qo;Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function qo(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function On(t){var e=t._readableState;x("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Pf,e,t))}function Pf(t,e){if(x("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(T.from=function(t,e){return xn===void 0&&(xn=vo()),xn(T,t,e)});function To(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var De=f((N0,Lo)=>{"use strict";var Df=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Lo.exports=le;var jo=jn(),Nn=nr();ze()(le,jo);for(Ln=Df(Nn.prototype),tr=0;tr<Ln.length;tr++)rr=Ln[tr],le.prototype[rr]||(le.prototype[rr]=Nn.prototype[rr]);var Ln,rr,tr;function le(t){if(!(this instanceof le))return new le(t);jo.call(this,t),Nn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",$f)))}Object.defineProperty(le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(le.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(le.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function $f(){this._writableState.ended||process.nextTick(Cf,this)}function Cf(t){t.end()}Object.defineProperty(le.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var nr=f((P0,ko)=>{"use strict";ko.exports=$;function Po(t){var e=this;this.next=null,this.entry=null,this.finish=function(){ch(e,t)}}var Ve;$.WritableState=dt;var kf={deprecate:zs()},Do=ln(),sr=require("buffer").Buffer,If=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ff(t){return sr.from(t)}function Bf(t){return sr.isBuffer(t)||t instanceof If}var Dn=fn(),Hf=hn(),Wf=Hf.getHighWaterMark,Se=_e().codes,Uf=Se.ERR_INVALID_ARG_TYPE,zf=Se.ERR_METHOD_NOT_IMPLEMENTED,Yf=Se.ERR_MULTIPLE_CALLBACK,Gf=Se.ERR_STREAM_CANNOT_PIPE,Vf=Se.ERR_STREAM_DESTROYED,Kf=Se.ERR_STREAM_NULL_VALUES,Jf=Se.ERR_STREAM_WRITE_AFTER_END,Zf=Se.ERR_UNKNOWN_ENCODING,Ke=Dn.errorOrDestroy;ze()($,Do);function Qf(){}function dt(t,e,r){Ve=Ve||De(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ve),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Wf(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){sh(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Po(this)}dt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(dt.prototype,"buffer",{get:kf.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ir;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ir=Function.prototype[Symbol.hasInstance],Object.defineProperty($,Symbol.hasInstance,{value:function(e){return ir.call(this,e)?!0:this!==$?!1:e&&e._writableState instanceof dt}})):ir=function(e){return e instanceof this};function $(t){Ve=Ve||De();var e=this instanceof Ve;if(!e&&!ir.call($,this))return new $(t);this._writableState=new dt(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Do.call(this)}$.prototype.pipe=function(){Ke(this,new Gf)};function Xf(t,e){var r=new Jf;Ke(t,r),process.nextTick(e,r)}function eh(t,e,r,n){var i;return r===null?i=new Kf:typeof r!="string"&&!e.objectMode&&(i=new Uf("chunk",["string","Buffer"],r)),i?(Ke(t,i),process.nextTick(n,i),!1):!0}$.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&Bf(t);return s&&!sr.isBuffer(t)&&(t=Ff(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Qf),n.ending?Xf(this,r):(s||eh(this,n,t,r))&&(n.pendingcb++,i=rh(this,n,s,t,e,r)),i};$.prototype.cork=function(){this._writableState.corked++};$.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&$o(this,t))};$.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Zf(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty($.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function th(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=sr.from(e,r)),e}Object.defineProperty($.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function rh(t,e,r,n,i,s){if(!r){var o=th(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Pn(t,e,!1,a,n,i,s);return u}function Pn(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Vf("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function nh(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(ht,t,e),t._writableState.errorEmitted=!0,Ke(t,n)):(i(n),t._writableState.errorEmitted=!0,Ke(t,n),ht(t,e))}function ih(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function sh(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Yf;if(ih(r),e)nh(t,r,n,e,i);else{var s=Co(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&$o(t,r),n?process.nextTick(No,t,r,s,i):No(t,r,s,i)}}function No(t,e,r,n){r||oh(t,e),e.pendingcb--,n(),ht(t,e)}function oh(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function $o(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Pn(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Po(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback,g=e.objectMode?1:u.length;if(Pn(t,e,!1,g,u,l,d),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}$.prototype._write=function(t,e,r){r(new zf("_write()"))};$.prototype._writev=null;$.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||lh(this,n,r),this};Object.defineProperty($.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Co(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function ah(t,e){t._final(function(r){e.pendingcb--,r&&Ke(t,r),e.prefinished=!0,t.emit("prefinish"),ht(t,e)})}function uh(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(ah,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ht(t,e){var r=Co(e);if(r&&(uh(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function lh(t,e,r){e.ending=!0,ht(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function ch(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});$.prototype.destroy=Dn.destroy;$.prototype._undestroy=Dn.undestroy;$.prototype._destroy=function(t,e){e(t)}});var $n=f((D0,Bo)=>{"use strict";var fh=require("util"),Io=nr(),{LEVEL:Fo}=k(),pt=Bo.exports=function(e={}){Io.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",r=>{this.levels=r.levels,this.parent=r}),this.once("unpipe",r=>{r===this.parent&&(this.parent=null,this.close&&this.close())})};fh.inherits(pt,Io);pt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[e[Fo]]){if(e&&!this.format)return this.log(e,n);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(a){s=a}if(s||!o){if(n(),s)throw s;return}return this.log(o,n)}return this._writableState.sync=!1,n(null)};pt.prototype._writev=function(e,r){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,r):r(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,s;try{s=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(o){i=o}if(i||!s){if(e[n].callback(),i)throw r(null),i}else this.log(s,e[n].callback)}return r(null)};pt.prototype._accept=function(e){let r=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((r.exception===!0||!n||this.levels[n]>=this.levels[r[Fo]])&&(this.handleExceptions||r.exception!==!0))};pt.prototype._nop=function(){}});var kn=f(($0,Wo)=>{"use strict";var hh=require("util"),{LEVEL:Cn}=k(),Ho=$n(),gt=Wo.exports=function(e={}){if(Ho.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function r(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};hh.inherits(gt,Ho);gt.prototype._write=function(e,r,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[Cn]])&&this.transport.log(e[Cn],e.message,e,this._nop),n(null)};gt.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Cn],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};gt.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
26
|
+
`))};gt.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Je=f((C0,In)=>{"use strict";In.exports=$n();In.exports.LegacyTransportStream=kn()});var Yo=f((I0,zo)=>{"use strict";var dh=require("os"),{LEVEL:Uo,MESSAGE:Ze}=k(),ph=Je();zo.exports=class extends ph{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:dh.EOL,this.forceConsole=e.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[Uo]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleError(e[Ze]),r&&r();return}else if(this.consoleWarnLevels[e[Uo]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleWarn(e[Ze]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Ze]}${this.eol}`):this._consoleLog(e[Ze]),r&&r()}_stringArrayToSet(e,r){if(!e)return{};if(r=r||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(r);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(r);return n[i]=!0,n},{})}}});var ar=f((or,Go)=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.default=gh;function gh(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Go.exports=or.default});var Ko=f((ur,Vo)=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Vo.exports=ur.default});var Qo=f(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.fallback=Jo;xe.wrap=Zo;var mh=xe.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,yh=xe.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,bh=xe.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function Jo(t){setTimeout(t,0)}function Zo(t){return(e,...r)=>t(()=>e(...r))}var mt;mh?mt=queueMicrotask:yh?mt=setImmediate:bh?mt=process.nextTick:mt=Jo;xe.default=Zo(mt)});var na=f((lr,ra)=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=xh;var _h=Ko(),vh=ta(_h),wh=Qo(),Eh=ta(wh),Sh=$e();function ta(t){return t&&t.__esModule?t:{default:t}}function xh(t){return(0,Sh.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return Xo(n,r)}:(0,vh.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return Xo(n,r);r(null,n)})}function Xo(t,e){return t.then(r=>{ea(e,null,r)},r=>{ea(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function ea(t,e,r){try{t(e,r)}catch(n){(0,Eh.default)(i=>{throw i},n)}}ra.exports=lr.default});var $e=f(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.isAsyncIterable=pe.isAsyncGenerator=pe.isAsync=void 0;var Mh=na(),Rh=Oh(Mh);function Oh(t){return t&&t.__esModule?t:{default:t}}function ia(t){return t[Symbol.toStringTag]==="AsyncFunction"}function qh(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Th(t){return typeof t[Symbol.asyncIterator]=="function"}function Ah(t){if(typeof t!="function")throw new Error("expected a function");return ia(t)?(0,Rh.default)(t):t}pe.default=Ah;pe.isAsync=ia;pe.isAsyncGenerator=qh;pe.isAsyncIterable=Th});var Qe=f((cr,sa)=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.default=jh;function jh(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((i,s)=>{n[e-1]=(o,...a)=>{if(o)return s(o);i(a.length>1?a:a[0])},t.apply(this,n)})}return r}sa.exports=cr.default});var aa=f((fr,oa)=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});var Lh=ar(),Nh=Fn(Lh),Ph=$e(),Dh=Fn(Ph),$h=Qe(),Ch=Fn($h);function Fn(t){return t&&t.__esModule?t:{default:t}}fr.default=(0,Ch.default)((t,e,r)=>{var n=(0,Nh.default)(e)?[]:{};t(e,(i,s,o)=>{(0,Dh.default)(i)((a,...u)=>{u.length<2&&([u]=u),n[s]=u,o(a)})},i=>r(i,n))},3);oa.exports=fr.default});var Bn=f((hr,ua)=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=kh;function kh(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}ua.exports=hr.default});var ca=f((dr,la)=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};la.exports=dr.default});var da=f((pr,ha)=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=Yh;var Ih=ar(),Fh=fa(Ih),Bh=ca(),Hh=fa(Bh);function fa(t){return t&&t.__esModule?t:{default:t}}function Wh(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Uh(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function zh(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var s=e[++r];return s==="__proto__"?i():r<n?{value:t[s],key:s}:null}}function Yh(t){if((0,Fh.default)(t))return Wh(t);var e=(0,Hh.default)(t);return e?Uh(e):zh(t)}ha.exports=pr.default});var Hn=f((gr,pa)=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=Gh;function Gh(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}pa.exports=gr.default});var yr=f((mr,ga)=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});var Vh={};mr.default=Vh;ga.exports=mr.default});var ya=f((br,ma)=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.default=Qh;var Kh=yr(),Jh=Zh(Kh);function Zh(t){return t&&t.__esModule?t:{default:t}}function Qh(t,e,r,n){let i=!1,s=!1,o=!1,a=0,u=0;function l(){a>=e||o||i||(o=!0,t.next().then(({value:p,done:b})=>{if(!(s||i)){if(o=!1,b){i=!0,a<=0&&n(null);return}a++,r(p,u,d),u++,l()}}).catch(g))}function d(p,b){if(a-=1,!s){if(p)return g(p);if(p===!1){i=!0,s=!0;return}if(b===Jh.default||i&&a<=0)return i=!0,n(null);l()}}function g(p){s||(o=!1,i=!0,n(p))}l()}ma.exports=br.default});var wa=f((_r,va)=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var Xh=Bn(),ed=yt(Xh),td=da(),rd=yt(td),nd=Hn(),id=yt(nd),ba=$e(),sd=ya(),_a=yt(sd),od=yr(),ad=yt(od);function yt(t){return t&&t.__esModule?t:{default:t}}_r.default=t=>(e,r,n)=>{if(n=(0,ed.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,ba.isAsyncGenerator)(e))return(0,_a.default)(e,t,r,n);if((0,ba.isAsyncIterable)(e))return(0,_a.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,rd.default)(e),s=!1,o=!1,a=0,u=!1;function l(g,p){if(!o)if(a-=1,g)s=!0,n(g);else if(g===!1)s=!0,o=!0;else{if(p===ad.default||s&&a<=0)return s=!0,n(null);u||d()}}function d(){for(u=!0;a<t&&!s;){var g=i();if(g===null){s=!0,a<=0&&n(null);return}a+=1,r(g.value,g.key,(0,id.default)(l))}u=!1}d()};va.exports=_r.default});var Un=f((vr,Ea)=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});var ud=wa(),ld=Wn(ud),cd=$e(),fd=Wn(cd),hd=Qe(),dd=Wn(hd);function Wn(t){return t&&t.__esModule?t:{default:t}}function pd(t,e,r,n){return(0,ld.default)(e)(t,(0,fd.default)(r),n)}vr.default=(0,dd.default)(pd,4);Ea.exports=vr.default});var Ma=f((wr,xa)=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});var gd=Un(),md=Sa(gd),yd=Qe(),bd=Sa(yd);function Sa(t){return t&&t.__esModule?t:{default:t}}function _d(t,e,r){return(0,md.default)(t,1,e,r)}wr.default=(0,bd.default)(_d,3);xa.exports=wr.default});var qa=f((Er,Oa)=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.default=xd;var vd=aa(),wd=Ra(vd),Ed=Ma(),Sd=Ra(Ed);function Ra(t){return t&&t.__esModule?t:{default:t}}function xd(t,e){return(0,wd.default)(Sd.default,t,e)}Oa.exports=Er.default});var zn=f((H0,Aa)=>{"use strict";Aa.exports=ge;var Sr=_e().codes,Md=Sr.ERR_METHOD_NOT_IMPLEMENTED,Rd=Sr.ERR_MULTIPLE_CALLBACK,Od=Sr.ERR_TRANSFORM_ALREADY_TRANSFORMING,qd=Sr.ERR_TRANSFORM_WITH_LENGTH_0,xr=De();ze()(ge,xr);function Td(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Rd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ge(t){if(!(this instanceof ge))return new ge(t);xr.call(this,t),this._transformState={afterTransform:Td.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Ad)}function Ad(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Ta(t,e,r)}):Ta(this,null,null)}ge.prototype.push=function(t,e){return this._transformState.needTransform=!1,xr.prototype.push.call(this,t,e)};ge.prototype._transform=function(t,e,r){r(new Md("_transform()"))};ge.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ge.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ge.prototype._destroy=function(t,e){xr.prototype._destroy.call(this,t,function(r){e(r)})};function Ta(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new qd;if(t._transformState.transforming)throw new Od;return t.push(null)}});var Na=f((W0,La)=>{"use strict";La.exports=bt;var ja=zn();ze()(bt,ja);function bt(t){if(!(this instanceof bt))return new bt(t);ja.call(this,t)}bt.prototype._transform=function(t,e,r){r(null,t)}});var ka=f((U0,Ca)=>{"use strict";var Yn;function jd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var $a=_e().codes,Ld=$a.ERR_MISSING_ARGS,Nd=$a.ERR_STREAM_DESTROYED;function Pa(t){if(t)throw t}function Pd(t){return t.setHeader&&typeof t.abort=="function"}function Dd(t,e,r,n){n=jd(n);var i=!1;t.on("close",function(){i=!0}),Yn===void 0&&(Yn=Kt()),Yn(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Pd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new Nd("pipe"))}}}function Da(t){t()}function $d(t,e){return t.pipe(e)}function Cd(t){return!t.length||typeof t[t.length-1]!="function"?Pa:t.pop()}function kd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Cd(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Ld("streams");var i,s=e.map(function(o,a){var u=a<e.length-1,l=a>0;return Dd(o,u,l,function(d){i||(i=d),d&&s.forEach(Da),!u&&(s.forEach(Da),n(i))})});return e.reduce($d)}Ca.exports=kd});var Ce=f((re,vt)=>{var _t=require("stream");process.env.READABLE_STREAM==="disable"&&_t?(vt.exports=_t.Readable,Object.assign(vt.exports,_t),vt.exports.Stream=_t):(re=vt.exports=jn(),re.Stream=_t||re,re.Readable=re,re.Writable=nr(),re.Duplex=De(),re.Transform=zn(),re.PassThrough=Na(),re.finished=Kt(),re.pipeline=ka())});var Xn=f((z0,Fa)=>{var Xe=[],wt=[],Gn=function(){};function Kn(t){return~Xe.indexOf(t)?!1:(Xe.push(t),!0)}function Jn(t){Gn=t}function Id(t){for(var e=[],r=0;r<Xe.length;r++){if(Xe[r].async){e.push(Xe[r]);continue}if(Xe[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(o){return o(t)})).then(function(o){i(o.some(Boolean))})}):!1}function Zn(t){return~wt.indexOf(t)?!1:(wt.push(t),!0)}function Vn(){Gn.apply(Gn,arguments)}function Ia(t){for(var e=0;e<wt.length;e++)t=wt[e].apply(wt[e],arguments);return t}function Qn(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function Fd(t){return t.enabled=!1,t.modify=Zn,t.set=Jn,t.use=Kn,Qn(function(){return!1},t)}function Bd(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Vn.call(Vn,t,Ia(r,t)),!0}return t.enabled=!0,t.modify=Zn,t.set=Jn,t.use=Kn,Qn(e,t)}Fa.exports=function(e){return e.introduce=Qn,e.enabled=Id,e.process=Ia,e.modify=Zn,e.write=Vn,e.nope=Fd,e.yep=Bd,e.set=Jn,e.use=Kn,e}});var Ha=f((Y0,Ba)=>{var Hd=Xn(),Wd=Hd(function t(e,r){return r=r||{},r.namespace=e,r.prod=!0,r.dev=!1,r.force||t.force?t.yep(r):t.nope(r)});Ba.exports=Wd});var Va=f((G0,Ga)=>{"use strict";var ce={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ua=Object.create(null);for(let t in ce)Object.hasOwn(ce,t)&&(Ua[ce[t]]=t);var B={to:{},get:{}};B.get=function(t){let e=t.slice(0,3).toLowerCase(),r,n;switch(e){case"hsl":{r=B.get.hsl(t),n="hsl";break}case"hwb":{r=B.get.hwb(t),n="hwb";break}default:{r=B.get.rgb(t),n="rgb";break}}return r?{model:n,value:r}:null};B.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,r=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],a,u,l;if(a=t.match(r)){for(l=a[2],a=a[1],u=0;u<3;u++){let d=u*2;o[u]=Number.parseInt(a.slice(d,d+2),16)}l&&(o[3]=Number.parseInt(l,16)/255)}else if(a=t.match(e)){for(a=a[1],l=a[3],u=0;u<3;u++)o[u]=Number.parseInt(a[u]+a[u],16);l&&(o[3]=Number.parseInt(l+l,16)/255)}else if(a=t.match(n)){for(u=0;u<3;u++)o[u]=Number.parseInt(a[u+1],10);a[4]&&(o[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(i)){for(u=0;u<3;u++)o[u]=Math.round(Number.parseFloat(a[u+1])*2.55);a[4]&&(o[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(ce,a[1])?(o=ce[a[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=Me(o[u],0,255);return o[3]=Me(o[3],0,1),o};B.get.hsl=function(t){if(!t)return null;let e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){let n=Number.parseFloat(r[4]),i=(Number.parseFloat(r[1])%360+360)%360,s=Me(Number.parseFloat(r[2]),0,100),o=Me(Number.parseFloat(r[3]),0,100),a=Me(Number.isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};B.get.hwb=function(t){if(!t)return null;let e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){let n=Number.parseFloat(r[4]),i=(Number.parseFloat(r[1])%360+360)%360,s=Me(Number.parseFloat(r[2]),0,100),o=Me(Number.parseFloat(r[3]),0,100),a=Me(Number.isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};B.to.hex=function(...t){return"#"+Mr(t[0])+Mr(t[1])+Mr(t[2])+(t[3]<1?Mr(Math.round(t[3]*255)):"")};B.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};B.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"};B.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};B.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};B.to.keyword=function(...t){return Ua[t.slice(0,3)]};function Me(t,e,r){return Math.min(Math.max(e,t),r)}function Mr(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var za={};for(let t of Object.keys(ce))za[ce[t]]=t;var m={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},me=(6/29)**3;function et(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function tt(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(m)){if(!("channels"in m[t]))throw new Error("missing channels property: "+t);if(!("labels"in m[t]))throw new Error("missing channel labels property: "+t);if(m[t].labels.length!==m[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=m[t];delete m[t].channels,delete m[t].labels,Object.defineProperty(m[t],"channels",{value:e}),Object.defineProperty(m[t],"labels",{value:r})}m.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;switch(s){case i:{a=0;break}case e:{a=(r-n)/o;break}case r:{a=2+(n-e)/o;break}case n:{a=4+(e-r)/o;break}}a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};m.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),d=l-Math.min(o,a,u),g=function(p){return(l-p)/6/d+1/2};if(d===0)i=0,s=0;else{switch(s=d/l,e=g(o),r=g(a),n=g(u),l){case o:{i=n-r;break}case a:{i=1/3+e-n;break}case u:{i=2/3+r-e;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,s*100,l*100]};m.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=m.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};m.rgb.oklab=function(t){let e=tt(t[0]/255),r=tt(t[1]/255),n=tt(t[2]/255),i=Math.cbrt(.4122214708*e+.5363325363*r+.0514459929*n),s=Math.cbrt(.2119034982*e+.6806995451*r+.1073969566*n),o=Math.cbrt(.0883024619*e+.2817188376*r+.6299787005*n),a=.2104542553*i+.793617785*s-.0040720468*o,u=1.9779984951*i-2.428592205*s+.4505937099*o,l=.0259040371*i+.7827717662*s-.808675766*o;return[a*100,u*100,l*100]};m.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Ud(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}m.rgb.keyword=function(t){let e=za[t];if(e)return e;let r=Number.POSITIVE_INFINITY,n;for(let i of Object.keys(ce)){let s=ce[i],o=Ud(t,s);o<r&&(r=o,n=i)}return n};m.keyword.rgb=function(t){return ce[t]};m.rgb.xyz=function(t){let e=tt(t[0]/255),r=tt(t[1]/255),n=tt(t[2]/255),i=e*.4124564+r*.3575761+n*.1804375,s=e*.2126729+r*.7151522+n*.072175,o=e*.0193339+r*.119192+n*.9503041;return[i*100,s*100,o*100]};m.rgb.lab=function(t){let e=m.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>me?r**(1/3):7.787*r+16/116,n=n>me?n**(1/3):7.787*n+16/116,i=i>me?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};m.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s;if(r===0)return s=n*255,[s,s,s];let o=n<.5?n*(1+r):n+r-n*r,a=2*n-o,u=[0,0,0];for(let l=0;l<3;l++)i=e+1/3*-(l-1),i<0&&i++,i>1&&i--,6*i<1?s=a+(o-a)*6*i:2*i<1?s=o:3*i<2?s=a+(o-a)*(2/3-i)*6:s=a,u[l]=s*255;return u};m.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};m.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};m.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};m.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let u=r+s*(a-r),l,d,g;switch(o){default:case 6:case 0:{l=a,d=u,g=r;break}case 1:{l=u,d=a,g=r;break}case 2:{l=r,d=a,g=u;break}case 3:{l=r,d=u,g=a;break}case 4:{l=u,d=r,g=a;break}case 5:{l=a,d=r,g=u;break}}return[l*255,d*255,g*255]};m.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};m.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2404542+r*-1.5371385+n*-.4985314,s=e*-.969266+r*1.8760108+n*.041556,o=e*.0556434+r*-.2040259+n*1.0572252,i=et(i),s=et(s),o=et(o),[i*255,s*255,o*255]};m.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>me?e**(1/3):7.787*e+16/116,r=r>me?r**(1/3):7.787*r+16/116,n=n>me?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};m.xyz.oklab=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=Math.cbrt(.8189330101*e+.3618667424*r-.1288597137*n),s=Math.cbrt(.0329845436*e+.9293118715*r+.0361456387*n),o=Math.cbrt(.0482003018*e+.2643662691*r+.633851707*n),a=.2104542553*i+.793617785*s-.0040720468*o,u=1.9779984951*i-2.428592205*s+.4505937099*o,l=.0259040371*i+.7827717662*s-.808675766*o;return[a*100,u*100,l*100]};m.oklab.oklch=function(t){return m.lab.lch(t)};m.oklab.xyz=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=(.999999998*e+.396337792*r+.215803758*n)**3,s=(1.000000008*e-.105561342*r-.063854175*n)**3,o=(1.000000055*e-.089484182*r-1.291485538*n)**3,a=1.227013851*i-.55779998*s+.281256149*o,u=-.040580178*i+1.11225687*s-.071676679*o,l=-.076381285*i-.421481978*s+1.58616322*o;return[a*100,u*100,l*100]};m.oklab.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=(e+.3963377774*r+.2158037573*n)**3,s=(e-.1055613458*r-.0638541728*n)**3,o=(e-.0894841775*r-1.291485548*n)**3,a=et(4.0767416621*i-3.3077115913*s+.2309699292*o),u=et(-1.2684380046*i+2.6097574011*s-.3413193965*o),l=et(-.0041960863*i-.7034186147*s+1.707614701*o);return[a*255,u*255,l*255]};m.oklch.oklab=function(t){return m.lch.lab(t)};m.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,l=o**3;return s=a>me?a:(s-16/116)/7.787,i=u>me?u:(i-16/116)/7.787,o=l>me?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};m.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};m.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};m.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?m.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};m.hsv.ansi16=function(t){return m.rgb.ansi16(m.hsv.rgb(t),t[2])};m.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e>>4===r>>4&&r>>4===n>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};m.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(Math.trunc(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};m.ansi256.rgb=function(t){if(t=t[0],t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};m.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(r.length)+r};m.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=[...r].map(a=>a+a).join(""));let n=Number.parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};m.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u=o<1?s/(1-o):0;return o<=0?a=0:i===e?a=(r-n)/o%6:i===r?a=2+(n-e)/o:a=4+(e-r)/o,a/=6,a%=1,[a*360,o*100,u*100]};m.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};m.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};m.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:{i[0]=1,i[1]=o,i[2]=0;break}case 1:{i[0]=a,i[1]=1,i[2]=0;break}case 2:{i[0]=0,i[1]=1,i[2]=o;break}case 3:{i[0]=0,i[1]=a,i[2]=1;break}case 4:{i[0]=o,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};m.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};m.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};m.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};m.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};m.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};m.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};m.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};m.gray.hsl=function(t){return[0,0,t[0]]};m.gray.hsv=m.gray.hsl;m.gray.hwb=function(t){return[0,100,t[0]]};m.gray.cmyk=function(t){return[0,0,0,t[0]]};m.gray.lab=function(t){return[t[0],0,0]};m.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};m.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function zd(){let t={},e=Object.keys(m);for(let{length:r}=e,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Yd(t){let e=zd(),r=[t];for(e[t].distance=0;r.length>0;){let n=r.pop(),i=Object.keys(m[n]);for(let{length:s}=i,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function Gd(t,e){return function(r){return e(t(r))}}function Vd(t,e){let r=[e[t].parent,t],n=m[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Gd(m[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}function Kd(t){let e=Yd(t),r={},n=Object.keys(e);for(let{length:i}=n,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Vd(o,e))}return r}var H={},Jd=Object.keys(m);function Zd(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Qd(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let{length:s}=i,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}for(let t of Jd){H[t]={},Object.defineProperty(H[t],"channels",{value:m[t].channels}),Object.defineProperty(H[t],"labels",{value:m[t].labels});let e=Kd(t),r=Object.keys(e);for(let n of r){let i=e[n];H[t][n]=Qd(i),H[t][n].raw=Zd(i)}}var Ya=["keyword","gray","hex"],ei={};for(let t of Object.keys(H))ei[[...H[t].labels].sort().join("")]=t;var ti={};function F(t,e){if(!(this instanceof F))return new F(t,e);if(e&&e in Ya&&(e=null),e&&!(e in H))throw new Error("Unknown model: "+e);let r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof F)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let i=B.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=H[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(t.length>0){this.model=e||"rgb",n=H[this.model].channels;let i=Array.prototype.slice.call(t,0,n);this.color=ri(i,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let s=i.sort().join("");if(!(s in ei))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=ei[s];let{labels:o}=H[this.model],a=[];for(r=0;r<o.length;r++)a.push(t[o[r]]);this.color=ri(a)}if(ti[this.model])for(n=H[this.model].channels,r=0;r<n;r++){let i=ti[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}F.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in B.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);let r=e.valpha===1?e.color:[...e.color,this.valpha];return B.to[e.model](...r)},percentString(t){let e=this.rgb().round(typeof t=="number"?t:1),r=e.valpha===1?e.color:[...e.color,this.valpha];return B.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:e}=H[this.model],{labels:r}=H[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new F([...this.color.map(ep(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new F([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:C("rgb",0,I(255)),green:C("rgb",1,I(255)),blue:C("rgb",2,I(255)),hue:C(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:C("hsl",1,I(100)),lightness:C("hsl",2,I(100)),saturationv:C("hsv",1,I(100)),value:C("hsv",2,I(100)),chroma:C("hcg",1,I(100)),gray:C("hcg",2,I(100)),white:C("hwb",1,I(100)),wblack:C("hwb",2,I(100)),cyan:C("cmyk",0,I(100)),magenta:C("cmyk",1,I(100)),yellow:C("cmyk",2,I(100)),black:C("cmyk",3,I(100)),x:C("xyz",0,I(95.047)),y:C("xyz",1,I(100)),z:C("xyz",2,I(108.833)),l:C("lab",0,I(100)),a:C("lab",1),b:C("lab",2),keyword(t){return t!==void 0?new F(t):H[this.model].keyword(this.color)},hex(t){return t!==void 0?new F(t):B.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new F(t);let e=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),B.to.hex(...e)+r},rgbNumber(){let t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){let t=this.rgb().color,e=[];for(let[r,n]of t.entries()){let i=n/255;e[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){let e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){let e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){let t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){let e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){let e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){let e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){let e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){let e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){let e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){let t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return F.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let r=t.rgb(),n=this.rgb(),i=e===void 0?.5:e,s=2*i-1,o=r.alpha()-n.alpha(),a=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-a;return F.rgb(a*r.red()+u*n.red(),a*r.green()+u*n.green(),a*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(let t of Object.keys(H)){if(Ya.includes(t))continue;let{channels:e}=H[t];F.prototype[t]=function(...r){return this.model===t?new F(this):r.length>0?new F(r,t):new F([...tp(H[this.model][t].raw(this.color)),this.valpha],t)},F[t]=function(...r){let n=r[0];return typeof n=="number"&&(n=ri(r,e)),new F(n,t)}}function Xd(t,e){return Number(t.toFixed(e))}function ep(t){return function(e){return Xd(e,t)}}function C(t,e,r){t=Array.isArray(t)?t:[t];for(let n of t)(ti[n]||=[])[e]=r;return t=t[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function I(t){return function(e){return Math.max(0,Math.min(t,e))}}function tp(t){return Array.isArray(t)?t:[t]}function ri(t,e){for(let r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}function rp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var np=function(e){for(var r=0,n=0;r<e.length;n=e.charCodeAt(r++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i},Wa=rp(np);function ip(t,e){let r=t.split(e||":"),n=Wa(r[0]);if(!r.length)return n;for(let i=0,s=r.length-1;i<s;i++)n=F(n).mix(F(Wa(r[i+1]))).saturate(1).hex();return n}Ga.exports=ip});var Ja=f((V0,Ka)=>{"use strict";function se(t,e){if(e)return new se(t).style(e);if(!(this instanceof se))return new se(t);this.text=t}se.prototype.prefix="\x1B[";se.prototype.suffix="m";se.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var r=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(r,16),parseInt(n,16),parseInt(i,16)]};se.prototype.rgb=function(e,r,n){var i=e/255*5,s=r/255*5,o=n/255*5;return this.ansi(i,s,o)};se.prototype.ansi=function(e,r,n){var i=Math.round(e),s=Math.round(r),o=Math.round(n);return 16+i*36+s*6+o};se.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};se.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Ka.exports=se});var Qa=f((K0,Za)=>{var sp=Va(),op=Ja();Za.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?op(n+":",sp(n)):n+":";return e[0]=i+" "+e[0],e}});var eu=f((J0,Xa)=>{"use strict";Xa.exports=function(e,r){if(!r)return!1;for(var n=r.split(/[\s,]+/),i=0;i<n.length;i++){if(r=n[i].replace("*",".*?"),r.charAt(0)==="-"){if(new RegExp("^"+r.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+r+"$").test(e))return!0}return!1}});var ru=f((Z0,tu)=>{var ap=eu();tu.exports=function(e){return function(n){try{return ap(n,e())}catch{}return!1}}});var iu=f((Q0,nu)=>{var up=ru();nu.exports=up(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var ou=f((X0,su)=>{su.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var uu=f((em,au)=>{var lp=Xn(),cp=require("tty").isatty(1),Rr=lp(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:cp,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Rr.modify(Qa());Rr.use(iu());Rr.set(ou());au.exports=Rr});var Et=f((tm,ni)=>{process.env.NODE_ENV==="production"?ni.exports=Ha():ni.exports=uu()});var cu=f((rm,lu)=>{"use strict";var ii=require("fs"),{StringDecoder:fp}=require("string_decoder"),{Stream:hp}=Ce();function dp(){}lu.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new fp("utf8"),i=new hp,s="",o=0,a=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},ii.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):i.emit("error",u),i.destroy();return}(function d(){if(i.destroyed){ii.close(l,dp);return}return ii.read(l,r,0,r.length,o,(g,p)=>{if(g){e?e(g):i.emit("error",g),i.destroy();return}if(!p)return s&&((t.start==null||a>t.start)&&(e?e(null,s):i.emit("line",s)),a++,s=""),setTimeout(d,1e3);let b=n.write(r.slice(0,p));e||i.emit("data",b),b=(s+b).split(/\n+/);let c=b.length-1,y=0;for(;y<c;y++)(t.start==null||a>t.start)&&(e?e(null,b[y]):i.emit("line",b[y])),a++;return s=b[c],o+=p,d()})})()}),e?i.destroy:i}});var pu=f((im,du)=>{"use strict";var Q=require("fs"),W=require("path"),fu=qa(),pp=require("zlib"),{MESSAGE:gp}=k(),{Stream:mp,PassThrough:hu}=Ce(),yp=Je(),oe=Et()("winston:file"),bp=require("os"),_p=cu();du.exports=class extends yp{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${n} together`)})}if(this._stream=new hu,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)r("filename or dirname","stream"),this._basename=this.filename=e.filename?W.basename(e.filename):"winston.log",this.dirname=e.dirname||W.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),r("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=W.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:bp.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,r=()=>{}){if(this.silent)return r(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,r)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,r)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,r)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,r)})});return}}let n=`${e[gp]}${this.eol}`,i=Buffer.byteLength(n);function s(){if(this._size+=i,this._pendingSize-=i,oe("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(n,s.bind(this));return o?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),oe("written",o,this._drain),this.finishIfEnding(),o}query(e,r){typeof e=="function"&&(r=e,e={}),e=g(e);let n=W.join(this.dirname,this.filename),i="",s=[],o=0,a=Q.createReadStream(n,{encoding:"utf8"});a.on("error",p=>{if(a.readable&&a.destroy(),!!r)return p.code!=="ENOENT"?r(p):r(null,s)}),a.on("data",p=>{p=(i+p).split(/\n+/);let b=p.length-1,c=0;for(;c<b;c++)(!e.start||o>=e.start)&&u(p[c]),o++;i=p[b]}),a.on("close",()=>{i&&u(i,!0),e.order==="desc"&&(s=s.reverse()),r&&r(null,s)});function u(p,b){try{let c=JSON.parse(p);d(c)&&l(c)}catch(c){b||a.emit("error",c)}}function l(p){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){a.readable&&a.destroy();return}e.fields&&(p=e.fields.reduce((b,c)=>(b[c]=p[c],b),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(p)}function d(p){if(!p||typeof p!="object")return;let b=new Date(p.timestamp);if(!(e.from&&b<e.from||e.until&&b>e.until||e.level&&e.level!==p.level))return!0}function g(p){return p=p||{},p.rows=p.rows||p.limit||10,p.start=p.start||0,p.until=p.until||new Date,typeof p.until!="object"&&(p.until=new Date(p.until)),p.from=p.from||p.until-1440*60*1e3,typeof p.from!="object"&&(p.from=new Date(p.from)),p.order=p.order||"desc",p}}stream(e={}){let r=W.join(this.dirname,this.filename),n=new mp,i={file:r,start:e.start};return n.destroy=_p(i,(s,o)=>{if(s)return n.emit("error",s);try{n.emit("data",o),o=JSON.parse(o),n.emit("log",o)}catch(a){n.emit("error",a)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,r)=>{if(e)return this.emit("error",e);oe("stat done: %s { size: %s }",this.filename,r),this._size=r,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let r=this._getFile(),n=W.join(this.dirname,r);Q.stat(n,(i,s)=>{if(i&&i.code==="ENOENT")return oe("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return oe(`err ${i.code} ${n}`),e(i);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let r=W.join(this.dirname,this.filename);oe("create stream start",r,this.options);let n=Q.createWriteStream(r,this.options).on("error",i=>oe(i)).on("close",()=>oe("close",n.path,n.bytesWritten)).on("open",()=>{oe("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new hu,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return oe("create stream ok",r),n}_incFile(e){oe("_incFile",this.filename);let r=W.extname(this._basename),n=W.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(W.join(this.dirname,`${n}${o}${r}`),W.join(this.dirname,`${n}${o}${r}.gz`),s)}.bind(this)),i.push(function(s){this.tailable?this._checkMaxFilesTailable(r,n,s):(this._created+=1,this._checkMaxFilesIncrementing(r,n,s))}.bind(this)),fu(i,e)}_getFile(){let e=W.extname(this._basename),r=W.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${n}${e}`:`${r}${e}`}_checkMaxFilesIncrementing(e,r,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,s=i!==0?i:"",o=this.zippedArchive?".gz":"",a=`${r}${s}${e}${o}`,u=W.join(this.dirname,a);Q.unlink(u,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)i.push(function(a,u){let l=`${r}${a-1}${e}${s}`,d=W.join(this.dirname,l);Q.exists(d,g=>{if(!g)return u(null);l=`${r}${a}${e}${s}`,Q.rename(d,W.join(this.dirname,l),u)})}.bind(this,o));fu(i,()=>{Q.rename(W.join(this.dirname,`${r}${e}${s}`),W.join(this.dirname,`${r}1${e}${s}`),n)})}_compressFile(e,r,n){Q.access(e,Q.F_OK,i=>{if(i)return n();var s=pp.createGzip(),o=Q.createReadStream(e),a=Q.createWriteStream(r);a.on("finish",()=>{Q.unlink(e,n)}),o.pipe(s).pipe(a)})}_createLogDirIfNotExist(e){Q.existsSync(e)||Q.mkdirSync(e,{recursive:!0})}}});var mu=f((om,gu)=>{"use strict";var vp=require("http"),wp=require("https"),{Stream:Ep}=Ce(),Sp=Je(),{configure:xp}=ot();gu.exports=class extends Sp{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,r){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),r&&setImmediate(r)}query(e,r){typeof e=="function"&&(r=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(s,o,a)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return r(s);if(typeof a=="string")try{a=JSON.parse(a)}catch(u){return r(u)}r(null,a)})}stream(e={}){let r=new Ep;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,i,n);return r.destroy=()=>o.destroy(),o.on("data",a=>{a=(s+a).split(/\n+/);let u=a.length-1,l=0;for(;l<u;l++)try{r.emit("log",JSON.parse(a[l]))}catch(d){r.emit("error",d)}s=a[u]}),o.on("error",a=>r.emit("error",a)),r}_request(e,r,n,i){e=e||{},r=r||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,r,n):this._doRequest(e,i,r,n)}_doBatch(e,r,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,r,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,r,n)}_doRequest(e,r,n,i){let s=Object.assign({},this.headers);n&&n.bearer&&(s.Authorization=`Bearer ${n.bearer}`);let o=(this.ssl?wp:vp).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:s,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});o.on("error",r),o.on("response",u=>u.on("end",()=>r(null,u)).resume());let a=xp({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var si=f((am,yu)=>{"use strict";var fe=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";fe.writable=t=>fe(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";fe.readable=t=>fe(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";fe.duplex=t=>fe.writable(t)&&fe.readable(t);fe.transform=t=>fe.duplex(t)&&typeof t._transform=="function";yu.exports=fe});var _u=f((lm,bu)=>{"use strict";var Mp=si(),{MESSAGE:Rp}=k(),Op=require("os"),qp=Je();bu.exports=class extends qp{constructor(e={}){if(super(e),!e.stream||!Mp(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:Op.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[Rp]}${this.eol}`),r&&r()}}});var vu=f(St=>{"use strict";Object.defineProperty(St,"Console",{configurable:!0,enumerable:!0,get(){return Yo()}});Object.defineProperty(St,"File",{configurable:!0,enumerable:!0,get(){return pu()}});Object.defineProperty(St,"Http",{configurable:!0,enumerable:!0,get(){return mu()}});Object.defineProperty(St,"Stream",{configurable:!0,enumerable:!0,get(){return _u()}})});var qr=f(xt=>{"use strict";var Or=an(),{configs:oi}=k();xt.cli=Or.levels(oi.cli);xt.npm=Or.levels(oi.npm);xt.syslog=Or.levels(oi.syslog);xt.addColors=Or.levels});var Eu=f((Tr,wu)=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});var Tp=ar(),Ap=ke(Tp),jp=yr(),Lp=ke(jp),Np=Un(),Pp=ke(Np),Dp=Bn(),$p=ke(Dp),Cp=Hn(),kp=ke(Cp),Ip=$e(),Fp=ke(Ip),Bp=Qe(),Hp=ke(Bp);function ke(t){return t&&t.__esModule?t:{default:t}}function Wp(t,e,r){r=(0,$p.default)(r);var n=0,i=0,{length:s}=t,o=!1;s===0&&r(null);function a(u,l){u===!1&&(o=!0),o!==!0&&(u?r(u):(++i===s||l===Lp.default)&&r(null))}for(;n<s;n++)e(t[n],n,(0,kp.default)(a))}function Up(t,e,r){return(0,Pp.default)(t,1/0,e,r)}function zp(t,e,r){var n=(0,Ap.default)(t)?Wp:Up;return n(t,(0,Fp.default)(e),r)}Tr.default=(0,Hp.default)(zp,3);wu.exports=Tr.default});var xu=f((Ar,Su)=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.default=Yp;function Yp(t){return(e,r,n)=>t(e,n)}Su.exports=Ar.default});var Nr=f((Lr,Mu)=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});var Gp=Eu(),Vp=jr(Gp),Kp=xu(),Jp=jr(Kp),Zp=$e(),Qp=jr(Zp),Xp=Qe(),eg=jr(Xp);function jr(t){return t&&t.__esModule?t:{default:t}}function tg(t,e,r){return(0,Vp.default)(t,(0,Jp.default)((0,Qp.default)(e)),r)}Lr.default=(0,eg.default)(tg,3);Mu.exports=Lr.default});var Ou=f((hm,Ru)=>{"use strict";var rg=Object.prototype.toString;Ru.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var r=e.toString(),n=rg.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var ai=f((dm,qu)=>{"use strict";var ng=Ou();qu.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=ng(e),i}});var ui=f(Rt=>{Rt.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(r,t||Rt.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Rt.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
|
|
27
|
+
`).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var s=null,o=null,a=null,u=null,l=null,d=i[5]==="native";if(i[1]){a=i[1];var g=a.lastIndexOf(".");if(a[g-1]=="."&&g--,g>0){s=a.substr(0,g),o=a.substr(g+1);var p=s.indexOf(".Module");p>0&&(a=a.substr(p+1),s=s.substr(0,p))}u=null}o&&(u=s,l=o),o==="<anonymous>"&&(l=null,a=null);var b={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:a,typeName:u,methodName:l,columnNumber:parseInt(i[4],10)||null,native:d};return e._createParsedCallSite(b)}}).filter(function(n){return!!n})};function Mt(t){for(var e in t)this[e]=t[e]}var ig=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],sg=["topLevel","eval","native","constructor"];ig.forEach(function(t){Mt.prototype[t]=null,Mt.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});sg.forEach(function(t){Mt.prototype[t]=!1,Mt.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Rt._createParsedCallSite=function(t){return new Mt(t)}});var Au=f((mm,Tu)=>{"use strict";var{Writable:og}=Ce();Tu.exports=class extends og{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,r,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var ci=f((bm,Nu)=>{"use strict";var ju=require("os"),ag=Nr(),li=Et()("winston:exception"),ug=ai(),Lu=ui(),lg=Au();Nu.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
|
28
|
+
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:ju.loadavg(),uptime:ju.uptime()}}getTrace(e){return(e?Lu.parse(e):Lu.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let r=new lg(e);this.handlers.set(e,r),this.logger.pipe(r)}}_uncaughtException(e){let r=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function o(){li("doExit",i),li("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);ag(n,(a,u)=>{let l=ug(u),d=a.transport||a;function g(p){return()=>{li(p),l()}}d._ending=!0,d.once("finish",g("finished")),d.once("error",g("error"))},()=>i&&o()),this.logger.log(r),i&&(s=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var Du=f((vm,Pu)=>{"use strict";var{Writable:cg}=Ce();Pu.exports=class extends cg{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,r,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var hi=f((Em,ku)=>{"use strict";var $u=require("os"),fg=Nr(),fi=Et()("winston:rejection"),hg=ai(),Cu=ui(),dg=Du();ku.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
|
29
|
+
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:$u.loadavg(),uptime:$u.uptime()}}getTrace(e){return(e?Cu.parse(e):Cu.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let r=new dg(e);this.handlers.set(e,r),this.logger.pipe(r)}}_unhandledRejection(e){let r=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function o(){fi("doExit",i),fi("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);fg(n,(a,u)=>{let l=hg(u),d=a.transport||a;function g(p){return()=>{fi(p),l()}}d._ending=!0,d.once("finish",g("finished")),d.once("error",g("error"))},()=>i&&o()),this.logger.log(r),i&&(s=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var Fu=f((Sm,Iu)=>{"use strict";var di=class{constructor(e){let r=Pr();if(typeof e!="object"||Array.isArray(e)||!(e instanceof r))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let r=typeof e[e.length-1]=="object"?e.pop():{};return r.level=r.level||"info",r.durationMs=Date.now()-this.start,this.logger.write(r)}};Iu.exports=di});var Pr=f((xm,Uu)=>{"use strict";var{Stream:pg,Transform:gg}=Ce(),Bu=Nr(),{LEVEL:he,SPLAT:Hu}=k(),Wu=si(),mg=ci(),yg=hi(),bg=kn(),_g=Fu(),{warn:vg}=un(),wg=qr(),Eg=/%[scdjifoO%]/g,Dr=class extends gg{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let r=this;return Object.create(r,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),r.write(i)}}})}configure({silent:e,format:r,defaultMeta:n,levels:i,level:s="info",exitOnError:o=!0,transports:a,colors:u,emitErrs:l,formatters:d,padLevels:g,rewriters:p,stripColors:b,exceptionHandlers:c,rejectionHandlers:y}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||tn()(),this.defaultMeta=n||null,this.levels=i||this.levels||wg.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new mg(this),this.rejections=new yg(this),this.profilers={},this.exitOnError=o,a&&(a=Array.isArray(a)?a:[a],a.forEach(w=>this.add(w))),u||l||d||g||p||b)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
30
|
+
`));c&&this.exceptions.handle(c),y&&this.rejections.handle(y)}getHighestLogLevel(){let e=Ot(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((r,n)=>{let i=Ot(this.levels,n.level);return i!==null&&i>r?i:r},e)}isLevelEnabled(e){let r=Ot(this.levels,e);if(r===null)return!1;let n=Ot(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(s=>{let o=Ot(this.levels,s.level);return o===null&&(o=n),o>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[he]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[he]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[he]:e,level:e,message:r},this._addDefaultMeta(r),this.write(r),this);let[i]=n;if(typeof i=="object"&&i!==null&&!(r&&r.match&&r.match(Eg))){let o=Object.assign({},this.defaultMeta,i,{[he]:e,[Hu]:n,level:e,message:r});return i.message&&(o.message=`${o.message} ${i.message}`),i.stack&&(o.stack=i.stack),i.cause&&(o.cause=i.cause),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[he]:e,[Hu]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[he]||(e[he]=e.level),!this.levels[e[he]]&&this.levels[e[he]]!==0&&console.error("[winston] Unknown logger level: %s",e[he]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){let r=this.transports.slice();Bu(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!Wu(e)||e.log.length>2?new bg({transport:e}):e;if(!r._writableState||!r._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",r),this._onEvent("warn",r),this.pipe(r),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let r=e;return(!Wu(e)||e.log.length>2)&&(r=this.transports.filter(n=>n.transport===e)[0]),r&&this.unpipe(r),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){vg.deprecated("setLevels")}query(e,r){typeof e=="function"&&(r=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function s(a,u){e.query&&typeof a.formatQuery=="function"&&(e.query=a.formatQuery(i)),a.query(e,(l,d)=>{if(l)return u(l);typeof a.formatResults=="function"&&(d=a.formatResults(d,e.format)),u(null,d)})}function o(a,u){s(a,(l,d)=>{u&&(d=l||d,d&&(n[a.name]=d),u()),u=null})}Bu(this.transports.filter(a=>!!a.query),o,()=>r(null,n))}stream(e={}){let r=new pg,n=[];return r._streams=n,r.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let s=i.stream(e);s&&(n.push(s),s.on("log",o=>{o.transport=o.transport||[],o.transport.push(i.name),r.emit("log",o)}),s.on("error",o=>{o.transport=o.transport||[],o.transport.push(i.name),r.emit("error",o)}))}),r}startTimer(){return new _g(this)}profile(e,...r){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof r[r.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),r.pop());let s=typeof r[r.length-1]=="object"?r.pop():{};return s.level=s.level||"info",s.durationMs=n-i,s.message=s.message||e,this.write(s)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
31
|
+
`))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Ot(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Dr.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});Uu.exports=Dr});var pi=f((Mm,zu)=>{"use strict";var{LEVEL:Sg}=k(),xg=qr(),Mg=Pr(),Rg=Et()("winston:create-logger");function Og(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}zu.exports=function(t={}){t.levels=t.levels||xg.npm.levels;class e extends Mg{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(Rg('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let s=this||r;if(i.length===1){let[o]=i,a=o&&o.message&&o||{message:o};return a.level=a[Sg]=n,s._addDefaultMeta(a),s.write(a),this||r}return i.length===0?(s.log(n,""),s):s.log(n,...i)},e.prototype[Og(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var Gu=f((Om,Yu)=>{"use strict";var qg=pi();Yu.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,r){if(!this.loggers.has(e)){r=Object.assign({},r||this.options);let n=r.transports||this.options.transports;n?r.transports=Array.isArray(n)?n.slice():[n]:r.transports=[];let i=qg(r);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,r){return this.add(e,r)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((r,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var Ku=f(j=>{"use strict";var Vu=an(),{warn:qt}=un();j.version=Ws().version;j.transports=vu();j.config=qr();j.addColors=Vu.levels;j.format=Vu.format;j.createLogger=pi();j.Logger=Pr();j.ExceptionHandler=ci();j.RejectionHandler=hi();j.Container=Gu();j.Transport=Je();j.loggers=new j.Container;var de=j.createLogger();Object.keys(j.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>j[t]=(...e)=>de[t](...e));Object.defineProperty(j,"level",{get(){return de.level},set(t){de.level=t}});Object.defineProperty(j,"exceptions",{get(){return de.exceptions}});Object.defineProperty(j,"rejections",{get(){return de.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(j,t,{get(){return de[t]},set(e){de[t]=e}})});Object.defineProperty(j,"default",{get(){return{exceptionHandlers:de.exceptionHandlers,rejectionHandlers:de.rejectionHandlers,transports:de.transports}}});qt.deprecated(j,"setLevels");qt.forFunctions(j,"useFormat",["cli"]);qt.forProperties(j,"useFormat",["padLevels","stripColors"]);qt.forFunctions(j,"deprecated",["addRewriter","addFilter","clone","extend"]);qt.forProperties(j,"deprecated",["emitErrs","levelLength"])});var Lg={};ul(Lg,{default:()=>jg});module.exports=cl(Lg);var U=ll(Ku());function Ju(t){let e=U.format.printf(({message:a,timestamp:u,metadata:l})=>{let{previousToken:d,nextToken:g,line:p}=l,b=p?`(line ${p})`:"";return`${u} ${a}: ${d} \u2192 ${g} ${b}`}),r=U.format.printf(({level:a,message:u,timestamp:l,failureReason:d,metadata:g})=>{let{previousToken:p,description:b}=g,c=b||d||"";return`${l} [${a.toUpperCase()}]: ${u}
|
|
32
|
+
\u21B3 reason: ${p} ${c}`}),n=U.format.printf(({level:a,message:u,timestamp:l})=>`${l} [${a.toUpperCase()}]: ${u}`),i=(0,U.format)(a=>{let u=a.metadata;return(u==null?void 0:u.status)==="success"?a:!1}),s=(0,U.format)(a=>{let u=a.metadata;return(u==null?void 0:u.status)==="failure"||(u==null?void 0:u.status)==="warning"?a:!1}),o=(0,U.createLogger)({level:"debug",transports:[new U.transports.File({filename:`.report/${t}-success.log`,format:U.format.combine(i(),U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),e)}),new U.transports.File({filename:`.report/${t}-issues.log`,format:U.format.combine(s(),U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),r)}),new U.transports.File({filename:`.report/${t}-debug.log`,level:"debug",format:U.format.combine(U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),n)})]});return{logger:o,logTransformResult(a,u){let{status:l,failureReason:d,needsVerification:g,description:p,previousToken:b,nextToken:c}=u,y=l==="success"?"info":l==="warning"?"warn":"error",w=u.line?`(line: ${u.line})`:"";o.log({level:y,message:`${a} ${w}`,...d&&{failureReason:d},...p&&{description:p},metadata:u}),g&&l==="success"&&o.log({level:"warn",message:`${a} ${w}`,metadata:{previousToken:b,nextToken:c,status:"warning",description:p||"\uC0AC\uC6A9 \uD655\uC778 \uD544\uC694\uD55C \uD1A0\uD070\uC785\uB2C8\uB2E4",needsVerification:!0,line:u.line}})},startFile(a){o.debug(`Starting transformation of ${a}`)},finishFile(a){o.debug(`Finished transformation of ${a}`)}}}function gi(t){let e=[],r=t.node;for(;r.type==="MemberExpression";)r.property.type==="Identifier"&&e.unshift(r.property.name),r=r.object;return r.type==="Identifier"&&e.unshift(r.name),e.join(".")}function Zu(t,e){let r=e.split("."),n=t.identifier(r[0]);for(let i=1;i<r.length;i++)n=t.memberExpression(n,t.identifier(r[i]));return n}var ye=Ju("replace-alpha-color"),Qu=[{from:"staticBlackAlpha500",to:"staticBlackAlpha700",cssFrom:"static-black-alpha-500",cssTo:"static-black-alpha-700"},{from:"staticBlackAlpha200",to:"staticBlackAlpha500",cssFrom:"static-black-alpha-200",cssTo:"static-black-alpha-500"},{from:"staticBlackAlpha50",to:"staticBlackAlpha200",cssFrom:"static-black-alpha-50",cssTo:"static-black-alpha-200"},{from:"staticWhiteAlpha200",to:"staticWhiteAlpha300",cssFrom:"static-white-alpha-200",cssTo:"static-white-alpha-300"}],Tg=(t,e)=>{var s;if((s=t.path)!=null&&s.endsWith(".css"))return Ag(t.source,t.path);let r=e.jscodeshift,n=r(t.source);ye.startFile(t.path);let i=!1;return n.find(r.MemberExpression).filter(o=>{let a=gi(o);return a.startsWith("vars.$color.palette.static")&&a.includes("Alpha")}).forEach(o=>{var d;let a=gi(o),u=(d=o.node.loc)==null?void 0:d.start.line,l=a.split(".").pop();if(l){for(let g of Qu)if(l===g.from){let p=`vars.$color.palette.${g.to}`,b=Zu(r,p);o.replace(b),i=!0,ye.logTransformResult(t.path,{previousToken:a,nextToken:p,line:u,status:"success"});break}}}),ye.finishFile(t.path),i?n.toSource():null};function Ag(t,e){ye.startFile(e);try{let r=t,n=!1;for(let i of Qu){let s=`var(--seed-color-palette-${i.cssFrom})`,o=`var(--seed-color-palette-${i.cssTo})`,a=new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");r.match(a)&&(r=r.replace(a,o),n=!0,ye.logTransformResult(e,{previousToken:s,nextToken:o,status:"success"}))}return n||ye.logTransformResult(e,{previousToken:"No alpha color variables found",nextToken:null,status:"warning"}),ye.finishFile(e),r}catch(r){return ye.logTransformResult(e,{previousToken:`Error processing CSS file: ${r.message}`,nextToken:null,status:"failure",failureReason:r.message}),ye.finishFile(e),t}}var jg=Tg;
|
|
33
33
|
/*! Bundled license information:
|
|
34
34
|
|
|
35
35
|
safe-buffer/index.js:
|