@seed-design/codemod 0.0.31 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. package/bin/index.cjs +46 -46
  2. package/bin/transforms/replace-alpha-color/index.js +30 -30
  3. package/bin/transforms/replace-css-seed-design-color-variable/index.js +43 -42
  4. package/bin/transforms/replace-css-seed-design-typography-variable/index.js +41 -40
  5. package/bin/transforms/replace-custom-color-to-seed-design-vars-color/index.js +30 -30
  6. package/bin/transforms/replace-custom-imported-typography-variable/index.js +29 -29
  7. package/bin/transforms/replace-custom-seed-design-color/index.js +29 -29
  8. package/bin/transforms/replace-custom-seed-design-text-component/index.js +29 -29
  9. package/bin/transforms/replace-custom-seed-design-typography/index.js +26 -26
  10. package/bin/transforms/replace-custom-seed-design-vars/index.js +27 -27
  11. package/bin/transforms/replace-custom-text-component-color-prop/index.js +28 -28
  12. package/bin/transforms/replace-react-icon/index.js +29 -29
  13. package/bin/transforms/replace-seed-design-token-typography-classname/index.js +30 -30
  14. package/bin/transforms/replace-seed-design-token-vars/index.js +24 -24
  15. package/bin/transforms/replace-semantic-stroke-color/index.js +30 -30
  16. package/bin/transforms/replace-stitches-styled-color/index.js +30 -30
  17. package/bin/transforms/replace-stitches-styled-typography/index.js +30 -30
  18. package/bin/transforms/replace-stitches-theme-color/index.js +27 -27
  19. package/bin/transforms/replace-tailwind-color/index.js +26 -26
  20. package/bin/transforms/replace-tailwind-typography/index.js +30 -30
  21. package/package.json +10 -11
