@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.
- package/bin/index.cjs +46 -46
- package/bin/transforms/replace-alpha-color/index.js +30 -30
- package/bin/transforms/replace-css-seed-design-color-variable/index.js +43 -42
- package/bin/transforms/replace-css-seed-design-typography-variable/index.js +41 -40
- package/bin/transforms/replace-custom-color-to-seed-design-vars-color/index.js +30 -30
- package/bin/transforms/replace-custom-imported-typography-variable/index.js +29 -29
- package/bin/transforms/replace-custom-seed-design-color/index.js +29 -29
- package/bin/transforms/replace-custom-seed-design-text-component/index.js +29 -29
- package/bin/transforms/replace-custom-seed-design-typography/index.js +26 -26
- package/bin/transforms/replace-custom-seed-design-vars/index.js +27 -27
- package/bin/transforms/replace-custom-text-component-color-prop/index.js +28 -28
- package/bin/transforms/replace-react-icon/index.js +29 -29
- package/bin/transforms/replace-seed-design-token-typography-classname/index.js +30 -30
- package/bin/transforms/replace-seed-design-token-vars/index.js +24 -24
- package/bin/transforms/replace-semantic-stroke-color/index.js +30 -30
- package/bin/transforms/replace-stitches-styled-color/index.js +30 -30
- package/bin/transforms/replace-stitches-styled-typography/index.js +30 -30
- package/bin/transforms/replace-stitches-theme-color/index.js +27 -27
- package/bin/transforms/replace-tailwind-color/index.js +26 -26
- package/bin/transforms/replace-tailwind-typography/index.js +30 -30
- package/package.json +10 -11
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
var
|
|
2
|
-
`):r+=n[1]}return r}
|
|
3
|
-
`+
|
|
1
|
+
var sd=Object.create;var Tr=Object.defineProperty;var od=Object.getOwnPropertyDescriptor;var ad=Object.getOwnPropertyNames;var ld=Object.getPrototypeOf,ud=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fd=(t,e)=>{for(var r in e)Tr(t,r,{get:e[r],enumerable:!0})},Mo=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ad(e))!ud.call(t,i)&&i!==r&&Tr(t,i,{get:()=>e[i],enumerable:!(n=od(e,i))||n.enumerable});return t};var Ro=(t,e,r)=>(r=t!=null?sd(ld(t)):{},Mo(e||!t||!t.__esModule?Tr(r,"default",{value:t,enumerable:!0}):r,t)),cd=t=>Mo(Tr({},"__esModule",{value:!0}),t);var si=p((Pv,ii)=>{var Pr=process||{},Co=Pr.argv||[],Nr=Pr.env||{},hd=!(Nr.NO_COLOR||Co.includes("--no-color"))&&(!!Nr.FORCE_COLOR||Co.includes("--color")||Pr.platform==="win32"||(Pr.stdout||{}).isTTY&&Nr.TERM!=="dumb"||!!Nr.CI),dd=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+pd(i,e,r,s)+e:t+i+e},pd=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},Ao=(t=hd)=>{let e=t?dd:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};ii.exports=Ao();ii.exports.createColors=Ao});var oi=p((Iv,qo)=>{"use strict";var Ir=/[\t\n\f\r "#'()/;[\\\]{}]/g,Dr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,gd=/.[\r\n"'(/\\]/,Lo=/[\da-f]/i;qo.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,s,o,a,l,u,f,d,c,g,h,y=n.length,b=0,_=[],E=[];function w(){return b}function M(P){throw e.error("Unclosed "+P,b)}function T(){return E.length===0&&b>=y}function N(P){if(E.length)return E.pop();if(b>=y)return;let R=P?P.ignoreUnclosed:!1;switch(s=n.charCodeAt(b),s){case 10:case 32:case 9:case 13:case 12:{l=b;do l+=1,s=n.charCodeAt(l);while(s===32||s===10||s===9||s===13||s===12);f=["space",n.slice(b,l)],b=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let z=String.fromCharCode(s);f=[z,z,b];break}case 40:{if(h=_.length?_.pop()[1]:"",g=n.charCodeAt(b+1),h==="url"&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){l=b;do{if(d=!1,l=n.indexOf(")",l+1),l===-1)if(i||R){l=b;break}else M("bracket");for(c=l;n.charCodeAt(c-1)===92;)c-=1,d=!d}while(d);f=["brackets",n.slice(b,l+1),b,l],b=l}else l=n.indexOf(")",b+1),o=n.slice(b,l+1),l===-1||gd.test(o)?f=["(","(",b]:(f=["brackets",o,b,l],b=l);break}case 39:case 34:{u=s===39?"'":'"',l=b;do{if(d=!1,l=n.indexOf(u,l+1),l===-1)if(i||R){l=b+1;break}else M("string");for(c=l;n.charCodeAt(c-1)===92;)c-=1,d=!d}while(d);f=["string",n.slice(b,l+1),b,l],b=l;break}case 64:{Ir.lastIndex=b+1,Ir.test(n),Ir.lastIndex===0?l=n.length-1:l=Ir.lastIndex-2,f=["at-word",n.slice(b,l+1),b,l],b=l;break}case 92:{for(l=b,a=!0;n.charCodeAt(l+1)===92;)l+=1,a=!a;if(s=n.charCodeAt(l+1),a&&s!==47&&s!==32&&s!==10&&s!==9&&s!==13&&s!==12&&(l+=1,Lo.test(n.charAt(l)))){for(;Lo.test(n.charAt(l+1));)l+=1;n.charCodeAt(l+1)===32&&(l+=1)}f=["word",n.slice(b,l+1),b,l],b=l;break}default:{s===47&&n.charCodeAt(b+1)===42?(l=n.indexOf("*/",b+2)+1,l===0&&(i||R?l=n.length:M("comment")),f=["comment",n.slice(b,l+1),b,l],b=l):(Dr.lastIndex=b+1,Dr.test(n),Dr.lastIndex===0?l=n.length-1:l=Dr.lastIndex-2,f=["word",n.slice(b,l+1),b,l],_.push(f),b=l);break}}return b++,f}function q(P){E.push(P)}return{back:q,endOfFile:T,nextToken:N,position:w}}});var ai=p((Dv,Po)=>{"use strict";var re=si(),md=oi(),To;function yd(t){To=t}var bd={";":re.yellow,":":re.yellow,"(":re.cyan,")":re.cyan,"[":re.yellow,"]":re.yellow,"{":re.yellow,"}":re.yellow,"at-word":re.cyan,brackets:re.cyan,call:re.cyan,class:re.yellow,comment:re.gray,hash:re.magenta,string:re.green};function vd([t,e],r){if(t==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!r.endOfFile()){let n=r.nextToken();if(r.back(n),n[0]==="brackets"||n[0]==="(")return"call"}return t}function No(t){let e=md(new To(t),{ignoreErrors:!0}),r="";for(;!e.endOfFile();){let n=e.nextToken(),i=bd[vd(n,e)];i?r+=n[1].split(/\r?\n/).map(s=>i(s)).join(`
|
|
2
|
+
`):r+=n[1]}return r}No.registerInput=yd;Po.exports=No});var jr=p((jv,jo)=>{"use strict";var Io=si(),Do=ai(),Dt=class t extends Error{constructor(e,r,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Io.isColorSupported);let n=f=>f,i=f=>f,s=f=>f;if(e){let{bold:f,gray:d,red:c}=Io.createColors(!0);i=g=>f(c(g)),n=g=>d(g),Do&&(s=g=>Do(g))}let o=r.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),u=String(l).length;return o.slice(a,l).map((f,d)=>{let c=a+1+d,g=" "+(" "+c).slice(-u)+" | ";if(c===this.line){if(f.length>160){let y=20,b=Math.max(0,this.column-y),_=Math.max(this.column+y,this.endColumn+y),E=f.slice(b,_),w=n(g.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return i(">")+n(g)+s(E)+`
|
|
3
|
+
`+w+i("^")}let h=n(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(g)+s(f)+`
|
|
4
4
|
`+h+i("^")}return" "+n(g)+s(f)}).join(`
|
|
5
5
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
6
6
|
|
|
7
7
|
`+e+`
|
|
8
|
-
`),this.name+": "+this.message+e}};
|
|
8
|
+
`),this.name+": "+this.message+e}};jo.exports=Dt;Dt.default=Dt});var li=p((kv,$o)=>{"use strict";var ko={after:`
|
|
9
9
|
`,beforeClose:`
|
|
10
10
|
`,beforeComment:`
|
|
11
11
|
`,beforeDecl:`
|
|
12
12
|
`,beforeOpen:" ",beforeRule:`
|
|
13
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
14
|
-
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)n+=o}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,r!==i||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),r&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],typeof i<"u"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return
|
|
13
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function wd(t){return t[0].toUpperCase()+t.slice(1)}var jt=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let s=(e.raws.between||"")+(r?";":"");this.builder(n+i+s,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
|
|
14
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)n+=o}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,r!==i||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),r&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],typeof i<"u"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return ko[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]<"u")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+wd(n);this[a]?i=this[a](o,e):o.walk(l=>{if(i=l.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=ko[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
|
|
15
15
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
|
|
16
16
|
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
|
|
17
17
|
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
18
18
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let s=n.raws.before.split(`
|
|
19
|
-
`);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}}
|
|
20
|
-
`?(r=1,n+=1):r+=1}return i}var
|
|
21
|
-
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:Re(r,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Re(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let o=r.slice(Re(r,this.source.start),Re(r,this.source.end)).indexOf(e.word);o!==-1&&(n=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Re(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Re(r,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(e,r){return new tp().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},i=r==null;r=r||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))n[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,r):l);else if(typeof a=="object"&&a.toJSON)n[o]=a.toJSON(null,r);else if(o==="source"){if(a==null)continue;let l=r.get(a.input);l==null&&(l=s,r.set(a.input,s),s++),n[o]={end:a.end,inputId:l,start:a.start}}else n[o]=a}return i&&(n.inputs=[...r.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=rp){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(r,i)}};Jo.exports=$t;$t.default=$t});var Ut=d((ww,Ko)=>{"use strict";var ip=Ft(),Bt=class extends ip{constructor(e){super(e),this.type="comment"}};Ko.exports=Bt;Bt.default=Bt});var Gt=d((_w,Qo)=>{"use strict";var sp=Ft(),zt=class extends sp{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Qo.exports=zt;zt.default=zt});var Pe=d((xw,oa)=>{"use strict";var Zo=Ut(),Xo=Gt(),op=Ft(),{isClean:ea,my:ta}=$r(),yi,ra,na,vi;function ia(t){return t.map(e=>(e.nodes&&(e.nodes=ia(e.nodes)),delete e.source,e))}function sa(t){if(t[ea]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)sa(e)}var ge=class t extends op{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):r==="every"||r==="some"?n=>e[r]((i,...s)=>n(i.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),i=n===0?"prepend":!1,s=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of s)this.proxyOf.nodes.splice(n,0,a);let o;for(let a in this.indexes)o=this.indexes[a],n<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=ia(ra(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Xo(e)]}else if(e.selector||e.selectors)e=[new vi(e)];else if(e.name)e=[new yi(e)];else if(e.text)e=[new Zo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[ta]||t.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[ea]&&sa(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(s){throw r.addToError(s)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}};ge.registerParse=t=>{ra=t};ge.registerRule=t=>{vi=t};ge.registerAtRule=t=>{yi=t};ge.registerRoot=t=>{na=t};oa.exports=ge;ge.default=ge;ge.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,yi.prototype):t.type==="rule"?Object.setPrototypeOf(t,vi.prototype):t.type==="decl"?Object.setPrototypeOf(t,Xo.prototype):t.type==="comment"?Object.setPrototypeOf(t,Zo.prototype):t.type==="root"&&Object.setPrototypeOf(t,na.prototype),t[ta]=!0,t.nodes&&t.nodes.forEach(e=>{ge.rebuild(e)})}});var Fr=d((Sw,la)=>{"use strict";var aa=Pe(),ft=class extends aa{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};la.exports=ft;ft.default=ft;aa.registerAtRule(ft)});var Br=d((Ew,ca)=>{"use strict";var ap=Pe(),ua,fa,We=class extends ap{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ua(new fa,this,e).stringify()}};We.registerLazyResult=t=>{ua=t};We.registerProcessor=t=>{fa=t};ca.exports=We;We.default=We});var da=d((Ow,ha)=>{var lp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",up=(t,e=21)=>(r=e)=>{let n="",i=r|0;for(;i--;)n+=t[Math.random()*t.length|0];return n},fp=(t=21)=>{let e="",r=t|0;for(;r--;)e+=lp[Math.random()*64|0];return e};ha.exports={nanoid:fp,customAlphabet:up}});var ga=d(bi=>{var pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");bi.encode=function(t){if(0<=t&&t<pa.length)return pa[t];throw new TypeError("Must be between 0 and 63: "+t)};bi.decode=function(t){var e=65,r=90,n=97,i=122,s=48,o=57,a=43,l=47,u=26,f=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+u:s<=t&&t<=o?t-s+f:t==a?62:t==l?63:-1}});var xi=d(_i=>{var ma=ga(),wi=5,ya=1<<wi,va=ya-1,ba=ya;function cp(t){return t<0?(-t<<1)+1:(t<<1)+0}function hp(t){var e=(t&1)===1,r=t>>1;return e?-r:r}_i.encode=function(e){var r="",n,i=cp(e);do n=i&va,i>>>=wi,i>0&&(n|=ba),r+=ma.encode(n);while(i>0);return r};_i.decode=function(e,r,n){var i=e.length,s=0,o=0,a,l;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=ma.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(l&ba),l&=va,s=s+(l<<o),o+=wi}while(a);n.value=hp(s),n.rest=r}});var ht=d(H=>{function dp(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}H.getArg=dp;var wa=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,pp=/^data:.+\,.+$/;function Wt(t){var e=t.match(wa);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}H.urlParse=Wt;function ct(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}H.urlGenerate=ct;var gp=32;function mp(t){var e=[];return function(r){for(var n=0;n<e.length;n++)if(e[n].input===r){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=t(r);return e.unshift({input:r,result:s}),e.length>gp&&e.pop(),s}}var Si=mp(function(e){var r=e,n=Wt(e);if(n){if(!n.path)return e;r=n.path}for(var i=H.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var l,u=0,a=s.length-1;a>=0;a--)l=s[a],l==="."?s.splice(a,1):l===".."?u++:u>0&&(l===""?(s.splice(a+1,u),u=0):(s.splice(a,2),u--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,ct(n)):r});H.normalize=Si;function _a(t,e){t===""&&(t="."),e===""&&(e=".");var r=Wt(e),n=Wt(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ct(r);if(r||e.match(pp))return e;if(n&&!n.host&&!n.path)return n.host=e,ct(n);var i=e.charAt(0)==="/"?e:Si(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,ct(n)):i}H.join=_a;H.isAbsolute=function(t){return t.charAt(0)==="/"||wa.test(t)};function yp(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}H.relative=yp;var xa=(function(){var t=Object.create(null);return!("__proto__"in t)})();function Sa(t){return t}function vp(t){return Ea(t)?"$"+t:t}H.toSetString=xa?Sa:vp;function bp(t){return Ea(t)?t.slice(1):t}H.fromSetString=xa?Sa:bp;function Ea(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function wp(t,e,r){var n=Ce(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Ce(t.name,e.name)}H.compareByOriginalPositions=wp;function _p(t,e,r){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Ce(t.name,e.name)}H.compareByOriginalPositionsNoSource=_p;function xp(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Ce(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ce(t.name,e.name)}H.compareByGeneratedPositionsDeflated=xp;function Sp(t,e,r){var n=t.generatedColumn-e.generatedColumn;return n!==0||r||(n=Ce(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ce(t.name,e.name)}H.compareByGeneratedPositionsDeflatedNoLine=Sp;function Ce(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function Ep(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Ce(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ce(t.name,e.name)}H.compareByGeneratedPositionsInflated=Ep;function Op(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}H.parseSourceMapInput=Op;function Mp(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=Wt(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=_a(ct(n),e)}return Si(e)}H.computeSourceURL=Mp});var Mi=d(Oa=>{var Ei=ht(),Oi=Object.prototype.hasOwnProperty,He=typeof Map<"u";function Ae(){this._array=[],this._set=He?new Map:Object.create(null)}Ae.fromArray=function(e,r){for(var n=new Ae,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n};Ae.prototype.size=function(){return He?this._set.size:Object.getOwnPropertyNames(this._set).length};Ae.prototype.add=function(e,r){var n=He?e:Ei.toSetString(e),i=He?this.has(e):Oi.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(He?this._set.set(e,s):this._set[n]=s)};Ae.prototype.has=function(e){if(He)return this._set.has(e);var r=Ei.toSetString(e);return Oi.call(this._set,r)};Ae.prototype.indexOf=function(e){if(He){var r=this._set.get(e);if(r>=0)return r}else{var n=Ei.toSetString(e);if(Oi.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};Ae.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Ae.prototype.toArray=function(){return this._array.slice()};Oa.ArraySet=Ae});var Ca=d(Ra=>{var Ma=ht();function Rp(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||Ma.compareByGeneratedPositionsInflated(t,e)<=0}function Ur(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ur.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};Ur.prototype.add=function(e){Rp(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Ur.prototype.toArray=function(){return this._sorted||(this._array.sort(Ma.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Ra.MappingList=Ur});var Ri=d(Aa=>{var Ht=xi(),U=ht(),zr=Mi().ArraySet,Cp=Ca().MappingList;function ce(t){t||(t={}),this._file=U.getArg(t,"file",null),this._sourceRoot=U.getArg(t,"sourceRoot",null),this._skipValidation=U.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=U.getArg(t,"ignoreInvalidMapping",!1),this._sources=new zr,this._names=new zr,this._mappings=new Cp,this._sourcesContents=null}ce.prototype._version=3;ce.fromSourceMap=function(e,r){var n=e.sourceRoot,i=new ce(Object.assign(r||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=U.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=U.relative(n,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};ce.prototype.addMapping=function(e){var r=U.getArg(e,"generated"),n=U.getArg(e,"original",null),i=U.getArg(e,"source",null),s=U.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(r,n,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s}))};ce.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=U.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[U.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[U.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};ce.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=U.relative(s,i));var o=new zr,a=new zr;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=U.join(n,l.source)),s!=null&&(l.source=U.relative(s,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var f=l.source;f!=null&&!o.has(f)&&o.add(f);var p=l.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=U.join(n,l)),s!=null&&(l=U.relative(s,l)),this.setSourceContent(l,u))},this)};ce.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};ce.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,s=0,o=0,a="",l,u,f,p,c=this._mappings.toArray(),g=0,h=c.length;g<h;g++){if(u=c[g],l="",u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=";",r++;else if(g>0){if(!U.compareByGeneratedPositionsInflated(u,c[g-1]))continue;l+=","}l+=Ht.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=Ht.encode(p-o),o=p,l+=Ht.encode(u.originalLine-1-i),i=u.originalLine-1,l+=Ht.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(f=this._names.indexOf(u.name),l+=Ht.encode(f-s),s=f)),a+=l}return a};ce.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=U.relative(r,n));var i=U.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};ce.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};ce.prototype.toString=function(){return JSON.stringify(this.toJSON())};Aa.SourceMapGenerator=ce});var qa=d(Ve=>{Ve.GREATEST_LOWER_BOUND=1;Ve.LEAST_UPPER_BOUND=2;function Ci(t,e,r,n,i,s){var o=Math.floor((e-t)/2)+t,a=i(r,n[o],!0);return a===0?o:a>0?e-o>1?Ci(o,e,r,n,i,s):s==Ve.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?Ci(t,o,r,n,i,s):s==Ve.LEAST_UPPER_BOUND?o:t<0?-1:t}Ve.search=function(e,r,n,i){if(r.length===0)return-1;var s=Ci(-1,r.length,e,r,n,i||Ve.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var Pa=d(Ta=>{function Ap(t){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,a){if(o<a){var l=r(o,a),u=o-1;e(i,l,a);for(var f=i[a],p=o;p<a;p++)s(i[p],f,!1)<=0&&(u+=1,e(i,u,p));e(i,u+1,p);var c=u+1;n(i,s,o,c-1),n(i,s,c+1,a)}}return n}function qp(t){let e=Ap.toString();return new Function(`return ${e}`)()(t)}var La=new WeakMap;Ta.quickSort=function(t,e,r=0){let n=La.get(e);n===void 0&&(n=qp(e),La.set(e,n)),n(t,e,r,t.length-1)}});var Da=d(Gr=>{var _=ht(),qi=qa(),dt=Mi().ArraySet,Lp=xi(),Vt=Pa().quickSort;function $(t,e){var r=t;return typeof t=="string"&&(r=_.parseSourceMapInput(t)),r.sections!=null?new me(r,e):new K(r,e)}$.fromSourceMap=function(t,e){return K.fromSourceMap(t,e)};$.prototype._version=3;$.prototype.__generatedMappings=null;Object.defineProperty($.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});$.prototype.__originalMappings=null;Object.defineProperty($.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});$.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};$.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};$.GENERATED_ORDER=1;$.ORIGINAL_ORDER=2;$.GREATEST_LOWER_BOUND=1;$.LEAST_UPPER_BOUND=2;$.prototype.eachMapping=function(e,r,n){var i=r||null,s=n||$.GENERATED_ORDER,o;switch(s){case $.GENERATED_ORDER:o=this._generatedMappings;break;case $.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(i),u=this._names,f=this._sources,p=this._sourceMapURL,c=0,g=o.length;c<g;c++){var h=o[c],y=h.source===null?null:f.at(h.source);y!==null&&(y=_.computeSourceURL(a,y,p)),l({source:y,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:u.at(h.name)})}};$.prototype.allGeneratedPositionsFor=function(e){var r=_.getArg(e,"line"),n={source:_.getArg(e,"source"),originalLine:r,originalColumn:_.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",_.compareByOriginalPositions,qi.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:_.getArg(o,"generatedLine",null),column:_.getArg(o,"generatedColumn",null),lastColumn:_.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==l;)i.push({line:_.getArg(o,"generatedLine",null),column:_.getArg(o,"generatedColumn",null),lastColumn:_.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};Gr.SourceMapConsumer=$;function K(t,e){var r=t;typeof t=="string"&&(r=_.parseSourceMapInput(t));var n=_.getArg(r,"version"),i=_.getArg(r,"sources"),s=_.getArg(r,"names",[]),o=_.getArg(r,"sourceRoot",null),a=_.getArg(r,"sourcesContent",null),l=_.getArg(r,"mappings"),u=_.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=_.normalize(o)),i=i.map(String).map(_.normalize).map(function(f){return o&&_.isAbsolute(o)&&_.isAbsolute(f)?_.relative(o,f):f}),this._names=dt.fromArray(s.map(String),!0),this._sources=dt.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return _.computeSourceURL(o,f,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=u}K.prototype=Object.create($.prototype);K.prototype.consumer=$;K.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=_.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};K.fromSourceMap=function(e,r){var n=Object.create(K.prototype),i=n._names=dt.fromArray(e._names.toArray(),!0),s=n._sources=dt.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(g){return _.computeSourceURL(n.sourceRoot,g,r)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],l=n.__originalMappings=[],u=0,f=o.length;u<f;u++){var p=o[u],c=new Ia;c.generatedLine=p.generatedLine,c.generatedColumn=p.generatedColumn,p.source&&(c.source=s.indexOf(p.source),c.originalLine=p.originalLine,c.originalColumn=p.originalColumn,p.name&&(c.name=i.indexOf(p.name)),l.push(c)),a.push(c)}return Vt(n.__originalMappings,_.compareByOriginalPositions),n};K.prototype._version=3;Object.defineProperty(K.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Ia(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Ai=_.compareByGeneratedPositionsDeflatedNoLine;function Na(t,e){let r=t.length,n=t.length-e;if(!(n<=1))if(n==2){let i=t[e],s=t[e+1];Ai(i,s)>0&&(t[e]=s,t[e+1]=i)}else if(n<20)for(let i=e;i<r;i++)for(let s=i;s>e;s--){let o=t[s-1],a=t[s];if(Ai(o,a)<=0)break;t[s-1]=a,t[s]=o}else Vt(t,Ai,e)}K.prototype._parseMappings=function(e,r){var n=1,i=0,s=0,o=0,a=0,l=0,u=e.length,f=0,p={},c={},g=[],h=[],y,v,w,E,b;let M=0;for(;f<u;)if(e.charAt(f)===";")n++,f++,i=0,Na(h,M),M=h.length;else if(e.charAt(f)===",")f++;else{for(y=new Ia,y.generatedLine=n,E=f;E<u&&!this._charIsMappingSeparator(e,E);E++);for(v=e.slice(f,E),w=[];f<E;)Lp.decode(e,f,c),b=c.value,f=c.rest,w.push(b);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");if(y.generatedColumn=i+w[0],i=y.generatedColumn,w.length>1&&(y.source=a+w[1],a+=w[1],y.originalLine=s+w[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=o+w[3],o=y.originalColumn,w.length>4&&(y.name=l+w[4],l+=w[4])),h.push(y),typeof y.originalLine=="number"){let P=y.source;for(;g.length<=P;)g.push(null);g[P]===null&&(g[P]=[]),g[P].push(y)}}Na(h,M),this.__generatedMappings=h;for(var T=0;T<g.length;T++)g[T]!=null&&Vt(g[T],_.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)};K.prototype._findMapping=function(e,r,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return qi.search(e,r,s,o)};K.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};K.prototype.originalPositionFor=function(e){var r={generatedLine:_.getArg(e,"line"),generatedColumn:_.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",_.compareByGeneratedPositionsDeflated,_.getArg(e,"bias",$.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=_.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=_.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=_.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:_.getArg(i,"originalLine",null),column:_.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};K.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};K.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=_.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=_.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};K.prototype.generatedPositionFor=function(e){var r=_.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:_.getArg(e,"line"),originalColumn:_.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",_.compareByOriginalPositions,_.getArg(e,"bias",$.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:_.getArg(s,"generatedLine",null),column:_.getArg(s,"generatedColumn",null),lastColumn:_.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Gr.BasicSourceMapConsumer=K;function me(t,e){var r=t;typeof t=="string"&&(r=_.parseSourceMapInput(t));var n=_.getArg(r,"version"),i=_.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new dt,this._names=new dt;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=_.getArg(o,"offset"),l=_.getArg(a,"line"),u=_.getArg(a,"column");if(l<s.line||l===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:l+1,generatedColumn:u+1},consumer:new $(_.getArg(o,"map"),e)}})}me.prototype=Object.create($.prototype);me.prototype.constructor=$;me.prototype._version=3;Object.defineProperty(me.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});me.prototype.originalPositionFor=function(e){var r={generatedLine:_.getArg(e,"line"),generatedColumn:_.getArg(e,"column")},n=qi.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};me.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};me.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};me.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(_.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};me.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],l=i.consumer._sources.at(a.source);l!==null&&(l=_.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var u=null;a.name&&(u=i.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var f={source:l,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}Vt(this.__generatedMappings,_.compareByGeneratedPositionsDeflated),Vt(this.__originalMappings,_.compareByOriginalPositions)};Gr.IndexedSourceMapConsumer=me});var ja=d(ka=>{var Tp=Ri().SourceMapGenerator,Wr=ht(),Pp=/(\r?\n)/,Np=10,pt="$$$isSourceNode$$$";function le(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[pt]=!0,n!=null&&this.add(n)}le.fromStringWithSourceMap=function(e,r,n){var i=new le,s=e.split(Pp),o=0,a=function(){var c=h(),g=h()||"";return c+g;function h(){return o<s.length?s[o++]:void 0}},l=1,u=0,f=null;return r.eachMapping(function(c){if(f!==null)if(l<c.generatedLine)p(f,a()),l++,u=0;else{var g=s[o]||"",h=g.substr(0,c.generatedColumn-u);s[o]=g.substr(c.generatedColumn-u),u=c.generatedColumn,p(f,h),f=c;return}for(;l<c.generatedLine;)i.add(a()),l++;if(u<c.generatedColumn){var g=s[o]||"";i.add(g.substr(0,c.generatedColumn)),s[o]=g.substr(c.generatedColumn),u=c.generatedColumn}f=c},this),o<s.length&&(f&&p(f,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(c){var g=r.sourceContentFor(c);g!=null&&(n!=null&&(c=Wr.join(n,c)),i.setSourceContent(c,g))}),i;function p(c,g){if(c===null||c.source===void 0)i.add(g);else{var h=n?Wr.join(n,c.source):c.source;i.add(new le(c.originalLine,c.originalColumn,h,g,c.name))}}};le.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[pt]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};le.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[pt]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};le.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[pt]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};le.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};le.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[pt]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};le.prototype.setSourceContent=function(e,r){this.sourceContents[Wr.toSetString(e)]=r};le.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][pt]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(Wr.fromSetString(i[r]),this.sourceContents[i[r]])};le.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};le.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new Tp(e),i=!1,s=null,o=null,a=null,l=null;return this.walk(function(u,f){r.code+=u,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||o!==f.line||a!==f.column||l!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,o=f.line,a=f.column,l=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,c=u.length;p<c;p++)u.charCodeAt(p)===Np?(r.line++,r.column=0,p+1===c?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(u,f){n.setSourceContent(u,f)}),{code:r.code,map:n}};ka.SourceNode=le});var Vr=d(Hr=>{Hr.SourceMapGenerator=Ri().SourceMapGenerator;Hr.SourceMapConsumer=Da().SourceMapConsumer;Hr.SourceNode=ja().SourceNode});var Ti=d((kw,Ba)=>{"use strict";var{existsSync:Ip,readFileSync:Dp}=require("fs"),{dirname:Li,join:kp}=require("path"),{SourceMapConsumer:$a,SourceMapGenerator:Fa}=Vr();function jp(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Yt=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Li(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new $a(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(i)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(r)||e.match(n);if(a)return jp(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=Li(e),Ip(e))return this.mapFile=e,Dp(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof $a)return Fa.fromSourceMap(r).toString();if(r instanceof Fa)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=kp(Li(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Ba.exports=Yt;Yt.default=Yt});var Jt=d((jw,Ha)=>{"use strict";var{nanoid:$p}=da(),{isAbsolute:Ii,resolve:Di}=require("path"),{SourceMapConsumer:Fp,SourceMapGenerator:Bp}=Vr(),{fileURLToPath:Ua,pathToFileURL:Yr}=require("url"),za=jr(),Up=Ti(),Pi=hi(),Ni=Symbol("lineToIndexCache"),zp=!!(Fp&&Bp),Ga=!!(Di&&Ii);function Wa(t){if(t[Ni])return t[Ni];let e=t.css.split(`
|
|
22
|
-
`),r=new Array(e.length),n=0;for(let i=0,s=e.length;i<s;i++)r[i]=n,n+=e[i].length+1;return t[
|
|
23
|
-
`," "];return
|
|
19
|
+
`);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};$o.exports=jt;jt.default=jt});var kt=p(($v,Fo)=>{"use strict";var _d=li();function ui(t,e){new _d(e).stringify(t)}Fo.exports=ui;ui.default=ui});var kr=p((Fv,fi)=>{"use strict";fi.exports.isClean=Symbol("isClean");fi.exports.my=Symbol("my")});var Bt=p((Bv,Bo)=>{"use strict";var xd=jr(),Sd=li(),Ed=kt(),{isClean:$t,my:Od}=kr();function ci(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],s=typeof i;n==="parent"&&s==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(o=>ci(o,r)):(s==="object"&&i!==null&&(i=ci(i)),r[n]=i)}return r}function Re(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,i=0;for(let s=0;s<t.length;s++){if(n===e.line&&r===e.column){i=s;break}t[s]===`
|
|
20
|
+
`?(r=1,n+=1):r+=1}return i}var Ft=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[$t]=!1,this[Od]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=ci(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:i}=this.rangeBy(r);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new xd(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[$t]=!0}markDirty(){if(this[$t]){this[$t]=!1;let e=this;for(;e=e.parent;)e[$t]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,s=n.slice(Re(n,this.source.start),Re(n,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,s=Re(i,this.source.start),o=s+e;for(let a=s;a<o;a++)i[a]===`
|
|
21
|
+
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:Re(r,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Re(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let o=r.slice(Re(r,this.source.start),Re(r,this.source.end)).indexOf(e.word);o!==-1&&(n=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Re(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Re(r,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(e,r){return new Sd().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},i=r==null;r=r||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))n[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,r):l);else if(typeof a=="object"&&a.toJSON)n[o]=a.toJSON(null,r);else if(o==="source"){if(a==null)continue;let l=r.get(a.input);l==null&&(l=s,r.set(a.input,s),s++),n[o]={end:a.end,inputId:l,start:a.start}}else n[o]=a}return i&&(n.inputs=[...r.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ed){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(r,i)}};Bo.exports=Ft;Ft.default=Ft});var zt=p((Uv,Uo)=>{"use strict";var Md=Bt(),Ut=class extends Md{constructor(e){super(e),this.type="comment"}};Uo.exports=Ut;Ut.default=Ut});var Wt=p((zv,zo)=>{"use strict";var Rd=Bt(),Gt=class extends Rd{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};zo.exports=Gt;Gt.default=Gt});var Pe=p((Gv,Zo)=>{"use strict";var Go=zt(),Wo=Wt(),Cd=Bt(),{isClean:Ho,my:Vo}=kr(),hi,Yo,Jo,di;function Ko(t){return t.map(e=>(e.nodes&&(e.nodes=Ko(e.nodes)),delete e.source,e))}function Qo(t){if(t[Ho]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Qo(e)}var pe=class t extends Cd{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):r==="every"||r==="some"?n=>e[r]((i,...s)=>n(i.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),i=n===0?"prepend":!1,s=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of s)this.proxyOf.nodes.splice(n,0,a);let o;for(let a in this.indexes)o=this.indexes[a],n<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=Ko(Yo(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Wo(e)]}else if(e.selector||e.selectors)e=[new di(e)];else if(e.name)e=[new hi(e)];else if(e.text)e=[new Go(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Vo]||t.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Ho]&&Qo(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(s){throw r.addToError(s)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}};pe.registerParse=t=>{Yo=t};pe.registerRule=t=>{di=t};pe.registerAtRule=t=>{hi=t};pe.registerRoot=t=>{Jo=t};Zo.exports=pe;pe.default=pe;pe.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,hi.prototype):t.type==="rule"?Object.setPrototypeOf(t,di.prototype):t.type==="decl"?Object.setPrototypeOf(t,Wo.prototype):t.type==="comment"?Object.setPrototypeOf(t,Go.prototype):t.type==="root"&&Object.setPrototypeOf(t,Jo.prototype),t[Vo]=!0,t.nodes&&t.nodes.forEach(e=>{pe.rebuild(e)})}});var $r=p((Wv,ea)=>{"use strict";var Xo=Pe(),ft=class extends Xo{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};ea.exports=ft;ft.default=ft;Xo.registerAtRule(ft)});var Fr=p((Hv,na)=>{"use strict";var Ad=Pe(),ta,ra,He=class extends Ad{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ta(new ra,this,e).stringify()}};He.registerLazyResult=t=>{ta=t};He.registerProcessor=t=>{ra=t};na.exports=He;He.default=He});var sa=p((Vv,ia)=>{var Ld="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qd=(t,e=21)=>(r=e)=>{let n="",i=r|0;for(;i--;)n+=t[Math.random()*t.length|0];return n},Td=(t=21)=>{let e="",r=t|0;for(;r--;)e+=Ld[Math.random()*64|0];return e};ia.exports={nanoid:Td,customAlphabet:qd}});var aa=p(pi=>{var oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");pi.encode=function(t){if(0<=t&&t<oa.length)return oa[t];throw new TypeError("Must be between 0 and 63: "+t)};pi.decode=function(t){var e=65,r=90,n=97,i=122,s=48,o=57,a=43,l=47,u=26,f=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+u:s<=t&&t<=o?t-s+f:t==a?62:t==l?63:-1}});var yi=p(mi=>{var la=aa(),gi=5,ua=1<<gi,fa=ua-1,ca=ua;function Nd(t){return t<0?(-t<<1)+1:(t<<1)+0}function Pd(t){var e=(t&1)===1,r=t>>1;return e?-r:r}mi.encode=function(e){var r="",n,i=Nd(e);do n=i&fa,i>>>=gi,i>0&&(n|=ca),r+=la.encode(n);while(i>0);return r};mi.decode=function(e,r,n){var i=e.length,s=0,o=0,a,l;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=la.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(l&ca),l&=fa,s=s+(l<<o),o+=gi}while(a);n.value=Pd(s),n.rest=r}});var ht=p(Y=>{function Id(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}Y.getArg=Id;var ha=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Dd=/^data:.+\,.+$/;function Ht(t){var e=t.match(ha);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}Y.urlParse=Ht;function ct(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}Y.urlGenerate=ct;var jd=32;function kd(t){var e=[];return function(r){for(var n=0;n<e.length;n++)if(e[n].input===r){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=t(r);return e.unshift({input:r,result:s}),e.length>jd&&e.pop(),s}}var bi=kd(function(e){var r=e,n=Ht(e);if(n){if(!n.path)return e;r=n.path}for(var i=Y.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var l,u=0,a=s.length-1;a>=0;a--)l=s[a],l==="."?s.splice(a,1):l===".."?u++:u>0&&(l===""?(s.splice(a+1,u),u=0):(s.splice(a,2),u--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,ct(n)):r});Y.normalize=bi;function da(t,e){t===""&&(t="."),e===""&&(e=".");var r=Ht(e),n=Ht(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ct(r);if(r||e.match(Dd))return e;if(n&&!n.host&&!n.path)return n.host=e,ct(n);var i=e.charAt(0)==="/"?e:bi(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,ct(n)):i}Y.join=da;Y.isAbsolute=function(t){return t.charAt(0)==="/"||ha.test(t)};function $d(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}Y.relative=$d;var pa=(function(){var t=Object.create(null);return!("__proto__"in t)})();function ga(t){return t}function Fd(t){return ma(t)?"$"+t:t}Y.toSetString=pa?ga:Fd;function Bd(t){return ma(t)?t.slice(1):t}Y.fromSetString=pa?ga:Bd;function ma(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function Ud(t,e,r){var n=Ce(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Ce(t.name,e.name)}Y.compareByOriginalPositions=Ud;function zd(t,e,r){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Ce(t.name,e.name)}Y.compareByOriginalPositionsNoSource=zd;function Gd(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Ce(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ce(t.name,e.name)}Y.compareByGeneratedPositionsDeflated=Gd;function Wd(t,e,r){var n=t.generatedColumn-e.generatedColumn;return n!==0||r||(n=Ce(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ce(t.name,e.name)}Y.compareByGeneratedPositionsDeflatedNoLine=Wd;function Ce(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function Hd(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Ce(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ce(t.name,e.name)}Y.compareByGeneratedPositionsInflated=Hd;function Vd(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}Y.parseSourceMapInput=Vd;function Yd(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=Ht(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=da(ct(n),e)}return bi(e)}Y.computeSourceURL=Yd});var _i=p(ya=>{var vi=ht(),wi=Object.prototype.hasOwnProperty,Ve=typeof Map<"u";function Ae(){this._array=[],this._set=Ve?new Map:Object.create(null)}Ae.fromArray=function(e,r){for(var n=new Ae,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n};Ae.prototype.size=function(){return Ve?this._set.size:Object.getOwnPropertyNames(this._set).length};Ae.prototype.add=function(e,r){var n=Ve?e:vi.toSetString(e),i=Ve?this.has(e):wi.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(Ve?this._set.set(e,s):this._set[n]=s)};Ae.prototype.has=function(e){if(Ve)return this._set.has(e);var r=vi.toSetString(e);return wi.call(this._set,r)};Ae.prototype.indexOf=function(e){if(Ve){var r=this._set.get(e);if(r>=0)return r}else{var n=vi.toSetString(e);if(wi.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};Ae.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Ae.prototype.toArray=function(){return this._array.slice()};ya.ArraySet=Ae});var wa=p(va=>{var ba=ht();function Jd(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||ba.compareByGeneratedPositionsInflated(t,e)<=0}function Br(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Br.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};Br.prototype.add=function(e){Jd(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Br.prototype.toArray=function(){return this._sorted||(this._array.sort(ba.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};va.MappingList=Br});var xi=p(_a=>{var Vt=yi(),U=ht(),Ur=_i().ArraySet,Kd=wa().MappingList;function fe(t){t||(t={}),this._file=U.getArg(t,"file",null),this._sourceRoot=U.getArg(t,"sourceRoot",null),this._skipValidation=U.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=U.getArg(t,"ignoreInvalidMapping",!1),this._sources=new Ur,this._names=new Ur,this._mappings=new Kd,this._sourcesContents=null}fe.prototype._version=3;fe.fromSourceMap=function(e,r){var n=e.sourceRoot,i=new fe(Object.assign(r||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=U.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=U.relative(n,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};fe.prototype.addMapping=function(e){var r=U.getArg(e,"generated"),n=U.getArg(e,"original",null),i=U.getArg(e,"source",null),s=U.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(r,n,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s}))};fe.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=U.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[U.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[U.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};fe.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=U.relative(s,i));var o=new Ur,a=new Ur;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=U.join(n,l.source)),s!=null&&(l.source=U.relative(s,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var f=l.source;f!=null&&!o.has(f)&&o.add(f);var d=l.name;d!=null&&!a.has(d)&&a.add(d)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=U.join(n,l)),s!=null&&(l=U.relative(s,l)),this.setSourceContent(l,u))},this)};fe.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};fe.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,s=0,o=0,a="",l,u,f,d,c=this._mappings.toArray(),g=0,h=c.length;g<h;g++){if(u=c[g],l="",u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=";",r++;else if(g>0){if(!U.compareByGeneratedPositionsInflated(u,c[g-1]))continue;l+=","}l+=Vt.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(d=this._sources.indexOf(u.source),l+=Vt.encode(d-o),o=d,l+=Vt.encode(u.originalLine-1-i),i=u.originalLine-1,l+=Vt.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(f=this._names.indexOf(u.name),l+=Vt.encode(f-s),s=f)),a+=l}return a};fe.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=U.relative(r,n));var i=U.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};fe.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};fe.prototype.toString=function(){return JSON.stringify(this.toJSON())};_a.SourceMapGenerator=fe});var xa=p(Ye=>{Ye.GREATEST_LOWER_BOUND=1;Ye.LEAST_UPPER_BOUND=2;function Si(t,e,r,n,i,s){var o=Math.floor((e-t)/2)+t,a=i(r,n[o],!0);return a===0?o:a>0?e-o>1?Si(o,e,r,n,i,s):s==Ye.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?Si(t,o,r,n,i,s):s==Ye.LEAST_UPPER_BOUND?o:t<0?-1:t}Ye.search=function(e,r,n,i){if(r.length===0)return-1;var s=Si(-1,r.length,e,r,n,i||Ye.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var Oa=p(Ea=>{function Qd(t){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,a){if(o<a){var l=r(o,a),u=o-1;e(i,l,a);for(var f=i[a],d=o;d<a;d++)s(i[d],f,!1)<=0&&(u+=1,e(i,u,d));e(i,u+1,d);var c=u+1;n(i,s,o,c-1),n(i,s,c+1,a)}}return n}function Zd(t){let e=Qd.toString();return new Function(`return ${e}`)()(t)}var Sa=new WeakMap;Ea.quickSort=function(t,e,r=0){let n=Sa.get(e);n===void 0&&(n=Zd(e),Sa.set(e,n)),n(t,e,r,t.length-1)}});var Ca=p(zr=>{var x=ht(),Oi=xa(),dt=_i().ArraySet,Xd=yi(),Yt=Oa().quickSort;function $(t,e){var r=t;return typeof t=="string"&&(r=x.parseSourceMapInput(t)),r.sections!=null?new ge(r,e):new X(r,e)}$.fromSourceMap=function(t,e){return X.fromSourceMap(t,e)};$.prototype._version=3;$.prototype.__generatedMappings=null;Object.defineProperty($.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});$.prototype.__originalMappings=null;Object.defineProperty($.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});$.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};$.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};$.GENERATED_ORDER=1;$.ORIGINAL_ORDER=2;$.GREATEST_LOWER_BOUND=1;$.LEAST_UPPER_BOUND=2;$.prototype.eachMapping=function(e,r,n){var i=r||null,s=n||$.GENERATED_ORDER,o;switch(s){case $.GENERATED_ORDER:o=this._generatedMappings;break;case $.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(i),u=this._names,f=this._sources,d=this._sourceMapURL,c=0,g=o.length;c<g;c++){var h=o[c],y=h.source===null?null:f.at(h.source);y!==null&&(y=x.computeSourceURL(a,y,d)),l({source:y,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:u.at(h.name)})}};$.prototype.allGeneratedPositionsFor=function(e){var r=x.getArg(e,"line"),n={source:x.getArg(e,"source"),originalLine:r,originalColumn:x.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",x.compareByOriginalPositions,Oi.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:x.getArg(o,"generatedLine",null),column:x.getArg(o,"generatedColumn",null),lastColumn:x.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==l;)i.push({line:x.getArg(o,"generatedLine",null),column:x.getArg(o,"generatedColumn",null),lastColumn:x.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};zr.SourceMapConsumer=$;function X(t,e){var r=t;typeof t=="string"&&(r=x.parseSourceMapInput(t));var n=x.getArg(r,"version"),i=x.getArg(r,"sources"),s=x.getArg(r,"names",[]),o=x.getArg(r,"sourceRoot",null),a=x.getArg(r,"sourcesContent",null),l=x.getArg(r,"mappings"),u=x.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=x.normalize(o)),i=i.map(String).map(x.normalize).map(function(f){return o&&x.isAbsolute(o)&&x.isAbsolute(f)?x.relative(o,f):f}),this._names=dt.fromArray(s.map(String),!0),this._sources=dt.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return x.computeSourceURL(o,f,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=u}X.prototype=Object.create($.prototype);X.prototype.consumer=$;X.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=x.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};X.fromSourceMap=function(e,r){var n=Object.create(X.prototype),i=n._names=dt.fromArray(e._names.toArray(),!0),s=n._sources=dt.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(g){return x.computeSourceURL(n.sourceRoot,g,r)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],l=n.__originalMappings=[],u=0,f=o.length;u<f;u++){var d=o[u],c=new Ra;c.generatedLine=d.generatedLine,c.generatedColumn=d.generatedColumn,d.source&&(c.source=s.indexOf(d.source),c.originalLine=d.originalLine,c.originalColumn=d.originalColumn,d.name&&(c.name=i.indexOf(d.name)),l.push(c)),a.push(c)}return Yt(n.__originalMappings,x.compareByOriginalPositions),n};X.prototype._version=3;Object.defineProperty(X.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Ra(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Ei=x.compareByGeneratedPositionsDeflatedNoLine;function Ma(t,e){let r=t.length,n=t.length-e;if(!(n<=1))if(n==2){let i=t[e],s=t[e+1];Ei(i,s)>0&&(t[e]=s,t[e+1]=i)}else if(n<20)for(let i=e;i<r;i++)for(let s=i;s>e;s--){let o=t[s-1],a=t[s];if(Ei(o,a)<=0)break;t[s-1]=a,t[s]=o}else Yt(t,Ei,e)}X.prototype._parseMappings=function(e,r){var n=1,i=0,s=0,o=0,a=0,l=0,u=e.length,f=0,d={},c={},g=[],h=[],y,b,_,E,w;let M=0;for(;f<u;)if(e.charAt(f)===";")n++,f++,i=0,Ma(h,M),M=h.length;else if(e.charAt(f)===",")f++;else{for(y=new Ra,y.generatedLine=n,E=f;E<u&&!this._charIsMappingSeparator(e,E);E++);for(b=e.slice(f,E),_=[];f<E;)Xd.decode(e,f,c),w=c.value,f=c.rest,_.push(w);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");if(y.generatedColumn=i+_[0],i=y.generatedColumn,_.length>1&&(y.source=a+_[1],a+=_[1],y.originalLine=s+_[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=o+_[3],o=y.originalColumn,_.length>4&&(y.name=l+_[4],l+=_[4])),h.push(y),typeof y.originalLine=="number"){let N=y.source;for(;g.length<=N;)g.push(null);g[N]===null&&(g[N]=[]),g[N].push(y)}}Ma(h,M),this.__generatedMappings=h;for(var T=0;T<g.length;T++)g[T]!=null&&Yt(g[T],x.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)};X.prototype._findMapping=function(e,r,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Oi.search(e,r,s,o)};X.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};X.prototype.originalPositionFor=function(e){var r={generatedLine:x.getArg(e,"line"),generatedColumn:x.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",x.compareByGeneratedPositionsDeflated,x.getArg(e,"bias",$.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=x.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=x.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=x.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:x.getArg(i,"originalLine",null),column:x.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};X.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};X.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=x.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=x.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};X.prototype.generatedPositionFor=function(e){var r=x.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:x.getArg(e,"line"),originalColumn:x.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",x.compareByOriginalPositions,x.getArg(e,"bias",$.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:x.getArg(s,"generatedLine",null),column:x.getArg(s,"generatedColumn",null),lastColumn:x.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};zr.BasicSourceMapConsumer=X;function ge(t,e){var r=t;typeof t=="string"&&(r=x.parseSourceMapInput(t));var n=x.getArg(r,"version"),i=x.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new dt,this._names=new dt;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=x.getArg(o,"offset"),l=x.getArg(a,"line"),u=x.getArg(a,"column");if(l<s.line||l===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:l+1,generatedColumn:u+1},consumer:new $(x.getArg(o,"map"),e)}})}ge.prototype=Object.create($.prototype);ge.prototype.constructor=$;ge.prototype._version=3;Object.defineProperty(ge.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});ge.prototype.originalPositionFor=function(e){var r={generatedLine:x.getArg(e,"line"),generatedColumn:x.getArg(e,"column")},n=Oi.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};ge.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};ge.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};ge.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(x.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};ge.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],l=i.consumer._sources.at(a.source);l!==null&&(l=x.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var u=null;a.name&&(u=i.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var f={source:l,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}Yt(this.__generatedMappings,x.compareByGeneratedPositionsDeflated),Yt(this.__originalMappings,x.compareByOriginalPositions)};zr.IndexedSourceMapConsumer=ge});var La=p(Aa=>{var ep=xi().SourceMapGenerator,Gr=ht(),tp=/(\r?\n)/,rp=10,pt="$$$isSourceNode$$$";function ue(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[pt]=!0,n!=null&&this.add(n)}ue.fromStringWithSourceMap=function(e,r,n){var i=new ue,s=e.split(tp),o=0,a=function(){var c=h(),g=h()||"";return c+g;function h(){return o<s.length?s[o++]:void 0}},l=1,u=0,f=null;return r.eachMapping(function(c){if(f!==null)if(l<c.generatedLine)d(f,a()),l++,u=0;else{var g=s[o]||"",h=g.substr(0,c.generatedColumn-u);s[o]=g.substr(c.generatedColumn-u),u=c.generatedColumn,d(f,h),f=c;return}for(;l<c.generatedLine;)i.add(a()),l++;if(u<c.generatedColumn){var g=s[o]||"";i.add(g.substr(0,c.generatedColumn)),s[o]=g.substr(c.generatedColumn),u=c.generatedColumn}f=c},this),o<s.length&&(f&&d(f,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(c){var g=r.sourceContentFor(c);g!=null&&(n!=null&&(c=Gr.join(n,c)),i.setSourceContent(c,g))}),i;function d(c,g){if(c===null||c.source===void 0)i.add(g);else{var h=n?Gr.join(n,c.source):c.source;i.add(new ue(c.originalLine,c.originalColumn,h,g,c.name))}}};ue.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[pt]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};ue.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[pt]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};ue.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[pt]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};ue.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};ue.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[pt]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};ue.prototype.setSourceContent=function(e,r){this.sourceContents[Gr.toSetString(e)]=r};ue.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][pt]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(Gr.fromSetString(i[r]),this.sourceContents[i[r]])};ue.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};ue.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new ep(e),i=!1,s=null,o=null,a=null,l=null;return this.walk(function(u,f){r.code+=u,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||o!==f.line||a!==f.column||l!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,o=f.line,a=f.column,l=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var d=0,c=u.length;d<c;d++)u.charCodeAt(d)===rp?(r.line++,r.column=0,d+1===c?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(u,f){n.setSourceContent(u,f)}),{code:r.code,map:n}};Aa.SourceNode=ue});var Hr=p(Wr=>{Wr.SourceMapGenerator=xi().SourceMapGenerator;Wr.SourceMapConsumer=Ca().SourceMapConsumer;Wr.SourceNode=La().SourceNode});var Ri=p((sw,Na)=>{"use strict";var{existsSync:np,readFileSync:ip}=require("fs"),{dirname:Mi,join:sp}=require("path"),{SourceMapConsumer:qa,SourceMapGenerator:Ta}=Hr();function op(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Jt=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Mi(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new qa(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(i)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(r)||e.match(n);if(a)return op(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=Mi(e),np(e))return this.mapFile=e,ip(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof qa)return Ta.fromSourceMap(r).toString();if(r instanceof Ta)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=sp(Mi(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Na.exports=Jt;Jt.default=Jt});var Kt=p((ow,ka)=>{"use strict";var{nanoid:ap}=sa(),{isAbsolute:Li,resolve:qi}=require("path"),{SourceMapConsumer:lp,SourceMapGenerator:up}=Hr(),{fileURLToPath:Pa,pathToFileURL:Vr}=require("url"),Ia=jr(),fp=Ri(),Ci=ai(),Ai=Symbol("lineToIndexCache"),cp=!!(lp&&up),Da=!!(qi&&Li);function ja(t){if(t[Ai])return t[Ai];let e=t.css.split(`
|
|
22
|
+
`),r=new Array(e.length),n=0;for(let i=0,s=e.length;i<s;i++)r[i]=n,n+=e[i].length+1;return t[Ai]=r,r}var gt=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!Da||/^\w+:\/\//.test(r.from)||Li(r.from)?this.file=r.from:this.file=qi(r.from)),Da&&cp){let n=new fp(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+ap(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let s,o,a,l,u;if(r&&typeof r=="object"){let d=r,c=n;if(typeof d.offset=="number"){l=d.offset;let g=this.fromOffset(l);r=g.line,n=g.col}else r=d.line,n=d.column,l=this.fromLineAndColumn(r,n);if(typeof c.offset=="number"){a=c.offset;let g=this.fromOffset(a);o=g.line,s=g.col}else o=c.line,s=c.column,a=this.fromLineAndColumn(c.line,c.column)}else if(n)l=this.fromLineAndColumn(r,n);else{l=r;let d=this.fromOffset(l);r=d.line,n=d.col}let f=this.origin(r,n,o,s);return f?u=new Ia(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):u=new Ia(e,o===void 0?r:{column:n,line:r},o===void 0?n:{column:s,line:o},this.css,this.file,i.plugin),u.input={column:n,endColumn:s,endLine:o,endOffset:a,line:r,offset:l,source:this.css},this.file&&(Vr&&(u.input.url=Vr(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,r){return ja(this)[e-1]+r-1}fromOffset(e){let r=ja(this),n=r[r.length-1],i=0;if(e>=n)i=r.length-1;else{let s=r.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<r[o])s=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:qi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:r,line:e});if(!o.source)return!1;let a;typeof n=="number"&&(a=s.originalPositionFor({column:i,line:n}));let l;Li(o.source)?l=Vr(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Vr(this.map.mapFile));let u={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Pa)u.file=Pa(l);else throw new Error("file: protocol is not available in this PostCSS build");let f=s.sourceContentFor(o.source);return f&&(u.source=f),u}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};ka.exports=gt;gt.default=gt;Ci&&Ci.registerInput&&Ci.registerInput(gt)});var mt=p((aw,Ua)=>{"use strict";var $a=Pe(),Fa,Ba,Ie=class extends $a{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let i=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let s of i)s.raws.before=r.raws.before}return i}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Fa(new Ba,this,e).stringify()}};Ie.registerLazyResult=t=>{Fa=t};Ie.registerProcessor=t=>{Ba=t};Ua.exports=Ie;Ie.default=Ie;$a.registerRoot(Ie)});var Ti=p((lw,za)=>{"use strict";var Qt={comma(t){return Qt.split(t,[","],!0)},space(t){let e=[" ",`
|
|
23
|
+
`," "];return Qt.split(t,e)},split(t,e,r){let n=[],i="",s=!1,o=0,a=!1,l="",u=!1;for(let f of t)u?u=!1:f==="\\"?u=!0:a?f===l&&(a=!1):f==='"'||f==="'"?(a=!0,l=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(s=!0),s?(i!==""&&n.push(i.trim()),i="",s=!1):i+=f;return(r||i!=="")&&n.push(i.trim()),n}};za.exports=Qt;Qt.default=Qt});var Yr=p((uw,Wa)=>{"use strict";var Ga=Pe(),hp=Ti(),yt=class extends Ga{get selectors(){return hp.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};Wa.exports=yt;yt.default=yt;Ga.registerRule(yt)});var Va=p((fw,Ha)=>{"use strict";var dp=$r(),pp=zt(),gp=Wt(),mp=Kt(),yp=Ri(),bp=mt(),vp=Yr();function Zt(t,e){if(Array.isArray(t))return t.map(i=>Zt(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let s={...i,__proto__:mp.prototype};s.map&&(s.map={...s.map,__proto__:yp.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>Zt(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new bp(n);if(n.type==="decl")return new gp(n);if(n.type==="rule")return new vp(n);if(n.type==="comment")return new pp(n);if(n.type==="atrule")return new dp(n);throw new Error("Unknown node type: "+t.type)}Ha.exports=Zt;Zt.default=Zt});var Pi=p((cw,Xa)=>{"use strict";var{dirname:Jr,relative:Ja,resolve:Ka,sep:Qa}=require("path"),{SourceMapConsumer:Za,SourceMapGenerator:Kr}=Hr(),{pathToFileURL:Ya}=require("url"),wp=Kt(),_p=!!(Za&&Kr),xp=!!(Jr&&Ka&&Ja&&Qa),Ni=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
|
|
24
24
|
`;this.css.includes(`\r
|
|
25
25
|
`)&&(r=`\r
|
|
26
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||
|
|
27
|
-
`),r=a.length-s):r+=a.length,l&&u!=="start"){let f=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==f.last||f.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?Kr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Kr(il(n,this.mapOpts.annotation)));let i=nl(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new Zp(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(rl){let n=rl(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;sl==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};al.exports=ji});var cl=d((Gw,fl)=>{"use strict";var tg=Fr(),rg=Ut(),ng=Gt(),ig=mt(),ll=Jr(),sg=ci(),ul={empty:!0,space:!0};function og(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}var Fi=class{constructor(e){this.input=e,this.root=new ig,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new tg;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,s,o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?u.push(n==="("?")":"]"):n==="{"&&u.length>0?u.push("}"):n===u[u.length-1]&&u.pop(),u.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),o&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let s=r-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,s;for(let[o,a]of e.entries()){if(i=a,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=i}return!1}comment(e){let r=new rg;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=sg(this.input)}decl(e,r){let n=new ng;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||og(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(s=e[u],s[1].toLowerCase()==="!important"){n.important=!0;let f=this.stringFrom(e,u);f=this.spacesFromEnd(e)+f,f!==" !important"&&(n.raws.important=f);break}else if(s[1].toLowerCase()==="important"){let f=e.slice(0),p="";for(let c=u;c>0;c--){let g=f[c][0];if(p.trim().startsWith("!")&&g!=="space")break;p=f.pop()[1]+p}p.trim().startsWith("!")&&(n.important=!0,n.raws.important=p,e=f)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(n.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new ll;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(n=u[0],l.push(u),n==="("||n==="[")s||(s=u),o.push(n==="("?")":"]");else if(a&&i&&n==="{")s||(s=u),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),r=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(s),r&&i){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,i){let s,o,a=n.length,l="",u=!0,f,p;for(let c=0;c<a;c+=1)s=n[c],o=s[0],o==="space"&&c===a-1&&!i?u=!1:o==="comment"?(p=n[c-1]?n[c-1][0]:"empty",f=n[c+1]?n[c+1][0]:"empty",!ul[p]&&!ul[f]?l.slice(-1)===","?u=!1:l+=s[1]:u=!1):l+=s[1];if(!u){let c=n.reduce((g,h)=>g+h[1],"");e.raws[r]={raw:c,value:l}}e[r]=l}rule(e){e.pop();let r=new ll;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i<e.length;i++)n+=e[i][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};fl.exports=Fi});var Xr=d((Ww,hl)=>{"use strict";var ag=Pe(),lg=Jt(),ug=cl();function Zr(t,e){let r=new lg(t,e),n=new ug(r);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
|
|
26
|
+
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||Jr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Za(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else if(this.css){let e;for(;(e=this.css.lastIndexOf("/*#"))!==-1;){let r=this.css.indexOf("*/",e+3);if(r===-1)break;for(;e>0&&this.css[e-1]===`
|
|
27
|
+
`;)e--;this.css=this.css.slice(0,e)+this.css.slice(r+2)}}}}generate(){if(this.clearAnnotation(),xp&&_p&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Kr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Kr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Kr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(i.generated.line=e,i.generated.column=r-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,s=a.lastIndexOf(`
|
|
28
|
+
`),r=a.length-s):r+=a.length,l&&u!=="start"){let f=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==f.last||f.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?Jr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Jr(Ka(n,this.mapOpts.annotation)));let i=Ja(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new wp(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(Ya){let n=Ya(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Qa==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};Xa.exports=Ni});var nl=p((hw,rl)=>{"use strict";var Sp=$r(),Ep=zt(),Op=Wt(),Mp=mt(),el=Yr(),Rp=oi(),tl={empty:!0,space:!0};function Cp(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}var Ii=class{constructor(e){this.input=e,this.root=new Mp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new Sp;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,s,o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?u.push(n==="("?")":"]"):n==="{"&&u.length>0?u.push("}"):n===u[u.length-1]&&u.pop(),u.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),o&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let s=r-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,s;for(let[o,a]of e.entries()){if(i=a,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=i}return!1}comment(e){let r=new Ep;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=Rp(this.input)}decl(e,r){let n=new Op;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Cp(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(s=e[u],s[1].toLowerCase()==="!important"){n.important=!0;let f=this.stringFrom(e,u);f=this.spacesFromEnd(e)+f,f!==" !important"&&(n.raws.important=f);break}else if(s[1].toLowerCase()==="important"){let f=e.slice(0),d="";for(let c=u;c>0;c--){let g=f[c][0];if(d.trim().startsWith("!")&&g!=="space")break;d=f.pop()[1]+d}d.trim().startsWith("!")&&(n.important=!0,n.raws.important=d,e=f)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(n.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new el;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(n=u[0],l.push(u),n==="("||n==="[")s||(s=u),o.push(n==="("?")":"]");else if(a&&i&&n==="{")s||(s=u),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),r=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(s),r&&i){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,i){let s,o,a=n.length,l="",u=!0,f,d;for(let c=0;c<a;c+=1)s=n[c],o=s[0],o==="space"&&c===a-1&&!i?u=!1:o==="comment"?(d=n[c-1]?n[c-1][0]:"empty",f=n[c+1]?n[c+1][0]:"empty",!tl[d]&&!tl[f]?l.slice(-1)===","?u=!1:l+=s[1]:u=!1):l+=s[1];if(!u){let c=n.reduce((g,h)=>g+h[1],"");e.raws[r]={raw:c,value:l}}e[r]=l}rule(e){e.pop();let r=new el;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i<e.length;i++)n+=e[i][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};rl.exports=Ii});var Zr=p((dw,il)=>{"use strict";var Ap=Pe(),Lp=Kt(),qp=nl();function Qr(t,e){let r=new Lp(t,e),n=new qp(r);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
|
|
28
29
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?i.message+=`
|
|
29
30
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(i.message+=`
|
|
30
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}hl.exports=Zr;Zr.default=Zr;ag.registerParse(Zr)});var Bi=d((Hw,dl)=>{"use strict";var Zt=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};dl.exports=Zt;Zt.default=Zt});var en=d((Vw,pl)=>{"use strict";var fg=Bi(),Xt=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new fg(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};pl.exports=Xt;Xt.default=Xt});var Ui=d((Yw,ml)=>{"use strict";var gl={};ml.exports=function(e){gl[e]||(gl[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Wi=d((Jw,wl)=>{"use strict";var cg=Pe(),hg=Br(),dg=$i(),pg=Xr(),yl=en(),gg=mt(),mg=kt(),{isClean:_e,my:yg}=$r(),vg=Ui(),bg={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},wg={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},_g={Once:!0,postcssPlugin:!0,prepare:!0},vt=0;function er(t){return typeof t=="object"&&typeof t.then=="function"}function bl(t){let e=!1,r=bg[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,vt,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,vt,r+"Exit"]:[r,r+"Exit"]}function vl(t){let e;return t.type==="document"?e=["Document",vt,"DocumentExit"]:t.type==="root"?e=["Root",vt,"RootExit"]:e=bl(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function zi(t){return t[_e]=!1,t.nodes&&t.nodes.forEach(e=>zi(e)),t}var Gi={},Ie=class t{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=zi(r);else if(r instanceof t||r instanceof yl)i=zi(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=pg;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(o){this.processed=!0,this.error=o}i&&!i[yg]&&cg.rebuild(i)}this.result=new yl(e,i,n),this.helpers={...Gi,postcss:Gi,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,s=n.postcssVersion,o=this.result.processor.version,a=s.split("."),l=o.split(".");(a[0]!==l[0]||parseInt(a[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!wg[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!_g[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(er(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[_e];){e[_e]=!0;let r=[vl(e)];for(;r.length>0;){let n=this.visitTick(r);if(er(n))try{await n}catch(i){let s=r[r.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return er(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=mg;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new dg(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(er(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[_e];)e[_e]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||vg("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(er(s))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[o,a]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(r.iterator!==0){let o=r.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[_e]){a[_e]=!0,e.push(vl(a));return}r.iterator=0,delete n.indexes[o]}let s=r.events;for(;r.eventIndex<s.length;){let o=s[r.eventIndex];if(r.eventIndex+=1,o===vt){n.nodes&&n.nodes.length&&(n[_e]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[_e]=!0;let r=bl(e);for(let n of r)if(n===vt)e.nodes&&e.each(i=>{i[_e]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Ie.registerPostcss=t=>{Gi=t};wl.exports=Ie;Ie.default=Ie;gg.registerLazyResult(Ie);hg.registerLazyResult(Ie)});var xl=d((Kw,_l)=>{"use strict";var xg=$i(),Sg=Xr(),Eg=en(),Og=kt(),Mg=Ui(),tr=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=Sg;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,s=Og;this.result=new Eg(this._processor,i,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new xg(s,i,this._opts,r);if(a.isMap()){let[l,u]=a.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Mg("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};_l.exports=tr;tr.default=tr});var El=d((Qw,Sl)=>{"use strict";var Rg=Br(),Cg=Wi(),Ag=xl(),qg=mt(),Ye=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Ag(this,e,r):new Cg(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Sl.exports=Ye;Ye.default=Ye;qg.registerProcessor(Ye);Rg.registerProcessor(Ye)});var Tl=d((Zw,Ll)=>{"use strict";var Ol=Fr(),Ml=Ut(),Lg=Pe(),Tg=jr(),Rl=Gt(),Cl=Br(),Pg=tl(),Ng=Jt(),Ig=Wi(),Dg=ki(),kg=Ft(),jg=Xr(),Hi=El(),$g=en(),Al=mt(),ql=Jr(),Fg=kt(),Bg=Bi();function I(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Hi(t)}I.plugin=function(e,r){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
31
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}il.exports=Qr;Qr.default=Qr;Ap.registerParse(Qr)});var Di=p((pw,sl)=>{"use strict";var Xt=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};sl.exports=Xt;Xt.default=Xt});var Xr=p((gw,ol)=>{"use strict";var Tp=Di(),er=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new Tp(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};ol.exports=er;er.default=er});var ji=p((mw,ll)=>{"use strict";var al={};ll.exports=function(e){al[e]||(al[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Fi=p((yw,hl)=>{"use strict";var Np=Pe(),Pp=Fr(),Ip=Pi(),Dp=Zr(),ul=Xr(),jp=mt(),kp=kt(),{isClean:we,my:$p}=kr(),Fp=ji(),Bp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Up={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},zp={Once:!0,postcssPlugin:!0,prepare:!0},bt=0;function tr(t){return typeof t=="object"&&typeof t.then=="function"}function cl(t){let e=!1,r=Bp[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,bt,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,bt,r+"Exit"]:[r,r+"Exit"]}function fl(t){let e;return t.type==="document"?e=["Document",bt,"DocumentExit"]:t.type==="root"?e=["Root",bt,"RootExit"]:e=cl(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ki(t){return t[we]=!1,t.nodes&&t.nodes.forEach(e=>ki(e)),t}var $i={},De=class t{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=ki(r);else if(r instanceof t||r instanceof ul)i=ki(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=Dp;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(o){this.processed=!0,this.error=o}i&&!i[$p]&&Np.rebuild(i)}this.result=new ul(e,i,n),this.helpers={...$i,postcss:$i,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,s=n.postcssVersion,o=this.result.processor.version,a=s.split("."),l=o.split(".");(a[0]!==l[0]||parseInt(a[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Up[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!zp[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(tr(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[we];){e[we]=!0;let r=[fl(e)];for(;r.length>0;){let n=this.visitTick(r);if(tr(n))try{await n}catch(i){let s=r[r.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return tr(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=kp;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new Ip(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(tr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[we];)e[we]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Fp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(tr(s))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[o,a]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(r.iterator!==0){let o=r.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[we]){a[we]=!0,e.push(fl(a));return}r.iterator=0,delete n.indexes[o]}let s=r.events;for(;r.eventIndex<s.length;){let o=s[r.eventIndex];if(r.eventIndex+=1,o===bt){n.nodes&&n.nodes.length&&(n[we]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[we]=!0;let r=cl(e);for(let n of r)if(n===bt)e.nodes&&e.each(i=>{i[we]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};De.registerPostcss=t=>{$i=t};hl.exports=De;De.default=De;jp.registerLazyResult(De);Pp.registerLazyResult(De)});var pl=p((bw,dl)=>{"use strict";var Gp=Pi(),Wp=Zr(),Hp=Xr(),Vp=kt(),Yp=ji(),rr=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=Wp;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i=Vp;this.result=new Hp(this._processor,void 0,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let o=new Gp(i,void 0,this._opts,r);if(o.isMap()){let[a,l]=o.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Yp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};dl.exports=rr;rr.default=rr});var ml=p((vw,gl)=>{"use strict";var Jp=Fr(),Kp=Fi(),Qp=pl(),Zp=mt(),Je=class{constructor(e=[]){this.version="8.5.8",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Qp(this,e,r):new Kp(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};gl.exports=Je;Je.default=Je;Zp.registerProcessor(Je);Jp.registerProcessor(Je)});var El=p((ww,Sl)=>{"use strict";var yl=$r(),bl=zt(),Xp=Pe(),eg=jr(),vl=Wt(),wl=Fr(),tg=Va(),rg=Kt(),ng=Fi(),ig=Ti(),sg=Bt(),og=Zr(),Bi=ml(),ag=Xr(),_l=mt(),xl=Yr(),lg=kt(),ug=Di();function I(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Bi(t)}I.plugin=function(e,r){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
31
32
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
32
|
-
https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new
|
|
33
|
+
https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new Bi().version,a}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,a,l){return I([i(l)]).process(o,a)},i};I.stringify=lg;I.parse=og;I.fromJSON=tg;I.list=ig;I.comment=t=>new bl(t);I.atRule=t=>new yl(t);I.decl=t=>new vl(t);I.rule=t=>new xl(t);I.root=t=>new _l(t);I.document=t=>new wl(t);I.CssSyntaxError=eg;I.Declaration=vl;I.Container=Xp;I.Processor=Bi;I.Document=wl;I.Comment=bl;I.Warning=ug;I.AtRule=yl;I.Result=ag;I.Input=rg;I.Rule=xl;I.Root=_l;I.Node=sg;ng.registerPostcss(I);Sl.exports=I;I.default=I});var se=p((Vw,Ml)=>{"use strict";var zi=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
33
34
|
Found: ${e.toString().split(`
|
|
34
35
|
`)[0]}
|
|
35
|
-
`),Error.captureStackTrace(this,t)}};
|
|
36
|
-
`)!=-1,n=this._styles,i=n.length;i--;){var s=
|
|
37
|
-
`));return!0}
|
|
36
|
+
`),Error.captureStackTrace(this,t)}};Ml.exports=t=>{if(t.length>2)throw new zi(t);function e(n={}){this.options=n}e.prototype.transform=t;function r(n){return new e(n)}return r.Format=e,r}});var Ll=p((Yw,Al)=>{var Cl={};Al.exports=Cl;var Rl={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(Rl).forEach(function(t){var e=Rl[t],r=Cl[t]=[];r.open="\x1B["+e[0]+"m",r.close="\x1B["+e[1]+"m"})});var Tl=p((Jw,ql)=>{"use strict";ql.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 Pl=p((Kw,Nl)=>{"use strict";var fg=require("os"),me=Tl(),ne=process.env,vt=void 0;me("no-color")||me("no-colors")||me("color=false")?vt=!1:(me("color")||me("colors")||me("color=true")||me("color=always"))&&(vt=!0);"FORCE_COLOR"in ne&&(vt=ne.FORCE_COLOR.length===0||parseInt(ne.FORCE_COLOR,10)!==0);function cg(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function hg(t){if(vt===!1)return 0;if(me("color=16m")||me("color=full")||me("color=truecolor"))return 3;if(me("color=256"))return 2;if(t&&!t.isTTY&&vt!==!0)return 0;var e=vt?1:0;if(process.platform==="win32"){var r=fg.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 ne)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(i){return i in ne})||ne.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in ne)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in ne){var n=parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ne.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)||"COLORTERM"in ne?1:(ne.TERM==="dumb",e)}function Gi(t){var e=hg(t);return cg(e)}Nl.exports={supportsColor:Gi,stdout:Gi(process.stdout),stderr:Gi(process.stderr)}});var Dl=p((Qw,Il)=>{Il.exports=function(e,r){var n="";e=e||"Run the trap, drop the bass",e=e.split("");var i={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(s){s=s.toLowerCase();var o=i[s]||[" "],a=Math.floor(Math.random()*o.length);typeof i[s]<"u"?n+=i[s][a]:n+=s}),n}});var kl=p((Zw,jl)=>{jl.exports=function(e,r){e=e||" he is here ";var n={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},i=[].concat(n.up,n.down,n.mid);function s(l){var u=Math.floor(Math.random()*l);return u}function o(l){var u=!1;return i.filter(function(f){u=f===l}),u}function a(l,u){var f="",d,c;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(c in l)if(!o(c)){switch(f=f+l[c],d={up:0,down:0,mid:0},u.size){case"mini":d.up=s(8),d.mid=s(2),d.down=s(8);break;case"maxi":d.up=s(16)+3,d.mid=s(4)+1,d.down=s(64)+3;break;default:d.up=s(8)+1,d.mid=s(6)/2,d.down=s(8)+1;break}var g=["up","mid","down"];for(var h in g)for(var y=g[h],b=0;b<=d[y];b++)u[y]&&(f=f+n[y][s(n[y].length)])}return f}return a(e,r)}});var Fl=p((Xw,$l)=>{$l.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 Ul=p((e_,Bl)=>{Bl.exports=function(t){return function(e,r,n){return r%2===0?e:t.inverse(e)}}});var Gl=p((t_,zl)=>{zl.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 Hl=p((r_,Wl)=>{Wl.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 Zl=p((i_,Ql)=>{var A={};Ql.exports=A;A.themes={};var dg=require("util"),Ke=A.styles=Ll(),Yl=Object.defineProperties,pg=new RegExp(/[\r\n]+/g);A.supportsColor=Pl().supportsColor;typeof A.enabled>"u"&&(A.enabled=A.supportsColor()!==!1);A.enable=function(){A.enabled=!0};A.disable=function(){A.enabled=!1};A.stripColors=A.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var n_=A.stylize=function(e,r){if(!A.enabled)return e+"";var n=Ke[r];return!n&&r in A?A[r](e):n.open+e+n.close},gg=/[|\\{}()[\]^$+*?.]/g,mg=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(gg,"\\$&")};function Jl(t){var e=function r(){return bg.apply(r,arguments)};return e._styles=t,e.__proto__=yg,e}var Kl=(function(){var t={};return Ke.grey=Ke.gray,Object.keys(Ke).forEach(function(e){Ke[e].closeRe=new RegExp(mg(Ke[e].close),"g"),t[e]={get:function(){return Jl(this._styles.concat(e))}}}),t})(),yg=Yl(function(){},Kl);function bg(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:dg.inspect(o)}).join(" ");if(!A.enabled||!e)return e;for(var r=e.indexOf(`
|
|
37
|
+
`)!=-1,n=this._styles,i=n.length;i--;){var s=Ke[n[i]];e=s.open+e.replace(s.closeRe,s.open)+s.close,r&&(e=e.replace(pg,function(o){return s.close+o+s.open}))}return e}A.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){A[r]=function(n){if(typeof t[r]=="object"){var i=n;for(var s in t[r])i=A[t[r][s]](i);return i}return A[t[r]](n)}})(e)};function vg(){var t={};return Object.keys(Kl).forEach(function(e){t[e]={get:function(){return Jl([e])}}}),t}var wg=function(e,r){var n=r.split("");return n=n.map(e),n.join("")};A.trap=Dl();A.zalgo=kl();A.maps={};A.maps.america=Fl()(A);A.maps.zebra=Ul()(A);A.maps.rainbow=Gl()(A);A.maps.random=Hl()(A);for(Vl in A.maps)(function(t){A[t]=function(e){return wg(A.maps[t],e)}})(Vl);var Vl;Yl(A,vg())});var Wi=p((s_,Xl)=>{var _g=Zl();Xl.exports=_g});var eu=p(Hi=>{"use strict";Hi.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Hi.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var tu=p(Vi=>{"use strict";Vi.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Vi.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var ru=p(Yi=>{"use strict";Yi.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Yi.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var nu=p(en=>{"use strict";Object.defineProperty(en,"cli",{value:eu()});Object.defineProperty(en,"npm",{value:tu()});Object.defineProperty(en,"syslog",{value:ru()})});var G=p(nr=>{"use strict";Object.defineProperty(nr,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(nr,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(nr,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(nr,"configs",{value:nu()})});var nn=p((c_,rn)=>{"use strict";var Qi=Wi(),{LEVEL:Ji,MESSAGE:Ki}=G();Qi.enabled=!0;var iu=/\s+/,tn=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]=iu.test(e[i])?e[i].split(iu):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 Qi[t.allColors[e]](n);for(let i=0,s=t.allColors[e].length;i<s;i++)n=Qi[t.allColors[e][i]](n);return n}transform(e,r){return r.all&&typeof e[Ki]=="string"&&(e[Ki]=this.colorize(e[Ji],e.level,e[Ki])),(r.level||r.all||!r.message)&&(e.level=this.colorize(e[Ji],e.level)),(r.all||r.message)&&(e.message=this.colorize(e[Ji],e.level,e.message)),e}};rn.exports=t=>new tn(t);rn.exports.Colorizer=rn.exports.Format=tn});var ou=p((h_,su)=>{"use strict";var{Colorizer:xg}=nn();su.exports=t=>(xg.addColors(t.colors||t),t)});var lu=p((d_,au)=>{"use strict";var Sg=se();au.exports=Sg(t=>(t.message=` ${t.message}`,t))});var cu=p((p_,fu)=>{"use strict";var Eg=se(),{LEVEL:uu,MESSAGE:Zi}=G();fu.exports=Eg((t,{stack:e,cause:r})=>{if(t instanceof Error){let i=Object.assign({},t,{level:t.level,[uu]:t[uu]||t.level,message:t.message,[Zi]:t[Zi]||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[Zi]=n.message,e&&(t.stack=n.stack),r&&(t.cause=n.cause),t})});var es=p((g_,on)=>{"use strict";var{configs:Og,LEVEL:hu,MESSAGE:Xi}=G(),sn=class t{constructor(e={levels:Og.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let r=Object.keys(e).map(n=>n.length);return Math.max(...r)}static paddingForLevel(e,r,n){let i=n+1-e.length,s=Math.floor(i/r.length);return`${r}${r.repeat(s)}`.slice(0,i)}static paddingForLevels(e,r=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((i,s)=>(i[s]=t.paddingForLevel(s,r,n),i),{})}transform(e,r){return e.message=`${this.paddings[e[hu]]}${e.message}`,e[Xi]&&(e[Xi]=`${this.paddings[e[hu]]}${e[Xi]}`),e}};on.exports=t=>new sn(t);on.exports.Padder=on.exports.Format=sn});var du=p((m_,ts)=>{"use strict";var{Colorizer:Mg}=nn(),{Padder:Rg}=es(),{configs:Cg,MESSAGE:Ag}=G(),an=class{constructor(e={}){e.levels||(e.levels=Cg.cli.levels),this.colorizer=new Mg(e),this.padder=new Rg(e),this.options=e}transform(e,r){return this.colorizer.transform(this.padder.transform(e,r),r),e[Ag]=`${e.level}:${e.message}`,e}};ts.exports=t=>new an(t);ts.exports.Format=an});var gu=p((y_,rs)=>{"use strict";var Lg=se();function pu(t){if(t.every(qg))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 qg(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(`
|
|
38
|
+
`));return!0}rs.exports=(...t)=>{let e=Lg(pu(t)),r=e();return r.Format=e.Format,r};rs.exports.cascade=pu});var sr=p((os,bu)=>{"use strict";var{hasOwnProperty:ir}=Object.prototype,Ze=ss();Ze.configure=ss;Ze.stringify=Ze;Ze.default=Ze;os.stringify=Ze;os.configure=ss;bu.exports=Ze;var Tg=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function je(t){return t.length<5e3&&!Tg.test(t)?`"${t}"`:JSON.stringify(t)}function ns(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 Ng=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function is(t){return Ng.call(t)!==void 0&&t.length!==0}function mu(t,e,r){t.length<r&&(r=t.length);let n=e===","?"":" ",i=`"0":${n}${t[0]}`;for(let s=1;s<r;s++)i+=`${e}"${s}":${n}${t[s]}`;return i}function Pg(t){if(ir.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 Ig(t){let e;if(ir.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 Dg(t,e){let r;if(ir.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 yu(t,e){let r;if(ir.call(t,e)){if(r=t[e],typeof r!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${e}" argument must be an integer`);if(r<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return r===void 0?1/0:r}function Qe(t){return t===1?"1 item":`${t} items`}function jg(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}function kg(t){if(ir.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 ss(t){t={...t};let e=kg(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=Pg(t),n=Dg(t,"bigint"),i=Ig(t),s=typeof i=="function"?i:void 0,o=yu(t,"maximumDepth"),a=yu(t,"maximumBreadth");function l(g,h,y,b,_,E){let w=h[g];switch(typeof w=="object"&&w!==null&&typeof w.toJSON=="function"&&(w=w.toJSON(g)),w=b.call(h,g,w),typeof w){case"string":return je(w);case"object":{if(w===null)return"null";if(y.indexOf(w)!==-1)return r;let M="",T=",",N=E;if(Array.isArray(w)){if(w.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(w),_!==""&&(E+=_,M+=`
|
|
38
39
|
${E}`,T=`,
|
|
39
|
-
${E}`);let
|
|
40
|
-
${
|
|
41
|
-
${E}`,R=" ");let
|
|
40
|
+
${E}`);let Z=Math.min(w.length,a),ae=0;for(;ae<Z-1;ae++){let lt=l(String(ae),w,y,b,_,E);M+=lt!==void 0?lt:"null",M+=T}let le=l(String(ae),w,y,b,_,E);if(M+=le!==void 0?le:"null",w.length-1>a){let lt=w.length-a-1;M+=`${T}"... ${Qe(lt)} not stringified"`}return _!==""&&(M+=`
|
|
41
|
+
${N}`),y.pop(),`[${M}]`}let q=Object.keys(w),P=q.length;if(P===0)return"{}";if(o<y.length+1)return'"[Object]"';let R="",z="";_!==""&&(E+=_,T=`,
|
|
42
|
+
${E}`,R=" ");let te=Math.min(P,a);i&&!is(w)&&(q=ns(q,s)),y.push(w);for(let Z=0;Z<te;Z++){let ae=q[Z],le=l(ae,w,y,b,_,E);le!==void 0&&(M+=`${z}${je(ae)}:${R}${le}`,z=T)}if(P>a){let Z=P-a;M+=`${z}"...":${R}"${Qe(Z)} not stringified"`,z=T}return _!==""&&z.length>1&&(M=`
|
|
42
43
|
${E}${M}
|
|
43
|
-
${
|
|
44
|
+
${N}`),y.pop(),`{${M}}`}case"number":return isFinite(w)?String(w):e?e(w):"null";case"boolean":return w===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(w);default:return e?e(w):void 0}}function u(g,h,y,b,_,E){switch(typeof h=="object"&&h!==null&&typeof h.toJSON=="function"&&(h=h.toJSON(g)),typeof h){case"string":return je(h);case"object":{if(h===null)return"null";if(y.indexOf(h)!==-1)return r;let w=E,M="",T=",";if(Array.isArray(h)){if(h.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(h),_!==""&&(E+=_,M+=`
|
|
44
45
|
${E}`,T=`,
|
|
45
|
-
${E}`);let
|
|
46
|
-
${
|
|
47
|
-
${E}`,
|
|
46
|
+
${E}`);let P=Math.min(h.length,a),R=0;for(;R<P-1;R++){let te=u(String(R),h[R],y,b,_,E);M+=te!==void 0?te:"null",M+=T}let z=u(String(R),h[R],y,b,_,E);if(M+=z!==void 0?z:"null",h.length-1>a){let te=h.length-a-1;M+=`${T}"... ${Qe(te)} not stringified"`}return _!==""&&(M+=`
|
|
47
|
+
${w}`),y.pop(),`[${M}]`}y.push(h);let N="";_!==""&&(E+=_,T=`,
|
|
48
|
+
${E}`,N=" ");let q="";for(let P of b){let R=u(P,h[P],y,b,_,E);R!==void 0&&(M+=`${q}${je(P)}:${N}${R}`,q=T)}return _!==""&&q.length>1&&(M=`
|
|
48
49
|
${E}${M}
|
|
49
|
-
${
|
|
50
|
-
${
|
|
51
|
-
${
|
|
52
|
-
${E}`,y.pop(),`[${R}]`}let
|
|
53
|
-
${
|
|
54
|
-
${
|
|
55
|
-
${E}`),y.pop(),`{${P}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function p(g,h,y){switch(typeof h){case"string":return De(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(g),typeof h!="object")return p(g,h,y);if(h===null)return"null"}if(y.indexOf(h)!==-1)return r;let v="",w=h.length!==void 0;if(w&&Array.isArray(h)){if(h.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(h);let P=Math.min(h.length,a),L=0;for(;L<P-1;L++){let R=p(String(L),h[L],y);v+=R!==void 0?R:"null",v+=","}let N=p(String(L),h[L],y);if(v+=N!==void 0?N:"null",h.length-1>a){let R=h.length-a-1;v+=`,"... ${Ke(R)} not stringified"`}return y.pop(),`[${v}]`}let E=Object.keys(h),b=E.length;if(b===0)return"{}";if(o<y.length+1)return'"[Object]"';let M="",T=Math.min(b,a);w&&us(h)&&(v+=Eu(h,",",a),E=E.slice(h.length),T-=h.length,M=","),i&&(E=ls(E,s)),y.push(h);for(let P=0;P<T;P++){let L=E[P],N=p(L,h[L],y);N!==void 0&&(v+=`${M}${De(L)}:${N}`,M=",")}if(b>a){let P=b-a;v+=`${M}"...":"${Ke(P)} not stringified"`}return y.pop(),`{${v}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function c(g,h,y){if(arguments.length>1){let v="";if(typeof y=="number"?v=" ".repeat(Math.min(y,10)):typeof y=="string"&&(v=y.slice(0,10)),h!=null){if(typeof h=="function")return l("",{"":g},[],h,v,"");if(Array.isArray(h))return u("",g,[],gm(h),v,"")}if(v.length!==0)return f("",g,[],v,"")}return p("",g,[])}return c}});var hs=d((K_,Ru)=>{"use strict";var ym=ie(),{MESSAGE:vm}=G(),bm=ir();function wm(t,e){return typeof e=="bigint"?e.toString():e}Ru.exports=ym((t,e)=>{let r=bm.configure(e);return t[vm]=r(t,e.replacer||wm,e.space),t})});var Au=d((Q_,Cu)=>{"use strict";var _m=ie();Cu.exports=_m((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Lu=d((Z_,qu)=>{"use strict";var xm=ie(),{MESSAGE:Sm}=G(),Em=ir();qu.exports=xm(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[Sm]=Em(e),t})});var Pu=d((X_,Tu)=>{"use strict";var Om=ie();function Mm(t,e,r){let n=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),i=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,n,{[r]:i}),t}function Rm(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}Tu.exports=Om((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?Mm(t,n,r):e.fillWith?Rm(t,e.fillWith,r):t})});var Iu=d((e2,Nu)=>{var wt=1e3,_t=wt*60,xt=_t*60,Ze=xt*24,Cm=Ze*7,Am=Ze*365.25;Nu.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return qm(t);if(r==="number"&&isFinite(t))return e.long?Tm(t):Lm(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function qm(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*Am;case"weeks":case"week":case"w":return r*Cm;case"days":case"day":case"d":return r*Ze;case"hours":case"hour":case"hrs":case"hr":case"h":return r*xt;case"minutes":case"minute":case"mins":case"min":case"m":return r*_t;case"seconds":case"second":case"secs":case"sec":case"s":return r*wt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Lm(t){var e=Math.abs(t);return e>=Ze?Math.round(t/Ze)+"d":e>=xt?Math.round(t/xt)+"h":e>=_t?Math.round(t/_t)+"m":e>=wt?Math.round(t/wt)+"s":t+"ms"}function Tm(t){var e=Math.abs(t);return e>=Ze?un(t,e,Ze,"day"):e>=xt?un(t,e,xt,"hour"):e>=_t?un(t,e,_t,"minute"):e>=wt?un(t,e,wt,"second"):t+" ms"}function un(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var ku=d((sr,Du)=>{"use strict";var Pm=ie(),Nm=Iu();Du.exports=Pm(t=>{let e=+new Date;return sr.diff=e-(sr.prevTime||e),sr.prevTime=e,t.ms=`+${Nm(sr.diff)}`,t})});var Fu=d((t2,$u)=>{"use strict";var Im=require("util").inspect,Dm=ie(),{LEVEL:km,MESSAGE:ju,SPLAT:jm}=G();$u.exports=Dm((t,e={})=>{let r=Object.assign({},t);return delete r[km],delete r[ju],delete r[jm],t[ju]=Im(r,!1,e.depth||null,e.colorize),t})});var Bu=d((r2,cn)=>{"use strict";var{MESSAGE:$m}=G(),fn=class{constructor(e){this.template=e}transform(e){return e[$m]=this.template(e),e}};cn.exports=t=>new fn(t);cn.exports.Printf=cn.exports.Format=fn});var Gu=d((n2,zu)=>{"use strict";var Fm=ie(),{MESSAGE:Uu}=G(),Bm=ir();zu.exports=Fm(t=>{let e=Bm(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Uu]=`${t.level}:${r} ${t.message} ${e}`:t[Uu]=`${t.level}:${r} ${t.message}`,t})});var Vu=d((i2,Hu)=>{"use strict";var Um=require("util"),{SPLAT:Wu}=G(),zm=/%[scdjifoO%]/g,Gm=/%%/g,ds=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[Wu]||e.splat||[],s=n.match(Gm),o=s&&s.length||0,l=r.length-o-i.length,u=l<0?i.splice(l,-1*l):[],f=u.length;if(f)for(let p=0;p<f;p++)Object.assign(e,u[p]);return e.message=Um.format(n,...i),e}transform(e){let r=e.message,n=e[Wu]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(zm);if(!i&&(n||n.length)){let s=n.length>1?n.splice(0):n,o=s.length;if(o)for(let a=0;a<o;a++)Object.assign(e,s[a]);return e}return i?this._splat(e,i):e}};Hu.exports=t=>new ds(t)});var Ju=d((hn,Yu)=>{(function(t,e){typeof hn=="object"&&typeof Yu<"u"?e(hn):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(hn,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="\\d\\d?",n="\\d\\d",i="\\d{3}",s="\\d{4}",o="[^\\s]+",a=/\[([^]*?)\]/gm;function l(m,x){for(var k=[],ne=0,O=m.length;ne<O;ne++)k.push(m[ne].substr(0,x));return k}var u=function(m){return function(x,k){var ne=k[m].map(function(we){return we.toLowerCase()}),O=ne.indexOf(x.toLowerCase());return O>-1?O:null}};function f(m){for(var x=[],k=1;k<arguments.length;k++)x[k-1]=arguments[k];for(var ne=0,O=x;ne<O.length;ne++){var we=O[ne];for(var Ge in we)m[Ge]=we[Ge]}return m}var p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],g=l(c,3),h=l(p,3),y={dayNamesShort:h,dayNames:p,monthNamesShort:g,monthNames:c,amPm:["am","pm"],DoFn:function(m){return m+["th","st","nd","rd"][m%10>3?0:(m-m%10!==10?1:0)*m%10]}},v=f({},y),w=function(m){return v=f(v,m)},E=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},M={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)}},T=function(m){return+m-1},P=[null,r],L=[null,o],N=["isPm",o,function(m,x){var k=m.toLowerCase();return k===x.amPm[0]?0:k===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 k=+x[1]*60+parseInt(x[2],10);return x[0]==="+"?k:-k}return 0}],z={D:["day",r],DD:["day",n],Do:["day",r+o,function(m){return parseInt(m,10)}],M:["month",r,T],MM:["month",n,T],YY:["year",n,function(m){var x=new Date,k=+(""+x.getFullYear()).substr(0,2);return+(""+(+m>68?k-1:k)+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",s],S:["millisecond","\\d",function(m){return+m*100}],SS:["millisecond",n,function(m){return+m*10}],SSS:["millisecond",i],d:P,dd:P,ddd:L,dddd:L,MMM:["month",o,u("monthNamesShort")],MMMM:["month",o,u("monthNames")],a:N,A:N,ZZ:R,Z:R},X={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"},J=function(m){return f(X,m)},oe=function(m,x,k){if(x===void 0&&(x=X.default),k===void 0&&(k={}),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=X[x]||x;var ne=[];x=x.replace(a,function(we,Ge){return ne.push(Ge),"@@@"});var O=f(f({},v),k);return x=x.replace(e,function(we){return M[we](m,O)}),x.replace(/@@@/g,function(){return ne.shift()})};function ae(m,x,k){if(k===void 0&&(k={}),typeof x!="string")throw new Error("Invalid format in fecha parse");if(x=X[x]||x,m.length>1e3)return null;var ne=new Date,O={year:ne.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},we=[],Ge=[],Pt=x.replace(a,function(Nt,ut){return Ge.push(E(ut)),"@@@"}),Ar={},Ao={};Pt=E(Pt).replace(e,function(Nt){var ut=z[Nt],li=ut[0],Dd=ut[1],Po=ut[3];if(Ar[li])throw new Error("Invalid format. "+li+" specified twice in format");return Ar[li]=!0,Po&&(Ao[Po]=!0),we.push(ut),"("+Dd+")"}),Object.keys(Ao).forEach(function(Nt){if(!Ar[Nt])throw new Error("Invalid format. "+Nt+" is required in specified format")}),Pt=Pt.replace(/@@@/g,function(){return Ge.shift()});var qr=m.match(new RegExp(Pt,"i"));if(!qr)return null;for(var Pd=f(f({},v),k),pe=1;pe<qr.length;pe++){var qo=we[pe-1],Nd=qo[0],Lo=qo[2],To=Lo?Lo(qr[pe],Pd):+qr[pe];if(To==null)return null;O[Nd]=To}O.isPm===1&&O.hour!=null&&+O.hour!=12?O.hour=+O.hour+12:O.isPm===0&&+O.hour==12&&(O.hour=0);var Lr;if(O.timezoneOffset==null){Lr=new Date(O.year,O.month,O.day,O.hour,O.minute,O.second,O.millisecond);for(var Tr=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],pe=0,Id=Tr.length;pe<Id;pe++)if(Ar[Tr[pe][0]]&&O[Tr[pe][0]]!==Lr[Tr[pe][1]]())return null}else if(Lr=new Date(Date.UTC(O.year,O.month,O.day,O.hour,O.minute-O.timezoneOffset,O.second,O.millisecond)),O.month>11||O.month<0||O.day>31||O.day<1||O.hour>23||O.hour<0||O.minute>59||O.minute<0||O.second>59||O.second<0)return null;return Lr}var lt={format:oe,parse:ae,defaultI18n:y,setGlobalDateI18n:w,setGlobalDateMasks:J};t.assign=f,t.default=lt,t.format=oe,t.parse=ae,t.defaultI18n=y,t.setGlobalDateI18n=w,t.setGlobalDateMasks=J,Object.defineProperty(t,"__esModule",{value:!0})}))});var Qu=d((s2,Ku)=>{"use strict";var Wm=Ju(),Hm=ie();Ku.exports=Hm((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():Wm.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Xu=d((o2,Zu)=>{"use strict";var ps=Ki(),Vm=ie(),{MESSAGE:gs}=G();Zu.exports=Vm((t,e)=>(e.level!==!1&&(t.level=ps.strip(t.level)),e.message!==!1&&(t.message=ps.strip(String(t.message))),e.raw!==!1&&t[gs]&&(t[gs]=ps.strip(String(t[gs]))),t))});var ys=d(ms=>{"use strict";var Ym=ms.format=ie();ms.levels=pu();function Q(t,e){Object.defineProperty(Ym,t,{get(){return e()},configurable:!0})}Q("align",function(){return mu()});Q("errors",function(){return bu()});Q("cli",function(){return _u()});Q("combine",function(){return Su()});Q("colorize",function(){return sn()});Q("json",function(){return hs()});Q("label",function(){return Au()});Q("logstash",function(){return Lu()});Q("metadata",function(){return Pu()});Q("ms",function(){return ku()});Q("padLevels",function(){return ss()});Q("prettyPrint",function(){return Fu()});Q("printf",function(){return Bu()});Q("simple",function(){return Gu()});Q("splat",function(){return Vu()});Q("timestamp",function(){return Qu()});Q("uncolorize",function(){return Xu()})});var vs=d(dn=>{"use strict";var{format:ef}=require("util");dn.warn={deprecated(t){return()=>{throw new Error(ef("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([ef("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
56
|
-
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=dn.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=dn.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var tf=d((u2,Jm)=>{Jm.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 nf=d((f2,rf)=>{rf.exports=require("util").deprecate});var bs=d((c2,sf)=>{sf.exports=require("stream")});var _s=d((h2,af)=>{"use strict";function Km(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(ws,this,t)):process.nextTick(ws,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(pn,r):(r._writableState.errorEmitted=!0,process.nextTick(of,r,s)):process.nextTick(of,r,s):e?(process.nextTick(pn,r),e(s)):process.nextTick(pn,r)}),this)}function of(t,e){ws(t,e),pn(t)}function pn(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Qm(){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 ws(t,e){t.emit("error",e)}function Zm(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}af.exports={destroy:Km,undestroy:Qm,errorOrDestroy:Zm}});var ke=d((d2,ff)=>{"use strict";var uf={};function he(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=t,uf[t]=i}function lf(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 Xm(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function e0(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function t0(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}he("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);he("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Xm(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(e0(t," argument"))i=`The ${t} ${n} ${lf(e,"type")}`;else{let s=t0(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${lf(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);he("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");he("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});he("ERR_STREAM_PREMATURE_CLOSE","Premature close");he("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});he("ERR_MULTIPLE_CALLBACK","Callback called multiple times");he("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");he("ERR_STREAM_WRITE_AFTER_END","write after end");he("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);he("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);he("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ff.exports.codes=uf});var xs=d((p2,cf)=>{"use strict";var r0=ke().codes.ERR_INVALID_OPT_VALUE;function n0(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function i0(t,e,r,n){var i=n0(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new r0(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}cf.exports={getHighWaterMark:i0}});var hf=d((g2,Ss)=>{typeof Object.create=="function"?Ss.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ss.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 St=d((m2,Os)=>{try{if(Es=require("util"),typeof Es.inherits!="function")throw"";Os.exports=Es.inherits}catch{Os.exports=hf()}var Es});var vf=d((y2,yf)=>{"use strict";function df(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 pf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?df(Object(r),!0).forEach(function(n){s0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function s0(t,e,r){return e=mf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gf(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,mf(n.key),n)}}function a0(t,e,r){return e&&gf(t.prototype,e),r&&gf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mf(t){var e=l0(t,"string");return typeof e=="symbol"?e:String(e)}function l0(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 u0=require("buffer"),gn=u0.Buffer,f0=require("util"),Ms=f0.inspect,c0=Ms&&Ms.custom||"inspect";function h0(t,e,r){gn.prototype.copy.call(t,e,r)}yf.exports=(function(){function t(){o0(this,t),this.head=null,this.tail=null,this.length=0}return a0(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 gn.alloc(0);for(var n=gn.allocUnsafe(r>>>0),i=this.head,s=0;i;)h0(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=gn.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:c0,value:function(r,n){return Ms(this,pf(pf({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var _f=d((Rs,wf)=>{var mn=require("buffer"),xe=mn.Buffer;function bf(t,e){for(var r in t)e[r]=t[r]}xe.from&&xe.alloc&&xe.allocUnsafe&&xe.allocUnsafeSlow?wf.exports=mn:(bf(mn,Rs),Rs.Buffer=Xe);function Xe(t,e,r){return xe(t,e,r)}Xe.prototype=Object.create(xe.prototype);bf(xe,Xe);Xe.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return xe(t,e,r)};Xe.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=xe(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Xe.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return xe(t)};Xe.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return mn.SlowBuffer(t)}});var qs=d(Sf=>{"use strict";var As=_f().Buffer,xf=As.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 d0(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 p0(t){var e=d0(t);if(typeof e!="string"&&(As.isEncoding===xf||!xf(t)))throw new Error("Unknown encoding: "+t);return e||t}Sf.StringDecoder=or;function or(t){this.encoding=p0(t);var e;switch(this.encoding){case"utf16le":this.text=w0,this.end=_0,e=4;break;case"utf8":this.fillLast=y0,e=4;break;case"base64":this.text=x0,this.end=S0,e=3;break;default:this.write=E0,this.end=O0;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=As.allocUnsafe(e)}or.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||""};or.prototype.end=b0;or.prototype.text=v0;or.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Cs(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function g0(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Cs(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Cs(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Cs(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function m0(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 y0(t){var e=this.lastTotal-this.lastNeed,r=m0(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 v0(t,e){var r=g0(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 b0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function w0(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 _0(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 x0(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 S0(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function E0(t){return t.toString(this.encoding)}function O0(t){return t&&t.length?this.write(t):""}});var yn=d((b2,Mf)=>{"use strict";var Ef=ke().codes.ERR_STREAM_PREMATURE_CLOSE;function M0(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 R0(){}function C0(t){return t.setHeader&&typeof t.abort=="function"}function Of(t,e,r){if(typeof e=="function")return Of(t,null,e);e||(e={}),r=M0(r||R0);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){n=!1,l=!0,i||r.call(t)},f=function(h){r.call(t,h)},p=function(){var h;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(h=new Ef),r.call(t,h);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(h=new Ef),r.call(t,h)},c=function(){t.req.on("finish",a)};return C0(t)?(t.on("complete",a),t.on("abort",p),t.req?c():t.on("request",c)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",a),t.removeListener("abort",p),t.removeListener("request",c),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",f),t.removeListener("close",p)}}Mf.exports=Of});var Cf=d((w2,Rf)=>{"use strict";var vn;function je(t,e,r){return e=A0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function A0(t){var e=q0(t,"string");return typeof e=="symbol"?e:String(e)}function q0(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 L0=yn(),$e=Symbol("lastResolve"),et=Symbol("lastReject"),ar=Symbol("error"),bn=Symbol("ended"),tt=Symbol("lastPromise"),Ls=Symbol("handlePromise"),rt=Symbol("stream");function Fe(t,e){return{value:t,done:e}}function T0(t){var e=t[$e];if(e!==null){var r=t[rt].read();r!==null&&(t[tt]=null,t[$e]=null,t[et]=null,e(Fe(r,!1)))}}function P0(t){process.nextTick(T0,t)}function N0(t,e){return function(r,n){t.then(function(){if(e[bn]){r(Fe(void 0,!0));return}e[Ls](r,n)},n)}}var I0=Object.getPrototypeOf(function(){}),D0=Object.setPrototypeOf((vn={get stream(){return this[rt]},next:function(){var e=this,r=this[ar];if(r!==null)return Promise.reject(r);if(this[bn])return Promise.resolve(Fe(void 0,!0));if(this[rt].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[ar]?a(e[ar]):o(Fe(void 0,!0))})});var n=this[tt],i;if(n)i=new Promise(N0(n,this));else{var s=this[rt].read();if(s!==null)return Promise.resolve(Fe(s,!1));i=new Promise(this[Ls])}return this[tt]=i,i}},je(vn,Symbol.asyncIterator,function(){return this}),je(vn,"return",function(){var e=this;return new Promise(function(r,n){e[rt].destroy(null,function(i){if(i){n(i);return}r(Fe(void 0,!0))})})}),vn),I0),k0=function(e){var r,n=Object.create(D0,(r={},je(r,rt,{value:e,writable:!0}),je(r,$e,{value:null,writable:!0}),je(r,et,{value:null,writable:!0}),je(r,ar,{value:null,writable:!0}),je(r,bn,{value:e._readableState.endEmitted,writable:!0}),je(r,Ls,{value:function(s,o){var a=n[rt].read();a?(n[tt]=null,n[$e]=null,n[et]=null,s(Fe(a,!1))):(n[$e]=s,n[et]=o)},writable:!0}),r));return n[tt]=null,L0(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[et];s!==null&&(n[tt]=null,n[$e]=null,n[et]=null,s(i)),n[ar]=i;return}var o=n[$e];o!==null&&(n[tt]=null,n[$e]=null,n[et]=null,o(Fe(void 0,!0))),n[bn]=!0}),e.on("readable",P0.bind(null,n)),n};Rf.exports=k0});var Tf=d((_2,Lf)=>{"use strict";function Af(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(n,i)}function j0(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){Af(s,n,i,o,a,"next",l)}function a(l){Af(s,n,i,o,a,"throw",l)}o(void 0)})}}function qf(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 $0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qf(Object(r),!0).forEach(function(n){F0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function F0(t,e,r){return e=B0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function B0(t){var e=U0(t,"string");return typeof e=="symbol"?e:String(e)}function U0(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 z0=ke().codes.ERR_INVALID_ARG_TYPE;function G0(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 z0("iterable",["Iterable"],e);var i=new t($0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=j0(function*(){try{var l=yield n.next(),u=l.value,f=l.done;f?i.push(null):i.push(yield u)?o():s=!1}catch(p){i.destroy(p)}}),a.apply(this,arguments)}return i}Lf.exports=G0});var Bs=d((S2,Uf)=>{"use strict";Uf.exports=q;var Et;q.ReadableState=Df;var x2=require("events").EventEmitter,If=function(e,r){return e.listeners(r).length},ur=bs(),wn=require("buffer").Buffer,W0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function H0(t){return wn.from(t)}function V0(t){return wn.isBuffer(t)||t instanceof W0}var Ts=require("util"),C;Ts&&Ts.debuglog?C=Ts.debuglog("stream"):C=function(){};var Y0=vf(),$s=_s(),J0=xs(),K0=J0.getHighWaterMark,_n=ke().codes,Q0=_n.ERR_INVALID_ARG_TYPE,Z0=_n.ERR_STREAM_PUSH_AFTER_EOF,X0=_n.ERR_METHOD_NOT_IMPLEMENTED,ey=_n.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ot,Ps,Ns;St()(q,ur);var lr=$s.errorOrDestroy,Is=["error","close","destroy","pause","resume"];function ty(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 Df(t,e,r){Et=Et||nt(),t=t||{},typeof r!="boolean"&&(r=e instanceof Et),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=K0(this,t,"readableHighWaterMark",r),this.buffer=new Y0,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&&(Ot||(Ot=qs().StringDecoder),this.decoder=new Ot(t.encoding),this.encoding=t.encoding)}function q(t){if(Et=Et||nt(),!(this instanceof q))return new q(t);var e=this instanceof Et;this._readableState=new Df(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ur.call(this)}Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});q.prototype.destroy=$s.destroy;q.prototype._undestroy=$s.undestroy;q.prototype._destroy=function(t,e){e(t)};q.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=wn.from(t,e),e=""),n=!0),kf(this,t,e,!1,n)};q.prototype.unshift=function(t){return kf(this,t,null,!0,!1)};function kf(t,e,r,n,i){C("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,iy(t,s);else{var o;if(i||(o=ry(s,e)),o)lr(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==wn.prototype&&(e=H0(e)),n)s.endEmitted?lr(t,new ey):Ds(t,s,e,!0);else if(s.ended)lr(t,new Z0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?Ds(t,s,e,!1):js(t,s)):Ds(t,s,e,!1)}else n||(s.reading=!1,js(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Ds(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&&xn(t)),js(t,e)}function ry(t,e){var r;return!V0(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Q0("chunk",["string","Buffer","Uint8Array"],e)),r}q.prototype.isPaused=function(){return this._readableState.flowing===!1};q.prototype.setEncoding=function(t){Ot||(Ot=qs().StringDecoder);var e=new Ot(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 Pf=1073741824;function ny(t){return t>=Pf?t=Pf:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Nf(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=ny(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}q.prototype.read=function(t){C("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 C("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ks(this):xn(this),null;if(t=Nf(t,e),t===0&&e.ended)return e.length===0&&ks(this),null;var n=e.needReadable;C("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,C("length less than watermark",n)),e.ended||e.reading?(n=!1,C("reading or ended",n)):n&&(C("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Nf(r,e)));var i;return t>0?i=Ff(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&&ks(this)),i!==null&&this.emit("data",i),i};function iy(t,e){if(C("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?xn(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,jf(t)))}}function xn(t){var e=t._readableState;C("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(C("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(jf,t))}function jf(t){var e=t._readableState;C("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,Fs(t)}function js(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(sy,t,e))}function sy(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(C("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}q.prototype._read=function(t){lr(this,new X0("_read()"))};q.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,C("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:y;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(v,w){C("onunpipe"),v===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,f())}function a(){C("onend"),t.end()}var l=oy(r);t.on("drain",l);var u=!1;function f(){C("cleanup"),t.removeListener("close",g),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",c),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",p),u=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",p);function p(v){C("ondata");var w=t.write(v);C("dest.write",w),w===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Bf(n.pipes,t)!==-1)&&!u&&(C("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(v){C("onerror",v),y(),t.removeListener("error",c),If(t,"error")===0&&lr(t,v)}ty(t,"error",c);function g(){t.removeListener("finish",h),y()}t.once("close",g);function h(){C("onfinish"),t.removeListener("close",g),y()}t.once("finish",h);function y(){C("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(C("pipe resume"),r.resume()),t};function oy(t){return function(){var r=t._readableState;C("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&If(t,"data")&&(r.flowing=!0,Fs(t))}}q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Bf(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};q.prototype.on=function(t,e){var r=ur.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,C("on readable",n.length,n.reading),n.length?xn(this):n.reading||process.nextTick(ay,this)),r};q.prototype.addListener=q.prototype.on;q.prototype.removeListener=function(t,e){var r=ur.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick($f,this),r};q.prototype.removeAllListeners=function(t){var e=ur.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick($f,this),e};function $f(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 ay(t){C("readable nexttick read 0"),t.read(0)}q.prototype.resume=function(){var t=this._readableState;return t.flowing||(C("resume"),t.flowing=!t.readableListening,ly(this,t)),t.paused=!1,this};function ly(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(uy,t,e))}function uy(t,e){C("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Fs(t),e.flowing&&!e.reading&&t.read(0)}q.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Fs(t){var e=t._readableState;for(C("flow",e.flowing);e.flowing&&t.read()!==null;);}q.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(C("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(C("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(a){return function(){return t[a].apply(t,arguments)}})(i));for(var s=0;s<Is.length;s++)t.on(Is[s],this.emit.bind(this,Is[s]));return this._read=function(o){C("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(q.prototype[Symbol.asyncIterator]=function(){return Ps===void 0&&(Ps=Cf()),Ps(this)});Object.defineProperty(q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});q._fromList=Ff;Object.defineProperty(q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ff(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 ks(t){var e=t._readableState;C("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(fy,e,t))}function fy(t,e){if(C("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(q.from=function(t,e){return Ns===void 0&&(Ns=Tf()),Ns(q,t,e)});function Bf(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var nt=d((E2,Gf)=>{"use strict";var cy=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Gf.exports=Se;var zf=Bs(),zs=On();St()(Se,zf);for(Us=cy(zs.prototype),Sn=0;Sn<Us.length;Sn++)En=Us[Sn],Se.prototype[En]||(Se.prototype[En]=zs.prototype[En]);var Us,En,Sn;function Se(t){if(!(this instanceof Se))return new Se(t);zf.call(this,t),zs.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",hy)))}Object.defineProperty(Se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function hy(){this._writableState.ended||process.nextTick(dy,this)}function dy(t){t.end()}Object.defineProperty(Se.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 On=d((O2,Kf)=>{"use strict";Kf.exports=F;function Hf(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Fy(e,t)}}var Mt;F.WritableState=cr;var py={deprecate:nf()},Vf=bs(),Rn=require("buffer").Buffer,gy=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function my(t){return Rn.from(t)}function yy(t){return Rn.isBuffer(t)||t instanceof gy}var Ws=_s(),vy=xs(),by=vy.getHighWaterMark,Be=ke().codes,wy=Be.ERR_INVALID_ARG_TYPE,_y=Be.ERR_METHOD_NOT_IMPLEMENTED,xy=Be.ERR_MULTIPLE_CALLBACK,Sy=Be.ERR_STREAM_CANNOT_PIPE,Ey=Be.ERR_STREAM_DESTROYED,Oy=Be.ERR_STREAM_NULL_VALUES,My=Be.ERR_STREAM_WRITE_AFTER_END,Ry=Be.ERR_UNKNOWN_ENCODING,Rt=Ws.errorOrDestroy;St()(F,Vf);function Cy(){}function cr(t,e,r){Mt=Mt||nt(),t=t||{},typeof r!="boolean"&&(r=e instanceof Mt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=by(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){Iy(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 Hf(this)}cr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(cr.prototype,"buffer",{get:py.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Mn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Mn=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return Mn.call(this,e)?!0:this!==F?!1:e&&e._writableState instanceof cr}})):Mn=function(e){return e instanceof this};function F(t){Mt=Mt||nt();var e=this instanceof Mt;if(!e&&!Mn.call(F,this))return new F(t);this._writableState=new cr(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)),Vf.call(this)}F.prototype.pipe=function(){Rt(this,new Sy)};function Ay(t,e){var r=new My;Rt(t,r),process.nextTick(e,r)}function qy(t,e,r,n){var i;return r===null?i=new Oy:typeof r!="string"&&!e.objectMode&&(i=new wy("chunk",["string","Buffer"],r)),i?(Rt(t,i),process.nextTick(n,i),!1):!0}F.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&yy(t);return s&&!Rn.isBuffer(t)&&(t=my(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=Cy),n.ending?Ay(this,r):(s||qy(this,n,t,r))&&(n.pendingcb++,i=Ty(this,n,s,t,e,r)),i};F.prototype.cork=function(){this._writableState.corked++};F.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Yf(this,t))};F.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Ry(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ly(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Rn.from(e,r)),e}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ty(t,e,r,n,i,s){if(!r){var o=Ly(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}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 u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Gs(t,e,!1,a,n,i,s);return l}function Gs(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ey("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Py(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(fr,t,e),t._writableState.errorEmitted=!0,Rt(t,n)):(i(n),t._writableState.errorEmitted=!0,Rt(t,n),fr(t,e))}function Ny(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Iy(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new xy;if(Ny(r),e)Py(t,r,n,e,i);else{var s=Jf(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Yf(t,r),n?process.nextTick(Wf,t,r,s,i):Wf(t,r,s,i)}}function Wf(t,e,r,n){r||Dy(t,e),e.pendingcb--,n(),fr(t,e)}function Dy(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Yf(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Gs(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Hf(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,p=e.objectMode?1:l.length;if(Gs(t,e,!1,p,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}F.prototype._write=function(t,e,r){r(new _y("_write()"))};F.prototype._writev=null;F.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||$y(this,n,r),this};Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jf(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function ky(t,e){t._final(function(r){e.pendingcb--,r&&Rt(t,r),e.prefinished=!0,t.emit("prefinish"),fr(t,e)})}function jy(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(ky,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function fr(t,e){var r=Jf(e);if(r&&(jy(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 $y(t,e,r){e.ending=!0,fr(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Fy(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});F.prototype.destroy=Ws.destroy;F.prototype._undestroy=Ws.undestroy;F.prototype._destroy=function(t,e){e(t)}});var Hs=d((M2,Xf)=>{"use strict";var By=require("util"),Qf=On(),{LEVEL:Zf}=G(),hr=Xf.exports=function(e={}){Qf.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())})};By.inherits(hr,Qf);hr.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[Zf]]){if(e&&!this.format)return this.log(e,n);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(a){s=a}if(s||!o){if(n(),s)throw s;return}return this.log(o,n)}return this._writableState.sync=!1,n(null)};hr.prototype._writev=function(e,r){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,r):r(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,s;try{s=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(o){i=o}if(i||!s){if(e[n].callback(),i)throw r(null),i}else this.log(s,e[n].callback)}return r(null)};hr.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[Zf]])&&(this.handleExceptions||r.exception!==!0))};hr.prototype._nop=function(){}});var Ys=d((R2,tc)=>{"use strict";var Uy=require("util"),{LEVEL:Vs}=G(),ec=Hs(),dr=tc.exports=function(e={}){if(ec.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))};Uy.inherits(dr,ec);dr.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[Vs]])&&this.transport.log(e[Vs],e.message,e,this._nop),n(null)};dr.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Vs],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};dr.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(`
|
|
57
|
-
`))};dr.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Ct=d((C2,Js)=>{"use strict";Js.exports=Hs();Js.exports.LegacyTransportStream=Ys()});var ic=d((q2,nc)=>{"use strict";var zy=require("os"),{LEVEL:rc,MESSAGE:At}=G(),Gy=Ct();nc.exports=class extends Gy{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:zy.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[rc]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[At]}${this.eol}`):this._consoleError(e[At]),r&&r();return}else if(this.consoleWarnLevels[e[rc]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[At]}${this.eol}`):this._consoleWarn(e[At]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[At]}${this.eol}`):this._consoleLog(e[At]),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 An=d((Cn,sc)=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=Wy;function Wy(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}sc.exports=Cn.default});var ac=d((qn,oc)=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};oc.exports=qn.default});var fc=d(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.fallback=lc;Ue.wrap=uc;var Hy=Ue.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Vy=Ue.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Yy=Ue.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function lc(t){setTimeout(t,0)}function uc(t){return(e,...r)=>t(()=>e(...r))}var pr;Hy?pr=queueMicrotask:Vy?pr=setImmediate:Yy?pr=process.nextTick:pr=lc;Ue.default=uc(pr)});var gc=d((Ln,pc)=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.default=ev;var Jy=ac(),Ky=dc(Jy),Qy=fc(),Zy=dc(Qy),Xy=it();function dc(t){return t&&t.__esModule?t:{default:t}}function ev(t){return(0,Xy.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return cc(n,r)}:(0,Ky.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return cc(n,r);r(null,n)})}function cc(t,e){return t.then(r=>{hc(e,null,r)},r=>{hc(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function hc(t,e,r){try{t(e,r)}catch(n){(0,Zy.default)(i=>{throw i},n)}}pc.exports=Ln.default});var it=d(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.isAsyncIterable=qe.isAsyncGenerator=qe.isAsync=void 0;var tv=gc(),rv=nv(tv);function nv(t){return t&&t.__esModule?t:{default:t}}function mc(t){return t[Symbol.toStringTag]==="AsyncFunction"}function iv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function sv(t){return typeof t[Symbol.asyncIterator]=="function"}function ov(t){if(typeof t!="function")throw new Error("expected a function");return mc(t)?(0,rv.default)(t):t}qe.default=ov;qe.isAsync=mc;qe.isAsyncGenerator=iv;qe.isAsyncIterable=sv});var qt=d((Tn,yc)=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.default=av;function av(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((i,s)=>{n[e-1]=(o,...a)=>{if(o)return s(o);i(a.length>1?a:a[0])},t.apply(this,n)})}return r}yc.exports=Tn.default});var bc=d((Pn,vc)=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});var lv=An(),uv=Ks(lv),fv=it(),cv=Ks(fv),hv=qt(),dv=Ks(hv);function Ks(t){return t&&t.__esModule?t:{default:t}}Pn.default=(0,dv.default)((t,e,r)=>{var n=(0,uv.default)(e)?[]:{};t(e,(i,s,o)=>{(0,cv.default)(i)((a,...l)=>{l.length<2&&([l]=l),n[s]=l,o(a)})},i=>r(i,n))},3);vc.exports=Pn.default});var Qs=d((Nn,wc)=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=pv;function pv(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}wc.exports=Nn.default});var xc=d((In,_c)=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};_c.exports=In.default});var Oc=d((Dn,Ec)=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.default=xv;var gv=An(),mv=Sc(gv),yv=xc(),vv=Sc(yv);function Sc(t){return t&&t.__esModule?t:{default:t}}function bv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function wv(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function _v(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var s=e[++r];return s==="__proto__"?i():r<n?{value:t[s],key:s}:null}}function xv(t){if((0,mv.default)(t))return bv(t);var e=(0,vv.default)(t);return e?wv(e):_v(t)}Ec.exports=Dn.default});var Zs=d((kn,Mc)=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.default=Sv;function Sv(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}Mc.exports=kn.default});var $n=d((jn,Rc)=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});var Ev={};jn.default=Ev;Rc.exports=jn.default});var Ac=d((Fn,Cc)=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=Cv;var Ov=$n(),Mv=Rv(Ov);function Rv(t){return t&&t.__esModule?t:{default:t}}function Cv(t,e,r,n){let i=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||i||(o=!0,t.next().then(({value:c,done:g})=>{if(!(s||i)){if(o=!1,g){i=!0,a<=0&&n(null);return}a++,r(c,l,f),l++,u()}}).catch(p))}function f(c,g){if(a-=1,!s){if(c)return p(c);if(c===!1){i=!0,s=!0;return}if(g===Mv.default||i&&a<=0)return i=!0,n(null);u()}}function p(c){s||(o=!1,i=!0,n(c))}u()}Cc.exports=Fn.default});var Pc=d((Bn,Tc)=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});var Av=Qs(),qv=gr(Av),Lv=Oc(),Tv=gr(Lv),Pv=Zs(),Nv=gr(Pv),qc=it(),Iv=Ac(),Lc=gr(Iv),Dv=$n(),kv=gr(Dv);function gr(t){return t&&t.__esModule?t:{default:t}}Bn.default=t=>(e,r,n)=>{if(n=(0,qv.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,qc.isAsyncGenerator)(e))return(0,Lc.default)(e,t,r,n);if((0,qc.isAsyncIterable)(e))return(0,Lc.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,Tv.default)(e),s=!1,o=!1,a=0,l=!1;function u(p,c){if(!o)if(a-=1,p)s=!0,n(p);else if(p===!1)s=!0,o=!0;else{if(c===kv.default||s&&a<=0)return s=!0,n(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var p=i();if(p===null){s=!0,a<=0&&n(null);return}a+=1,r(p.value,p.key,(0,Nv.default)(u))}l=!1}f()};Tc.exports=Bn.default});var eo=d((Un,Nc)=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});var jv=Pc(),$v=Xs(jv),Fv=it(),Bv=Xs(Fv),Uv=qt(),zv=Xs(Uv);function Xs(t){return t&&t.__esModule?t:{default:t}}function Gv(t,e,r,n){return(0,$v.default)(e)(t,(0,Bv.default)(r),n)}Un.default=(0,zv.default)(Gv,4);Nc.exports=Un.default});var kc=d((zn,Dc)=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});var Wv=eo(),Hv=Ic(Wv),Vv=qt(),Yv=Ic(Vv);function Ic(t){return t&&t.__esModule?t:{default:t}}function Jv(t,e,r){return(0,Hv.default)(t,1,e,r)}zn.default=(0,Yv.default)(Jv,3);Dc.exports=zn.default});var Fc=d((Gn,$c)=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.default=e1;var Kv=bc(),Qv=jc(Kv),Zv=kc(),Xv=jc(Zv);function jc(t){return t&&t.__esModule?t:{default:t}}function e1(t,e){return(0,Qv.default)(Xv.default,t,e)}$c.exports=Gn.default});var to=d((P2,Uc)=>{"use strict";Uc.exports=Le;var Wn=ke().codes,t1=Wn.ERR_METHOD_NOT_IMPLEMENTED,r1=Wn.ERR_MULTIPLE_CALLBACK,n1=Wn.ERR_TRANSFORM_ALREADY_TRANSFORMING,i1=Wn.ERR_TRANSFORM_WITH_LENGTH_0,Hn=nt();St()(Le,Hn);function s1(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new r1);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 Le(t){if(!(this instanceof Le))return new Le(t);Hn.call(this,t),this._transformState={afterTransform:s1.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",o1)}function o1(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Bc(t,e,r)}):Bc(this,null,null)}Le.prototype.push=function(t,e){return this._transformState.needTransform=!1,Hn.prototype.push.call(this,t,e)};Le.prototype._transform=function(t,e,r){r(new t1("_transform()"))};Le.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)}};Le.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};Le.prototype._destroy=function(t,e){Hn.prototype._destroy.call(this,t,function(r){e(r)})};function Bc(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new i1;if(t._transformState.transforming)throw new n1;return t.push(null)}});var Wc=d((N2,Gc)=>{"use strict";Gc.exports=mr;var zc=to();St()(mr,zc);function mr(t){if(!(this instanceof mr))return new mr(t);zc.call(this,t)}mr.prototype._transform=function(t,e,r){r(null,t)}});var Kc=d((I2,Jc)=>{"use strict";var ro;function a1(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Yc=ke().codes,l1=Yc.ERR_MISSING_ARGS,u1=Yc.ERR_STREAM_DESTROYED;function Hc(t){if(t)throw t}function f1(t){return t.setHeader&&typeof t.abort=="function"}function c1(t,e,r,n){n=a1(n);var i=!1;t.on("close",function(){i=!0}),ro===void 0&&(ro=yn()),ro(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,f1(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new u1("pipe"))}}}function Vc(t){t()}function h1(t,e){return t.pipe(e)}function d1(t){return!t.length||typeof t[t.length-1]!="function"?Hc:t.pop()}function p1(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=d1(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new l1("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,u=a>0;return c1(o,l,u,function(f){i||(i=f),f&&s.forEach(Vc),!l&&(s.forEach(Vc),n(i))})});return e.reduce(h1)}Jc.exports=p1});var st=d((de,vr)=>{var yr=require("stream");process.env.READABLE_STREAM==="disable"&&yr?(vr.exports=yr.Readable,Object.assign(vr.exports,yr),vr.exports.Stream=yr):(de=vr.exports=Bs(),de.Stream=yr||de,de.Readable=de,de.Writable=On(),de.Duplex=nt(),de.Transform=to(),de.PassThrough=Wc(),de.finished=yn(),de.pipeline=Kc())});var uo=d((D2,Zc)=>{var Lt=[],br=[],no=function(){};function so(t){return~Lt.indexOf(t)?!1:(Lt.push(t),!0)}function oo(t){no=t}function g1(t){for(var e=[],r=0;r<Lt.length;r++){if(Lt[r].async){e.push(Lt[r]);continue}if(Lt[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(o){return o(t)})).then(function(o){i(o.some(Boolean))})}):!1}function ao(t){return~br.indexOf(t)?!1:(br.push(t),!0)}function io(){no.apply(no,arguments)}function Qc(t){for(var e=0;e<br.length;e++)t=br[e].apply(br[e],arguments);return t}function lo(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function m1(t){return t.enabled=!1,t.modify=ao,t.set=oo,t.use=so,lo(function(){return!1},t)}function y1(t){function e(){var r=Array.prototype.slice.call(arguments,0);return io.call(io,t,Qc(r,t)),!0}return t.enabled=!0,t.modify=ao,t.set=oo,t.use=so,lo(e,t)}Zc.exports=function(e){return e.introduce=lo,e.enabled=g1,e.process=Qc,e.modify=ao,e.write=io,e.nope=m1,e.yep=y1,e.set=oo,e.use=so,e}});var eh=d((k2,Xc)=>{var v1=uo(),b1=v1(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)});Xc.exports=b1});var rh=d((j2,th)=>{"use strict";th.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 ih=d(($2,nh)=>{nh.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 ah=d((F2,oh)=>{"use strict";var w1=ih(),_1=Array.prototype.concat,x1=Array.prototype.slice,sh=oh.exports=function(e){for(var r=[],n=0,i=e.length;n<i;n++){var s=e[n];w1(s)?r=_1.call(r,x1.call(s)):r.push(s)}return r};sh.wrap=function(t){return function(){return t(sh(arguments))}}});var ch=d((B2,fh)=>{var wr=rh(),_r=ah(),lh=Object.hasOwnProperty,uh=Object.create(null);for(Vn in wr)lh.call(wr,Vn)&&(uh[wr[Vn]]=Vn);var Vn,ue=fh.exports={to:{},get:{}};ue.get=function(t){var e=t.substring(0,3).toLowerCase(),r,n;switch(e){case"hsl":r=ue.get.hsl(t),n="hsl";break;case"hwb":r=ue.get.hwb(t),n="hwb";break;default:r=ue.get.rgb(t),n="rgb";break}return r?{model:n,value:r}:null};ue.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],a,l,u;if(a=t.match(r)){for(u=a[2],a=a[1],l=0;l<3;l++){var f=l*2;o[l]=parseInt(a.slice(f,f+2),16)}u&&(o[3]=parseInt(u,16)/255)}else if(a=t.match(e)){for(a=a[1],u=a[3],l=0;l<3;l++)o[l]=parseInt(a[l]+a[l],16);u&&(o[3]=parseInt(u+u,16)/255)}else if(a=t.match(n)){for(l=0;l<3;l++)o[l]=parseInt(a[l+1],0);a[4]&&(a[5]?o[3]=parseFloat(a[4])*.01:o[3]=parseFloat(a[4]))}else if(a=t.match(i)){for(l=0;l<3;l++)o[l]=Math.round(parseFloat(a[l+1])*2.55);a[4]&&(a[5]?o[3]=parseFloat(a[4])*.01:o[3]=parseFloat(a[4]))}else return(a=t.match(s))?a[1]==="transparent"?[0,0,0,0]:lh.call(wr,a[1])?(o=wr[a[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=ze(o[l],0,255);return o[3]=ze(o[3],0,1),o};ue.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,s=ze(parseFloat(r[2]),0,100),o=ze(parseFloat(r[3]),0,100),a=ze(isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};ue.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,s=ze(parseFloat(r[2]),0,100),o=ze(parseFloat(r[3]),0,100),a=ze(isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};ue.to.hex=function(){var t=_r(arguments);return"#"+Yn(t[0])+Yn(t[1])+Yn(t[2])+(t[3]<1?Yn(Math.round(t[3]*255)):"")};ue.to.rgb=function(){var t=_r(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ue.to.rgb.percent=function(){var t=_r(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"};ue.to.hsl=function(){var t=_r(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ue.to.hwb=function(){var t=_r(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ue.to.keyword=function(t){return uh[t.slice(0,3)]};function ze(t,e,r){return Math.min(Math.max(e,t),r)}function Yn(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var dh=d((U2,hh)=>{"use strict";hh.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 fo=d((z2,yh)=>{var ot=dh(),mh={};for(Jn in ot)ot.hasOwnProperty(Jn)&&(mh[ot[Jn]]=Jn);var Jn,S=yh.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(re in S)if(S.hasOwnProperty(re)){if(!("channels"in S[re]))throw new Error("missing channels property: "+re);if(!("labels"in S[re]))throw new Error("missing channel labels property: "+re);if(S[re].labels.length!==S[re].channels)throw new Error("channel and label counts mismatch: "+re);ph=S[re].channels,gh=S[re].labels,delete S[re].channels,delete S[re].labels,Object.defineProperty(S[re],"channels",{value:ph}),Object.defineProperty(S[re],"labels",{value:gh})}var ph,gh,re;S.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,l,u;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(i+s)/2,s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};S.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(o,a,l),f=u-Math.min(o,a,l),p=function(c){return(u-c)/6/f+1/2};return f===0?i=s=0:(s=f/u,e=p(o),r=p(a),n=p(l),o===u?i=n-r:a===u?i=1/3+e-n:l===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};S.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=S.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};S.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function S1(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}S.rgb.keyword=function(t){var e=mh[t];if(e)return e;var r=1/0,n;for(var i in ot)if(ot.hasOwnProperty(i)){var s=ot[i],o=S1(t,s);o<r&&(r=o,n=i)}return n};S.keyword.rgb=function(t){return ot[t]};S.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};S.rgb.lab=function(t){var e=S.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};S.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,l;if(r===0)return l=n*255,[l,l,l];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(s-i)*6*o:2*o<1?l=s:3*o<2?l=i+(s-i)*(2/3-o)*6:l=i,a[u]=l*255;return a};S.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};S.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};S.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};S.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,l;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,(s&1)!==0&&(a=1-a),l=r+a*(o-r);var u,f,p;switch(s){default:case 6:case 0:u=o,f=l,p=r;break;case 1:u=l,f=o,p=r;break;case 2:u=r,f=o,p=l;break;case 3:u=r,f=l,p=o;break;case 4:u=l,f=r,p=o;break;case 5:u=o,f=r,p=l;break}return[u*255,f*255,p*255]};S.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};S.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};S.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};S.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),l=Math.pow(i,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};S.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};S.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};S.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:S.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};S.hsv.ansi16=function(t){return S.rgb.ansi16(S.hsv.rgb(t),t[2])};S.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};S.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};S.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};S.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};S.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};S.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===e?l=(r-n)/o%6:i===r?l=2+(n-e)/o:l=4+(e-r)/o+4,l/=6,l%=1,[l*360,o*100,a*100]};S.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};S.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};S.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};S.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};S.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};S.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};S.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};S.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};S.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};S.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};S.gray.hsl=S.gray.hsv=function(t){return[0,0,t[0]]};S.gray.hwb=function(t){return[0,100,t[0]]};S.gray.cmyk=function(t){return[0,0,0,t[0]]};S.gray.lab=function(t){return[t[0],0,0]};S.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};S.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var bh=d((G2,vh)=>{var Kn=fo();function E1(){for(var t={},e=Object.keys(Kn),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function O1(t){var e=E1(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Kn[n]),s=i.length,o=0;o<s;o++){var a=i[o],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}return e}function M1(t,e){return function(r){return e(t(r))}}function R1(t,e){for(var r=[e[t].parent,t],n=Kn[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=M1(Kn[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}vh.exports=function(t){for(var e=O1(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=R1(o,e))}return r}});var _h=d((W2,wh)=>{var co=fo(),C1=bh(),Tt={},A1=Object.keys(co);function q1(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function L1(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}A1.forEach(function(t){Tt[t]={},Object.defineProperty(Tt[t],"channels",{value:co[t].channels}),Object.defineProperty(Tt[t],"labels",{value:co[t].labels});var e=C1(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];Tt[t][n]=L1(i),Tt[t][n].raw=q1(i)})});wh.exports=Tt});var Eh=d((H2,Sh)=>{"use strict";var xr=ch(),fe=_h(),go=[].slice,xh=["keyword","gray","hex"],ho={};Object.keys(fe).forEach(function(t){ho[go.call(fe[t].labels).sort().join("")]=t});var Qn={};function Z(t,e){if(!(this instanceof Z))return new Z(t,e);if(e&&e in xh&&(e=null),e&&!(e in fe))throw new Error("Unknown model: "+e);var r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Z)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var i=xr.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=fe[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(t.length){this.model=e||"rgb",n=fe[this.model].channels;var s=go.call(t,0,n);this.color=po(s,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var a=o.sort().join("");if(!(a in ho))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=ho[a];var l=fe[this.model].labels,u=[];for(r=0;r<l.length;r++)u.push(t[l[r]]);this.color=po(u)}if(Qn[this.model])for(n=fe[this.model].channels,r=0;r<n;r++){var f=Qn[this.model][r];f&&(this.color[r]=f(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Z.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in xr.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var r=e.valpha===1?e.color:e.color.concat(this.valpha);return xr.to[e.model](r)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),r=e.valpha===1?e.color:e.color.concat(this.valpha);return xr.to.rgb.percent(r)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=fe[this.model].channels,r=fe[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new Z(this.color.map(P1(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new Z(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:B("rgb",0,W(255)),green:B("rgb",1,W(255)),blue:B("rgb",2,W(255)),hue:B(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:B("hsl",1,W(100)),lightness:B("hsl",2,W(100)),saturationv:B("hsv",1,W(100)),value:B("hsv",2,W(100)),chroma:B("hcg",1,W(100)),gray:B("hcg",2,W(100)),white:B("hwb",1,W(100)),wblack:B("hwb",2,W(100)),cyan:B("cmyk",0,W(100)),magenta:B("cmyk",1,W(100)),yellow:B("cmyk",2,W(100)),black:B("cmyk",3,W(100)),x:B("xyz",0,W(100)),y:B("xyz",1,W(100)),z:B("xyz",2,W(100)),l:B("lab",0,W(100)),a:B("lab",1),b:B("lab",2),keyword:function(t){return arguments.length?new Z(t):fe[this.model].keyword(this.color)},hex:function(t){return arguments.length?new Z(t):xr.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return Z.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),i=e===void 0?.5:e,s=2*i-1,o=r.alpha()-n.alpha(),a=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,l=1-a;return Z.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))}};Object.keys(fe).forEach(function(t){if(xh.indexOf(t)===-1){var e=fe[t].channels;Z.prototype[t]=function(){if(this.model===t)return new Z(this);if(arguments.length)return new Z(arguments,t);var r=typeof arguments[e]=="number"?e:this.valpha;return new Z(N1(fe[this.model][t].raw(this.color)).concat(r),t)},Z[t]=function(r){return typeof r=="number"&&(r=po(go.call(arguments),e)),new Z(r,t)}}});function T1(t,e){return Number(t.toFixed(e))}function P1(t){return function(e){return T1(e,t)}}function B(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Qn[n]||(Qn[n]=[]))[e]=r}),t=t[0],function(n){var i;return arguments.length?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function W(t){return function(e){return Math.max(0,Math.min(t,e))}}function N1(t){return Array.isArray(t)?t:[t]}function po(t,e){for(var r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}Sh.exports=Z});var Mh=d((V2,Oh)=>{"use strict";Oh.exports=function(e){for(var r=0,n=0;r<e.length;n=e.charCodeAt(r++)+((n<<5)-n));var i=Math.floor(Math.abs(Math.sin(n)*1e4%1*16777216)).toString(16);return"#"+Array(6-i.length+1).join("0")+i}});var qh=d((Y2,Ah)=>{"use strict";var Rh=Eh(),Ch=Mh();Ah.exports=function(e,r){var n=e.split(r||":"),i=Ch(n[0]);if(!n.length)return i;for(var s=0,o=n.length-1;s<o;s++)i=Rh(i).mix(Rh(Ch(n[s+1]))).saturate(1).hex();return i}});var Th=d((J2,Lh)=>{"use strict";function ve(t,e){if(e)return new ve(t).style(e);if(!(this instanceof ve))return new ve(t);this.text=t}ve.prototype.prefix="\x1B[";ve.prototype.suffix="m";ve.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)]};ve.prototype.rgb=function(e,r,n){var i=e/255*5,s=r/255*5,o=n/255*5;return this.ansi(i,s,o)};ve.prototype.ansi=function(e,r,n){var i=Math.round(e),s=Math.round(r),o=Math.round(n);return 16+i*36+s*6+o};ve.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ve.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Lh.exports=ve});var Nh=d((K2,Ph)=>{var I1=qh(),D1=Th();Ph.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?D1(n+":",I1(n)):n+":";return e[0]=i+" "+e[0],e}});var Dh=d((Q2,Ih)=>{"use strict";Ih.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 jh=d((Z2,kh)=>{var k1=Dh();kh.exports=function(e){return function(n){try{return k1(n,e())}catch{}return!1}}});var Fh=d((X2,$h)=>{var j1=jh();$h.exports=j1(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Uh=d((ex,Bh)=>{Bh.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Gh=d((tx,zh)=>{var $1=uo(),F1=require("tty").isatty(1),Zn=$1(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:F1,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Zn.modify(Nh());Zn.use(Fh());Zn.set(Uh());zh.exports=Zn});var Sr=d((rx,mo)=>{process.env.NODE_ENV==="production"?mo.exports=eh():mo.exports=Gh()});var Hh=d((nx,Wh)=>{"use strict";var yo=require("fs"),{StringDecoder:B1}=require("string_decoder"),{Stream:U1}=st();function z1(){}Wh.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new B1("utf8"),i=new U1,s="",o=0,a=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},yo.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):i.emit("error",l),i.destroy();return}(function f(){if(i.destroyed){yo.close(u,z1);return}return yo.read(u,r,0,r.length,o,(p,c)=>{if(p){e?e(p):i.emit("error",p),i.destroy();return}if(!c)return s&&((t.start==null||a>t.start)&&(e?e(null,s):i.emit("line",s)),a++,s=""),setTimeout(f,1e3);let g=n.write(r.slice(0,c));e||i.emit("data",g),g=(s+g).split(/\n+/);let h=g.length-1,y=0;for(;y<h;y++)(t.start==null||a>t.start)&&(e?e(null,g[y]):i.emit("line",g[y])),a++;return s=g[h],o+=c,f()})})()}),e?i.destroy:i}});var Kh=d((sx,Jh)=>{"use strict";var se=require("fs"),V=require("path"),Vh=Fc(),G1=require("zlib"),{MESSAGE:W1}=G(),{Stream:H1,PassThrough:Yh}=st(),V1=Ct(),be=Sr()("winston:file"),Y1=require("os"),J1=Hh();Jh.exports=class extends V1{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${n} together`)})}if(this._stream=new Yh,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)r("filename or dirname","stream"),this._basename=this.filename=e.filename?V.basename(e.filename):"winston.log",this.dirname=e.dirname||V.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),r("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=V.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:Y1.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[W1]}${this.eol}`,i=Buffer.byteLength(n);function s(){if(this._size+=i,this._pendingSize-=i,be("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(n,s.bind(this));return o?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),be("written",o,this._drain),this.finishIfEnding(),o}query(e,r){typeof e=="function"&&(r=e,e={}),e=p(e);let n=V.join(this.dirname,this.filename),i="",s=[],o=0,a=se.createReadStream(n,{encoding:"utf8"});a.on("error",c=>{if(a.readable&&a.destroy(),!!r)return c.code!=="ENOENT"?r(c):r(null,s)}),a.on("data",c=>{c=(i+c).split(/\n+/);let g=c.length-1,h=0;for(;h<g;h++)(!e.start||o>=e.start)&&l(c[h]),o++;i=c[g]}),a.on("close",()=>{i&&l(i,!0),e.order==="desc"&&(s=s.reverse()),r&&r(null,s)});function l(c,g){try{let h=JSON.parse(c);f(h)&&u(h)}catch(h){g||a.emit("error",h)}}function u(c){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){a.readable&&a.destroy();return}e.fields&&(c=e.fields.reduce((g,h)=>(g[h]=c[h],g),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(c)}function f(c){if(!c||typeof c!="object")return;let g=new Date(c.timestamp);if(!(e.from&&g<e.from||e.until&&g>e.until||e.level&&e.level!==c.level))return!0}function p(c){return c=c||{},c.rows=c.rows||c.limit||10,c.start=c.start||0,c.until=c.until||new Date,typeof c.until!="object"&&(c.until=new Date(c.until)),c.from=c.from||c.until-1440*60*1e3,typeof c.from!="object"&&(c.from=new Date(c.from)),c.order=c.order||"desc",c}}stream(e={}){let r=V.join(this.dirname,this.filename),n=new H1,i={file:r,start:e.start};return n.destroy=J1(i,(s,o)=>{if(s)return n.emit("error",s);try{n.emit("data",o),o=JSON.parse(o),n.emit("log",o)}catch(a){n.emit("error",a)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,r)=>{if(e)return this.emit("error",e);be("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=V.join(this.dirname,r);se.stat(n,(i,s)=>{if(i&&i.code==="ENOENT")return be("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return be(`err ${i.code} ${n}`),e(i);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let r=V.join(this.dirname,this.filename);be("create stream start",r,this.options);let n=se.createWriteStream(r,this.options).on("error",i=>be(i)).on("close",()=>be("close",n.path,n.bytesWritten)).on("open",()=>{be("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new Yh,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return be("create stream ok",r),n}_incFile(e){be("_incFile",this.filename);let r=V.extname(this._basename),n=V.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(V.join(this.dirname,`${n}${o}${r}`),V.join(this.dirname,`${n}${o}${r}.gz`),s)}.bind(this)),i.push(function(s){this.tailable?this._checkMaxFilesTailable(r,n,s):(this._created+=1,this._checkMaxFilesIncrementing(r,n,s))}.bind(this)),Vh(i,e)}_getFile(){let e=V.extname(this._basename),r=V.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${n}${e}`:`${r}${e}`}_checkMaxFilesIncrementing(e,r,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,s=i!==0?i:"",o=this.zippedArchive?".gz":"",a=`${r}${s}${e}${o}`,l=V.join(this.dirname,a);se.unlink(l,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)i.push(function(a,l){let u=`${r}${a-1}${e}${s}`,f=V.join(this.dirname,u);se.exists(f,p=>{if(!p)return l(null);u=`${r}${a}${e}${s}`,se.rename(f,V.join(this.dirname,u),l)})}.bind(this,o));Vh(i,()=>{se.rename(V.join(this.dirname,`${r}${e}${s}`),V.join(this.dirname,`${r}1${e}${s}`),n)})}_compressFile(e,r,n){se.access(e,se.F_OK,i=>{if(i)return n();var s=G1.createGzip(),o=se.createReadStream(e),a=se.createWriteStream(r);a.on("finish",()=>{se.unlink(e,n)}),o.pipe(s).pipe(a)})}_createLogDirIfNotExist(e){se.existsSync(e)||se.mkdirSync(e,{recursive:!0})}}});var Zh=d((ax,Qh)=>{"use strict";var K1=require("http"),Q1=require("https"),{Stream:Z1}=st(),X1=Ct(),{configure:eb}=ir();Qh.exports=class extends X1{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,r){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),r&&setImmediate(r)}query(e,r){typeof e=="function"&&(r=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(s,o,a)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return r(s);if(typeof a=="string")try{a=JSON.parse(a)}catch(l){return r(l)}r(null,a)})}stream(e={}){let r=new Z1;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,i,n);return r.destroy=()=>o.destroy(),o.on("data",a=>{a=(s+a).split(/\n+/);let l=a.length-1,u=0;for(;u<l;u++)try{r.emit("log",JSON.parse(a[u]))}catch(f){r.emit("error",f)}s=a[l]}),o.on("error",a=>r.emit("error",a)),r}_request(e,r,n,i){e=e||{},r=r||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,r,n):this._doRequest(e,i,r,n)}_doBatch(e,r,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,r,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,r,n)}_doRequest(e,r,n,i){let s=Object.assign({},this.headers);n&&n.bearer&&(s.Authorization=`Bearer ${n.bearer}`);let o=(this.ssl?Q1:K1).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:s,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});o.on("error",r),o.on("response",l=>l.on("end",()=>r(null,l)).resume());let a=eb({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var vo=d((lx,Xh)=>{"use strict";var Ee=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ee.writable=t=>Ee(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ee.readable=t=>Ee(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Ee.duplex=t=>Ee.writable(t)&&Ee.readable(t);Ee.transform=t=>Ee.duplex(t)&&typeof t._transform=="function";Xh.exports=Ee});var td=d((fx,ed)=>{"use strict";var tb=vo(),{MESSAGE:rb}=G(),nb=require("os"),ib=Ct();ed.exports=class extends ib{constructor(e={}){if(super(e),!e.stream||!tb(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:nb.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[rb]}${this.eol}`),r&&r()}}});var rd=d(Er=>{"use strict";Object.defineProperty(Er,"Console",{configurable:!0,enumerable:!0,get(){return ic()}});Object.defineProperty(Er,"File",{configurable:!0,enumerable:!0,get(){return Kh()}});Object.defineProperty(Er,"Http",{configurable:!0,enumerable:!0,get(){return Zh()}});Object.defineProperty(Er,"Stream",{configurable:!0,enumerable:!0,get(){return td()}})});var ei=d(Or=>{"use strict";var Xn=ys(),{configs:bo}=G();Or.cli=Xn.levels(bo.cli);Or.npm=Xn.levels(bo.npm);Or.syslog=Xn.levels(bo.syslog);Or.addColors=Xn.levels});var id=d((ti,nd)=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});var sb=An(),ob=at(sb),ab=$n(),lb=at(ab),ub=eo(),fb=at(ub),cb=Qs(),hb=at(cb),db=Zs(),pb=at(db),gb=it(),mb=at(gb),yb=qt(),vb=at(yb);function at(t){return t&&t.__esModule?t:{default:t}}function bb(t,e,r){r=(0,hb.default)(r);var n=0,i=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++i===s||u===lb.default)&&r(null))}for(;n<s;n++)e(t[n],n,(0,pb.default)(a))}function wb(t,e,r){return(0,fb.default)(t,1/0,e,r)}function _b(t,e,r){var n=(0,ob.default)(t)?bb:wb;return n(t,(0,mb.default)(e),r)}ti.default=(0,vb.default)(_b,3);nd.exports=ti.default});var od=d((ri,sd)=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.default=xb;function xb(t){return(e,r,n)=>t(e,n)}sd.exports=ri.default});var si=d((ii,ad)=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});var Sb=id(),Eb=ni(Sb),Ob=od(),Mb=ni(Ob),Rb=it(),Cb=ni(Rb),Ab=qt(),qb=ni(Ab);function ni(t){return t&&t.__esModule?t:{default:t}}function Lb(t,e,r){return(0,Eb.default)(t,(0,Mb.default)((0,Cb.default)(e)),r)}ii.default=(0,qb.default)(Lb,3);ad.exports=ii.default});var ud=d((dx,ld)=>{"use strict";var Tb=Object.prototype.toString;ld.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=Tb.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var wo=d((px,fd)=>{"use strict";var Pb=ud();fd.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=Pb(e),i}});var _o=d(Rr=>{Rr.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(r,t||Rr.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Rr.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
|
|
58
|
-
`).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var s=null,o=null,a=null,l=null,u=null,f=i[5]==="native";if(i[1]){a=i[1];var
|
|
59
|
-
`),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:
|
|
60
|
-
`),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:
|
|
61
|
-
`));h&&this.exceptions.handle(h),y&&this.rejections.handle(y)}isLevelEnabled(e){let r=
|
|
62
|
-
`))}_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
|
|
63
|
-
\u21B3 reason: ${c} ${h}`}),n=
|
|
50
|
+
${w}`),y.pop(),`{${M}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function f(g,h,y,b,_){switch(typeof h){case"string":return je(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(g),typeof h!="object")return f(g,h,y,b,_);if(h===null)return"null"}if(y.indexOf(h)!==-1)return r;let E=_;if(Array.isArray(h)){if(h.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(h),_+=b;let R=`
|
|
51
|
+
${_}`,z=`,
|
|
52
|
+
${_}`,te=Math.min(h.length,a),Z=0;for(;Z<te-1;Z++){let le=f(String(Z),h[Z],y,b,_);R+=le!==void 0?le:"null",R+=z}let ae=f(String(Z),h[Z],y,b,_);if(R+=ae!==void 0?ae:"null",h.length-1>a){let le=h.length-a-1;R+=`${z}"... ${Qe(le)} not stringified"`}return R+=`
|
|
53
|
+
${E}`,y.pop(),`[${R}]`}let w=Object.keys(h),M=w.length;if(M===0)return"{}";if(o<y.length+1)return'"[Object]"';_+=b;let T=`,
|
|
54
|
+
${_}`,N="",q="",P=Math.min(M,a);is(h)&&(N+=mu(h,T,a),w=w.slice(h.length),P-=h.length,q=T),i&&(w=ns(w,s)),y.push(h);for(let R=0;R<P;R++){let z=w[R],te=f(z,h[z],y,b,_);te!==void 0&&(N+=`${q}${je(z)}: ${te}`,q=T)}if(M>a){let R=M-a;N+=`${q}"...": "${Qe(R)} not stringified"`,q=T}return q!==""&&(N=`
|
|
55
|
+
${_}${N}
|
|
56
|
+
${E}`),y.pop(),`{${N}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function d(g,h,y){switch(typeof h){case"string":return je(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(g),typeof h!="object")return d(g,h,y);if(h===null)return"null"}if(y.indexOf(h)!==-1)return r;let b="",_=h.length!==void 0;if(_&&Array.isArray(h)){if(h.length===0)return"[]";if(o<y.length+1)return'"[Array]"';y.push(h);let N=Math.min(h.length,a),q=0;for(;q<N-1;q++){let R=d(String(q),h[q],y);b+=R!==void 0?R:"null",b+=","}let P=d(String(q),h[q],y);if(b+=P!==void 0?P:"null",h.length-1>a){let R=h.length-a-1;b+=`,"... ${Qe(R)} not stringified"`}return y.pop(),`[${b}]`}let E=Object.keys(h),w=E.length;if(w===0)return"{}";if(o<y.length+1)return'"[Object]"';let M="",T=Math.min(w,a);_&&is(h)&&(b+=mu(h,",",a),E=E.slice(h.length),T-=h.length,M=","),i&&(E=ns(E,s)),y.push(h);for(let N=0;N<T;N++){let q=E[N],P=d(q,h[q],y);P!==void 0&&(b+=`${M}${je(q)}:${P}`,M=",")}if(w>a){let N=w-a;b+=`${M}"...":"${Qe(N)} not stringified"`}return y.pop(),`{${b}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(h);default:return e?e(h):void 0}}function c(g,h,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)),h!=null){if(typeof h=="function")return l("",{"":g},[],h,b,"");if(Array.isArray(h))return u("",g,[],jg(h),b,"")}if(b.length!==0)return f("",g,[],b,"")}return d("",g,[])}return c}});var as=p((b_,vu)=>{"use strict";var $g=se(),{MESSAGE:Fg}=G(),Bg=sr();function Ug(t,e){return typeof e=="bigint"?e.toString():e}vu.exports=$g((t,e)=>{let r=Bg.configure(e);return t[Fg]=r(t,e.replacer||Ug,e.space),t})});var _u=p((v_,wu)=>{"use strict";var zg=se();wu.exports=zg((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var Su=p((w_,xu)=>{"use strict";var Gg=se(),{MESSAGE:Wg}=G(),Hg=sr();xu.exports=Gg(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[Wg]=Hg(e),t})});var Ou=p((__,Eu)=>{"use strict";var Vg=se();function Yg(t,e,r){let n=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),i=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,n,{[r]:i}),t}function Jg(t,e,r){return t[r]=e.reduce((n,i)=>(n[i]=t[i],delete t[i],n),{}),t}Eu.exports=Vg((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?Yg(t,n,r):e.fillWith?Jg(t,e.fillWith,r):t})});var Ru=p((x_,Mu)=>{var wt=1e3,_t=wt*60,xt=_t*60,Xe=xt*24,Kg=Xe*7,Qg=Xe*365.25;Mu.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Zg(t);if(r==="number"&&isFinite(t))return e.long?em(t):Xg(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Zg(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*Qg;case"weeks":case"week":case"w":return r*Kg;case"days":case"day":case"d":return r*Xe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*xt;case"minutes":case"minute":case"mins":case"min":case"m":return r*_t;case"seconds":case"second":case"secs":case"sec":case"s":return r*wt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Xg(t){var e=Math.abs(t);return e>=Xe?Math.round(t/Xe)+"d":e>=xt?Math.round(t/xt)+"h":e>=_t?Math.round(t/_t)+"m":e>=wt?Math.round(t/wt)+"s":t+"ms"}function em(t){var e=Math.abs(t);return e>=Xe?ln(t,e,Xe,"day"):e>=xt?ln(t,e,xt,"hour"):e>=_t?ln(t,e,_t,"minute"):e>=wt?ln(t,e,wt,"second"):t+" ms"}function ln(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Au=p((or,Cu)=>{"use strict";var tm=se(),rm=Ru();Cu.exports=tm(t=>{let e=+new Date;return or.diff=e-(or.prevTime||e),or.prevTime=e,t.ms=`+${rm(or.diff)}`,t})});var Tu=p((S_,qu)=>{"use strict";var nm=require("util").inspect,im=se(),{LEVEL:sm,MESSAGE:Lu,SPLAT:om}=G();qu.exports=im((t,e={})=>{let r=Object.assign({},t);return delete r[sm],delete r[Lu],delete r[om],t[Lu]=nm(r,!1,e.depth||null,e.colorize),t})});var Nu=p((E_,fn)=>{"use strict";var{MESSAGE:am}=G(),un=class{constructor(e){this.template=e}transform(e){return e[am]=this.template(e),e}};fn.exports=t=>new un(t);fn.exports.Printf=fn.exports.Format=un});var Du=p((O_,Iu)=>{"use strict";var lm=se(),{MESSAGE:Pu}=G(),um=sr();Iu.exports=lm(t=>{let e=um(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),r=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[Pu]=`${t.level}:${r} ${t.message} ${e}`:t[Pu]=`${t.level}:${r} ${t.message}`,t})});var $u=p((M_,ku)=>{"use strict";var fm=require("util"),{SPLAT:ju}=G(),cm=/%[scdjifoO%]/g,hm=/%%/g,ls=class{constructor(e){this.options=e}_splat(e,r){let n=e.message,i=e[ju]||e.splat||[],s=n.match(hm),o=s&&s.length||0,l=r.length-o-i.length,u=l<0?i.splice(l,-1*l):[],f=u.length;if(f)for(let d=0;d<f;d++)Object.assign(e,u[d]);return e.message=fm.format(n,...i),e}transform(e){let r=e.message,n=e[ju]||e.splat;if(!n||!n.length)return e;let i=r&&r.match&&r.match(cm);if(!i&&(n||n.length)){let s=n.length>1?n.splice(0):n,o=s.length;if(o)for(let a=0;a<o;a++)Object.assign(e,s[a]);return e}return i?this._splat(e,i):e}};ku.exports=t=>new ls(t)});var Bu=p((cn,Fu)=>{(function(t,e){typeof cn=="object"&&typeof Fu<"u"?e(cn):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(cn,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,r="\\d\\d?",n="\\d\\d",i="\\d{3}",s="\\d{4}",o="[^\\s]+",a=/\[([^]*?)\]/gm;function l(m,S){for(var j=[],ie=0,O=m.length;ie<O;ie++)j.push(m[ie].substr(0,S));return j}var u=function(m){return function(S,j){var ie=j[m].map(function(ve){return ve.toLowerCase()}),O=ie.indexOf(S.toLowerCase());return O>-1?O:null}};function f(m){for(var S=[],j=1;j<arguments.length;j++)S[j-1]=arguments[j];for(var ie=0,O=S;ie<O.length;ie++){var ve=O[ie];for(var We in ve)m[We]=ve[We]}return m}var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],g=l(c,3),h=l(d,3),y={dayNamesShort:h,dayNames:d,monthNamesShort:g,monthNames:c,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=f({},y),_=function(m){return b=f(b,m)},E=function(m){return m.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},w=function(m,S){for(S===void 0&&(S=2),m=String(m);m.length<S;)m="0"+m;return m},M={D:function(m){return String(m.getDate())},DD:function(m){return w(m.getDate())},Do:function(m,S){return S.DoFn(m.getDate())},d:function(m){return String(m.getDay())},dd:function(m){return w(m.getDay())},ddd:function(m,S){return S.dayNamesShort[m.getDay()]},dddd:function(m,S){return S.dayNames[m.getDay()]},M:function(m){return String(m.getMonth()+1)},MM:function(m){return w(m.getMonth()+1)},MMM:function(m,S){return S.monthNamesShort[m.getMonth()]},MMMM:function(m,S){return S.monthNames[m.getMonth()]},YY:function(m){return w(String(m.getFullYear()),4).substr(2)},YYYY:function(m){return w(m.getFullYear(),4)},h:function(m){return String(m.getHours()%12||12)},hh:function(m){return w(m.getHours()%12||12)},H:function(m){return String(m.getHours())},HH:function(m){return w(m.getHours())},m:function(m){return String(m.getMinutes())},mm:function(m){return w(m.getMinutes())},s:function(m){return String(m.getSeconds())},ss:function(m){return w(m.getSeconds())},S:function(m){return String(Math.round(m.getMilliseconds()/100))},SS:function(m){return w(Math.round(m.getMilliseconds()/10),2)},SSS:function(m){return w(m.getMilliseconds(),3)},a:function(m,S){return m.getHours()<12?S.amPm[0]:S.amPm[1]},A:function(m,S){return m.getHours()<12?S.amPm[0].toUpperCase():S.amPm[1].toUpperCase()},ZZ:function(m){var S=m.getTimezoneOffset();return(S>0?"-":"+")+w(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4)},Z:function(m){var S=m.getTimezoneOffset();return(S>0?"-":"+")+w(Math.floor(Math.abs(S)/60),2)+":"+w(Math.abs(S)%60,2)}},T=function(m){return+m-1},N=[null,r],q=[null,o],P=["isPm",o,function(m,S){var j=m.toLowerCase();return j===S.amPm[0]?0:j===S.amPm[1]?1:null}],R=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(m){var S=(m+"").match(/([+-]|\d\d)/gi);if(S){var j=+S[1]*60+parseInt(S[2],10);return S[0]==="+"?j:-j}return 0}],z={D:["day",r],DD:["day",n],Do:["day",r+o,function(m){return parseInt(m,10)}],M:["month",r,T],MM:["month",n,T],YY:["year",n,function(m){var S=new Date,j=+(""+S.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",s],S:["millisecond","\\d",function(m){return+m*100}],SS:["millisecond",n,function(m){return+m*10}],SSS:["millisecond",i],d:N,dd:N,ddd:q,dddd:q,MMM:["month",o,u("monthNamesShort")],MMMM:["month",o,u("monthNames")],a:P,A:P,ZZ:R,Z:R},te={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Z=function(m){return f(te,m)},ae=function(m,S,j){if(S===void 0&&(S=te.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");S=te[S]||S;var ie=[];S=S.replace(a,function(ve,We){return ie.push(We),"@@@"});var O=f(f({},b),j);return S=S.replace(e,function(ve){return M[ve](m,O)}),S.replace(/@@@/g,function(){return ie.shift()})};function le(m,S,j){if(j===void 0&&(j={}),typeof S!="string")throw new Error("Invalid format in fecha parse");if(S=te[S]||S,m.length>1e3)return null;var ie=new Date,O={year:ie.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ve=[],We=[],Pt=S.replace(a,function(It,ut){return We.push(E(ut)),"@@@"}),Cr={},_o={};Pt=E(Pt).replace(e,function(It){var ut=z[It],ni=ut[0],id=ut[1],Oo=ut[3];if(Cr[ni])throw new Error("Invalid format. "+ni+" specified twice in format");return Cr[ni]=!0,Oo&&(_o[Oo]=!0),ve.push(ut),"("+id+")"}),Object.keys(_o).forEach(function(It){if(!Cr[It])throw new Error("Invalid format. "+It+" is required in specified format")}),Pt=Pt.replace(/@@@/g,function(){return We.shift()});var Ar=m.match(new RegExp(Pt,"i"));if(!Ar)return null;for(var td=f(f({},b),j),de=1;de<Ar.length;de++){var xo=ve[de-1],rd=xo[0],So=xo[2],Eo=So?So(Ar[de],td):+Ar[de];if(Eo==null)return null;O[rd]=Eo}O.isPm===1&&O.hour!=null&&+O.hour!=12?O.hour=+O.hour+12:O.isPm===0&&+O.hour==12&&(O.hour=0);var Lr;if(O.timezoneOffset==null){Lr=new Date(O.year,O.month,O.day,O.hour,O.minute,O.second,O.millisecond);for(var qr=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],de=0,nd=qr.length;de<nd;de++)if(Cr[qr[de][0]]&&O[qr[de][0]]!==Lr[qr[de][1]]())return null}else if(Lr=new Date(Date.UTC(O.year,O.month,O.day,O.hour,O.minute-O.timezoneOffset,O.second,O.millisecond)),O.month>11||O.month<0||O.day>31||O.day<1||O.hour>23||O.hour<0||O.minute>59||O.minute<0||O.second>59||O.second<0)return null;return Lr}var lt={format:ae,parse:le,defaultI18n:y,setGlobalDateI18n:_,setGlobalDateMasks:Z};t.assign=f,t.default=lt,t.format=ae,t.parse=le,t.defaultI18n=y,t.setGlobalDateI18n=_,t.setGlobalDateMasks=Z,Object.defineProperty(t,"__esModule",{value:!0})}))});var zu=p((R_,Uu)=>{"use strict";var dm=Bu(),pm=se();Uu.exports=pm((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():dm.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var Wu=p((C_,Gu)=>{"use strict";var us=Wi(),gm=se(),{MESSAGE:fs}=G();Gu.exports=gm((t,e)=>(e.level!==!1&&(t.level=us.strip(t.level)),e.message!==!1&&(t.message=us.strip(String(t.message))),e.raw!==!1&&t[fs]&&(t[fs]=us.strip(String(t[fs]))),t))});var hs=p(cs=>{"use strict";var mm=cs.format=se();cs.levels=ou();function ee(t,e){Object.defineProperty(mm,t,{get(){return e()},configurable:!0})}ee("align",function(){return lu()});ee("errors",function(){return cu()});ee("cli",function(){return du()});ee("combine",function(){return gu()});ee("colorize",function(){return nn()});ee("json",function(){return as()});ee("label",function(){return _u()});ee("logstash",function(){return Su()});ee("metadata",function(){return Ou()});ee("ms",function(){return Au()});ee("padLevels",function(){return es()});ee("prettyPrint",function(){return Tu()});ee("printf",function(){return Nu()});ee("simple",function(){return Du()});ee("splat",function(){return $u()});ee("timestamp",function(){return zu()});ee("uncolorize",function(){return Wu()})});var ds=p(hn=>{"use strict";var{format:Hu}=require("util");hn.warn={deprecated(t){return()=>{throw new Error(Hu("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([Hu("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
57
|
+
`))}},forFunctions(t,e,r){r.forEach(n=>{t[n]=hn.warn[e](n)})},forProperties(t,e,r){r.forEach(n=>{let i=hn.warn[e](n);Object.defineProperty(t,n,{get:i,set:i})})}}});var Vu=p((q_,ym)=>{ym.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 Ju=p((T_,Yu)=>{Yu.exports=require("util").deprecate});var ps=p((N_,Ku)=>{Ku.exports=require("stream")});var ms=p((P_,Zu)=>{"use strict";function bm(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(gs,this,t)):process.nextTick(gs,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(dn,r):(r._writableState.errorEmitted=!0,process.nextTick(Qu,r,s)):process.nextTick(Qu,r,s):e?(process.nextTick(dn,r),e(s)):process.nextTick(dn,r)}),this)}function Qu(t,e){gs(t,e),dn(t)}function dn(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function vm(){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 gs(t,e){t.emit("error",e)}function wm(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Zu.exports={destroy:bm,undestroy:vm,errorOrDestroy:wm}});var ke=p((I_,tf)=>{"use strict";var ef={};function ce(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=t,ef[t]=i}function Xu(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 _m(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function xm(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Sm(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ce("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ce("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&_m(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(xm(t," argument"))i=`The ${t} ${n} ${Xu(e,"type")}`;else{let s=Sm(t,".")?"property":"argument";i=`The "${t}" ${s} ${n} ${Xu(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ce("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ce("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ce("ERR_STREAM_PREMATURE_CLOSE","Premature close");ce("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ce("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ce("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ce("ERR_STREAM_WRITE_AFTER_END","write after end");ce("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ce("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ce("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");tf.exports.codes=ef});var ys=p((D_,rf)=>{"use strict";var Em=ke().codes.ERR_INVALID_OPT_VALUE;function Om(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Mm(t,e,r,n){var i=Om(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Em(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}rf.exports={getHighWaterMark:Mm}});var nf=p((j_,bs)=>{typeof Object.create=="function"?bs.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:bs.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 St=p((k_,ws)=>{try{if(vs=require("util"),typeof vs.inherits!="function")throw"";ws.exports=vs.inherits}catch{ws.exports=nf()}var vs});var ff=p(($_,uf)=>{"use strict";function sf(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 of(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sf(Object(r),!0).forEach(function(n){Rm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sf(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Rm(t,e,r){return e=lf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function af(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,lf(n.key),n)}}function Am(t,e,r){return e&&af(t.prototype,e),r&&af(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lf(t){var e=Lm(t,"string");return typeof e=="symbol"?e:String(e)}function Lm(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 qm=require("buffer"),pn=qm.Buffer,Tm=require("util"),_s=Tm.inspect,Nm=_s&&_s.custom||"inspect";function Pm(t,e,r){pn.prototype.copy.call(t,e,r)}uf.exports=(function(){function t(){Cm(this,t),this.head=null,this.tail=null,this.length=0}return Am(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 pn.alloc(0);for(var n=pn.allocUnsafe(r>>>0),i=this.head,s=0;i;)Pm(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=pn.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:Nm,value:function(r,n){return _s(this,of(of({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var df=p((xs,hf)=>{var gn=require("buffer"),_e=gn.Buffer;function cf(t,e){for(var r in t)e[r]=t[r]}_e.from&&_e.alloc&&_e.allocUnsafe&&_e.allocUnsafeSlow?hf.exports=gn:(cf(gn,xs),xs.Buffer=et);function et(t,e,r){return _e(t,e,r)}et.prototype=Object.create(_e.prototype);cf(_e,et);et.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return _e(t,e,r)};et.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=_e(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};et.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return _e(t)};et.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return gn.SlowBuffer(t)}});var Os=p(gf=>{"use strict";var Es=df().Buffer,pf=Es.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 Im(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 Dm(t){var e=Im(t);if(typeof e!="string"&&(Es.isEncoding===pf||!pf(t)))throw new Error("Unknown encoding: "+t);return e||t}gf.StringDecoder=ar;function ar(t){this.encoding=Dm(t);var e;switch(this.encoding){case"utf16le":this.text=Um,this.end=zm,e=4;break;case"utf8":this.fillLast=$m,e=4;break;case"base64":this.text=Gm,this.end=Wm,e=3;break;default:this.write=Hm,this.end=Vm;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Es.allocUnsafe(e)}ar.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||""};ar.prototype.end=Bm;ar.prototype.text=Fm;ar.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 Ss(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function jm(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Ss(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Ss(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Ss(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function km(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 $m(t){var e=this.lastTotal-this.lastNeed,r=km(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 Fm(t,e){var r=jm(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 Bm(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Um(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 zm(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 Gm(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 Wm(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Hm(t){return t.toString(this.encoding)}function Vm(t){return t&&t.length?this.write(t):""}});var mn=p((B_,bf)=>{"use strict";var mf=ke().codes.ERR_STREAM_PREMATURE_CLOSE;function Ym(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 Jm(){}function Km(t){return t.setHeader&&typeof t.abort=="function"}function yf(t,e,r){if(typeof e=="function")return yf(t,null,e);e||(e={}),r=Ym(r||Jm);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){i=!1,o=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){n=!1,l=!0,i||r.call(t)},f=function(h){r.call(t,h)},d=function(){var h;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(h=new mf),r.call(t,h);if(i&&!o)return(!t._writableState||!t._writableState.ended)&&(h=new mf),r.call(t,h)},c=function(){t.req.on("finish",a)};return Km(t)?(t.on("complete",a),t.on("abort",d),t.req?c():t.on("request",c)):i&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",f),t.on("close",d),function(){t.removeListener("complete",a),t.removeListener("abort",d),t.removeListener("request",c),t.req&&t.req.removeListener("finish",a),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",f),t.removeListener("close",d)}}bf.exports=yf});var wf=p((U_,vf)=>{"use strict";var yn;function $e(t,e,r){return e=Qm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qm(t){var e=Zm(t,"string");return typeof e=="symbol"?e:String(e)}function Zm(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 Xm=mn(),Fe=Symbol("lastResolve"),tt=Symbol("lastReject"),lr=Symbol("error"),bn=Symbol("ended"),rt=Symbol("lastPromise"),Ms=Symbol("handlePromise"),nt=Symbol("stream");function Be(t,e){return{value:t,done:e}}function e0(t){var e=t[Fe];if(e!==null){var r=t[nt].read();r!==null&&(t[rt]=null,t[Fe]=null,t[tt]=null,e(Be(r,!1)))}}function t0(t){process.nextTick(e0,t)}function r0(t,e){return function(r,n){t.then(function(){if(e[bn]){r(Be(void 0,!0));return}e[Ms](r,n)},n)}}var n0=Object.getPrototypeOf(function(){}),i0=Object.setPrototypeOf((yn={get stream(){return this[nt]},next:function(){var e=this,r=this[lr];if(r!==null)return Promise.reject(r);if(this[bn])return Promise.resolve(Be(void 0,!0));if(this[nt].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[lr]?a(e[lr]):o(Be(void 0,!0))})});var n=this[rt],i;if(n)i=new Promise(r0(n,this));else{var s=this[nt].read();if(s!==null)return Promise.resolve(Be(s,!1));i=new Promise(this[Ms])}return this[rt]=i,i}},$e(yn,Symbol.asyncIterator,function(){return this}),$e(yn,"return",function(){var e=this;return new Promise(function(r,n){e[nt].destroy(null,function(i){if(i){n(i);return}r(Be(void 0,!0))})})}),yn),n0),s0=function(e){var r,n=Object.create(i0,(r={},$e(r,nt,{value:e,writable:!0}),$e(r,Fe,{value:null,writable:!0}),$e(r,tt,{value:null,writable:!0}),$e(r,lr,{value:null,writable:!0}),$e(r,bn,{value:e._readableState.endEmitted,writable:!0}),$e(r,Ms,{value:function(s,o){var a=n[nt].read();a?(n[rt]=null,n[Fe]=null,n[tt]=null,s(Be(a,!1))):(n[Fe]=s,n[tt]=o)},writable:!0}),r));return n[rt]=null,Xm(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[tt];s!==null&&(n[rt]=null,n[Fe]=null,n[tt]=null,s(i)),n[lr]=i;return}var o=n[Fe];o!==null&&(n[rt]=null,n[Fe]=null,n[tt]=null,o(Be(void 0,!0))),n[bn]=!0}),e.on("readable",t0.bind(null,n)),n};vf.exports=s0});var Ef=p((z_,Sf)=>{"use strict";function _f(t,e,r,n,i,s,o){try{var a=t[s](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(n,i)}function o0(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function o(l){_f(s,n,i,o,a,"next",l)}function a(l){_f(s,n,i,o,a,"throw",l)}o(void 0)})}}function xf(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 a0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xf(Object(r),!0).forEach(function(n){l0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function l0(t,e,r){return e=u0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u0(t){var e=f0(t,"string");return typeof e=="symbol"?e:String(e)}function f0(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 c0=ke().codes.ERR_INVALID_ARG_TYPE;function h0(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 c0("iterable",["Iterable"],e);var i=new t(a0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=o0(function*(){try{var l=yield n.next(),u=l.value,f=l.done;f?i.push(null):i.push(yield u)?o():s=!1}catch(d){i.destroy(d)}}),a.apply(this,arguments)}return i}Sf.exports=h0});var Ds=p((W_,Pf)=>{"use strict";Pf.exports=L;var Et;L.ReadableState=Cf;var G_=require("events").EventEmitter,Rf=function(e,r){return e.listeners(r).length},fr=ps(),vn=require("buffer").Buffer,d0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p0(t){return vn.from(t)}function g0(t){return vn.isBuffer(t)||t instanceof d0}var Rs=require("util"),C;Rs&&Rs.debuglog?C=Rs.debuglog("stream"):C=function(){};var m0=ff(),Ps=ms(),y0=ys(),b0=y0.getHighWaterMark,wn=ke().codes,v0=wn.ERR_INVALID_ARG_TYPE,w0=wn.ERR_STREAM_PUSH_AFTER_EOF,_0=wn.ERR_METHOD_NOT_IMPLEMENTED,x0=wn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ot,Cs,As;St()(L,fr);var ur=Ps.errorOrDestroy,Ls=["error","close","destroy","pause","resume"];function S0(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 Cf(t,e,r){Et=Et||it(),t=t||{},typeof r!="boolean"&&(r=e instanceof Et),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b0(this,t,"readableHighWaterMark",r),this.buffer=new m0,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&&(Ot||(Ot=Os().StringDecoder),this.decoder=new Ot(t.encoding),this.encoding=t.encoding)}function L(t){if(Et=Et||it(),!(this instanceof L))return new L(t);var e=this instanceof Et;this._readableState=new Cf(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),fr.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});L.prototype.destroy=Ps.destroy;L.prototype._undestroy=Ps.undestroy;L.prototype._destroy=function(t,e){e(t)};L.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=vn.from(t,e),e=""),n=!0),Af(this,t,e,!1,n)};L.prototype.unshift=function(t){return Af(this,t,null,!0,!1)};function Af(t,e,r,n,i){C("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,M0(t,s);else{var o;if(i||(o=E0(s,e)),o)ur(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==vn.prototype&&(e=p0(e)),n)s.endEmitted?ur(t,new x0):qs(t,s,e,!0);else if(s.ended)ur(t,new w0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?qs(t,s,e,!1):Ns(t,s)):qs(t,s,e,!1)}else n||(s.reading=!1,Ns(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function qs(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&&_n(t)),Ns(t,e)}function E0(t,e){var r;return!g0(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new v0("chunk",["string","Buffer","Uint8Array"],e)),r}L.prototype.isPaused=function(){return this._readableState.flowing===!1};L.prototype.setEncoding=function(t){Ot||(Ot=Os().StringDecoder);var e=new Ot(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 Of=1073741824;function O0(t){return t>=Of?t=Of:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Mf(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=O0(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}L.prototype.read=function(t){C("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 C("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ts(this):_n(this),null;if(t=Mf(t,e),t===0&&e.ended)return e.length===0&&Ts(this),null;var n=e.needReadable;C("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,C("length less than watermark",n)),e.ended||e.reading?(n=!1,C("reading or ended",n)):n&&(C("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Mf(r,e)));var i;return t>0?i=Tf(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&&Ts(this)),i!==null&&this.emit("data",i),i};function M0(t,e){if(C("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?_n(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Lf(t)))}}function _n(t){var e=t._readableState;C("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(C("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Lf,t))}function Lf(t){var e=t._readableState;C("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,Is(t)}function Ns(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(R0,t,e))}function R0(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(C("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}L.prototype._read=function(t){ur(this,new _0("_read()"))};L.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,C("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:y;n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(b,_){C("onunpipe"),b===r&&_&&_.hasUnpiped===!1&&(_.hasUnpiped=!0,f())}function a(){C("onend"),t.end()}var l=C0(r);t.on("drain",l);var u=!1;function f(){C("cleanup"),t.removeListener("close",g),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",c),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",d),u=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",d);function d(b){C("ondata");var _=t.write(b);C("dest.write",_),_===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&Nf(n.pipes,t)!==-1)&&!u&&(C("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(b){C("onerror",b),y(),t.removeListener("error",c),Rf(t,"error")===0&&ur(t,b)}S0(t,"error",c);function g(){t.removeListener("finish",h),y()}t.once("close",g);function h(){C("onfinish"),t.removeListener("close",g),y()}t.once("finish",h);function y(){C("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(C("pipe resume"),r.resume()),t};function C0(t){return function(){var r=t._readableState;C("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Rf(t,"data")&&(r.flowing=!0,Is(t))}}L.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Nf(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};L.prototype.on=function(t,e){var r=fr.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,C("on readable",n.length,n.reading),n.length?_n(this):n.reading||process.nextTick(A0,this)),r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(t,e){var r=fr.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(qf,this),r};L.prototype.removeAllListeners=function(t){var e=fr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(qf,this),e};function qf(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 A0(t){C("readable nexttick read 0"),t.read(0)}L.prototype.resume=function(){var t=this._readableState;return t.flowing||(C("resume"),t.flowing=!t.readableListening,L0(this,t)),t.paused=!1,this};function L0(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(q0,t,e))}function q0(t,e){C("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Is(t),e.flowing&&!e.reading&&t.read(0)}L.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Is(t){var e=t._readableState;for(C("flow",e.flowing);e.flowing&&t.read()!==null;);}L.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(C("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(C("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(a){return function(){return t[a].apply(t,arguments)}})(i));for(var s=0;s<Ls.length;s++)t.on(Ls[s],this.emit.bind(this,Ls[s]));return this._read=function(o){C("wrapped _read",o),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return Cs===void 0&&(Cs=wf()),Cs(this)});Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});L._fromList=Tf;Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Tf(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 Ts(t){var e=t._readableState;C("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(T0,e,t))}function T0(t,e){if(C("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"&&(L.from=function(t,e){return As===void 0&&(As=Ef()),As(L,t,e)});function Nf(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var it=p((H_,Df)=>{"use strict";var N0=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Df.exports=xe;var If=Ds(),ks=En();St()(xe,If);for(js=N0(ks.prototype),xn=0;xn<js.length;xn++)Sn=js[xn],xe.prototype[Sn]||(xe.prototype[Sn]=ks.prototype[Sn]);var js,Sn,xn;function xe(t){if(!(this instanceof xe))return new xe(t);If.call(this,t),ks.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",P0)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function P0(){this._writableState.ended||process.nextTick(I0,this)}function I0(t){t.end()}Object.defineProperty(xe.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 En=p((V_,Uf)=>{"use strict";Uf.exports=F;function kf(t){var e=this;this.next=null,this.entry=null,this.finish=function(){ly(e,t)}}var Mt;F.WritableState=hr;var D0={deprecate:Ju()},$f=ps(),Mn=require("buffer").Buffer,j0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function k0(t){return Mn.from(t)}function $0(t){return Mn.isBuffer(t)||t instanceof j0}var Fs=ms(),F0=ys(),B0=F0.getHighWaterMark,Ue=ke().codes,U0=Ue.ERR_INVALID_ARG_TYPE,z0=Ue.ERR_METHOD_NOT_IMPLEMENTED,G0=Ue.ERR_MULTIPLE_CALLBACK,W0=Ue.ERR_STREAM_CANNOT_PIPE,H0=Ue.ERR_STREAM_DESTROYED,V0=Ue.ERR_STREAM_NULL_VALUES,Y0=Ue.ERR_STREAM_WRITE_AFTER_END,J0=Ue.ERR_UNKNOWN_ENCODING,Rt=Fs.errorOrDestroy;St()(F,$f);function K0(){}function hr(t,e,r){Mt=Mt||it(),t=t||{},typeof r!="boolean"&&(r=e instanceof Mt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=B0(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){ny(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 kf(this)}hr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(hr.prototype,"buffer",{get:D0.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var On;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(On=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return On.call(this,e)?!0:this!==F?!1:e&&e._writableState instanceof hr}})):On=function(e){return e instanceof this};function F(t){Mt=Mt||it();var e=this instanceof Mt;if(!e&&!On.call(F,this))return new F(t);this._writableState=new hr(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)),$f.call(this)}F.prototype.pipe=function(){Rt(this,new W0)};function Q0(t,e){var r=new Y0;Rt(t,r),process.nextTick(e,r)}function Z0(t,e,r,n){var i;return r===null?i=new V0:typeof r!="string"&&!e.objectMode&&(i=new U0("chunk",["string","Buffer"],r)),i?(Rt(t,i),process.nextTick(n,i),!1):!0}F.prototype.write=function(t,e,r){var n=this._writableState,i=!1,s=!n.objectMode&&$0(t);return s&&!Mn.isBuffer(t)&&(t=k0(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=K0),n.ending?Q0(this,r):(s||Z0(this,n,t,r))&&(n.pendingcb++,i=ey(this,n,s,t,e,r)),i};F.prototype.cork=function(){this._writableState.corked++};F.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Ff(this,t))};F.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new J0(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X0(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Mn.from(e,r)),e}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ey(t,e,r,n,i,s){if(!r){var o=X0(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}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 u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else $s(t,e,!1,a,n,i,s);return l}function $s(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new H0("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function ty(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(cr,t,e),t._writableState.errorEmitted=!0,Rt(t,n)):(i(n),t._writableState.errorEmitted=!0,Rt(t,n),cr(t,e))}function ry(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function ny(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new G0;if(ry(r),e)ty(t,r,n,e,i);else{var s=Bf(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ff(t,r),n?process.nextTick(jf,t,r,s,i):jf(t,r,s,i)}}function jf(t,e,r,n){r||iy(t,e),e.pendingcb--,n(),cr(t,e)}function iy(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Ff(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,$s(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new kf(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,d=e.objectMode?1:l.length;if($s(t,e,!1,d,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}F.prototype._write=function(t,e,r){r(new z0("_write()"))};F.prototype._writev=null;F.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||ay(this,n,r),this};Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Bf(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function sy(t,e){t._final(function(r){e.pendingcb--,r&&Rt(t,r),e.prefinished=!0,t.emit("prefinish"),cr(t,e)})}function oy(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(sy,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function cr(t,e){var r=Bf(e);if(r&&(oy(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 ay(t,e,r){e.ending=!0,cr(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function ly(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});F.prototype.destroy=Fs.destroy;F.prototype._undestroy=Fs.undestroy;F.prototype._destroy=function(t,e){e(t)}});var Bs=p((Y_,Wf)=>{"use strict";var uy=require("util"),zf=En(),{LEVEL:Gf}=G(),dr=Wf.exports=function(e={}){zf.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())})};uy.inherits(dr,zf);dr.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[Gf]]){if(e&&!this.format)return this.log(e,n);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(a){s=a}if(s||!o){if(n(),s)throw s;return}return this.log(o,n)}return this._writableState.sync=!1,n(null)};dr.prototype._writev=function(e,r){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,r):r(null)}for(let n=0;n<e.length;n++){if(!this._accept(e[n]))continue;if(e[n].chunk&&!this.format){this.log(e[n].chunk,e[n].callback);continue}let i,s;try{s=this.format.transform(Object.assign({},e[n].chunk),this.format.options)}catch(o){i=o}if(i||!s){if(e[n].callback(),i)throw r(null),i}else this.log(s,e[n].callback)}return r(null)};dr.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[Gf]])&&(this.handleExceptions||r.exception!==!0))};dr.prototype._nop=function(){}});var zs=p((J_,Vf)=>{"use strict";var fy=require("util"),{LEVEL:Us}=G(),Hf=Bs(),pr=Vf.exports=function(e={}){if(Hf.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))};fy.inherits(pr,Hf);pr.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[Us]])&&this.transport.log(e[Us],e.message,e,this._nop),n(null)};pr.prototype._writev=function(e,r){for(let n=0;n<e.length;n++)this._accept(e[n])&&(this.transport.log(e[n].chunk[Us],e[n].chunk.message,e[n].chunk,this._nop),e[n].callback());return r(null)};pr.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(`
|
|
58
|
+
`))};pr.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var Ct=p((K_,Gs)=>{"use strict";Gs.exports=Bs();Gs.exports.LegacyTransportStream=zs()});var Kf=p((Z_,Jf)=>{"use strict";var cy=require("os"),{LEVEL:Yf,MESSAGE:At}=G(),hy=Ct();Jf.exports=class extends hy{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:cy.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[Yf]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[At]}${this.eol}`):this._consoleError(e[At]),r&&r();return}else if(this.consoleWarnLevels[e[Yf]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[At]}${this.eol}`):this._consoleWarn(e[At]),r&&r();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[At]}${this.eol}`):this._consoleLog(e[At]),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 Cn=p((Rn,Qf)=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.default=dy;function dy(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}Qf.exports=Rn.default});var Xf=p((An,Zf)=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.default=function(t){return function(...e){var r=e.pop();return t.call(this,e,r)}};Zf.exports=An.default});var rc=p(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.fallback=ec;ze.wrap=tc;var py=ze.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,gy=ze.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,my=ze.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function ec(t){setTimeout(t,0)}function tc(t){return(e,...r)=>t(()=>e(...r))}var gr;py?gr=queueMicrotask:gy?gr=setImmediate:my?gr=process.nextTick:gr=ec;ze.default=tc(gr)});var ac=p((Ln,oc)=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.default=xy;var yy=Xf(),by=sc(yy),vy=rc(),wy=sc(vy),_y=st();function sc(t){return t&&t.__esModule?t:{default:t}}function xy(t){return(0,_y.isAsync)(t)?function(...e){let r=e.pop(),n=t.apply(this,e);return nc(n,r)}:(0,by.default)(function(e,r){var n;try{n=t.apply(this,e)}catch(i){return r(i)}if(n&&typeof n.then=="function")return nc(n,r);r(null,n)})}function nc(t,e){return t.then(r=>{ic(e,null,r)},r=>{ic(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function ic(t,e,r){try{t(e,r)}catch(n){(0,wy.default)(i=>{throw i},n)}}oc.exports=Ln.default});var st=p(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.isAsyncIterable=Le.isAsyncGenerator=Le.isAsync=void 0;var Sy=ac(),Ey=Oy(Sy);function Oy(t){return t&&t.__esModule?t:{default:t}}function lc(t){return t[Symbol.toStringTag]==="AsyncFunction"}function My(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Ry(t){return typeof t[Symbol.asyncIterator]=="function"}function Cy(t){if(typeof t!="function")throw new Error("expected a function");return lc(t)?(0,Ey.default)(t):t}Le.default=Cy;Le.isAsync=lc;Le.isAsyncGenerator=My;Le.isAsyncIterable=Ry});var Lt=p((qn,uc)=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.default=Ay;function Ay(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((i,s)=>{n[e-1]=(o,...a)=>{if(o)return s(o);i(a.length>1?a:a[0])},t.apply(this,n)})}return r}uc.exports=qn.default});var cc=p((Tn,fc)=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});var Ly=Cn(),qy=Ws(Ly),Ty=st(),Ny=Ws(Ty),Py=Lt(),Iy=Ws(Py);function Ws(t){return t&&t.__esModule?t:{default:t}}Tn.default=(0,Iy.default)((t,e,r)=>{var n=(0,qy.default)(e)?[]:{};t(e,(i,s,o)=>{(0,Ny.default)(i)((a,...l)=>{l.length<2&&([l]=l),n[s]=l,o(a)})},i=>r(i,n))},3);fc.exports=Tn.default});var Hs=p((Nn,hc)=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=Dy;function Dy(t){function e(...r){if(t!==null){var n=t;t=null,n.apply(this,r)}}return Object.assign(e,t),e}hc.exports=Nn.default});var pc=p((Pn,dc)=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};dc.exports=Pn.default});var yc=p((In,mc)=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.default=Gy;var jy=Cn(),ky=gc(jy),$y=pc(),Fy=gc($y);function gc(t){return t&&t.__esModule?t:{default:t}}function By(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Uy(t){var e=-1;return function(){var n=t.next();return n.done?null:(e++,{value:n.value,key:e})}}function zy(t){var e=t?Object.keys(t):[],r=-1,n=e.length;return function i(){var s=e[++r];return s==="__proto__"?i():r<n?{value:t[s],key:s}:null}}function Gy(t){if((0,ky.default)(t))return By(t);var e=(0,Fy.default)(t);return e?Uy(e):zy(t)}mc.exports=In.default});var Vs=p((Dn,bc)=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.default=Wy;function Wy(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}bc.exports=Dn.default});var kn=p((jn,vc)=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});var Hy={};jn.default=Hy;vc.exports=jn.default});var _c=p(($n,wc)=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.default=Ky;var Vy=kn(),Yy=Jy(Vy);function Jy(t){return t&&t.__esModule?t:{default:t}}function Ky(t,e,r,n){let i=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||i||(o=!0,t.next().then(({value:c,done:g})=>{if(!(s||i)){if(o=!1,g){i=!0,a<=0&&n(null);return}a++,r(c,l,f),l++,u()}}).catch(d))}function f(c,g){if(a-=1,!s){if(c)return d(c);if(c===!1){i=!0,s=!0;return}if(g===Yy.default||i&&a<=0)return i=!0,n(null);u()}}function d(c){s||(o=!1,i=!0,n(c))}u()}wc.exports=$n.default});var Oc=p((Fn,Ec)=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});var Qy=Hs(),Zy=mr(Qy),Xy=yc(),eb=mr(Xy),tb=Vs(),rb=mr(tb),xc=st(),nb=_c(),Sc=mr(nb),ib=kn(),sb=mr(ib);function mr(t){return t&&t.__esModule?t:{default:t}}Fn.default=t=>(e,r,n)=>{if(n=(0,Zy.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,xc.isAsyncGenerator)(e))return(0,Sc.default)(e,t,r,n);if((0,xc.isAsyncIterable)(e))return(0,Sc.default)(e[Symbol.asyncIterator](),t,r,n);var i=(0,eb.default)(e),s=!1,o=!1,a=0,l=!1;function u(d,c){if(!o)if(a-=1,d)s=!0,n(d);else if(d===!1)s=!0,o=!0;else{if(c===sb.default||s&&a<=0)return s=!0,n(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var d=i();if(d===null){s=!0,a<=0&&n(null);return}a+=1,r(d.value,d.key,(0,rb.default)(u))}l=!1}f()};Ec.exports=Fn.default});var Js=p((Bn,Mc)=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});var ob=Oc(),ab=Ys(ob),lb=st(),ub=Ys(lb),fb=Lt(),cb=Ys(fb);function Ys(t){return t&&t.__esModule?t:{default:t}}function hb(t,e,r,n){return(0,ab.default)(e)(t,(0,ub.default)(r),n)}Bn.default=(0,cb.default)(hb,4);Mc.exports=Bn.default});var Ac=p((Un,Cc)=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});var db=Js(),pb=Rc(db),gb=Lt(),mb=Rc(gb);function Rc(t){return t&&t.__esModule?t:{default:t}}function yb(t,e,r){return(0,pb.default)(t,1,e,r)}Un.default=(0,mb.default)(yb,3);Cc.exports=Un.default});var Tc=p((zn,qc)=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.default=xb;var bb=cc(),vb=Lc(bb),wb=Ac(),_b=Lc(wb);function Lc(t){return t&&t.__esModule?t:{default:t}}function xb(t,e){return(0,vb.default)(_b.default,t,e)}qc.exports=zn.default});var Ks=p((tx,Pc)=>{"use strict";Pc.exports=qe;var Gn=ke().codes,Sb=Gn.ERR_METHOD_NOT_IMPLEMENTED,Eb=Gn.ERR_MULTIPLE_CALLBACK,Ob=Gn.ERR_TRANSFORM_ALREADY_TRANSFORMING,Mb=Gn.ERR_TRANSFORM_WITH_LENGTH_0,Wn=it();St()(qe,Wn);function Rb(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Eb);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 qe(t){if(!(this instanceof qe))return new qe(t);Wn.call(this,t),this._transformState={afterTransform:Rb.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",Cb)}function Cb(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Nc(t,e,r)}):Nc(this,null,null)}qe.prototype.push=function(t,e){return this._transformState.needTransform=!1,Wn.prototype.push.call(this,t,e)};qe.prototype._transform=function(t,e,r){r(new Sb("_transform()"))};qe.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)}};qe.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};qe.prototype._destroy=function(t,e){Wn.prototype._destroy.call(this,t,function(r){e(r)})};function Nc(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Mb;if(t._transformState.transforming)throw new Ob;return t.push(null)}});var jc=p((rx,Dc)=>{"use strict";Dc.exports=yr;var Ic=Ks();St()(yr,Ic);function yr(t){if(!(this instanceof yr))return new yr(t);Ic.call(this,t)}yr.prototype._transform=function(t,e,r){r(null,t)}});var Uc=p((nx,Bc)=>{"use strict";var Qs;function Ab(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Fc=ke().codes,Lb=Fc.ERR_MISSING_ARGS,qb=Fc.ERR_STREAM_DESTROYED;function kc(t){if(t)throw t}function Tb(t){return t.setHeader&&typeof t.abort=="function"}function Nb(t,e,r,n){n=Ab(n);var i=!1;t.on("close",function(){i=!0}),Qs===void 0&&(Qs=mn()),Qs(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Tb(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(o||new qb("pipe"))}}}function $c(t){t()}function Pb(t,e){return t.pipe(e)}function Ib(t){return!t.length||typeof t[t.length-1]!="function"?kc:t.pop()}function Db(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Ib(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Lb("streams");var i,s=e.map(function(o,a){var l=a<e.length-1,u=a>0;return Nb(o,l,u,function(f){i||(i=f),f&&s.forEach($c),!l&&(s.forEach($c),n(i))})});return e.reduce(Pb)}Bc.exports=Db});var ot=p((he,vr)=>{var br=require("stream");process.env.READABLE_STREAM==="disable"&&br?(vr.exports=br.Readable,Object.assign(vr.exports,br),vr.exports.Stream=br):(he=vr.exports=Ds(),he.Stream=br||he,he.Readable=he,he.Writable=En(),he.Duplex=it(),he.Transform=Ks(),he.PassThrough=jc(),he.finished=mn(),he.pipeline=Uc())});var io=p((ix,Gc)=>{var qt=[],wr=[],Zs=function(){};function eo(t){return~qt.indexOf(t)?!1:(qt.push(t),!0)}function to(t){Zs=t}function jb(t){for(var e=[],r=0;r<qt.length;r++){if(qt[r].async){e.push(qt[r]);continue}if(qt[r](t))return!0}return e.length?new Promise(function(i){Promise.all(e.map(function(o){return o(t)})).then(function(o){i(o.some(Boolean))})}):!1}function ro(t){return~wr.indexOf(t)?!1:(wr.push(t),!0)}function Xs(){Zs.apply(Zs,arguments)}function zc(t){for(var e=0;e<wr.length;e++)t=wr[e].apply(wr[e],arguments);return t}function no(t,e){var r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&(t[n]=e[n]);return t}function kb(t){return t.enabled=!1,t.modify=ro,t.set=to,t.use=eo,no(function(){return!1},t)}function $b(t){function e(){var r=Array.prototype.slice.call(arguments,0);return Xs.call(Xs,t,zc(r,t)),!0}return t.enabled=!0,t.modify=ro,t.set=to,t.use=eo,no(e,t)}Gc.exports=function(e){return e.introduce=no,e.enabled=jb,e.process=zc,e.modify=ro,e.write=Xs,e.nope=kb,e.yep=$b,e.set=to,e.use=eo,e}});var Hc=p((sx,Wc)=>{var Fb=io(),Bb=Fb(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)});Wc.exports=Bb});var Zc=p((ox,Qc)=>{"use strict";var Se={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]},Yc=Object.create(null);for(let t in Se)Object.hasOwn(Se,t)&&(Yc[Se[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*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],a,l,u;if(a=t.match(r)){for(u=a[2],a=a[1],l=0;l<3;l++){let f=l*2;o[l]=Number.parseInt(a.slice(f,f+2),16)}u&&(o[3]=Number.parseInt(u,16)/255)}else if(a=t.match(e)){for(a=a[1],u=a[3],l=0;l<3;l++)o[l]=Number.parseInt(a[l]+a[l],16);u&&(o[3]=Number.parseInt(u+u,16)/255)}else if(a=t.match(n)){for(l=0;l<3;l++)o[l]=Number.parseInt(a[l+1],10);a[4]&&(o[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=t.match(i)){for(l=0;l<3;l++)o[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(o[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=t.match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(Se,a[1])?(o=Se[a[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=Ge(o[l],0,255);return o[3]=Ge(o[3],0,1),o};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,s=Ge(Number.parseFloat(r[2]),0,100),o=Ge(Number.parseFloat(r[3]),0,100),a=Ge(Number.isNaN(n)?1:n,0,1);return[i,s,o,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,s=Ge(Number.parseFloat(r[2]),0,100),o=Ge(Number.parseFloat(r[3]),0,100),a=Ge(Number.isNaN(n)?1:n,0,1);return[i,s,o,a]}return null};V.to.hex=function(...t){return"#"+Hn(t[0])+Hn(t[1])+Hn(t[2])+(t[3]<1?Hn(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 Yc[t.slice(0,3)]};function Ge(t,e,r){return Math.min(Math.max(e,t),r)}function Hn(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var Jc={};for(let t of Object.keys(Se))Jc[Se[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"]}},Te=(6/29)**3;function Tt(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function Nt(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),s=Math.max(e,r,n),o=s-i,a,l;switch(s){case i:{a=0;break}case e:{a=(r-n)/o;break}case r:{a=2+(n-e)/o;break}case n:{a=4+(e-r)/o;break}}a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};v.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(o,a,l),f=u-Math.min(o,a,l),d=function(c){return(u-c)/6/f+1/2};if(f===0)i=0,s=0;else{switch(s=f/u,e=d(o),r=d(a),n=d(l),u){case o:{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,s*100,u*100]};v.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=v.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};v.rgb.oklab=function(t){let e=Nt(t[0]/255),r=Nt(t[1]/255),n=Nt(t[2]/255),i=Math.cbrt(.4122214708*e+.5363325363*r+.0514459929*n),s=Math.cbrt(.2119034982*e+.6806995451*r+.1073969566*n),o=Math.cbrt(.0883024619*e+.2817188376*r+.6299787005*n),a=.2104542553*i+.793617785*s-.0040720468*o,l=1.9779984951*i-2.428592205*s+.4505937099*o,u=.0259040371*i+.7827717662*s-.808675766*o;return[a*100,l*100,u*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),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Ub(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=Jc[t];if(e)return e;let r=Number.POSITIVE_INFINITY,n;for(let i of Object.keys(Se)){let s=Se[i],o=Ub(t,s);o<r&&(r=o,n=i)}return n};v.keyword.rgb=function(t){return Se[t]};v.rgb.xyz=function(t){let e=Nt(t[0]/255),r=Nt(t[1]/255),n=Nt(t[2]/255),i=e*.4124564+r*.3575761+n*.1804375,s=e*.2126729+r*.7151522+n*.072175,o=e*.0193339+r*.119192+n*.9503041;return[i*100,s*100,o*100]};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>Te?r**(1/3):7.787*r+16/116,n=n>Te?n**(1/3):7.787*n+16/116,i=i>Te?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};v.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s;if(r===0)return s=n*255,[s,s,s];let o=n<.5?n*(1+r):n+r-n*r,a=2*n-o,l=[0,0,0];for(let u=0;u<3;u++)i=e+1/3*-(u-1),i<0&&i++,i>1&&i--,6*i<1?s=a+(o-a)*6*i:2*i<1?s=o:3*i<2?s=a+(o-a)*(2/3-i)*6:s=a,l[u]=s*255;return l};v.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};v.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),l=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,l,o];case 1:return[a,n,o];case 2:return[o,n,l];case 3:return[o,a,n];case 4:return[l,o,n];case 5:return[n,o,a]}};v.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};v.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let l=r+s*(a-r),u,f,d;switch(o){default:case 6:case 0:{u=a,f=l,d=r;break}case 1:{u=l,f=a,d=r;break}case 2:{u=r,f=a,d=l;break}case 3:{u=r,f=l,d=a;break}case 4:{u=l,f=r,d=a;break}case 5:{u=a,f=r,d=l;break}}return[u*255,f*255,d*255]};v.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};v.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2404542+r*-1.5371385+n*-.4985314,s=e*-.969266+r*1.8760108+n*.041556,o=e*.0556434+r*-.2040259+n*1.0572252,i=Tt(i),s=Tt(s),o=Tt(o),[i*255,s*255,o*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>Te?e**(1/3):7.787*e+16/116,r=r>Te?r**(1/3):7.787*r+16/116,n=n>Te?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};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),s=Math.cbrt(.0329845436*e+.9293118715*r+.0361456387*n),o=Math.cbrt(.0482003018*e+.2643662691*r+.633851707*n),a=.2104542553*i+.793617785*s-.0040720468*o,l=1.9779984951*i-2.428592205*s+.4505937099*o,u=.0259040371*i+.7827717662*s-.808675766*o;return[a*100,l*100,u*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,s=(1.000000008*e-.105561342*r-.063854175*n)**3,o=(1.000000055*e-.089484182*r-1.291485538*n)**3,a=1.227013851*i-.55779998*s+.281256149*o,l=-.040580178*i+1.11225687*s-.071676679*o,u=-.076381285*i-.421481978*s+1.58616322*o;return[a*100,l*100,u*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,s=(e-.1055613458*r-.0638541728*n)**3,o=(e-.0894841775*r-1.291485548*n)**3,a=Tt(4.0767416621*i-3.3077115913*s+.2309699292*o),l=Tt(-1.2684380046*i+2.6097574011*s-.3413193965*o),u=Tt(-.0041960863*i-.7034186147*s+1.707614701*o);return[a*255,l*255,u*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,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,l=i**3,u=o**3;return s=a>Te?a:(s-16/116)/7.787,i=l>Te?l:(i-16/116)/7.787,o=u>Te?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};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 o=Math.sqrt(r*r+n*n);return[e,o,i]};v.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};v.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?v.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};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,s=(e>>2&1)*r*255;return[n,i,s]};v.ansi256.rgb=function(t){if(t=t[0],t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};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,s=n>>8&255,o=n&255;return[i,s,o]};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),s=Math.min(Math.min(e,r),n),o=i-s,a,l=o<1?s/(1-o):0;return o<=0?a=0:i===e?a=(r-n)/o%6:i===r?a=2+(n-e)/o:a=4+(e-r)/o,a/=6,a%=1,[a*360,o*100,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],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:{i[0]=1,i[1]=o,i[2]=0;break}case 1:{i[0]=a,i[1]=1,i[2]=0;break}case 2:{i[0]=0,i[1]=1,i[2]=o;break}case 3:{i[0]=0,i[1]=a,i[2]=1;break}case 4:{i[0]=o,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=a}return 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,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*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 zb(){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 Gb(t){let e=zb(),r=[t];for(e[t].distance=0;r.length>0;){let n=r.pop(),i=Object.keys(v[n]);for(let{length:s}=i,o=0;o<s;o++){let a=i[o],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function Wb(t,e){return function(r){return e(t(r))}}function Hb(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=Wb(v[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}function Vb(t){let e=Gb(t),r={},n=Object.keys(e);for(let{length:i}=n,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Hb(o,e))}return r}var J={},Yb=Object.keys(v);function Jb(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 Kb(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let{length:s}=i,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}for(let t of Yb){J[t]={},Object.defineProperty(J[t],"channels",{value:v[t].channels}),Object.defineProperty(J[t],"labels",{value:v[t].labels});let e=Vb(t),r=Object.keys(e);for(let n of r){let i=e[n];J[t][n]=Kb(i),J[t][n].raw=Jb(i)}}var Kc=["keyword","gray","hex"],so={};for(let t of Object.keys(J))so[[...J[t].labels].sort().join("")]=t;var oo={};function H(t,e){if(!(this instanceof H))return new H(t,e);if(e&&e in Kc&&(e=null),e&&!(e in J))throw new Error("Unknown model: "+e);let r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof H)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){let i=V.get(t);if(i===null)throw new Error("Unable to parse color from string: "+t);this.model=i.model,n=J[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=J[this.model].channels;let i=Array.prototype.slice.call(t,0,n);this.color=ao(i,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;let i=Object.keys(t);"alpha"in t&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);let s=i.sort().join("");if(!(s in so))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=so[s];let{labels:o}=J[this.model],a=[];for(r=0;r<o.length;r++)a.push(t[o[r]]);this.color=ao(a)}if(oo[this.model])for(n=J[this.model].channels,r=0;r<n;r++){let i=oo[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}H.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in 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}=J[this.model],{labels:r}=J[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){let t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){let t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new H([...this.color.map(Zb(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new H([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:B("rgb",0,W(255)),green:B("rgb",1,W(255)),blue:B("rgb",2,W(255)),hue:B(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:B("hsl",1,W(100)),lightness:B("hsl",2,W(100)),saturationv:B("hsv",1,W(100)),value:B("hsv",2,W(100)),chroma:B("hcg",1,W(100)),gray:B("hcg",2,W(100)),white:B("hwb",1,W(100)),wblack:B("hwb",2,W(100)),cyan:B("cmyk",0,W(100)),magenta:B("cmyk",1,W(100)),yellow:B("cmyk",2,W(100)),black:B("cmyk",3,W(100)),x:B("xyz",0,W(95.047)),y:B("xyz",1,W(100)),z:B("xyz",2,W(108.833)),l:B("lab",0,W(100)),a:B("lab",1),b:B("lab",2),keyword(t){return t!==void 0?new H(t):J[this.model].keyword(this.color)},hex(t){return t!==void 0?new H(t):V.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new H(t);let e=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),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 H.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){let e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);let r=t.rgb(),n=this.rgb(),i=e===void 0?.5:e,s=2*i-1,o=r.alpha()-n.alpha(),a=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,l=1-a;return H.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(J)){if(Kc.includes(t))continue;let{channels:e}=J[t];H.prototype[t]=function(...r){return this.model===t?new H(this):r.length>0?new H(r,t):new H([...Xb(J[this.model][t].raw(this.color)),this.valpha],t)},H[t]=function(...r){let n=r[0];return typeof n=="number"&&(n=ao(r,e)),new H(n,t)}}function Qb(t,e){return Number(t.toFixed(e))}function Zb(t){return function(e){return Qb(e,t)}}function B(t,e,r){t=Array.isArray(t)?t:[t];for(let n of t)(oo[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 W(t){return function(e){return Math.max(0,Math.min(t,e))}}function Xb(t){return Array.isArray(t)?t:[t]}function ao(t,e){for(let r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}function e1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var t1=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},Vc=e1(t1);function r1(t,e){let r=t.split(e||":"),n=Vc(r[0]);if(!r.length)return n;for(let i=0,s=r.length-1;i<s;i++)n=H(n).mix(H(Vc(r[i+1]))).saturate(1).hex();return n}Qc.exports=r1});var eh=p((ax,Xc)=>{"use strict";function ye(t,e){if(e)return new ye(t).style(e);if(!(this instanceof ye))return new ye(t);this.text=t}ye.prototype.prefix="\x1B[";ye.prototype.suffix="m";ye.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)]};ye.prototype.rgb=function(e,r,n){var i=e/255*5,s=r/255*5,o=n/255*5;return this.ansi(i,s,o)};ye.prototype.ansi=function(e,r,n){var i=Math.round(e),s=Math.round(r),o=Math.round(n);return 16+i*36+s*6+o};ye.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ye.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};Xc.exports=ye});var rh=p((lx,th)=>{var n1=Zc(),i1=eh();th.exports=function(e,r){var n=r.namespace,i=r.colors!==!1?i1(n+":",n1(n)):n+":";return e[0]=i+" "+e[0],e}});var ih=p((ux,nh)=>{"use strict";nh.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 oh=p((fx,sh)=>{var s1=ih();sh.exports=function(e){return function(n){try{return s1(n,e())}catch{}return!1}}});var lh=p((cx,ah)=>{var o1=oh();ah.exports=o1(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var fh=p((hx,uh)=>{uh.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var hh=p((dx,ch)=>{var a1=io(),l1=require("tty").isatty(1),Vn=a1(function t(e,r){return r=r||{},r.colors="colors"in r?r.colors:l1,r.namespace=e,r.prod=!1,r.dev=!0,!t.enabled(e)&&!(r.force||t.force)?t.nope(r):t.yep(r)});Vn.modify(rh());Vn.use(lh());Vn.set(fh());ch.exports=Vn});var _r=p((px,lo)=>{process.env.NODE_ENV==="production"?lo.exports=Hc():lo.exports=hh()});var ph=p((gx,dh)=>{"use strict";var uo=require("fs"),{StringDecoder:u1}=require("string_decoder"),{Stream:f1}=ot();function c1(){}dh.exports=(t,e)=>{let r=Buffer.alloc(65536),n=new u1("utf8"),i=new f1,s="",o=0,a=0;return t.start===-1&&delete t.start,i.readable=!0,i.destroy=()=>{i.destroyed=!0,i.emit("end"),i.emit("close")},uo.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):i.emit("error",l),i.destroy();return}(function f(){if(i.destroyed){uo.close(u,c1);return}return uo.read(u,r,0,r.length,o,(d,c)=>{if(d){e?e(d):i.emit("error",d),i.destroy();return}if(!c)return s&&((t.start==null||a>t.start)&&(e?e(null,s):i.emit("line",s)),a++,s=""),setTimeout(f,1e3);let g=n.write(r.slice(0,c));e||i.emit("data",g),g=(s+g).split(/\n+/);let h=g.length-1,y=0;for(;y<h;y++)(t.start==null||a>t.start)&&(e?e(null,g[y]):i.emit("line",g[y])),a++;return s=g[h],o+=c,f()})})()}),e?i.destroy:i}});var bh=p((yx,yh)=>{"use strict";var oe=require("fs"),K=require("path"),gh=Tc(),h1=require("zlib"),{MESSAGE:d1}=G(),{Stream:p1,PassThrough:mh}=ot(),g1=Ct(),be=_r()("winston:file"),m1=require("os"),y1=ph();yh.exports=class extends g1{constructor(e={}){super(e),this.name=e.name||"file";function r(n,...i){i.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${n} together`)})}if(this._stream=new mh,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?K.basename(e.filename):"winston.log",this.dirname=e.dirname||K.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=K.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:m1.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[d1]}${this.eol}`,i=Buffer.byteLength(n);function s(){if(this._size+=i,this._pendingSize-=i,be("logged %s %s",this._size,n),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=i,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(n,s.bind(this));return o?r():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,r()})),be("written",o,this._drain),this.finishIfEnding(),o}query(e,r){typeof e=="function"&&(r=e,e={}),e=d(e);let n=K.join(this.dirname,this.filename),i="",s=[],o=0,a=oe.createReadStream(n,{encoding:"utf8"});a.on("error",c=>{if(a.readable&&a.destroy(),!!r)return c.code!=="ENOENT"?r(c):r(null,s)}),a.on("data",c=>{c=(i+c).split(/\n+/);let g=c.length-1,h=0;for(;h<g;h++)(!e.start||o>=e.start)&&l(c[h]),o++;i=c[g]}),a.on("close",()=>{i&&l(i,!0),e.order==="desc"&&(s=s.reverse()),r&&r(null,s)});function l(c,g){try{let h=JSON.parse(c);f(h)&&u(h)}catch(h){g||a.emit("error",h)}}function u(c){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){a.readable&&a.destroy();return}e.fields&&(c=e.fields.reduce((g,h)=>(g[h]=c[h],g),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(c)}function f(c){if(!c||typeof c!="object")return;let g=new Date(c.timestamp);if(!(e.from&&g<e.from||e.until&&g>e.until||e.level&&e.level!==c.level))return!0}function d(c){return c=c||{},c.rows=c.rows||c.limit||10,c.start=c.start||0,c.until=c.until||new Date,typeof c.until!="object"&&(c.until=new Date(c.until)),c.from=c.from||c.until-1440*60*1e3,typeof c.from!="object"&&(c.from=new Date(c.from)),c.order=c.order||"desc",c}}stream(e={}){let r=K.join(this.dirname,this.filename),n=new p1,i={file:r,start:e.start};return n.destroy=y1(i,(s,o)=>{if(s)return n.emit("error",s);try{n.emit("data",o),o=JSON.parse(o),n.emit("log",o)}catch(a){n.emit("error",a)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,r)=>{if(e)return this.emit("error",e);be("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=K.join(this.dirname,r);oe.stat(n,(i,s)=>{if(i&&i.code==="ENOENT")return be("ENOENT\xA0ok",n),this.filename=r,e(null,0);if(i)return be(`err ${i.code} ${n}`),e(i);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=r,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let r=K.join(this.dirname,this.filename);be("create stream start",r,this.options);let n=oe.createWriteStream(r,this.options).on("error",i=>be(i)).on("close",()=>be("close",n.path,n.bytesWritten)).on("open",()=>{be("file open ok",r),this.emit("open",r),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new mh,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return be("create stream ok",r),n}_incFile(e){be("_incFile",this.filename);let r=K.extname(this._basename),n=K.basename(this._basename,r),i=[];this.zippedArchive&&i.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(K.join(this.dirname,`${n}${o}${r}`),K.join(this.dirname,`${n}${o}${r}.gz`),s)}.bind(this)),i.push(function(s){this.tailable?this._checkMaxFilesTailable(r,n,s):(this._created+=1,this._checkMaxFilesIncrementing(r,n,s))}.bind(this)),gh(i,e)}_getFile(){let e=K.extname(this._basename),r=K.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${r}${n}${e}`:`${r}${e}`}_checkMaxFilesIncrementing(e,r,n){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(n);let i=this._created-this.maxFiles,s=i!==0?i:"",o=this.zippedArchive?".gz":"",a=`${r}${s}${e}${o}`,l=K.join(this.dirname,a);oe.unlink(l,n)}_checkMaxFilesTailable(e,r,n){let i=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)i.push(function(a,l){let u=`${r}${a-1}${e}${s}`,f=K.join(this.dirname,u);oe.exists(f,d=>{if(!d)return l(null);u=`${r}${a}${e}${s}`,oe.rename(f,K.join(this.dirname,u),l)})}.bind(this,o));gh(i,()=>{oe.rename(K.join(this.dirname,`${r}${e}${s}`),K.join(this.dirname,`${r}1${e}${s}`),n)})}_compressFile(e,r,n){oe.access(e,oe.F_OK,i=>{if(i)return n();var s=h1.createGzip(),o=oe.createReadStream(e),a=oe.createWriteStream(r);a.on("finish",()=>{oe.unlink(e,n)}),o.pipe(s).pipe(a)})}_createLogDirIfNotExist(e){oe.existsSync(e)||oe.mkdirSync(e,{recursive:!0})}}});var wh=p((vx,vh)=>{"use strict";var b1=require("http"),v1=require("https"),{Stream:w1}=ot(),_1=Ct(),{configure:x1}=sr();vh.exports=class extends _1{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,r){this._request(e,null,null,(n,i)=>{i&&i.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${i.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),r&&setImmediate(r)}query(e,r){typeof e=="function"&&(r=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let i=e.params.path||null;delete e.params.path,this._request(e,n,i,(s,o,a)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return r(s);if(typeof a=="string")try{a=JSON.parse(a)}catch(l){return r(l)}r(null,a)})}stream(e={}){let r=new w1;e={method:"stream",params:e};let n=e.params.path||null;delete e.params.path;let i=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,i,n);return r.destroy=()=>o.destroy(),o.on("data",a=>{a=(s+a).split(/\n+/);let l=a.length-1,u=0;for(;u<l;u++)try{r.emit("log",JSON.parse(a[u]))}catch(f){r.emit("error",f)}s=a[l]}),o.on("error",a=>r.emit("error",a)),r}_request(e,r,n,i){e=e||{},r=r||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,i,r,n):this._doRequest(e,i,r,n)}_doBatch(e,r,n,i){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=r,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,n,i)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,i)}_doBatchRequest(e,r,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let i=this.batchOptions.slice();this.batchOptions=[],this._doRequest(i,e,r,n)}_doRequest(e,r,n,i){let s=Object.assign({},this.headers);n&&n.bearer&&(s.Authorization=`Bearer ${n.bearer}`);let o=(this.ssl?v1:b1).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${i.replace(/^\//,"")}`,headers:s,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});o.on("error",r),o.on("response",l=>l.on("end",()=>r(null,l)).resume());let a=x1({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var fo=p((wx,_h)=>{"use strict";var Ee=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ee.writable=t=>Ee(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ee.readable=t=>Ee(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Ee.duplex=t=>Ee.writable(t)&&Ee.readable(t);Ee.transform=t=>Ee.duplex(t)&&typeof t._transform=="function";_h.exports=Ee});var Sh=p((xx,xh)=>{"use strict";var S1=fo(),{MESSAGE:E1}=G(),O1=require("os"),M1=Ct();xh.exports=class extends M1{constructor(e={}){if(super(e),!e.stream||!S1(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:O1.EOL}log(e,r){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),r&&r();return}this._stream.write(`${e[E1]}${this.eol}`),r&&r()}}});var Eh=p(xr=>{"use strict";Object.defineProperty(xr,"Console",{configurable:!0,enumerable:!0,get(){return Kf()}});Object.defineProperty(xr,"File",{configurable:!0,enumerable:!0,get(){return bh()}});Object.defineProperty(xr,"Http",{configurable:!0,enumerable:!0,get(){return wh()}});Object.defineProperty(xr,"Stream",{configurable:!0,enumerable:!0,get(){return Sh()}})});var Jn=p(Sr=>{"use strict";var Yn=hs(),{configs:co}=G();Sr.cli=Yn.levels(co.cli);Sr.npm=Yn.levels(co.npm);Sr.syslog=Yn.levels(co.syslog);Sr.addColors=Yn.levels});var Mh=p((Kn,Oh)=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});var R1=Cn(),C1=at(R1),A1=kn(),L1=at(A1),q1=Js(),T1=at(q1),N1=Hs(),P1=at(N1),I1=Vs(),D1=at(I1),j1=st(),k1=at(j1),$1=Lt(),F1=at($1);function at(t){return t&&t.__esModule?t:{default:t}}function B1(t,e,r){r=(0,P1.default)(r);var n=0,i=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++i===s||u===L1.default)&&r(null))}for(;n<s;n++)e(t[n],n,(0,D1.default)(a))}function U1(t,e,r){return(0,T1.default)(t,1/0,e,r)}function z1(t,e,r){var n=(0,C1.default)(t)?B1:U1;return n(t,(0,k1.default)(e),r)}Kn.default=(0,F1.default)(z1,3);Oh.exports=Kn.default});var Ch=p((Qn,Rh)=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.default=G1;function G1(t){return(e,r,n)=>t(e,n)}Rh.exports=Qn.default});var ei=p((Xn,Ah)=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var W1=Mh(),H1=Zn(W1),V1=Ch(),Y1=Zn(V1),J1=st(),K1=Zn(J1),Q1=Lt(),Z1=Zn(Q1);function Zn(t){return t&&t.__esModule?t:{default:t}}function X1(t,e,r){return(0,H1.default)(t,(0,Y1.default)((0,K1.default)(e)),r)}Xn.default=(0,Z1.default)(X1,3);Ah.exports=Xn.default});var qh=p((Ox,Lh)=>{"use strict";var ev=Object.prototype.toString;Lh.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=ev.call(e).slice(8,-1);return n==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=n,r||"anonymous"}});var ho=p((Mx,Th)=>{"use strict";var tv=qh();Th.exports=function(e){var r=0,n;function i(){return r||(r=1,n=e.apply(this,arguments),e=null),n}return i.displayName=tv(e),i}});var po=p(Or=>{Or.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(r,t||Or.get);var i=r.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i};Or.parse=function(t){if(!t.stack)return[];var e=this,r=t.stack.split(`
|
|
59
|
+
`).slice(1);return r.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var i=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(i){var s=null,o=null,a=null,l=null,u=null,f=i[5]==="native";if(i[1]){a=i[1];var d=a.lastIndexOf(".");if(a[d-1]=="."&&d--,d>0){s=a.substr(0,d),o=a.substr(d+1);var c=s.indexOf(".Module");c>0&&(a=a.substr(c+1),s=s.substr(0,c))}l=null}o&&(l=s,u=o),o==="<anonymous>"&&(u=null,a=null);var g={fileName:i[2]||null,lineNumber:parseInt(i[3],10)||null,functionName:a,typeName:l,methodName:u,columnNumber:parseInt(i[4],10)||null,native:f};return e._createParsedCallSite(g)}}).filter(function(n){return!!n})};function Er(t){for(var e in t)this[e]=t[e]}var rv=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],nv=["topLevel","eval","native","constructor"];rv.forEach(function(t){Er.prototype[t]=null,Er.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});nv.forEach(function(t){Er.prototype[t]=!1,Er.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Or._createParsedCallSite=function(t){return new Er(t)}});var Ph=p((Ax,Nh)=>{"use strict";var{Writable:iv}=ot();Nh.exports=class extends iv{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 mo=p((qx,jh)=>{"use strict";var Ih=require("os"),sv=ei(),go=_r()("winston:exception"),ov=ho(),Dh=po(),av=Ph();jh.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(`
|
|
60
|
+
`),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:Ih.loadavg(),uptime:Ih.uptime()}}getTrace(e){return(e?Dh.parse(e):Dh.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 av(e);this.handlers.set(e,r),this.logger.pipe(r)}}_uncaughtException(e){let r=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function o(){go("doExit",i),go("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);sv(n,(a,l)=>{let u=ov(l),f=a.transport||a;function d(c){return()=>{go(c),u()}}f._ending=!0,f.once("finish",d("finished")),f.once("error",d("error"))},()=>i&&o()),this.logger.log(r),i&&(s=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var $h=p((Nx,kh)=>{"use strict";var{Writable:lv}=ot();kh.exports=class extends lv{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 bo=p((Ix,Uh)=>{"use strict";var Fh=require("os"),uv=ei(),yo=_r()("winston:rejection"),fv=ho(),Bh=po(),cv=$h();Uh.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(`
|
|
61
|
+
`),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:Fh.loadavg(),uptime:Fh.uptime()}}getTrace(e){return(e?Bh.parse(e):Bh.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 cv(e);this.handlers.set(e,r),this.logger.pipe(r)}}_unhandledRejection(e){let r=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function o(){yo("doExit",i),yo("process._exiting",process._exiting),i&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!n||n.length===0)return process.nextTick(o);uv(n,(a,l)=>{let u=fv(l),f=a.transport||a;function d(c){return()=>{yo(c),u()}}f._ending=!0,f.once("finish",d("finished")),f.once("error",d("error"))},()=>i&&o()),this.logger.log(r),i&&(s=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var Gh=p((Dx,zh)=>{"use strict";var vo=class{constructor(e){let r=ti();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)}};zh.exports=vo});var ti=p((jx,Yh)=>{"use strict";var{Stream:hv,Transform:dv}=ot(),Wh=ei(),{LEVEL:Oe,SPLAT:Hh}=G(),Vh=fo(),pv=mo(),gv=bo(),mv=zs(),yv=Gh(),{warn:bv}=ds(),vv=Jn(),wv=/%[scdjifoO%]/g,ri=class extends dv{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let r=this;return Object.create(r,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),r.write(i)}}})}configure({silent:e,format:r,defaultMeta:n,levels:i,level:s="info",exitOnError:o=!0,transports:a,colors:l,emitErrs:u,formatters:f,padLevels:d,rewriters:c,stripColors:g,exceptionHandlers:h,rejectionHandlers:y}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||as()(),this.defaultMeta=n||null,this.levels=i||this.levels||vv.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new pv(this),this.rejections=new gv(this),this.profilers={},this.exitOnError=o,a&&(a=Array.isArray(a)?a:[a],a.forEach(b=>this.add(b))),l||u||f||d||c||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(`
|
|
62
|
+
`));h&&this.exceptions.handle(h),y&&this.rejections.handle(y)}getHighestLogLevel(){let e=Mr(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((r,n)=>{let i=Mr(this.levels,n.level);return i!==null&&i>r?i:r},e)}isLevelEnabled(e){let r=Mr(this.levels,e);if(r===null)return!1;let n=Mr(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(s=>{let o=Mr(this.levels,s.level);return o===null&&(o=n),o>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[Oe]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[Oe]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[Oe]: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(wv))){let o=Object.assign({},this.defaultMeta,i,{[Oe]:e,[Hh]:n,level:e,message:r});return i.message&&(o.message=`${o.message} ${i.message}`),i.stack&&(o.stack=i.stack),i.cause&&(o.cause=i.cause),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[Oe]:e,[Hh]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[Oe]||(e[Oe]=e.level),!this.levels[e[Oe]]&&this.levels[e[Oe]]!==0&&console.error("[winston] Unknown logger level: %s",e[Oe]),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();Wh(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!Vh(e)||e.log.length>2?new mv({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(!Vh(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(){bv.deprecated("setLevels")}query(e,r){typeof e=="function"&&(r=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function s(a,l){e.query&&typeof a.formatQuery=="function"&&(e.query=a.formatQuery(i)),a.query(e,(u,f)=>{if(u)return l(u);typeof a.formatResults=="function"&&(f=a.formatResults(f,e.format)),l(null,f)})}function o(a,l){s(a,(u,f)=>{l&&(f=u||f,f&&(n[a.name]=f),l()),l=null})}Wh(this.transports.filter(a=>!!a.query),o,()=>r(null,n))}stream(e={}){let r=new hv,n=[];return r._streams=n,r.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let s=i.stream(e);s&&(n.push(s),s.on("log",o=>{o.transport=o.transport||[],o.transport.push(i.name),r.emit("log",o)}),s.on("error",o=>{o.transport=o.transport||[],o.transport.push(i.name),r.emit("error",o)}))}),r}startTimer(){return new yv(this)}profile(e,...r){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof r[r.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),r.pop());let s=typeof r[r.length-1]=="object"?r.pop():{};return s.level=s.level||"info",s.durationMs=n-i,s.message=s.message||e,this.write(s)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
63
|
+
`))}_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 Mr(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(ri.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});Yh.exports=ri});var wo=p((kx,Jh)=>{"use strict";var{LEVEL:_v}=G(),xv=Jn(),Sv=ti(),Ev=_r()("winston:create-logger");function Ov(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}Jh.exports=function(t={}){t.levels=t.levels||xv.npm.levels;class e extends Sv{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(Ev('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let s=this||r;if(i.length===1){let[o]=i,a=o&&o.message&&o||{message:o};return a.level=a[_v]=n,s._addDefaultMeta(a),s.write(a),this||r}return i.length===0?(s.log(n,""),s):s.log(n,...i)},e.prototype[Ov(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var Qh=p((Fx,Kh)=>{"use strict";var Mv=wo();Kh.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=Mv(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 Xh=p(D=>{"use strict";var Zh=hs(),{warn:Rr}=ds();D.version=Vu().version;D.transports=Eh();D.config=Jn();D.addColors=Zh.levels;D.format=Zh.format;D.createLogger=wo();D.Logger=ti();D.ExceptionHandler=mo();D.RejectionHandler=bo();D.Container=Qh();D.Transport=Ct();D.loggers=new D.Container;var Me=D.createLogger();Object.keys(D.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>D[t]=(...e)=>Me[t](...e));Object.defineProperty(D,"level",{get(){return Me.level},set(t){Me.level=t}});Object.defineProperty(D,"exceptions",{get(){return Me.exceptions}});Object.defineProperty(D,"rejections",{get(){return Me.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(D,t,{get(){return Me[t]},set(e){Me[t]=e}})});Object.defineProperty(D,"default",{get(){return{exceptionHandlers:Me.exceptionHandlers,rejectionHandlers:Me.rejectionHandlers,transports:Me.transports}}});Rr.deprecated(D,"setLevels");Rr.forFunctions(D,"useFormat",["cli"]);Rr.forProperties(D,"useFormat",["padLevels","stripColors"]);Rr.forFunctions(D,"deprecated",["addRewriter","addFilter","clone","extend"]);Rr.forProperties(D,"deprecated",["emitErrs","levelLength"])});var Tv={};fd(Tv,{default:()=>qv});module.exports=cd(Tv);var k=Ro(El(),1),Ui=k.default,_w=k.default.stringify,xw=k.default.fromJSON,Sw=k.default.plugin,Ew=k.default.parse,Ow=k.default.list,Mw=k.default.document,Rw=k.default.comment,Cw=k.default.atRule,Aw=k.default.rule,Lw=k.default.decl,qw=k.default.root,Tw=k.default.CssSyntaxError,Nw=k.default.Declaration,Pw=k.default.Container,Iw=k.default.Processor,Dw=k.default.Document,jw=k.default.Comment,kw=k.default.Warning,$w=k.default.AtRule,Fw=k.default.Result,Bw=k.default.Input,Uw=k.default.Rule,zw=k.default.Root,Gw=k.default.Node;var Ol=[{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 Q=Ro(Xh());function ed(t){let e=Q.format.printf(({message:a,timestamp:l,metadata:u})=>{let{previousToken:f,nextToken:d,line:c}=u,g=c?`(line ${c})`:"";return`${l} ${a}: ${f} \u2192 ${d} ${g}`}),r=Q.format.printf(({level:a,message:l,timestamp:u,failureReason:f,metadata:d})=>{let{previousToken:c,description:g}=d,h=g||f||"";return`${u} [${a.toUpperCase()}]: ${l}
|
|
64
|
+
\u21B3 reason: ${c} ${h}`}),n=Q.format.printf(({level:a,message:l,timestamp:u})=>`${u} [${a.toUpperCase()}]: ${l}`),i=(0,Q.format)(a=>{let l=a.metadata;return(l==null?void 0:l.status)==="success"?a:!1}),s=(0,Q.format)(a=>{let l=a.metadata;return(l==null?void 0:l.status)==="failure"||(l==null?void 0:l.status)==="warning"?a:!1}),o=(0,Q.createLogger)({level:"debug",transports:[new Q.transports.File({filename:`.report/${t}-success.log`,format:Q.format.combine(i(),Q.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),e)}),new Q.transports.File({filename:`.report/${t}-issues.log`,format:Q.format.combine(s(),Q.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),r)}),new Q.transports.File({filename:`.report/${t}-debug.log`,level:"debug",format:Q.format.combine(Q.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),n)})]});return{logger:o,logTransformResult(a,l){let{status:u,failureReason:f,needsVerification:d,description:c,previousToken:g,nextToken:h}=l,y=u==="success"?"info":u==="warning"?"warn":"error",b=l.line?`(line: ${l.line})`:"";o.log({level:y,message:`${a} ${b}`,...f&&{failureReason:f},...c&&{description:c},metadata:l}),d&&u==="success"&&o.log({level:"warn",message:`${a} ${b}`,metadata:{previousToken:g,nextToken:h,status:"warning",description:c||"\uC0AC\uC6A9 \uD655\uC778 \uD544\uC694\uD55C \uD1A0\uD070\uC785\uB2C8\uB2E4",needsVerification:!0,line:l.line}})},startFile(a){o.debug(`Starting transformation of ${a}`)},finishFile(a){o.debug(`Finished transformation of ${a}`)}}}var Ne=ed("replace-css-seed-design-typography-variable");function Rv(t){let e=Ol.find(r=>r.previous===t);return e?e.next&&e.next.length>0?e.next[0]:(!e.next||e.next.length===0)&&e.alternative&&e.alternative.length>0?e.alternative[0]:null:null}function Cv(t,e){let r=t,n=!1,i=[];return r=t.replace(/var\(--seed-semantic-typography-([^-]+)-([^-]+)-([^)]+)\)/g,(s,o,a,l)=>{try{let u=`$semantic.typography.${o}${a.charAt(0).toUpperCase()+a.slice(1)}`,f=Rv(u);if(!f)return Ne.logTransformResult(e,{previousToken:s,nextToken:null,status:"warning",failureReason:`No mapping found for ${u}`}),s;let d="";switch(l){case"font-size":d=`--seed-font-size-${f.replace(/Regular|Medium|Bold/,"")}`;break;case"line-height":d=`--seed-line-height-${f.replace(/Regular|Medium|Bold/,"")}`;break;case"font-weight":f.includes("Regular")?d="--seed-font-weight-regular":f.includes("Medium")?d="--seed-font-weight-medium":f.includes("Bold")&&(d="--seed-font-weight-bold");break;case"letter-spacing":return i.push({from:s,to:"normal"}),n=!0,"normal";default:return Ne.logTransformResult(e,{previousToken:s,nextToken:null,status:"warning",failureReason:`Unknown property: ${l}`}),s}let c=`var(${d})`;return i.push({from:s,to:c}),n=!0,c}catch(u){return Ne.logTransformResult(e,{previousToken:s,nextToken:null,status:"failure",failureReason:`Error transforming token: ${u.message}`}),s}}),{newValue:r,hasChanges:n,transformResults:i}}function Av(t,e){Ne.startFile(e);try{let r=!1,o=Ui([{postcssPlugin:"replace-css-typography-variable",Declaration(a){if(a.value.includes("var(--seed-semantic-typography")){let l=a.value,{newValue:u,hasChanges:f,transformResults:d}=Cv(l,e);f&&(a.value=u,r=!0,d.forEach(c=>{Ne.logTransformResult(e,{previousToken:c.from,nextToken:c.to,status:"success"})}))}}}]).process(t,{from:e,parser:Ui.parse}).sync().root.toString();return r||Ne.logTransformResult(e,{previousToken:"No CSS typography variables found to transform",nextToken:null,status:"warning"}),Ne.finishFile(e),o}catch(r){return Ne.logTransformResult(e,{previousToken:`Error processing CSS: ${r.message}`,nextToken:null,status:"failure",failureReason:r.message}),Ne.finishFile(e),t}}var Lv=(t,e,r)=>t.path.endsWith(".css")?Av(t.source,t.path):t.source,qv=Lv;
|
|
64
65
|
/*! Bundled license information:
|
|
65
66
|
|
|
66
67
|
safe-buffer/index.js:
|