@mservices-tech/scripts 3.2.2 → 3.2.3-scripts-release-refactor-rc.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/README.md +4 -4
- package/buildUsingEsbuild/buildUsingEsbuild.js +32 -33
- package/bump_version/.versionrc.js +1 -1
- package/copy_package_build_to_project/copy_package_build_to_project.sh +1 -1
- package/generateIndexFilesFromTemplate/generateIndexFilesFromTemplate.js +116 -117
- package/package.json +1 -1
- package/removeGitHashesFromMarkdownFile/removeGitHashesFromMarkdownFile.js +32 -33
- package/runShellScript/runShellScript.js +32 -33
- package/testIncorrectValues/testIncorrectValues.js +35 -35
- package/utils.sh +3 -3
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var
|
|
2
|
+
"use strict";var Bl=Object.create;var Wi=Object.defineProperty;var Hl=Object.getOwnPropertyDescriptor;var Wl=Object.getOwnPropertyNames;var Ul=Object.getPrototypeOf,Gl=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Yl=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Wl(e))!Gl.call(t,i)&&i!==r&&Wi(t,i,{get:()=>e[i],enumerable:!(n=Hl(e,i))||n.enumerable});return t};var Le=(t,e,r)=>(r=t!=null?Bl(Ul(t)):{},Yl(e||!t||!t.__esModule?Wi(r,"default",{value:t,enumerable:!0}):r,t));var Q=f((V0,rs)=>{"use strict";var sn=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
3
3
|
Found: ${e.toString().split(`
|
|
4
4
|
`)[0]}
|
|
5
|
-
`),Error.captureStackTrace(this,t)}};
|
|
6
|
-
`)!=-1,n=this._styles,i=n.length;i--;){var s=Ne[n[i]];e=s.open+e.replace(s.closeRe,s.open)+s.close,r&&(e=e.replace(
|
|
7
|
-
`));return!0}
|
|
8
|
-
${
|
|
9
|
-
${
|
|
10
|
-
${
|
|
11
|
-
${
|
|
12
|
-
${
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
${
|
|
20
|
-
${
|
|
21
|
-
${
|
|
22
|
-
${
|
|
23
|
-
${
|
|
24
|
-
${
|
|
25
|
-
${_}`),m.pop(),`{${j}}`}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 d(v,f,m){switch(typeof f){case"string":return Me(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(v),typeof f!="object")return d(v,f,m);if(f===null)return"null"}if(m.indexOf(f)!==-1)return r;let E="",y=f.length!==void 0;if(y&&Array.isArray(f)){if(f.length===0)return"[]";if(a<m.length+1)return'"[Array]"';m.push(f);let j=Math.min(f.length,o),R=0;for(;R<j-1;R++){let M=d(String(R),f[R],m);E+=M!==void 0?M:"null",E+=","}let P=d(String(R),f[R],m);if(E+=P!==void 0?P:"null",f.length-1>o){let M=f.length-o-1;E+=`,"... ${Fe(M)} not stringified"`}return m.pop(),`[${E}]`}let _=Object.keys(f),b=_.length;if(b===0)return"{}";if(a<m.length+1)return'"[Object]"';let w="",q=Math.min(b,o);y&&Ln(f)&&(E+=va(f,",",o),_=_.slice(f.length),q-=f.length,w=","),i&&(_=jn(_,s)),m.push(f);for(let j=0;j<q;j++){let R=_[j],P=d(R,f[R],m);P!==void 0&&(E+=`${w}${Me(R)}:${P}`,w=",")}if(b>o){let j=b-o;E+=`${w}"...":"${Fe(j)} not stringified"`}return m.pop(),`{${E}}`}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){if(arguments.length>1){let E="";if(typeof m=="number"?E=" ".repeat(Math.min(m,10)):typeof m=="string"&&(E=m.slice(0,10)),f!=null){if(typeof f=="function")return u("",{"":v},[],f,E,"");if(Array.isArray(f))return l("",v,[],ih(f),E,"")}if(E.length!==0)return h("",v,[],E,"")}return d("",v,[])}return g}});var Dn=c((_1,wa)=>{"use strict";var ah=ee(),{MESSAGE:oh}=W(),uh=wt();function lh(t,e){return typeof e=="bigint"?e.toString():e}wa.exports=ah((t,e)=>{let r=uh.configure(e);return t[oh]=r(t,e.replacer||lh,e.space),t})});var Ea=c((E1,_a)=>{"use strict";var fh=ee();_a.exports=fh((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var xa=c((S1,Sa)=>{"use strict";var ch=ee(),{MESSAGE:hh}=W(),dh=wt();Sa.exports=ch(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[hh]=dh(e),t})});var Ma=c((x1,Oa)=>{"use strict";var ph=ee();function gh(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 mh(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}Oa.exports=ph((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?gh(t,n,r):e.fillWith?mh(t,e.fillWith,r):t})});var Ta=c((O1,Ra)=>{var et=1e3,tt=et*60,rt=tt*60,$e=rt*24,vh=$e*7,yh=$e*365.25;Ra.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return bh(t);if(r==="number"&&isFinite(t))return e.long?_h(t):wh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function bh(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*yh;case"weeks":case"week":case"w":return r*vh;case"days":case"day":case"d":return r*$e;case"hours":case"hour":case"hrs":case"hr":case"h":return r*rt;case"minutes":case"minute":case"mins":case"min":case"m":return r*tt;case"seconds":case"second":case"secs":case"sec":case"s":return r*et;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wh(t){var e=Math.abs(t);return e>=$e?Math.round(t/$e)+"d":e>=rt?Math.round(t/rt)+"h":e>=tt?Math.round(t/tt)+"m":e>=et?Math.round(t/et)+"s":t+"ms"}function _h(t){var e=Math.abs(t);return e>=$e?lr(t,e,$e,"day"):e>=rt?lr(t,e,rt,"hour"):e>=tt?lr(t,e,tt,"minute"):e>=et?lr(t,e,et,"second"):t+" ms"}function lr(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var qa=c((_t,Aa)=>{"use strict";var Eh=ee(),Sh=Ta();Aa.exports=Eh(t=>{let e=+new Date;return _t.diff=e-(_t.prevTime||e),_t.prevTime=e,t.ms=`+${Sh(_t.diff)}`,t})});var ja=c((M1,Ca)=>{"use strict";var xh=require("util").inspect,Oh=ee(),{LEVEL:Mh,MESSAGE:Pa,SPLAT:Rh}=W();Ca.exports=Oh((t,e={})=>{let r=Object.assign({},t);return delete r[Mh],delete r[Pa],delete r[Rh],t[Pa]=xh(r,!1,e.depth||null,e.colorize),t})});var La=c((R1,cr)=>{"use strict";var{MESSAGE:Th}=W(),fr=class{constructor(e){this.template=e}transform(e){return e[Th]=this.template(e),e}};cr.exports=t=>new fr(t);cr.exports.Printf=cr.exports.Format=fr});var Da=c((T1,Fa)=>{"use strict";var Ah=ee(),{MESSAGE:Na}=W(),qh=wt();Fa.exports=Ah(t=>{let e=qh(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Na]=`${t.level}:${r} ${t.message} ${e}`:t[Na]=`${t.level}:${r} ${t.message}`,t})});var Ia=c((A1,ka)=>{"use strict";var Ph=require("util"),{SPLAT:$a}=W(),Ch=/%[scdjifoO%]/g,jh=/%%/g,$n=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[$a]||e.splat||[],s=n.match(jh),a=s&&s.length||0,u=r.length-a-i.length,l=u<0?i.splice(u,-1*u):[],h=l.length;if(h)for(let d=0;d<h;d++)Object.assign(e,l[d]);return e.message=Ph.format(n,...i),e}transform(e){let r=e.message,n=e[$a]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(Ch);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}};ka.exports=t=>new $n(t)});var Ga=c((hr,Ba)=>{(function(t,e){typeof hr=="object"&&typeof Ba<"u"?e(hr):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(hr,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(p,S){for(var L=[],Y=0,O=p.length;Y<O;Y++)L.push(p[Y].substr(0,S));return L}var l=function(p){return function(S,L){var Y=L[p].map(function(re){return re.toLowerCase()}),O=Y.indexOf(S.toLowerCase());return O>-1?O:null}};function h(p){for(var S=[],L=1;L<arguments.length;L++)S[L-1]=arguments[L];for(var Y=0,O=S;Y<O.length;Y++){var re=O[Y];for(var le in re)p[le]=re[le]}return p}var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"],v=u(g,3),f=u(d,3),m={dayNamesShort:f,dayNames:d,monthNamesShort:v,monthNames:g,amPm:["am","pm"],DoFn:function(p){return p+["th","st","nd","rd"][p%10>3?0:(p-p%10!==10?1:0)*p%10]}},E=h({},m),y=function(p){return E=h(E,p)},_=function(p){return p.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(p,S){for(S===void 0&&(S=2),p=String(p);p.length<S;)p="0"+p;return p},w={D:function(p){return String(p.getDate())},DD:function(p){return b(p.getDate())},Do:function(p,S){return S.DoFn(p.getDate())},d:function(p){return String(p.getDay())},dd:function(p){return b(p.getDay())},ddd:function(p,S){return S.dayNamesShort[p.getDay()]},dddd:function(p,S){return S.dayNames[p.getDay()]},M:function(p){return String(p.getMonth()+1)},MM:function(p){return b(p.getMonth()+1)},MMM:function(p,S){return S.monthNamesShort[p.getMonth()]},MMMM:function(p,S){return S.monthNames[p.getMonth()]},YY:function(p){return b(String(p.getFullYear()),4).substr(2)},YYYY:function(p){return b(p.getFullYear(),4)},h:function(p){return String(p.getHours()%12||12)},hh:function(p){return b(p.getHours()%12||12)},H:function(p){return String(p.getHours())},HH:function(p){return b(p.getHours())},m:function(p){return String(p.getMinutes())},mm:function(p){return b(p.getMinutes())},s:function(p){return String(p.getSeconds())},ss:function(p){return b(p.getSeconds())},S:function(p){return String(Math.round(p.getMilliseconds()/100))},SS:function(p){return b(Math.round(p.getMilliseconds()/10),2)},SSS:function(p){return b(p.getMilliseconds(),3)},a:function(p,S){return p.getHours()<12?S.amPm[0]:S.amPm[1]},A:function(p,S){return p.getHours()<12?S.amPm[0].toUpperCase():S.amPm[1].toUpperCase()},ZZ:function(p){var S=p.getTimezoneOffset();return(S>0?"-":"+")+b(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4)},Z:function(p){var S=p.getTimezoneOffset();return(S>0?"-":"+")+b(Math.floor(Math.abs(S)/60),2)+":"+b(Math.abs(S)%60,2)}},q=function(p){return+p-1},j=[null,r],R=[null,a],P=["isPm",a,function(p,S){var L=p.toLowerCase();return L===S.amPm[0]?0:L===S.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(p){var S=(p+"").match(/([+-]|\d\d)/gi);if(S){var L=+S[1]*60+parseInt(S[2],10);return S[0]==="+"?L:-L}return 0}],$={D:["day",r],DD:["day",n],Do:["day",r+a,function(p){return parseInt(p,10)}],M:["month",r,q],MM:["month",n,q],YY:["year",n,function(p){var S=new Date,L=+(""+S.getFullYear()).substr(0,2);return+(""+(+p>68?L-1:L)+p)}],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(p){return+p*100}],SS:["millisecond",n,function(p){return+p*10}],SSS:["millisecond",i],d:j,dd:j,ddd:R,dddd:R,MMM:["month",a,l("monthNamesShort")],MMMM:["month",a,l("monthNames")],a:P,A:P,ZZ:M,Z:M},B={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"},G=function(p){return h(B,p)},U=function(p,S,L){if(S===void 0&&(S=B.default),L===void 0&&(L={}),typeof p=="number"&&(p=new Date(p)),Object.prototype.toString.call(p)!=="[object Date]"||isNaN(p.getTime()))throw new Error("Invalid Date pass to format");S=B[S]||S;var Y=[];S=S.replace(o,function(re,le){return Y.push(le),"@@@"});var O=h(h({},E),L);return S=S.replace(e,function(re){return w[re](p,O)}),S.replace(/@@@/g,function(){return Y.shift()})};function Z(p,S,L){if(L===void 0&&(L={}),typeof S!="string")throw new Error("Invalid format in fecha parse");if(S=B[S]||S,p.length>1e3)return null;var Y=new Date,O={year:Y.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},re=[],le=[],pt=S.replace(o,function(gt,Je){return le.push(_(Je)),"@@@"}),Vt={},ls={};pt=_(pt).replace(e,function(gt){var Je=$[gt],pn=Je[0],hc=Je[1],ds=Je[3];if(Vt[pn])throw new Error("Invalid format. "+pn+" specified twice in format");return Vt[pn]=!0,ds&&(ls[ds]=!0),re.push(Je),"("+hc+")"}),Object.keys(ls).forEach(function(gt){if(!Vt[gt])throw new Error("Invalid format. "+gt+" is required in specified format")}),pt=pt.replace(/@@@/g,function(){return le.shift()});var Kt=p.match(new RegExp(pt,"i"));if(!Kt)return null;for(var lc=h(h({},E),L),fe=1;fe<Kt.length;fe++){var fs=re[fe-1],fc=fs[0],cs=fs[2],hs=cs?cs(Kt[fe],lc):+Kt[fe];if(hs==null)return null;O[fc]=hs}O.isPm===1&&O.hour!=null&&+O.hour!=12?O.hour=+O.hour+12:O.isPm===0&&+O.hour==12&&(O.hour=0);var Jt;if(O.timezoneOffset==null){Jt=new Date(O.year,O.month,O.day,O.hour,O.minute,O.second,O.millisecond);for(var Zt=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],fe=0,cc=Zt.length;fe<cc;fe++)if(Vt[Zt[fe][0]]&&O[Zt[fe][0]]!==Jt[Zt[fe][1]]())return null}else if(Jt=new Date(Date.UTC(O.year,O.month,O.day,O.hour,O.minute-O.timezoneOffset,O.second,O.millisecond)),O.month>11||O.month<0||O.day>31||O.day<1||O.hour>23||O.hour<0||O.minute>59||O.minute<0||O.second>59||O.second<0)return null;return Jt}var me={format:U,parse:Z,defaultI18n:m,setGlobalDateI18n:y,setGlobalDateMasks:G};t.assign=h,t.default=me,t.format=U,t.parse=Z,t.defaultI18n=m,t.setGlobalDateI18n=y,t.setGlobalDateMasks=G,Object.defineProperty(t,"__esModule",{value:!0})})});var Ha=c((q1,Wa)=>{"use strict";var Lh=Ga(),Nh=ee();Wa.exports=Nh((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():Lh.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var za=c((P1,Ua)=>{"use strict";var kn=_n(),Fh=ee(),{MESSAGE:In}=W();Ua.exports=Fh((t,e)=>(e.level!==!1&&(t.level=kn.strip(t.level)),e.message!==!1&&(t.message=kn.strip(String(t.message))),e.raw!==!1&&t[In]&&(t[In]=kn.strip(String(t[In]))),t))});var Gn=c(Bn=>{"use strict";var Dh=Bn.format=ee();Bn.levels=oa();function K(t,e){Object.defineProperty(Dh,t,{get(){return e()},configurable:!0})}K("align",function(){return la()});K("errors",function(){return ha()});K("cli",function(){return pa()});K("combine",function(){return ma()});K("colorize",function(){return sr()});K("json",function(){return Dn()});K("label",function(){return Ea()});K("logstash",function(){return xa()});K("metadata",function(){return Ma()});K("ms",function(){return qa()});K("padLevels",function(){return qn()});K("prettyPrint",function(){return ja()});K("printf",function(){return La()});K("simple",function(){return Da()});K("splat",function(){return Ia()});K("timestamp",function(){return Ha()});K("uncolorize",function(){return za()})});var Wn=c(dr=>{"use strict";var{format:Ya}=require("util");dr.warn={deprecated(t){return()=>{throw new Error(Ya("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([Ya("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
26
|
-
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=dr.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=dr.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Va=c((L1,$h)=>{$h.exports={name:"winston",description:"A logger for just about everything.",version:"3.12.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.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.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:"^15.1.0",rimraf:"^5.0.5",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 Ja=c((N1,Ka)=>{Ka.exports=require("util").deprecate});var Hn=c((F1,Za)=>{Za.exports=require("stream")});var zn=c((D1,Xa)=>{"use strict";function kh(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(Un,this,t)):process.nextTick(Un,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(pr,r):(r._writableState.errorEmitted=!0,process.nextTick(Qa,r,s)):process.nextTick(Qa,r,s):e?(process.nextTick(pr,r),e(s)):process.nextTick(pr,r)}),this)}function Qa(t,e){Un(t,e),pr(t)}function pr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Ih(){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 Un(t,e){t.emit("error",e)}function Bh(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Xa.exports={destroy:kh,undestroy:Ih,errorOrDestroy:Bh}});var Re=c(($1,ro)=>{"use strict";var to={};function oe(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,to[t]=i}function eo(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 Gh(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Wh(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Hh(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}oe("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);oe("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Gh(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Wh(t," argument"))i=`The ${t} ${n} ${eo(e,"type")}`;else{let s=Hh(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${eo(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);oe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");oe("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});oe("ERR_STREAM_PREMATURE_CLOSE","Premature close");oe("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});oe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");oe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");oe("ERR_STREAM_WRITE_AFTER_END","write after end");oe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);oe("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);oe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ro.exports.codes=to});var Yn=c((k1,no)=>{"use strict";var Uh=Re().codes.ERR_INVALID_OPT_VALUE;function zh(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Yh(t,e,r,n){var i=zh(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Uh(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}no.exports={getHighWaterMark:Yh}});var io=c((I1,Vn)=>{typeof Object.create=="function"?Vn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Vn.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 nt=c((B1,Jn)=>{try{if(Kn=require("util"),typeof Kn.inherits!="function")throw"";Jn.exports=Kn.inherits}catch{Jn.exports=io()}var Kn});var fo=c((G1,lo)=>{"use strict";function so(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 ao(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?so(Object(r),!0).forEach(function(n){Vh(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Vh(t,e,r){return e=uo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oo(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,uo(n.key),n)}}function Jh(t,e,r){return e&&oo(t.prototype,e),r&&oo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function uo(t){var e=Zh(t,"string");return typeof e=="symbol"?e:String(e)}function Zh(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 Qh=require("buffer"),gr=Qh.Buffer,Xh=require("util"),Zn=Xh.inspect,ed=Zn&&Zn.custom||"inspect";function td(t,e,r){gr.prototype.copy.call(t,e,r)}lo.exports=function(){function t(){Kh(this,t),this.head=null,this.tail=null,this.length=0}return Jh(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 gr.alloc(0);for(var n=gr.allocUnsafe(r>>>0),i=this.head,s=0;i;)td(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=gr.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:ed,value:function(r,n){return Zn(this,ao(ao({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var po=c((Qn,ho)=>{var mr=require("buffer"),ve=mr.Buffer;function co(t,e){for(var r in t)e[r]=t[r]}ve.from&&ve.alloc&&ve.allocUnsafe&&ve.allocUnsafeSlow?ho.exports=mr:(co(mr,Qn),Qn.Buffer=ke);function ke(t,e,r){return ve(t,e,r)}ke.prototype=Object.create(ve.prototype);co(ve,ke);ke.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ve(t,e,r)};ke.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ve(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};ke.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ve(t)};ke.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return mr.SlowBuffer(t)}});var ti=c(mo=>{"use strict";var ei=po().Buffer,go=ei.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 rd(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 nd(t){var e=rd(t);if(typeof e!="string"&&(ei.isEncoding===go||!go(t)))throw new Error("Unknown encoding: "+t);return e||t}mo.StringDecoder=Et;function Et(t){this.encoding=nd(t);var e;switch(this.encoding){case"utf16le":this.text=ld,this.end=fd,e=4;break;case"utf8":this.fillLast=ad,e=4;break;case"base64":this.text=cd,this.end=hd,e=3;break;default:this.write=dd,this.end=pd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ei.allocUnsafe(e)}Et.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||""};Et.prototype.end=ud;Et.prototype.text=od;Et.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 Xn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function id(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Xn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Xn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Xn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function sd(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 ad(t){var e=this.lastTotal-this.lastNeed,r=sd(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 od(t,e){var r=id(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 ud(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function ld(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 fd(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 cd(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 hd(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function dd(t){return t.toString(this.encoding)}function pd(t){return t&&t.length?this.write(t):""}});var vr=c((H1,bo)=>{"use strict";var vo=Re().codes.ERR_STREAM_PREMATURE_CLOSE;function gd(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 md(){}function vd(t){return t.setHeader&&typeof t.abort=="function"}function yo(t,e,r){if(typeof e=="function")return yo(t,null,e);e||(e={}),r=gd(r||md);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)},h=function(f){r.call(t,f)},d=function(){var f;if(n&&!u)return(!t._readableState||!t._readableState.ended)&&(f=new vo),r.call(t,f);if(i&&!a)return(!t._writableState||!t._writableState.ended)&&(f=new vo),r.call(t,f)},g=function(){t.req.on("finish",o)};return vd(t)?(t.on("complete",o),t.on("abort",d),t.req?g():t.on("request",g)):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",h),t.on("close",d),function(){t.removeListener("complete",o),t.removeListener("abort",d),t.removeListener("request",g),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",h),t.removeListener("close",d)}}bo.exports=yo});var _o=c((U1,wo)=>{"use strict";var yr;function Te(t,e,r){return e=yd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yd(t){var e=bd(t,"string");return typeof e=="symbol"?e:String(e)}function bd(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 wd=vr(),Ae=Symbol("lastResolve"),Ie=Symbol("lastReject"),St=Symbol("error"),br=Symbol("ended"),Be=Symbol("lastPromise"),ri=Symbol("handlePromise"),Ge=Symbol("stream");function qe(t,e){return{value:t,done:e}}function _d(t){var e=t[Ae];if(e!==null){var r=t[Ge].read();r!==null&&(t[Be]=null,t[Ae]=null,t[Ie]=null,e(qe(r,!1)))}}function Ed(t){process.nextTick(_d,t)}function Sd(t,e){return function(r,n){t.then(function(){if(e[br]){r(qe(void 0,!0));return}e[ri](r,n)},n)}}var xd=Object.getPrototypeOf(function(){}),Od=Object.setPrototypeOf((yr={get stream(){return this[Ge]},next:function(){var e=this,r=this[St];if(r!==null)return Promise.reject(r);if(this[br])return Promise.resolve(qe(void 0,!0));if(this[Ge].destroyed)return new Promise(function(a,o){process.nextTick(function(){e[St]?o(e[St]):a(qe(void 0,!0))})});var n=this[Be],i;if(n)i=new Promise(Sd(n,this));else{var s=this[Ge].read();if(s!==null)return Promise.resolve(qe(s,!1));i=new Promise(this[ri])}return this[Be]=i,i}},Te(yr,Symbol.asyncIterator,function(){return this}),Te(yr,"return",function(){var e=this;return new Promise(function(r,n){e[Ge].destroy(null,function(i){if(i){n(i);return}r(qe(void 0,!0))})})}),yr),xd),Md=function(e){var r,n=Object.create(Od,(r={},Te(r,Ge,{value:e,writable:!0}),Te(r,Ae,{value:null,writable:!0}),Te(r,Ie,{value:null,writable:!0}),Te(r,St,{value:null,writable:!0}),Te(r,br,{value:e._readableState.endEmitted,writable:!0}),Te(r,ri,{value:function(s,a){var o=n[Ge].read();o?(n[Be]=null,n[Ae]=null,n[Ie]=null,s(qe(o,!1))):(n[Ae]=s,n[Ie]=a)},writable:!0}),r));return n[Be]=null,wd(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Ie];s!==null&&(n[Be]=null,n[Ae]=null,n[Ie]=null,s(i)),n[St]=i;return}var a=n[Ae];a!==null&&(n[Be]=null,n[Ae]=null,n[Ie]=null,a(qe(void 0,!0))),n[br]=!0}),e.on("readable",Ed.bind(null,n)),n};wo.exports=Md});var Oo=c((z1,xo)=>{"use strict";function Eo(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 Rd(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function a(u){Eo(s,n,i,a,o,"next",u)}function o(u){Eo(s,n,i,a,o,"throw",u)}a(void 0)})}}function So(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 Td(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?So(Object(r),!0).forEach(function(n){Ad(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):So(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ad(t,e,r){return e=qd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qd(t){var e=Pd(t,"string");return typeof e=="symbol"?e:String(e)}function Pd(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 Cd=Re().codes.ERR_INVALID_ARG_TYPE;function jd(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 Cd("iterable",["Iterable"],e);var i=new t(Td({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,a())};function a(){return o.apply(this,arguments)}function o(){return o=Rd(function*(){try{var u=yield n.next(),l=u.value,h=u.done;h?i.push(null):i.push(yield l)?a():s=!1}catch(d){i.destroy(d)}}),o.apply(this,arguments)}return i}xo.exports=jd});var hi=c((V1,No)=>{"use strict";No.exports=C;var it;C.ReadableState=Ao;var Y1=require("events").EventEmitter,To=function(e,r){return e.listeners(r).length},Ot=Hn(),wr=require("buffer").Buffer,Ld=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Nd(t){return wr.from(t)}function Fd(t){return wr.isBuffer(t)||t instanceof Ld}var ni=require("util"),T;ni&&ni.debuglog?T=ni.debuglog("stream"):T=function(){};var Dd=fo(),fi=zn(),$d=Yn(),kd=$d.getHighWaterMark,_r=Re().codes,Id=_r.ERR_INVALID_ARG_TYPE,Bd=_r.ERR_STREAM_PUSH_AFTER_EOF,Gd=_r.ERR_METHOD_NOT_IMPLEMENTED,Wd=_r.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,st,ii,si;nt()(C,Ot);var xt=fi.errorOrDestroy,ai=["error","close","destroy","pause","resume"];function Hd(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 Ao(t,e,r){it=it||We(),t=t||{},typeof r!="boolean"&&(r=e instanceof it),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=kd(this,t,"readableHighWaterMark",r),this.buffer=new Dd,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&&(st||(st=ti().StringDecoder),this.decoder=new st(t.encoding),this.encoding=t.encoding)}function C(t){if(it=it||We(),!(this instanceof C))return new C(t);var e=this instanceof it;this._readableState=new Ao(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ot.call(this)}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});C.prototype.destroy=fi.destroy;C.prototype._undestroy=fi.undestroy;C.prototype._destroy=function(t,e){e(t)};C.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=wr.from(t,e),e=""),n=!0),qo(this,t,e,!1,n)};C.prototype.unshift=function(t){return qo(this,t,null,!0,!1)};function qo(t,e,r,n,i){T("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,Yd(t,s);else{var a;if(i||(a=Ud(s,e)),a)xt(t,a);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==wr.prototype&&(e=Nd(e)),n)s.endEmitted?xt(t,new Wd):oi(t,s,e,!0);else if(s.ended)xt(t,new Bd);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?oi(t,s,e,!1):li(t,s)):oi(t,s,e,!1)}else n||(s.reading=!1,li(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function oi(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)),li(t,e)}function Ud(t,e){var r;return!Fd(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Id("chunk",["string","Buffer","Uint8Array"],e)),r}C.prototype.isPaused=function(){return this._readableState.flowing===!1};C.prototype.setEncoding=function(t){st||(st=ti().StringDecoder);var e=new st(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 Mo=1073741824;function zd(t){return t>=Mo?t=Mo:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Ro(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=zd(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}C.prototype.read=function(t){T("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 T("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ui(this):Er(this),null;if(t=Ro(t,e),t===0&&e.ended)return e.length===0&&ui(this),null;var n=e.needReadable;T("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,T("length less than watermark",n)),e.ended||e.reading?(n=!1,T("reading or ended",n)):n&&(T("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ro(r,e)));var i;return t>0?i=jo(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&&ui(this)),i!==null&&this.emit("data",i),i};function Yd(t,e){if(T("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,Po(t)))}}function Er(t){var e=t._readableState;T("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(T("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Po,t))}function Po(t){var e=t._readableState;T("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,ci(t)}function li(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Vd,t,e))}function Vd(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(T("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}C.prototype._read=function(t){xt(this,new Gd("_read()"))};C.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,T("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(E,y){T("onunpipe"),E===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,h())}function o(){T("onend"),t.end()}var u=Kd(r);t.on("drain",u);var l=!1;function h(){T("cleanup"),t.removeListener("close",v),t.removeListener("finish",f),t.removeListener("drain",u),t.removeListener("error",g),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",m),r.removeListener("data",d),l=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}r.on("data",d);function d(E){T("ondata");var y=t.write(E);T("dest.write",y),y===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Lo(n.pipes,t)!==-1)&&!l&&(T("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function g(E){T("onerror",E),m(),t.removeListener("error",g),To(t,"error")===0&&xt(t,E)}Hd(t,"error",g);function v(){t.removeListener("finish",f),m()}t.once("close",v);function f(){T("onfinish"),t.removeListener("close",v),m()}t.once("finish",f);function m(){T("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(T("pipe resume"),r.resume()),t};function Kd(t){return function(){var r=t._readableState;T("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&To(t,"data")&&(r.flowing=!0,ci(t))}}C.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=Lo(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)};C.prototype.on=function(t,e){var r=Ot.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,T("on readable",n.length,n.reading),n.length?Er(this):n.reading||process.nextTick(Jd,this)),r};C.prototype.addListener=C.prototype.on;C.prototype.removeListener=function(t,e){var r=Ot.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Co,this),r};C.prototype.removeAllListeners=function(t){var e=Ot.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Co,this),e};function Co(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 Jd(t){T("readable nexttick read 0"),t.read(0)}C.prototype.resume=function(){var t=this._readableState;return t.flowing||(T("resume"),t.flowing=!t.readableListening,Zd(this,t)),t.paused=!1,this};function Zd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Qd,t,e))}function Qd(t,e){T("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),ci(t),e.flowing&&!e.reading&&t.read(0)}C.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ci(t){var e=t._readableState;for(T("flow",e.flowing);e.flowing&&t.read()!==null;);}C.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(T("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(T("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<ai.length;s++)t.on(ai[s],this.emit.bind(this,ai[s]));return this._read=function(a){T("wrapped _read",a),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(C.prototype[Symbol.asyncIterator]=function(){return ii===void 0&&(ii=_o()),ii(this)});Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});C._fromList=jo;Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function jo(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 ui(t){var e=t._readableState;T("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Xd,e,t))}function Xd(t,e){if(T("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"&&(C.from=function(t,e){return si===void 0&&(si=Oo()),si(C,t,e)});function Lo(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var We=c((K1,Do)=>{"use strict";var ep=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Do.exports=ye;var Fo=hi(),pi=Or();nt()(ye,Fo);for(di=ep(pi.prototype),Sr=0;Sr<di.length;Sr++)xr=di[Sr],ye.prototype[xr]||(ye.prototype[xr]=pi.prototype[xr]);var di,xr,Sr;function ye(t){if(!(this instanceof ye))return new ye(t);Fo.call(this,t),pi.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",tp)))}Object.defineProperty(ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ye.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function tp(){this._writableState.ended||process.nextTick(rp,this)}function rp(t){t.end()}Object.defineProperty(ye.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 Or=c((J1,Wo)=>{"use strict";Wo.exports=k;function ko(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Ap(e,t)}}var at;k.WritableState=Rt;var np={deprecate:Ja()},Io=Hn(),Rr=require("buffer").Buffer,ip=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function sp(t){return Rr.from(t)}function ap(t){return Rr.isBuffer(t)||t instanceof ip}var mi=zn(),op=Yn(),up=op.getHighWaterMark,Pe=Re().codes,lp=Pe.ERR_INVALID_ARG_TYPE,fp=Pe.ERR_METHOD_NOT_IMPLEMENTED,cp=Pe.ERR_MULTIPLE_CALLBACK,hp=Pe.ERR_STREAM_CANNOT_PIPE,dp=Pe.ERR_STREAM_DESTROYED,pp=Pe.ERR_STREAM_NULL_VALUES,gp=Pe.ERR_STREAM_WRITE_AFTER_END,mp=Pe.ERR_UNKNOWN_ENCODING,ot=mi.errorOrDestroy;nt()(k,Io);function vp(){}function Rt(t,e,r){at=at||We(),t=t||{},typeof r!="boolean"&&(r=e instanceof at),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=up(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){xp(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 ko(this)}Rt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Rt.prototype,"buffer",{get:np.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Mr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Mr=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return Mr.call(this,e)?!0:this!==k?!1:e&&e._writableState instanceof Rt}})):Mr=function(e){return e instanceof this};function k(t){at=at||We();var e=this instanceof at;if(!e&&!Mr.call(k,this))return new k(t);this._writableState=new Rt(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)),Io.call(this)}k.prototype.pipe=function(){ot(this,new hp)};function yp(t,e){var r=new gp;ot(t,r),process.nextTick(e,r)}function bp(t,e,r,n){var i;return r===null?i=new pp:typeof r!="string"&&!e.objectMode&&(i=new lp("chunk",["string","Buffer"],r)),i?(ot(t,i),process.nextTick(n,i),!1):!0}k.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&ap(t);return s&&!Rr.isBuffer(t)&&(t=sp(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=vp),n.ending?yp(this,r):(s||bp(this,n,t,r))&&(n.pendingcb++,i=_p(this,n,s,t,e,r)),i};k.prototype.cork=function(){this._writableState.corked++};k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Bo(this,t))};k.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 mp(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function wp(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Rr.from(e,r)),e}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _p(t,e,r,n,i,s){if(!r){var a=wp(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 gi(t,e,!1,o,n,i,s);return u}function gi(t,e,r,n,i,s,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new dp("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Ep(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(Mt,t,e),t._writableState.errorEmitted=!0,ot(t,n)):(i(n),t._writableState.errorEmitted=!0,ot(t,n),Mt(t,e))}function Sp(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function xp(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new cp;if(Sp(r),e)Ep(t,r,n,e,i);else{var s=Go(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Bo(t,r),n?process.nextTick($o,t,r,s,i):$o(t,r,s,i)}}function $o(t,e,r,n){r||Op(t,e),e.pendingcb--,n(),Mt(t,e)}function Op(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Bo(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,gi(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 ko(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,h=r.callback,d=e.objectMode?1:u.length;if(gi(t,e,!1,d,u,l,h),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}k.prototype._write=function(t,e,r){r(new fp("_write()"))};k.prototype._writev=null;k.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||Tp(this,n,r),this};Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Go(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Mp(t,e){t._final(function(r){e.pendingcb--,r&&ot(t,r),e.prefinished=!0,t.emit("prefinish"),Mt(t,e)})}function Rp(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Mp,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Mt(t,e){var r=Go(e);if(r&&(Rp(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 Tp(t,e,r){e.ending=!0,Mt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Ap(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(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});k.prototype.destroy=mi.destroy;k.prototype._undestroy=mi.undestroy;k.prototype._destroy=function(t,e){e(t)}});var vi=c((Z1,zo)=>{"use strict";var qp=require("util"),Ho=Or(),{LEVEL:Uo}=W(),Tt=zo.exports=function(e={}){Ho.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())})};qp.inherits(Tt,Ho);Tt.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[Uo]]){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)};Tt.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)};Tt.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[Uo]])&&(this.handleExceptions||r.exception!==!0))};Tt.prototype._nop=function(){}});var bi=c((Q1,Vo)=>{"use strict";var Pp=require("util"),{LEVEL:yi}=W(),Yo=vi(),At=Vo.exports=function(e={}){if(Yo.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))};Pp.inherits(At,Yo);At.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[yi]])&&this.transport.log(e[yi],e.message,e,this._nop),n(null)};At.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[yi],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};At.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(`
|
|
27
|
-
`))};At.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var ut=c((X1,wi)=>{"use strict";wi.exports=vi();wi.exports.LegacyTransportStream=bi()});var Zo=c((ty,Jo)=>{"use strict";var Cp=require("os"),{LEVEL:Ko,MESSAGE:lt}=W(),jp=ut();Jo.exports=class extends jp{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:Cp.EOL,this.setMaxListeners(30)}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[Ko]]){console._stderr?console._stderr.write(`${e[lt]}${this.eol}`):console.error(e[lt]),r&&r();return}else if(this.consoleWarnLevels[e[Ko]]){console._stderr?console._stderr.write(`${e[lt]}${this.eol}`):console.warn(e[lt]),r&&r();return}console._stdout?console._stdout.write(`${e[lt]}${this.eol}`):console.log(e[lt]),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=c((Tr,Qo)=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=Lp;function Lp(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Qo.exports=Tr.default});var eu=c((qr,Xo)=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Xo.exports=qr.default});var nu=c(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.fallback=tu;Ce.wrap=ru;var Np=Ce.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Fp=Ce.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Dp=Ce.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function tu(t){setTimeout(t,0)}function ru(t){return(e,...r)=>t(()=>e(...r))}var qt;Np?qt=queueMicrotask:Fp?qt=setImmediate:Dp?qt=process.nextTick:qt=tu;Ce.default=ru(qt)});var uu=c((Pr,ou)=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.default=Wp;var $p=eu(),kp=au($p),Ip=nu(),Bp=au(Ip),Gp=He();function au(t){return t&&t.__esModule?t:{default:t}}function Wp(t){return(0,Gp.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return iu(n,r)}:(0,kp.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return iu(n,r);r(null,n)})}function iu(t,e){return t.then(r=>{su(e,null,r)},r=>{su(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function su(t,e,r){try{t(e,r)}catch(n){(0,Bp.default)(i=>{throw i},n)}}ou.exports=Pr.default});var He=c(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.isAsyncIterable=xe.isAsyncGenerator=xe.isAsync=void 0;var Hp=uu(),Up=zp(Hp);function zp(t){return t&&t.__esModule?t:{default:t}}function lu(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Yp(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Vp(t){return typeof t[Symbol.asyncIterator]=="function"}function Kp(t){if(typeof t!="function")throw new Error("expected a function");return lu(t)?(0,Up.default)(t):t}xe.default=Kp;xe.isAsync=lu;xe.isAsyncGenerator=Yp;xe.isAsyncIterable=Vp});var ft=c((Cr,fu)=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.default=Jp;function Jp(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}fu.exports=Cr.default});var hu=c((jr,cu)=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});var Zp=Ar(),Qp=_i(Zp),Xp=He(),eg=_i(Xp),tg=ft(),rg=_i(tg);function _i(t){return t&&t.__esModule?t:{default:t}}jr.default=(0,rg.default)((t,e,r)=>{var n=(0,Qp.default)(e)?[]:{};t(e,(i,s,a)=>{(0,eg.default)(i)((o,...u)=>{u.length<2&&([u]=u),n[s]=u,a(o)})},i=>r(i,n))},3);cu.exports=jr.default});var Ei=c((Lr,du)=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.default=ng;function ng(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}du.exports=Lr.default});var gu=c((Nr,pu)=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};pu.exports=Nr.default});var yu=c((Fr,vu)=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.default=cg;var ig=Ar(),sg=mu(ig),ag=gu(),og=mu(ag);function mu(t){return t&&t.__esModule?t:{default:t}}function ug(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function lg(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function fg(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 cg(t){if((0,sg.default)(t))return ug(t);var e=(0,og.default)(t);return e?lg(e):fg(t)}vu.exports=Fr.default});var Si=c((Dr,bu)=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.default=hg;function hg(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}bu.exports=Dr.default});var kr=c(($r,wu)=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});var dg={};$r.default=dg;wu.exports=$r.default});var Eu=c((Ir,_u)=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.default=vg;var pg=kr(),gg=mg(pg);function mg(t){return t&&t.__esModule?t:{default:t}}function vg(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:g,done:v})=>{if(!(s||i)){if(a=!1,v){i=!0,o<=0&&n(null);return}o++,r(g,u,h),u++,l()}}).catch(d))}function h(g,v){if(o-=1,!s){if(g)return d(g);if(g===!1){i=!0,s=!0;return}if(v===gg.default||i&&o<=0)return i=!0,n(null);l()}}function d(g){s||(a=!1,i=!0,n(g))}l()}_u.exports=Ir.default});var Mu=c((Br,Ou)=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});var yg=Ei(),bg=Pt(yg),wg=yu(),_g=Pt(wg),Eg=Si(),Sg=Pt(Eg),Su=He(),xg=Eu(),xu=Pt(xg),Og=kr(),Mg=Pt(Og);function Pt(t){return t&&t.__esModule?t:{default:t}}Br.default=t=>(e,r,n)=>{if(n=(0,bg.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,Su.isAsyncGenerator)(e))return(0,xu.default)(e,t,r,n);if((0,Su.isAsyncIterable)(e))return(0,xu.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,_g.default)(e),s=!1,a=!1,o=0,u=!1;function l(d,g){if(!a)if(o-=1,d)s=!0,n(d);else if(d===!1)s=!0,a=!0;else{if(g===Mg.default||s&&o<=0)return s=!0,n(null);u||h()}}function h(){for(u=!0;o<t&&!s;){var d=i();if(d===null){s=!0,o<=0&&n(null);return}o+=1,r(d.value,d.key,(0,Sg.default)(l))}u=!1}h()};Ou.exports=Br.default});var Oi=c((Gr,Ru)=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});var Rg=Mu(),Tg=xi(Rg),Ag=He(),qg=xi(Ag),Pg=ft(),Cg=xi(Pg);function xi(t){return t&&t.__esModule?t:{default:t}}function jg(t,e,r,n){return(0,Tg.default)(e)(t,(0,qg.default)(r),n)}Gr.default=(0,Cg.default)(jg,4);Ru.exports=Gr.default});var qu=c((Wr,Au)=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});var Lg=Oi(),Ng=Tu(Lg),Fg=ft(),Dg=Tu(Fg);function Tu(t){return t&&t.__esModule?t:{default:t}}function $g(t,e,r){return(0,Ng.default)(t,1,e,r)}Wr.default=(0,Dg.default)($g,3);Au.exports=Wr.default});var ju=c((Hr,Cu)=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.default=Wg;var kg=hu(),Ig=Pu(kg),Bg=qu(),Gg=Pu(Bg);function Pu(t){return t&&t.__esModule?t:{default:t}}function Wg(t,e){return(0,Ig.default)(Gg.default,t,e)}Cu.exports=Hr.default});var Mi=c((iy,Nu)=>{"use strict";Nu.exports=Oe;var Ur=Re().codes,Hg=Ur.ERR_METHOD_NOT_IMPLEMENTED,Ug=Ur.ERR_MULTIPLE_CALLBACK,zg=Ur.ERR_TRANSFORM_ALREADY_TRANSFORMING,Yg=Ur.ERR_TRANSFORM_WITH_LENGTH_0,zr=We();nt()(Oe,zr);function Vg(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Ug);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 Oe(t){if(!(this instanceof Oe))return new Oe(t);zr.call(this,t),this._transformState={afterTransform:Vg.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",Kg)}function Kg(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Lu(t,e,r)}):Lu(this,null,null)}Oe.prototype.push=function(t,e){return this._transformState.needTransform=!1,zr.prototype.push.call(this,t,e)};Oe.prototype._transform=function(t,e,r){r(new Hg("_transform()"))};Oe.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)}};Oe.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};Oe.prototype._destroy=function(t,e){zr.prototype._destroy.call(this,t,function(r){e(r)})};function Lu(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Yg;if(t._transformState.transforming)throw new zg;return t.push(null)}});var $u=c((sy,Du)=>{"use strict";Du.exports=Ct;var Fu=Mi();nt()(Ct,Fu);function Ct(t){if(!(this instanceof Ct))return new Ct(t);Fu.call(this,t)}Ct.prototype._transform=function(t,e,r){r(null,t)}});var Wu=c((ay,Gu)=>{"use strict";var Ri;function Jg(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Bu=Re().codes,Zg=Bu.ERR_MISSING_ARGS,Qg=Bu.ERR_STREAM_DESTROYED;function ku(t){if(t)throw t}function Xg(t){return t.setHeader&&typeof t.abort=="function"}function em(t,e,r,n){n=Jg(n);var i=!1;t.on("close",function(){i=!0}),Ri===void 0&&(Ri=vr()),Ri(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,Xg(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(a||new Qg("pipe"))}}}function Iu(t){t()}function tm(t,e){return t.pipe(e)}function rm(t){return!t.length||typeof t[t.length-1]!="function"?ku:t.pop()}function nm(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=rm(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Zg("streams");var i,s=e.map(function(a,o){var u=o<e.length-1,l=o>0;return em(a,u,l,function(h){i||(i=h),h&&s.forEach(Iu),!u&&(s.forEach(Iu),n(i))})});return e.reduce(tm)}Gu.exports=nm});var Ue=c((ue,Lt)=>{var jt=require("stream");process.env.READABLE_STREAM==="disable"&&jt?(Lt.exports=jt.Readable,Object.assign(Lt.exports,jt),Lt.exports.Stream=jt):(ue=Lt.exports=hi(),ue.Stream=jt||ue,ue.Readable=ue,ue.Writable=Or(),ue.Duplex=We(),ue.Transform=Mi(),ue.PassThrough=$u(),ue.finished=vr(),ue.pipeline=Wu())});var Li=c((oy,Uu)=>{var ct=[],Nt=[],Ti=function(){};function qi(t){return~ct.indexOf(t)?!1:(ct.push(t),!0)}function Pi(t){Ti=t}function im(t){for(var e=[],r=0;r<ct.length;r++){if(ct[r].async){e.push(ct[r]);continue}if(ct[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 Ci(t){return~Nt.indexOf(t)?!1:(Nt.push(t),!0)}function Ai(){Ti.apply(Ti,arguments)}function Hu(t){for(var e=0;e<Nt.length;e++)t=Nt[e].apply(Nt[e],arguments);return t}function ji(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function sm(t){return t.enabled=!1,t.modify=Ci,t.set=Pi,t.use=qi,ji(function(){return!1},t)}function am(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Ai.call(Ai,t,Hu(r,t)),!0}return t.enabled=!0,t.modify=Ci,t.set=Pi,t.use=qi,ji(e,t)}Uu.exports=function(e){return e.introduce=ji,e.enabled=im,e.process=Hu,e.modify=Ci,e.write=Ai,e.nope=sm,e.yep=am,e.set=Pi,e.use=qi,e}});var Yu=c((uy,zu)=>{var om=Li(),um=om(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)});zu.exports=um});var Ku=c((ly,Vu)=>{"use strict";Vu.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 Zu=c((fy,Ju)=>{Ju.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 el=c((cy,Xu)=>{"use strict";var lm=Zu(),fm=Array.prototype.concat,cm=Array.prototype.slice,Qu=Xu.exports=function(e){for(var r=[],n=0,i=e.length;n<i;n++){var s=e[n];lm(s)?r=fm.call(r,cm.call(s)):r.push(s)}return r};Qu.wrap=function(t){return function(){return t(Qu(arguments))}}});var il=c((hy,nl)=>{var Ft=Ku(),Dt=el(),tl=Object.hasOwnProperty,rl=Object.create(null);for(Yr in Ft)tl.call(Ft,Yr)&&(rl[Ft[Yr]]=Yr);var Yr,ne=nl.exports={to:{},get:{}};ne.get=function(t){var e=t.substring(0,3).toLowerCase(),r,n;switch(e){case"hsl":r=ne.get.hsl(t),n="hsl";break;case"hwb":r=ne.get.hwb(t),n="hwb";break;default:r=ne.get.rgb(t),n="rgb";break}return r?{model:n,value:r}:null};ne.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 h=u*2;a[u]=parseInt(o.slice(h,h+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]:tl.call(Ft,o[1])?(a=Ft[o[1]],a[3]=1,a):null:null;for(u=0;u<3;u++)a[u]=je(a[u],0,255);return a[3]=je(a[3],0,1),a};ne.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=je(parseFloat(r[2]),0,100),a=je(parseFloat(r[3]),0,100),o=je(isNaN(n)?1:n,0,1);return[i,s,a,o]}return null};ne.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=je(parseFloat(r[2]),0,100),a=je(parseFloat(r[3]),0,100),o=je(isNaN(n)?1:n,0,1);return[i,s,a,o]}return null};ne.to.hex=function(){var t=Dt(arguments);return"#"+Vr(t[0])+Vr(t[1])+Vr(t[2])+(t[3]<1?Vr(Math.round(t[3]*255)):"")};ne.to.rgb=function(){var t=Dt(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]+")"};ne.to.rgb.percent=function(){var t=Dt(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]+")"};ne.to.hsl=function(){var t=Dt(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ne.to.hwb=function(){var t=Dt(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ne.to.keyword=function(t){return rl[t.slice(0,3)]};function je(t,e,r){return Math.min(Math.max(e,t),r)}function Vr(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var al=c((dy,sl)=>{"use strict";sl.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 Ni=c((py,fl)=>{var ze=al(),ll={};for(Kr in ze)ze.hasOwnProperty(Kr)&&(ll[ze[Kr]]=Kr);var Kr,x=fl.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(X in x)if(x.hasOwnProperty(X)){if(!("channels"in x[X]))throw new Error("missing channels property: "+X);if(!("labels"in x[X]))throw new Error("missing channel labels property: "+X);if(x[X].labels.length!==x[X].channels)throw new Error("channel and label counts mismatch: "+X);ol=x[X].channels,ul=x[X].labels,delete x[X].channels,delete x[X].labels,Object.defineProperty(x[X],"channels",{value:ol}),Object.defineProperty(x[X],"labels",{value:ul})}var ol,ul,X;x.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]};x.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),h=l-Math.min(a,o,u),d=function(g){return(l-g)/6/h+1/2};return h===0?i=s=0:(s=h/l,e=d(a),r=d(o),n=d(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]};x.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=x.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]};x.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 hm(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}x.rgb.keyword=function(t){var e=ll[t];if(e)return e;var r=1/0,n;for(var i in ze)if(ze.hasOwnProperty(i)){var s=ze[i],a=hm(t,s);a<r&&(r=a,n=i)}return n};x.keyword.rgb=function(t){return ze[t]};x.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]};x.rgb.lab=function(t){var e=x.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]};x.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};x.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]};x.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]}};x.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]};x.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&&(o=1-o),u=r+o*(a-r);var l,h,d;switch(s){default:case 6:case 0:l=a,h=u,d=r;break;case 1:l=u,h=a,d=r;break;case 2:l=r,h=a,d=u;break;case 3:l=r,h=u,d=a;break;case 4:l=u,h=r,d=a;break;case 5:l=a,h=r,d=u;break}return[l*255,h*255,d*255]};x.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]};x.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]};x.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]};x.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]};x.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]};x.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]};x.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:x.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};x.hsv.ansi16=function(t){return x.rgb.ansi16(x.hsv.rgb(t),t[2])};x.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};x.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]};x.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]};x.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};x.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]};x.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]};x.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]};x.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]};x.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]};x.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]};x.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]};x.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]};x.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]};x.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};x.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};x.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};x.gray.hsl=x.gray.hsv=function(t){return[0,0,t[0]]};x.gray.hwb=function(t){return[0,100,t[0]]};x.gray.cmyk=function(t){return[0,0,0,t[0]]};x.gray.lab=function(t){return[t[0],0,0]};x.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};x.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var hl=c((gy,cl)=>{var Jr=Ni();function dm(){for(var t={},e=Object.keys(Jr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function pm(t){var e=dm(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Jr[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 gm(t,e){return function(r){return e(t(r))}}function mm(t,e){for(var r=[e[t].parent,t],n=Jr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=gm(Jr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}cl.exports=function(t){for(var e=pm(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]=mm(a,e))}return r}});var pl=c((my,dl)=>{var Fi=Ni(),vm=hl(),ht={},ym=Object.keys(Fi);function bm(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 wm(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}ym.forEach(function(t){ht[t]={},Object.defineProperty(ht[t],"channels",{value:Fi[t].channels}),Object.defineProperty(ht[t],"labels",{value:Fi[t].labels});var e=vm(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];ht[t][n]=wm(i),ht[t][n].raw=bm(i)})});dl.exports=ht});var vl=c((vy,ml)=>{"use strict";var $t=il(),ie=pl(),ki=[].slice,gl=["keyword","gray","hex"],Di={};Object.keys(ie).forEach(function(t){Di[ki.call(ie[t].labels).sort().join("")]=t});var Zr={};function J(t,e){if(!(this instanceof J))return new J(t,e);if(e&&e in gl&&(e=null),e&&!(e in ie))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 J)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var i=$t.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=ie[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=ie[this.model].channels;var s=ki.call(t,0,n);this.color=$i(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 Di))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Di[o];var u=ie[this.model].labels,l=[];for(r=0;r<u.length;r++)l.push(t[u[r]]);this.color=$i(l)}if(Zr[this.model])for(n=ie[this.model].channels,r=0;r<n;r++){var h=Zr[this.model][r];h&&(this.color[r]=h(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}J.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in $t.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 $t.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 $t.to.rgb.percent(r)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=ie[this.model].channels,r=ie[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 J(this.color.map(Em(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new J(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:I("rgb",0,z(255)),green:I("rgb",1,z(255)),blue:I("rgb",2,z(255)),hue:I(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:I("hsl",1,z(100)),lightness:I("hsl",2,z(100)),saturationv:I("hsv",1,z(100)),value:I("hsv",2,z(100)),chroma:I("hcg",1,z(100)),gray:I("hcg",2,z(100)),white:I("hwb",1,z(100)),wblack:I("hwb",2,z(100)),cyan:I("cmyk",0,z(100)),magenta:I("cmyk",1,z(100)),yellow:I("cmyk",2,z(100)),black:I("cmyk",3,z(100)),x:I("xyz",0,z(100)),y:I("xyz",1,z(100)),z:I("xyz",2,z(100)),l:I("lab",0,z(100)),a:I("lab",1),b:I("lab",2),keyword:function(t){return arguments.length?new J(t):ie[this.model].keyword(this.color)},hex:function(t){return arguments.length?new J(t):$t.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 J.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 J.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(ie).forEach(function(t){if(gl.indexOf(t)===-1){var e=ie[t].channels;J.prototype[t]=function(){if(this.model===t)return new J(this);if(arguments.length)return new J(arguments,t);var r=typeof arguments[e]=="number"?e:this.valpha;return new J(Sm(ie[this.model][t].raw(this.color)).concat(r),t)},J[t]=function(r){return typeof r=="number"&&(r=$i(ki.call(arguments),e)),new J(r,t)}}});function _m(t,e){return Number(t.toFixed(e))}function Em(t){return function(e){return _m(e,t)}}function I(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Zr[n]||(Zr[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 z(t){return function(e){return Math.max(0,Math.min(t,e))}}function Sm(t){return Array.isArray(t)?t:[t]}function $i(t,e){for(var r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}ml.exports=J});var bl=c((yy,yl)=>{"use strict";yl.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 Sl=c((by,El)=>{"use strict";var wl=vl(),_l=bl();El.exports=function(e,r){var n=e.split(r||":"),i=_l(n[0]);if(!n.length)return i;for(var s=0,a=n.length-1;s<a;s++)i=wl(i).mix(wl(_l(n[s+1]))).saturate(1).hex();return i}});var Ol=c((wy,xl)=>{"use strict";function de(t,e){if(e)return new de(t).style(e);if(!(this instanceof de))return new de(t);this.text=t}de.prototype.prefix="\x1B[";de.prototype.suffix="m";de.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)]};de.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)};de.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};de.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};de.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};xl.exports=de});var Rl=c((_y,Ml)=>{var xm=Sl(),Om=Ol();Ml.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?Om(n+":",xm(n)):n+":";return e[0]=i+" "+e[0],e}});var Al=c((Ey,Tl)=>{"use strict";Tl.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 Pl=c((Sy,ql)=>{var Mm=Al();ql.exports=function(e){return function(n){try{return Mm(n,e())}catch{}return!1}}});var jl=c((xy,Cl)=>{var Rm=Pl();Cl.exports=Rm(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Nl=c((Oy,Ll)=>{Ll.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Dl=c((My,Fl)=>{var Tm=Li(),Am=require("tty").isatty(1),Qr=Tm(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:Am,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Qr.modify(Rl());Qr.use(jl());Qr.set(Nl());Fl.exports=Qr});var kt=c((Ry,Ii)=>{process.env.NODE_ENV==="production"?Ii.exports=Yu():Ii.exports=Dl()});var kl=c((Ty,$l)=>{"use strict";var Bi=require("fs"),{StringDecoder:qm}=require("string_decoder"),{Stream:Pm}=Ue();function Cm(){}$l.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new qm("utf8"),i=new Pm,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")},Bi.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):i.emit("error",u),i.destroy();return}(function h(){if(i.destroyed){Bi.close(l,Cm);return}return Bi.read(l,r,0,r.length,a,(d,g)=>{if(d){e?e(d):i.emit("error",d),i.destroy();return}if(!g)return s&&((t.start==null||o>t.start)&&(e?e(null,s):i.emit("line",s)),o++,s=""),setTimeout(h,1e3);let v=n.write(r.slice(0,g));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+=g,h()})})()}),e?i.destroy:i}});var Wl=c((qy,Gl)=>{"use strict";var te=require("fs"),V=require("path"),Il=ju(),jm=require("zlib"),{MESSAGE:Lm}=W(),{Stream:Nm,PassThrough:Bl}=Ue(),Fm=ut(),pe=kt()("winston:file"),Dm=require("os"),$m=kl();Gl.exports=class extends Fm{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 Bl,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?V.basename(e.filename):"winston.log",this.dirname=e.dirname||V.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=V.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:Dm.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[Lm]}${this.eol}`,i=Buffer.byteLength(n);function s(){if(this._size+=i,this._pendingSize-=i,pe("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()})),pe("written",a,this._drain),this.finishIfEnding(),a}query(e,r){typeof e=="function"&&(r=e,e={}),e=d(e);let n=V.join(this.dirname,this.filename),i="",s=[],a=0,o=te.createReadStream(n,{encoding:"utf8"});o.on("error",g=>{if(o.readable&&o.destroy(),!!r)return g.code!=="ENOENT"?r(g):r(null,s)}),o.on("data",g=>{g=(i+g).split(/\n+/);let v=g.length-1,f=0;for(;f<v;f++)(!e.start||a>=e.start)&&u(g[f]),a++;i=g[v]}),o.on("close",()=>{i&&u(i,!0),e.order==="desc"&&(s=s.reverse()),r&&r(null,s)});function u(g,v){try{let f=JSON.parse(g);h(f)&&l(f)}catch(f){v||o.emit("error",f)}}function l(g){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(g=e.fields.reduce((v,f)=>(v[f]=g[f],v),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(g)}function h(g){if(!g||typeof g!="object")return;let v=new Date(g.timestamp);if(!(e.from&&v<e.from||e.until&&v>e.until||e.level&&e.level!==g.level))return!0}function d(g){return g=g||{},g.rows=g.rows||g.limit||10,g.start=g.start||0,g.until=g.until||new Date,typeof g.until!="object"&&(g.until=new Date(g.until)),g.from=g.from||g.until-24*60*60*1e3,typeof g.from!="object"&&(g.from=new Date(g.from)),g.order=g.order||"desc",g}}stream(e={}){let r=V.join(this.dirname,this.filename),n=new Nm,i={file:r,start:e.start};return n.destroy=$m(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);pe("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.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let r=this._getFile(),n=V.join(this.dirname,r);te.stat(n,(i,s)=>{if(i&&i.code==="ENOENT")return pe("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return pe(`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=V.join(this.dirname,this.filename);pe("create stream start",r,this.options);let n=te.createWriteStream(r,this.options).on("error",i=>pe(i)).on("close",()=>pe("close",n.path,n.bytesWritten)).on("open",()=>{pe("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Bl,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return pe("create stream ok",r),n}_incFile(e){pe("_incFile",this.filename);let r=V.extname(this._basename),n=V.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(s){let a=this._created>0&&!this.tailable?this._created:"";this._compressFile(V.join(this.dirname,`${n}${a}${r}`),V.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)),Il(i,e)}_getFile(){let e=V.extname(this._basename),r=V.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=V.join(this.dirname,o);te.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}`,h=V.join(this.dirname,l);te.exists(h,d=>{if(!d)return u(null);l=`${r}${o}${e}${s}`,te.rename(h,V.join(this.dirname,l),u)})}.bind(this,a));Il(i,()=>{te.rename(V.join(this.dirname,`${r}${e}${s}`),V.join(this.dirname,`${r}1${e}${s}`),n)})}_compressFile(e,r,n){te.access(e,te.F_OK,i=>{if(i)return n();var s=jm.createGzip(),a=te.createReadStream(e),o=te.createWriteStream(r);o.on("finish",()=>{te.unlink(e,n)}),a.pipe(s).pipe(o)})}_createLogDirIfNotExist(e){te.existsSync(e)||te.mkdirSync(e,{recursive:!0})}}});var Ul=c((Cy,Hl)=>{"use strict";var km=require("http"),Im=require("https"),{Stream:Bm}=Ue(),Gm=ut(),Wm=wt();Hl.exports=class extends Gm{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.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 Bm;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(h){r.emit("error",h)}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?Im:km).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",o=>o.on("end",()=>r(null,o)).resume()),a.end(Buffer.from(Wm(e,this.options.replacer),"utf8"))}}});var Gi=c((jy,zl)=>{"use strict";var be=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";be.writable=t=>be(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";be.readable=t=>be(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";be.duplex=t=>be.writable(t)&&be.readable(t);be.transform=t=>be.duplex(t)&&typeof t._transform=="function";zl.exports=be});var Vl=c((Ny,Yl)=>{"use strict";var Hm=Gi(),{MESSAGE:Um}=W(),zm=require("os"),Ym=ut();Yl.exports=class extends Ym{constructor(e={}){if(super(e),!e.stream||!Hm(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:zm.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[Um]}${this.eol}`),r&&r()}}});var Kl=c(It=>{"use strict";Object.defineProperty(It,"Console",{configurable:!0,enumerable:!0,get(){return Zo()}});Object.defineProperty(It,"File",{configurable:!0,enumerable:!0,get(){return Wl()}});Object.defineProperty(It,"Http",{configurable:!0,enumerable:!0,get(){return Ul()}});Object.defineProperty(It,"Stream",{configurable:!0,enumerable:!0,get(){return Vl()}})});var en=c(Bt=>{"use strict";var Xr=Gn(),{configs:Wi}=W();Bt.cli=Xr.levels(Wi.cli);Bt.npm=Xr.levels(Wi.npm);Bt.syslog=Xr.levels(Wi.syslog);Bt.addColors=Xr.levels});var Zl=c((tn,Jl)=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});var Vm=Ar(),Km=Ye(Vm),Jm=kr(),Zm=Ye(Jm),Qm=Oi(),Xm=Ye(Qm),e0=Ei(),t0=Ye(e0),r0=Si(),n0=Ye(r0),i0=He(),s0=Ye(i0),a0=ft(),o0=Ye(a0);function Ye(t){return t&&t.__esModule?t:{default:t}}function u0(t,e,r){r=(0,t0.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===Zm.default)&&r(null))}for(;n<s;n++)e(t[n],n,(0,n0.default)(o))}function l0(t,e,r){return(0,Xm.default)(t,1/0,e,r)}function f0(t,e,r){var n=(0,Km.default)(t)?u0:l0;return n(t,(0,s0.default)(e),r)}tn.default=(0,o0.default)(f0,3);Jl.exports=tn.default});var Xl=c((rn,Ql)=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.default=c0;function c0(t){return(e,r,n)=>t(e,n)}Ql.exports=rn.default});var an=c((sn,ef)=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});var h0=Zl(),d0=nn(h0),p0=Xl(),g0=nn(p0),m0=He(),v0=nn(m0),y0=ft(),b0=nn(y0);function nn(t){return t&&t.__esModule?t:{default:t}}function w0(t,e,r){return(0,d0.default)(t,(0,g0.default)((0,v0.default)(e)),r)}sn.default=(0,b0.default)(w0,3);ef.exports=sn.default});var rf=c(($y,tf)=>{"use strict";var _0=Object.prototype.toString;tf.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=_0.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var Hi=c((ky,nf)=>{"use strict";var E0=rf();nf.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=E0(e),i}});var Ui=c(Wt=>{Wt.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||Wt.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Wt.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
|
|
28
|
-
`).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,
|
|
29
|
-
`),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:
|
|
30
|
-
`),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:
|
|
31
|
-
`));
|
|
32
|
-
`))}_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 Zi(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(un.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});wf.exports=un});var Qi=c((Zy,_f)=>{"use strict";var{LEVEL:G0}=W(),W0=en(),H0=on(),U0=kt()("winston:create-logger");function z0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}_f.exports=function(t={}){t.levels=t.levels||W0.npm.levels;class e extends H0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(U0('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[a]=i,o=a&&a.message&&a||{message:a};return o.level=o[G0]=n,s._addDefaultMeta(o),s.write(o),this||r}return i.length===0?(s.log(n,""),s):s.log(n,...i)},e.prototype[z0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var Sf=c((Xy,Ef)=>{"use strict";var Y0=Qi();Ef.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=Y0(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 Of=c(N=>{"use strict";var xf=Gn(),{warn:Ht}=Wn();N.version=Va().version;N.transports=Kl();N.config=en();N.addColors=xf.levels;N.format=xf.format;N.createLogger=Qi();N.Logger=on();N.ExceptionHandler=Yi();N.RejectionHandler=Ki();N.Container=Sf();N.Transport=ut();N.loggers=new N.Container;var _e=N.createLogger();Object.keys(N.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>N[t]=(...e)=>_e[t](...e));Object.defineProperty(N,"level",{get(){return _e.level},set(t){_e.level=t}});Object.defineProperty(N,"exceptions",{get(){return _e.exceptions}});Object.defineProperty(N,"rejections",{get(){return _e.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(N,t,{get(){return _e[t]},set(e){_e[t]=e}})});Object.defineProperty(N,"default",{get(){return{exceptionHandlers:_e.exceptionHandlers,rejectionHandlers:_e.rejectionHandlers,transports:_e.transports}}});Ht.deprecated(N,"setLevels");Ht.forFunctions(N,"useFormat",["cli"]);Ht.forProperties(N,"useFormat",["padLevels","stripColors"]);Ht.forFunctions(N,"deprecated",["addRewriter","addFilter","clone","extend"]);Ht.forProperties(N,"deprecated",["emitErrs","levelLength"])});var qf=c((Ut,Af)=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=void 0;var J0={printWidth:100,tabWidth:2,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,arrowParens:"avoid",plugins:["@trivago/prettier-plugin-sort-imports","prettier-plugin-sh","prettier-plugin-pkg","prettier-plugin-toml","prettier-plugin-nginx"],overrides:[{files:["*.toml.template"],options:{parser:"toml"}},{files:["*.nginxconf","nginx*.conf","nginx*.conf.template"],options:{parser:"nginx"}},{files:[".env",".env.*"],options:{parser:"sh"}}],importOrder:["(^react(.*)|^next(.*))$","<THIRD_PARTY_MODULES>","^[./]"],importOrderSeparation:!0,importOrderSortSpecifiers:!0,importOrderParserPlugins:["typescript","jsx","decorators-legacy"]},ob=Ut.default=J0;Af.exports=Ut.default});var Cf=c((mb,Pf)=>{Pf.exports=function(t,e){for(var r=[],n=0;n<t.length;n++){var i=e(t[n],n);tv(i)?r.push.apply(r,i):r.push(i)}return r};var tv=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var Df=c((vb,Ff)=>{"use strict";Ff.exports=Lf;function Lf(t,e,r){t instanceof RegExp&&(t=jf(t,r)),e instanceof RegExp&&(e=jf(e,r));var n=Nf(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function jf(t,e){var r=e.match(t);return r?r[0]:null}Lf.range=Nf;function Nf(t,e,r){var n,i,s,a,o,u=r.indexOf(t),l=r.indexOf(e,u+1),h=u;if(u>=0&&l>0){if(t===e)return[u,l];for(n=[],s=r.length;h>=0&&!o;)h==u?(n.push(h),u=r.indexOf(t,h+1)):n.length==1?o=[n.pop(),l]:(i=n.pop(),i<s&&(s=i,a=l),l=r.indexOf(e,h+1)),h=u<l&&u>=0?u:l;n.length&&(o=[s,a])}return o}});var Uf=c((yb,Hf)=>{var rv=Cf(),$f=Df();Hf.exports=sv;var kf="\0SLASH"+Math.random()+"\0",If="\0OPEN"+Math.random()+"\0",rs="\0CLOSE"+Math.random()+"\0",Bf="\0COMMA"+Math.random()+"\0",Gf="\0PERIOD"+Math.random()+"\0";function ts(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function nv(t){return t.split("\\\\").join(kf).split("\\{").join(If).split("\\}").join(rs).split("\\,").join(Bf).split("\\.").join(Gf)}function iv(t){return t.split(kf).join("\\").split(If).join("{").split(rs).join("}").split(Bf).join(",").split(Gf).join(".")}function Wf(t){if(!t)return[""];var e=[],r=$f("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var o=Wf(s);return s.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),e.push.apply(e,a),e}function sv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),dt(nv(t),!0).map(iv)):[]}function av(t){return"{"+t+"}"}function ov(t){return/^-?0\d/.test(t)}function uv(t,e){return t<=e}function lv(t,e){return t>=e}function dt(t,e){var r=[],n=$f("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),a=i||s,o=n.body.indexOf(",")>=0;if(!a&&!o)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+rs+n.post,dt(t)):[t];var u;if(a)u=n.body.split(/\.\./);else if(u=Wf(n.body),u.length===1&&(u=dt(u[0],!1).map(av),u.length===1)){var h=n.post.length?dt(n.post,!1):[""];return h.map(function(B){return n.pre+u[0]+B})}var l=n.pre,h=n.post.length?dt(n.post,!1):[""],d;if(a){var g=ts(u[0]),v=ts(u[1]),f=Math.max(u[0].length,u[1].length),m=u.length==3?Math.abs(ts(u[2])):1,E=uv,y=v<g;y&&(m*=-1,E=lv);var _=u.some(ov);d=[];for(var b=g;E(b,v);b+=m){var w;if(s)w=String.fromCharCode(b),w==="\\"&&(w="");else if(w=String(b),_){var q=f-w.length;if(q>0){var j=new Array(q+1).join("0");b<0?w="-"+j+w.slice(1):w=j+w}}d.push(w)}}else d=rv(u,function($){return dt($,!1)});for(var R=0;R<d.length;R++)for(var P=0;P<h.length;P++){var M=l+d[R]+h[P];(!e||a||M)&&r.push(M)}return r}});var ss=c((bb,Jf)=>{Jf.exports=se;se.Minimatch=H;var zt=function(){try{return require("path")}catch{}}()||{sep:"/"};se.sep=zt.sep;var Ve=se.GLOBSTAR=H.GLOBSTAR={},fv=Uf(),zf={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ns="[^/]",is=ns+"*?",cv="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",hv="(?:(?!(?:\\/|^)\\.).)*?",Yf=dv("().*{}+?[]^$\\!");function dv(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var Vf=/\/+/;se.filter=pv;function pv(t,e){return e=e||{},function(r,n,i){return se(r,t,e)}}function Le(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(n){r[n]=t[n]}),Object.keys(e).forEach(function(n){r[n]=e[n]}),r}se.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return se;var e=se,r=function(i,s,a){return e(i,s,Le(t,a))};return r.Minimatch=function(i,s){return new e.Minimatch(i,Le(t,s))},r.Minimatch.defaults=function(i){return e.defaults(Le(t,i)).Minimatch},r.filter=function(i,s){return e.filter(i,Le(t,s))},r.defaults=function(i){return e.defaults(Le(t,i))},r.makeRe=function(i,s){return e.makeRe(i,Le(t,s))},r.braceExpand=function(i,s){return e.braceExpand(i,Le(t,s))},r.match=function(n,i,s){return e.match(n,i,Le(t,s))},r};H.defaults=function(t){return se.defaults(t).Minimatch};function se(t,e,r){return cn(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new H(e,r).match(t)}function H(t,e){if(!(this instanceof H))return new H(t,e);cn(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&zt.sep!=="/"&&(t=t.split(zt.sep).join("/")),this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion!==void 0?e.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}H.prototype.debug=function(){};H.prototype.make=gv;function gv(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(Vf)}),this.debug(this.pattern,r),r=r.map(function(n,i,s){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}H.prototype.parseNegate=mv;function mv(){var t=this.pattern,e=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,s=t.length;i<s&&t.charAt(i)==="!";i++)e=!e,n++;n&&(this.pattern=t.substr(n)),this.negate=e}}se.braceExpand=function(t,e){return Kf(t,e)};H.prototype.braceExpand=Kf;function Kf(t,e){return e||(this instanceof H?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,cn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:fv(t)}var vv=1024*64,cn=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>vv)throw new TypeError("pattern is too long")};H.prototype.parse=yv;var fn={};function yv(t,e){cn(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return Ve;if(t==="")return"";var n="",i=!!r.nocase,s=!1,a=[],o=[],u,l=!1,h=-1,d=-1,g=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=this;function f(){if(u){switch(u){case"*":n+=is,i=!0;break;case"?":n+=ns,i=!0;break;default:n+="\\"+u;break}v.debug("clearStateChar %j %j",u,n),u=!1}}for(var m=0,E=t.length,y;m<E&&(y=t.charAt(m));m++){if(this.debug("%s %s %s %j",t,m,n,y),s&&Yf[y]){n+="\\"+y,s=!1;continue}switch(y){case"/":return!1;case"\\":f(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,m,n,y),l){this.debug(" in class"),y==="!"&&m===d+1&&(y="^"),n+=y;continue}if(y==="*"&&u==="*")continue;v.debug("call clearStateChar %j",u),f(),u=y,r.noext&&f();continue;case"(":if(l){n+="(";continue}if(!u){n+="\\(";continue}a.push({type:u,start:m-1,reStart:n.length,open:zf[u].open,close:zf[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(l||!a.length){n+="\\)";continue}f(),i=!0;var _=a.pop();n+=_.close,_.type==="!"&&o.push(_),_.reEnd=n.length;continue;case"|":if(l||!a.length||s){n+="\\|",s=!1;continue}f(),n+="|";continue;case"[":if(f(),l){n+="\\"+y;continue}l=!0,d=m,h=n.length,n+=y;continue;case"]":if(m===d+1||!l){n+="\\"+y,s=!1;continue}var b=t.substring(d+1,m);try{RegExp("["+b+"]")}catch{var w=this.parse(b,fn);n=n.substr(0,h)+"\\["+w[0]+"\\]",i=i||w[1],l=!1;continue}i=!0,l=!1,n+=y;continue;default:f(),s?s=!1:Yf[y]&&!(y==="^"&&l)&&(n+="\\"),n+=y}}for(l&&(b=t.substr(d+1),w=this.parse(b,fn),n=n.substr(0,h)+"\\["+w[0],i=i||w[1]),_=a.pop();_;_=a.pop()){var q=n.slice(_.reStart+_.open.length);this.debug("setting tail",n,_),q=q.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(O,re,le){return le||(le="\\"),re+re+le+"|"}),this.debug(`tail=%j
|
|
33
|
-
%s`,q,q,_,n);var j=_.type==="*"?is:_.type==="?"?ns:"\\"+_.type;i=!0,n=n.slice(0,_.reStart)+j+"\\("+q}f(),s&&(n+="\\\\");var R=!1;switch(n.charAt(0)){case"[":case".":case"(":R=!0}for(var P=o.length-1;P>-1;P--){var M=o[P],$=n.slice(0,M.reStart),B=n.slice(M.reStart,M.reEnd-8),G=n.slice(M.reEnd-8,M.reEnd),U=n.slice(M.reEnd);G+=U;var Z=$.split("(").length-1,me=U;for(m=0;m<Z;m++)me=me.replace(/\)[+*?]?/,"");U=me;var p="";U===""&&e!==fn&&(p="$");var S=$+B+U+p+G;n=S}if(n!==""&&i&&(n="(?=.)"+n),R&&(n=g+n),e===fn)return[n,i];if(!i)return wv(t);var L=r.nocase?"i":"";try{var Y=new RegExp("^"+n+"$",L)}catch{return new RegExp("$.")}return Y._glob=t,Y._src=n,Y}se.makeRe=function(t,e){return new H(t,e||{}).makeRe()};H.prototype.makeRe=bv;function bv(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?is:e.dot?cv:hv,n=e.nocase?"i":"",i=t.map(function(s){return s.map(function(a){return a===Ve?r:typeof a=="string"?_v(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}se.match=function(t,e,r){r=r||{};var n=new H(e,r);return t=t.filter(function(i){return n.match(i)}),n.options.nonull&&!t.length&&t.push(e),t};H.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;zt.sep!=="/"&&(e=e.split(zt.sep).join("/")),e=e.split(Vf),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<i.length;a++){var o=i[a],u=e;n.matchBase&&o.length===1&&(u=[s]);var l=this.matchOne(u,o,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};H.prototype.matchOne=function(t,e,r){return e.indexOf(Ve)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};H.prototype._matchGlobstar=function(t,e,r,n,i){var s,a=-1;for(s=i;s<e.length;s++)if(e[s]===Ve){a=s;break}var o=-1;for(s=e.length-1;s>=0;s--)if(e[s]===Ve){o=s;break}var u=e.slice(i,a),l=r?e.slice(a+1):e.slice(a+1,o),h=r?[]:e.slice(o+1);if(u.length){var d=t.slice(n,n+u.length);if(!this._matchOne(d,u,r,0,0))return!1;n+=u.length}var g=0;if(h.length){if(h.length+n>t.length)return!1;var v=t.length-h.length;if(this._matchOne(t,h,r,v,0))g=h.length;else{if(t[t.length-1]!==""||n+h.length===t.length||(v--,!this._matchOne(t,h,r,v,0)))return!1;g=h.length+1}}if(!l.length){var f=!!g;for(s=n;s<t.length-g;s++){var m=String(t[s]);if(f=!0,m==="."||m===".."||!this.options.dot&&m.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],y=E[0],_=0,b=[0],w=0;w<l.length;w++){var q=l[w];q===Ve?(b.push(_),y=[[],0],E.push(y)):(y[0].push(q),_++)}for(var j=E.length-1,R=t.length-g,P=0;P<E.length;P++)E[P][1]=R-(b[j--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!g)};H.prototype._matchGlobStarBodySections=function(t,e,r,n,i,s,a){var o=e[n];if(!o){for(var u=r;u<t.length;u++){a=!0;var l=t[u];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1}return a}for(var h=o[0],d=o[1];r<=d;){var g=this._matchOne(t.slice(0,r+h.length),h,i,r,0);if(g&&s<this.maxGlobstarRecursion){var v=this._matchGlobStarBodySections(t,e,r+h.length,n+1,i,s+1,a);if(v!==!1)return v}var l=t[r];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1;r++}return i||null};H.prototype._matchOne=function(t,e,r,n,i){var s,a,o,u;for(s=n,a=i,o=t.length,u=e.length;s<o&&a<u;s++,a++){this.debug("matchOne loop");var l=e[a],h=t[s];if(this.debug(e,l,h),l===!1||l===Ve)return!1;var d;if(typeof l=="string"?(d=h===l,this.debug("string match",l,h,d)):(d=h.match(l),this.debug("pattern match",l,h,d)),!d)return!1}if(s===o&&a===u)return!0;if(s===o)return r;if(a===u)return s===o-1&&t[s]==="";throw new Error("wtf?")};function wv(t){return t.replace(/\\(.)/g,"$1")}function _v(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Qf=c((wb,Zf)=>{"use strict";var Ev=ss();Zf.exports=function(){function t(e){this.matchers=e.map(function(r){return typeof r=="string"?new Ev.Minimatch(r):r})}return t.prototype.match=function(e){for(var r=0;r<this.matchers.length;r++)if(this.matchers[r].match(e))return!0;return!1},t.prototype.mayContain=function(e){for(var r=e.split(/\/|\\/g).filter(Boolean),n=0;n<this.matchers.length;n++)for(var i=this.matchers[n],s=0;s<i.set.length;s++)if(i.matchOne(r,i.set[s],!0))return!0;return!1},t}()});var tc=c((_b,ec)=>{"use strict";var Xf=require("path");ec.exports=function(e){return Xf.sep!=="/"?e.split(Xf.sep).join("/"):e}});var us=c((Eb,ac)=>{"use strict";var ic=require("fs"),rc=Qf(),Sv=tc(),xv=require("path"),Ov=ss();function Yt(t,e){let r=sc(e),n;return r.includeBasePath?n=function(i){return i.basePath.split(xv.sep).join("/").replace(/\/+$/,"")+"/"+i.relativePath}:n=function(i){return i.relativePath},os(t,r,null,[]).map(n)}function Mv(t,e=ic){try{return e.statSync(t)}catch(r){if(r!==null&&typeof r=="object"&&(r.code==="ENOENT"||r.code==="ENOTDIR"||r.code==="EPERM"))return;throw r}}(function(t){function e(n,i){let s=sc(i);return os(Sv(n),s,null,[])}t.entries=e;class r{constructor(i,s,a,o,u){this.relativePath=i,this.basePath=s,this.mode=a,this.size=o,this.mtime=u}get fullPath(){return`${this.basePath}/${this.relativePath}`}isDirectory(){return(this.mode&61440)===16384}}t.Entry=r})(Yt||(Yt={}));function as(t){return typeof t<"u"}function sc(t){let e={};return Array.isArray(t)?e.globs=t:t&&(e=t),e}function nc(t,e){return t?.map(r=>typeof r=="string"?new Ov.Minimatch(r,e):r)}function Rv(t){return t==null?"":t.slice(-1)!=="/"?t+"/":t}function Tv(t,e){let r=t.relativePath,n=e.relativePath;return r===n?0:r<n?-1:1}function os(t,e,r,n){var i;let s=(i=e.fs)!==null&&i!==void 0?i:ic,a=Rv(r),o=s.realpathSync(t+"/"+a);if(n.indexOf(o)>=0)return[];n.push(o);try{let u=e.globOptions,l=as(u)?nc(e.ignore,u):e.ignore,h=as(u)?nc(e.globs,u):e.globs,d,g,v=[];if(l&&(g=new rc(l)),h&&(d=new rc(h)),d&&!d.mayContain(a))return v;let E=s.readdirSync(t+"/"+a).map(y=>{let _=a+y;if(g&&g.match(_))return;let b=t+"/"+_,w=Mv(b,s);return w&&w.isDirectory()?new Yt.Entry(_+"/",t,w.mode,w.size,w.mtime.getTime()):new Yt.Entry(_,t,w&&w.mode||0,w&&w.size||0,w&&w.mtime.getTime()||0)}).filter(as).sort(Tv);for(let y=0;y<E.length;++y){let _=E[y];_.isDirectory()?(e.directories!==!1&&(!d||d.match(_.relativePath))&&v.push(_),v=v.concat(os(t,e,_.relativePath,n))):(!d||d.match(_.relativePath))&&v.push(_)}return v}finally{n.pop()}}ac.exports=Yt});var gs=(t=0)=>e=>`\x1B[${e+t}m`,ms=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,vs=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,F={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},kv=Object.keys(F.modifier),bc=Object.keys(F.color),wc=Object.keys(F.bgColor),Iv=[...bc,...wc];function _c(){let t=new Map;for(let[e,r]of Object.entries(F)){for(let[n,i]of Object.entries(r))F[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=F[n],t.set(i[0],i[1]);Object.defineProperty(F,e,{value:r,enumerable:!1})}return Object.defineProperty(F,"codes",{value:t,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",F.color.ansi=gs(),F.color.ansi256=ms(),F.color.ansi16m=vs(),F.bgColor.ansi=gs(10),F.bgColor.ansi256=ms(10),F.bgColor.ansi16m=vs(10),Object.defineProperties(F,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?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)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>F.rgbToAnsi256(...F.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let o=e%36;r=Math.floor(e/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>F.ansi256ToAnsi(F.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>F.ansi256ToAnsi(F.hexToAnsi256(e)),enumerable:!1}}),F}var Ec=_c(),ce=Ec;var Xt=Se(require("node:process"),1),bs=Se(require("node:os"),1),gn=Se(require("node:tty"),1);function ae(t,e=globalThis.Deno?globalThis.Deno.args:Xt.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:D}=Xt.default,Qt;ae("no-color")||ae("no-colors")||ae("color=false")||ae("color=never")?Qt=0:(ae("color")||ae("colors")||ae("color=true")||ae("color=always"))&&(Qt=1);function Sc(){if("FORCE_COLOR"in D)return D.FORCE_COLOR==="true"?1:D.FORCE_COLOR==="false"?0:D.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(D.FORCE_COLOR,10),3)}function xc(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Oc(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Sc();n!==void 0&&(Qt=n);let i=r?Qt:n;if(i===0)return 0;if(r){if(ae("color=16m")||ae("color=full")||ae("color=truecolor"))return 3;if(ae("color=256"))return 2}if("TF_BUILD"in D&&"AGENT_NAME"in D)return 1;if(t&&!e&&i===void 0)return 0;let s=i||0;if(D.TERM==="dumb")return s;if(Xt.default.platform==="win32"){let a=bs.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in D)return"GITHUB_ACTIONS"in D||"GITEA_ACTIONS"in D?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in D)||D.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in D)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(D.TEAMCITY_VERSION)?1:0;if(D.COLORTERM==="truecolor"||D.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in D){let a=Number.parseInt((D.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(D.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(D.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(D.TERM)||"COLORTERM"in D?1:s}function ys(t,e={}){let r=Oc(t,{streamIsTTY:t&&t.isTTY,...e});return xc(r)}var Mc={stdout:ys({isTTY:gn.default.isatty(1)}),stderr:ys({isTTY:gn.default.isatty(2)})},ws=Mc;function _s(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,a="";do a+=t.slice(s,n)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return a+=t.slice(s),a}function Es(t,e,r,n){let i=0,s="";do{let a=t[n-1]==="\r";s+=t.slice(i,a?n-1:n)+e+(a?`\r
|
|
5
|
+
`),Error.captureStackTrace(this,t)}};rs.exports=t=>{if(t.length>2)throw new sn(t);function e(n={}){this.options=n}e.prototype.transform=t;function r(n){return new e(n)}return r.Format=e,r}});var os=f((K0,ss)=>{var is={};ss.exports=is;var ns={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(ns).forEach(function(t){var e=ns[t],r=is[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var us=f((J0,as)=>{"use strict";as.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 cs=f((Z0,ls)=>{"use strict";var sc=require("os"),ae=us(),J=process.env,Ke=void 0;ae("no-color")||ae("no-colors")||ae("color=false")?Ke=!1:(ae("color")||ae("colors")||ae("color=true")||ae("color=always"))&&(Ke=!0);"FORCE_COLOR"in J&&(Ke=J.FORCE_COLOR.length===0||parseInt(J.FORCE_COLOR,10)!==0);function oc(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function ac(t){if(Ke===!1)return 0;if(ae("color=16m")||ae("color=full")||ae("color=truecolor"))return 3;if(ae("color=256"))return 2;if(t&&!t.isTTY&&Ke!==!0)return 0;var e=Ke?1:0;if(process.platform==="win32"){var r=sc.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 J)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in J})||J.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in J){var n=parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:(J.TERM==="dumb",e)}function on(t){var e=ac(t);return oc(e)}ls.exports={supportsColor:on,stdout:on(process.stdout),stderr:on(process.stderr)}});var hs=f((Q0,fs)=>{fs.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 ps=f((X0,ds)=>{ds.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 v=["up","mid","down"];for(var c in v)for(var b=v[c],w=0;w<=g[b];w++)l[b]&&(d=d+n[b][s(n[b].length)])}return d}return a(e,r)}});var ms=f((em,gs)=>{gs.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 ys=f((tm,bs)=>{bs.exports=function(t){return function(e,r,n){return r%2===0?e:t.inverse(e)}}});var vs=f((rm,_s)=>{_s.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 Es=f((nm,ws)=>{ws.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 Ts=f((sm,Rs)=>{var M={};Rs.exports=M;M.themes={};var uc=require("util"),Ne=M.styles=os(),xs=Object.defineProperties,lc=new RegExp(/[\r\n]+/g);M.supportsColor=cs().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 im=M.stylize=function(e,r){if(!M.enabled)return e+"";var n=Ne[r];return!n&&r in M?M[r](e):n.open+e+n.close},cc=/[|\\{}()[\]^$+*?.]/g,fc=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(cc,"\\$&")};function Ms(t){var e=function r(){return dc.apply(r,arguments)};return e._styles=t,e.__proto__=hc,e}var Os=function(){var t={};return Ne.grey=Ne.gray,Object.keys(Ne).forEach(function(e){Ne[e].closeRe=new RegExp(fc(Ne[e].close),"g"),t[e]={get:function(){return Ms(this._styles.concat(e))}}}),t}(),hc=xs(function(){},Os);function dc(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:uc.inspect(o)}).join(" ");if(!M.enabled||!e)return e;for(var r=e.indexOf(`
|
|
6
|
+
`)!=-1,n=this._styles,i=n.length;i--;){var s=Ne[n[i]];e=s.open+e.replace(s.closeRe,s.open)+s.close,r&&(e=e.replace(lc,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 pc(){var t={};return Object.keys(Os).forEach(function(e){t[e]={get:function(){return Ms([e])}}}),t}var gc=function(e,r){var n=r.split("");return n=n.map(e),n.join("")};M.trap=hs();M.zalgo=ps();M.maps={};M.maps.america=ms()(M);M.maps.zebra=ys()(M);M.maps.rainbow=vs()(M);M.maps.random=Es()(M);for(Ss in M.maps)(function(t){M[t]=function(e){return gc(M.maps[t],e)}})(Ss);var Ss;xs(M,pc())});var an=f((om,qs)=>{var mc=Ts();qs.exports=mc});var As=f(un=>{"use strict";un.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};un.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var Ls=f(ln=>{"use strict";ln.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};ln.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var Ns=f(cn=>{"use strict";cn.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};cn.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var js=f(Vt=>{"use strict";Object.defineProperty(Vt,"cli",{value:As()});Object.defineProperty(Vt,"npm",{value:Ls()});Object.defineProperty(Vt,"syslog",{value:Ns()})});var $=f(pt=>{"use strict";Object.defineProperty(pt,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(pt,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(pt,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(pt,"configs",{value:js()})});var Zt=f((hm,Jt)=>{"use strict";var dn=an(),{LEVEL:fn,MESSAGE:hn}=$();dn.enabled=!0;var Cs=/\s+/,Kt=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]=Cs.test(e[i])?e[i].split(Cs):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 dn[t.allColors[e]](n);for(let i=0,s=t.allColors[e].length;i<s;i++)n=dn[t.allColors[e][i]](n);return n}transform(e,r){return r.all&&typeof e[hn]=="string"&&(e[hn]=this.colorize(e[fn],e.level,e[hn])),(r.level||r.all||!r.message)&&(e.level=this.colorize(e[fn],e.level)),(r.all||r.message)&&(e.message=this.colorize(e[fn],e.level,e.message)),e}};Jt.exports=t=>new Kt(t);Jt.exports.Colorizer=Jt.exports.Format=Kt});var Ds=f((dm,Ps)=>{"use strict";var{Colorizer:bc}=Zt();Ps.exports=t=>(bc.addColors(t.colors||t),t)});var Fs=f((pm,Is)=>{"use strict";var yc=Q();Is.exports=yc(t=>(t.message=` ${t.message}`,t))});var Bs=f((gm,$s)=>{"use strict";var _c=Q(),{LEVEL:ks,MESSAGE:pn}=$();$s.exports=_c((t,{stack:e,cause:r})=>{if(t instanceof Error){let i=Object.assign({},t,{level:t.level,[ks]:t[ks]||t.level,message:t.message,[pn]:t[pn]||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[pn]=n.message,e&&(t.stack=n.stack),r&&(t.cause=n.cause),t})});var mn=f((mm,Xt)=>{"use strict";var{configs:vc,LEVEL:Hs,MESSAGE:gn}=$(),Qt=class t{constructor(e={levels:vc.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[Hs]]}${e.message}`,e[gn]&&(e[gn]=`${this.paddings[e[Hs]]}${e[gn]}`),e}};Xt.exports=t=>new Qt(t);Xt.exports.Padder=Xt.exports.Format=Qt});var Ws=f((bm,bn)=>{"use strict";var{Colorizer:wc}=Zt(),{Padder:Ec}=mn(),{configs:Sc,MESSAGE:xc}=$(),er=class{constructor(e={}){e.levels||(e.levels=Sc.cli.levels),this.colorizer=new wc(e),this.padder=new Ec(e),this.options=e}transform(e,r){return this.colorizer.transform(this.padder.transform(e,r),r),e[xc]=`${e.level}:${e.message}`,e}};bn.exports=t=>new er(t);bn.exports.Format=er});var Gs=f((ym,yn)=>{"use strict";var Mc=Q();function Us(t){if(t.every(Oc))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 Oc(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(`
|
|
7
|
+
`));return!0}yn.exports=(...t)=>{let e=Mc(Us(t)),r=e();return r.Format=e.Format,r};yn.exports.cascade=Us});var mt=f((En,Vs)=>{"use strict";var{hasOwnProperty:gt}=Object.prototype,Ce=wn();Ce.configure=wn;Ce.stringify=Ce;Ce.default=Ce;En.stringify=Ce;En.configure=wn;Vs.exports=Ce;var Rc=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Ee(t){return t.length<5e3&&!Rc.test(t)?`"${t}"`:JSON.stringify(t)}function _n(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 Tc=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function vn(t){return Tc.call(t)!==void 0&&t.length!==0}function Ys(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 qc(t){if(gt.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 Ac(t){let e;if(gt.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 Lc(t,e){let r;if(gt.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 zs(t,e){let r;if(gt.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 je(t){return t===1?"1 item":`${t} items`}function Nc(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}function jc(t){if(gt.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 wn(t){t={...t};let e=jc(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=qc(t),n=Lc(t,"bigint"),i=Ac(t),s=typeof i=="function"?i:void 0,o=zs(t,"maximumDepth"),a=zs(t,"maximumBreadth");function u(v,c,b,w,S,R){let _=c[v];switch(typeof _=="object"&&_!==null&&typeof _.toJSON=="function"&&(_=_.toJSON(v)),_=w.call(c,v,_),typeof _){case"string":return Ee(_);case"object":{if(_===null)return"null";if(b.indexOf(_)!==-1)return r;let O="",P=",",D=R;if(Array.isArray(_)){if(_.length===0)return"[]";if(o<b.length+1)return'"[Array]"';b.push(_),S!==""&&(R+=S,O+=`
|
|
8
|
+
${R}`,P=`,
|
|
9
|
+
${R}`);let z=Math.min(_.length,a),ee=0;for(;ee<z-1;ee++){let Ge=u(String(ee),_,b,w,S,R);O+=Ge!==void 0?Ge:"null",O+=P}let te=u(String(ee),_,b,w,S,R);if(O+=te!==void 0?te:"null",_.length-1>a){let Ge=_.length-a-1;O+=`${P}"... ${je(Ge)} not stringified"`}return S!==""&&(O+=`
|
|
10
|
+
${D}`),b.pop(),`[${O}]`}let A=Object.keys(_),I=A.length;if(I===0)return"{}";if(o<b.length+1)return'"[Object]"';let T="",Y="";S!==""&&(R+=S,P=`,
|
|
11
|
+
${R}`,T=" ");let K=Math.min(I,a);i&&!vn(_)&&(A=_n(A,s)),b.push(_);for(let z=0;z<K;z++){let ee=A[z],te=u(ee,_,b,w,S,R);te!==void 0&&(O+=`${Y}${Ee(ee)}:${T}${te}`,Y=P)}if(I>a){let z=I-a;O+=`${Y}"...":${T}"${je(z)} not stringified"`,Y=P}return S!==""&&Y.length>1&&(O=`
|
|
12
|
+
${R}${O}
|
|
13
|
+
${D}`),b.pop(),`{${O}}`}case"number":return isFinite(_)?String(_):e?e(_):"null";case"boolean":return _===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(_);default:return e?e(_):void 0}}function l(v,c,b,w,S,R){switch(typeof c=="object"&&c!==null&&typeof c.toJSON=="function"&&(c=c.toJSON(v)),typeof c){case"string":return Ee(c);case"object":{if(c===null)return"null";if(b.indexOf(c)!==-1)return r;let _=R,O="",P=",";if(Array.isArray(c)){if(c.length===0)return"[]";if(o<b.length+1)return'"[Array]"';b.push(c),S!==""&&(R+=S,O+=`
|
|
14
|
+
${R}`,P=`,
|
|
15
|
+
${R}`);let I=Math.min(c.length,a),T=0;for(;T<I-1;T++){let K=l(String(T),c[T],b,w,S,R);O+=K!==void 0?K:"null",O+=P}let Y=l(String(T),c[T],b,w,S,R);if(O+=Y!==void 0?Y:"null",c.length-1>a){let K=c.length-a-1;O+=`${P}"... ${je(K)} not stringified"`}return S!==""&&(O+=`
|
|
16
|
+
${_}`),b.pop(),`[${O}]`}b.push(c);let D="";S!==""&&(R+=S,P=`,
|
|
17
|
+
${R}`,D=" ");let A="";for(let I of w){let T=l(I,c[I],b,w,S,R);T!==void 0&&(O+=`${A}${Ee(I)}:${D}${T}`,A=P)}return S!==""&&A.length>1&&(O=`
|
|
18
|
+
${R}${O}
|
|
19
|
+
${_}`),b.pop(),`{${O}}`}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(v,c,b,w,S){switch(typeof c){case"string":return Ee(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(v),typeof c!="object")return d(v,c,b,w,S);if(c===null)return"null"}if(b.indexOf(c)!==-1)return r;let R=S;if(Array.isArray(c)){if(c.length===0)return"[]";if(o<b.length+1)return'"[Array]"';b.push(c),S+=w;let T=`
|
|
20
|
+
${S}`,Y=`,
|
|
21
|
+
${S}`,K=Math.min(c.length,a),z=0;for(;z<K-1;z++){let te=d(String(z),c[z],b,w,S);T+=te!==void 0?te:"null",T+=Y}let ee=d(String(z),c[z],b,w,S);if(T+=ee!==void 0?ee:"null",c.length-1>a){let te=c.length-a-1;T+=`${Y}"... ${je(te)} not stringified"`}return T+=`
|
|
22
|
+
${R}`,b.pop(),`[${T}]`}let _=Object.keys(c),O=_.length;if(O===0)return"{}";if(o<b.length+1)return'"[Object]"';S+=w;let P=`,
|
|
23
|
+
${S}`,D="",A="",I=Math.min(O,a);vn(c)&&(D+=Ys(c,P,a),_=_.slice(c.length),I-=c.length,A=P),i&&(_=_n(_,s)),b.push(c);for(let T=0;T<I;T++){let Y=_[T],K=d(Y,c[Y],b,w,S);K!==void 0&&(D+=`${A}${Ee(Y)}: ${K}`,A=P)}if(O>a){let T=O-a;D+=`${A}"...": "${je(T)} not stringified"`,A=P}return A!==""&&(D=`
|
|
24
|
+
${S}${D}
|
|
25
|
+
${R}`),b.pop(),`{${D}}`}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(v,c,b){switch(typeof c){case"string":return Ee(c);case"object":{if(c===null)return"null";if(typeof c.toJSON=="function"){if(c=c.toJSON(v),typeof c!="object")return g(v,c,b);if(c===null)return"null"}if(b.indexOf(c)!==-1)return r;let w="",S=c.length!==void 0;if(S&&Array.isArray(c)){if(c.length===0)return"[]";if(o<b.length+1)return'"[Array]"';b.push(c);let D=Math.min(c.length,a),A=0;for(;A<D-1;A++){let T=g(String(A),c[A],b);w+=T!==void 0?T:"null",w+=","}let I=g(String(A),c[A],b);if(w+=I!==void 0?I:"null",c.length-1>a){let T=c.length-a-1;w+=`,"... ${je(T)} not stringified"`}return b.pop(),`[${w}]`}let R=Object.keys(c),_=R.length;if(_===0)return"{}";if(o<b.length+1)return'"[Object]"';let O="",P=Math.min(_,a);S&&vn(c)&&(w+=Ys(c,",",a),R=R.slice(c.length),P-=c.length,O=","),i&&(R=_n(R,s)),b.push(c);for(let D=0;D<P;D++){let A=R[D],I=g(A,c[A],b);I!==void 0&&(w+=`${O}${Ee(A)}:${I}`,O=",")}if(_>a){let D=_-a;w+=`${O}"...":"${je(D)} not stringified"`}return b.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(v,c,b){if(arguments.length>1){let w="";if(typeof b=="number"?w=" ".repeat(Math.min(b,10)):typeof b=="string"&&(w=b.slice(0,10)),c!=null){if(typeof c=="function")return u("",{"":v},[],c,w,"");if(Array.isArray(c))return l("",v,[],Nc(c),w,"")}if(w.length!==0)return d("",v,[],w,"")}return g("",v,[])}return p}});var Sn=f((_m,Ks)=>{"use strict";var Cc=Q(),{MESSAGE:Pc}=$(),Dc=mt();function Ic(t,e){return typeof e=="bigint"?e.toString():e}Ks.exports=Cc((t,e)=>{let r=Dc.configure(e);return t[Pc]=r(t,e.replacer||Ic,e.space),t})});var Zs=f((vm,Js)=>{"use strict";var Fc=Q();Js.exports=Fc((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Xs=f((wm,Qs)=>{"use strict";var kc=Q(),{MESSAGE:$c}=$(),Bc=mt();Qs.exports=kc(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[$c]=Bc(e),t})});var to=f((Em,eo)=>{"use strict";var Hc=Q();function Wc(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 Uc(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}eo.exports=Hc((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?Wc(t,n,r):e.fillWith?Uc(t,e.fillWith,r):t})});var no=f((Sm,ro)=>{var Je=1e3,Ze=Je*60,Qe=Ze*60,Pe=Qe*24,Gc=Pe*7,Yc=Pe*365.25;ro.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return zc(t);if(r==="number"&&isFinite(t))return e.long?Kc(t):Vc(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function zc(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*Yc;case"weeks":case"week":case"w":return r*Gc;case"days":case"day":case"d":return r*Pe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Qe;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ze;case"seconds":case"second":case"secs":case"sec":case"s":return r*Je;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Vc(t){var e=Math.abs(t);return e>=Pe?Math.round(t/Pe)+"d":e>=Qe?Math.round(t/Qe)+"h":e>=Ze?Math.round(t/Ze)+"m":e>=Je?Math.round(t/Je)+"s":t+"ms"}function Kc(t){var e=Math.abs(t);return e>=Pe?tr(t,e,Pe,"day"):e>=Qe?tr(t,e,Qe,"hour"):e>=Ze?tr(t,e,Ze,"minute"):e>=Je?tr(t,e,Je,"second"):t+" ms"}function tr(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var so=f((bt,io)=>{"use strict";var Jc=Q(),Zc=no();io.exports=Jc(t=>{let e=+new Date;return bt.diff=e-(bt.prevTime||e),bt.prevTime=e,t.ms=`+${Zc(bt.diff)}`,t})});var uo=f((xm,ao)=>{"use strict";var Qc=require("util").inspect,Xc=Q(),{LEVEL:ef,MESSAGE:oo,SPLAT:tf}=$();ao.exports=Xc((t,e={})=>{let r=Object.assign({},t);return delete r[ef],delete r[oo],delete r[tf],t[oo]=Qc(r,!1,e.depth||null,e.colorize),t})});var lo=f((Mm,nr)=>{"use strict";var{MESSAGE:rf}=$(),rr=class{constructor(e){this.template=e}transform(e){return e[rf]=this.template(e),e}};nr.exports=t=>new rr(t);nr.exports.Printf=nr.exports.Format=rr});var ho=f((Om,fo)=>{"use strict";var nf=Q(),{MESSAGE:co}=$(),sf=mt();fo.exports=nf(t=>{let e=sf(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[co]=`${t.level}:${r} ${t.message} ${e}`:t[co]=`${t.level}:${r} ${t.message}`,t})});var mo=f((Rm,go)=>{"use strict";var of=require("util"),{SPLAT:po}=$(),af=/%[scdjifoO%]/g,uf=/%%/g,xn=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[po]||e.splat||[],s=n.match(uf),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=of.format(n,...i),e}transform(e){let r=e.message,n=e[po]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(af);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}};go.exports=t=>new xn(t)});var yo=f((ir,bo)=>{(function(t,e){typeof ir=="object"&&typeof bo<"u"?e(ir):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(ir,function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="\\d\\d?",n="\\d\\d",i="\\d{3}",s="\\d{4}",o="[^\\s]+",a=/\[([^]*?)\]/gm;function u(h,y){for(var N=[],Z=0,E=h.length;Z<E;Z++)N.push(h[Z].substr(0,y));return N}var l=function(h){return function(y,N){var Z=N[h].map(function(fe){return fe.toLowerCase()}),E=Z.indexOf(y.toLowerCase());return E>-1?E:null}};function d(h){for(var y=[],N=1;N<arguments.length;N++)y[N-1]=arguments[N];for(var Z=0,E=y;Z<E.length;Z++){var fe=E[Z];for(var Ae in fe)h[Ae]=fe[Ae]}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),c=u(g,3),b={dayNamesShort:c,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]}},w=d({},b),S=function(h){return w=d(w,h)},R=function(h){return h.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},_=function(h,y){for(y===void 0&&(y=2),h=String(h);h.length<y;)h="0"+h;return h},O={D:function(h){return String(h.getDate())},DD:function(h){return _(h.getDate())},Do:function(h,y){return y.DoFn(h.getDate())},d:function(h){return String(h.getDay())},dd:function(h){return _(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 _(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 _(String(h.getFullYear()),4).substr(2)},YYYY:function(h){return _(h.getFullYear(),4)},h:function(h){return String(h.getHours()%12||12)},hh:function(h){return _(h.getHours()%12||12)},H:function(h){return String(h.getHours())},HH:function(h){return _(h.getHours())},m:function(h){return String(h.getMinutes())},mm:function(h){return _(h.getMinutes())},s:function(h){return String(h.getSeconds())},ss:function(h){return _(h.getSeconds())},S:function(h){return String(Math.round(h.getMilliseconds()/100))},SS:function(h){return _(Math.round(h.getMilliseconds()/10),2)},SSS:function(h){return _(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?"-":"+")+_(Math.floor(Math.abs(y)/60)*100+Math.abs(y)%60,4)},Z:function(h){var y=h.getTimezoneOffset();return(y>0?"-":"+")+_(Math.floor(Math.abs(y)/60),2)+":"+_(Math.abs(y)%60,2)}},P=function(h){return+h-1},D=[null,r],A=[null,o],I=["isPm",o,function(h,y){var N=h.toLowerCase();return N===y.amPm[0]?0:N===y.amPm[1]?1:null}],T=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(h){var y=(h+"").match(/([+-]|\d\d)/gi);if(y){var N=+y[1]*60+parseInt(y[2],10);return y[0]==="+"?N:-N}return 0}],Y={D:["day",r],DD:["day",n],Do:["day",r+o,function(h){return parseInt(h,10)}],M:["month",r,P],MM:["month",n,P],YY:["year",n,function(h){var y=new Date,N=+(""+y.getFullYear()).substr(0,2);return+(""+(+h>68?N-1:N)+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:D,dd:D,ddd:A,dddd:A,MMM:["month",o,l("monthNamesShort")],MMMM:["month",o,l("monthNames")],a:I,A:I,ZZ:T,Z:T},K={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"},z=function(h){return d(K,h)},ee=function(h,y,N){if(y===void 0&&(y=K.default),N===void 0&&(N={}),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=K[y]||y;var Z=[];y=y.replace(a,function(fe,Ae){return Z.push(Ae),"@@@"});var E=d(d({},w),N);return y=y.replace(e,function(fe){return O[fe](h,E)}),y.replace(/@@@/g,function(){return Z.shift()})};function te(h,y,N){if(N===void 0&&(N={}),typeof y!="string")throw new Error("Invalid format in fecha parse");if(y=K[y]||y,h.length>1e3)return null;var Z=new Date,E={year:Z.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},fe=[],Ae=[],ct=y.replace(a,function(ft,Ye){return Ae.push(R(Ye)),"@@@"}),$t={},Fi={};ct=R(ct).replace(e,function(ft){var Ye=Y[ft],Xr=Ye[0],$l=Ye[1],Hi=Ye[3];if($t[Xr])throw new Error("Invalid format. "+Xr+" specified twice in format");return $t[Xr]=!0,Hi&&(Fi[Hi]=!0),fe.push(Ye),"("+$l+")"}),Object.keys(Fi).forEach(function(ft){if(!$t[ft])throw new Error("Invalid format. "+ft+" is required in specified format")}),ct=ct.replace(/@@@/g,function(){return Ae.shift()});var Bt=h.match(new RegExp(ct,"i"));if(!Bt)return null;for(var Il=d(d({},w),N),se=1;se<Bt.length;se++){var ki=fe[se-1],Fl=ki[0],$i=ki[2],Bi=$i?$i(Bt[se],Il):+Bt[se];if(Bi==null)return null;E[Fl]=Bi}E.isPm===1&&E.hour!=null&&+E.hour!=12?E.hour=+E.hour+12:E.isPm===0&&+E.hour==12&&(E.hour=0);var Ht;if(E.timezoneOffset==null){Ht=new Date(E.year,E.month,E.day,E.hour,E.minute,E.second,E.millisecond);for(var Wt=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],se=0,kl=Wt.length;se<kl;se++)if($t[Wt[se][0]]&&E[Wt[se][0]]!==Ht[Wt[se][1]]())return null}else if(Ht=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 Ht}var Ge={format:ee,parse:te,defaultI18n:b,setGlobalDateI18n:S,setGlobalDateMasks:z};t.assign=d,t.default=Ge,t.format=ee,t.parse=te,t.defaultI18n=b,t.setGlobalDateI18n=S,t.setGlobalDateMasks=z,Object.defineProperty(t,"__esModule",{value:!0})})});var vo=f((Tm,_o)=>{"use strict";var lf=yo(),cf=Q();_o.exports=cf((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():lf.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Eo=f((qm,wo)=>{"use strict";var Mn=an(),ff=Q(),{MESSAGE:On}=$();wo.exports=ff((t,e)=>(e.level!==!1&&(t.level=Mn.strip(t.level)),e.message!==!1&&(t.message=Mn.strip(String(t.message))),e.raw!==!1&&t[On]&&(t[On]=Mn.strip(String(t[On]))),t))});var Tn=f(Rn=>{"use strict";var hf=Rn.format=Q();Rn.levels=Ds();function V(t,e){Object.defineProperty(hf,t,{get(){return e()},configurable:!0})}V("align",function(){return Fs()});V("errors",function(){return Bs()});V("cli",function(){return Ws()});V("combine",function(){return Gs()});V("colorize",function(){return Zt()});V("json",function(){return Sn()});V("label",function(){return Zs()});V("logstash",function(){return Xs()});V("metadata",function(){return to()});V("ms",function(){return so()});V("padLevels",function(){return mn()});V("prettyPrint",function(){return uo()});V("printf",function(){return lo()});V("simple",function(){return ho()});V("splat",function(){return mo()});V("timestamp",function(){return vo()});V("uncolorize",function(){return Eo()})});var qn=f(sr=>{"use strict";var{format:So}=require("util");sr.warn={deprecated(t){return()=>{throw new Error(So("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([So("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
26
|
+
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=sr.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=sr.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var xo=f((Nm,df)=>{df.exports={name:"winston",description:"A logger for just about everything.",version:"3.19.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.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",jest:"^29.7.0",rimraf:"5.0.10",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:"jest","test:unit":"jest -c test/jest.config.unit.js","test:integration":"jest -c test/jest.config.integration.js","test:typescript":"npx --package typescript tsc --project test",build:"babel lib -d dist",prebuild:"rimraf dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var Oo=f((jm,Mo)=>{Mo.exports=require("util").deprecate});var An=f((Cm,Ro)=>{Ro.exports=require("stream")});var Nn=f((Pm,qo)=>{"use strict";function pf(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(Ln,this,t)):process.nextTick(Ln,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(or,r):(r._writableState.errorEmitted=!0,process.nextTick(To,r,s)):process.nextTick(To,r,s):e?(process.nextTick(or,r),e(s)):process.nextTick(or,r)}),this)}function To(t,e){Ln(t,e),or(t)}function or(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function gf(){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 Ln(t,e){t.emit("error",e)}function mf(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}qo.exports={destroy:pf,undestroy:gf,errorOrDestroy:mf}});var Se=f((Dm,No)=>{"use strict";var Lo={};function ne(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,Lo[t]=i}function Ao(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 bf(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function yf(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function _f(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ne("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ne("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&bf(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(yf(t," argument"))i=`The ${t} ${n} ${Ao(e,"type")}`;else{let s=_f(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${Ao(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ne("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ne("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ne("ERR_STREAM_PREMATURE_CLOSE","Premature close");ne("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ne("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ne("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ne("ERR_STREAM_WRITE_AFTER_END","write after end");ne("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ne("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ne("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");No.exports.codes=Lo});var jn=f((Im,jo)=>{"use strict";var vf=Se().codes.ERR_INVALID_OPT_VALUE;function wf(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Ef(t,e,r,n){var i=wf(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new vf(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}jo.exports={getHighWaterMark:Ef}});var Co=f((Fm,Cn)=>{typeof Object.create=="function"?Cn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Cn.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 Xe=f((km,Dn)=>{try{if(Pn=require("util"),typeof Pn.inherits!="function")throw"";Dn.exports=Pn.inherits}catch{Dn.exports=Co()}var Pn});var $o=f(($m,ko)=>{"use strict";function Po(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 Do(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Po(Object(r),!0).forEach(function(n){Sf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Sf(t,e,r){return e=Fo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Io(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,Fo(n.key),n)}}function Mf(t,e,r){return e&&Io(t.prototype,e),r&&Io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fo(t){var e=Of(t,"string");return typeof e=="symbol"?e:String(e)}function Of(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 Rf=require("buffer"),ar=Rf.Buffer,Tf=require("util"),In=Tf.inspect,qf=In&&In.custom||"inspect";function Af(t,e,r){ar.prototype.copy.call(t,e,r)}ko.exports=function(){function t(){xf(this,t),this.head=null,this.tail=null,this.length=0}return Mf(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 ar.alloc(0);for(var n=ar.allocUnsafe(r>>>0),i=this.head,s=0;i;)Af(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=ar.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:qf,value:function(r,n){return In(this,Do(Do({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var Wo=f((Fn,Ho)=>{var ur=require("buffer"),he=ur.Buffer;function Bo(t,e){for(var r in t)e[r]=t[r]}he.from&&he.alloc&&he.allocUnsafe&&he.allocUnsafeSlow?Ho.exports=ur:(Bo(ur,Fn),Fn.Buffer=De);function De(t,e,r){return he(t,e,r)}De.prototype=Object.create(he.prototype);Bo(he,De);De.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return he(t,e,r)};De.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=he(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};De.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return he(t)};De.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ur.SlowBuffer(t)}});var Bn=f(Go=>{"use strict";var $n=Wo().Buffer,Uo=$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 Lf(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 Nf(t){var e=Lf(t);if(typeof e!="string"&&($n.isEncoding===Uo||!Uo(t)))throw new Error("Unknown encoding: "+t);return e||t}Go.StringDecoder=yt;function yt(t){this.encoding=Nf(t);var e;switch(this.encoding){case"utf16le":this.text=Ff,this.end=kf,e=4;break;case"utf8":this.fillLast=Pf,e=4;break;case"base64":this.text=$f,this.end=Bf,e=3;break;default:this.write=Hf,this.end=Wf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$n.allocUnsafe(e)}yt.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||""};yt.prototype.end=If;yt.prototype.text=Df;yt.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 kn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function jf(t,e,r){var n=e.length-1;if(n<r)return 0;var i=kn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=kn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=kn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function Cf(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 Pf(t){var e=this.lastTotal-this.lastNeed,r=Cf(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 Df(t,e){var r=jf(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 If(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Ff(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 kf(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 $f(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 Bf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Hf(t){return t.toString(this.encoding)}function Wf(t){return t&&t.length?this.write(t):""}});var lr=f((Hm,Vo)=>{"use strict";var Yo=Se().codes.ERR_STREAM_PREMATURE_CLOSE;function Uf(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 Gf(){}function Yf(t){return t.setHeader&&typeof t.abort=="function"}function zo(t,e,r){if(typeof e=="function")return zo(t,null,e);e||(e={}),r=Uf(r||Gf);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 Yo),r.call(t,c);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(c=new Yo),r.call(t,c)},p=function(){t.req.on("finish",a)};return Yf(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)}}Vo.exports=zo});var Jo=f((Wm,Ko)=>{"use strict";var cr;function xe(t,e,r){return e=zf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zf(t){var e=Vf(t,"string");return typeof e=="symbol"?e:String(e)}function Vf(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 Kf=lr(),Me=Symbol("lastResolve"),Ie=Symbol("lastReject"),_t=Symbol("error"),fr=Symbol("ended"),Fe=Symbol("lastPromise"),Hn=Symbol("handlePromise"),ke=Symbol("stream");function Oe(t,e){return{value:t,done:e}}function Jf(t){var e=t[Me];if(e!==null){var r=t[ke].read();r!==null&&(t[Fe]=null,t[Me]=null,t[Ie]=null,e(Oe(r,!1)))}}function Zf(t){process.nextTick(Jf,t)}function Qf(t,e){return function(r,n){t.then(function(){if(e[fr]){r(Oe(void 0,!0));return}e[Hn](r,n)},n)}}var Xf=Object.getPrototypeOf(function(){}),eh=Object.setPrototypeOf((cr={get stream(){return this[ke]},next:function(){var e=this,r=this[_t];if(r!==null)return Promise.reject(r);if(this[fr])return Promise.resolve(Oe(void 0,!0));if(this[ke].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[_t]?a(e[_t]):o(Oe(void 0,!0))})});var n=this[Fe],i;if(n)i=new Promise(Qf(n,this));else{var s=this[ke].read();if(s!==null)return Promise.resolve(Oe(s,!1));i=new Promise(this[Hn])}return this[Fe]=i,i}},xe(cr,Symbol.asyncIterator,function(){return this}),xe(cr,"return",function(){var e=this;return new Promise(function(r,n){e[ke].destroy(null,function(i){if(i){n(i);return}r(Oe(void 0,!0))})})}),cr),Xf),th=function(e){var r,n=Object.create(eh,(r={},xe(r,ke,{value:e,writable:!0}),xe(r,Me,{value:null,writable:!0}),xe(r,Ie,{value:null,writable:!0}),xe(r,_t,{value:null,writable:!0}),xe(r,fr,{value:e._readableState.endEmitted,writable:!0}),xe(r,Hn,{value:function(s,o){var a=n[ke].read();a?(n[Fe]=null,n[Me]=null,n[Ie]=null,s(Oe(a,!1))):(n[Me]=s,n[Ie]=o)},writable:!0}),r));return n[Fe]=null,Kf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[Ie];s!==null&&(n[Fe]=null,n[Me]=null,n[Ie]=null,s(i)),n[_t]=i;return}var o=n[Me];o!==null&&(n[Fe]=null,n[Me]=null,n[Ie]=null,o(Oe(void 0,!0))),n[fr]=!0}),e.on("readable",Zf.bind(null,n)),n};Ko.exports=th});var ea=f((Um,Xo)=>{"use strict";function Zo(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 rh(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(u){Zo(s,n,i,o,a,"next",u)}function a(u){Zo(s,n,i,o,a,"throw",u)}o(void 0)})}}function Qo(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 nh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qo(Object(r),!0).forEach(function(n){ih(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ih(t,e,r){return e=sh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sh(t){var e=oh(t,"string");return typeof e=="symbol"?e:String(e)}function oh(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 ah=Se().codes.ERR_INVALID_ARG_TYPE;function uh(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 ah("iterable",["Iterable"],e);var i=new t(nh({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=rh(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}Xo.exports=uh});var Qn=f((Ym,ca)=>{"use strict";ca.exports=q;var et;q.ReadableState=ia;var Gm=require("events").EventEmitter,na=function(e,r){return e.listeners(r).length},wt=An(),hr=require("buffer").Buffer,lh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ch(t){return hr.from(t)}function fh(t){return hr.isBuffer(t)||t instanceof lh}var Wn=require("util"),x;Wn&&Wn.debuglog?x=Wn.debuglog("stream"):x=function(){};var hh=$o(),Jn=Nn(),dh=jn(),ph=dh.getHighWaterMark,dr=Se().codes,gh=dr.ERR_INVALID_ARG_TYPE,mh=dr.ERR_STREAM_PUSH_AFTER_EOF,bh=dr.ERR_METHOD_NOT_IMPLEMENTED,yh=dr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,tt,Un,Gn;Xe()(q,wt);var vt=Jn.errorOrDestroy,Yn=["error","close","destroy","pause","resume"];function _h(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 ia(t,e,r){et=et||$e(),t=t||{},typeof r!="boolean"&&(r=e instanceof et),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=ph(this,t,"readableHighWaterMark",r),this.buffer=new hh,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&&(tt||(tt=Bn().StringDecoder),this.decoder=new tt(t.encoding),this.encoding=t.encoding)}function q(t){if(et=et||$e(),!(this instanceof q))return new q(t);var e=this instanceof et;this._readableState=new ia(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),wt.call(this)}Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});q.prototype.destroy=Jn.destroy;q.prototype._undestroy=Jn.undestroy;q.prototype._destroy=function(t,e){e(t)};q.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=hr.from(t,e),e=""),n=!0),sa(this,t,e,!1,n)};q.prototype.unshift=function(t){return sa(this,t,null,!0,!1)};function sa(t,e,r,n,i){x("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,Eh(t,s);else{var o;if(i||(o=vh(s,e)),o)vt(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==hr.prototype&&(e=ch(e)),n)s.endEmitted?vt(t,new yh):zn(t,s,e,!0);else if(s.ended)vt(t,new mh);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?zn(t,s,e,!1):Kn(t,s)):zn(t,s,e,!1)}else n||(s.reading=!1,Kn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function zn(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&&pr(t)),Kn(t,e)}function vh(t,e){var r;return!fh(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new gh("chunk",["string","Buffer","Uint8Array"],e)),r}q.prototype.isPaused=function(){return this._readableState.flowing===!1};q.prototype.setEncoding=function(t){tt||(tt=Bn().StringDecoder);var e=new tt(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 ta=1073741824;function wh(t){return t>=ta?t=ta:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function ra(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=wh(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}q.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?Vn(this):pr(this),null;if(t=ra(t,e),t===0&&e.ended)return e.length===0&&Vn(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=ra(r,e)));var i;return t>0?i=ua(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&&Vn(this)),i!==null&&this.emit("data",i),i};function Eh(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?pr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,oa(t)))}}function pr(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(oa,t))}function oa(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,Zn(t)}function Kn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Sh,t,e))}function Sh(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}q.prototype._read=function(t){vt(this,new bh("_read()"))};q.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:b;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=xh(r);t.on("drain",u);var l=!1;function d(){x("cleanup"),t.removeListener("close",v),t.removeListener("finish",c),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),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&&la(n.pipes,t)!==-1)&&!l&&(x("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(w){x("onerror",w),b(),t.removeListener("error",p),na(t,"error")===0&&vt(t,w)}_h(t,"error",p);function v(){t.removeListener("finish",c),b()}t.once("close",v);function c(){x("onfinish"),t.removeListener("close",v),b()}t.once("finish",c);function b(){x("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(x("pipe resume"),r.resume()),t};function xh(t){return function(){var r=t._readableState;x("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&na(t,"data")&&(r.flowing=!0,Zn(t))}}q.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=la(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)};q.prototype.on=function(t,e){var r=wt.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?pr(this):n.reading||process.nextTick(Mh,this)),r};q.prototype.addListener=q.prototype.on;q.prototype.removeListener=function(t,e){var r=wt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(aa,this),r};q.prototype.removeAllListeners=function(t){var e=wt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(aa,this),e};function aa(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 Mh(t){x("readable nexttick read 0"),t.read(0)}q.prototype.resume=function(){var t=this._readableState;return t.flowing||(x("resume"),t.flowing=!t.readableListening,Oh(this,t)),t.paused=!1,this};function Oh(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Rh,t,e))}function Rh(t,e){x("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Zn(t),e.flowing&&!e.reading&&t.read(0)}q.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 Zn(t){var e=t._readableState;for(x("flow",e.flowing);e.flowing&&t.read()!==null;);}q.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<Yn.length;s++)t.on(Yn[s],this.emit.bind(this,Yn[s]));return this._read=function(o){x("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(q.prototype[Symbol.asyncIterator]=function(){return Un===void 0&&(Un=Jo()),Un(this)});Object.defineProperty(q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});q._fromList=ua;Object.defineProperty(q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ua(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 Vn(t){var e=t._readableState;x("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Th,e,t))}function Th(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"&&(q.from=function(t,e){return Gn===void 0&&(Gn=ea()),Gn(q,t,e)});function la(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var $e=f((zm,ha)=>{"use strict";var qh=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};ha.exports=de;var fa=Qn(),ei=br();Xe()(de,fa);for(Xn=qh(ei.prototype),gr=0;gr<Xn.length;gr++)mr=Xn[gr],de.prototype[mr]||(de.prototype[mr]=ei.prototype[mr]);var Xn,mr,gr;function de(t){if(!(this instanceof de))return new de(t);fa.call(this,t),ei.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",Ah)))}Object.defineProperty(de.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(de.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(de.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ah(){this._writableState.ended||process.nextTick(Lh,this)}function Lh(t){t.end()}Object.defineProperty(de.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 br=f((Vm,ya)=>{"use strict";ya.exports=F;function pa(t){var e=this;this.next=null,this.entry=null,this.finish=function(){id(e,t)}}var rt;F.WritableState=St;var Nh={deprecate:Oo()},ga=An(),_r=require("buffer").Buffer,jh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ch(t){return _r.from(t)}function Ph(t){return _r.isBuffer(t)||t instanceof jh}var ri=Nn(),Dh=jn(),Ih=Dh.getHighWaterMark,Re=Se().codes,Fh=Re.ERR_INVALID_ARG_TYPE,kh=Re.ERR_METHOD_NOT_IMPLEMENTED,$h=Re.ERR_MULTIPLE_CALLBACK,Bh=Re.ERR_STREAM_CANNOT_PIPE,Hh=Re.ERR_STREAM_DESTROYED,Wh=Re.ERR_STREAM_NULL_VALUES,Uh=Re.ERR_STREAM_WRITE_AFTER_END,Gh=Re.ERR_UNKNOWN_ENCODING,nt=ri.errorOrDestroy;Xe()(F,ga);function Yh(){}function St(t,e,r){rt=rt||$e(),t=t||{},typeof r!="boolean"&&(r=e instanceof rt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Ih(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){Xh(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 pa(this)}St.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(St.prototype,"buffer",{get:Nh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var yr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yr=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return yr.call(this,e)?!0:this!==F?!1:e&&e._writableState instanceof St}})):yr=function(e){return e instanceof this};function F(t){rt=rt||$e();var e=this instanceof rt;if(!e&&!yr.call(F,this))return new F(t);this._writableState=new St(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)),ga.call(this)}F.prototype.pipe=function(){nt(this,new Bh)};function zh(t,e){var r=new Uh;nt(t,r),process.nextTick(e,r)}function Vh(t,e,r,n){var i;return r===null?i=new Wh:typeof r!="string"&&!e.objectMode&&(i=new Fh("chunk",["string","Buffer"],r)),i?(nt(t,i),process.nextTick(n,i),!1):!0}F.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&Ph(t);return s&&!_r.isBuffer(t)&&(t=Ch(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Yh),n.ending?zh(this,r):(s||Vh(this,n,t,r))&&(n.pendingcb++,i=Jh(this,n,s,t,e,r)),i};F.prototype.cork=function(){this._writableState.corked++};F.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&ma(this,t))};F.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 Gh(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Kh(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=_r.from(e,r)),e}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Jh(t,e,r,n,i,s){if(!r){var o=Kh(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 ti(t,e,!1,a,n,i,s);return u}function ti(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Hh("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Zh(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(Et,t,e),t._writableState.errorEmitted=!0,nt(t,n)):(i(n),t._writableState.errorEmitted=!0,nt(t,n),Et(t,e))}function Qh(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Xh(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new $h;if(Qh(r),e)Zh(t,r,n,e,i);else{var s=ba(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ma(t,r),n?process.nextTick(da,t,r,s,i):da(t,r,s,i)}}function da(t,e,r,n){r||ed(t,e),e.pendingcb--,n(),Et(t,e)}function ed(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function ma(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,ti(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 pa(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback,g=e.objectMode?1:u.length;if(ti(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}F.prototype._write=function(t,e,r){r(new kh("_write()"))};F.prototype._writev=null;F.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||nd(this,n,r),this};Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ba(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function td(t,e){t._final(function(r){e.pendingcb--,r&&nt(t,r),e.prefinished=!0,t.emit("prefinish"),Et(t,e)})}function rd(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(td,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Et(t,e){var r=ba(e);if(r&&(rd(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 nd(t,e,r){e.ending=!0,Et(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function id(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(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});F.prototype.destroy=ri.destroy;F.prototype._undestroy=ri.undestroy;F.prototype._destroy=function(t,e){e(t)}});var ni=f((Km,wa)=>{"use strict";var sd=require("util"),_a=br(),{LEVEL:va}=$(),xt=wa.exports=function(e={}){_a.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())})};sd.inherits(xt,_a);xt.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[va]]){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)};xt.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)};xt.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[va]])&&(this.handleExceptions||r.exception!==!0))};xt.prototype._nop=function(){}});var si=f((Jm,Sa)=>{"use strict";var od=require("util"),{LEVEL:ii}=$(),Ea=ni(),Mt=Sa.exports=function(e={}){if(Ea.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))};od.inherits(Mt,Ea);Mt.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[ii]])&&this.transport.log(e[ii],e.message,e,this._nop),n(null)};Mt.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[ii],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};Mt.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(`
|
|
27
|
+
`))};Mt.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var it=f((Zm,oi)=>{"use strict";oi.exports=ni();oi.exports.LegacyTransportStream=si()});var Oa=f((Xm,Ma)=>{"use strict";var ad=require("os"),{LEVEL:xa,MESSAGE:st}=$(),ud=it();Ma.exports=class extends ud{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:ad.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[xa]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[st]}${this.eol}`):this._consoleError(e[st]),r&&r();return}else if(this.consoleWarnLevels[e[xa]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[st]}${this.eol}`):this._consoleWarn(e[st]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[st]}${this.eol}`):this._consoleLog(e[st]),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 wr=f((vr,Ra)=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.default=ld;function ld(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Ra.exports=vr.default});var qa=f((Er,Ta)=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Ta.exports=Er.default});var Na=f(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.fallback=Aa;Te.wrap=La;var cd=Te.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,fd=Te.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,hd=Te.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function Aa(t){setTimeout(t,0)}function La(t){return(e,...r)=>t(()=>e(...r))}var Ot;cd?Ot=queueMicrotask:fd?Ot=setImmediate:hd?Ot=process.nextTick:Ot=Aa;Te.default=La(Ot)});var Ia=f((Sr,Da)=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.default=yd;var dd=qa(),pd=Pa(dd),gd=Na(),md=Pa(gd),bd=Be();function Pa(t){return t&&t.__esModule?t:{default:t}}function yd(t){return(0,bd.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return ja(n,r)}:(0,pd.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return ja(n,r);r(null,n)})}function ja(t,e){return t.then(r=>{Ca(e,null,r)},r=>{Ca(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function Ca(t,e,r){try{t(e,r)}catch(n){(0,md.default)(i=>{throw i},n)}}Da.exports=Sr.default});var Be=f(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.isAsyncIterable=_e.isAsyncGenerator=_e.isAsync=void 0;var _d=Ia(),vd=wd(_d);function wd(t){return t&&t.__esModule?t:{default:t}}function Fa(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Ed(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Sd(t){return typeof t[Symbol.asyncIterator]=="function"}function xd(t){if(typeof t!="function")throw new Error("expected a function");return Fa(t)?(0,vd.default)(t):t}_e.default=xd;_e.isAsync=Fa;_e.isAsyncGenerator=Ed;_e.isAsyncIterable=Sd});var ot=f((xr,ka)=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.default=Md;function Md(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}ka.exports=xr.default});var Ba=f((Mr,$a)=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});var Od=wr(),Rd=ai(Od),Td=Be(),qd=ai(Td),Ad=ot(),Ld=ai(Ad);function ai(t){return t&&t.__esModule?t:{default:t}}Mr.default=(0,Ld.default)((t,e,r)=>{var n=(0,Rd.default)(e)?[]:{};t(e,(i,s,o)=>{(0,qd.default)(i)((a,...u)=>{u.length<2&&([u]=u),n[s]=u,o(a)})},i=>r(i,n))},3);$a.exports=Mr.default});var ui=f((Or,Ha)=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.default=Nd;function Nd(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}Ha.exports=Or.default});var Ua=f((Rr,Wa)=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};Wa.exports=Rr.default});var za=f((Tr,Ya)=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=$d;var jd=wr(),Cd=Ga(jd),Pd=Ua(),Dd=Ga(Pd);function Ga(t){return t&&t.__esModule?t:{default:t}}function Id(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Fd(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function kd(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 $d(t){if((0,Cd.default)(t))return Id(t);var e=(0,Dd.default)(t);return e?Fd(e):kd(t)}Ya.exports=Tr.default});var li=f((qr,Va)=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.default=Bd;function Bd(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}Va.exports=qr.default});var Lr=f((Ar,Ka)=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var Hd={};Ar.default=Hd;Ka.exports=Ar.default});var Za=f((Nr,Ja)=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.default=Yd;var Wd=Lr(),Ud=Gd(Wd);function Gd(t){return t&&t.__esModule?t:{default:t}}function Yd(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:v})=>{if(!(s||i)){if(o=!1,v){i=!0,a<=0&&n(null);return}a++,r(p,u,d),u++,l()}}).catch(g))}function d(p,v){if(a-=1,!s){if(p)return g(p);if(p===!1){i=!0,s=!0;return}if(v===Ud.default||i&&a<=0)return i=!0,n(null);l()}}function g(p){s||(o=!1,i=!0,n(p))}l()}Ja.exports=Nr.default});var tu=f((jr,eu)=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});var zd=ui(),Vd=Rt(zd),Kd=za(),Jd=Rt(Kd),Zd=li(),Qd=Rt(Zd),Qa=Be(),Xd=Za(),Xa=Rt(Xd),ep=Lr(),tp=Rt(ep);function Rt(t){return t&&t.__esModule?t:{default:t}}jr.default=t=>(e,r,n)=>{if(n=(0,Vd.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,Qa.isAsyncGenerator)(e))return(0,Xa.default)(e,t,r,n);if((0,Qa.isAsyncIterable)(e))return(0,Xa.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,Jd.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===tp.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,Qd.default)(l))}u=!1}d()};eu.exports=jr.default});var fi=f((Cr,ru)=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var rp=tu(),np=ci(rp),ip=Be(),sp=ci(ip),op=ot(),ap=ci(op);function ci(t){return t&&t.__esModule?t:{default:t}}function up(t,e,r,n){return(0,np.default)(e)(t,(0,sp.default)(r),n)}Cr.default=(0,ap.default)(up,4);ru.exports=Cr.default});var su=f((Pr,iu)=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});var lp=fi(),cp=nu(lp),fp=ot(),hp=nu(fp);function nu(t){return t&&t.__esModule?t:{default:t}}function dp(t,e,r){return(0,cp.default)(t,1,e,r)}Pr.default=(0,hp.default)(dp,3);iu.exports=Pr.default});var uu=f((Dr,au)=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.default=yp;var pp=Ba(),gp=ou(pp),mp=su(),bp=ou(mp);function ou(t){return t&&t.__esModule?t:{default:t}}function yp(t,e){return(0,gp.default)(bp.default,t,e)}au.exports=Dr.default});var hi=f((rb,cu)=>{"use strict";cu.exports=ve;var Ir=Se().codes,_p=Ir.ERR_METHOD_NOT_IMPLEMENTED,vp=Ir.ERR_MULTIPLE_CALLBACK,wp=Ir.ERR_TRANSFORM_ALREADY_TRANSFORMING,Ep=Ir.ERR_TRANSFORM_WITH_LENGTH_0,Fr=$e();Xe()(ve,Fr);function Sp(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new vp);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 ve(t){if(!(this instanceof ve))return new ve(t);Fr.call(this,t),this._transformState={afterTransform:Sp.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",xp)}function xp(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){lu(t,e,r)}):lu(this,null,null)}ve.prototype.push=function(t,e){return this._transformState.needTransform=!1,Fr.prototype.push.call(this,t,e)};ve.prototype._transform=function(t,e,r){r(new _p("_transform()"))};ve.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)}};ve.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};ve.prototype._destroy=function(t,e){Fr.prototype._destroy.call(this,t,function(r){e(r)})};function lu(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Ep;if(t._transformState.transforming)throw new wp;return t.push(null)}});var du=f((nb,hu)=>{"use strict";hu.exports=Tt;var fu=hi();Xe()(Tt,fu);function Tt(t){if(!(this instanceof Tt))return new Tt(t);fu.call(this,t)}Tt.prototype._transform=function(t,e,r){r(null,t)}});var yu=f((ib,bu)=>{"use strict";var di;function Mp(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var mu=Se().codes,Op=mu.ERR_MISSING_ARGS,Rp=mu.ERR_STREAM_DESTROYED;function pu(t){if(t)throw t}function Tp(t){return t.setHeader&&typeof t.abort=="function"}function qp(t,e,r,n){n=Mp(n);var i=!1;t.on("close",function(){i=!0}),di===void 0&&(di=lr()),di(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,Tp(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new Rp("pipe"))}}}function gu(t){t()}function Ap(t,e){return t.pipe(e)}function Lp(t){return!t.length||typeof t[t.length-1]!="function"?pu:t.pop()}function Np(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Lp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Op("streams");var i,s=e.map(function(o,a){var u=a<e.length-1,l=a>0;return qp(o,u,l,function(d){i||(i=d),d&&s.forEach(gu),!u&&(s.forEach(gu),n(i))})});return e.reduce(Ap)}bu.exports=Np});var He=f((ie,At)=>{var qt=require("stream");process.env.READABLE_STREAM==="disable"&&qt?(At.exports=qt.Readable,Object.assign(At.exports,qt),At.exports.Stream=qt):(ie=At.exports=Qn(),ie.Stream=qt||ie,ie.Readable=ie,ie.Writable=br(),ie.Duplex=$e(),ie.Transform=hi(),ie.PassThrough=du(),ie.finished=lr(),ie.pipeline=yu())});var vi=f((sb,vu)=>{var at=[],Lt=[],pi=function(){};function mi(t){return~at.indexOf(t)?!1:(at.push(t),!0)}function bi(t){pi=t}function jp(t){for(var e=[],r=0;r<at.length;r++){if(at[r].async){e.push(at[r]);continue}if(at[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 yi(t){return~Lt.indexOf(t)?!1:(Lt.push(t),!0)}function gi(){pi.apply(pi,arguments)}function _u(t){for(var e=0;e<Lt.length;e++)t=Lt[e].apply(Lt[e],arguments);return t}function _i(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function Cp(t){return t.enabled=!1,t.modify=yi,t.set=bi,t.use=mi,_i(function(){return!1},t)}function Pp(t){function e(){var r=Array.prototype.slice.call(arguments,0);return gi.call(gi,t,_u(r,t)),!0}return t.enabled=!0,t.modify=yi,t.set=bi,t.use=mi,_i(e,t)}vu.exports=function(e){return e.introduce=_i,e.enabled=jp,e.process=_u,e.modify=yi,e.write=gi,e.nope=Cp,e.yep=Pp,e.set=bi,e.use=mi,e}});var Eu=f((ob,wu)=>{var Dp=vi(),Ip=Dp(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)});wu.exports=Ip});var Tu=f((ab,Ru)=>{"use strict";var pe={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]},xu=Object.create(null);for(let t in pe)Object.hasOwn(pe,t)&&(xu[pe[t]]=t);var W={to:{},get:{}};W.get=function(t){let e=t.slice(0,3).toLowerCase(),r,n;switch(e){case"hsl":{r=W.get.hsl(t),n="hsl";break}case"hwb":{r=W.get.hwb(t),n="hwb";break}default:{r=W.get.rgb(t),n="rgb";break}}return r?{model:n,value:r}:null};W.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(pe,a[1])?(o=pe[a[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=qe(o[u],0,255);return o[3]=qe(o[3],0,1),o};W.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=qe(Number.parseFloat(r[2]),0,100),o=qe(Number.parseFloat(r[3]),0,100),a=qe(Number.isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};W.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=qe(Number.parseFloat(r[2]),0,100),o=qe(Number.parseFloat(r[3]),0,100),a=qe(Number.isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};W.to.hex=function(...t){return"#"+kr(t[0])+kr(t[1])+kr(t[2])+(t[3]<1?kr(Math.round(t[3]*255)):"")};W.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]+")"};W.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]+")"};W.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]+")"};W.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};W.to.keyword=function(...t){return xu[t.slice(0,3)]};function qe(t,e,r){return Math.min(Math.max(e,t),r)}function kr(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var Mu={};for(let t of Object.keys(pe))Mu[pe[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"]}},we=(6/29)**3;function ut(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function lt(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=lt(t[0]/255),r=lt(t[1]/255),n=lt(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 Fp(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=Mu[t];if(e)return e;let r=Number.POSITIVE_INFINITY,n;for(let i of Object.keys(pe)){let s=pe[i],o=Fp(t,s);o<r&&(r=o,n=i)}return n};m.keyword.rgb=function(t){return pe[t]};m.rgb.xyz=function(t){let e=lt(t[0]/255),r=lt(t[1]/255),n=lt(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>we?r**(1/3):7.787*r+16/116,n=n>we?n**(1/3):7.787*n+16/116,i=i>we?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&&(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=ut(i),s=ut(s),o=ut(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>we?e**(1/3):7.787*e+16/116,r=r>we?r**(1/3):7.787*r+16/116,n=n>we?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=ut(4.0767416621*i-3.3077115913*s+.2309699292*o),u=ut(-1.2684380046*i+2.6097574011*s-.3413193965*o),l=ut(-.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>we?a:(s-16/116)/7.787,i=u>we?u:(i-16/116)/7.787,o=l>we?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 kp(){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 $p(t){let e=kp(),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 Bp(t,e){return function(r){return e(t(r))}}function Hp(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=Bp(m[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}function Wp(t){let e=$p(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]=Hp(o,e))}return r}var U={},Up=Object.keys(m);function Gp(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 Yp(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 Up){U[t]={},Object.defineProperty(U[t],"channels",{value:m[t].channels}),Object.defineProperty(U[t],"labels",{value:m[t].labels});let e=Wp(t),r=Object.keys(e);for(let n of r){let i=e[n];U[t][n]=Yp(i),U[t][n].raw=Gp(i)}}var Ou=["keyword","gray","hex"],wi={};for(let t of Object.keys(U))wi[[...U[t].labels].sort().join("")]=t;var Ei={};function H(t,e){if(!(this instanceof H))return new H(t,e);if(e&&e in Ou&&(e=null),e&&!(e in U))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 H)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let i=W.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=U[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=U[this.model].channels;let i=Array.prototype.slice.call(t,0,n);this.color=Si(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 wi))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=wi[s];let{labels:o}=U[this.model],a=[];for(r=0;r<o.length;r++)a.push(t[o[r]]);this.color=Si(a)}if(Ei[this.model])for(n=U[this.model].channels,r=0;r<n;r++){let i=Ei[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)}H.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in W.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);let r=e.valpha===1?e.color:[...e.color,this.valpha];return W.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 W.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:e}=U[this.model],{labels:r}=U[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 H([...this.color.map(Vp(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new H([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:k("rgb",0,B(255)),green:k("rgb",1,B(255)),blue:k("rgb",2,B(255)),hue:k(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:k("hsl",1,B(100)),lightness:k("hsl",2,B(100)),saturationv:k("hsv",1,B(100)),value:k("hsv",2,B(100)),chroma:k("hcg",1,B(100)),gray:k("hcg",2,B(100)),white:k("hwb",1,B(100)),wblack:k("hwb",2,B(100)),cyan:k("cmyk",0,B(100)),magenta:k("cmyk",1,B(100)),yellow:k("cmyk",2,B(100)),black:k("cmyk",3,B(100)),x:k("xyz",0,B(95.047)),y:k("xyz",1,B(100)),z:k("xyz",2,B(108.833)),l:k("lab",0,B(100)),a:k("lab",1),b:k("lab",2),keyword(t){return t!==void 0?new H(t):U[this.model].keyword(this.color)},hex(t){return t!==void 0?new H(t):W.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new H(t);let e=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),W.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 H.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 H.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(U)){if(Ou.includes(t))continue;let{channels:e}=U[t];H.prototype[t]=function(...r){return this.model===t?new H(this):r.length>0?new H(r,t):new H([...Kp(U[this.model][t].raw(this.color)),this.valpha],t)},H[t]=function(...r){let n=r[0];return typeof n=="number"&&(n=Si(r,e)),new H(n,t)}}function zp(t,e){return Number(t.toFixed(e))}function Vp(t){return function(e){return zp(e,t)}}function k(t,e,r){t=Array.isArray(t)?t:[t];for(let n of t)(Ei[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 B(t){return function(e){return Math.max(0,Math.min(t,e))}}function Kp(t){return Array.isArray(t)?t:[t]}function Si(t,e){for(let r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}function Jp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zp=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},Su=Jp(Zp);function Qp(t,e){let r=t.split(e||":"),n=Su(r[0]);if(!r.length)return n;for(let i=0,s=r.length-1;i<s;i++)n=H(n).mix(H(Su(r[i+1]))).saturate(1).hex();return n}Ru.exports=Qp});var Au=f((ub,qu)=>{"use strict";function ue(t,e){if(e)return new ue(t).style(e);if(!(this instanceof ue))return new ue(t);this.text=t}ue.prototype.prefix="\x1B[";ue.prototype.suffix="m";ue.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)]};ue.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)};ue.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};ue.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ue.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};qu.exports=ue});var Nu=f((lb,Lu)=>{var Xp=Tu(),eg=Au();Lu.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?eg(n+":",Xp(n)):n+":";return e[0]=i+" "+e[0],e}});var Cu=f((cb,ju)=>{"use strict";ju.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 Du=f((fb,Pu)=>{var tg=Cu();Pu.exports=function(e){return function(n){try{return tg(n,e())}catch{}return!1}}});var Fu=f((hb,Iu)=>{var rg=Du();Iu.exports=rg(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var $u=f((db,ku)=>{ku.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Hu=f((pb,Bu)=>{var ng=vi(),ig=require("tty").isatty(1),$r=ng(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:ig,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});$r.modify(Nu());$r.use(Fu());$r.set($u());Bu.exports=$r});var Nt=f((gb,xi)=>{process.env.NODE_ENV==="production"?xi.exports=Eu():xi.exports=Hu()});var Uu=f((mb,Wu)=>{"use strict";var Mi=require("fs"),{StringDecoder:sg}=require("string_decoder"),{Stream:og}=He();function ag(){}Wu.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new sg("utf8"),i=new og,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")},Mi.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):i.emit("error",u),i.destroy();return}(function d(){if(i.destroyed){Mi.close(l,ag);return}return Mi.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 v=n.write(r.slice(0,p));e||i.emit("data",v),v=(s+v).split(/\n+/);let c=v.length-1,b=0;for(;b<c;b++)(t.start==null||a>t.start)&&(e?e(null,v[b]):i.emit("line",v[b])),a++;return s=v[c],o+=p,d()})})()}),e?i.destroy:i}});var Vu=f((yb,zu)=>{"use strict";var X=require("fs"),G=require("path"),Gu=uu(),ug=require("zlib"),{MESSAGE:lg}=$(),{Stream:cg,PassThrough:Yu}=He(),fg=it(),le=Nt()("winston:file"),hg=require("os"),dg=Uu();zu.exports=class extends fg{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 Yu,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?G.basename(e.filename):"winston.log",this.dirname=e.dirname||G.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=G.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:hg.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())))}_final(e){if(this._opening){this.once("open",()=>this._final(e));return}if(this._stream.end(),!this._dest||this._dest.writableFinished)return e();this._dest.once("finish",e),this._dest.once("error",e)}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[lg]}${this.eol}`,i=Buffer.byteLength(n);function s(){if(this._size+=i,this._pendingSize-=i,le("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()})),le("written",o,this._drain),this.finishIfEnding(),o}query(e,r){typeof e=="function"&&(r=e,e={}),e=g(e);let n=G.join(this.dirname,this.filename),i="",s=[],o=0,a=X.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 v=p.length-1,c=0;for(;c<v;c++)(!e.start||o>=e.start)&&u(p[c]),o++;i=p[v]}),a.on("close",()=>{i&&u(i,!0),e.order==="desc"&&(s=s.reverse()),r&&r(null,s)});function u(p,v){try{let c=JSON.parse(p);d(c)&&l(c)}catch(c){v||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((v,c)=>(v[c]=p[c],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-24*60*60*1e3,typeof p.from!="object"&&(p.from=new Date(p.from)),p.order=p.order||"desc",p}}stream(e={}){let r=G.join(this.dirname,this.filename),n=new cg,i={file:r,start:e.start};return n.destroy=dg(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);le("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=G.join(this.dirname,r);X.stat(n,(i,s)=>{if(i&&i.code==="ENOENT")return le("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return le(`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=G.join(this.dirname,this.filename);le("create stream start",r,this.options);let n=X.createWriteStream(r,this.options).on("error",i=>le(i)).on("close",()=>le("close",n.path,n.bytesWritten)).on("open",()=>{le("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Yu,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return le("create stream ok",r),n}_incFile(e){le("_incFile",this.filename);let r=G.extname(this._basename),n=G.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(G.join(this.dirname,`${n}${o}${r}`),G.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)),Gu(i,e)}_getFile(){let e=G.extname(this._basename),r=G.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=G.join(this.dirname,a);X.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=G.join(this.dirname,l);X.exists(d,g=>{if(!g)return u(null);l=`${r}${a}${e}${s}`,X.rename(d,G.join(this.dirname,l),u)})}.bind(this,o));Gu(i,()=>{X.rename(G.join(this.dirname,`${r}${e}${s}`),G.join(this.dirname,`${r}1${e}${s}`),n)})}_compressFile(e,r,n){X.access(e,X.F_OK,i=>{if(i)return n();var s=ug.createGzip(),o=X.createReadStream(e),a=X.createWriteStream(r);a.on("finish",()=>{X.unlink(e,n)}),o.pipe(s).pipe(a)})}_createLogDirIfNotExist(e){X.existsSync(e)||X.mkdirSync(e,{recursive:!0})}}});var Ju=f((vb,Ku)=>{"use strict";var pg=require("http"),gg=require("https"),{Stream:mg}=He(),bg=it(),{configure:yg}=mt();Ku.exports=class extends bg{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 mg;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?gg:pg).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=yg({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var Oi=f((wb,Zu)=>{"use strict";var ge=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";ge.writable=t=>ge(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";ge.readable=t=>ge(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";ge.duplex=t=>ge.writable(t)&&ge.readable(t);ge.transform=t=>ge.duplex(t)&&typeof t._transform=="function";Zu.exports=ge});var Xu=f((Sb,Qu)=>{"use strict";var _g=Oi(),{MESSAGE:vg}=$(),wg=require("os"),Eg=it();Qu.exports=class extends Eg{constructor(e={}){if(super(e),!e.stream||!_g(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:wg.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[vg]}${this.eol}`),r&&r()}}});var el=f(jt=>{"use strict";Object.defineProperty(jt,"Console",{configurable:!0,enumerable:!0,get(){return Oa()}});Object.defineProperty(jt,"File",{configurable:!0,enumerable:!0,get(){return Vu()}});Object.defineProperty(jt,"Http",{configurable:!0,enumerable:!0,get(){return Ju()}});Object.defineProperty(jt,"Stream",{configurable:!0,enumerable:!0,get(){return Xu()}})});var Hr=f(Ct=>{"use strict";var Br=Tn(),{configs:Ri}=$();Ct.cli=Br.levels(Ri.cli);Ct.npm=Br.levels(Ri.npm);Ct.syslog=Br.levels(Ri.syslog);Ct.addColors=Br.levels});var rl=f((Wr,tl)=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});var Sg=wr(),xg=We(Sg),Mg=Lr(),Og=We(Mg),Rg=fi(),Tg=We(Rg),qg=ui(),Ag=We(qg),Lg=li(),Ng=We(Lg),jg=Be(),Cg=We(jg),Pg=ot(),Dg=We(Pg);function We(t){return t&&t.__esModule?t:{default:t}}function Ig(t,e,r){r=(0,Ag.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===Og.default)&&r(null))}for(;n<s;n++)e(t[n],n,(0,Ng.default)(a))}function Fg(t,e,r){return(0,Tg.default)(t,1/0,e,r)}function kg(t,e,r){var n=(0,xg.default)(t)?Ig:Fg;return n(t,(0,Cg.default)(e),r)}Wr.default=(0,Dg.default)(kg,3);tl.exports=Wr.default});var il=f((Ur,nl)=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.default=$g;function $g(t){return(e,r,n)=>t(e,n)}nl.exports=Ur.default});var zr=f((Yr,sl)=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});var Bg=rl(),Hg=Gr(Bg),Wg=il(),Ug=Gr(Wg),Gg=Be(),Yg=Gr(Gg),zg=ot(),Vg=Gr(zg);function Gr(t){return t&&t.__esModule?t:{default:t}}function Kg(t,e,r){return(0,Hg.default)(t,(0,Ug.default)((0,Yg.default)(e)),r)}Yr.default=(0,Vg.default)(Kg,3);sl.exports=Yr.default});var al=f((Ob,ol)=>{"use strict";var Jg=Object.prototype.toString;ol.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=Jg.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var Ti=f((Rb,ul)=>{"use strict";var Zg=al();ul.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=Zg(e),i}});var qi=f(Dt=>{Dt.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||Dt.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Dt.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
|
|
28
|
+
`).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 v={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(v)}}).filter(function(n){return!!n})};function Pt(t){for(var e in t)this[e]=t[e]}var Qg=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],Xg=["topLevel","eval","native","constructor"];Qg.forEach(function(t){Pt.prototype[t]=null,Pt.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Xg.forEach(function(t){Pt.prototype[t]=!1,Pt.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Dt._createParsedCallSite=function(t){return new Pt(t)}});var cl=f((Ab,ll)=>{"use strict";var{Writable:e0}=He();ll.exports=class extends e0{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 Li=f((Nb,dl)=>{"use strict";var fl=require("os"),t0=zr(),Ai=Nt()("winston:exception"),r0=Ti(),hl=qi(),n0=cl();dl.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(`
|
|
29
|
+
`),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:fl.loadavg(),uptime:fl.uptime()}}getTrace(e){return(e?hl.parse(e):hl.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 n0(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(){Ai("doExit",i),Ai("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);t0(n,(a,u)=>{let l=r0(u),d=a.transport||a;function g(p){return()=>{Ai(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 gl=f((Cb,pl)=>{"use strict";var{Writable:i0}=He();pl.exports=class extends i0{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 ji=f((Db,yl)=>{"use strict";var ml=require("os"),s0=zr(),Ni=Nt()("winston:rejection"),o0=Ti(),bl=qi(),a0=gl();yl.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(`
|
|
30
|
+
`),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:ml.loadavg(),uptime:ml.uptime()}}getTrace(e){return(e?bl.parse(e):bl.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 a0(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(){Ni("doExit",i),Ni("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);s0(n,(a,u)=>{let l=o0(u),d=a.transport||a;function g(p){return()=>{Ni(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 vl=f((Ib,_l)=>{"use strict";var Ci=class{constructor(e){let r=Vr();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)}};_l.exports=Ci});var Vr=f((Fb,xl)=>{"use strict";var{Stream:u0,Transform:l0}=He(),wl=zr(),{LEVEL:me,SPLAT:El}=$(),Sl=Oi(),c0=Li(),f0=ji(),h0=si(),d0=vl(),{warn:p0}=qn(),g0=Hr(),m0=/%[scdjifoO%]/g,Kr=class extends l0{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,i.cause=n.cause),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:v,exceptionHandlers:c,rejectionHandlers:b}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||Sn()(),this.defaultMeta=n||null,this.levels=i||this.levels||g0.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new c0(this),this.rejections=new f0(this),this.profilers={},this.exitOnError=o,a&&(a=Array.isArray(a)?a:[a],a.forEach(w=>this.add(w))),u||l||d||g||p||v)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(`
|
|
31
|
+
`));c&&this.exceptions.handle(c),b&&this.rejections.handle(b)}getHighestLogLevel(){let e=It(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((r,n)=>{let i=It(this.levels,n.level);return i!==null&&i>r?i:r},e)}isLevelEnabled(e){let r=It(this.levels,e);if(r===null)return!1;let n=It(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(s=>{let o=It(this.levels,s.level);return o===null&&(o=n),o>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[me]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[me]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[me]: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(m0))){let o=Object.assign({},this.defaultMeta,i,{[me]:e,[El]: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,{[me]:e,[El]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[me]||(e[me]=e.level),!this.levels[e[me]]&&this.levels[e[me]]!==0&&console.error("[winston] Unknown logger level: %s",e[me]),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();wl(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!Sl(e)||e.log.length>2?new h0({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(!Sl(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(){p0.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})}wl(this.transports.filter(a=>!!a.query),o,()=>r(null,n))}stream(e={}){let r=new u0,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 d0(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(`
|
|
32
|
+
`))}_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 It(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Kr.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});xl.exports=Kr});var Pi=f((kb,Ml)=>{"use strict";var{LEVEL:b0}=$(),y0=Hr(),_0=Vr(),v0=Nt()("winston:create-logger");function w0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Ml.exports=function(t={}){t.levels=t.levels||y0.npm.levels;class e extends _0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(v0('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[b0]=n,s._addDefaultMeta(a),s.write(a),this||r}return i.length===0?(s.log(n,""),s):s.log(n,...i)},e.prototype[w0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var Rl=f((Bb,Ol)=>{"use strict";var E0=Pi();Ol.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=E0(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 ql=f(L=>{"use strict";var Tl=Tn(),{warn:Ft}=qn();L.version=xo().version;L.transports=el();L.config=Hr();L.addColors=Tl.levels;L.format=Tl.format;L.createLogger=Pi();L.Logger=Vr();L.ExceptionHandler=Li();L.RejectionHandler=ji();L.Container=Rl();L.Transport=it();L.loggers=new L.Container;var be=L.createLogger();Object.keys(L.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>L[t]=(...e)=>be[t](...e));Object.defineProperty(L,"level",{get(){return be.level},set(t){be.level=t}});Object.defineProperty(L,"exceptions",{get(){return be.exceptions}});Object.defineProperty(L,"rejections",{get(){return be.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(L,t,{get(){return be[t]},set(e){be[t]=e}})});Object.defineProperty(L,"default",{get(){return{exceptionHandlers:be.exceptionHandlers,rejectionHandlers:be.rejectionHandlers,transports:be.transports}}});Ft.deprecated(L,"setLevels");Ft.forFunctions(L,"useFormat",["cli"]);Ft.forProperties(L,"useFormat",["padLevels","stripColors"]);Ft.forFunctions(L,"deprecated",["addRewriter","addFilter","clone","extend"]);Ft.forProperties(L,"deprecated",["emitErrs","levelLength"])});var Cl=f((kt,jl)=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.default=void 0;var M0={printWidth:100,tabWidth:2,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,arrowParens:"avoid",plugins:["@trivago/prettier-plugin-sort-imports","prettier-plugin-sh","prettier-plugin-pkg","prettier-plugin-toml","prettier-plugin-nginx"],overrides:[{files:["*.toml.template"],options:{parser:"toml"}},{files:["*.nginxconf","nginx*.conf","nginx*.conf.template"],options:{parser:"nginx"}},{files:[".env",".env.*"],options:{parser:"sh"}}],importOrder:["(^react(.*)|^next(.*))$","<THIRD_PARTY_MODULES>","^[./]"],importOrderSeparation:!0,importOrderSortSpecifiers:!0,importOrderParserPlugins:["typescript","jsx","decorators-legacy"]},Kb=kt.default=M0;jl.exports=kt.default});var Ui=(t=0)=>e=>`\x1B[${e+t}m`,Gi=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Yi=(t=0)=>(e,r,n)=>`\x1B[${38+t};2;${e};${r};${n}m`,j={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},I0=Object.keys(j.modifier),zl=Object.keys(j.color),Vl=Object.keys(j.bgColor),F0=[...zl,...Vl];function Kl(){let t=new Map;for(let[e,r]of Object.entries(j)){for(let[n,i]of Object.entries(r))j[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=j[n],t.set(i[0],i[1]);Object.defineProperty(j,e,{value:r,enumerable:!1})}return Object.defineProperty(j,"codes",{value:t,enumerable:!1}),j.color.close="\x1B[39m",j.bgColor.close="\x1B[49m",j.color.ansi=Ui(),j.color.ansi256=Gi(),j.color.ansi16m=Yi(),j.bgColor.ansi=Ui(10),j.bgColor.ansi256=Gi(10),j.bgColor.ansi16m=Yi(10),Object.defineProperties(j,{rgbToAnsi256:{value(e,r,n){return e===r&&r===n?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)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>j.rgbToAnsi256(...j.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let a=e%36;r=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>j.ansi256ToAnsi(j.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>j.ansi256ToAnsi(j.hexToAnsi256(e)),enumerable:!1}}),j}var Jl=Kl(),oe=Jl;var Gt=Le(require("node:process"),1),Vi=Le(require("node:os"),1),en=Le(require("node:tty"),1);function re(t,e=globalThis.Deno?globalThis.Deno.args:Gt.default.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:C}=Gt.default,Ut;re("no-color")||re("no-colors")||re("color=false")||re("color=never")?Ut=0:(re("color")||re("colors")||re("color=true")||re("color=always"))&&(Ut=1);function Zl(){if("FORCE_COLOR"in C)return C.FORCE_COLOR==="true"?1:C.FORCE_COLOR==="false"?0:C.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(C.FORCE_COLOR,10),3)}function Ql(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Xl(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=Zl();n!==void 0&&(Ut=n);let i=r?Ut:n;if(i===0)return 0;if(r){if(re("color=16m")||re("color=full")||re("color=truecolor"))return 3;if(re("color=256"))return 2}if("TF_BUILD"in C&&"AGENT_NAME"in C)return 1;if(t&&!e&&i===void 0)return 0;let s=i||0;if(C.TERM==="dumb")return s;if(Gt.default.platform==="win32"){let o=Vi.default.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in C)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in C)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in C)||C.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0;if(C.COLORTERM==="truecolor"||C.TERM==="xterm-kitty"||C.TERM==="xterm-ghostty"||C.TERM==="wezterm")return 3;if("TERM_PROGRAM"in C){let o=Number.parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:s}function zi(t,e={}){let r=Xl(t,{streamIsTTY:t&&t.isTTY,...e});return Ql(r)}var ec={stdout:zi({isTTY:en.default.isatty(1)}),stderr:zi({isTTY:en.default.isatty(2)})},Ki=ec;function Ji(t,e,r){let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.slice(s,n)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.slice(s),o}function Zi(t,e,r,n){let i=0,s="";do{let o=t[n-1]==="\r";s+=t.slice(i,o?n-1:n)+e+(o?`\r
|
|
34
33
|
`:`
|
|
35
34
|
`)+r,i=n+1,n=t.indexOf(`
|
|
36
|
-
`,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:
|
|
37
|
-
`);return s!==-1&&(e=
|
|
35
|
+
`,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:Qi,stderr:Xi}=Ki,tn=Symbol("GENERATOR"),ze=Symbol("STYLER"),ht=Symbol("IS_EMPTY"),es=["ansi","ansi","ansi256","ansi16m"],Ve=Object.create(null),tc=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Qi?Qi.level:0;t.level=e.level===void 0?r:e.level},Yt=class{constructor(e){return ts(e)}},ts=t=>{let e=(...r)=>r.join(" ");return tc(e,t),Object.setPrototypeOf(e,dt.prototype),e};function dt(t){return ts(t)}Object.setPrototypeOf(dt.prototype,Function.prototype);for(let[t,e]of Object.entries(oe))Ve[t]={get(){let r=zt(this,nn(e.open,e.close,this[ze]),this[ht]);return Object.defineProperty(this,t,{value:r}),r}};Ve.visible={get(){let t=zt(this,this[ze],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var rn=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?oe[r].ansi16m(...n):e==="ansi256"?oe[r].ansi256(oe.rgbToAnsi256(...n)):oe[r].ansi(oe.rgbToAnsi(...n)):t==="hex"?rn("rgb",e,r,...oe.hexToRgb(...n)):oe[r][t](...n),rc=["rgb","hex","ansi256"];for(let t of rc){Ve[t]={get(){let{level:r}=this;return function(...n){let i=nn(rn(t,es[r],"color",...n),oe.color.close,this[ze]);return zt(this,i,this[ht])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Ve[e]={get(){let{level:r}=this;return function(...n){let i=nn(rn(t,es[r],"bgColor",...n),oe.bgColor.close,this[ze]);return zt(this,i,this[ht])}}}}var nc=Object.defineProperties(()=>{},{...Ve,level:{enumerable:!0,get(){return this[tn].level},set(t){this[tn].level=t}}}),nn=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},zt=(t,e,r)=>{let n=(...i)=>ic(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,nc),n[tn]=t,n[ze]=e,n[ht]=r,n},ic=(t,e)=>{if(t.level<=0||!e)return t[ht]?"":e;let r=t[ze];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=Ji(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
36
|
+
`);return s!==-1&&(e=Zi(e,i,n,s)),n+e+i};Object.defineProperties(dt.prototype,Ve);var G0=dt(),Y0=dt({level:Xi?Xi.level:0});var ce=Le(ql(),1);var Al=["error","warn","info","debug"],Jr={solidWhiteTerminal:"#ffffff",thunderbirdRedTerminal:"#d21313",funGreenTerminal:"#00801f",flushOrangeTerminal:"#ff8600"},Ll={error:Jr.thunderbirdRedTerminal,warn:Jr.flushOrangeTerminal,info:Jr.funGreenTerminal,debug:Jr.solidWhiteTerminal};var S0=2,x0=new Yt({level:S0}),Nl="YYYY-MM-DD HH:mm:ss",Di=class{constructor(e){let r={},n={};for(let[u,l]of Al.entries())n[l]={level:u,color:e?e[l]:Ll[l]},r[l]=u;let i=(u,l)=>x0.hex(n[u].color)(l),s=ce.default.format.combine(ce.default.format.errors({stack:!0}),ce.default.format.timestamp({format:Nl}),ce.default.format.printf(u=>{var l;return i(u.level,`${u.timestamp} ${u.level}: ${u.message} ${(l=u.stack)!==null&&l!==void 0?l:""}`)})),o=ce.default.format.combine(ce.default.format.errors({stack:!0}),ce.default.format.timestamp({format:Nl}),ce.default.format.printf(u=>{var l;return i(u.level,`${u.timestamp} ${u.level}: ${u.message} ${(l=u.stack)!==null&&l!==void 0?l:""}`)})),a=[new ce.default.transports.Console];this.instance=ce.default.createLogger({level:process.env.LOG_LEVEL||"info",levels:r,format:process.env.NODE_ENV==="production"?o:s,transports:a})}},ye=new Di().instance;var O0=Le(Cl(),1);var R0=require("prettier");var T0={"":!0,true:!0,yes:!0,false:!1,no:!1};function Ii(t){let e={};for(let r of t){let n=r.replaceAll(/=[^=]*/g,"");if(!n.startsWith("--"))continue;let i=r.replaceAll(/^--[^=]*=?/g,""),s=T0[i];s===void 0?e[n]=i:e[n]=s}return e}var Qr=require("esbuild"),Ue=Le(require("fs")),Zr=Le(require("path")),Pl=new RegExp(/^(?:.*[/\\])?node_modules(?:[/\\].*)?$/),A0=["prettier","@mservicestech/prettier-config","@mservices-tech/prettier-config"],L0=new RegExp(/^(?:.*[/\\])?fork-ts-checker-webpack-plugin(?:[/\\].*)?$/),N0={name:"dirname-and-filename",setup({onLoad:t}){t({filter:/.*/},({path:e})=>{if(Pl.test(e)&&L0.test(e)||!Pl.test(e)){let r=Ue.default.readFileSync(e,"utf8"),n=Zr.default.extname(e).slice(1),i=Zr.default.dirname(e);return r=r.replaceAll("__dirname",`\`${i}\``).replaceAll("__filename",`\`${e}\``),{contents:r,loader:n}}})}};function j0(){ye.info(`Usage:
|
|
38
37
|
Usage:
|
|
39
38
|
${__filename} [--help] [--typescript-file-path] [--esbuild-externals-string] [--outfile-path] [--watch] [--esbuild-compiler-arguments]
|
|
40
39
|
Where:
|
|
@@ -46,7 +45,7 @@ Where:
|
|
|
46
45
|
esbuild-compiler-arguments - arguments passed to build options in format key:value, for example: esbuild-compiler-arguments=logLevel:"info",platform:"node"
|
|
47
46
|
Description:
|
|
48
47
|
This script is used to generate an esbuild only when we need to build something using an esbuild plugin
|
|
49
|
-
`)}function
|
|
48
|
+
`)}function C0(t){if(!t)return{};let e=t.split(",");return Object.assign({},...e.map(n=>{let i=n.split(":");return{[i[0]]:i[1]}}))}function Dl(t){return Ue.default.readdirSync(t).reduce((e,r)=>{let n=Zr.default.join(t,r),i=Ue.default.statSync(n);if(i.isDirectory()){let s=Dl(n);return Math.max(e,s)}else return Math.max(e,i.mtime.getTime())},0)}function P0(t){t["--help"]&&(j0(),process.exit(0));let e=t["--typescript-file-path"],r=t["--esbuild-externals-string"];e||(ye.error("You need to pass TypeScript's module path using the --typescript-file-path parameter"),process.exit(1));let n=t["--outfile-path"],i=n??e.replace(".ts",".js"),s=!!n,o="src";if(Ue.default.existsSync(i)&&!t["--watch"]){let l=Dl(o),d=Ue.default.statSync(i).mtime.getTime(),g=l<=d,p=s&&Ue.default.statSync(e).mtime.getTime()<=d;(g||p)&&(ye.info(`Build of ${i} skipped (no changes detected)`),process.exit(0))}ye.info(`Building using esbuild with custom plugins: ${e}`);let a=C0(t["--esbuild-compiler-arguments"]),u={entryPoints:[e],bundle:!0,loader:{".js":"js",".jsx":"jsx",".ts":"ts",".tsx":"tsx",".node":"copy",".mjs":"js"},platform:"node",target:"node20.15",resolveExtensions:[".mjs",".js",".ts",".tsx"],format:"cjs",tsconfig:"tsconfig.json",logLevel:"error",outfile:i,external:Array.from(new Set(A0.concat(r?r.split(","):[]))),plugins:[N0],...a};t["--watch"]?(0,Qr.context)(u).then(l=>{l.watch()}).catch(l=>{ye.error(l),process.exit(1)}):(0,Qr.build)(u).catch(l=>{ye.error(l),process.exit(1)})}P0(Ii(process.argv));
|
|
50
49
|
/*! Bundled license information:
|
|
51
50
|
|
|
52
51
|
safe-buffer/index.js:
|