@@ -1,35 +1,35 @@
1
- var Wu=Object.create;var Pr=Object.defineProperty;var zu=Object.getOwnPropertyDescriptor;var Vu=Object.getOwnPropertyNames;var Hu=Object.getPrototypeOf,Uu=Object.prototype.hasOwnProperty;var d=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Yu=(r,e)=>{for(var t in e)Pr(r,t,{get:e[t],enumerable:!0})},qi=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Vu(e))!Uu.call(r,i)&&i!==t&&Pr(r,i,{get:()=>e[i],enumerable:!(n=zu(e,i))||n.enumerable});return r};var Gu=(r,e,t)=>(t=r!=null?Wu(Hu(r)):{},qi(e||!r||!r.__esModule?Pr(t,"default",{value:r,enumerable:!0}):t,r)),Ku=r=>qi(Pr({},"__esModule",{value:!0}),r);var J=d((Cg,Li)=>{"use strict";var Vt=class r extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
1
+ var cu=Object.create;var Lt=Object.defineProperty;var fu=Object.getOwnPropertyDescriptor;var du=Object.getOwnPropertyNames;var hu=Object.getPrototypeOf,pu=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gu=(t,e)=>{for(var r in e)Lt(t,r,{get:e[r],enumerable:!0})},xi=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of du(e))!pu.call(t,i)&&i!==r&&Lt(t,i,{get:()=>e[i],enumerable:!(n=fu(e,i))||n.enumerable});return t};var mu=(t,e,r)=>(r=t!=null?cu(hu(t)):{},xi(e||!t||!t.__esModule?Lt(r,"default",{value:t,enumerable:!0}):r,t)),yu=t=>xi(Lt({},"__esModule",{value:!0}),t);var Z=p((eg,Mi)=>{"use strict";var Dr=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
2
2
  Found: ${e.toString().split(`
3
3
  `)[0]}
4
- `),Error.captureStackTrace(this,r)}};Li.exports=r=>{if(r.length>2)throw new Vt(r);function e(n={}){this.options=n}e.prototype.transform=r;function t(n){return new e(n)}return t.Format=e,t}});var ji=d((Ag,Di)=>{var Ii={};Di.exports=Ii;var Pi={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(Pi).forEach(function(r){var e=Pi[r],t=Ii[r]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var Fi=d((Lg,Ni)=>{"use strict";Ni.exports=function(r,e){e=e||process.argv||[];var t=e.indexOf("--"),n=/^-{1,2}/.test(r)?"":"--",i=e.indexOf(n+r);return i!==-1&&(t===-1?!0:i<t)}});var Wi=d((Pg,Bi)=>{"use strict";var oc=require("os"),oe=Fi(),Y=process.env,Be=void 0;oe("no-color")||oe("no-colors")||oe("color=false")?Be=!1:(oe("color")||oe("colors")||oe("color=true")||oe("color=always"))&&(Be=!0);"FORCE_COLOR"in Y&&(Be=Y.FORCE_COLOR.length===0||parseInt(Y.FORCE_COLOR,10)!==0);function ac(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function sc(r){if(Be===!1)return 0;if(oe("color=16m")||oe("color=full")||oe("color=truecolor"))return 3;if(oe("color=256"))return 2;if(r&&!r.isTTY&&Be!==!0)return 0;var e=Be?1:0;if(process.platform==="win32"){var t=oc.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in Y)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in Y})||Y.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Y)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Y.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Y){var n=parseInt((Y.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Y.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Y.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Y.TERM)||"COLORTERM"in Y?1:(Y.TERM==="dumb",e)}function Ht(r){var e=sc(r);return ac(e)}Bi.exports={supportsColor:Ht,stdout:Ht(process.stdout),stderr:Ht(process.stderr)}});var Vi=d((Ig,zi)=>{zi.exports=function(e,t){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(o){o=o.toLowerCase();var a=i[o]||[" "],s=Math.floor(Math.random()*a.length);typeof i[o]<"u"?n+=i[o][s]:n+=o}),n}});var Ui=d((Dg,Hi)=>{Hi.exports=function(e,t){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 o(l){var f=Math.floor(Math.random()*l);return f}function a(l){var f=!1;return i.filter(function(h){f=h===l}),f}function s(l,f){var h="",c,p;f=f||{},f.up=typeof f.up<"u"?f.up:!0,f.mid=typeof f.mid<"u"?f.mid:!0,f.down=typeof f.down<"u"?f.down:!0,f.size=typeof f.size<"u"?f.size:"maxi",l=l.split("");for(p in l)if(!a(p)){switch(h=h+l[p],c={up:0,down:0,mid:0},f.size){case"mini":c.up=o(8),c.mid=o(2),c.down=o(8);break;case"maxi":c.up=o(16)+3,c.mid=o(4)+1,c.down=o(64)+3;break;default:c.up=o(8)+1,c.mid=o(6)/2,c.down=o(8)+1;break}var g=["up","mid","down"];for(var u in g)for(var v=g[u],y=0;y<=c[v];y++)f[v]&&(h=h+n[v][o(n[v].length)])}return h}return s(e,t)}});var Gi=d((jg,Yi)=>{Yi.exports=function(r){return function(e,t,n){if(e===" ")return e;switch(t%3){case 0:return r.red(e);case 1:return r.white(e);case 2:return r.blue(e)}}}});var Ji=d((Ng,Ki)=>{Ki.exports=function(r){return function(e,t,n){return t%2===0?e:r.inverse(e)}}});var Qi=d((Fg,Zi)=>{Zi.exports=function(r){var e=["red","yellow","green","blue","magenta"];return function(t,n,i){return t===" "?t:r[e[n++%e.length]](t)}}});var eo=d((Bg,Xi)=>{Xi.exports=function(r){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(t,n,i){return t===" "?t:r[e[Math.round(Math.random()*(e.length-2))]](t)}}});var ao=d((zg,oo)=>{var q={};oo.exports=q;q.themes={};var lc=require("util"),Me=q.styles=ji(),to=Object.defineProperties,uc=new RegExp(/[\r\n]+/g);q.supportsColor=Wi().supportsColor;typeof q.enabled>"u"&&(q.enabled=q.supportsColor()!==!1);q.enable=function(){q.enabled=!0};q.disable=function(){q.enabled=!1};q.stripColors=q.strip=function(r){return(""+r).replace(/\x1B\[\d+m/g,"")};var Wg=q.stylize=function(e,t){if(!q.enabled)return e+"";var n=Me[t];return!n&&t in q?q[t](e):n.open+e+n.close},cc=/[|\\{}()[\]^$+*?.]/g,fc=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(cc,"\\$&")};function no(r){var e=function t(){return dc.apply(t,arguments)};return e._styles=r,e.__proto__=hc,e}var io=(function(){var r={};return Me.grey=Me.gray,Object.keys(Me).forEach(function(e){Me[e].closeRe=new RegExp(fc(Me[e].close),"g"),r[e]={get:function(){return no(this._styles.concat(e))}}}),r})(),hc=to(function(){},io);function dc(){var r=Array.prototype.slice.call(arguments),e=r.map(function(a){return a!=null&&a.constructor===String?a:lc.inspect(a)}).join(" ");if(!q.enabled||!e)return e;for(var t=e.indexOf(`
5
- `)!=-1,n=this._styles,i=n.length;i--;){var o=Me[n[i]];e=o.open+e.replace(o.closeRe,o.open)+o.close,t&&(e=e.replace(uc,function(a){return o.close+a+o.open}))}return e}q.setTheme=function(r){if(typeof r=="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 r)(function(t){q[t]=function(n){if(typeof r[t]=="object"){var i=n;for(var o in r[t])i=q[r[t][o]](i);return i}return q[r[t]](n)}})(e)};function pc(){var r={};return Object.keys(io).forEach(function(e){r[e]={get:function(){return no([e])}}}),r}var gc=function(e,t){var n=t.split("");return n=n.map(e),n.join("")};q.trap=Vi();q.zalgo=Ui();q.maps={};q.maps.america=Gi()(q);q.maps.zebra=Ji()(q);q.maps.rainbow=Qi()(q);q.maps.random=eo()(q);for(ro in q.maps)(function(r){q[r]=function(e){return gc(q.maps[r],e)}})(ro);var ro;to(q,pc())});var Ut=d((Vg,so)=>{var mc=ao();so.exports=mc});var lo=d(Yt=>{"use strict";Yt.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Yt.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var uo=d(Gt=>{"use strict";Gt.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Gt.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var co=d(Kt=>{"use strict";Kt.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Kt.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var fo=d(Ir=>{"use strict";Object.defineProperty(Ir,"cli",{value:lo()});Object.defineProperty(Ir,"npm",{value:uo()});Object.defineProperty(Ir,"syslog",{value:co()})});var F=d(ir=>{"use strict";Object.defineProperty(ir,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(ir,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(ir,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(ir,"configs",{value:fo()})});var Nr=d((Jg,jr)=>{"use strict";var Qt=Ut(),{LEVEL:Jt,MESSAGE:Zt}=F();Qt.enabled=!0;var ho=/\s+/,Dr=class r{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let t=Object.keys(e).reduce((n,i)=>(n[i]=ho.test(e[i])?e[i].split(ho):e[i],n),{});return r.allColors=Object.assign({},r.allColors||{},t),r.allColors}addColors(e){return r.addColors(e)}colorize(e,t,n){if(typeof n>"u"&&(n=t),!Array.isArray(r.allColors[e]))return Qt[r.allColors[e]](n);for(let i=0,o=r.allColors[e].length;i<o;i++)n=Qt[r.allColors[e][i]](n);return n}transform(e,t){return t.all&&typeof e[Zt]=="string"&&(e[Zt]=this.colorize(e[Jt],e.level,e[Zt])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[Jt],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[Jt],e.level,e.message)),e}};jr.exports=r=>new Dr(r);jr.exports.Colorizer=jr.exports.Format=Dr});var go=d((Zg,po)=>{"use strict";var{Colorizer:vc}=Nr();po.exports=r=>(vc.addColors(r.colors||r),r)});var vo=d((Qg,mo)=>{"use strict";var yc=J();mo.exports=yc(r=>(r.message=` ${r.message}`,r))});var wo=d((Xg,bo)=>{"use strict";var bc=J(),{LEVEL:yo,MESSAGE:Xt}=F();bo.exports=bc((r,{stack:e,cause:t})=>{if(r instanceof Error){let i=Object.assign({},r,{level:r.level,[yo]:r[yo]||r.level,message:r.message,[Xt]:r[Xt]||r.message});return e&&(i.stack=r.stack),t&&(i.cause=r.cause),i}if(!(r.message instanceof Error))return r;let n=r.message;return Object.assign(r,n),r.message=n.message,r[Xt]=n.message,e&&(r.stack=n.stack),t&&(r.cause=n.cause),r})});var rn=d((em,Br)=>{"use strict";var{configs:wc,LEVEL:xo,MESSAGE:en}=F(),Fr=class r{constructor(e={levels:wc.npm.levels}){this.paddings=r.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let t=Object.keys(e).map(n=>n.length);return Math.max(...t)}static paddingForLevel(e,t,n){let i=n+1-e.length,o=Math.floor(i/t.length);return`${t}${t.repeat(o)}`.slice(0,i)}static paddingForLevels(e,t=" "){let n=r.getLongestLevel(e);return Object.keys(e).reduce((i,o)=>(i[o]=r.paddingForLevel(o,t,n),i),{})}transform(e,t){return e.message=`${this.paddings[e[xo]]}${e.message}`,e[en]&&(e[en]=`${this.paddings[e[xo]]}${e[en]}`),e}};Br.exports=r=>new Fr(r);Br.exports.Padder=Br.exports.Format=Fr});var _o=d((rm,tn)=>{"use strict";var{Colorizer:xc}=Nr(),{Padder:_c}=rn(),{configs:$c,MESSAGE:Ec}=F(),Wr=class{constructor(e={}){e.levels||(e.levels=$c.cli.levels),this.colorizer=new xc(e),this.padder=new _c(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[Ec]=`${e.level}:${e.message}`,e}};tn.exports=r=>new Wr(r);tn.exports.Format=Wr});var Eo=d((tm,nn)=>{"use strict";var Sc=J();function $o(r){if(r.every(Mc))return e=>{let t=e;for(let n=0;n<r.length;n++)if(t=r[n].transform(t,r[n].options),!t)return!1;return t}}function Mc(r){if(typeof r.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
6
- `));return!0}nn.exports=(...r)=>{let e=Sc($o(r)),t=e();return t.Format=e.Format,t};nn.exports.cascade=$o});var ar=d((ln,Ro)=>{"use strict";var{hasOwnProperty:or}=Object.prototype,Te=sn();Te.configure=sn;Te.stringify=Te;Te.default=Te;ln.stringify=Te;ln.configure=sn;Ro.exports=Te;var Rc=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function ve(r){return r.length<5e3&&!Rc.test(r)?`"${r}"`:JSON.stringify(r)}function on(r,e){if(r.length>200||e)return r.sort(e);for(let t=1;t<r.length;t++){let n=r[t],i=t;for(;i!==0&&r[i-1]>n;)r[i]=r[i-1],i--;r[i]=n}return r}var Tc=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function an(r){return Tc.call(r)!==void 0&&r.length!==0}function So(r,e,t){r.length<t&&(t=r.length);let n=e===","?"":" ",i=`"0":${n}${r[0]}`;for(let o=1;o<t;o++)i+=`${e}"${o}":${n}${r[o]}`;return i}function Oc(r){if(or.call(r,"circularValue")){let e=r.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 qc(r){let e;if(or.call(r,"deterministic")&&(e=r.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 kc(r,e){let t;if(or.call(r,e)&&(t=r[e],typeof t!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return t===void 0?!0:t}function Mo(r,e){let t;if(or.call(r,e)){if(t=r[e],typeof t!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(t))throw new TypeError(`The "${e}" argument must be an integer`);if(t<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return t===void 0?1/0:t}function Re(r){return r===1?"1 item":`${r} items`}function Cc(r){let e=new Set;for(let t of r)(typeof t=="string"||typeof t=="number")&&e.add(String(t));return e}function Ac(r){if(or.call(r,"strict")){let e=r.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return t=>{let n=`Object can not safely be stringified. Received type ${typeof t}`;throw typeof t!="function"&&(n+=` (${t.toString()})`),new Error(n)}}}function sn(r){r={...r};let e=Ac(r);e&&(r.bigint===void 0&&(r.bigint=!1),"circularValue"in r||(r.circularValue=Error));let t=Oc(r),n=kc(r,"bigint"),i=qc(r),o=typeof i=="function"?i:void 0,a=Mo(r,"maximumDepth"),s=Mo(r,"maximumBreadth");function l(g,u,v,y,w,S){let b=u[g];switch(typeof b=="object"&&b!==null&&typeof b.toJSON=="function"&&(b=b.toJSON(g)),b=y.call(u,g,b),typeof b){case"string":return ve(b);case"object":{if(b===null)return"null";if(v.indexOf(b)!==-1)return t;let E="",M=",",L=S;if(Array.isArray(b)){if(b.length===0)return"[]";if(a<v.length+1)return'"[Array]"';v.push(b),w!==""&&(S+=w,E+=`
4
+ `),Error.captureStackTrace(this,t)}};Mi.exports=t=>{if(t.length>2)throw new Dr(t);function e(n={}){this.options=n}e.prototype.transform=t;function r(n){return new e(n)}return r.Format=e,r}});var qi=p((tg,Oi)=>{var Ti={};Oi.exports=Ti;var Ri={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(Ri).forEach(function(t){var e=Ri[t],r=Ti[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var Ci=p((rg,ki)=>{"use strict";ki.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 Li=p((ng,Ai)=>{"use strict";var Ru=require("os"),ie=Ci(),K=process.env,Be=void 0;ie("no-color")||ie("no-colors")||ie("color=false")?Be=!1:(ie("color")||ie("colors")||ie("color=true")||ie("color=always"))&&(Be=!0);"FORCE_COLOR"in K&&(Be=K.FORCE_COLOR.length===0||parseInt(K.FORCE_COLOR,10)!==0);function Tu(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ou(t){if(Be===!1)return 0;if(ie("color=16m")||ie("color=full")||ie("color=truecolor"))return 3;if(ie("color=256"))return 2;if(t&&!t.isTTY&&Be!==!0)return 0;var e=Be?1:0;if(process.platform==="win32"){var r=Ru.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in K)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in K})||K.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in K){var n=parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(K.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM)||"COLORTERM"in K?1:(K.TERM==="dumb",e)}function Fr(t){var e=Ou(t);return Tu(e)}Ai.exports={supportsColor:Fr,stdout:Fr(process.stdout),stderr:Fr(process.stderr)}});var Pi=p((ig,ji)=>{ji.exports=function(e,r){var n="";e=e||"Run the trap, drop the bass",e=e.split("");var i={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(o){o=o.toLowerCase();var s=i[o]||[" "],a=Math.floor(Math.random()*s.length);typeof i[o]<"u"?n+=i[o][a]:n+=o}),n}});var Ni=p((og,Ii)=>{Ii.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 o(l){var c=Math.floor(Math.random()*l);return c}function s(l){var c=!1;return i.filter(function(d){c=d===l}),c}function a(l,c){var d="",f,h;c=c||{},c.up=typeof c.up<"u"?c.up:!0,c.mid=typeof c.mid<"u"?c.mid:!0,c.down=typeof c.down<"u"?c.down:!0,c.size=typeof c.size<"u"?c.size:"maxi",l=l.split("");for(h in l)if(!s(h)){switch(d=d+l[h],f={up:0,down:0,mid:0},c.size){case"mini":f.up=o(8),f.mid=o(2),f.down=o(8);break;case"maxi":f.up=o(16)+3,f.mid=o(4)+1,f.down=o(64)+3;break;default:f.up=o(8)+1,f.mid=o(6)/2,f.down=o(8)+1;break}var g=["up","mid","down"];for(var u in g)for(var y=g[u],b=0;b<=f[y];b++)c[y]&&(d=d+n[y][o(n[y].length)])}return d}return a(e,r)}});var Fi=p((sg,Di)=>{Di.exports=function(t){return function(e,r,n){if(e===" ")return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var Wi=p((ag,Bi)=>{Bi.exports=function(t){return function(e,r,n){return r%2===0?e:t.inverse(e)}}});var Hi=p((lg,Vi)=>{Vi.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 Ui=p((ug,zi)=>{zi.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 Qi=p((fg,Zi)=>{var q={};Zi.exports=q;q.themes={};var qu=require("util"),Re=q.styles=qi(),Gi=Object.defineProperties,ku=new RegExp(/[\r\n]+/g);q.supportsColor=Li().supportsColor;typeof q.enabled>"u"&&(q.enabled=q.supportsColor()!==!1);q.enable=function(){q.enabled=!0};q.disable=function(){q.enabled=!1};q.stripColors=q.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var cg=q.stylize=function(e,r){if(!q.enabled)return e+"";var n=Re[r];return!n&&r in q?q[r](e):n.open+e+n.close},Cu=/[|\\{}()[\]^$+*?.]/g,Au=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(Cu,"\\$&")};function Ki(t){var e=function r(){return ju.apply(r,arguments)};return e._styles=t,e.__proto__=Lu,e}var Ji=(function(){var t={};return Re.grey=Re.gray,Object.keys(Re).forEach(function(e){Re[e].closeRe=new RegExp(Au(Re[e].close),"g"),t[e]={get:function(){return Ki(this._styles.concat(e))}}}),t})(),Lu=Gi(function(){},Ji);function ju(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:qu.inspect(s)}).join(" ");if(!q.enabled||!e)return e;for(var r=e.indexOf(`
5
+ `)!=-1,n=this._styles,i=n.length;i--;){var o=Re[n[i]];e=o.open+e.replace(o.closeRe,o.open)+o.close,r&&(e=e.replace(ku,function(s){return o.close+s+o.open}))}return e}q.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){q[r]=function(n){if(typeof t[r]=="object"){var i=n;for(var o in t[r])i=q[t[r][o]](i);return i}return q[t[r]](n)}})(e)};function Pu(){var t={};return Object.keys(Ji).forEach(function(e){t[e]={get:function(){return Ki([e])}}}),t}var Iu=function(e,r){var n=r.split("");return n=n.map(e),n.join("")};q.trap=Pi();q.zalgo=Ni();q.maps={};q.maps.america=Fi()(q);q.maps.zebra=Wi()(q);q.maps.rainbow=Hi()(q);q.maps.random=Ui()(q);for(Yi in q.maps)(function(t){q[t]=function(e){return Iu(q.maps[t],e)}})(Yi);var Yi;Gi(q,Pu())});var Br=p((dg,Xi)=>{var Nu=Qi();Xi.exports=Nu});var eo=p(Wr=>{"use strict";Wr.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Wr.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var to=p(Vr=>{"use strict";Vr.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Vr.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var ro=p(Hr=>{"use strict";Hr.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Hr.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var no=p(jt=>{"use strict";Object.defineProperty(jt,"cli",{value:eo()});Object.defineProperty(jt,"npm",{value:to()});Object.defineProperty(jt,"syslog",{value:ro()})});var F=p(ot=>{"use strict";Object.defineProperty(ot,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(ot,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(ot,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(ot,"configs",{value:no()})});var Nt=p((bg,It)=>{"use strict";var Yr=Br(),{LEVEL:zr,MESSAGE:Ur}=F();Yr.enabled=!0;var io=/\s+/,Pt=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]=io.test(e[i])?e[i].split(io):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 Yr[t.allColors[e]](n);for(let i=0,o=t.allColors[e].length;i<o;i++)n=Yr[t.allColors[e][i]](n);return n}transform(e,r){return r.all&&typeof e[Ur]=="string"&&(e[Ur]=this.colorize(e[zr],e.level,e[Ur])),(r.level||r.all||!r.message)&&(e.level=this.colorize(e[zr],e.level)),(r.all||r.message)&&(e.message=this.colorize(e[zr],e.level,e.message)),e}};It.exports=t=>new Pt(t);It.exports.Colorizer=It.exports.Format=Pt});var so=p((vg,oo)=>{"use strict";var{Colorizer:Du}=Nt();oo.exports=t=>(Du.addColors(t.colors||t),t)});var lo=p((_g,ao)=>{"use strict";var Fu=Z();ao.exports=Fu(t=>(t.message=` ${t.message}`,t))});var fo=p((wg,co)=>{"use strict";var Bu=Z(),{LEVEL:uo,MESSAGE:Gr}=F();co.exports=Bu((t,{stack:e,cause:r})=>{if(t instanceof Error){let i=Object.assign({},t,{level:t.level,[uo]:t[uo]||t.level,message:t.message,[Gr]:t[Gr]||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[Gr]=n.message,e&&(t.stack=n.stack),r&&(t.cause=n.cause),t})});var Jr=p((xg,Ft)=>{"use strict";var{configs:Wu,LEVEL:ho,MESSAGE:Kr}=F(),Dt=class t{constructor(e={levels:Wu.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,o=Math.floor(i/r.length);return`${r}${r.repeat(o)}`.slice(0,i)}static paddingForLevels(e,r=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((i,o)=>(i[o]=t.paddingForLevel(o,r,n),i),{})}transform(e,r){return e.message=`${this.paddings[e[ho]]}${e.message}`,e[Kr]&&(e[Kr]=`${this.paddings[e[ho]]}${e[Kr]}`),e}};Ft.exports=t=>new Dt(t);Ft.exports.Padder=Ft.exports.Format=Dt});var po=p(($g,Zr)=>{"use strict";var{Colorizer:Vu}=Nt(),{Padder:Hu}=Jr(),{configs:zu,MESSAGE:Uu}=F(),Bt=class{constructor(e={}){e.levels||(e.levels=zu.cli.levels),this.colorizer=new Vu(e),this.padder=new Hu(e),this.options=e}transform(e,r){return this.colorizer.transform(this.padder.transform(e,r),r),e[Uu]=`${e.level}:${e.message}`,e}};Zr.exports=t=>new Bt(t);Zr.exports.Format=Bt});var mo=p((Eg,Qr)=>{"use strict";var Yu=Z();function go(t){if(t.every(Gu))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 Gu(t){if(typeof t.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
6
+ `));return!0}Qr.exports=(...t)=>{let e=Yu(go(t)),r=e();return r.Format=e.Format,r};Qr.exports.cascade=go});var at=p((rn,vo)=>{"use strict";var{hasOwnProperty:st}=Object.prototype,Oe=tn();Oe.configure=tn;Oe.stringify=Oe;Oe.default=Oe;rn.stringify=Oe;rn.configure=tn;vo.exports=Oe;var Ku=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function be(t){return t.length<5e3&&!Ku.test(t)?`"${t}"`:JSON.stringify(t)}function Xr(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 Ju=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function en(t){return Ju.call(t)!==void 0&&t.length!==0}function yo(t,e,r){t.length<r&&(r=t.length);let n=e===","?"":" ",i=`"0":${n}${t[0]}`;for(let o=1;o<r;o++)i+=`${e}"${o}":${n}${t[o]}`;return i}function Zu(t){if(st.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Qu(t){let e;if(st.call(t,"deterministic")&&(e=t.deterministic,typeof e!="boolean"&&typeof e!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return e===void 0?!0:e}function Xu(t,e){let r;if(st.call(t,e)&&(r=t[e],typeof r!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return r===void 0?!0:r}function bo(t,e){let r;if(st.call(t,e)){if(r=t[e],typeof r!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${e}" argument must be an integer`);if(r<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return r===void 0?1/0:r}function Te(t){return t===1?"1 item":`${t} items`}function ec(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}function tc(t){if(st.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function tn(t){t={...t};let e=tc(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=Zu(t),n=Xu(t,"bigint"),i=Qu(t),o=typeof i=="function"?i:void 0,s=bo(t,"maximumDepth"),a=bo(t,"maximumBreadth");function l(g,u,y,b,w,S){let _=u[g];switch(typeof _=="object"&&_!==null&&typeof _.toJSON=="function"&&(_=_.toJSON(g)),_=b.call(u,g,_),typeof _){case"string":return be(_);case"object":{if(_===null)return"null";if(y.indexOf(_)!==-1)return r;let E="",M=",",L=S;if(Array.isArray(_)){if(_.length===0)return"[]";if(s<y.length+1)return'"[Array]"';y.push(_),w!==""&&(S+=w,E+=`
7
7
  ${S}`,M=`,
8
- ${S}`);let V=Math.min(b.length,s),Q=0;for(;Q<V-1;Q++){let Ne=l(String(Q),b,v,y,w,S);E+=Ne!==void 0?Ne:"null",E+=M}let X=l(String(Q),b,v,y,w,S);if(E+=X!==void 0?X:"null",b.length-1>s){let Ne=b.length-s-1;E+=`${M}"... ${Re(Ne)} not stringified"`}return w!==""&&(E+=`
9
- ${L}`),v.pop(),`[${E}]`}let k=Object.keys(b),I=k.length;if(I===0)return"{}";if(a<v.length+1)return'"[Object]"';let R="",O="";w!==""&&(S+=w,M=`,
10
- ${S}`,R=" ");let D=Math.min(I,s);i&&!an(b)&&(k=on(k,o)),v.push(b);for(let V=0;V<D;V++){let Q=k[V],X=l(Q,b,v,y,w,S);X!==void 0&&(E+=`${O}${ve(Q)}:${R}${X}`,O=M)}if(I>s){let V=I-s;E+=`${O}"...":${R}"${Re(V)} not stringified"`,O=M}return w!==""&&O.length>1&&(E=`
8
+ ${S}`);let Y=Math.min(_.length,a),X=0;for(;X<Y-1;X++){let De=l(String(X),_,y,b,w,S);E+=De!==void 0?De:"null",E+=M}let ee=l(String(X),_,y,b,w,S);if(E+=ee!==void 0?ee:"null",_.length-1>a){let De=_.length-a-1;E+=`${M}"... ${Te(De)} not stringified"`}return w!==""&&(E+=`
9
+ ${L}`),y.pop(),`[${E}]`}let k=Object.keys(_),P=k.length;if(P===0)return"{}";if(s<y.length+1)return'"[Object]"';let R="",O="";w!==""&&(S+=w,M=`,
10
+ ${S}`,R=" ");let I=Math.min(P,a);i&&!en(_)&&(k=Xr(k,o)),y.push(_);for(let Y=0;Y<I;Y++){let X=k[Y],ee=l(X,_,y,b,w,S);ee!==void 0&&(E+=`${O}${be(X)}:${R}${ee}`,O=M)}if(P>a){let Y=P-a;E+=`${O}"...":${R}"${Te(Y)} not stringified"`,O=M}return w!==""&&O.length>1&&(E=`
11
11
  ${S}${E}
12
- ${L}`),v.pop(),`{${E}}`}case"number":return isFinite(b)?String(b):e?e(b):"null";case"boolean":return b===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(b);default:return e?e(b):void 0}}function f(g,u,v,y,w,S){switch(typeof u=="object"&&u!==null&&typeof u.toJSON=="function"&&(u=u.toJSON(g)),typeof u){case"string":return ve(u);case"object":{if(u===null)return"null";if(v.indexOf(u)!==-1)return t;let b=S,E="",M=",";if(Array.isArray(u)){if(u.length===0)return"[]";if(a<v.length+1)return'"[Array]"';v.push(u),w!==""&&(S+=w,E+=`
12
+ ${L}`),y.pop(),`{${E}}`}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 c(g,u,y,b,w,S){switch(typeof u=="object"&&u!==null&&typeof u.toJSON=="function"&&(u=u.toJSON(g)),typeof u){case"string":return be(u);case"object":{if(u===null)return"null";if(y.indexOf(u)!==-1)return r;let _=S,E="",M=",";if(Array.isArray(u)){if(u.length===0)return"[]";if(s<y.length+1)return'"[Array]"';y.push(u),w!==""&&(S+=w,E+=`
13
13
  ${S}`,M=`,
14
- ${S}`);let I=Math.min(u.length,s),R=0;for(;R<I-1;R++){let D=f(String(R),u[R],v,y,w,S);E+=D!==void 0?D:"null",E+=M}let O=f(String(R),u[R],v,y,w,S);if(E+=O!==void 0?O:"null",u.length-1>s){let D=u.length-s-1;E+=`${M}"... ${Re(D)} not stringified"`}return w!==""&&(E+=`
15
- ${b}`),v.pop(),`[${E}]`}v.push(u);let L="";w!==""&&(S+=w,M=`,
16
- ${S}`,L=" ");let k="";for(let I of y){let R=f(I,u[I],v,y,w,S);R!==void 0&&(E+=`${k}${ve(I)}:${L}${R}`,k=M)}return w!==""&&k.length>1&&(E=`
14
+ ${S}`);let P=Math.min(u.length,a),R=0;for(;R<P-1;R++){let I=c(String(R),u[R],y,b,w,S);E+=I!==void 0?I:"null",E+=M}let O=c(String(R),u[R],y,b,w,S);if(E+=O!==void 0?O:"null",u.length-1>a){let I=u.length-a-1;E+=`${M}"... ${Te(I)} not stringified"`}return w!==""&&(E+=`
15
+ ${_}`),y.pop(),`[${E}]`}y.push(u);let L="";w!==""&&(S+=w,M=`,
16
+ ${S}`,L=" ");let k="";for(let P of b){let R=c(P,u[P],y,b,w,S);R!==void 0&&(E+=`${k}${be(P)}:${L}${R}`,k=M)}return w!==""&&k.length>1&&(E=`
17
17
  ${S}${E}
18
- ${b}`),v.pop(),`{${E}}`}case"number":return isFinite(u)?String(u):e?e(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(u);default:return e?e(u):void 0}}function h(g,u,v,y,w){switch(typeof u){case"string":return ve(u);case"object":{if(u===null)return"null";if(typeof u.toJSON=="function"){if(u=u.toJSON(g),typeof u!="object")return h(g,u,v,y,w);if(u===null)return"null"}if(v.indexOf(u)!==-1)return t;let S=w;if(Array.isArray(u)){if(u.length===0)return"[]";if(a<v.length+1)return'"[Array]"';v.push(u),w+=y;let R=`
18
+ ${_}`),y.pop(),`{${E}}`}case"number":return isFinite(u)?String(u):e?e(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(u);default:return e?e(u):void 0}}function d(g,u,y,b,w){switch(typeof u){case"string":return be(u);case"object":{if(u===null)return"null";if(typeof u.toJSON=="function"){if(u=u.toJSON(g),typeof u!="object")return d(g,u,y,b,w);if(u===null)return"null"}if(y.indexOf(u)!==-1)return r;let S=w;if(Array.isArray(u)){if(u.length===0)return"[]";if(s<y.length+1)return'"[Array]"';y.push(u),w+=b;let R=`
19
19
  ${w}`,O=`,
20
- ${w}`,D=Math.min(u.length,s),V=0;for(;V<D-1;V++){let X=h(String(V),u[V],v,y,w);R+=X!==void 0?X:"null",R+=O}let Q=h(String(V),u[V],v,y,w);if(R+=Q!==void 0?Q:"null",u.length-1>s){let X=u.length-s-1;R+=`${O}"... ${Re(X)} not stringified"`}return R+=`
21
- ${S}`,v.pop(),`[${R}]`}let b=Object.keys(u),E=b.length;if(E===0)return"{}";if(a<v.length+1)return'"[Object]"';w+=y;let M=`,
22
- ${w}`,L="",k="",I=Math.min(E,s);an(u)&&(L+=So(u,M,s),b=b.slice(u.length),I-=u.length,k=M),i&&(b=on(b,o)),v.push(u);for(let R=0;R<I;R++){let O=b[R],D=h(O,u[O],v,y,w);D!==void 0&&(L+=`${k}${ve(O)}: ${D}`,k=M)}if(E>s){let R=E-s;L+=`${k}"...": "${Re(R)} not stringified"`,k=M}return k!==""&&(L=`
20
+ ${w}`,I=Math.min(u.length,a),Y=0;for(;Y<I-1;Y++){let ee=d(String(Y),u[Y],y,b,w);R+=ee!==void 0?ee:"null",R+=O}let X=d(String(Y),u[Y],y,b,w);if(R+=X!==void 0?X:"null",u.length-1>a){let ee=u.length-a-1;R+=`${O}"... ${Te(ee)} not stringified"`}return R+=`
21
+ ${S}`,y.pop(),`[${R}]`}let _=Object.keys(u),E=_.length;if(E===0)return"{}";if(s<y.length+1)return'"[Object]"';w+=b;let M=`,
22
+ ${w}`,L="",k="",P=Math.min(E,a);en(u)&&(L+=yo(u,M,a),_=_.slice(u.length),P-=u.length,k=M),i&&(_=Xr(_,o)),y.push(u);for(let R=0;R<P;R++){let O=_[R],I=d(O,u[O],y,b,w);I!==void 0&&(L+=`${k}${be(O)}: ${I}`,k=M)}if(E>a){let R=E-a;L+=`${k}"...": "${Te(R)} not stringified"`,k=M}return k!==""&&(L=`
23
23
  ${w}${L}
24
- ${S}`),v.pop(),`{${L}}`}case"number":return isFinite(u)?String(u):e?e(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(u);default:return e?e(u):void 0}}function c(g,u,v){switch(typeof u){case"string":return ve(u);case"object":{if(u===null)return"null";if(typeof u.toJSON=="function"){if(u=u.toJSON(g),typeof u!="object")return c(g,u,v);if(u===null)return"null"}if(v.indexOf(u)!==-1)return t;let y="",w=u.length!==void 0;if(w&&Array.isArray(u)){if(u.length===0)return"[]";if(a<v.length+1)return'"[Array]"';v.push(u);let L=Math.min(u.length,s),k=0;for(;k<L-1;k++){let R=c(String(k),u[k],v);y+=R!==void 0?R:"null",y+=","}let I=c(String(k),u[k],v);if(y+=I!==void 0?I:"null",u.length-1>s){let R=u.length-s-1;y+=`,"... ${Re(R)} not stringified"`}return v.pop(),`[${y}]`}let S=Object.keys(u),b=S.length;if(b===0)return"{}";if(a<v.length+1)return'"[Object]"';let E="",M=Math.min(b,s);w&&an(u)&&(y+=So(u,",",s),S=S.slice(u.length),M-=u.length,E=","),i&&(S=on(S,o)),v.push(u);for(let L=0;L<M;L++){let k=S[L],I=c(k,u[k],v);I!==void 0&&(y+=`${E}${ve(k)}:${I}`,E=",")}if(b>s){let L=b-s;y+=`${E}"...":"${Re(L)} not stringified"`}return v.pop(),`{${y}}`}case"number":return isFinite(u)?String(u):e?e(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(u);default:return e?e(u):void 0}}function p(g,u,v){if(arguments.length>1){let y="";if(typeof v=="number"?y=" ".repeat(Math.min(v,10)):typeof v=="string"&&(y=v.slice(0,10)),u!=null){if(typeof u=="function")return l("",{"":g},[],u,y,"");if(Array.isArray(u))return f("",g,[],Cc(u),y,"")}if(y.length!==0)return h("",g,[],y,"")}return c("",g,[])}return p}});var un=d((nm,To)=>{"use strict";var Lc=J(),{MESSAGE:Pc}=F(),Ic=ar();function Dc(r,e){return typeof e=="bigint"?e.toString():e}To.exports=Lc((r,e)=>{let t=Ic.configure(e);return r[Pc]=t(r,e.replacer||Dc,e.space),r})});var qo=d((im,Oo)=>{"use strict";var jc=J();Oo.exports=jc((r,e)=>e.message?(r.message=`[${e.label}] ${r.message}`,r):(r.label=e.label,r))});var Co=d((om,ko)=>{"use strict";var Nc=J(),{MESSAGE:Fc}=F(),Bc=ar();ko.exports=Nc(r=>{let e={};return r.message&&(e["@message"]=r.message,delete r.message),r.timestamp&&(e["@timestamp"]=r.timestamp,delete r.timestamp),e["@fields"]=r,r[Fc]=Bc(e),r})});var Lo=d((am,Ao)=>{"use strict";var Wc=J();function zc(r,e,t){let n=e.reduce((o,a)=>(o[a]=r[a],delete r[a],o),{}),i=Object.keys(r).reduce((o,a)=>(o[a]=r[a],delete r[a],o),{});return Object.assign(r,n,{[t]:i}),r}function Vc(r,e,t){return r[t]=e.reduce((n,i)=>(n[i]=r[i],delete r[i],n),{}),r}Ao.exports=Wc((r,e={})=>{let t="metadata";e.key&&(t=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?zc(r,n,t):e.fillWith?Vc(r,e.fillWith,t):r})});var Io=d((sm,Po)=>{var We=1e3,ze=We*60,Ve=ze*60,Oe=Ve*24,Hc=Oe*7,Uc=Oe*365.25;Po.exports=function(r,e){e=e||{};var t=typeof r;if(t==="string"&&r.length>0)return Yc(r);if(t==="number"&&isFinite(r))return e.long?Kc(r):Gc(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function Yc(r){if(r=String(r),!(r.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(r);if(e){var t=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*Uc;case"weeks":case"week":case"w":return t*Hc;case"days":case"day":case"d":return t*Oe;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Ve;case"minutes":case"minute":case"mins":case"min":case"m":return t*ze;case"seconds":case"second":case"secs":case"sec":case"s":return t*We;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Gc(r){var e=Math.abs(r);return e>=Oe?Math.round(r/Oe)+"d":e>=Ve?Math.round(r/Ve)+"h":e>=ze?Math.round(r/ze)+"m":e>=We?Math.round(r/We)+"s":r+"ms"}function Kc(r){var e=Math.abs(r);return e>=Oe?zr(r,e,Oe,"day"):e>=Ve?zr(r,e,Ve,"hour"):e>=ze?zr(r,e,ze,"minute"):e>=We?zr(r,e,We,"second"):r+" ms"}function zr(r,e,t,n){var i=e>=t*1.5;return Math.round(r/t)+" "+n+(i?"s":"")}});var jo=d((sr,Do)=>{"use strict";var Jc=J(),Zc=Io();Do.exports=Jc(r=>{let e=+new Date;return sr.diff=e-(sr.prevTime||e),sr.prevTime=e,r.ms=`+${Zc(sr.diff)}`,r})});var Bo=d((lm,Fo)=>{"use strict";var Qc=require("util").inspect,Xc=J(),{LEVEL:ef,MESSAGE:No,SPLAT:rf}=F();Fo.exports=Xc((r,e={})=>{let t=Object.assign({},r);return delete t[ef],delete t[No],delete t[rf],r[No]=Qc(t,!1,e.depth||null,e.colorize),r})});var Wo=d((um,Hr)=>{"use strict";var{MESSAGE:tf}=F(),Vr=class{constructor(e){this.template=e}transform(e){return e[tf]=this.template(e),e}};Hr.exports=r=>new Vr(r);Hr.exports.Printf=Hr.exports.Format=Vr});var Ho=d((cm,Vo)=>{"use strict";var nf=J(),{MESSAGE:zo}=F(),of=ar();Vo.exports=nf(r=>{let e=of(Object.assign({},r,{level:void 0,message:void 0,splat:void 0})),t=r.padding&&r.padding[r.level]||"";return e!=="{}"?r[zo]=`${r.level}:${t} ${r.message} ${e}`:r[zo]=`${r.level}:${t} ${r.message}`,r})});var Go=d((fm,Yo)=>{"use strict";var af=require("util"),{SPLAT:Uo}=F(),sf=/%[scdjifoO%]/g,lf=/%%/g,cn=class{constructor(e){this.options=e}_splat(e,t){let n=e.message,i=e[Uo]||e.splat||[],o=n.match(lf),a=o&&o.length||0,l=t.length-a-i.length,f=l<0?i.splice(l,-1*l):[],h=f.length;if(h)for(let c=0;c<h;c++)Object.assign(e,f[c]);return e.message=af.format(n,...i),e}transform(e){let t=e.message,n=e[Uo]||e.splat;if(!n||!n.length)return e;let i=t&&t.match&&t.match(sf);if(!i&&(n||n.length)){let o=n.length>1?n.splice(0):n,a=o.length;if(a)for(let s=0;s<a;s++)Object.assign(e,o[s]);return e}return i?this._splat(e,i):e}};Yo.exports=r=>new cn(r)});var Jo=d((Ur,Ko)=>{(function(r,e){typeof Ur=="object"&&typeof Ko<"u"?e(Ur):typeof define=="function"&&define.amd?define(["exports"],e):e(r.fecha={})})(Ur,(function(r){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,t="\\d\\d?",n="\\d\\d",i="\\d{3}",o="\\d{4}",a="[^\\s]+",s=/\[([^]*?)\]/gm;function l(m,x){for(var P=[],K=0,$=m.length;K<$;K++)P.push(m[K].substr(0,x));return P}var f=function(m){return function(x,P){var K=P[m].map(function(le){return le.toLowerCase()}),$=K.indexOf(x.toLowerCase());return $>-1?$:null}};function h(m){for(var x=[],P=1;P<arguments.length;P++)x[P-1]=arguments[P];for(var K=0,$=x;K<$.length;K++){var le=$[K];for(var Se in le)m[Se]=le[Se]}return m}var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],g=l(p,3),u=l(c,3),v={dayNamesShort:u,dayNames:c,monthNamesShort:g,monthNames:p,amPm:["am","pm"],DoFn:function(m){return m+["th","st","nd","rd"][m%10>3?0:(m-m%10!==10?1:0)*m%10]}},y=h({},v),w=function(m){return y=h(y,m)},S=function(m){return m.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(m,x){for(x===void 0&&(x=2),m=String(m);m.length<x;)m="0"+m;return m},E={D:function(m){return String(m.getDate())},DD:function(m){return b(m.getDate())},Do:function(m,x){return x.DoFn(m.getDate())},d:function(m){return String(m.getDay())},dd:function(m){return b(m.getDay())},ddd:function(m,x){return x.dayNamesShort[m.getDay()]},dddd:function(m,x){return x.dayNames[m.getDay()]},M:function(m){return String(m.getMonth()+1)},MM:function(m){return b(m.getMonth()+1)},MMM:function(m,x){return x.monthNamesShort[m.getMonth()]},MMMM:function(m,x){return x.monthNames[m.getMonth()]},YY:function(m){return b(String(m.getFullYear()),4).substr(2)},YYYY:function(m){return b(m.getFullYear(),4)},h:function(m){return String(m.getHours()%12||12)},hh:function(m){return b(m.getHours()%12||12)},H:function(m){return String(m.getHours())},HH:function(m){return b(m.getHours())},m:function(m){return String(m.getMinutes())},mm:function(m){return b(m.getMinutes())},s:function(m){return String(m.getSeconds())},ss:function(m){return b(m.getSeconds())},S:function(m){return String(Math.round(m.getMilliseconds()/100))},SS:function(m){return b(Math.round(m.getMilliseconds()/10),2)},SSS:function(m){return b(m.getMilliseconds(),3)},a:function(m,x){return m.getHours()<12?x.amPm[0]:x.amPm[1]},A:function(m,x){return m.getHours()<12?x.amPm[0].toUpperCase():x.amPm[1].toUpperCase()},ZZ:function(m){var x=m.getTimezoneOffset();return(x>0?"-":"+")+b(Math.floor(Math.abs(x)/60)*100+Math.abs(x)%60,4)},Z:function(m){var x=m.getTimezoneOffset();return(x>0?"-":"+")+b(Math.floor(Math.abs(x)/60),2)+":"+b(Math.abs(x)%60,2)}},M=function(m){return+m-1},L=[null,t],k=[null,a],I=["isPm",a,function(m,x){var P=m.toLowerCase();return P===x.amPm[0]?0:P===x.amPm[1]?1:null}],R=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(m){var x=(m+"").match(/([+-]|\d\d)/gi);if(x){var P=+x[1]*60+parseInt(x[2],10);return x[0]==="+"?P:-P}return 0}],O={D:["day",t],DD:["day",n],Do:["day",t+a,function(m){return parseInt(m,10)}],M:["month",t,M],MM:["month",n,M],YY:["year",n,function(m){var x=new Date,P=+(""+x.getFullYear()).substr(0,2);return+(""+(+m>68?P-1:P)+m)}],h:["hour",t,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",t],HH:["hour",n],m:["minute",t],mm:["minute",n],s:["second",t],ss:["second",n],YYYY:["year",o],S:["millisecond","\\d",function(m){return+m*100}],SS:["millisecond",n,function(m){return+m*10}],SSS:["millisecond",i],d:L,dd:L,ddd:k,dddd:k,MMM:["month",a,f("monthNamesShort")],MMMM:["month",a,f("monthNames")],a:I,A:I,ZZ:R,Z:R},D={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"},V=function(m){return h(D,m)},Q=function(m,x,P){if(x===void 0&&(x=D.default),P===void 0&&(P={}),typeof m=="number"&&(m=new Date(m)),Object.prototype.toString.call(m)!=="[object Date]"||isNaN(m.getTime()))throw new Error("Invalid Date pass to format");x=D[x]||x;var K=[];x=x.replace(s,function(le,Se){return K.push(Se),"@@@"});var $=h(h({},y),P);return x=x.replace(e,function(le){return E[le](m,$)}),x.replace(/@@@/g,function(){return K.shift()})};function X(m,x,P){if(P===void 0&&(P={}),typeof x!="string")throw new Error("Invalid format in fecha parse");if(x=D[x]||x,m.length>1e3)return null;var K=new Date,$={year:K.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},le=[],Se=[],rr=x.replace(s,function(tr,Fe){return Se.push(S(Fe)),"@@@"}),kr={},Si={};rr=S(rr).replace(e,function(tr){var Fe=O[tr],zt=Fe[0],Bu=Fe[1],Oi=Fe[3];if(kr[zt])throw new Error("Invalid format. "+zt+" specified twice in format");return kr[zt]=!0,Oi&&(Si[Oi]=!0),le.push(Fe),"("+Bu+")"}),Object.keys(Si).forEach(function(tr){if(!kr[tr])throw new Error("Invalid format. "+tr+" is required in specified format")}),rr=rr.replace(/@@@/g,function(){return Se.shift()});var Cr=m.match(new RegExp(rr,"i"));if(!Cr)return null;for(var ju=h(h({},y),P),ie=1;ie<Cr.length;ie++){var Mi=le[ie-1],Nu=Mi[0],Ri=Mi[2],Ti=Ri?Ri(Cr[ie],ju):+Cr[ie];if(Ti==null)return null;$[Nu]=Ti}$.isPm===1&&$.hour!=null&&+$.hour!=12?$.hour=+$.hour+12:$.isPm===0&&+$.hour==12&&($.hour=0);var Ar;if($.timezoneOffset==null){Ar=new Date($.year,$.month,$.day,$.hour,$.minute,$.second,$.millisecond);for(var Lr=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ie=0,Fu=Lr.length;ie<Fu;ie++)if(kr[Lr[ie][0]]&&$[Lr[ie][0]]!==Ar[Lr[ie][1]]())return null}else if(Ar=new Date(Date.UTC($.year,$.month,$.day,$.hour,$.minute-$.timezoneOffset,$.second,$.millisecond)),$.month>11||$.month<0||$.day>31||$.day<1||$.hour>23||$.hour<0||$.minute>59||$.minute<0||$.second>59||$.second<0)return null;return Ar}var Ne={format:Q,parse:X,defaultI18n:v,setGlobalDateI18n:w,setGlobalDateMasks:V};r.assign=h,r.default=Ne,r.format=Q,r.parse=X,r.defaultI18n=v,r.setGlobalDateI18n=w,r.setGlobalDateMasks=V,Object.defineProperty(r,"__esModule",{value:!0})}))});var Qo=d((hm,Zo)=>{"use strict";var uf=Jo(),cf=J();Zo.exports=cf((r,e={})=>(e.format&&(r.timestamp=typeof e.format=="function"?e.format():uf.format(new Date,e.format)),r.timestamp||(r.timestamp=new Date().toISOString()),e.alias&&(r[e.alias]=r.timestamp),r))});var ea=d((dm,Xo)=>{"use strict";var fn=Ut(),ff=J(),{MESSAGE:hn}=F();Xo.exports=ff((r,e)=>(e.level!==!1&&(r.level=fn.strip(r.level)),e.message!==!1&&(r.message=fn.strip(String(r.message))),e.raw!==!1&&r[hn]&&(r[hn]=fn.strip(String(r[hn]))),r))});var pn=d(dn=>{"use strict";var hf=dn.format=J();dn.levels=go();function H(r,e){Object.defineProperty(hf,r,{get(){return e()},configurable:!0})}H("align",function(){return vo()});H("errors",function(){return wo()});H("cli",function(){return _o()});H("combine",function(){return Eo()});H("colorize",function(){return Nr()});H("json",function(){return un()});H("label",function(){return qo()});H("logstash",function(){return Co()});H("metadata",function(){return Lo()});H("ms",function(){return jo()});H("padLevels",function(){return rn()});H("prettyPrint",function(){return Bo()});H("printf",function(){return Wo()});H("simple",function(){return Ho()});H("splat",function(){return Go()});H("timestamp",function(){return Qo()});H("uncolorize",function(){return ea()})});var gn=d(Yr=>{"use strict";var{format:ra}=require("util");Yr.warn={deprecated(r){return()=>{throw new Error(ra("{ %s } was removed in winston@3.0.0.",r))}},useFormat(r){return()=>{throw new Error([ra("{ %s } was removed in winston@3.0.0.",r),"Use a custom winston.format = winston.format(function) instead."].join(`
25
- `))}},forFunctions(r,e,t){t.forEach(n=>{r[n]=Yr.warn[e](n)})},forProperties(r,e,t){t.forEach(n=>{let i=Yr.warn[e](n);Object.defineProperty(r,n,{get:i,set:i})})}}});var ta=d((mm,df)=>{df.exports={name:"winston",description:"A logger for just about everything.",version:"3.17.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^17.1.0",rimraf:"5.0.1",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var ia=d((vm,na)=>{na.exports=require("util").deprecate});var mn=d((ym,oa)=>{oa.exports=require("stream")});var yn=d((bm,sa)=>{"use strict";function pf(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(vn,this,r)):process.nextTick(vn,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(o){!e&&o?t._writableState?t._writableState.errorEmitted?process.nextTick(Gr,t):(t._writableState.errorEmitted=!0,process.nextTick(aa,t,o)):process.nextTick(aa,t,o):e?(process.nextTick(Gr,t),e(o)):process.nextTick(Gr,t)}),this)}function aa(r,e){vn(r,e),Gr(r)}function Gr(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.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 vn(r,e){r.emit("error",e)}function mf(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}sa.exports={destroy:pf,undestroy:gf,errorOrDestroy:mf}});var ye=d((wm,ca)=>{"use strict";var ua={};function te(r,e,t){t||(t=Error);function n(o,a,s){return typeof e=="string"?e:e(o,a,s)}class i extends t{constructor(a,s,l){super(n(a,s,l))}}i.prototype.name=t.name,i.prototype.code=r,ua[r]=i}function la(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(n=>String(n)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return`of ${e} ${String(r)}`}function vf(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function yf(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function bf(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}te("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);te("ERR_INVALID_ARG_TYPE",function(r,e,t){let n;typeof e=="string"&&vf(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(yf(r," argument"))i=`The ${r} ${n} ${la(e,"type")}`;else{let o=bf(r,".")?"property":"argument";i=`The "${r}" ${o} ${n} ${la(e,"type")}`}return i+=`. Received type ${typeof t}`,i},TypeError);te("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");te("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});te("ERR_STREAM_PREMATURE_CLOSE","Premature close");te("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});te("ERR_MULTIPLE_CALLBACK","Callback called multiple times");te("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");te("ERR_STREAM_WRITE_AFTER_END","write after end");te("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);te("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);te("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ca.exports.codes=ua});var bn=d((xm,fa)=>{"use strict";var wf=ye().codes.ERR_INVALID_OPT_VALUE;function xf(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function _f(r,e,t,n){var i=xf(e,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?t:"highWaterMark";throw new wf(o,i)}return Math.floor(i)}return r.objectMode?16:16*1024}fa.exports={getHighWaterMark:_f}});var ha=d((_m,wn)=>{typeof Object.create=="function"?wn.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:wn.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var He=d(($m,_n)=>{try{if(xn=require("util"),typeof xn.inherits!="function")throw"";_n.exports=xn.inherits}catch{_n.exports=ha()}var xn});var ya=d((Em,va)=>{"use strict";function da(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function pa(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?da(Object(t),!0).forEach(function(n){$f(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):da(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function $f(r,e,t){return e=ma(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ef(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function ga(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,ma(n.key),n)}}function Sf(r,e,t){return e&&ga(r.prototype,e),t&&ga(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function ma(r){var e=Mf(r,"string");return typeof e=="symbol"?e:String(e)}function Mf(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Rf=require("buffer"),Kr=Rf.Buffer,Tf=require("util"),$n=Tf.inspect,Of=$n&&$n.custom||"inspect";function qf(r,e,t){Kr.prototype.copy.call(r,e,t)}va.exports=(function(){function r(){Ef(this,r),this.head=null,this.tail=null,this.length=0}return Sf(r,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return Kr.alloc(0);for(var n=Kr.allocUnsafe(t>>>0),i=this.head,o=0;i;)qf(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,o=n.data;for(t-=o.length;n=n.next;){var a=n.data,s=t>a.length?a.length:t;if(s===a.length?o+=a:o+=a.slice(0,t),t-=s,t===0){s===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(s));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(t){var n=Kr.allocUnsafe(t),i=this.head,o=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var a=i.data,s=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,s),t-=s,t===0){s===a.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(s));break}++o}return this.length-=o,n}},{key:Of,value:function(t,n){return $n(this,pa(pa({},n),{},{depth:0,customInspect:!1}))}}]),r})()});var xa=d((En,wa)=>{var Jr=require("buffer"),ue=Jr.Buffer;function ba(r,e){for(var t in r)e[t]=r[t]}ue.from&&ue.alloc&&ue.allocUnsafe&&ue.allocUnsafeSlow?wa.exports=Jr:(ba(Jr,En),En.Buffer=qe);function qe(r,e,t){return ue(r,e,t)}qe.prototype=Object.create(ue.prototype);ba(ue,qe);qe.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return ue(r,e,t)};qe.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=ue(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};qe.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return ue(r)};qe.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Jr.SlowBuffer(r)}});var Rn=d($a=>{"use strict";var Mn=xa().Buffer,_a=Mn.isEncoding||function(r){switch(r=""+r,r&&r.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 kf(r){if(!r)return"utf8";for(var e;;)switch(r){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 r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function Cf(r){var e=kf(r);if(typeof e!="string"&&(Mn.isEncoding===_a||!_a(r)))throw new Error("Unknown encoding: "+r);return e||r}$a.StringDecoder=lr;function lr(r){this.encoding=Cf(r);var e;switch(this.encoding){case"utf16le":this.text=jf,this.end=Nf,e=4;break;case"utf8":this.fillLast=Pf,e=4;break;case"base64":this.text=Ff,this.end=Bf,e=3;break;default:this.write=Wf,this.end=zf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Mn.allocUnsafe(e)}lr.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};lr.prototype.end=Df;lr.prototype.text=If;lr.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function Sn(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Af(r,e,t){var n=e.length-1;if(n<t)return 0;var i=Sn(e[n]);return i>=0?(i>0&&(r.lastNeed=i-1),i):--n<t||i===-2?0:(i=Sn(e[n]),i>=0?(i>0&&(r.lastNeed=i-2),i):--n<t||i===-2?0:(i=Sn(e[n]),i>=0?(i>0&&(i===2?i=0:r.lastNeed=i-3),i):0))}function Lf(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function Pf(r){var e=this.lastTotal-this.lastNeed,t=Lf(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function If(r,e){var t=Af(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function Df(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function jf(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function Nf(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function Ff(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Bf(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Wf(r){return r.toString(this.encoding)}function zf(r){return r&&r.length?this.write(r):""}});var Zr=d((Mm,Ma)=>{"use strict";var Ea=ye().codes.ERR_STREAM_PREMATURE_CLOSE;function Vf(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.apply(this,n)}}}function Hf(){}function Uf(r){return r.setHeader&&typeof r.abort=="function"}function Sa(r,e,t){if(typeof e=="function")return Sa(r,null,e);e||(e={}),t=Vf(t||Hf);var n=e.readable||e.readable!==!1&&r.readable,i=e.writable||e.writable!==!1&&r.writable,o=function(){r.writable||s()},a=r._writableState&&r._writableState.finished,s=function(){i=!1,a=!0,n||t.call(r)},l=r._readableState&&r._readableState.endEmitted,f=function(){n=!1,l=!0,i||t.call(r)},h=function(u){t.call(r,u)},c=function(){var u;if(n&&!l)return(!r._readableState||!r._readableState.ended)&&(u=new Ea),t.call(r,u);if(i&&!a)return(!r._writableState||!r._writableState.ended)&&(u=new Ea),t.call(r,u)},p=function(){r.req.on("finish",s)};return Uf(r)?(r.on("complete",s),r.on("abort",c),r.req?p():r.on("request",p)):i&&!r._writableState&&(r.on("end",o),r.on("close",o)),r.on("end",f),r.on("finish",s),e.error!==!1&&r.on("error",h),r.on("close",c),function(){r.removeListener("complete",s),r.removeListener("abort",c),r.removeListener("request",p),r.req&&r.req.removeListener("finish",s),r.removeListener("end",o),r.removeListener("close",o),r.removeListener("finish",s),r.removeListener("end",f),r.removeListener("error",h),r.removeListener("close",c)}}Ma.exports=Sa});var Ta=d((Rm,Ra)=>{"use strict";var Qr;function be(r,e,t){return e=Yf(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Yf(r){var e=Gf(r,"string");return typeof e=="symbol"?e:String(e)}function Gf(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Kf=Zr(),we=Symbol("lastResolve"),ke=Symbol("lastReject"),ur=Symbol("error"),Xr=Symbol("ended"),Ce=Symbol("lastPromise"),Tn=Symbol("handlePromise"),Ae=Symbol("stream");function xe(r,e){return{value:r,done:e}}function Jf(r){var e=r[we];if(e!==null){var t=r[Ae].read();t!==null&&(r[Ce]=null,r[we]=null,r[ke]=null,e(xe(t,!1)))}}function Zf(r){process.nextTick(Jf,r)}function Qf(r,e){return function(t,n){r.then(function(){if(e[Xr]){t(xe(void 0,!0));return}e[Tn](t,n)},n)}}var Xf=Object.getPrototypeOf(function(){}),eh=Object.setPrototypeOf((Qr={get stream(){return this[Ae]},next:function(){var e=this,t=this[ur];if(t!==null)return Promise.reject(t);if(this[Xr])return Promise.resolve(xe(void 0,!0));if(this[Ae].destroyed)return new Promise(function(a,s){process.nextTick(function(){e[ur]?s(e[ur]):a(xe(void 0,!0))})});var n=this[Ce],i;if(n)i=new Promise(Qf(n,this));else{var o=this[Ae].read();if(o!==null)return Promise.resolve(xe(o,!1));i=new Promise(this[Tn])}return this[Ce]=i,i}},be(Qr,Symbol.asyncIterator,function(){return this}),be(Qr,"return",function(){var e=this;return new Promise(function(t,n){e[Ae].destroy(null,function(i){if(i){n(i);return}t(xe(void 0,!0))})})}),Qr),Xf),rh=function(e){var t,n=Object.create(eh,(t={},be(t,Ae,{value:e,writable:!0}),be(t,we,{value:null,writable:!0}),be(t,ke,{value:null,writable:!0}),be(t,ur,{value:null,writable:!0}),be(t,Xr,{value:e._readableState.endEmitted,writable:!0}),be(t,Tn,{value:function(o,a){var s=n[Ae].read();s?(n[Ce]=null,n[we]=null,n[ke]=null,o(xe(s,!1))):(n[we]=o,n[ke]=a)},writable:!0}),t));return n[Ce]=null,Kf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[ke];o!==null&&(n[Ce]=null,n[we]=null,n[ke]=null,o(i)),n[ur]=i;return}var a=n[we];a!==null&&(n[Ce]=null,n[we]=null,n[ke]=null,a(xe(void 0,!0))),n[Xr]=!0}),e.on("readable",Zf.bind(null,n)),n};Ra.exports=rh});var Ca=d((Tm,ka)=>{"use strict";function Oa(r,e,t,n,i,o,a){try{var s=r[o](a),l=s.value}catch(f){t(f);return}s.done?e(l):Promise.resolve(l).then(n,i)}function th(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(l){Oa(o,n,i,a,s,"next",l)}function s(l){Oa(o,n,i,a,s,"throw",l)}a(void 0)})}}function qa(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function nh(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qa(Object(t),!0).forEach(function(n){ih(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):qa(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function ih(r,e,t){return e=oh(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function oh(r){var e=ah(r,"string");return typeof e=="symbol"?e:String(e)}function ah(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var sh=ye().codes.ERR_INVALID_ARG_TYPE;function lh(r,e,t){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 sh("iterable",["Iterable"],e);var i=new r(nh({objectMode:!0},t)),o=!1;i._read=function(){o||(o=!0,a())};function a(){return s.apply(this,arguments)}function s(){return s=th(function*(){try{var l=yield n.next(),f=l.value,h=l.done;h?i.push(null):i.push(yield f)?a():o=!1}catch(c){i.destroy(c)}}),s.apply(this,arguments)}return i}ka.exports=lh});var jn=d((qm,Wa)=>{"use strict";Wa.exports=C;var Ue;C.ReadableState=Ia;var Om=require("events").EventEmitter,Pa=function(e,t){return e.listeners(t).length},fr=mn(),et=require("buffer").Buffer,uh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ch(r){return et.from(r)}function fh(r){return et.isBuffer(r)||r instanceof uh}var On=require("util"),T;On&&On.debuglog?T=On.debuglog("stream"):T=function(){};var hh=ya(),In=yn(),dh=bn(),ph=dh.getHighWaterMark,rt=ye().codes,gh=rt.ERR_INVALID_ARG_TYPE,mh=rt.ERR_STREAM_PUSH_AFTER_EOF,vh=rt.ERR_METHOD_NOT_IMPLEMENTED,yh=rt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ye,qn,kn;He()(C,fr);var cr=In.errorOrDestroy,Cn=["error","close","destroy","pause","resume"];function bh(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function Ia(r,e,t){Ue=Ue||Le(),r=r||{},typeof t!="boolean"&&(t=e instanceof Ue),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=ph(this,r,"readableHighWaterMark",t),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=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(Ye||(Ye=Rn().StringDecoder),this.decoder=new Ye(r.encoding),this.encoding=r.encoding)}function C(r){if(Ue=Ue||Le(),!(this instanceof C))return new C(r);var e=this instanceof Ue;this._readableState=new Ia(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),fr.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=In.destroy;C.prototype._undestroy=In.undestroy;C.prototype._destroy=function(r,e){e(r)};C.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=et.from(r,e),e=""),n=!0),Da(this,r,e,!1,n)};C.prototype.unshift=function(r){return Da(this,r,null,!0,!1)};function Da(r,e,t,n,i){T("readableAddChunk",e);var o=r._readableState;if(e===null)o.reading=!1,_h(r,o);else{var a;if(i||(a=wh(o,e)),a)cr(r,a);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==et.prototype&&(e=ch(e)),n)o.endEmitted?cr(r,new yh):An(r,o,e,!0);else if(o.ended)cr(r,new mh);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!t?(e=o.decoder.write(e),o.objectMode||e.length!==0?An(r,o,e,!1):Pn(r,o)):An(r,o,e,!1)}else n||(o.reading=!1,Pn(r,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function An(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&tt(r)),Pn(r,e)}function wh(r,e){var t;return!fh(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new gh("chunk",["string","Buffer","Uint8Array"],e)),t}C.prototype.isPaused=function(){return this._readableState.flowing===!1};C.prototype.setEncoding=function(r){Ye||(Ye=Rn().StringDecoder);var e=new Ye(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Aa=1073741824;function xh(r){return r>=Aa?r=Aa:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function La(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=xh(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}C.prototype.read=function(r){T("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===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?Ln(this):tt(this),null;if(r=La(r,e),r===0&&e.ended)return e.length===0&&Ln(this),null;var n=e.needReadable;T("need readable",n),(e.length===0||e.length-r<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||(r=La(t,e)));var i;return r>0?i=Fa(r,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Ln(this)),i!==null&&this.emit("data",i),i};function _h(r,e){if(T("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?tt(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,ja(r)))}}function tt(r){var e=r._readableState;T("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(T("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(ja,r))}function ja(r){var e=r._readableState;T("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Dn(r)}function Pn(r,e){e.readingMore||(e.readingMore=!0,process.nextTick($h,r,e))}function $h(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(T("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}C.prototype._read=function(r){cr(this,new vh("_read()"))};C.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,T("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==process.stdout&&r!==process.stderr,o=i?s:v;n.endEmitted?process.nextTick(o):t.once("end",o),r.on("unpipe",a);function a(y,w){T("onunpipe"),y===t&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,h())}function s(){T("onend"),r.end()}var l=Eh(t);r.on("drain",l);var f=!1;function h(){T("cleanup"),r.removeListener("close",g),r.removeListener("finish",u),r.removeListener("drain",l),r.removeListener("error",p),r.removeListener("unpipe",a),t.removeListener("end",s),t.removeListener("end",v),t.removeListener("data",c),f=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&l()}t.on("data",c);function c(y){T("ondata");var w=r.write(y);T("dest.write",w),w===!1&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&Ba(n.pipes,r)!==-1)&&!f&&(T("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function p(y){T("onerror",y),v(),r.removeListener("error",p),Pa(r,"error")===0&&cr(r,y)}bh(r,"error",p);function g(){r.removeListener("finish",u),v()}r.once("close",g);function u(){T("onfinish"),r.removeListener("close",g),v()}r.once("finish",u);function v(){T("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(T("pipe resume"),t.resume()),r};function Eh(r){return function(){var t=r._readableState;T("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Pa(r,"data")&&(t.flowing=!0,Dn(r))}}C.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Ba(e.pipes,r);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};C.prototype.on=function(r,e){var t=fr.prototype.on.call(this,r,e),n=this._readableState;return r==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):r==="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?tt(this):n.reading||process.nextTick(Sh,this)),t};C.prototype.addListener=C.prototype.on;C.prototype.removeListener=function(r,e){var t=fr.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(Na,this),t};C.prototype.removeAllListeners=function(r){var e=fr.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(Na,this),e};function Na(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function Sh(r){T("readable nexttick read 0"),r.read(0)}C.prototype.resume=function(){var r=this._readableState;return r.flowing||(T("resume"),r.flowing=!r.readableListening,Mh(this,r)),r.paused=!1,this};function Mh(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Rh,r,e))}function Rh(r,e){T("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),Dn(r),e.flowing&&!e.reading&&r.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 Dn(r){var e=r._readableState;for(T("flow",e.flowing);e.flowing&&r.read()!==null;);}C.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(T("wrapped end"),t.decoder&&!t.ended){var a=t.decoder.end();a&&a.length&&e.push(a)}e.push(null)}),r.on("data",function(a){if(T("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!(t.objectMode&&a==null)&&!(!t.objectMode&&(!a||!a.length))){var s=e.push(a);s||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=(function(s){return function(){return r[s].apply(r,arguments)}})(i));for(var o=0;o<Cn.length;o++)r.on(Cn[o],this.emit.bind(this,Cn[o]));return this._read=function(a){T("wrapped _read",a),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(C.prototype[Symbol.asyncIterator]=function(){return qn===void 0&&(qn=Ta()),qn(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=Fa;Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Fa(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Ln(r){var e=r._readableState;T("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Th,e,r))}function Th(r,e){if(T("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(C.from=function(r,e){return kn===void 0&&(kn=Ca()),kn(C,r,e)});function Ba(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var Le=d((km,Va)=>{"use strict";var Oh=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};Va.exports=ce;var za=jn(),Fn=ot();He()(ce,za);for(Nn=Oh(Fn.prototype),nt=0;nt<Nn.length;nt++)it=Nn[nt],ce.prototype[it]||(ce.prototype[it]=Fn.prototype[it]);var Nn,it,nt;function ce(r){if(!(this instanceof ce))return new ce(r);za.call(this,r),Fn.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",qh)))}Object.defineProperty(ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function qh(){this._writableState.ended||process.nextTick(kh,this)}function kh(r){r.end()}Object.defineProperty(ce.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 ot=d((Cm,Ja)=>{"use strict";Ja.exports=j;function Ua(r){var e=this;this.next=null,this.entry=null,this.finish=function(){id(e,r)}}var Ge;j.WritableState=dr;var Ch={deprecate:ia()},Ya=mn(),st=require("buffer").Buffer,Ah=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Lh(r){return st.from(r)}function Ph(r){return st.isBuffer(r)||r instanceof Ah}var Wn=yn(),Ih=bn(),Dh=Ih.getHighWaterMark,_e=ye().codes,jh=_e.ERR_INVALID_ARG_TYPE,Nh=_e.ERR_METHOD_NOT_IMPLEMENTED,Fh=_e.ERR_MULTIPLE_CALLBACK,Bh=_e.ERR_STREAM_CANNOT_PIPE,Wh=_e.ERR_STREAM_DESTROYED,zh=_e.ERR_STREAM_NULL_VALUES,Vh=_e.ERR_STREAM_WRITE_AFTER_END,Hh=_e.ERR_UNKNOWN_ENCODING,Ke=Wn.errorOrDestroy;He()(j,Ya);function Uh(){}function dr(r,e,t){Ge=Ge||Le(),r=r||{},typeof t!="boolean"&&(t=e instanceof Ge),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Dh(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.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=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ua(this)}dr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(dr.prototype,"buffer",{get:Ch.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var at;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(at=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(e){return at.call(this,e)?!0:this!==j?!1:e&&e._writableState instanceof dr}})):at=function(e){return e instanceof this};function j(r){Ge=Ge||Le();var e=this instanceof Ge;if(!e&&!at.call(j,this))return new j(r);this._writableState=new dr(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),Ya.call(this)}j.prototype.pipe=function(){Ke(this,new Bh)};function Yh(r,e){var t=new Vh;Ke(r,t),process.nextTick(e,t)}function Gh(r,e,t,n){var i;return t===null?i=new zh:typeof t!="string"&&!e.objectMode&&(i=new jh("chunk",["string","Buffer"],t)),i?(Ke(r,i),process.nextTick(n,i),!1):!0}j.prototype.write=function(r,e,t){var n=this._writableState,i=!1,o=!n.objectMode&&Ph(r);return o&&!st.isBuffer(r)&&(r=Lh(r)),typeof e=="function"&&(t=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=Uh),n.ending?Yh(this,t):(o||Gh(this,n,r,t))&&(n.pendingcb++,i=Jh(this,n,o,r,e,t)),i};j.prototype.cork=function(){this._writableState.corked++};j.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ga(this,r))};j.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 Hh(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Kh(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=st.from(e,t)),e}Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Jh(r,e,t,n,i,o){if(!t){var a=Kh(e,n,i);n!==a&&(t=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Bn(r,e,!1,s,n,i,o);return l}function Bn(r,e,t,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Wh("write")):t?r._writev(i,e.onwrite):r._write(i,o,e.onwrite),e.sync=!1}function Zh(r,e,t,n,i){--e.pendingcb,t?(process.nextTick(i,n),process.nextTick(hr,r,e),r._writableState.errorEmitted=!0,Ke(r,n)):(i(n),r._writableState.errorEmitted=!0,Ke(r,n),hr(r,e))}function Qh(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Xh(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new Fh;if(Qh(t),e)Zh(r,t,n,e,i);else{var o=Ka(t)||r.destroyed;!o&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Ga(r,t),n?process.nextTick(Ha,r,t,o,i):Ha(r,t,o,i)}}function Ha(r,e,t,n){t||ed(r,e),e.pendingcb--,n(),hr(r,e)}function ed(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function Ga(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=t;for(var a=0,s=!0;t;)i[a]=t,t.isBuf||(s=!1),t=t.next,a+=1;i.allBuffers=s,Bn(r,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Ua(e),e.bufferedRequestCount=0}else{for(;t;){var l=t.chunk,f=t.encoding,h=t.callback,c=e.objectMode?1:l.length;if(Bn(r,e,!1,c,l,f,h),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}j.prototype._write=function(r,e,t){t(new Nh("_write()"))};j.prototype._writev=null;j.prototype.end=function(r,e,t){var n=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||nd(this,n,t),this};Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ka(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function rd(r,e){r._final(function(t){e.pendingcb--,t&&Ke(r,t),e.prefinished=!0,r.emit("prefinish"),hr(r,e)})}function td(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(rd,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function hr(r,e){var t=Ka(e);if(t&&(td(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var n=r._readableState;(!n||n.autoDestroy&&n.endEmitted)&&r.destroy()}return t}function nd(r,e,t){e.ending=!0,hr(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function id(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});j.prototype.destroy=Wn.destroy;j.prototype._undestroy=Wn.undestroy;j.prototype._destroy=function(r,e){e(r)}});var zn=d((Am,Xa)=>{"use strict";var od=require("util"),Za=ot(),{LEVEL:Qa}=F(),pr=Xa.exports=function(e={}){Za.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",t=>{this.levels=t.levels,this.parent=t}),this.once("unpipe",t=>{t===this.parent&&(this.parent=null,this.close&&this.close())})};od.inherits(pr,Za);pr.prototype._write=function(e,t,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[Qa]]){if(e&&!this.format)return this.log(e,n);let o,a;try{a=this.format.transform(Object.assign({},e),this.format.options)}catch(s){o=s}if(o||!a){if(n(),o)throw o;return}return this.log(a,n)}return this._writableState.sync=!1,n(null)};pr.prototype._writev=function(e,t){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,t):t(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,o;try{o=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(a){i=a}if(i||!o){if(e[n].callback(),i)throw t(null),i}else this.log(o,e[n].callback)}return t(null)};pr.prototype._accept=function(e){let t=e.chunk;if(this.silent)return!1;let n=this.level||this.parent&&this.parent.level;return!!((t.exception===!0||!n||this.levels[n]>=this.levels[t[Qa]])&&(this.handleExceptions||t.exception!==!0))};pr.prototype._nop=function(){}});var Hn=d((Lm,rs)=>{"use strict";var ad=require("util"),{LEVEL:Vn}=F(),es=zn(),gr=rs.exports=function(e={}){if(es.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 t(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=t.bind(this),this.transport.on("error",this.transport.__winstonError))};ad.inherits(gr,es);gr.prototype._write=function(e,t,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[Vn]])&&this.transport.log(e[Vn],e.message,e,this._nop),n(null)};gr.prototype._writev=function(e,t){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Vn],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return t(null)};gr.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
26
- `))};gr.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Je=d((Pm,Un)=>{"use strict";Un.exports=zn();Un.exports.LegacyTransportStream=Hn()});var is=d((Dm,ns)=>{"use strict";var sd=require("os"),{LEVEL:ts,MESSAGE:Ze}=F(),ld=Je();ns.exports=class extends ld{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:sd.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,t){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[ts]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleError(e[Ze]),t&&t();return}else if(this.consoleWarnLevels[e[ts]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleWarn(e[Ze]),t&&t();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Ze]}${this.eol}`):this._consoleLog(e[Ze]),t&&t()}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(t);return n[i]=!0,n},{})}}});var ut=d((lt,os)=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.default=ud;function ud(r){return r&&typeof r.length=="number"&&r.length>=0&&r.length%1===0}os.exports=lt.default});var ss=d((ct,as)=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.default=function(r){return function(...e){var t=e.pop();return r.call(this,e,t)}};as.exports=ct.default});var cs=d($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.fallback=ls;$e.wrap=us;var cd=$e.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,fd=$e.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,hd=$e.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function ls(r){setTimeout(r,0)}function us(r){return(e,...t)=>r(()=>e(...t))}var mr;cd?mr=queueMicrotask:fd?mr=setImmediate:hd?mr=process.nextTick:mr=ls;$e.default=us(mr)});var gs=d((ft,ps)=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.default=yd;var dd=ss(),pd=ds(dd),gd=cs(),md=ds(gd),vd=Pe();function ds(r){return r&&r.__esModule?r:{default:r}}function yd(r){return(0,vd.isAsync)(r)?function(...e){let t=e.pop(),n=r.apply(this,e);return fs(n,t)}:(0,pd.default)(function(e,t){var n;try{n=r.apply(this,e)}catch(i){return t(i)}if(n&&typeof n.then=="function")return fs(n,t);t(null,n)})}function fs(r,e){return r.then(t=>{hs(e,null,t)},t=>{hs(e,t&&(t instanceof Error||t.message)?t:new Error(t))})}function hs(r,e,t){try{r(e,t)}catch(n){(0,md.default)(i=>{throw i},n)}}ps.exports=ft.default});var Pe=d(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.isAsyncIterable=ge.isAsyncGenerator=ge.isAsync=void 0;var bd=gs(),wd=xd(bd);function xd(r){return r&&r.__esModule?r:{default:r}}function ms(r){return r[Symbol.toStringTag]==="AsyncFunction"}function _d(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function $d(r){return typeof r[Symbol.asyncIterator]=="function"}function Ed(r){if(typeof r!="function")throw new Error("expected a function");return ms(r)?(0,wd.default)(r):r}ge.default=Ed;ge.isAsync=ms;ge.isAsyncGenerator=_d;ge.isAsyncIterable=$d});var Qe=d((ht,vs)=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.default=Sd;function Sd(r,e){if(e||(e=r.length),!e)throw new Error("arity is undefined");function t(...n){return typeof n[e-1]=="function"?r.apply(this,n):new Promise((i,o)=>{n[e-1]=(a,...s)=>{if(a)return o(a);i(s.length>1?s:s[0])},r.apply(this,n)})}return t}vs.exports=ht.default});var bs=d((dt,ys)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});var Md=ut(),Rd=Yn(Md),Td=Pe(),Od=Yn(Td),qd=Qe(),kd=Yn(qd);function Yn(r){return r&&r.__esModule?r:{default:r}}dt.default=(0,kd.default)((r,e,t)=>{var n=(0,Rd.default)(e)?[]:{};r(e,(i,o,a)=>{(0,Od.default)(i)((s,...l)=>{l.length<2&&([l]=l),n[o]=l,a(s)})},i=>t(i,n))},3);ys.exports=dt.default});var Gn=d((pt,ws)=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.default=Cd;function Cd(r){function e(...t){if(r!==null){var n=r;r=null,n.apply(this,t)}}return Object.assign(e,r),e}ws.exports=pt.default});var _s=d((gt,xs)=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()};xs.exports=gt.default});var Ss=d((mt,Es)=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.default=Fd;var Ad=ut(),Ld=$s(Ad),Pd=_s(),Id=$s(Pd);function $s(r){return r&&r.__esModule?r:{default:r}}function Dd(r){var e=-1,t=r.length;return function(){return++e<t?{value:r[e],key:e}:null}}function jd(r){var e=-1;return function(){var n=r.next();return n.done?null:(e++,{value:n.value,key:e})}}function Nd(r){var e=r?Object.keys(r):[],t=-1,n=e.length;return function i(){var o=e[++t];return o==="__proto__"?i():t<n?{value:r[o],key:o}:null}}function Fd(r){if((0,Ld.default)(r))return Dd(r);var e=(0,Id.default)(r);return e?jd(e):Nd(r)}Es.exports=mt.default});var Kn=d((vt,Ms)=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.default=Bd;function Bd(r){return function(...e){if(r===null)throw new Error("Callback was already called.");var t=r;r=null,t.apply(this,e)}}Ms.exports=vt.default});var bt=d((yt,Rs)=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var Wd={};yt.default=Wd;Rs.exports=yt.default});var Os=d((wt,Ts)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.default=Ud;var zd=bt(),Vd=Hd(zd);function Hd(r){return r&&r.__esModule?r:{default:r}}function Ud(r,e,t,n){let i=!1,o=!1,a=!1,s=0,l=0;function f(){s>=e||a||i||(a=!0,r.next().then(({value:p,done:g})=>{if(!(o||i)){if(a=!1,g){i=!0,s<=0&&n(null);return}s++,t(p,l,h),l++,f()}}).catch(c))}function h(p,g){if(s-=1,!o){if(p)return c(p);if(p===!1){i=!0,o=!0;return}if(g===Vd.default||i&&s<=0)return i=!0,n(null);f()}}function c(p){o||(a=!1,i=!0,n(p))}f()}Ts.exports=wt.default});var As=d((xt,Cs)=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});var Yd=Gn(),Gd=vr(Yd),Kd=Ss(),Jd=vr(Kd),Zd=Kn(),Qd=vr(Zd),qs=Pe(),Xd=Os(),ks=vr(Xd),ep=bt(),rp=vr(ep);function vr(r){return r&&r.__esModule?r:{default:r}}xt.default=r=>(e,t,n)=>{if(n=(0,Gd.default)(n),r<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,qs.isAsyncGenerator)(e))return(0,ks.default)(e,r,t,n);if((0,qs.isAsyncIterable)(e))return(0,ks.default)(e[Symbol.asyncIterator](),r,t,n);var i=(0,Jd.default)(e),o=!1,a=!1,s=0,l=!1;function f(c,p){if(!a)if(s-=1,c)o=!0,n(c);else if(c===!1)o=!0,a=!0;else{if(p===rp.default||o&&s<=0)return o=!0,n(null);l||h()}}function h(){for(l=!0;s<r&&!o;){var c=i();if(c===null){o=!0,s<=0&&n(null);return}s+=1,t(c.value,c.key,(0,Qd.default)(f))}l=!1}h()};Cs.exports=xt.default});var Zn=d((_t,Ls)=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});var tp=As(),np=Jn(tp),ip=Pe(),op=Jn(ip),ap=Qe(),sp=Jn(ap);function Jn(r){return r&&r.__esModule?r:{default:r}}function lp(r,e,t,n){return(0,np.default)(e)(r,(0,op.default)(t),n)}_t.default=(0,sp.default)(lp,4);Ls.exports=_t.default});var Ds=d(($t,Is)=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var up=Zn(),cp=Ps(up),fp=Qe(),hp=Ps(fp);function Ps(r){return r&&r.__esModule?r:{default:r}}function dp(r,e,t){return(0,cp.default)(r,1,e,t)}$t.default=(0,hp.default)(dp,3);Is.exports=$t.default});var Fs=d((Et,Ns)=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.default=yp;var pp=bs(),gp=js(pp),mp=Ds(),vp=js(mp);function js(r){return r&&r.__esModule?r:{default:r}}function yp(r,e){return(0,gp.default)(vp.default,r,e)}Ns.exports=Et.default});var Qn=d((Fm,Ws)=>{"use strict";Ws.exports=me;var St=ye().codes,bp=St.ERR_METHOD_NOT_IMPLEMENTED,wp=St.ERR_MULTIPLE_CALLBACK,xp=St.ERR_TRANSFORM_ALREADY_TRANSFORMING,_p=St.ERR_TRANSFORM_WITH_LENGTH_0,Mt=Le();He()(me,Mt);function $p(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new wp);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function me(r){if(!(this instanceof me))return new me(r);Mt.call(this,r),this._transformState={afterTransform:$p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",Ep)}function Ep(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){Bs(r,e,t)}):Bs(this,null,null)}me.prototype.push=function(r,e){return this._transformState.needTransform=!1,Mt.prototype.push.call(this,r,e)};me.prototype._transform=function(r,e,t){t(new bp("_transform()"))};me.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};me.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};me.prototype._destroy=function(r,e){Mt.prototype._destroy.call(this,r,function(t){e(t)})};function Bs(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new _p;if(r._transformState.transforming)throw new xp;return r.push(null)}});var Hs=d((Bm,Vs)=>{"use strict";Vs.exports=yr;var zs=Qn();He()(yr,zs);function yr(r){if(!(this instanceof yr))return new yr(r);zs.call(this,r)}yr.prototype._transform=function(r,e,t){t(null,r)}});var Js=d((Wm,Ks)=>{"use strict";var Xn;function Sp(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var Gs=ye().codes,Mp=Gs.ERR_MISSING_ARGS,Rp=Gs.ERR_STREAM_DESTROYED;function Us(r){if(r)throw r}function Tp(r){return r.setHeader&&typeof r.abort=="function"}function Op(r,e,t,n){n=Sp(n);var i=!1;r.on("close",function(){i=!0}),Xn===void 0&&(Xn=Zr()),Xn(r,{readable:e,writable:t},function(a){if(a)return n(a);i=!0,n()});var o=!1;return function(a){if(!i&&!o){if(o=!0,Tp(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(a||new Rp("pipe"))}}}function Ys(r){r()}function qp(r,e){return r.pipe(e)}function kp(r){return!r.length||typeof r[r.length-1]!="function"?Us:r.pop()}function Cp(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=kp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Mp("streams");var i,o=e.map(function(a,s){var l=s<e.length-1,f=s>0;return Op(a,l,f,function(h){i||(i=h),h&&o.forEach(Ys),!l&&(o.forEach(Ys),n(i))})});return e.reduce(qp)}Ks.exports=Cp});var Ie=d((ne,wr)=>{var br=require("stream");process.env.READABLE_STREAM==="disable"&&br?(wr.exports=br.Readable,Object.assign(wr.exports,br),wr.exports.Stream=br):(ne=wr.exports=jn(),ne.Stream=br||ne,ne.Readable=ne,ne.Writable=ot(),ne.Duplex=Le(),ne.Transform=Qn(),ne.PassThrough=Hs(),ne.finished=Zr(),ne.pipeline=Js())});var ai=d((zm,Qs)=>{var Xe=[],xr=[],ei=function(){};function ti(r){return~Xe.indexOf(r)?!1:(Xe.push(r),!0)}function ni(r){ei=r}function Ap(r){for(var e=[],t=0;t<Xe.length;t++){if(Xe[t].async){e.push(Xe[t]);continue}if(Xe[t](r))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(a){return a(r)})).then(function(a){i(a.some(Boolean))})}):!1}function ii(r){return~xr.indexOf(r)?!1:(xr.push(r),!0)}function ri(){ei.apply(ei,arguments)}function Zs(r){for(var e=0;e<xr.length;e++)r=xr[e].apply(xr[e],arguments);return r}function oi(r,e){var t=Object.prototype.hasOwnProperty;for(var n in e)t.call(e,n)&&(r[n]=e[n]);return r}function Lp(r){return r.enabled=!1,r.modify=ii,r.set=ni,r.use=ti,oi(function(){return!1},r)}function Pp(r){function e(){var t=Array.prototype.slice.call(arguments,0);return ri.call(ri,r,Zs(t,r)),!0}return r.enabled=!0,r.modify=ii,r.set=ni,r.use=ti,oi(e,r)}Qs.exports=function(e){return e.introduce=oi,e.enabled=Ap,e.process=Zs,e.modify=ii,e.write=ri,e.nope=Lp,e.yep=Pp,e.set=ni,e.use=ti,e}});var el=d((Vm,Xs)=>{var Ip=ai(),Dp=Ip(function r(e,t){return t=t||{},t.namespace=e,t.prod=!0,t.dev=!1,t.force||r.force?r.yep(t):r.nope(t)});Xs.exports=Dp});var tl=d((Hm,rl)=>{"use strict";rl.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 il=d((Um,nl)=>{nl.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 sl=d((Ym,al)=>{"use strict";var jp=il(),Np=Array.prototype.concat,Fp=Array.prototype.slice,ol=al.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];jp(o)?t=Np.call(t,Fp.call(o)):t.push(o)}return t};ol.wrap=function(r){return function(){return r(ol(arguments))}}});var fl=d((Gm,cl)=>{var _r=tl(),$r=sl(),ll=Object.hasOwnProperty,ul=Object.create(null);for(Rt in _r)ll.call(_r,Rt)&&(ul[_r[Rt]]=Rt);var Rt,ee=cl.exports={to:{},get:{}};ee.get=function(r){var e=r.substring(0,3).toLowerCase(),t,n;switch(e){case"hsl":t=ee.get.hsl(r),n="hsl";break;case"hwb":t=ee.get.hwb(r),n="hwb";break;default:t=ee.get.rgb(r),n="rgb";break}return t?{model:n,value:t}:null};ee.get.rgb=function(r){if(!r)return null;var e=/^#([a-f0-9]{3,4})$/i,t=/^#([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*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,l,f;if(s=r.match(t)){for(f=s[2],s=s[1],l=0;l<3;l++){var h=l*2;a[l]=parseInt(s.slice(h,h+2),16)}f&&(a[3]=parseInt(f,16)/255)}else if(s=r.match(e)){for(s=s[1],f=s[3],l=0;l<3;l++)a[l]=parseInt(s[l]+s[l],16);f&&(a[3]=parseInt(f+f,16)/255)}else if(s=r.match(n)){for(l=0;l<3;l++)a[l]=parseInt(s[l+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=r.match(i)){for(l=0;l<3;l++)a[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=r.match(o))?s[1]==="transparent"?[0,0,0,0]:ll.call(_r,s[1])?(a=_r[s[1]],a[3]=1,a):null:null;for(l=0;l<3;l++)a[l]=Ee(a[l],0,255);return a[3]=Ee(a[3],0,1),a};ee.get.hsl=function(r){if(!r)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*)?\)$/,t=r.match(e);if(t){var n=parseFloat(t[4]),i=(parseFloat(t[1])%360+360)%360,o=Ee(parseFloat(t[2]),0,100),a=Ee(parseFloat(t[3]),0,100),s=Ee(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null};ee.get.hwb=function(r){if(!r)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*)?\)$/,t=r.match(e);if(t){var n=parseFloat(t[4]),i=(parseFloat(t[1])%360+360)%360,o=Ee(parseFloat(t[2]),0,100),a=Ee(parseFloat(t[3]),0,100),s=Ee(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null};ee.to.hex=function(){var r=$r(arguments);return"#"+Tt(r[0])+Tt(r[1])+Tt(r[2])+(r[3]<1?Tt(Math.round(r[3]*255)):"")};ee.to.rgb=function(){var r=$r(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};ee.to.rgb.percent=function(){var r=$r(arguments),e=Math.round(r[0]/255*100),t=Math.round(r[1]/255*100),n=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+e+"%, "+t+"%, "+n+"%)":"rgba("+e+"%, "+t+"%, "+n+"%, "+r[3]+")"};ee.to.hsl=function(){var r=$r(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};ee.to.hwb=function(){var r=$r(arguments),e="";return r.length>=4&&r[3]!==1&&(e=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+e+")"};ee.to.keyword=function(r){return ul[r.slice(0,3)]};function Ee(r,e,t){return Math.min(Math.max(e,r),t)}function Tt(r){var e=Math.round(r).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var dl=d((Km,hl)=>{"use strict";hl.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var si=d((Jm,vl)=>{var De=dl(),ml={};for(Ot in De)De.hasOwnProperty(Ot)&&(ml[De[Ot]]=Ot);var Ot,_=vl.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(G in _)if(_.hasOwnProperty(G)){if(!("channels"in _[G]))throw new Error("missing channels property: "+G);if(!("labels"in _[G]))throw new Error("missing channel labels property: "+G);if(_[G].labels.length!==_[G].channels)throw new Error("channel and label counts mismatch: "+G);pl=_[G].channels,gl=_[G].labels,delete _[G].channels,delete _[G].labels,Object.defineProperty(_[G],"channels",{value:pl}),Object.defineProperty(_[G],"labels",{value:gl})}var pl,gl,G;_.rgb.hsl=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),o=Math.max(e,t,n),a=o-i,s,l,f;return o===i?s=0:e===o?s=(t-n)/a:t===o?s=2+(n-e)/a:n===o&&(s=4+(e-t)/a),s=Math.min(s*60,360),s<0&&(s+=360),f=(i+o)/2,o===i?l=0:f<=.5?l=a/(o+i):l=a/(2-o-i),[s,l*100,f*100]};_.rgb.hsv=function(r){var e,t,n,i,o,a=r[0]/255,s=r[1]/255,l=r[2]/255,f=Math.max(a,s,l),h=f-Math.min(a,s,l),c=function(p){return(f-p)/6/h+1/2};return h===0?i=o=0:(o=h/f,e=c(a),t=c(s),n=c(l),a===f?i=n-t:s===f?i=1/3+e-n:l===f&&(i=2/3+t-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,f*100]};_.rgb.hwb=function(r){var e=r[0],t=r[1],n=r[2],i=_.rgb.hsl(r)[0],o=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[i,o*100,n*100]};_.rgb.cmyk=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i,o,a,s;return s=Math.min(1-e,1-t,1-n),i=(1-e-s)/(1-s)||0,o=(1-t-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,[i*100,o*100,a*100,s*100]};function Bp(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)+Math.pow(r[2]-e[2],2)}_.rgb.keyword=function(r){var e=ml[r];if(e)return e;var t=1/0,n;for(var i in De)if(De.hasOwnProperty(i)){var o=De[i],a=Bp(r,o);a<t&&(t=a,n=i)}return n};_.keyword.rgb=function(r){return De[r]};_.rgb.xyz=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+t*.3576+n*.1805,o=e*.2126+t*.7152+n*.0722,a=e*.0193+t*.1192+n*.9505;return[i*100,o*100,a*100]};_.rgb.lab=function(r){var e=_.rgb.xyz(r),t=e[0],n=e[1],i=e[2],o,a,s;return t/=95.047,n/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+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,o=116*n-16,a=500*(t-n),s=200*(n-i),[o,a,s]};_.hsl.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,i,o,a,s,l;if(t===0)return l=n*255,[l,l,l];n<.5?o=n*(1+t):o=n+t-n*t,i=2*n-o,s=[0,0,0];for(var f=0;f<3;f++)a=e+1/3*-(f-1),a<0&&a++,a>1&&a--,6*a<1?l=i+(o-i)*6*a:2*a<1?l=o:3*a<2?l=i+(o-i)*(2/3-a)*6:l=i,s[f]=l*255;return s};_.hsl.hsv=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,i=t,o=Math.max(n,.01),a,s;return n*=2,t*=n<=1?n:2-n,i*=o<=1?o:2-o,s=(n+t)/2,a=n===0?2*i/(o+i):2*t/(n+t),[e,a*100,s*100]};_.hsv.rgb=function(r){var e=r[0]/60,t=r[1]/100,n=r[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*n*(1-t),s=255*n*(1-t*o),l=255*n*(1-t*(1-o));switch(n*=255,i){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}};_.hsv.hsl=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,i=Math.max(n,.01),o,a,s;return s=(2-t)*n,o=(2-t)*i,a=t*i,a/=o<=1?o:2-o,a=a||0,s/=2,[e,a*100,s*100]};_.hwb.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,i=t+n,o,a,s,l;i>1&&(t/=i,n/=i),o=Math.floor(6*e),a=1-n,s=6*e-o,(o&1)!==0&&(s=1-s),l=t+s*(a-t);var f,h,c;switch(o){default:case 6:case 0:f=a,h=l,c=t;break;case 1:f=l,h=a,c=t;break;case 2:f=t,h=a,c=l;break;case 3:f=t,h=l,c=a;break;case 4:f=l,h=t,c=a;break;case 5:f=a,h=t,c=l;break}return[f*255,h*255,c*255]};_.cmyk.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,i=r[3]/100,o,a,s;return o=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),[o*255,a*255,s*255]};_.xyz.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,i,o,a;return i=e*3.2406+t*-1.5372+n*-.4986,o=e*-.9689+t*1.8758+n*.0415,a=e*.0557+t*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*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),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};_.xyz.lab=function(r){var e=r[0],t=r[1],n=r[2],i,o,a;return e/=95.047,t/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*t-16,o=500*(e-t),a=200*(t-n),[i,o,a]};_.lab.xyz=function(r){var e=r[0],t=r[1],n=r[2],i,o,a;o=(e+16)/116,i=t/500+o,a=o-n/200;var s=Math.pow(o,3),l=Math.pow(i,3),f=Math.pow(a,3);return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=f>.008856?f:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};_.lab.lch=function(r){var e=r[0],t=r[1],n=r[2],i,o,a;return i=Math.atan2(n,t),o=i*360/2/Math.PI,o<0&&(o+=360),a=Math.sqrt(t*t+n*n),[e,a,o]};_.lch.lab=function(r){var e=r[0],t=r[1],n=r[2],i,o,a;return a=n/360*2*Math.PI,i=t*Math.cos(a),o=t*Math.sin(a),[e,i,o]};_.rgb.ansi16=function(r){var e=r[0],t=r[1],n=r[2],i=1 in arguments?arguments[1]:_.rgb.hsv(r)[2];if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(n/255)<<2|Math.round(t/255)<<1|Math.round(e/255));return i===2&&(o+=60),o};_.hsv.ansi16=function(r){return _.rgb.ansi16(_.hsv.rgb(r),r[2])};_.rgb.ansi256=function(r){var e=r[0],t=r[1],n=r[2];if(e===t&&t===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(t/255*5)+Math.round(n/255*5);return i};_.ansi16.rgb=function(r){var e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var t=(~~(r>50)+1)*.5,n=(e&1)*t*255,i=(e>>1&1)*t*255,o=(e>>2&1)*t*255;return[n,i,o]};_.ansi256.rgb=function(r){if(r>=232){var e=(r-232)*10+8;return[e,e,e]}r-=16;var t,n=Math.floor(r/36)/5*255,i=Math.floor((t=r%36)/6)/5*255,o=t%6/5*255;return[n,i,o]};_.rgb.hex=function(r){var e=((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255),t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t};_.hex.rgb=function(r){var e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var t=e[0];e[0].length===3&&(t=t.split("").map(function(s){return s+s}).join(""));var n=parseInt(t,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]};_.rgb.hcg=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.max(Math.max(e,t),n),o=Math.min(Math.min(e,t),n),a=i-o,s,l;return a<1?s=o/(1-a):s=0,a<=0?l=0:i===e?l=(t-n)/a%6:i===t?l=2+(n-e)/a:l=4+(e-t)/a+4,l/=6,l%=1,[l*360,a*100,s*100]};_.hsl.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1,i=0;return t<.5?n=2*e*t:n=2*e*(1-t),n<1&&(i=(t-.5*n)/(1-n)),[r[0],n*100,i*100]};_.hsv.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=e*t,i=0;return n<1&&(i=(t-n)/(1-n)),[r[0],n*100,i*100]};_.hcg.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];var i=[0,0,0],o=e%1*6,a=o%1,s=1-a,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,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]=s,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]=s}return l=(1-t)*n,[(t*i[0]+l)*255,(t*i[1]+l)*255,(t*i[2]+l)*255]};_.hcg.hsv=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e),i=0;return n>0&&(i=e/n),[r[0],i*100,n*100]};_.hcg.hsl=function(r){var e=r[1]/100,t=r[2]/100,n=t*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[r[0],i*100,n*100]};_.hcg.hwb=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};_.hwb.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1-t,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[r[0],i*100,o*100]};_.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};_.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};_.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};_.gray.hsl=_.gray.hsv=function(r){return[0,0,r[0]]};_.gray.hwb=function(r){return[0,100,r[0]]};_.gray.cmyk=function(r){return[0,0,0,r[0]]};_.gray.lab=function(r){return[r[0],0,0]};_.gray.hex=function(r){var e=Math.round(r[0]/100*255)&255,t=(e<<16)+(e<<8)+e,n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};_.rgb.gray=function(r){var e=(r[0]+r[1]+r[2])/3;return[e/255*100]}});var bl=d((Zm,yl)=>{var qt=si();function Wp(){for(var r={},e=Object.keys(qt),t=e.length,n=0;n<t;n++)r[e[n]]={distance:-1,parent:null};return r}function zp(r){var e=Wp(),t=[r];for(e[r].distance=0;t.length;)for(var n=t.pop(),i=Object.keys(qt[n]),o=i.length,a=0;a<o;a++){var s=i[a],l=e[s];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,t.unshift(s))}return e}function Vp(r,e){return function(t){return e(r(t))}}function Hp(r,e){for(var t=[e[r].parent,r],n=qt[e[r].parent][r],i=e[r].parent;e[i].parent;)t.unshift(e[i].parent),n=Vp(qt[e[i].parent][i],n),i=e[i].parent;return n.conversion=t,n}yl.exports=function(r){for(var e=zp(r),t={},n=Object.keys(e),i=n.length,o=0;o<i;o++){var a=n[o],s=e[a];s.parent!==null&&(t[a]=Hp(a,e))}return t}});var xl=d((Qm,wl)=>{var li=si(),Up=bl(),er={},Yp=Object.keys(li);function Gp(r){var e=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function Kp(r){var e=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=r(t);if(typeof n=="object")for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in r&&(e.conversion=r.conversion),e}Yp.forEach(function(r){er[r]={},Object.defineProperty(er[r],"channels",{value:li[r].channels}),Object.defineProperty(er[r],"labels",{value:li[r].labels});var e=Up(r),t=Object.keys(e);t.forEach(function(n){var i=e[n];er[r][n]=Kp(i),er[r][n].raw=Gp(i)})});wl.exports=er});var El=d((Xm,$l)=>{"use strict";var Er=fl(),re=xl(),fi=[].slice,_l=["keyword","gray","hex"],ui={};Object.keys(re).forEach(function(r){ui[fi.call(re[r].labels).sort().join("")]=r});var kt={};function U(r,e){if(!(this instanceof U))return new U(r,e);if(e&&e in _l&&(e=null),e&&!(e in re))throw new Error("Unknown model: "+e);var t,n;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof U)this.model=r.model,this.color=r.color.slice(),this.valpha=r.valpha;else if(typeof r=="string"){var i=Er.get(r);if(i===null)throw new Error("Unable to parse color from string: "+r);this.model=i.model,n=re[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(r.length){this.model=e||"rgb",n=re[this.model].channels;var o=fi.call(r,0,n);this.color=ci(o,n),this.valpha=typeof r[n]=="number"?r[n]:1}else if(typeof r=="number")r&=16777215,this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;var a=Object.keys(r);"alpha"in r&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);var s=a.sort().join("");if(!(s in ui))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=ui[s];var l=re[this.model].labels,f=[];for(t=0;t<l.length;t++)f.push(r[l[t]]);this.color=ci(f)}if(kt[this.model])for(n=re[this.model].channels,t=0;t<n;t++){var h=kt[this.model][t];h&&(this.color[t]=h(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}U.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(r){var e=this.model in Er.to?this:this.rgb();e=e.round(typeof r=="number"?r:1);var t=e.valpha===1?e.color:e.color.concat(this.valpha);return Er.to[e.model](t)},percentString:function(r){var e=this.rgb().round(typeof r=="number"?r:1),t=e.valpha===1?e.color:e.color.concat(this.valpha);return Er.to.rgb.percent(t)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var r={},e=re[this.model].channels,t=re[this.model].labels,n=0;n<e;n++)r[t[n]]=this.color[n];return this.valpha!==1&&(r.alpha=this.valpha),r},unitArray:function(){var r=this.rgb().color;return r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1&&r.push(this.valpha),r},unitObject:function(){var r=this.rgb().object();return r.r/=255,r.g/=255,r.b/=255,this.valpha!==1&&(r.alpha=this.valpha),r},round:function(r){return r=Math.max(r||0,0),new U(this.color.map(Zp(r)).concat(this.valpha),this.model)},alpha:function(r){return arguments.length?new U(this.color.concat(Math.max(0,Math.min(1,r))),this.model):this.valpha},red:N("rgb",0,B(255)),green:N("rgb",1,B(255)),blue:N("rgb",2,B(255)),hue:N(["hsl","hsv","hsl","hwb","hcg"],0,function(r){return(r%360+360)%360}),saturationl:N("hsl",1,B(100)),lightness:N("hsl",2,B(100)),saturationv:N("hsv",1,B(100)),value:N("hsv",2,B(100)),chroma:N("hcg",1,B(100)),gray:N("hcg",2,B(100)),white:N("hwb",1,B(100)),wblack:N("hwb",2,B(100)),cyan:N("cmyk",0,B(100)),magenta:N("cmyk",1,B(100)),yellow:N("cmyk",2,B(100)),black:N("cmyk",3,B(100)),x:N("xyz",0,B(100)),y:N("xyz",1,B(100)),z:N("xyz",2,B(100)),l:N("lab",0,B(100)),a:N("lab",1),b:N("lab",2),keyword:function(r){return arguments.length?new U(r):re[this.model].keyword(this.color)},hex:function(r){return arguments.length?new U(r):Er.to.hex(this.rgb().round().color)},rgbNumber:function(){var r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity:function(){for(var r=this.rgb().color,e=[],t=0;t<r.length;t++){var n=r[t]/255;e[t]=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(r){var e=this.luminosity(),t=r.luminosity();return e>t?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(r){var e=this.contrast(r);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var r=this.rgb().color,e=(r[0]*299+r[1]*587+r[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),e=0;e<3;e++)r.color[e]=255-r.color[e];return r},lighten:function(r){var e=this.hsl();return e.color[2]+=e.color[2]*r,e},darken:function(r){var e=this.hsl();return e.color[2]-=e.color[2]*r,e},saturate:function(r){var e=this.hsl();return e.color[1]+=e.color[1]*r,e},desaturate:function(r){var e=this.hsl();return e.color[1]-=e.color[1]*r,e},whiten:function(r){var e=this.hwb();return e.color[1]+=e.color[1]*r,e},blacken:function(r){var e=this.hwb();return e.color[2]+=e.color[2]*r,e},grayscale:function(){var r=this.rgb().color,e=r[0]*.3+r[1]*.59+r[2]*.11;return U.rgb(e,e,e)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var e=this.hsl(),t=e.color[0];return t=(t+r)%360,t=t<0?360+t:t,e.color[0]=t,e},mix:function(r,e){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);var t=r.rgb(),n=this.rgb(),i=e===void 0?.5:e,o=2*i-1,a=t.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return U.rgb(s*t.red()+l*n.red(),s*t.green()+l*n.green(),s*t.blue()+l*n.blue(),t.alpha()*i+n.alpha()*(1-i))}};Object.keys(re).forEach(function(r){if(_l.indexOf(r)===-1){var e=re[r].channels;U.prototype[r]=function(){if(this.model===r)return new U(this);if(arguments.length)return new U(arguments,r);var t=typeof arguments[e]=="number"?e:this.valpha;return new U(Qp(re[this.model][r].raw(this.color)).concat(t),r)},U[r]=function(t){return typeof t=="number"&&(t=ci(fi.call(arguments),e)),new U(t,r)}}});function Jp(r,e){return Number(r.toFixed(e))}function Zp(r){return function(e){return Jp(e,r)}}function N(r,e,t){return r=Array.isArray(r)?r:[r],r.forEach(function(n){(kt[n]||(kt[n]=[]))[e]=t}),r=r[0],function(n){var i;return arguments.length?(t&&(n=t(n)),i=this[r](),i.color[e]=n,i):(i=this[r]().color[e],t&&(i=t(i)),i)}}function B(r){return function(e){return Math.max(0,Math.min(r,e))}}function Qp(r){return Array.isArray(r)?r:[r]}function ci(r,e){for(var t=0;t<e;t++)typeof r[t]!="number"&&(r[t]=0);return r}$l.exports=U});var Ml=d((ev,Sl)=>{"use strict";Sl.exports=function(e){for(var t=0,n=0;t<e.length;n=e.charCodeAt(t++)+((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 ql=d((rv,Ol)=>{"use strict";var Rl=El(),Tl=Ml();Ol.exports=function(e,t){var n=e.split(t||":"),i=Tl(n[0]);if(!n.length)return i;for(var o=0,a=n.length-1;o<a;o++)i=Rl(i).mix(Rl(Tl(n[o+1]))).saturate(1).hex();return i}});var Cl=d((tv,kl)=>{"use strict";function ae(r,e){if(e)return new ae(r).style(e);if(!(this instanceof ae))return new ae(r);this.text=r}ae.prototype.prefix="\x1B[";ae.prototype.suffix="m";ae.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);return[parseInt(t,16),parseInt(n,16),parseInt(i,16)]};ae.prototype.rgb=function(e,t,n){var i=e/255*5,o=t/255*5,a=n/255*5;return this.ansi(i,o,a)};ae.prototype.ansi=function(e,t,n){var i=Math.round(e),o=Math.round(t),a=Math.round(n);return 16+i*36+o*6+a};ae.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ae.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};kl.exports=ae});var Ll=d((nv,Al)=>{var Xp=ql(),e0=Cl();Al.exports=function(e,t){var n=t.namespace,i=t.colors!==!1?e0(n+":",Xp(n)):n+":";return e[0]=i+" "+e[0],e}});var Il=d((iv,Pl)=>{"use strict";Pl.exports=function(e,t){if(!t)return!1;for(var n=t.split(/[\s,]+/),i=0;i<n.length;i++){if(t=n[i].replace("*",".*?"),t.charAt(0)==="-"){if(new RegExp("^"+t.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+t+"$").test(e))return!0}return!1}});var jl=d((ov,Dl)=>{var r0=Il();Dl.exports=function(e){return function(n){try{return r0(n,e())}catch{}return!1}}});var Fl=d((av,Nl)=>{var t0=jl();Nl.exports=t0(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Wl=d((sv,Bl)=>{Bl.exports=function(r,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Vl=d((lv,zl)=>{var n0=ai(),i0=require("tty").isatty(1),Ct=n0(function r(e,t){return t=t||{},t.colors="colors"in t?t.colors:i0,t.namespace=e,t.prod=!1,t.dev=!0,!r.enabled(e)&&!(t.force||r.force)?r.nope(t):r.yep(t)});Ct.modify(Ll());Ct.use(Fl());Ct.set(Wl());zl.exports=Ct});var Sr=d((uv,hi)=>{process.env.NODE_ENV==="production"?hi.exports=el():hi.exports=Vl()});var Ul=d((cv,Hl)=>{"use strict";var di=require("fs"),{StringDecoder:o0}=require("string_decoder"),{Stream:a0}=Ie();function s0(){}Hl.exports=(r,e)=>{let t=Buffer.alloc(65536),n=new o0("utf8"),i=new a0,o="",a=0,s=0;return r.start===-1&&delete r.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},di.open(r.file,"a+","0644",(l,f)=>{if(l){e?e(l):i.emit("error",l),i.destroy();return}(function h(){if(i.destroyed){di.close(f,s0);return}return di.read(f,t,0,t.length,a,(c,p)=>{if(c){e?e(c):i.emit("error",c),i.destroy();return}if(!p)return o&&((r.start==null||s>r.start)&&(e?e(null,o):i.emit("line",o)),s++,o=""),setTimeout(h,1e3);let g=n.write(t.slice(0,p));e||i.emit("data",g),g=(o+g).split(/\n+/);let u=g.length-1,v=0;for(;v<u;v++)(r.start==null||s>r.start)&&(e?e(null,g[v]):i.emit("line",g[v])),s++;return o=g[u],a+=p,h()})})()}),e?i.destroy:i}});var Jl=d((hv,Kl)=>{"use strict";var Z=require("fs"),W=require("path"),Yl=Fs(),l0=require("zlib"),{MESSAGE:u0}=F(),{Stream:c0,PassThrough:Gl}=Ie(),f0=Je(),se=Sr()("winston:file"),h0=require("os"),d0=Ul();Kl.exports=class extends f0{constructor(e={}){super(e),this.name=e.name||"file";function t(n,...i){i.slice(1).forEach(o=>{if(e[o])throw new Error(`Cannot set ${o} and ${n} together`)})}if(this._stream=new Gl,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?W.basename(e.filename):"winston.log",this.dirname=e.dirname||W.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=W.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:h0.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,t=()=>{}){if(this.silent)return t(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,t)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,t)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,t)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,t)})});return}}let n=`${e[u0]}${this.eol}`,i=Buffer.byteLength(n);function o(){if(this._size+=i,this._pendingSize-=i,se("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,o.bind(this));return a?t():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,t()})),se("written",a,this._drain),this.finishIfEnding(),a}query(e,t){typeof e=="function"&&(t=e,e={}),e=c(e);let n=W.join(this.dirname,this.filename),i="",o=[],a=0,s=Z.createReadStream(n,{encoding:"utf8"});s.on("error",p=>{if(s.readable&&s.destroy(),!!t)return p.code!=="ENOENT"?t(p):t(null,o)}),s.on("data",p=>{p=(i+p).split(/\n+/);let g=p.length-1,u=0;for(;u<g;u++)(!e.start||a>=e.start)&&l(p[u]),a++;i=p[g]}),s.on("close",()=>{i&&l(i,!0),e.order==="desc"&&(o=o.reverse()),t&&t(null,o)});function l(p,g){try{let u=JSON.parse(p);h(u)&&f(u)}catch(u){g||s.emit("error",u)}}function f(p){if(e.rows&&o.length>=e.rows&&e.order!=="desc"){s.readable&&s.destroy();return}e.fields&&(p=e.fields.reduce((g,u)=>(g[u]=p[u],g),{})),e.order==="desc"&&o.length>=e.rows&&o.shift(),o.push(p)}function h(p){if(!p||typeof p!="object")return;let g=new Date(p.timestamp);if(!(e.from&&g<e.from||e.until&&g>e.until||e.level&&e.level!==p.level))return!0}function c(p){return p=p||{},p.rows=p.rows||p.limit||10,p.start=p.start||0,p.until=p.until||new Date,typeof p.until!="object"&&(p.until=new Date(p.until)),p.from=p.from||p.until-1440*60*1e3,typeof p.from!="object"&&(p.from=new Date(p.from)),p.order=p.order||"desc",p}}stream(e={}){let t=W.join(this.dirname,this.filename),n=new c0,i={file:t,start:e.start};return n.destroy=d0(i,(o,a)=>{if(o)return n.emit("error",o);try{n.emit("data",a),a=JSON.parse(a),n.emit("log",a)}catch(s){n.emit("error",s)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,t)=>{if(e)return this.emit("error",e);se("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let t=this._getFile(),n=W.join(this.dirname,t);Z.stat(n,(i,o)=>{if(i&&i.code==="ENOENT")return se("ENOENT\xA0ok",n),this.filename=t,e(null,0);if(i)return se(`err ${i.code} ${n}`),e(i);if(!o||this._needsNewFile(o.size))return this._incFile(()=>this.stat(e));this.filename=t,e(null,o.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 t=W.join(this.dirname,this.filename);se("create stream start",t,this.options);let n=Z.createWriteStream(t,this.options).on("error",i=>se(i)).on("close",()=>se("close",n.path,n.bytesWritten)).on("open",()=>{se("file open ok",t),this.emit("open",t),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Gl,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return se("create stream ok",t),n}_incFile(e){se("_incFile",this.filename);let t=W.extname(this._basename),n=W.basename(this._basename,t),i=[];this.zippedArchive&&i.push(function(o){let a=this._created>0&&!this.tailable?this._created:"";this._compressFile(W.join(this.dirname,`${n}${a}${t}`),W.join(this.dirname,`${n}${a}${t}.gz`),o)}.bind(this)),i.push(function(o){this.tailable?this._checkMaxFilesTailable(t,n,o):(this._created+=1,this._checkMaxFilesIncrementing(t,n,o))}.bind(this)),Yl(i,e)}_getFile(){let e=W.extname(this._basename),t=W.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${t}${n}${e}`:`${t}${e}`}_checkMaxFilesIncrementing(e,t,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,o=i!==0?i:"",a=this.zippedArchive?".gz":"",s=`${t}${o}${e}${a}`,l=W.join(this.dirname,s);Z.unlink(l,n)}_checkMaxFilesTailable(e,t,n){let i=[];if(!this.maxFiles)return;let o=this.zippedArchive?".gz":"";for(let a=this.maxFiles-1;a>1;a--)i.push(function(s,l){let f=`${t}${s-1}${e}${o}`,h=W.join(this.dirname,f);Z.exists(h,c=>{if(!c)return l(null);f=`${t}${s}${e}${o}`,Z.rename(h,W.join(this.dirname,f),l)})}.bind(this,a));Yl(i,()=>{Z.rename(W.join(this.dirname,`${t}${e}${o}`),W.join(this.dirname,`${t}1${e}${o}`),n)})}_compressFile(e,t,n){Z.access(e,Z.F_OK,i=>{if(i)return n();var o=l0.createGzip(),a=Z.createReadStream(e),s=Z.createWriteStream(t);s.on("finish",()=>{Z.unlink(e,n)}),a.pipe(o).pipe(s)})}_createLogDirIfNotExist(e){Z.existsSync(e)||Z.mkdirSync(e,{recursive:!0})}}});var Ql=d((pv,Zl)=>{"use strict";var p0=require("http"),g0=require("https"),{Stream:m0}=Ie(),v0=Je(),{configure:y0}=ar();Zl.exports=class extends v0{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,t){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)}),t&&setImmediate(t)}query(e,t){typeof e=="function"&&(t=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,(o,a,s)=>{if(a&&a.statusCode!==200&&(o=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),o)return t(o);if(typeof s=="string")try{s=JSON.parse(s)}catch(l){return t(l)}t(null,s)})}stream(e={}){let t=new m0;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 o="",a=this._request(e,i,n);return t.destroy=()=>a.destroy(),a.on("data",s=>{s=(o+s).split(/\n+/);let l=s.length-1,f=0;for(;f<l;f++)try{t.emit("log",JSON.parse(s[f]))}catch(h){t.emit("error",h)}o=s[l]}),a.on("error",s=>t.emit("error",s)),t}_request(e,t,n,i){e=e||{},t=t||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,t,n):this._doRequest(e,i,t,n)}_doBatch(e,t,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let o=this;this.batchCallback=t,this.batchTimeoutID=setTimeout(function(){o.batchTimeoutID=-1,o._doBatchRequest(o.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,t,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,t,n)}_doRequest(e,t,n,i){let o=Object.assign({},this.headers);n&&n.bearer&&(o.Authorization=`Bearer ${n.bearer}`);let a=(this.ssl?g0:p0).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:o,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});a.on("error",t),a.on("response",l=>l.on("end",()=>t(null,l)).resume());let s=y0({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});a.end(Buffer.from(s(e,this.options.replacer),"utf8"))}}});var pi=d((gv,Xl)=>{"use strict";var fe=r=>r!==null&&typeof r=="object"&&typeof r.pipe=="function";fe.writable=r=>fe(r)&&r.writable!==!1&&typeof r._write=="function"&&typeof r._writableState=="object";fe.readable=r=>fe(r)&&r.readable!==!1&&typeof r._read=="function"&&typeof r._readableState=="object";fe.duplex=r=>fe.writable(r)&&fe.readable(r);fe.transform=r=>fe.duplex(r)&&typeof r._transform=="function";Xl.exports=fe});var ru=d((vv,eu)=>{"use strict";var b0=pi(),{MESSAGE:w0}=F(),x0=require("os"),_0=Je();eu.exports=class extends _0{constructor(e={}){if(super(e),!e.stream||!b0(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:x0.EOL}log(e,t){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),t&&t();return}this._stream.write(`${e[w0]}${this.eol}`),t&&t()}}});var tu=d(Mr=>{"use strict";Object.defineProperty(Mr,"Console",{configurable:!0,enumerable:!0,get(){return is()}});Object.defineProperty(Mr,"File",{configurable:!0,enumerable:!0,get(){return Jl()}});Object.defineProperty(Mr,"Http",{configurable:!0,enumerable:!0,get(){return Ql()}});Object.defineProperty(Mr,"Stream",{configurable:!0,enumerable:!0,get(){return ru()}})});var Lt=d(Rr=>{"use strict";var At=pn(),{configs:gi}=F();Rr.cli=At.levels(gi.cli);Rr.npm=At.levels(gi.npm);Rr.syslog=At.levels(gi.syslog);Rr.addColors=At.levels});var iu=d((Pt,nu)=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});var $0=ut(),E0=je($0),S0=bt(),M0=je(S0),R0=Zn(),T0=je(R0),O0=Gn(),q0=je(O0),k0=Kn(),C0=je(k0),A0=Pe(),L0=je(A0),P0=Qe(),I0=je(P0);function je(r){return r&&r.__esModule?r:{default:r}}function D0(r,e,t){t=(0,q0.default)(t);var n=0,i=0,{length:o}=r,a=!1;o===0&&t(null);function s(l,f){l===!1&&(a=!0),a!==!0&&(l?t(l):(++i===o||f===M0.default)&&t(null))}for(;n<o;n++)e(r[n],n,(0,C0.default)(s))}function j0(r,e,t){return(0,T0.default)(r,1/0,e,t)}function N0(r,e,t){var n=(0,E0.default)(r)?D0:j0;return n(r,(0,L0.default)(e),t)}Pt.default=(0,I0.default)(N0,3);nu.exports=Pt.default});var au=d((It,ou)=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.default=F0;function F0(r){return(e,t,n)=>r(e,n)}ou.exports=It.default});var Nt=d((jt,su)=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});var B0=iu(),W0=Dt(B0),z0=au(),V0=Dt(z0),H0=Pe(),U0=Dt(H0),Y0=Qe(),G0=Dt(Y0);function Dt(r){return r&&r.__esModule?r:{default:r}}function K0(r,e,t){return(0,W0.default)(r,(0,V0.default)((0,U0.default)(e)),t)}jt.default=(0,G0.default)(K0,3);su.exports=jt.default});var uu=d((wv,lu)=>{"use strict";var J0=Object.prototype.toString;lu.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 t=e.toString(),n=J0.call(e).slice(8,-1);return n==="Function"?t=t.substring(t.indexOf("(")+1,t.indexOf(")")):t=n,t||"anonymous"}});var mi=d((xv,cu)=>{"use strict";var Z0=uu();cu.exports=function(e){var t=0,n;function i(){return t||(t=1,n=e.apply(this,arguments),e=null),n}return i.displayName=Z0(e),i}});var vi=d(Or=>{Or.get=function(r){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var t={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(o,a){return a},Error.captureStackTrace(t,r||Or.get);var i=t.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Or.parse=function(r){if(!r.stack)return[];var e=this,t=r.stack.split(`
27
- `).slice(1);return t.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 o=null,a=null,s=null,l=null,f=null,h=i[5]==="native";if(i[1]){s=i[1];var c=s.lastIndexOf(".");if(s[c-1]=="."&&c--,c>0){o=s.substr(0,c),a=s.substr(c+1);var p=o.indexOf(".Module");p>0&&(s=s.substr(p+1),o=o.substr(0,p))}l=null}a&&(l=o,f=a),a==="<anonymous>"&&(f=null,s=null);var g={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:s,typeName:l,methodName:f,columnNumber:parseInt(i[4],10)||null,native:h};return e._createParsedCallSite(g)}}).filter(function(n){return!!n})};function Tr(r){for(var e in r)this[e]=r[e]}var Q0=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],X0=["topLevel","eval","native","constructor"];Q0.forEach(function(r){Tr.prototype[r]=null,Tr.prototype["get"+r[0].toUpperCase()+r.substr(1)]=function(){return this[r]}});X0.forEach(function(r){Tr.prototype[r]=!1,Tr.prototype["is"+r[0].toUpperCase()+r.substr(1)]=function(){return this[r]}});Or._createParsedCallSite=function(r){return new Tr(r)}});var hu=d((Ev,fu)=>{"use strict";var{Writable:eg}=Ie();fu.exports=class extends eg{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var bi=d((Mv,gu)=>{"use strict";var du=require("os"),rg=Nt(),yi=Sr()("winston:exception"),tg=mi(),pu=vi(),ng=hu();gu.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(t=>{if(Array.isArray(t))return t.forEach(n=>this._addHandler(n));this._addHandler(t)}),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 t=null;return e&&(t=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
28
- `),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:du.loadavg(),uptime:du.uptime()}}getTrace(e){return(e?pu.parse(e):pu.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 t=new ng(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){let t=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,o;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function a(){yi("doExit",i),yi("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(a);rg(n,(s,l)=>{let f=tg(l),h=s.transport||s;function c(p){return()=>{yi(p),f()}}h._ending=!0,h.once("finish",c("finished")),h.once("error",c("error"))},()=>i&&a()),this.logger.log(t),i&&(o=setTimeout(a,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var vu=d((Tv,mu)=>{"use strict";var{Writable:ig}=Ie();mu.exports=class extends ig{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,t,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var xi=d((qv,wu)=>{"use strict";var yu=require("os"),og=Nt(),wi=Sr()("winston:rejection"),ag=mi(),bu=vi(),sg=vu();wu.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(t=>{if(Array.isArray(t))return t.forEach(n=>this._addHandler(n));this._addHandler(t)}),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 t=null;return e&&(t=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
29
- `),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:yu.loadavg(),uptime:yu.uptime()}}getTrace(e){return(e?bu.parse(e):bu.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 t=new sg(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){let t=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,o;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function a(){wi("doExit",i),wi("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(a);og(n,(s,l)=>{let f=ag(l),h=s.transport||s;function c(p){return()=>{wi(p),f()}}h._ending=!0,h.once("finish",c("finished")),h.once("error",c("error"))},()=>i&&a()),this.logger.log(t),i&&(o=setTimeout(a,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var _u=d((kv,xu)=>{"use strict";var _i=class{constructor(e){let t=Ft();if(typeof e!="object"||Array.isArray(e)||!(e instanceof t))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 t=typeof e[e.length-1]=="object"?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}};xu.exports=_i});var Ft=d((Cv,Mu)=>{"use strict";var{Stream:lg,Transform:ug}=Ie(),$u=Nt(),{LEVEL:he,SPLAT:Eu}=F(),Su=pi(),cg=bi(),fg=xi(),hg=Hn(),dg=_u(),{warn:pg}=gn(),gg=Lt(),mg=/%[scdjifoO%]/g,Bt=class extends ug{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let t=this;return Object.create(t,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),t.write(i)}}})}configure({silent:e,format:t,defaultMeta:n,levels:i,level:o="info",exitOnError:a=!0,transports:s,colors:l,emitErrs:f,formatters:h,padLevels:c,rewriters:p,stripColors:g,exceptionHandlers:u,rejectionHandlers:v}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||un()(),this.defaultMeta=n||null,this.levels=i||this.levels||gg.npm.levels,this.level=o,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new cg(this),this.rejections=new fg(this),this.profilers={},this.exitOnError=a,s&&(s=Array.isArray(s)?s:[s],s.forEach(y=>this.add(y))),l||f||h||c||p||g)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
30
- `));u&&this.exceptions.handle(u),v&&this.rejections.handle(v)}isLevelEnabled(e){let t=$i(this.levels,e);if(t===null)return!1;let n=$i(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=t:this.transports.findIndex(o=>{let a=$i(this.levels,o.level);return a===null&&(a=n),a>=t})!==-1}log(e,t,...n){if(arguments.length===1)return e[he]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return t&&typeof t=="object"?(t[he]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t={[he]:e,level:e,message:t},this._addDefaultMeta(t),this.write(t),this);let[i]=n;if(typeof i=="object"&&i!==null&&!(t&&t.match&&t.match(mg))){let a=Object.assign({},this.defaultMeta,i,{[he]:e,[Eu]:n,level:e,message:t});return i.message&&(a.message=`${a.message} ${i.message}`),i.stack&&(a.stack=i.stack),i.cause&&(a.cause=i.cause),this.write(a),this}return this.write(Object.assign({},this.defaultMeta,{[he]:e,[Eu]:n,level:e,message:t})),this}_transform(e,t,n){if(this.silent)return n();e[he]||(e[he]=e.level),!this.levels[e[he]]&&this.levels[e[he]]!==0&&console.error("[winston] Unknown logger level: %s",e[he]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){let t=this.transports.slice();$u(t,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let t=!Su(e)||e.log.length>2?new hg({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!Su(e)||e.log.length>2)&&(t=this.transports.filter(n=>n.transport===e)[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){pg.deprecated("setLevels")}query(e,t){typeof e=="function"&&(t=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function o(s,l){e.query&&typeof s.formatQuery=="function"&&(e.query=s.formatQuery(i)),s.query(e,(f,h)=>{if(f)return l(f);typeof s.formatResults=="function"&&(h=s.formatResults(h,e.format)),l(null,h)})}function a(s,l){o(s,(f,h)=>{l&&(h=f||h,h&&(n[s.name]=h),l()),l=null})}$u(this.transports.filter(s=>!!s.query),a,()=>t(null,n))}stream(e={}){let t=new lg,n=[];return t._streams=n,t.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let o=i.stream(e);o&&(n.push(o),o.on("log",a=>{a.transport=a.transport||[],a.transport.push(i.name),t.emit("log",a)}),o.on("error",a=>{a.transport=a.transport||[],a.transport.push(i.name),t.emit("error",a)}))}),t}startTimer(){return new dg(this)}profile(e,...t){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof t[t.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());let o=typeof t[t.length-1]=="object"?t.pop():{};return o.level=o.level||"info",o.durationMs=n-i,o.message=o.message||e,this.write(o)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
31
- `))}_onEvent(e,t){function n(i){e==="error"&&!this.transports.includes(t)&&this.add(t),this.emit(e,i,t)}t["__winston"+e]||(t["__winston"+e]=n.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function $i(r,e){let t=r[e];return!t&&t!==0?null:t}Object.defineProperty(Bt.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:r}=this._readableState;return Array.isArray(r)?r:[r].filter(Boolean)}});Mu.exports=Bt});var Ei=d((Av,Ru)=>{"use strict";var{LEVEL:vg}=F(),yg=Lt(),bg=Ft(),wg=Sr()("winston:create-logger");function xg(r){return"is"+r.charAt(0).toUpperCase()+r.slice(1)+"Enabled"}Ru.exports=function(r={}){r.levels=r.levels||yg.npm.levels;class e extends bg{constructor(i){super(i)}}let t=new e(r);return Object.keys(r.levels).forEach(function(n){if(wg('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 o=this||t;if(i.length===1){let[a]=i,s=a&&a.message&&a||{message:a};return s.level=s[vg]=n,o._addDefaultMeta(s),o.write(s),this||t}return i.length===0?(o.log(n,""),o):o.log(n,...i)},e.prototype[xg(n)]=function(){return(this||t).isLevelEnabled(n)}}),t}});var Ou=d((Pv,Tu)=>{"use strict";var _g=Ei();Tu.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){t=Object.assign({},t||this.options);let n=t.transports||this.options.transports;n?t.transports=Array.isArray(n)?n.slice():[n]:t.transports=[];let i=_g(t);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((t,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var ku=d(A=>{"use strict";var qu=pn(),{warn:qr}=gn();A.version=ta().version;A.transports=tu();A.config=Lt();A.addColors=qu.levels;A.format=qu.format;A.createLogger=Ei();A.Logger=Ft();A.ExceptionHandler=bi();A.RejectionHandler=xi();A.Container=Ou();A.Transport=Je();A.loggers=new A.Container;var de=A.createLogger();Object.keys(A.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(r=>A[r]=(...e)=>de[r](...e));Object.defineProperty(A,"level",{get(){return de.level},set(r){de.level=r}});Object.defineProperty(A,"exceptions",{get(){return de.exceptions}});Object.defineProperty(A,"rejections",{get(){return de.rejections}});["exitOnError"].forEach(r=>{Object.defineProperty(A,r,{get(){return de[r]},set(e){de[r]=e}})});Object.defineProperty(A,"default",{get(){return{exceptionHandlers:de.exceptionHandlers,rejectionHandlers:de.rejectionHandlers,transports:de.transports}}});qr.deprecated(A,"setLevels");qr.forFunctions(A,"useFormat",["cli"]);qr.forProperties(A,"useFormat",["padLevels","stripColors"]);qr.forFunctions(A,"deprecated",["addRewriter","addFilter","clone","extend"]);qr.forProperties(A,"deprecated",["emitErrs","levelLength"])});var Rg={};Yu(Rg,{default:()=>Mg});module.exports=Ku(Rg);var Ju=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-gray-overlay-50",next:["$color.stroke.neutral-subtle"]},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.divider-1",next:["$color.stroke.neutral-subtle"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral-muted"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],Zu=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.neutral-subtle"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],Qu=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:["$color.palette.static-black"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-700"]},{previous:"$static.color.static-white-alpha-50",next:["$color.palette.static-white-alpha-50"]},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-300"]}],ki=[...Ju,...Zu,...Qu];var Ci=[{previous:"$semantic.typography.h1",next:[],description:"Deprecated"},{previous:"$semantic.typography.h2",next:[],description:"Deprecated"},{previous:"$semantic.typography.h3",next:[],description:"Deprecated"},{previous:"$semantic.typography.h4",next:["t10Bold","screenTitle"],description:"\uC904\uAC04\uACA9 -0.1px"},{previous:"$semantic.typography.title1Bold",next:["t9Bold"],description:"\uC904\uAC04\uACA9 -0.4px"},{previous:"$semantic.typography.title1Regular",next:[],description:"Deprecated"},{previous:"$semantic.typography.title2Bold",next:["t7Bold"]},{previous:"$semantic.typography.title2Regular",next:["t7Regular"]},{previous:"$semantic.typography.title3Bold",next:["t6Bold"],description:"\uC904\uAC04\uACA9 -0.3px"},{previous:"$semantic.typography.title3Regular",next:["t6Regular"]},{previous:"$semantic.typography.subtitle1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.subtitle1Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.subtitle2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.subtitle2Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.bodyL1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 -2px"},{previous:"$semantic.typography.bodyL1Regular",next:["articleBody"]},{previous:"$semantic.typography.bodyL2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 -2px"},{previous:"$semantic.typography.bodyL2Regular",next:[],alternative:["t4Regular"],description:"Deprecated"},{previous:"$semantic.typography.bodyM1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.bodyM1Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.bodyM2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.bodyM2Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.caption1Bold",next:["t3Bold"],description:"\uC904\uAC04\uACA9 -1.5px"},{previous:"$semantic.typography.caption1Regular",next:[],alternative:["t3Regular"],description:"Deprecated"},{previous:"$semantic.typography.caption2Bold",next:["t2Bold"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.caption2Regular",next:["t2Regular"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label1Bold",next:["t6Bold"],description:"\uC904\uAC04\uACA9 -0.3px"},{previous:"$semantic.typography.label1Regular",next:["t6Regular"]},{previous:"$semantic.typography.label2Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.label2Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.label3Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label3Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label4Bold",next:["t2Bold"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label4Regular",next:["t2Regular"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label5Bold",next:["t1Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label5Regular",next:["t1Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label6Bold",next:[],alternative:["t1Bold"],description:"Deprecated"},{previous:"$semantic.typography.label6Regular",next:[],alternative:["t1Regular"],description:"Deprecated"}];var nr={text:["color","textColor","textDecorationColor","textEmphasisColor","caretColor","webkitTextFillColor","webkitTextStrokeColor","currentColor","cue","cueAfter","cueBefore","cursor","markColor","spellingErrorColor","grammarErrorColor","textFillColor","textStrokeColor","footnoteColor","rubyColor","markerForeground","scrollbarThumbColor","caretColor","selectionColor","marks"],background:["background","backgroundColor","backgroundImage","backgroundBlendMode","webkitBackgroundClip","webkitBackgroundOrigin","webkitBackgroundSize","gradient","gradientImage","pageBackgroundColor","breakColor","columnRuleColor","canvasBackground","layerBackground","counterFillColor","markerBackground","scrollbarColor","scrollbarButtonColor","scrollbarTrackColor","scrollbarTrackPieceColor","highlightBackground","screenBackgroundColor","printBackgroundColor"],border:["borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","borderInlineColor","borderInlineEndColor","borderInlineStartColor","border","borderTop","borderRight","borderBottom","borderLeft","borderBlock","borderBlockEnd","borderBlockStart","borderInline","borderInlineEnd","borderInlineStart","columnRuleColor","gridColumnRule","gridRowRule","outlineButton","outlineFieldset","outlineMenu","outlineWindow","rubyOverhang","scrollbarArrowColor","scrollbarBaseColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarBorderColor","windowFrame"],outline:["outlineColor","outline","outlineFocus","outlineOffset","focusOutlineColor","focusRingColor"],shadow:["boxShadow","textShadow","dropShadow","webkitBoxShadow","mozBoxShadow","shadowColor","textShadowColor"],svg:["fill","fillColor","stroke","floodColor","lightingColor","stopColor","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","marker","markerEnd","markerMid","markerStart","paintOrder","shapeRendering","strokeColor","strokeDashcolor","strokeLinecap","strokeLinejoin","strokeOpacity","vectorEffect"],misc:["accentColor","scrollbarColor","columnRuleColor","textDecoration","maskColor","maskBorderColor","outlineOffset","filter","backdropFilter","appearance","containerType","colorScheme","contentVisibility","counterIncrement","counterReset","counterSet","forcedColorAdjust","imageRendering","isolation","mixBlendMode","objectFit","opacity","perspective","perspectiveOrigin","printColorAdjust","quotes","resize","tabSize","unicodeBidi","willChange","writingMode","zoom","colorGamut","colorScheme","invertedColors","prefersColorScheme"]},Xu=[...nr.background,...nr.svg.filter(r=>r!=="fill"&&r!=="fillColor"),"backgroundColor","backgroundImage"],ec=[...nr.text,"color","fill","fillColor"],rc=[...nr.border,...nr.outline,"stroke","borderColor","outlineColor"];function tc(r){return!r||r==="fill"||r==="fillColor"?!1:r==="backgroundColor"||r==="background"||r==="backgroundImage"?!0:Xu.includes(r)}function nc(r){return r?ec.includes(r):!1}function ic(r){return r?rc.includes(r):!1}function Ai(r){return r?ic(r)?"stroke":nc(r)?"fg":tc(r)?"bg":"palette":"palette"}var z=Gu(ku());function Cu(r){let e=z.format.printf(({message:s,timestamp:l,metadata:f})=>{let{previousToken:h,nextToken:c,line:p}=f,g=p?`(line ${p})`:"";return`${l} ${s}: ${h} \u2192 ${c} ${g}`}),t=z.format.printf(({level:s,message:l,timestamp:f,failureReason:h,metadata:c})=>{let{previousToken:p,description:g}=c,u=g||h||"";return`${f} [${s.toUpperCase()}]: ${l}
32
- \u21B3 reason: ${p} ${u}`}),n=z.format.printf(({level:s,message:l,timestamp:f})=>`${f} [${s.toUpperCase()}]: ${l}`),i=(0,z.format)(s=>{let l=s.metadata;return(l==null?void 0:l.status)==="success"?s:!1}),o=(0,z.format)(s=>{let l=s.metadata;return(l==null?void 0:l.status)==="failure"||(l==null?void 0:l.status)==="warning"?s:!1}),a=(0,z.createLogger)({level:"debug",transports:[new z.transports.File({filename:`.report/${r}-success.log`,format:z.format.combine(i(),z.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),e)}),new z.transports.File({filename:`.report/${r}-issues.log`,format:z.format.combine(o(),z.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),t)}),new z.transports.File({filename:`.report/${r}-debug.log`,level:"debug",format:z.format.combine(z.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),n)})]});return{logger:a,logTransformResult(s,l){let{status:f,failureReason:h,needsVerification:c,description:p,previousToken:g,nextToken:u}=l,v=f==="success"?"info":f==="warning"?"warn":"error",y=l.line?`(line: ${l.line})`:"";a.log({level:v,message:`${s} ${y}`,...h&&{failureReason:h},...p&&{description:p},metadata:l}),c&&f==="success"&&a.log({level:"warn",message:`${s} ${y}`,metadata:{previousToken:g,nextToken:u,status:"warning",description:p||"\uC0AC\uC6A9 \uD655\uC778 \uD544\uC694\uD55C \uD1A0\uD070\uC785\uB2C8\uB2E4",needsVerification:!0,line:l.line}})},startFile(s){a.debug(`Starting transformation of ${s}`)},finishFile(s){a.debug(`Finished transformation of ${s}`)}}}function pe(r){let e=[],t=r.node;for(;t.type==="MemberExpression";)t.property.type==="Identifier"&&e.unshift(t.property.name),t=t.object;return t.type==="Identifier"&&e.unshift(t.name),e.join(".")}function Wt(r,e){let t=e.split("."),n=r.identifier(t[0]);for(let i=1;i<t.length;i++)n=r.memberExpression(n,r.identifier(t[i]));return n}function Lu(r,e,t,n,i,o){if(!n&&!i)return;let a=e.find(r.ImportDeclaration,{source:{value:"@seed-design/design-token"}});if(a.length===0)return;let s=e.get().node.comments||[];t||o?(a.forEach(c=>{var v,y;let p=c.node.comments||[],g=(v=c.node.specifiers)==null?void 0:v.filter(w=>w.type==="ImportSpecifier"&&w.imported.name==="vars"),u=((y=c.node.specifiers)==null?void 0:y.filter(w=>!(w.type==="ImportSpecifier"&&w.imported.name==="vars")))||[];c.node.specifiers=[...u,...g!=null&&g.length?[r.importSpecifier(r.identifier("vars"),r.identifier("legacyVars"))]:[]],c.node.comments=p}),n&&$g(r,e),i&&Au(r,e)):!(n&&!i)&&i?a.forEach(c=>{var u;let p=c.node.comments||[];c.node.source.value="@seed-design/css/vars/component/typography";let g=(u=c.node.specifiers)==null?void 0:u.filter(v=>v.type==="ImportSpecifier"&&v.imported.name==="vars");g!=null&&g.length&&g.forEach(v=>{v.type==="ImportSpecifier"&&(v.local=r.identifier("typoVars"))}),c.node.comments=p}):(a.forEach(c=>{let p=c.node.comments||[];c.node.source.value="@seed-design/css/vars",c.node.comments=p}),i&&Au(r,e)),s.length>0&&(e.get().node.comments=s)}function $g(r,e){if(e.find(r.ImportDeclaration,{source:{value:"@seed-design/css/vars"}}).length===0){let n=r.importDeclaration([r.importSpecifier(r.identifier("vars"),r.identifier("vars"))],r.literal("@seed-design/css/vars")),i=e.find(r.ImportDeclaration).at(0);i.size()>0?i.insertAfter(n):e.get().node.program.body.unshift(n)}}function Au(r,e){if(e.find(r.ImportDeclaration,{source:{value:"@seed-design/css/vars/component/typography"}}).length===0){let n=r.importDeclaration([r.importSpecifier(r.identifier("vars"),r.identifier("typoVars"))],r.literal("@seed-design/css/vars/component/typography")),i=e.find(r.ImportDeclaration,{source:{value:"@seed-design/css/vars"}});if(i.size()>0)i.at(0).insertAfter(n);else{let o=e.find(r.ImportDeclaration).at(0);o.size()>0?o.insertAfter(n):e.get().node.program.body.unshift(n)}}}function Pu(r){return r.replace(/^vars\./,"").replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).replace(/(\d+)/g,"-$1")}function Iu(r){return`vars.${r.replace(/-(\d+)/g,"$1").replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}`}function Du(r){if(!r)throw new Error("Token name cannot be null or empty");return/^t\d/.test(r)?`typoVars.textStyle${r.charAt(0).toUpperCase()}${r.slice(1)}.enabled.root`:/[A-Z]/.test(r)?`typoVars.textStyle${r.charAt(0).toUpperCase()+r.slice(1)}.enabled.root`:`typoVars.textStyle${r.charAt(0).toUpperCase()+r.slice(1)}.enabled.root`}var Eg=(r,e)=>{let t=Cu("replace-seed-design-token-vars"),n=e.jscodeshift,i=n(r.source);t.startFile(r.path);let o=new Set,a=!1,s=!1,l=new Set;if(i.find(n.MemberExpression).filter(h=>pe(h).startsWith("vars.")).forEach(h=>{let c=pe(h),p=c.startsWith("vars.$scale.color.")||c.startsWith("vars.$semantic.color.")||c.startsWith("vars.$static.color."),g=c.startsWith("vars.$semantic.typography.");if(c.startsWith("vars.")&&!p&&!g){let u=c.split(".");u.length>=2&&l.add(u[1])}}),i.find(n.MemberExpression).filter(h=>pe(h).startsWith("vars.$semantic.typography.")).forEach(h=>{var v,y;let c=pe(h),p=c.replace(/^vars\./,""),g=Ci.find(w=>w.previous===p),u=(v=h.node.loc)==null?void 0:v.start.line;if(g){let w=null,S=!1;if(g.next.length===1||g.next.length>1?w=g.next[0]:g.next.length===0&&"alternative"in g&&Array.isArray(g.alternative)&&((y=g.alternative)==null?void 0:y.length)>0&&(w=g.alternative[0],S=!0),w){let b=Du(w),E=Wt(n,b);h.replace(E),s=!0,S?t.logTransformResult(r.path,{previousToken:c,nextToken:b,line:u,status:"warning",failureReason:"Using alternative mapping since next mapping is empty"}):t.logTransformResult(r.path,{previousToken:c,nextToken:b,line:u,status:"success"});return}}t.logTransformResult(r.path,{previousToken:c,nextToken:null,line:u,status:"failure",failureReason:g?"No mapping or alternative available":"No mapping found for typography token"}),o.add(c)}),i.find(n.MemberExpression).filter(h=>{let c=pe(h);return c.startsWith("vars.$scale.color.")||c.startsWith("vars.$semantic.color.")||c.startsWith("vars.$static.color.")}).forEach(h=>{var S,b,E;let c=pe(h),p=Sg(h),g=Ai(p);["color","fill","fillColor","textColor","textDecorationColor","textEmphasisColor","webkitTextFillColor","caretColor","markColor","currentColor","spellingErrorColor","grammarErrorColor","selectionColor","stroke"].includes(p||"")&&g!=="fg"&&(t.logTransformResult(r.path,{previousToken:c,nextToken:null,line:(S=h.node.loc)==null?void 0:S.start.line,status:"warning",failureReason:`Adjusting token type from ${g} to fg for property: ${p}`}),g="fg");let v=Pu(c),y=ki.find(M=>M.previous===v),w=(b=h.node.loc)==null?void 0:b.start.line;if(y){let M=null,L=!1;if(y.next.length===1)M=y.next[0];else if(y.next.length>1){let R=y.next.filter(O=>!!(g==="stroke"&&O.includes("$color.stroke")||g==="fg"&&O.includes("$color.fg")||g==="bg"&&O.includes("$color.bg")));if(R.length>0)M=R[0];else if(g==="stroke"){let O=y.next.filter(D=>D.includes("$color.fg"));O.length>0&&(M=O[0])}if(!M){let O=y.next.filter(D=>D.includes("$color.palette"));O.length>0?M=O[0]:M=y.next[0]}}if(!M&&"alternative"in y&&Array.isArray(y.alternative)&&((E=y.alternative)==null?void 0:E.length)>0){L=!0;let R=y.alternative.filter(O=>!!(g==="stroke"&&O.includes("$color.stroke")||g==="fg"&&O.includes("$color.fg")||g==="bg"&&O.includes("$color.bg")));if(R.length>0)M=R[0];else if(g==="stroke"){let O=y.alternative.filter(D=>D.includes("$color.fg"));O.length>0&&(M=O[0])}if(!M){let O=y.alternative.filter(D=>D.includes("$color.palette"));O.length>0?M=O[0]:y.alternative.length>0&&(M=y.alternative[0])}}if(!M){t.logTransformResult(r.path,{previousToken:c,nextToken:null,line:w,status:"failure",failureReason:"No suitable mapping available for this context"}),o.add(c);return}let k=Iu(M),I=Wt(n,k);h.replace(I),a=!0,L?t.logTransformResult(r.path,{previousToken:c,nextToken:k,line:w,status:"warning",failureReason:`Using alternative mapping: ${g} context (${p||"unknown"})`}):t.logTransformResult(r.path,{previousToken:c,nextToken:k,line:w,status:"success"})}else t.logTransformResult(r.path,{previousToken:c,nextToken:null,line:w,status:"failure",failureReason:"No mapping found for color token"}),o.add(c)}),Lu(n,i,o.size>0,a,s,l.size>0),o.size>0&&i.find(n.MemberExpression).filter(h=>{let c=pe(h);return o.has(c)}).forEach(h=>{var u;let c=pe(h),p=c.replace(/^vars\./,"legacyVars."),g=Wt(n,p);h.replace(g),t.logTransformResult(r.path,{previousToken:c,nextToken:p,line:(u=h.node.loc)==null?void 0:u.start.line,status:"warning",failureReason:"Token mapped to legacyVars (unsupported in V3)"})}),i.find(n.Identifier,{name:"legacyVars"}).length===1){let h=i.get().node.comments||[],c=i.find(n.ImportDeclaration,{source:{value:"@seed-design/design-token"}}),p=[];if(c.forEach(g=>{g.node.comments&&g.node.comments.length>0&&(p=[...p,...g.node.comments])}),c.remove(),p.length>0){let g=i.find(n.ImportDeclaration).at(0);g.size()>0?g.get().node.comments=[...g.get().node.comments||[],...p]:i.get().node.comments=[...h,...p]}}return t.finishFile(r.path),i.toSource({})};function Sg(r){var n;let e,t=r;for(let i=0;i<5&&t.parent;i++){if(t=t.parent,t.node.type==="JSXAttribute"){e=t.node.name.name;break}if(t.node.type==="Property"){let o=t.node;if(o.key.type==="Identifier"){e=o.key.name;break}if(o.key.type==="Literal"&&typeof o.key.value=="string"){e=o.key.value;break}if(o.key.type==="StringLiteral"&&typeof o.key.value=="string"){e=o.key.value;break}if("name"in o.key&&typeof o.key.name=="string"){e=o.key.name;break}if("value"in o.key&&typeof o.key.value=="string"){e=o.key.value;break}}if(t.node.type==="AssignmentExpression"){if(t.node.left.type==="MemberExpression"&&t.node.left.property.type==="Identifier"){e=t.node.left.property.name;break}if(t.node.left.type==="MemberExpression"&&"name"in t.node.left.property&&typeof t.node.left.property.name=="string"){e=t.node.left.property.name;break}}if(t.node.type==="VariableDeclarator"&&t.node.id.type==="Identifier"){let o=t.node.id.name.toLowerCase();if(o.includes("fill")||o==="color"){e="color";break}}if(t.node.type==="ObjectExpression"){let o=t.node.properties;for(let a of o)if(a.type==="Property"&&a.key.type==="Identifier"&&(a.key.name==="color"||a.key.name==="textColor"||a.key.name==="fill")){e="color";break}if(e)break}}if(!e&&((n=r.parent)==null?void 0:n.node.type)==="ExpressionStatement"&&(e="color"),!e){let i=pe(r);i.includes("color")||i.includes("Color")?e="color":i.includes("background")||i.includes("Background")?e="backgroundColor":(i.includes("border")||i.includes("Border"))&&(e="borderColor")}return e}var Mg=Eg;
24
+ ${S}`),y.pop(),`{${L}}`}case"number":return isFinite(u)?String(u):e?e(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(u);default:return e?e(u):void 0}}function f(g,u,y){switch(typeof u){case"string":return be(u);case"object":{if(u===null)return"null";if(typeof u.toJSON=="function"){if(u=u.toJSON(g),typeof u!="object")return f(g,u,y);if(u===null)return"null"}if(y.indexOf(u)!==-1)return r;let b="",w=u.length!==void 0;if(w&&Array.isArray(u)){if(u.length===0)return"[]";if(s<y.length+1)return'"[Array]"';y.push(u);let L=Math.min(u.length,a),k=0;for(;k<L-1;k++){let R=f(String(k),u[k],y);b+=R!==void 0?R:"null",b+=","}let P=f(String(k),u[k],y);if(b+=P!==void 0?P:"null",u.length-1>a){let R=u.length-a-1;b+=`,"... ${Te(R)} not stringified"`}return y.pop(),`[${b}]`}let S=Object.keys(u),_=S.length;if(_===0)return"{}";if(s<y.length+1)return'"[Object]"';let E="",M=Math.min(_,a);w&&en(u)&&(b+=yo(u,",",a),S=S.slice(u.length),M-=u.length,E=","),i&&(S=Xr(S,o)),y.push(u);for(let L=0;L<M;L++){let k=S[L],P=f(k,u[k],y);P!==void 0&&(b+=`${E}${be(k)}:${P}`,E=",")}if(_>a){let L=_-a;b+=`${E}"...":"${Te(L)} not stringified"`}return y.pop(),`{${b}}`}case"number":return isFinite(u)?String(u):e?e(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(u);default:return e?e(u):void 0}}function h(g,u,y){if(arguments.length>1){let b="";if(typeof y=="number"?b=" ".repeat(Math.min(y,10)):typeof y=="string"&&(b=y.slice(0,10)),u!=null){if(typeof u=="function")return l("",{"":g},[],u,b,"");if(Array.isArray(u))return c("",g,[],ec(u),b,"")}if(b.length!==0)return d("",g,[],b,"")}return f("",g,[])}return h}});var nn=p((Sg,_o)=>{"use strict";var rc=Z(),{MESSAGE:nc}=F(),ic=at();function oc(t,e){return typeof e=="bigint"?e.toString():e}_o.exports=rc((t,e)=>{let r=ic.configure(e);return t[nc]=r(t,e.replacer||oc,e.space),t})});var xo=p((Mg,wo)=>{"use strict";var sc=Z();wo.exports=sc((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Eo=p((Rg,$o)=>{"use strict";var ac=Z(),{MESSAGE:lc}=F(),uc=at();$o.exports=ac(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[lc]=uc(e),t})});var Mo=p((Tg,So)=>{"use strict";var cc=Z();function fc(t,e,r){let n=e.reduce((o,s)=>(o[s]=t[s],delete t[s],o),{}),i=Object.keys(t).reduce((o,s)=>(o[s]=t[s],delete t[s],o),{});return Object.assign(t,n,{[r]:i}),t}function dc(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}So.exports=cc((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?fc(t,n,r):e.fillWith?dc(t,e.fillWith,r):t})});var To=p((Og,Ro)=>{var We=1e3,Ve=We*60,He=Ve*60,qe=He*24,hc=qe*7,pc=qe*365.25;Ro.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return gc(t);if(r==="number"&&isFinite(t))return e.long?yc(t):mc(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function gc(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*pc;case"weeks":case"week":case"w":return r*hc;case"days":case"day":case"d":return r*qe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*He;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ve;case"seconds":case"second":case"secs":case"sec":case"s":return r*We;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function mc(t){var e=Math.abs(t);return e>=qe?Math.round(t/qe)+"d":e>=He?Math.round(t/He)+"h":e>=Ve?Math.round(t/Ve)+"m":e>=We?Math.round(t/We)+"s":t+"ms"}function yc(t){var e=Math.abs(t);return e>=qe?Wt(t,e,qe,"day"):e>=He?Wt(t,e,He,"hour"):e>=Ve?Wt(t,e,Ve,"minute"):e>=We?Wt(t,e,We,"second"):t+" ms"}function Wt(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var qo=p((lt,Oo)=>{"use strict";var bc=Z(),vc=To();Oo.exports=bc(t=>{let e=+new Date;return lt.diff=e-(lt.prevTime||e),lt.prevTime=e,t.ms=`+${vc(lt.diff)}`,t})});var Ao=p((qg,Co)=>{"use strict";var _c=require("util").inspect,wc=Z(),{LEVEL:xc,MESSAGE:ko,SPLAT:$c}=F();Co.exports=wc((t,e={})=>{let r=Object.assign({},t);return delete r[xc],delete r[ko],delete r[$c],t[ko]=_c(r,!1,e.depth||null,e.colorize),t})});var Lo=p((kg,Ht)=>{"use strict";var{MESSAGE:Ec}=F(),Vt=class{constructor(e){this.template=e}transform(e){return e[Ec]=this.template(e),e}};Ht.exports=t=>new Vt(t);Ht.exports.Printf=Ht.exports.Format=Vt});var Io=p((Cg,Po)=>{"use strict";var Sc=Z(),{MESSAGE:jo}=F(),Mc=at();Po.exports=Sc(t=>{let e=Mc(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[jo]=`${t.level}:${r} ${t.message} ${e}`:t[jo]=`${t.level}:${r} ${t.message}`,t})});var Fo=p((Ag,Do)=>{"use strict";var Rc=require("util"),{SPLAT:No}=F(),Tc=/%[scdjifoO%]/g,Oc=/%%/g,on=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[No]||e.splat||[],o=n.match(Oc),s=o&&o.length||0,l=r.length-s-i.length,c=l<0?i.splice(l,-1*l):[],d=c.length;if(d)for(let f=0;f<d;f++)Object.assign(e,c[f]);return e.message=Rc.format(n,...i),e}transform(e){let r=e.message,n=e[No]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(Tc);if(!i&&(n||n.length)){let o=n.length>1?n.splice(0):n,s=o.length;if(s)for(let a=0;a<s;a++)Object.assign(e,o[a]);return e}return i?this._splat(e,i):e}};Do.exports=t=>new on(t)});var Wo=p((zt,Bo)=>{(function(t,e){typeof zt=="object"&&typeof Bo<"u"?e(zt):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(zt,(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}",o="\\d{4}",s="[^\\s]+",a=/\[([^]*?)\]/gm;function l(m,x){for(var j=[],J=0,$=m.length;J<$;J++)j.push(m[J].substr(0,x));return j}var c=function(m){return function(x,j){var J=j[m].map(function(ae){return ae.toLowerCase()}),$=J.indexOf(x.toLowerCase());return $>-1?$:null}};function d(m){for(var x=[],j=1;j<arguments.length;j++)x[j-1]=arguments[j];for(var J=0,$=x;J<$.length;J++){var ae=$[J];for(var Me in ae)m[Me]=ae[Me]}return m}var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"],g=l(h,3),u=l(f,3),y={dayNamesShort:u,dayNames:f,monthNamesShort:g,monthNames:h,amPm:["am","pm"],DoFn:function(m){return m+["th","st","nd","rd"][m%10>3?0:(m-m%10!==10?1:0)*m%10]}},b=d({},y),w=function(m){return b=d(b,m)},S=function(m){return m.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},_=function(m,x){for(x===void 0&&(x=2),m=String(m);m.length<x;)m="0"+m;return m},E={D:function(m){return String(m.getDate())},DD:function(m){return _(m.getDate())},Do:function(m,x){return x.DoFn(m.getDate())},d:function(m){return String(m.getDay())},dd:function(m){return _(m.getDay())},ddd:function(m,x){return x.dayNamesShort[m.getDay()]},dddd:function(m,x){return x.dayNames[m.getDay()]},M:function(m){return String(m.getMonth()+1)},MM:function(m){return _(m.getMonth()+1)},MMM:function(m,x){return x.monthNamesShort[m.getMonth()]},MMMM:function(m,x){return x.monthNames[m.getMonth()]},YY:function(m){return _(String(m.getFullYear()),4).substr(2)},YYYY:function(m){return _(m.getFullYear(),4)},h:function(m){return String(m.getHours()%12||12)},hh:function(m){return _(m.getHours()%12||12)},H:function(m){return String(m.getHours())},HH:function(m){return _(m.getHours())},m:function(m){return String(m.getMinutes())},mm:function(m){return _(m.getMinutes())},s:function(m){return String(m.getSeconds())},ss:function(m){return _(m.getSeconds())},S:function(m){return String(Math.round(m.getMilliseconds()/100))},SS:function(m){return _(Math.round(m.getMilliseconds()/10),2)},SSS:function(m){return _(m.getMilliseconds(),3)},a:function(m,x){return m.getHours()<12?x.amPm[0]:x.amPm[1]},A:function(m,x){return m.getHours()<12?x.amPm[0].toUpperCase():x.amPm[1].toUpperCase()},ZZ:function(m){var x=m.getTimezoneOffset();return(x>0?"-":"+")+_(Math.floor(Math.abs(x)/60)*100+Math.abs(x)%60,4)},Z:function(m){var x=m.getTimezoneOffset();return(x>0?"-":"+")+_(Math.floor(Math.abs(x)/60),2)+":"+_(Math.abs(x)%60,2)}},M=function(m){return+m-1},L=[null,r],k=[null,s],P=["isPm",s,function(m,x){var j=m.toLowerCase();return j===x.amPm[0]?0:j===x.amPm[1]?1:null}],R=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(m){var x=(m+"").match(/([+-]|\d\d)/gi);if(x){var j=+x[1]*60+parseInt(x[2],10);return x[0]==="+"?j:-j}return 0}],O={D:["day",r],DD:["day",n],Do:["day",r+s,function(m){return parseInt(m,10)}],M:["month",r,M],MM:["month",n,M],YY:["year",n,function(m){var x=new Date,j=+(""+x.getFullYear()).substr(0,2);return+(""+(+m>68?j-1:j)+m)}],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",o],S:["millisecond","\\d",function(m){return+m*100}],SS:["millisecond",n,function(m){return+m*10}],SSS:["millisecond",i],d:L,dd:L,ddd:k,dddd:k,MMM:["month",s,c("monthNamesShort")],MMMM:["month",s,c("monthNames")],a:P,A:P,ZZ:R,Z:R},I={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Y=function(m){return d(I,m)},X=function(m,x,j){if(x===void 0&&(x=I.default),j===void 0&&(j={}),typeof m=="number"&&(m=new Date(m)),Object.prototype.toString.call(m)!=="[object Date]"||isNaN(m.getTime()))throw new Error("Invalid Date pass to format");x=I[x]||x;var J=[];x=x.replace(a,function(ae,Me){return J.push(Me),"@@@"});var $=d(d({},b),j);return x=x.replace(e,function(ae){return E[ae](m,$)}),x.replace(/@@@/g,function(){return J.shift()})};function ee(m,x,j){if(j===void 0&&(j={}),typeof x!="string")throw new Error("Invalid format in fecha parse");if(x=I[x]||x,m.length>1e3)return null;var J=new Date,$={year:J.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ae=[],Me=[],rt=x.replace(a,function(nt,Fe){return Me.push(S(Fe)),"@@@"}),qt={},yi={};rt=S(rt).replace(e,function(nt){var Fe=O[nt],Nr=Fe[0],uu=Fe[1],wi=Fe[3];if(qt[Nr])throw new Error("Invalid format. "+Nr+" specified twice in format");return qt[Nr]=!0,wi&&(yi[wi]=!0),ae.push(Fe),"("+uu+")"}),Object.keys(yi).forEach(function(nt){if(!qt[nt])throw new Error("Invalid format. "+nt+" is required in specified format")}),rt=rt.replace(/@@@/g,function(){return Me.shift()});var kt=m.match(new RegExp(rt,"i"));if(!kt)return null;for(var su=d(d({},b),j),ne=1;ne<kt.length;ne++){var bi=ae[ne-1],au=bi[0],vi=bi[2],_i=vi?vi(kt[ne],su):+kt[ne];if(_i==null)return null;$[au]=_i}$.isPm===1&&$.hour!=null&&+$.hour!=12?$.hour=+$.hour+12:$.isPm===0&&+$.hour==12&&($.hour=0);var Ct;if($.timezoneOffset==null){Ct=new Date($.year,$.month,$.day,$.hour,$.minute,$.second,$.millisecond);for(var At=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],ne=0,lu=At.length;ne<lu;ne++)if(qt[At[ne][0]]&&$[At[ne][0]]!==Ct[At[ne][1]]())return null}else if(Ct=new Date(Date.UTC($.year,$.month,$.day,$.hour,$.minute-$.timezoneOffset,$.second,$.millisecond)),$.month>11||$.month<0||$.day>31||$.day<1||$.hour>23||$.hour<0||$.minute>59||$.minute<0||$.second>59||$.second<0)return null;return Ct}var De={format:X,parse:ee,defaultI18n:y,setGlobalDateI18n:w,setGlobalDateMasks:Y};t.assign=d,t.default=De,t.format=X,t.parse=ee,t.defaultI18n=y,t.setGlobalDateI18n=w,t.setGlobalDateMasks=Y,Object.defineProperty(t,"__esModule",{value:!0})}))});var Ho=p((Lg,Vo)=>{"use strict";var qc=Wo(),kc=Z();Vo.exports=kc((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():qc.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Uo=p((jg,zo)=>{"use strict";var sn=Br(),Cc=Z(),{MESSAGE:an}=F();zo.exports=Cc((t,e)=>(e.level!==!1&&(t.level=sn.strip(t.level)),e.message!==!1&&(t.message=sn.strip(String(t.message))),e.raw!==!1&&t[an]&&(t[an]=sn.strip(String(t[an]))),t))});var un=p(ln=>{"use strict";var Ac=ln.format=Z();ln.levels=so();function G(t,e){Object.defineProperty(Ac,t,{get(){return e()},configurable:!0})}G("align",function(){return lo()});G("errors",function(){return fo()});G("cli",function(){return po()});G("combine",function(){return mo()});G("colorize",function(){return Nt()});G("json",function(){return nn()});G("label",function(){return xo()});G("logstash",function(){return Eo()});G("metadata",function(){return Mo()});G("ms",function(){return qo()});G("padLevels",function(){return Jr()});G("prettyPrint",function(){return Ao()});G("printf",function(){return Lo()});G("simple",function(){return Io()});G("splat",function(){return Fo()});G("timestamp",function(){return Ho()});G("uncolorize",function(){return Uo()})});var cn=p(Ut=>{"use strict";var{format:Yo}=require("util");Ut.warn={deprecated(t){return()=>{throw new Error(Yo("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([Yo("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
25
+ `))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=Ut.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=Ut.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Go=p((Ng,Lc)=>{Lc.exports={name:"winston",description:"A logger for just about everything.",version:"3.18.3",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.8","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.7.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.9.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^17.1.0",rimraf:"5.0.1",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var Jo=p((Dg,Ko)=>{Ko.exports=require("util").deprecate});var fn=p((Fg,Zo)=>{Zo.exports=require("stream")});var hn=p((Bg,Xo)=>{"use strict";function jc(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(dn,this,t)):process.nextTick(dn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Yt,r):(r._writableState.errorEmitted=!0,process.nextTick(Qo,r,o)):process.nextTick(Qo,r,o):e?(process.nextTick(Yt,r),e(o)):process.nextTick(Yt,r)}),this)}function Qo(t,e){dn(t,e),Yt(t)}function Yt(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Pc(){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 dn(t,e){t.emit("error",e)}function Ic(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Xo.exports={destroy:jc,undestroy:Pc,errorOrDestroy:Ic}});var ve=p((Wg,rs)=>{"use strict";var ts={};function te(t,e,r){r||(r=Error);function n(o,s,a){return typeof e=="string"?e:e(o,s,a)}class i extends r{constructor(s,a,l){super(n(s,a,l))}}i.prototype.name=r.name,i.prototype.code=t,ts[t]=i}function es(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 Nc(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Dc(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Fc(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}te("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);te("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Nc(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Dc(t," argument"))i=`The ${t} ${n} ${es(e,"type")}`;else{let o=Fc(t,".")?"property":"argument";i=`The "${t}" ${o} ${n} ${es(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);te("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");te("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});te("ERR_STREAM_PREMATURE_CLOSE","Premature close");te("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});te("ERR_MULTIPLE_CALLBACK","Callback called multiple times");te("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");te("ERR_STREAM_WRITE_AFTER_END","write after end");te("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);te("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);te("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");rs.exports.codes=ts});var pn=p((Vg,ns)=>{"use strict";var Bc=ve().codes.ERR_INVALID_OPT_VALUE;function Wc(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Vc(t,e,r,n){var i=Wc(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new Bc(o,i)}return Math.floor(i)}return t.objectMode?16:16*1024}ns.exports={getHighWaterMark:Vc}});var is=p((Hg,gn)=>{typeof Object.create=="function"?gn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:gn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var ze=p((zg,yn)=>{try{if(mn=require("util"),typeof mn.inherits!="function")throw"";yn.exports=mn.inherits}catch{yn.exports=is()}var mn});var cs=p((Ug,us)=>{"use strict";function os(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 ss(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?os(Object(r),!0).forEach(function(n){Hc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):os(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hc(t,e,r){return e=ls(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function as(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,ls(n.key),n)}}function Uc(t,e,r){return e&&as(t.prototype,e),r&&as(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ls(t){var e=Yc(t,"string");return typeof e=="symbol"?e:String(e)}function Yc(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 Gc=require("buffer"),Gt=Gc.Buffer,Kc=require("util"),bn=Kc.inspect,Jc=bn&&bn.custom||"inspect";function Zc(t,e,r){Gt.prototype.copy.call(t,e,r)}us.exports=(function(){function t(){zc(this,t),this.head=null,this.tail=null,this.length=0}return Uc(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Gt.alloc(0);for(var n=Gt.allocUnsafe(r>>>0),i=this.head,o=0;i;)Zc(i.data,n,o),o+=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,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=Gt.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:Jc,value:function(r,n){return bn(this,ss(ss({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var hs=p((vn,ds)=>{var Kt=require("buffer"),le=Kt.Buffer;function fs(t,e){for(var r in t)e[r]=t[r]}le.from&&le.alloc&&le.allocUnsafe&&le.allocUnsafeSlow?ds.exports=Kt:(fs(Kt,vn),vn.Buffer=ke);function ke(t,e,r){return le(t,e,r)}ke.prototype=Object.create(le.prototype);fs(le,ke);ke.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return le(t,e,r)};ke.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=le(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};ke.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return le(t)};ke.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Kt.SlowBuffer(t)}});var xn=p(gs=>{"use strict";var wn=hs().Buffer,ps=wn.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 Qc(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 Xc(t){var e=Qc(t);if(typeof e!="string"&&(wn.isEncoding===ps||!ps(t)))throw new Error("Unknown encoding: "+t);return e||t}gs.StringDecoder=ut;function ut(t){this.encoding=Xc(t);var e;switch(this.encoding){case"utf16le":this.text=sf,this.end=af,e=4;break;case"utf8":this.fillLast=rf,e=4;break;case"base64":this.text=lf,this.end=uf,e=3;break;default:this.write=cf,this.end=ff;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=wn.allocUnsafe(e)}ut.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};ut.prototype.end=of;ut.prototype.text=nf;ut.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function _n(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function ef(t,e,r){var n=e.length-1;if(n<r)return 0;var i=_n(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=_n(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=_n(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function tf(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 rf(t){var e=this.lastTotal-this.lastNeed,r=tf(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 nf(t,e){var r=ef(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 of(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function sf(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 af(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 lf(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 uf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function cf(t){return t.toString(this.encoding)}function ff(t){return t&&t.length?this.write(t):""}});var Jt=p((Gg,bs)=>{"use strict";var ms=ve().codes.ERR_STREAM_PREMATURE_CLOSE;function df(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 hf(){}function pf(t){return t.setHeader&&typeof t.abort=="function"}function ys(t,e,r){if(typeof e=="function")return ys(t,null,e);e||(e={}),r=df(r||hf);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||a()},s=t._writableState&&t._writableState.finished,a=function(){i=!1,s=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(t)},d=function(u){r.call(t,u)},f=function(){var u;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(u=new ms),r.call(t,u);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(u=new ms),r.call(t,u)},h=function(){t.req.on("finish",a)};return pf(t)?(t.on("complete",a),t.on("abort",f),t.req?h():t.on("request",h)):i&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",c),t.on("finish",a),e.error!==!1&&t.on("error",d),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",c),t.removeListener("error",d),t.removeListener("close",f)}}bs.exports=ys});var _s=p((Kg,vs)=>{"use strict";var Zt;function _e(t,e,r){return e=gf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gf(t){var e=mf(t,"string");return typeof e=="symbol"?e:String(e)}function mf(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 yf=Jt(),we=Symbol("lastResolve"),Ce=Symbol("lastReject"),ct=Symbol("error"),Qt=Symbol("ended"),Ae=Symbol("lastPromise"),$n=Symbol("handlePromise"),Le=Symbol("stream");function xe(t,e){return{value:t,done:e}}function bf(t){var e=t[we];if(e!==null){var r=t[Le].read();r!==null&&(t[Ae]=null,t[we]=null,t[Ce]=null,e(xe(r,!1)))}}function vf(t){process.nextTick(bf,t)}function _f(t,e){return function(r,n){t.then(function(){if(e[Qt]){r(xe(void 0,!0));return}e[$n](r,n)},n)}}var wf=Object.getPrototypeOf(function(){}),xf=Object.setPrototypeOf((Zt={get stream(){return this[Le]},next:function(){var e=this,r=this[ct];if(r!==null)return Promise.reject(r);if(this[Qt])return Promise.resolve(xe(void 0,!0));if(this[Le].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[ct]?a(e[ct]):s(xe(void 0,!0))})});var n=this[Ae],i;if(n)i=new Promise(_f(n,this));else{var o=this[Le].read();if(o!==null)return Promise.resolve(xe(o,!1));i=new Promise(this[$n])}return this[Ae]=i,i}},_e(Zt,Symbol.asyncIterator,function(){return this}),_e(Zt,"return",function(){var e=this;return new Promise(function(r,n){e[Le].destroy(null,function(i){if(i){n(i);return}r(xe(void 0,!0))})})}),Zt),wf),$f=function(e){var r,n=Object.create(xf,(r={},_e(r,Le,{value:e,writable:!0}),_e(r,we,{value:null,writable:!0}),_e(r,Ce,{value:null,writable:!0}),_e(r,ct,{value:null,writable:!0}),_e(r,Qt,{value:e._readableState.endEmitted,writable:!0}),_e(r,$n,{value:function(o,s){var a=n[Le].read();a?(n[Ae]=null,n[we]=null,n[Ce]=null,o(xe(a,!1))):(n[we]=o,n[Ce]=s)},writable:!0}),r));return n[Ae]=null,yf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ce];o!==null&&(n[Ae]=null,n[we]=null,n[Ce]=null,o(i)),n[ct]=i;return}var s=n[we];s!==null&&(n[Ae]=null,n[we]=null,n[Ce]=null,s(xe(void 0,!0))),n[Qt]=!0}),e.on("readable",vf.bind(null,n)),n};vs.exports=$f});var Es=p((Jg,$s)=>{"use strict";function ws(t,e,r,n,i,o,s){try{var a=t[o](s),l=a.value}catch(c){r(c);return}a.done?e(l):Promise.resolve(l).then(n,i)}function Ef(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function s(l){ws(o,n,i,s,a,"next",l)}function a(l){ws(o,n,i,s,a,"throw",l)}s(void 0)})}}function xs(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 Sf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xs(Object(r),!0).forEach(function(n){Mf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xs(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Mf(t,e,r){return e=Rf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rf(t){var e=Tf(t,"string");return typeof e=="symbol"?e:String(e)}function Tf(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 Of=ve().codes.ERR_INVALID_ARG_TYPE;function qf(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 Of("iterable",["Iterable"],e);var i=new t(Sf({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=Ef(function*(){try{var l=yield n.next(),c=l.value,d=l.done;d?i.push(null):i.push(yield c)?s():o=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}$s.exports=qf});var An=p((Qg,Ls)=>{"use strict";Ls.exports=C;var Ue;C.ReadableState=Ts;var Zg=require("events").EventEmitter,Rs=function(e,r){return e.listeners(r).length},dt=fn(),Xt=require("buffer").Buffer,kf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Cf(t){return Xt.from(t)}function Af(t){return Xt.isBuffer(t)||t instanceof kf}var En=require("util"),T;En&&En.debuglog?T=En.debuglog("stream"):T=function(){};var Lf=cs(),kn=hn(),jf=pn(),Pf=jf.getHighWaterMark,er=ve().codes,If=er.ERR_INVALID_ARG_TYPE,Nf=er.ERR_STREAM_PUSH_AFTER_EOF,Df=er.ERR_METHOD_NOT_IMPLEMENTED,Ff=er.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ye,Sn,Mn;ze()(C,dt);var ft=kn.errorOrDestroy,Rn=["error","close","destroy","pause","resume"];function Bf(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 Ts(t,e,r){Ue=Ue||je(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ue),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Pf(this,t,"readableHighWaterMark",r),this.buffer=new Lf,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&&(Ye||(Ye=xn().StringDecoder),this.decoder=new Ye(t.encoding),this.encoding=t.encoding)}function C(t){if(Ue=Ue||je(),!(this instanceof C))return new C(t);var e=this instanceof Ue;this._readableState=new Ts(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),dt.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=kn.destroy;C.prototype._undestroy=kn.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=Xt.from(t,e),e=""),n=!0),Os(this,t,e,!1,n)};C.prototype.unshift=function(t){return Os(this,t,null,!0,!1)};function Os(t,e,r,n,i){T("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,Hf(t,o);else{var s;if(i||(s=Wf(o,e)),s)ft(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==Xt.prototype&&(e=Cf(e)),n)o.endEmitted?ft(t,new Ff):Tn(t,o,e,!0);else if(o.ended)ft(t,new Nf);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?Tn(t,o,e,!1):qn(t,o)):Tn(t,o,e,!1)}else n||(o.reading=!1,qn(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Tn(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&tr(t)),qn(t,e)}function Wf(t,e){var r;return!Af(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new If("chunk",["string","Buffer","Uint8Array"],e)),r}C.prototype.isPaused=function(){return this._readableState.flowing===!1};C.prototype.setEncoding=function(t){Ye||(Ye=xn().StringDecoder);var e=new Ye(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 Ss=1073741824;function Vf(t){return t>=Ss?t=Ss:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Ms(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=Vf(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?On(this):tr(this),null;if(t=Ms(t,e),t===0&&e.ended)return e.length===0&&On(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=Ms(r,e)));var i;return t>0?i=Cs(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&On(this)),i!==null&&this.emit("data",i),i};function Hf(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?tr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,qs(t)))}}function tr(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(qs,t))}function qs(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,Cn(t)}function qn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(zf,t,e))}function zf(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){ft(this,new Df("_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,o=i?a:y;n.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(b,w){T("onunpipe"),b===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,d())}function a(){T("onend"),t.end()}var l=Uf(r);t.on("drain",l);var c=!1;function d(){T("cleanup"),t.removeListener("close",g),t.removeListener("finish",u),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",f),c=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(b){T("ondata");var w=t.write(b);T("dest.write",w),w===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&As(n.pipes,t)!==-1)&&!c&&(T("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){T("onerror",b),y(),t.removeListener("error",h),Rs(t,"error")===0&&ft(t,b)}Bf(t,"error",h);function g(){t.removeListener("finish",u),y()}t.once("close",g);function u(){T("onfinish"),t.removeListener("close",g),y()}t.once("finish",u);function y(){T("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(T("pipe resume"),r.resume()),t};function Uf(t){return function(){var r=t._readableState;T("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Rs(t,"data")&&(r.flowing=!0,Cn(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 o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=As(e.pipes,t);return s===-1?this:(e.pipes.splice(s,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=dt.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?tr(this):n.reading||process.nextTick(Yf,this)),r};C.prototype.addListener=C.prototype.on;C.prototype.removeListener=function(t,e){var r=dt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(ks,this),r};C.prototype.removeAllListeners=function(t){var e=dt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(ks,this),e};function ks(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 Yf(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,Gf(this,t)),t.paused=!1,this};function Gf(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Kf,t,e))}function Kf(t,e){T("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Cn(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 Cn(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 s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(T("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=e.push(s);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 o=0;o<Rn.length;o++)t.on(Rn[o],this.emit.bind(this,Rn[o]));return this._read=function(s){T("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(C.prototype[Symbol.asyncIterator]=function(){return Sn===void 0&&(Sn=_s()),Sn(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=Cs;Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Cs(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function On(t){var e=t._readableState;T("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Jf,e,t))}function Jf(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 Mn===void 0&&(Mn=Es()),Mn(C,t,e)});function As(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var je=p((Xg,Ps)=>{"use strict";var Zf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Ps.exports=ue;var js=An(),jn=ir();ze()(ue,js);for(Ln=Zf(jn.prototype),rr=0;rr<Ln.length;rr++)nr=Ln[rr],ue.prototype[nr]||(ue.prototype[nr]=jn.prototype[nr]);var Ln,nr,rr;function ue(t){if(!(this instanceof ue))return new ue(t);js.call(this,t),jn.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",Qf)))}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Qf(){this._writableState.ended||process.nextTick(Xf,this)}function Xf(t){t.end()}Object.defineProperty(ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var ir=p((em,Ws)=>{"use strict";Ws.exports=N;function Ns(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Md(e,t)}}var Ge;N.WritableState=pt;var ed={deprecate:Jo()},Ds=fn(),sr=require("buffer").Buffer,td=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function rd(t){return sr.from(t)}function nd(t){return sr.isBuffer(t)||t instanceof td}var In=hn(),id=pn(),od=id.getHighWaterMark,$e=ve().codes,sd=$e.ERR_INVALID_ARG_TYPE,ad=$e.ERR_METHOD_NOT_IMPLEMENTED,ld=$e.ERR_MULTIPLE_CALLBACK,ud=$e.ERR_STREAM_CANNOT_PIPE,cd=$e.ERR_STREAM_DESTROYED,fd=$e.ERR_STREAM_NULL_VALUES,dd=$e.ERR_STREAM_WRITE_AFTER_END,hd=$e.ERR_UNKNOWN_ENCODING,Ke=In.errorOrDestroy;ze()(N,Ds);function pd(){}function pt(t,e,r){Ge=Ge||je(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ge),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=od(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){wd(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 Ns(this)}pt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(pt.prototype,"buffer",{get:ed.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var or;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(or=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(e){return or.call(this,e)?!0:this!==N?!1:e&&e._writableState instanceof pt}})):or=function(e){return e instanceof this};function N(t){Ge=Ge||je();var e=this instanceof Ge;if(!e&&!or.call(N,this))return new N(t);this._writableState=new pt(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)),Ds.call(this)}N.prototype.pipe=function(){Ke(this,new ud)};function gd(t,e){var r=new dd;Ke(t,r),process.nextTick(e,r)}function md(t,e,r,n){var i;return r===null?i=new fd:typeof r!="string"&&!e.objectMode&&(i=new sd("chunk",["string","Buffer"],r)),i?(Ke(t,i),process.nextTick(n,i),!1):!0}N.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&nd(t);return o&&!sr.isBuffer(t)&&(t=rd(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=pd),n.ending?gd(this,r):(o||md(this,n,t,r))&&(n.pendingcb++,i=bd(this,n,o,t,e,r)),i};N.prototype.cork=function(){this._writableState.corked++};N.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Fs(this,t))};N.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 hd(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function yd(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=sr.from(e,r)),e}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function bd(t,e,r,n,i,o){if(!r){var s=yd(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Pn(t,e,!1,a,n,i,o);return l}function Pn(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new cd("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function vd(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(ht,t,e),t._writableState.errorEmitted=!0,Ke(t,n)):(i(n),t._writableState.errorEmitted=!0,Ke(t,n),ht(t,e))}function _d(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function wd(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new ld;if(_d(r),e)vd(t,r,n,e,i);else{var o=Bs(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Fs(t,r),n?process.nextTick(Is,t,r,o,i):Is(t,r,o,i)}}function Is(t,e,r,n){r||xd(t,e),e.pendingcb--,n(),ht(t,e)}function xd(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Fs(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,Pn(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Ns(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,d=r.callback,f=e.objectMode?1:l.length;if(Pn(t,e,!1,f,l,c,d),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}N.prototype._write=function(t,e,r){r(new ad("_write()"))};N.prototype._writev=null;N.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||Sd(this,n,r),this};Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Bs(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function $d(t,e){t._final(function(r){e.pendingcb--,r&&Ke(t,r),e.prefinished=!0,t.emit("prefinish"),ht(t,e)})}function Ed(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick($d,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ht(t,e){var r=Bs(e);if(r&&(Ed(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 Sd(t,e,r){e.ending=!0,ht(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Md(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(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});N.prototype.destroy=In.destroy;N.prototype._undestroy=In.undestroy;N.prototype._destroy=function(t,e){e(t)}});var Nn=p((tm,zs)=>{"use strict";var Rd=require("util"),Vs=ir(),{LEVEL:Hs}=F(),gt=zs.exports=function(e={}){Vs.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())})};Rd.inherits(gt,Vs);gt.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[Hs]]){if(e&&!this.format)return this.log(e,n);let o,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(a){o=a}if(o||!s){if(n(),o)throw o;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};gt.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,o;try{o=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(s){i=s}if(i||!o){if(e[n].callback(),i)throw r(null),i}else this.log(o,e[n].callback)}return r(null)};gt.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[Hs]])&&(this.handleExceptions||r.exception!==!0))};gt.prototype._nop=function(){}});var Fn=p((rm,Ys)=>{"use strict";var Td=require("util"),{LEVEL:Dn}=F(),Us=Nn(),mt=Ys.exports=function(e={}){if(Us.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))};Td.inherits(mt,Us);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[Dn]])&&this.transport.log(e[Dn],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[Dn],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(`
26
+ `))};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 Je=p((nm,Bn)=>{"use strict";Bn.exports=Nn();Bn.exports.LegacyTransportStream=Fn()});var Js=p((om,Ks)=>{"use strict";var Od=require("os"),{LEVEL:Gs,MESSAGE:Ze}=F(),qd=Je();Ks.exports=class extends qd{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:Od.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[Gs]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleError(e[Ze]),r&&r();return}else if(this.consoleWarnLevels[e[Gs]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[Ze]}${this.eol}`):this._consoleWarn(e[Ze]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[Ze]}${this.eol}`):this._consoleLog(e[Ze]),r&&r()}_stringArrayToSet(e,r){if(!e)return{};if(r=r||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(r);return e.reduce((n,i)=>{if(typeof i!="string")throw new Error(r);return n[i]=!0,n},{})}}});var lr=p((ar,Zs)=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.default=kd;function kd(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Zs.exports=ar.default});var Xs=p((ur,Qs)=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Qs.exports=ur.default});var ra=p(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.fallback=ea;Ee.wrap=ta;var Cd=Ee.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Ad=Ee.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Ld=Ee.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function ea(t){setTimeout(t,0)}function ta(t){return(e,...r)=>t(()=>e(...r))}var yt;Cd?yt=queueMicrotask:Ad?yt=setImmediate:Ld?yt=process.nextTick:yt=ea;Ee.default=ta(yt)});var aa=p((cr,sa)=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.default=Fd;var jd=Xs(),Pd=oa(jd),Id=ra(),Nd=oa(Id),Dd=Pe();function oa(t){return t&&t.__esModule?t:{default:t}}function Fd(t){return(0,Dd.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return na(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 na(n,r);r(null,n)})}function na(t,e){return t.then(r=>{ia(e,null,r)},r=>{ia(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function ia(t,e,r){try{t(e,r)}catch(n){(0,Nd.default)(i=>{throw i},n)}}sa.exports=cr.default});var Pe=p(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.isAsyncIterable=ge.isAsyncGenerator=ge.isAsync=void 0;var Bd=aa(),Wd=Vd(Bd);function Vd(t){return t&&t.__esModule?t:{default:t}}function la(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Hd(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function zd(t){return typeof t[Symbol.asyncIterator]=="function"}function Ud(t){if(typeof t!="function")throw new Error("expected a function");return la(t)?(0,Wd.default)(t):t}ge.default=Ud;ge.isAsync=la;ge.isAsyncGenerator=Hd;ge.isAsyncIterable=zd});var Qe=p((fr,ua)=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.default=Yd;function Yd(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,o)=>{n[e-1]=(s,...a)=>{if(s)return o(s);i(a.length>1?a:a[0])},t.apply(this,n)})}return r}ua.exports=fr.default});var fa=p((dr,ca)=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});var Gd=lr(),Kd=Wn(Gd),Jd=Pe(),Zd=Wn(Jd),Qd=Qe(),Xd=Wn(Qd);function Wn(t){return t&&t.__esModule?t:{default:t}}dr.default=(0,Xd.default)((t,e,r)=>{var n=(0,Kd.default)(e)?[]:{};t(e,(i,o,s)=>{(0,Zd.default)(i)((a,...l)=>{l.length<2&&([l]=l),n[o]=l,s(a)})},i=>r(i,n))},3);ca.exports=dr.default});var Vn=p((hr,da)=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=eh;function eh(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}da.exports=hr.default});var pa=p((pr,ha)=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};ha.exports=pr.default});var ya=p((gr,ma)=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=lh;var th=lr(),rh=ga(th),nh=pa(),ih=ga(nh);function ga(t){return t&&t.__esModule?t:{default:t}}function oh(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function sh(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function ah(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var o=e[++r];return o==="__proto__"?i():r<n?{value:t[o],key:o}:null}}function lh(t){if((0,rh.default)(t))return oh(t);var e=(0,ih.default)(t);return e?sh(e):ah(t)}ma.exports=gr.default});var Hn=p((mr,ba)=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.default=uh;function uh(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}ba.exports=mr.default});var br=p((yr,va)=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});var ch={};yr.default=ch;va.exports=yr.default});var wa=p((vr,_a)=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.default=ph;var fh=br(),dh=hh(fh);function hh(t){return t&&t.__esModule?t:{default:t}}function ph(t,e,r,n){let i=!1,o=!1,s=!1,a=0,l=0;function c(){a>=e||s||i||(s=!0,t.next().then(({value:h,done:g})=>{if(!(o||i)){if(s=!1,g){i=!0,a<=0&&n(null);return}a++,r(h,l,d),l++,c()}}).catch(f))}function d(h,g){if(a-=1,!o){if(h)return f(h);if(h===!1){i=!0,o=!0;return}if(g===dh.default||i&&a<=0)return i=!0,n(null);c()}}function f(h){o||(s=!1,i=!0,n(h))}c()}_a.exports=vr.default});var Sa=p((_r,Ea)=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var gh=Vn(),mh=bt(gh),yh=ya(),bh=bt(yh),vh=Hn(),_h=bt(vh),xa=Pe(),wh=wa(),$a=bt(wh),xh=br(),$h=bt(xh);function bt(t){return t&&t.__esModule?t:{default:t}}_r.default=t=>(e,r,n)=>{if(n=(0,mh.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,xa.isAsyncGenerator)(e))return(0,$a.default)(e,t,r,n);if((0,xa.isAsyncIterable)(e))return(0,$a.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,bh.default)(e),o=!1,s=!1,a=0,l=!1;function c(f,h){if(!s)if(a-=1,f)o=!0,n(f);else if(f===!1)o=!0,s=!0;else{if(h===$h.default||o&&a<=0)return o=!0,n(null);l||d()}}function d(){for(l=!0;a<t&&!o;){var f=i();if(f===null){o=!0,a<=0&&n(null);return}a+=1,r(f.value,f.key,(0,_h.default)(c))}l=!1}d()};Ea.exports=_r.default});var Un=p((wr,Ma)=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});var Eh=Sa(),Sh=zn(Eh),Mh=Pe(),Rh=zn(Mh),Th=Qe(),Oh=zn(Th);function zn(t){return t&&t.__esModule?t:{default:t}}function qh(t,e,r,n){return(0,Sh.default)(e)(t,(0,Rh.default)(r),n)}wr.default=(0,Oh.default)(qh,4);Ma.exports=wr.default});var Oa=p((xr,Ta)=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});var kh=Un(),Ch=Ra(kh),Ah=Qe(),Lh=Ra(Ah);function Ra(t){return t&&t.__esModule?t:{default:t}}function jh(t,e,r){return(0,Ch.default)(t,1,e,r)}xr.default=(0,Lh.default)(jh,3);Ta.exports=xr.default});var Ca=p(($r,ka)=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.default=Fh;var Ph=fa(),Ih=qa(Ph),Nh=Oa(),Dh=qa(Nh);function qa(t){return t&&t.__esModule?t:{default:t}}function Fh(t,e){return(0,Ih.default)(Dh.default,t,e)}ka.exports=$r.default});var Yn=p((lm,La)=>{"use strict";La.exports=me;var Er=ve().codes,Bh=Er.ERR_METHOD_NOT_IMPLEMENTED,Wh=Er.ERR_MULTIPLE_CALLBACK,Vh=Er.ERR_TRANSFORM_ALREADY_TRANSFORMING,Hh=Er.ERR_TRANSFORM_WITH_LENGTH_0,Sr=je();ze()(me,Sr);function zh(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Wh);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 me(t){if(!(this instanceof me))return new me(t);Sr.call(this,t),this._transformState={afterTransform:zh.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",Uh)}function Uh(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Aa(t,e,r)}):Aa(this,null,null)}me.prototype.push=function(t,e){return this._transformState.needTransform=!1,Sr.prototype.push.call(this,t,e)};me.prototype._transform=function(t,e,r){r(new Bh("_transform()"))};me.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)}};me.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};me.prototype._destroy=function(t,e){Sr.prototype._destroy.call(this,t,function(r){e(r)})};function Aa(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Hh;if(t._transformState.transforming)throw new Vh;return t.push(null)}});var Ia=p((um,Pa)=>{"use strict";Pa.exports=vt;var ja=Yn();ze()(vt,ja);function vt(t){if(!(this instanceof vt))return new vt(t);ja.call(this,t)}vt.prototype._transform=function(t,e,r){r(null,t)}});var Wa=p((cm,Ba)=>{"use strict";var Gn;function Yh(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Fa=ve().codes,Gh=Fa.ERR_MISSING_ARGS,Kh=Fa.ERR_STREAM_DESTROYED;function Na(t){if(t)throw t}function Jh(t){return t.setHeader&&typeof t.abort=="function"}function Zh(t,e,r,n){n=Yh(n);var i=!1;t.on("close",function(){i=!0}),Gn===void 0&&(Gn=Jt()),Gn(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,Jh(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new Kh("pipe"))}}}function Da(t){t()}function Qh(t,e){return t.pipe(e)}function Xh(t){return!t.length||typeof t[t.length-1]!="function"?Na:t.pop()}function ep(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Xh(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Gh("streams");var i,o=e.map(function(s,a){var l=a<e.length-1,c=a>0;return Zh(s,l,c,function(d){i||(i=d),d&&o.forEach(Da),!l&&(o.forEach(Da),n(i))})});return e.reduce(Qh)}Ba.exports=ep});var Ie=p((re,wt)=>{var _t=require("stream");process.env.READABLE_STREAM==="disable"&&_t?(wt.exports=_t.Readable,Object.assign(wt.exports,_t),wt.exports.Stream=_t):(re=wt.exports=An(),re.Stream=_t||re,re.Readable=re,re.Writable=ir(),re.Duplex=je(),re.Transform=Yn(),re.PassThrough=Ia(),re.finished=Jt(),re.pipeline=Wa())});var ti=p((fm,Ha)=>{var Xe=[],xt=[],Kn=function(){};function Zn(t){return~Xe.indexOf(t)?!1:(Xe.push(t),!0)}function Qn(t){Kn=t}function tp(t){for(var e=[],r=0;r<Xe.length;r++){if(Xe[r].async){e.push(Xe[r]);continue}if(Xe[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(s){return s(t)})).then(function(s){i(s.some(Boolean))})}):!1}function Xn(t){return~xt.indexOf(t)?!1:(xt.push(t),!0)}function Jn(){Kn.apply(Kn,arguments)}function Va(t){for(var e=0;e<xt.length;e++)t=xt[e].apply(xt[e],arguments);return t}function ei(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function rp(t){return t.enabled=!1,t.modify=Xn,t.set=Qn,t.use=Zn,ei(function(){return!1},t)}function np(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Jn.call(Jn,t,Va(r,t)),!0}return t.enabled=!0,t.modify=Xn,t.set=Qn,t.use=Zn,ei(e,t)}Ha.exports=function(e){return e.introduce=ei,e.enabled=tp,e.process=Va,e.modify=Xn,e.write=Jn,e.nope=rp,e.yep=np,e.set=Qn,e.use=Zn,e}});var Ua=p((dm,za)=>{var ip=ti(),op=ip(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)});za.exports=op});var Qa=p((hm,Za)=>{"use strict";var ce={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ga=Object.create(null);for(let t in ce)Object.hasOwn(ce,t)&&(Ga[ce[t]]=t);var V={to:{},get:{}};V.get=function(t){let e=t.slice(0,3).toLowerCase(),r,n;switch(e){case"hsl":{r=V.get.hsl(t),n="hsl";break}case"hwb":{r=V.get.hwb(t),n="hwb";break}default:{r=V.get.rgb(t),n="rgb";break}}return r?{model:n,value:r}:null};V.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*)?\)$/,o=/^(\w+)$/,s=[0,0,0,1],a,l,c;if(a=t.match(r)){for(c=a[2],a=a[1],l=0;l<3;l++){let d=l*2;s[l]=Number.parseInt(a.slice(d,d+2),16)}c&&(s[3]=Number.parseInt(c,16)/255)}else if(a=t.match(e)){for(a=a[1],c=a[3],l=0;l<3;l++)s[l]=Number.parseInt(a[l]+a[l],16);c&&(s[3]=Number.parseInt(c+c,16)/255)}else if(a=t.match(n)){for(l=0;l<3;l++)s[l]=Number.parseInt(a[l+1],10);a[4]&&(s[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(i)){for(l=0;l<3;l++)s[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(s[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(o))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(ce,a[1])?(s=ce[a[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Se(s[l],0,255);return s[3]=Se(s[3],0,1),s};V.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,o=Se(Number.parseFloat(r[2]),0,100),s=Se(Number.parseFloat(r[3]),0,100),a=Se(Number.isNaN(n)?1:n,0,1);return[i,o,s,a]}return null};V.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,o=Se(Number.parseFloat(r[2]),0,100),s=Se(Number.parseFloat(r[3]),0,100),a=Se(Number.isNaN(n)?1:n,0,1);return[i,o,s,a]}return null};V.to.hex=function(...t){return"#"+Mr(t[0])+Mr(t[1])+Mr(t[2])+(t[3]<1?Mr(Math.round(t[3]*255)):"")};V.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]+")"};V.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]+")"};V.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]+")"};V.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};V.to.keyword=function(...t){return Ga[t.slice(0,3)]};function Se(t,e,r){return Math.min(Math.max(e,t),r)}function Mr(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var Ka={};for(let t of Object.keys(ce))Ka[ce[t]]=t;var v={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"]}},ye=(6/29)**3;function et(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function tt(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(v)){if(!("channels"in v[t]))throw new Error("missing channels property: "+t);if(!("labels"in v[t]))throw new Error("missing channel labels property: "+t);if(v[t].labels.length!==v[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=v[t];delete v[t].channels,delete v[t].labels,Object.defineProperty(v[t],"channels",{value:e}),Object.defineProperty(v[t],"labels",{value:r})}v.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=o-i,a,l;switch(o){case i:{a=0;break}case e:{a=(r-n)/s;break}case r:{a=2+(n-e)/s;break}case n:{a=4+(e-r)/s;break}}a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+o)/2;return o===i?l=0:c<=.5?l=s/(o+i):l=s/(2-o-i),[a,l*100,c*100]};v.rgb.hsv=function(t){let e,r,n,i,o,s=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(s,a,l),d=c-Math.min(s,a,l),f=function(h){return(c-h)/6/d+1/2};if(d===0)i=0,o=0;else{switch(o=d/c,e=f(s),r=f(a),n=f(l),c){case s:{i=n-r;break}case a:{i=1/3+e-n;break}case l:{i=2/3+r-e;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,o*100,c*100]};v.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=v.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,o*100,n*100]};v.rgb.oklab=function(t){let e=tt(t[0]/255),r=tt(t[1]/255),n=tt(t[2]/255),i=Math.cbrt(.4122214708*e+.5363325363*r+.0514459929*n),o=Math.cbrt(.2119034982*e+.6806995451*r+.1073969566*n),s=Math.cbrt(.0883024619*e+.2817188376*r+.6299787005*n),a=.2104542553*i+.793617785*o-.0040720468*s,l=1.9779984951*i-2.428592205*o+.4505937099*s,c=.0259040371*i+.7827717662*o-.808675766*s;return[a*100,l*100,c*100]};v.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),o=(1-e-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function sp(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}v.rgb.keyword=function(t){let e=Ka[t];if(e)return e;let r=Number.POSITIVE_INFINITY,n;for(let i of Object.keys(ce)){let o=ce[i],s=sp(t,o);s<r&&(r=s,n=i)}return n};v.keyword.rgb=function(t){return ce[t]};v.rgb.xyz=function(t){let e=tt(t[0]/255),r=tt(t[1]/255),n=tt(t[2]/255),i=e*.4124564+r*.3575761+n*.1804375,o=e*.2126729+r*.7151522+n*.072175,s=e*.0193339+r*.119192+n*.9503041;return[i*100,o*100,s*100]};v.rgb.lab=function(t){let e=v.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>ye?r**(1/3):7.787*r+16/116,n=n>ye?n**(1/3):7.787*n+16/116,i=i>ye?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};v.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,o;if(r===0)return o=n*255,[o,o,o];let s=n<.5?n*(1+r):n+r-n*r,a=2*n-s,l=[0,0,0];for(let c=0;c<3;c++)i=e+1/3*-(c-1),i<0&&i++,i>1&&i--,6*i<1?o=a+(s-a)*6*i:2*i<1?o=s:3*i<2?o=a+(s-a)*(2/3-i)*6:o=a,l[c]=o*255;return l};v.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[e,a*100,s*100]};v.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),l=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}};v.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};v.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*e),a=1-n;o=6*e-s,(s&1)!==0&&(o=1-o);let l=r+o*(a-r),c,d,f;switch(s){default:case 6:case 0:{c=a,d=l,f=r;break}case 1:{c=l,d=a,f=r;break}case 2:{c=r,d=a,f=l;break}case 3:{c=r,d=l,f=a;break}case 4:{c=l,d=r,f=a;break}case 5:{c=a,d=r,f=l;break}}return[c*255,d*255,f*255]};v.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,o=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};v.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,o,s;return i=e*3.2404542+r*-1.5371385+n*-.4985314,o=e*-.969266+r*1.8760108+n*.041556,s=e*.0556434+r*-.2040259+n*1.0572252,i=et(i),o=et(o),s=et(s),[i*255,o*255,s*255]};v.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>ye?e**(1/3):7.787*e+16/116,r=r>ye?r**(1/3):7.787*r+16/116,n=n>ye?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(e-r),s=200*(r-n);return[i,o,s]};v.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),o=Math.cbrt(.0329845436*e+.9293118715*r+.0361456387*n),s=Math.cbrt(.0482003018*e+.2643662691*r+.633851707*n),a=.2104542553*i+.793617785*o-.0040720468*s,l=1.9779984951*i-2.428592205*o+.4505937099*s,c=.0259040371*i+.7827717662*o-.808675766*s;return[a*100,l*100,c*100]};v.oklab.oklch=function(t){return v.lab.lch(t)};v.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,o=(1.000000008*e-.105561342*r-.063854175*n)**3,s=(1.000000055*e-.089484182*r-1.291485538*n)**3,a=1.227013851*i-.55779998*o+.281256149*s,l=-.040580178*i+1.11225687*o-.071676679*s,c=-.076381285*i-.421481978*o+1.58616322*s;return[a*100,l*100,c*100]};v.oklab.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=(e+.3963377774*r+.2158037573*n)**3,o=(e-.1055613458*r-.0638541728*n)**3,s=(e-.0894841775*r-1.291485548*n)**3,a=et(4.0767416621*i-3.3077115913*o+.2309699292*s),l=et(-1.2684380046*i+2.6097574011*o-.3413193965*s),c=et(-.0041960863*i-.7034186147*o+1.707614701*s);return[a*255,l*255,c*255]};v.oklch.oklab=function(t){return v.lch.lab(t)};v.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,o,s;o=(e+16)/116,i=r/500+o,s=o-n/200;let a=o**3,l=i**3,c=s**3;return o=a>ye?a:(o-16/116)/7.787,i=l>ye?l:(i-16/116)/7.787,s=c>ye?c:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};v.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 s=Math.sqrt(r*r+n*n);return[e,s,i]};v.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[e,o,s]};v.rgb.ansi16=function(t,e=null){let[r,n,i]=t,o=e===null?v.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};v.hsv.ansi16=function(t){return v.rgb.ansi16(v.hsv.rgb(t),t[2])};v.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)};v.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,o=(e>>2&1)*r*255;return[n,i,o]};v.ansi256.rgb=function(t){if(t=t[0],t>=232){let o=(t-232)*10+8;return[o,o,o]}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]};v.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};v.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,o=n>>8&255,s=n&255;return[i,o,s]};v.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),o=Math.min(Math.min(e,r),n),s=i-o,a,l=s<1?o/(1-s):0;return s<=0?a=0:i===e?a=(r-n)/s%6:i===r?a=2+(n-e)/s:a=4+(e-r)/s,a/=6,a%=1,[a*360,s*100,l*100]};v.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]};v.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]};v.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],o=e%1*6,s=o%1,a=1-s,l=0;switch(Math.floor(o)){case 0:{i[0]=1,i[1]=s,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]=s;break}case 3:{i[0]=0,i[1]=a,i[2]=1;break}case 4:{i[0]=s,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};v.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]};v.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]};v.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]};v.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],i*100,o*100]};v.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};v.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};v.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};v.gray.hsl=function(t){return[0,0,t[0]]};v.gray.hsv=v.gray.hsl;v.gray.hwb=function(t){return[0,100,t[0]]};v.gray.cmyk=function(t){return[0,0,0,t[0]]};v.gray.lab=function(t){return[t[0],0,0]};v.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};v.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function ap(){let t={},e=Object.keys(v);for(let{length:r}=e,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function lp(t){let e=ap(),r=[t];for(e[t].distance=0;r.length>0;){let n=r.pop(),i=Object.keys(v[n]);for(let{length:o}=i,s=0;s<o;s++){let a=i[s],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function up(t,e){return function(r){return e(t(r))}}function cp(t,e){let r=[e[t].parent,t],n=v[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=up(v[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}function fp(t){let e=lp(t),r={},n=Object.keys(e);for(let{length:i}=n,o=0;o<i;o++){let s=n[o];e[s].parent!==null&&(r[s]=cp(s,e))}return r}var H={},dp=Object.keys(v);function hp(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 pp(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:o}=i,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}for(let t of dp){H[t]={},Object.defineProperty(H[t],"channels",{value:v[t].channels}),Object.defineProperty(H[t],"labels",{value:v[t].labels});let e=fp(t),r=Object.keys(e);for(let n of r){let i=e[n];H[t][n]=pp(i),H[t][n].raw=hp(i)}}var Ja=["keyword","gray","hex"],ri={};for(let t of Object.keys(H))ri[[...H[t].labels].sort().join("")]=t;var ni={};function W(t,e){if(!(this instanceof W))return new W(t,e);if(e&&e in Ja&&(e=null),e&&!(e in H))throw new Error("Unknown model: "+e);let r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof W)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let i=V.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=H[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(t.length>0){this.model=e||"rgb",n=H[this.model].channels;let i=Array.prototype.slice.call(t,0,n);this.color=ii(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 o=i.sort().join("");if(!(o in ri))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=ri[o];let{labels:s}=H[this.model],a=[];for(r=0;r<s.length;r++)a.push(t[s[r]]);this.color=ii(a)}if(ni[this.model])for(n=H[this.model].channels,r=0;r<n;r++){let i=ni[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)}W.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in V.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);let r=e.valpha===1?e.color:[...e.color,this.valpha];return V.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 V.to.rgb.percent(...r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let t={},{channels:e}=H[this.model],{labels:r}=H[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new W([...this.color.map(mp(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new W([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:D("rgb",0,B(255)),green:D("rgb",1,B(255)),blue:D("rgb",2,B(255)),hue:D(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:D("hsl",1,B(100)),lightness:D("hsl",2,B(100)),saturationv:D("hsv",1,B(100)),value:D("hsv",2,B(100)),chroma:D("hcg",1,B(100)),gray:D("hcg",2,B(100)),white:D("hwb",1,B(100)),wblack:D("hwb",2,B(100)),cyan:D("cmyk",0,B(100)),magenta:D("cmyk",1,B(100)),yellow:D("cmyk",2,B(100)),black:D("cmyk",3,B(100)),x:D("xyz",0,B(95.047)),y:D("xyz",1,B(100)),z:D("xyz",2,B(108.833)),l:D("lab",0,B(100)),a:D("lab",1),b:D("lab",2),keyword(t){return t!==void 0?new W(t):H[this.model].keyword(this.color)},hex(t){return t!==void 0?new W(t):V.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new W(t);let e=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),V.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 W.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,o=2*i-1,s=r.alpha()-n.alpha(),a=((o*s===-1?o:(o+s)/(1+o*s))+1)/2,l=1-a;return W.rgb(a*r.red()+l*n.red(),a*r.green()+l*n.green(),a*r.blue()+l*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(let t of Object.keys(H)){if(Ja.includes(t))continue;let{channels:e}=H[t];W.prototype[t]=function(...r){return this.model===t?new W(this):r.length>0?new W(r,t):new W([...yp(H[this.model][t].raw(this.color)),this.valpha],t)},W[t]=function(...r){let n=r[0];return typeof n=="number"&&(n=ii(r,e)),new W(n,t)}}function gp(t,e){return Number(t.toFixed(e))}function mp(t){return function(e){return gp(e,t)}}function D(t,e,r){t=Array.isArray(t)?t:[t];for(let n of t)(ni[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 yp(t){return Array.isArray(t)?t:[t]}function ii(t,e){for(let r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}function bp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vp=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},Ya=bp(vp);function _p(t,e){let r=t.split(e||":"),n=Ya(r[0]);if(!r.length)return n;for(let i=0,o=r.length-1;i<o;i++)n=W(n).mix(W(Ya(r[i+1]))).saturate(1).hex();return n}Za.exports=_p});var el=p((pm,Xa)=>{"use strict";function oe(t,e){if(e)return new oe(t).style(e);if(!(this instanceof oe))return new oe(t);this.text=t}oe.prototype.prefix="\x1B[";oe.prototype.suffix="m";oe.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)]};oe.prototype.rgb=function(e,r,n){var i=e/255*5,o=r/255*5,s=n/255*5;return this.ansi(i,o,s)};oe.prototype.ansi=function(e,r,n){var i=Math.round(e),o=Math.round(r),s=Math.round(n);return 16+i*36+o*6+s};oe.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};oe.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Xa.exports=oe});var rl=p((gm,tl)=>{var wp=Qa(),xp=el();tl.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?xp(n+":",wp(n)):n+":";return e[0]=i+" "+e[0],e}});var il=p((mm,nl)=>{"use strict";nl.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 sl=p((ym,ol)=>{var $p=il();ol.exports=function(e){return function(n){try{return $p(n,e())}catch{}return!1}}});var ll=p((bm,al)=>{var Ep=sl();al.exports=Ep(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var cl=p((vm,ul)=>{ul.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var dl=p((_m,fl)=>{var Sp=ti(),Mp=require("tty").isatty(1),Rr=Sp(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:Mp,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Rr.modify(rl());Rr.use(ll());Rr.set(cl());fl.exports=Rr});var $t=p((wm,oi)=>{process.env.NODE_ENV==="production"?oi.exports=Ua():oi.exports=dl()});var pl=p((xm,hl)=>{"use strict";var si=require("fs"),{StringDecoder:Rp}=require("string_decoder"),{Stream:Tp}=Ie();function Op(){}hl.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new Rp("utf8"),i=new Tp,o="",s=0,a=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},si.open(t.file,"a+","0644",(l,c)=>{if(l){e?e(l):i.emit("error",l),i.destroy();return}(function d(){if(i.destroyed){si.close(c,Op);return}return si.read(c,r,0,r.length,s,(f,h)=>{if(f){e?e(f):i.emit("error",f),i.destroy();return}if(!h)return o&&((t.start==null||a>t.start)&&(e?e(null,o):i.emit("line",o)),a++,o=""),setTimeout(d,1e3);let g=n.write(r.slice(0,h));e||i.emit("data",g),g=(o+g).split(/\n+/);let u=g.length-1,y=0;for(;y<u;y++)(t.start==null||a>t.start)&&(e?e(null,g[y]):i.emit("line",g[y])),a++;return o=g[u],s+=h,d()})})()}),e?i.destroy:i}});var bl=p((Em,yl)=>{"use strict";var Q=require("fs"),z=require("path"),gl=Ca(),qp=require("zlib"),{MESSAGE:kp}=F(),{Stream:Cp,PassThrough:ml}=Ie(),Ap=Je(),se=$t()("winston:file"),Lp=require("os"),jp=pl();yl.exports=class extends Ap{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(o=>{if(e[o])throw new Error(`Cannot set ${o} and ${n} together`)})}if(this._stream=new ml,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?z.basename(e.filename):"winston.log",this.dirname=e.dirname||z.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=z.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:Lp.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[kp]}${this.eol}`,i=Buffer.byteLength(n);function o(){if(this._size+=i,this._pendingSize-=i,se("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 s=this._stream.write(n,o.bind(this));return s?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),se("written",s,this._drain),this.finishIfEnding(),s}query(e,r){typeof e=="function"&&(r=e,e={}),e=f(e);let n=z.join(this.dirname,this.filename),i="",o=[],s=0,a=Q.createReadStream(n,{encoding:"utf8"});a.on("error",h=>{if(a.readable&&a.destroy(),!!r)return h.code!=="ENOENT"?r(h):r(null,o)}),a.on("data",h=>{h=(i+h).split(/\n+/);let g=h.length-1,u=0;for(;u<g;u++)(!e.start||s>=e.start)&&l(h[u]),s++;i=h[g]}),a.on("close",()=>{i&&l(i,!0),e.order==="desc"&&(o=o.reverse()),r&&r(null,o)});function l(h,g){try{let u=JSON.parse(h);d(u)&&c(u)}catch(u){g||a.emit("error",u)}}function c(h){if(e.rows&&o.length>=e.rows&&e.order!=="desc"){a.readable&&a.destroy();return}e.fields&&(h=e.fields.reduce((g,u)=>(g[u]=h[u],g),{})),e.order==="desc"&&o.length>=e.rows&&o.shift(),o.push(h)}function d(h){if(!h||typeof h!="object")return;let g=new Date(h.timestamp);if(!(e.from&&g<e.from||e.until&&g>e.until||e.level&&e.level!==h.level))return!0}function f(h){return h=h||{},h.rows=h.rows||h.limit||10,h.start=h.start||0,h.until=h.until||new Date,typeof h.until!="object"&&(h.until=new Date(h.until)),h.from=h.from||h.until-1440*60*1e3,typeof h.from!="object"&&(h.from=new Date(h.from)),h.order=h.order||"desc",h}}stream(e={}){let r=z.join(this.dirname,this.filename),n=new Cp,i={file:r,start:e.start};return n.destroy=jp(i,(o,s)=>{if(o)return n.emit("error",o);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}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);se("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=z.join(this.dirname,r);Q.stat(n,(i,o)=>{if(i&&i.code==="ENOENT")return se("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return se(`err ${i.code} ${n}`),e(i);if(!o||this._needsNewFile(o.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,o.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=z.join(this.dirname,this.filename);se("create stream start",r,this.options);let n=Q.createWriteStream(r,this.options).on("error",i=>se(i)).on("close",()=>se("close",n.path,n.bytesWritten)).on("open",()=>{se("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new ml,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return se("create stream ok",r),n}_incFile(e){se("_incFile",this.filename);let r=z.extname(this._basename),n=z.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(o){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(z.join(this.dirname,`${n}${s}${r}`),z.join(this.dirname,`${n}${s}${r}.gz`),o)}.bind(this)),i.push(function(o){this.tailable?this._checkMaxFilesTailable(r,n,o):(this._created+=1,this._checkMaxFilesIncrementing(r,n,o))}.bind(this)),gl(i,e)}_getFile(){let e=z.extname(this._basename),r=z.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,o=i!==0?i:"",s=this.zippedArchive?".gz":"",a=`${r}${o}${e}${s}`,l=z.join(this.dirname,a);Q.unlink(l,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let o=this.zippedArchive?".gz":"";for(let s=this.maxFiles-1;s>1;s--)i.push(function(a,l){let c=`${r}${a-1}${e}${o}`,d=z.join(this.dirname,c);Q.exists(d,f=>{if(!f)return l(null);c=`${r}${a}${e}${o}`,Q.rename(d,z.join(this.dirname,c),l)})}.bind(this,s));gl(i,()=>{Q.rename(z.join(this.dirname,`${r}${e}${o}`),z.join(this.dirname,`${r}1${e}${o}`),n)})}_compressFile(e,r,n){Q.access(e,Q.F_OK,i=>{if(i)return n();var o=qp.createGzip(),s=Q.createReadStream(e),a=Q.createWriteStream(r);a.on("finish",()=>{Q.unlink(e,n)}),s.pipe(o).pipe(a)})}_createLogDirIfNotExist(e){Q.existsSync(e)||Q.mkdirSync(e,{recursive:!0})}}});var _l=p((Mm,vl)=>{"use strict";var Pp=require("http"),Ip=require("https"),{Stream:Np}=Ie(),Dp=Je(),{configure:Fp}=at();vl.exports=class extends Dp{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,(o,s,a)=>{if(s&&s.statusCode!==200&&(o=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),o)return r(o);if(typeof a=="string")try{a=JSON.parse(a)}catch(l){return r(l)}r(null,a)})}stream(e={}){let r=new Np;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 o="",s=this._request(e,i,n);return r.destroy=()=>s.destroy(),s.on("data",a=>{a=(o+a).split(/\n+/);let l=a.length-1,c=0;for(;c<l;c++)try{r.emit("log",JSON.parse(a[c]))}catch(d){r.emit("error",d)}o=a[l]}),s.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 o=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){o.batchTimeoutID=-1,o._doBatchRequest(o.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 o=Object.assign({},this.headers);n&&n.bearer&&(o.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?Ip:Pp).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:o,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",r),s.on("response",l=>l.on("end",()=>r(null,l)).resume());let a=Fp({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var ai=p((Rm,wl)=>{"use strict";var fe=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";fe.writable=t=>fe(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";fe.readable=t=>fe(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";fe.duplex=t=>fe.writable(t)&&fe.readable(t);fe.transform=t=>fe.duplex(t)&&typeof t._transform=="function";wl.exports=fe});var $l=p((Om,xl)=>{"use strict";var Bp=ai(),{MESSAGE:Wp}=F(),Vp=require("os"),Hp=Je();xl.exports=class extends Hp{constructor(e={}){if(super(e),!e.stream||!Bp(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:Vp.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[Wp]}${this.eol}`),r&&r()}}});var El=p(Et=>{"use strict";Object.defineProperty(Et,"Console",{configurable:!0,enumerable:!0,get(){return Js()}});Object.defineProperty(Et,"File",{configurable:!0,enumerable:!0,get(){return bl()}});Object.defineProperty(Et,"Http",{configurable:!0,enumerable:!0,get(){return _l()}});Object.defineProperty(Et,"Stream",{configurable:!0,enumerable:!0,get(){return $l()}})});var Or=p(St=>{"use strict";var Tr=un(),{configs:li}=F();St.cli=Tr.levels(li.cli);St.npm=Tr.levels(li.npm);St.syslog=Tr.levels(li.syslog);St.addColors=Tr.levels});var Ml=p((qr,Sl)=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});var zp=lr(),Up=Ne(zp),Yp=br(),Gp=Ne(Yp),Kp=Un(),Jp=Ne(Kp),Zp=Vn(),Qp=Ne(Zp),Xp=Hn(),e0=Ne(Xp),t0=Pe(),r0=Ne(t0),n0=Qe(),i0=Ne(n0);function Ne(t){return t&&t.__esModule?t:{default:t}}function o0(t,e,r){r=(0,Qp.default)(r);var n=0,i=0,{length:o}=t,s=!1;o===0&&r(null);function a(l,c){l===!1&&(s=!0),s!==!0&&(l?r(l):(++i===o||c===Gp.default)&&r(null))}for(;n<o;n++)e(t[n],n,(0,e0.default)(a))}function s0(t,e,r){return(0,Jp.default)(t,1/0,e,r)}function a0(t,e,r){var n=(0,Up.default)(t)?o0:s0;return n(t,(0,r0.default)(e),r)}qr.default=(0,i0.default)(a0,3);Sl.exports=qr.default});var Tl=p((kr,Rl)=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.default=l0;function l0(t){return(e,r,n)=>t(e,n)}Rl.exports=kr.default});var Lr=p((Ar,Ol)=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var u0=Ml(),c0=Cr(u0),f0=Tl(),d0=Cr(f0),h0=Pe(),p0=Cr(h0),g0=Qe(),m0=Cr(g0);function Cr(t){return t&&t.__esModule?t:{default:t}}function y0(t,e,r){return(0,c0.default)(t,(0,d0.default)((0,p0.default)(e)),r)}Ar.default=(0,m0.default)(y0,3);Ol.exports=Ar.default});var kl=p((Cm,ql)=>{"use strict";var b0=Object.prototype.toString;ql.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=b0.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var ui=p((Am,Cl)=>{"use strict";var v0=kl();Cl.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=v0(e),i}});var ci=p(Rt=>{Rt.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(o,s){return s},Error.captureStackTrace(r,t||Rt.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Rt.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
27
+ `).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var o=null,s=null,a=null,l=null,c=null,d=i[5]==="native";if(i[1]){a=i[1];var f=a.lastIndexOf(".");if(a[f-1]=="."&&f--,f>0){o=a.substr(0,f),s=a.substr(f+1);var h=o.indexOf(".Module");h>0&&(a=a.substr(h+1),o=o.substr(0,h))}l=null}s&&(l=o,c=s),s==="<anonymous>"&&(c=null,a=null);var g={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:a,typeName:l,methodName:c,columnNumber:parseInt(i[4],10)||null,native:d};return e._createParsedCallSite(g)}}).filter(function(n){return!!n})};function Mt(t){for(var e in t)this[e]=t[e]}var _0=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],w0=["topLevel","eval","native","constructor"];_0.forEach(function(t){Mt.prototype[t]=null,Mt.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});w0.forEach(function(t){Mt.prototype[t]=!1,Mt.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Rt._createParsedCallSite=function(t){return new Mt(t)}});var Ll=p((Pm,Al)=>{"use strict";var{Writable:x0}=Ie();Al.exports=class extends x0{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 di=p((Nm,Il)=>{"use strict";var jl=require("os"),$0=Lr(),fi=$t()("winston:exception"),E0=ui(),Pl=ci(),S0=Ll();Il.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
28
+ `),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:jl.loadavg(),uptime:jl.uptime()}}getTrace(e){return(e?Pl.parse(e):Pl.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 S0(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,o;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function s(){fi("doExit",i),fi("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);$0(n,(a,l)=>{let c=E0(l),d=a.transport||a;function f(h){return()=>{fi(h),c()}}d._ending=!0,d.once("finish",f("finished")),d.once("error",f("error"))},()=>i&&s()),this.logger.log(r),i&&(o=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var Dl=p((Fm,Nl)=>{"use strict";var{Writable:M0}=Ie();Nl.exports=class extends M0{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 pi=p((Wm,Wl)=>{"use strict";var Fl=require("os"),R0=Lr(),hi=$t()("winston:rejection"),T0=ui(),Bl=ci(),O0=Dl();Wl.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
29
+ `),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Fl.loadavg(),uptime:Fl.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 O0(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,o;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function s(){hi("doExit",i),hi("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);R0(n,(a,l)=>{let c=T0(l),d=a.transport||a;function f(h){return()=>{hi(h),c()}}d._ending=!0,d.once("finish",f("finished")),d.once("error",f("error"))},()=>i&&s()),this.logger.log(r),i&&(o=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var Hl=p((Vm,Vl)=>{"use strict";var gi=class{constructor(e){let r=jr();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)}};Vl.exports=gi});var jr=p((Hm,Gl)=>{"use strict";var{Stream:q0,Transform:k0}=Ie(),zl=Lr(),{LEVEL:de,SPLAT:Ul}=F(),Yl=ai(),C0=di(),A0=pi(),L0=Fn(),j0=Hl(),{warn:P0}=cn(),I0=Or(),N0=/%[scdjifoO%]/g,Pr=class extends k0{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let r=this;return Object.create(r,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),r.write(i)}}})}configure({silent:e,format:r,defaultMeta:n,levels:i,level:o="info",exitOnError:s=!0,transports:a,colors:l,emitErrs:c,formatters:d,padLevels:f,rewriters:h,stripColors:g,exceptionHandlers:u,rejectionHandlers:y}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||nn()(),this.defaultMeta=n||null,this.levels=i||this.levels||I0.npm.levels,this.level=o,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new C0(this),this.rejections=new A0(this),this.profilers={},this.exitOnError=s,a&&(a=Array.isArray(a)?a:[a],a.forEach(b=>this.add(b))),l||c||d||f||h||g)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
30
+ `));u&&this.exceptions.handle(u),y&&this.rejections.handle(y)}getHighestLogLevel(){let e=Tt(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((r,n)=>{let i=Tt(this.levels,n.level);return i!==null&&i>r?i:r},e)}isLevelEnabled(e){let r=Tt(this.levels,e);if(r===null)return!1;let n=Tt(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(o=>{let s=Tt(this.levels,o.level);return s===null&&(s=n),s>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[de]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[de]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[de]: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(N0))){let s=Object.assign({},this.defaultMeta,i,{[de]:e,[Ul]:n,level:e,message:r});return i.message&&(s.message=`${s.message} ${i.message}`),i.stack&&(s.stack=i.stack),i.cause&&(s.cause=i.cause),this.write(s),this}return this.write(Object.assign({},this.defaultMeta,{[de]:e,[Ul]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[de]||(e[de]=e.level),!this.levels[e[de]]&&this.levels[e[de]]!==0&&console.error("[winston] Unknown logger level: %s",e[de]),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();zl(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!Yl(e)||e.log.length>2?new L0({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(!Yl(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 o(a,l){e.query&&typeof a.formatQuery=="function"&&(e.query=a.formatQuery(i)),a.query(e,(c,d)=>{if(c)return l(c);typeof a.formatResults=="function"&&(d=a.formatResults(d,e.format)),l(null,d)})}function s(a,l){o(a,(c,d)=>{l&&(d=c||d,d&&(n[a.name]=d),l()),l=null})}zl(this.transports.filter(a=>!!a.query),s,()=>r(null,n))}stream(e={}){let r=new q0,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 o=i.stream(e);o&&(n.push(o),o.on("log",s=>{s.transport=s.transport||[],s.transport.push(i.name),r.emit("log",s)}),o.on("error",s=>{s.transport=s.transport||[],s.transport.push(i.name),r.emit("error",s)}))}),r}startTimer(){return new j0(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 o=typeof r[r.length-1]=="object"?r.pop():{};return o.level=o.level||"info",o.durationMs=n-i,o.message=o.message||e,this.write(o)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
31
+ `))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Tt(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Pr.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});Gl.exports=Pr});var mi=p((zm,Kl)=>{"use strict";var{LEVEL:D0}=F(),F0=Or(),B0=jr(),W0=$t()("winston:create-logger");function V0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Kl.exports=function(t={}){t.levels=t.levels||F0.npm.levels;class e extends B0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(W0('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 o=this||r;if(i.length===1){let[s]=i,a=s&&s.message&&s||{message:s};return a.level=a[D0]=n,o._addDefaultMeta(a),o.write(a),this||r}return i.length===0?(o.log(n,""),o):o.log(n,...i)},e.prototype[V0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var Zl=p((Ym,Jl)=>{"use strict";var H0=mi();Jl.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=H0(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 Xl=p(A=>{"use strict";var Ql=un(),{warn:Ot}=cn();A.version=Go().version;A.transports=El();A.config=Or();A.addColors=Ql.levels;A.format=Ql.format;A.createLogger=mi();A.Logger=jr();A.ExceptionHandler=di();A.RejectionHandler=pi();A.Container=Zl();A.Transport=Je();A.loggers=new A.Container;var he=A.createLogger();Object.keys(A.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>A[t]=(...e)=>he[t](...e));Object.defineProperty(A,"level",{get(){return he.level},set(t){he.level=t}});Object.defineProperty(A,"exceptions",{get(){return he.exceptions}});Object.defineProperty(A,"rejections",{get(){return he.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(A,t,{get(){return he[t]},set(e){he[t]=e}})});Object.defineProperty(A,"default",{get(){return{exceptionHandlers:he.exceptionHandlers,rejectionHandlers:he.rejectionHandlers,transports:he.transports}}});Ot.deprecated(A,"setLevels");Ot.forFunctions(A,"useFormat",["cli"]);Ot.forProperties(A,"useFormat",["padLevels","stripColors"]);Ot.forFunctions(A,"deprecated",["addRewriter","addFilter","clone","extend"]);Ot.forProperties(A,"deprecated",["emitErrs","levelLength"])});var K0={};gu(K0,{default:()=>G0});module.exports=yu(K0);var bu=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-gray-overlay-50",next:["$color.stroke.neutral-subtle"]},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.divider-1",next:["$color.stroke.neutral-subtle"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral-muted"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],vu=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.neutral-subtle"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],_u=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:["$color.palette.static-black"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-700"]},{previous:"$static.color.static-white-alpha-50",next:["$color.palette.static-white-alpha-50"]},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-300"]}],$i=[...bu,...vu,..._u];var Ei=[{previous:"$semantic.typography.h1",next:[],description:"Deprecated"},{previous:"$semantic.typography.h2",next:[],description:"Deprecated"},{previous:"$semantic.typography.h3",next:[],description:"Deprecated"},{previous:"$semantic.typography.h4",next:["t10Bold","screenTitle"],description:"\uC904\uAC04\uACA9 -0.1px"},{previous:"$semantic.typography.title1Bold",next:["t9Bold"],description:"\uC904\uAC04\uACA9 -0.4px"},{previous:"$semantic.typography.title1Regular",next:[],description:"Deprecated"},{previous:"$semantic.typography.title2Bold",next:["t7Bold"]},{previous:"$semantic.typography.title2Regular",next:["t7Regular"]},{previous:"$semantic.typography.title3Bold",next:["t6Bold"],description:"\uC904\uAC04\uACA9 -0.3px"},{previous:"$semantic.typography.title3Regular",next:["t6Regular"]},{previous:"$semantic.typography.subtitle1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.subtitle1Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.subtitle2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.subtitle2Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.bodyL1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 -2px"},{previous:"$semantic.typography.bodyL1Regular",next:["articleBody"]},{previous:"$semantic.typography.bodyL2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 -2px"},{previous:"$semantic.typography.bodyL2Regular",next:[],alternative:["t4Regular"],description:"Deprecated"},{previous:"$semantic.typography.bodyM1Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.bodyM1Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.bodyM2Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.bodyM2Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.caption1Bold",next:["t3Bold"],description:"\uC904\uAC04\uACA9 -1.5px"},{previous:"$semantic.typography.caption1Regular",next:[],alternative:["t3Regular"],description:"Deprecated"},{previous:"$semantic.typography.caption2Bold",next:["t2Bold"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.caption2Regular",next:["t2Regular"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label1Bold",next:["t6Bold"],description:"\uC904\uAC04\uACA9 -0.3px"},{previous:"$semantic.typography.label1Regular",next:["t6Regular"]},{previous:"$semantic.typography.label2Bold",next:["t5Bold"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.label2Regular",next:["t5Regular"],description:"\uC904\uAC04\uACA9 +0.4px"},{previous:"$semantic.typography.label3Bold",next:["t4Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label3Regular",next:["t4Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label4Bold",next:["t2Bold"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label4Regular",next:["t2Regular"],description:"\uC904\uAC04\uACA9 -0.2px"},{previous:"$semantic.typography.label5Bold",next:["t1Bold"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label5Regular",next:["t1Regular"],description:"\uC904\uAC04\uACA9 +0.1px"},{previous:"$semantic.typography.label6Bold",next:[],alternative:["t1Bold"],description:"Deprecated"},{previous:"$semantic.typography.label6Regular",next:[],alternative:["t1Regular"],description:"Deprecated"}];var it={text:["color","textColor","textDecorationColor","textEmphasisColor","caretColor","webkitTextFillColor","webkitTextStrokeColor","currentColor","cue","cueAfter","cueBefore","cursor","markColor","spellingErrorColor","grammarErrorColor","textFillColor","textStrokeColor","footnoteColor","rubyColor","markerForeground","scrollbarThumbColor","caretColor","selectionColor","marks"],background:["background","backgroundColor","backgroundImage","backgroundBlendMode","webkitBackgroundClip","webkitBackgroundOrigin","webkitBackgroundSize","gradient","gradientImage","pageBackgroundColor","breakColor","columnRuleColor","canvasBackground","layerBackground","counterFillColor","markerBackground","scrollbarColor","scrollbarButtonColor","scrollbarTrackColor","scrollbarTrackPieceColor","highlightBackground","screenBackgroundColor","printBackgroundColor"],border:["borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","borderInlineColor","borderInlineEndColor","borderInlineStartColor","border","borderTop","borderRight","borderBottom","borderLeft","borderBlock","borderBlockEnd","borderBlockStart","borderInline","borderInlineEnd","borderInlineStart","columnRuleColor","gridColumnRule","gridRowRule","outlineButton","outlineFieldset","outlineMenu","outlineWindow","rubyOverhang","scrollbarArrowColor","scrollbarBaseColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarBorderColor","windowFrame"],outline:["outlineColor","outline","outlineFocus","outlineOffset","focusOutlineColor","focusRingColor"],shadow:["boxShadow","textShadow","dropShadow","webkitBoxShadow","mozBoxShadow","shadowColor","textShadowColor"],svg:["fill","fillColor","stroke","floodColor","lightingColor","stopColor","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","marker","markerEnd","markerMid","markerStart","paintOrder","shapeRendering","strokeColor","strokeDashcolor","strokeLinecap","strokeLinejoin","strokeOpacity","vectorEffect"],misc:["accentColor","scrollbarColor","columnRuleColor","textDecoration","maskColor","maskBorderColor","outlineOffset","filter","backdropFilter","appearance","containerType","colorScheme","contentVisibility","counterIncrement","counterReset","counterSet","forcedColorAdjust","imageRendering","isolation","mixBlendMode","objectFit","opacity","perspective","perspectiveOrigin","printColorAdjust","quotes","resize","tabSize","unicodeBidi","willChange","writingMode","zoom","colorGamut","colorScheme","invertedColors","prefersColorScheme"]},wu=[...it.background,...it.svg.filter(t=>t!=="fill"&&t!=="fillColor"),"backgroundColor","backgroundImage"],xu=[...it.text,"color","fill","fillColor"],$u=[...it.border,...it.outline,"stroke","borderColor","outlineColor"];function Eu(t){return!t||t==="fill"||t==="fillColor"?!1:t==="backgroundColor"||t==="background"||t==="backgroundImage"?!0:wu.includes(t)}function Su(t){return t?xu.includes(t):!1}function Mu(t){return t?$u.includes(t):!1}function Si(t){return t?Mu(t)?"stroke":Su(t)?"fg":Eu(t)?"bg":"palette":"palette"}var U=mu(Xl());function eu(t){let e=U.format.printf(({message:a,timestamp:l,metadata:c})=>{let{previousToken:d,nextToken:f,line:h}=c,g=h?`(line ${h})`:"";return`${l} ${a}: ${d} \u2192 ${f} ${g}`}),r=U.format.printf(({level:a,message:l,timestamp:c,failureReason:d,metadata:f})=>{let{previousToken:h,description:g}=f,u=g||d||"";return`${c} [${a.toUpperCase()}]: ${l}
32
+ \u21B3 reason: ${h} ${u}`}),n=U.format.printf(({level:a,message:l,timestamp:c})=>`${c} [${a.toUpperCase()}]: ${l}`),i=(0,U.format)(a=>{let l=a.metadata;return(l==null?void 0:l.status)==="success"?a:!1}),o=(0,U.format)(a=>{let l=a.metadata;return(l==null?void 0:l.status)==="failure"||(l==null?void 0:l.status)==="warning"?a:!1}),s=(0,U.createLogger)({level:"debug",transports:[new U.transports.File({filename:`.report/${t}-success.log`,format:U.format.combine(i(),U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),e)}),new U.transports.File({filename:`.report/${t}-issues.log`,format:U.format.combine(o(),U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),r)}),new U.transports.File({filename:`.report/${t}-debug.log`,level:"debug",format:U.format.combine(U.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),n)})]});return{logger:s,logTransformResult(a,l){let{status:c,failureReason:d,needsVerification:f,description:h,previousToken:g,nextToken:u}=l,y=c==="success"?"info":c==="warning"?"warn":"error",b=l.line?`(line: ${l.line})`:"";s.log({level:y,message:`${a} ${b}`,...d&&{failureReason:d},...h&&{description:h},metadata:l}),f&&c==="success"&&s.log({level:"warn",message:`${a} ${b}`,metadata:{previousToken:g,nextToken:u,status:"warning",description:h||"\uC0AC\uC6A9 \uD655\uC778 \uD544\uC694\uD55C \uD1A0\uD070\uC785\uB2C8\uB2E4",needsVerification:!0,line:l.line}})},startFile(a){s.debug(`Starting transformation of ${a}`)},finishFile(a){s.debug(`Finished transformation of ${a}`)}}}function pe(t){let e=[],r=t.node;for(;r.type==="MemberExpression";)r.property.type==="Identifier"&&e.unshift(r.property.name),r=r.object;return r.type==="Identifier"&&e.unshift(r.name),e.join(".")}function Ir(t,e){let r=e.split("."),n=t.identifier(r[0]);for(let i=1;i<r.length;i++)n=t.memberExpression(n,t.identifier(r[i]));return n}function ru(t,e,r,n,i,o){if(!n&&!i)return;let s=e.find(t.ImportDeclaration,{source:{value:"@seed-design/design-token"}});if(s.length===0)return;let a=e.get().node.comments||[];r||o?(s.forEach(f=>{var y,b;let h=f.node.comments||[],g=(y=f.node.specifiers)==null?void 0:y.filter(w=>w.type==="ImportSpecifier"&&w.imported.name==="vars"),u=((b=f.node.specifiers)==null?void 0:b.filter(w=>!(w.type==="ImportSpecifier"&&w.imported.name==="vars")))||[];f.node.specifiers=[...u,...g!=null&&g.length?[t.importSpecifier(t.identifier("vars"),t.identifier("legacyVars"))]:[]],f.node.comments=h}),n&&z0(t,e),i&&tu(t,e)):!(n&&!i)&&i?s.forEach(f=>{var u;let h=f.node.comments||[];f.node.source.value="@seed-design/css/vars/component/typography";let g=(u=f.node.specifiers)==null?void 0:u.filter(y=>y.type==="ImportSpecifier"&&y.imported.name==="vars");g!=null&&g.length&&g.forEach(y=>{y.type==="ImportSpecifier"&&(y.local=t.identifier("typoVars"))}),f.node.comments=h}):(s.forEach(f=>{let h=f.node.comments||[];f.node.source.value="@seed-design/css/vars",f.node.comments=h}),i&&tu(t,e)),a.length>0&&(e.get().node.comments=a)}function z0(t,e){if(e.find(t.ImportDeclaration,{source:{value:"@seed-design/css/vars"}}).length===0){let n=t.importDeclaration([t.importSpecifier(t.identifier("vars"),t.identifier("vars"))],t.literal("@seed-design/css/vars")),i=e.find(t.ImportDeclaration).at(0);i.size()>0?i.insertAfter(n):e.get().node.program.body.unshift(n)}}function tu(t,e){if(e.find(t.ImportDeclaration,{source:{value:"@seed-design/css/vars/component/typography"}}).length===0){let n=t.importDeclaration([t.importSpecifier(t.identifier("vars"),t.identifier("typoVars"))],t.literal("@seed-design/css/vars/component/typography")),i=e.find(t.ImportDeclaration,{source:{value:"@seed-design/css/vars"}});if(i.size()>0)i.at(0).insertAfter(n);else{let o=e.find(t.ImportDeclaration).at(0);o.size()>0?o.insertAfter(n):e.get().node.program.body.unshift(n)}}}function nu(t){return t.replace(/^vars\./,"").replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`).replace(/(\d+)/g,"-$1")}function iu(t){return`vars.${t.replace(/-(\d+)/g,"$1").replace(/-([a-z])/g,(r,n)=>n.toUpperCase())}`}function ou(t){if(!t)throw new Error("Token name cannot be null or empty");return/^t\d/.test(t)?`typoVars.textStyle${t.charAt(0).toUpperCase()}${t.slice(1)}.enabled.root`:/[A-Z]/.test(t)?`typoVars.textStyle${t.charAt(0).toUpperCase()+t.slice(1)}.enabled.root`:`typoVars.textStyle${t.charAt(0).toUpperCase()+t.slice(1)}.enabled.root`}var U0=(t,e)=>{let r=eu("replace-seed-design-token-vars"),n=e.jscodeshift,i=n(t.source);r.startFile(t.path);let o=new Set,s=!1,a=!1,l=new Set;if(i.find(n.MemberExpression).filter(d=>pe(d).startsWith("vars.")).forEach(d=>{let f=pe(d),h=f.startsWith("vars.$scale.color.")||f.startsWith("vars.$semantic.color.")||f.startsWith("vars.$static.color."),g=f.startsWith("vars.$semantic.typography.");if(f.startsWith("vars.")&&!h&&!g){let u=f.split(".");u.length>=2&&l.add(u[1])}}),i.find(n.MemberExpression).filter(d=>pe(d).startsWith("vars.$semantic.typography.")).forEach(d=>{var y,b;let f=pe(d),h=f.replace(/^vars\./,""),g=Ei.find(w=>w.previous===h),u=(y=d.node.loc)==null?void 0:y.start.line;if(g){let w=null,S=!1;if(g.next.length===1||g.next.length>1?w=g.next[0]:g.next.length===0&&"alternative"in g&&Array.isArray(g.alternative)&&((b=g.alternative)==null?void 0:b.length)>0&&(w=g.alternative[0],S=!0),w){let _=ou(w),E=Ir(n,_);d.replace(E),a=!0,S?r.logTransformResult(t.path,{previousToken:f,nextToken:_,line:u,status:"warning",failureReason:"Using alternative mapping since next mapping is empty"}):r.logTransformResult(t.path,{previousToken:f,nextToken:_,line:u,status:"success"});return}}r.logTransformResult(t.path,{previousToken:f,nextToken:null,line:u,status:"failure",failureReason:g?"No mapping or alternative available":"No mapping found for typography token"}),o.add(f)}),i.find(n.MemberExpression).filter(d=>{let f=pe(d);return f.startsWith("vars.$scale.color.")||f.startsWith("vars.$semantic.color.")||f.startsWith("vars.$static.color.")}).forEach(d=>{var S,_,E;let f=pe(d),h=Y0(d),g=Si(h);["color","fill","fillColor","textColor","textDecorationColor","textEmphasisColor","webkitTextFillColor","caretColor","markColor","currentColor","spellingErrorColor","grammarErrorColor","selectionColor","stroke"].includes(h||"")&&g!=="fg"&&(r.logTransformResult(t.path,{previousToken:f,nextToken:null,line:(S=d.node.loc)==null?void 0:S.start.line,status:"warning",failureReason:`Adjusting token type from ${g} to fg for property: ${h}`}),g="fg");let y=nu(f),b=$i.find(M=>M.previous===y),w=(_=d.node.loc)==null?void 0:_.start.line;if(b){let M=null,L=!1;if(b.next.length===1)M=b.next[0];else if(b.next.length>1){let R=b.next.filter(O=>!!(g==="stroke"&&O.includes("$color.stroke")||g==="fg"&&O.includes("$color.fg")||g==="bg"&&O.includes("$color.bg")));if(R.length>0)M=R[0];else if(g==="stroke"){let O=b.next.filter(I=>I.includes("$color.fg"));O.length>0&&(M=O[0])}if(!M){let O=b.next.filter(I=>I.includes("$color.palette"));O.length>0?M=O[0]:M=b.next[0]}}if(!M&&"alternative"in b&&Array.isArray(b.alternative)&&((E=b.alternative)==null?void 0:E.length)>0){L=!0;let R=b.alternative.filter(O=>!!(g==="stroke"&&O.includes("$color.stroke")||g==="fg"&&O.includes("$color.fg")||g==="bg"&&O.includes("$color.bg")));if(R.length>0)M=R[0];else if(g==="stroke"){let O=b.alternative.filter(I=>I.includes("$color.fg"));O.length>0&&(M=O[0])}if(!M){let O=b.alternative.filter(I=>I.includes("$color.palette"));O.length>0?M=O[0]:b.alternative.length>0&&(M=b.alternative[0])}}if(!M){r.logTransformResult(t.path,{previousToken:f,nextToken:null,line:w,status:"failure",failureReason:"No suitable mapping available for this context"}),o.add(f);return}let k=iu(M),P=Ir(n,k);d.replace(P),s=!0,L?r.logTransformResult(t.path,{previousToken:f,nextToken:k,line:w,status:"warning",failureReason:`Using alternative mapping: ${g} context (${h||"unknown"})`}):r.logTransformResult(t.path,{previousToken:f,nextToken:k,line:w,status:"success"})}else r.logTransformResult(t.path,{previousToken:f,nextToken:null,line:w,status:"failure",failureReason:"No mapping found for color token"}),o.add(f)}),ru(n,i,o.size>0,s,a,l.size>0),o.size>0&&i.find(n.MemberExpression).filter(d=>{let f=pe(d);return o.has(f)}).forEach(d=>{var u;let f=pe(d),h=f.replace(/^vars\./,"legacyVars."),g=Ir(n,h);d.replace(g),r.logTransformResult(t.path,{previousToken:f,nextToken:h,line:(u=d.node.loc)==null?void 0:u.start.line,status:"warning",failureReason:"Token mapped to legacyVars (unsupported in V3)"})}),i.find(n.Identifier,{name:"legacyVars"}).length===1){let d=i.get().node.comments||[],f=i.find(n.ImportDeclaration,{source:{value:"@seed-design/design-token"}}),h=[];if(f.forEach(g=>{g.node.comments&&g.node.comments.length>0&&(h=[...h,...g.node.comments])}),f.remove(),h.length>0){let g=i.find(n.ImportDeclaration).at(0);g.size()>0?g.get().node.comments=[...g.get().node.comments||[],...h]:i.get().node.comments=[...d,...h]}}return r.finishFile(t.path),i.toSource({})};function Y0(t){var n;let e,r=t;for(let i=0;i<5&&r.parent;i++){if(r=r.parent,r.node.type==="JSXAttribute"){e=r.node.name.name;break}if(r.node.type==="Property"){let o=r.node;if(o.key.type==="Identifier"){e=o.key.name;break}if(o.key.type==="Literal"&&typeof o.key.value=="string"){e=o.key.value;break}if(o.key.type==="StringLiteral"&&typeof o.key.value=="string"){e=o.key.value;break}if("name"in o.key&&typeof o.key.name=="string"){e=o.key.name;break}if("value"in o.key&&typeof o.key.value=="string"){e=o.key.value;break}}if(r.node.type==="AssignmentExpression"){if(r.node.left.type==="MemberExpression"&&r.node.left.property.type==="Identifier"){e=r.node.left.property.name;break}if(r.node.left.type==="MemberExpression"&&"name"in r.node.left.property&&typeof r.node.left.property.name=="string"){e=r.node.left.property.name;break}}if(r.node.type==="VariableDeclarator"&&r.node.id.type==="Identifier"){let o=r.node.id.name.toLowerCase();if(o.includes("fill")||o==="color"){e="color";break}}if(r.node.type==="ObjectExpression"){let o=r.node.properties;for(let s of o)if(s.type==="Property"&&s.key.type==="Identifier"&&(s.key.name==="color"||s.key.name==="textColor"||s.key.name==="fill")){e="color";break}if(e)break}}if(!e&&((n=t.parent)==null?void 0:n.node.type)==="ExpressionStatement"&&(e="color"),!e){let i=pe(t);i.includes("color")||i.includes("Color")?e="color":i.includes("background")||i.includes("Background")?e="backgroundColor":(i.includes("border")||i.includes("Border"))&&(e="borderColor")}return e}var G0=U0;
33
33
  /*! Bundled license information:
34
34
 
35
35
  safe-buffer/index.js: