@seed-design/codemod 0.0.16 → 0.0.18
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 +58 -16
- package/bin/transforms/replace-color-design-token/index.js +35 -16
- package/bin/transforms/replace-color-prop/index.js +35 -16
- package/bin/transforms/replace-css-color-variable/index.js +58 -39
- package/bin/transforms/replace-css-typography-variable/index.js +57 -38
- package/bin/transforms/replace-tailwind-color/index.js +35 -16
- package/bin/transforms/replace-tailwind-typography/index.js +35 -16
- package/bin/transforms/replace-text-component/index.js +35 -16
- package/bin/transforms/replace-typography-design-token/index.js +35 -16
- package/package.json +3 -3
@@ -1,50 +1,69 @@
|
|
1
|
-
var
|
2
|
-
`):t+=i[1]}return t}
|
3
|
-
`+
|
4
|
-
`+
|
1
|
+
var Om=Object.create;var Di=Object.defineProperty;var Cm=Object.getOwnPropertyDescriptor;var Rm=Object.getOwnPropertyNames;var Mm=Object.getPrototypeOf,Am=Object.prototype.hasOwnProperty;var m=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Tm=(r,e)=>{for(var t in e)Di(r,t,{get:e[t],enumerable:!0})},xl=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rm(e))!Am.call(r,n)&&n!==t&&Di(r,n,{get:()=>e[n],enumerable:!(i=Cm(e,n))||i.enumerable});return r};var vr=(r,e,t)=>(t=r!=null?Om(Mm(r)):{},xl(e||!r||!r.__esModule?Di(t,"default",{value:r,enumerable:!0}):t,r)),Lm=r=>xl(Di({},"__esModule",{value:!0}),r);var Ps=m((p2,qs)=>{var Ii=process||{},El=Ii.argv||[],ki=Ii.env||{},qm=!(ki.NO_COLOR||El.includes("--no-color"))&&(!!ki.FORCE_COLOR||El.includes("--color")||Ii.platform==="win32"||(Ii.stdout||{}).isTTY&&ki.TERM!=="dumb"||!!ki.CI),Pm=(r,e,t=r)=>i=>{let n=""+i,s=n.indexOf(e,r.length);return~s?r+Nm(n,e,t,s)+e:r+n+e},Nm=(r,e,t,i)=>{let n="",s=0;do n+=r.substring(s,i)+t,s=i+e.length,i=r.indexOf(e,s);while(~i);return n+r.substring(s)},Ol=(r=qm)=>{let e=r?Pm:()=>String;return{isColorSupported:r,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")}};qs.exports=Ol();qs.exports.createColors=Ol});var Ns=m((g2,Rl)=>{"use strict";var Fi=/[\t\n\f\r "#'()/;[\\\]{}]/g,ji=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Dm=/.[\r\n"'(/\\]/,Cl=/[\da-f]/i;Rl.exports=function(e,t={}){let i=e.css.valueOf(),n=t.ignoreErrors,s,o,a,l,u,h,f,c,p,d,g=i.length,y=0,w=[],S=[];function b(){return y}function _(q){throw e.error("Unclosed "+q,y)}function C(){return S.length===0&&y>=g}function M(q){if(S.length)return S.pop();if(y>=g)return;let R=q?q.ignoreUnclosed:!1;switch(s=i.charCodeAt(y),s){case 10:case 32:case 9:case 13:case 12:{l=y;do l+=1,s=i.charCodeAt(l);while(s===32||s===10||s===9||s===13||s===12);h=["space",i.slice(y,l)],y=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let j=String.fromCharCode(s);h=[j,j,y];break}case 40:{if(d=w.length?w.pop()[1]:"",p=i.charCodeAt(y+1),d==="url"&&p!==39&&p!==34&&p!==32&&p!==10&&p!==9&&p!==12&&p!==13){l=y;do{if(f=!1,l=i.indexOf(")",l+1),l===-1)if(n||R){l=y;break}else _("bracket");for(c=l;i.charCodeAt(c-1)===92;)c-=1,f=!f}while(f);h=["brackets",i.slice(y,l+1),y,l],y=l}else l=i.indexOf(")",y+1),o=i.slice(y,l+1),l===-1||Dm.test(o)?h=["(","(",y]:(h=["brackets",o,y,l],y=l);break}case 39:case 34:{u=s===39?"'":'"',l=y;do{if(f=!1,l=i.indexOf(u,l+1),l===-1)if(n||R){l=y+1;break}else _("string");for(c=l;i.charCodeAt(c-1)===92;)c-=1,f=!f}while(f);h=["string",i.slice(y,l+1),y,l],y=l;break}case 64:{Fi.lastIndex=y+1,Fi.test(i),Fi.lastIndex===0?l=i.length-1:l=Fi.lastIndex-2,h=["at-word",i.slice(y,l+1),y,l],y=l;break}case 92:{for(l=y,a=!0;i.charCodeAt(l+1)===92;)l+=1,a=!a;if(s=i.charCodeAt(l+1),a&&s!==47&&s!==32&&s!==10&&s!==9&&s!==13&&s!==12&&(l+=1,Cl.test(i.charAt(l)))){for(;Cl.test(i.charAt(l+1));)l+=1;i.charCodeAt(l+1)===32&&(l+=1)}h=["word",i.slice(y,l+1),y,l],y=l;break}default:{s===47&&i.charCodeAt(y+1)===42?(l=i.indexOf("*/",y+2)+1,l===0&&(n||R?l=i.length:_("comment")),h=["comment",i.slice(y,l+1),y,l],y=l):(ji.lastIndex=y+1,ji.test(i),ji.lastIndex===0?l=i.length-1:l=ji.lastIndex-2,h=["word",i.slice(y,l+1),y,l],w.push(h),y=l);break}}return y++,h}function T(q){S.push(q)}return{back:T,endOfFile:C,nextToken:M,position:b}}});var Ds=m((m2,Tl)=>{"use strict";var ae=Ps(),km=Ns(),Ml;function Im(r){Ml=r}var Fm={";":ae.yellow,":":ae.yellow,"(":ae.cyan,")":ae.cyan,"[":ae.yellow,"]":ae.yellow,"{":ae.yellow,"}":ae.yellow,"at-word":ae.cyan,brackets:ae.cyan,call:ae.cyan,class:ae.yellow,comment:ae.gray,hash:ae.magenta,string:ae.green};function jm([r,e],t){if(r==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!t.endOfFile()){let i=t.nextToken();if(t.back(i),i[0]==="brackets"||i[0]==="(")return"call"}return r}function Al(r){let e=km(new Ml(r),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let i=e.nextToken(),n=Fm[jm(i,e)];n?t+=i[1].split(/\r?\n/).map(s=>n(s)).join(`
|
2
|
+
`):t+=i[1]}return t}Al.registerInput=Im;Tl.exports=Al});var $i=m((y2,Pl)=>{"use strict";var Ll=Ps(),ql=Ds(),br=class r extends Error{constructor(e,t,i,n,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}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 t=this.source;e==null&&(e=Ll.isColorSupported);let i=h=>h,n=h=>h,s=h=>h;if(e){let{bold:h,gray:f,red:c}=Ll.createColors(!0);n=p=>h(c(p)),i=p=>f(p),ql&&(s=p=>ql(p))}let o=t.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((h,f)=>{let c=a+1+f,p=" "+(" "+c).slice(-u)+" | ";if(c===this.line){if(h.length>160){let g=20,y=Math.max(0,this.column-g),w=Math.max(this.column+g,this.endColumn+g),S=h.slice(y,w),b=i(p.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return n(">")+i(p)+s(S)+`
|
3
|
+
`+b+n("^")}let d=i(p.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+i(p)+s(h)+`
|
4
|
+
`+d+n("^")}return" "+i(p)+s(h)}).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}};Pl.exports=br;br.default=br});var ks=m((w2,Dl)=>{"use strict";var Nl={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<
|
15
|
-
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(
|
16
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(
|
13
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $m(r){return r[0].toUpperCase()+r.slice(1)}var Sr=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:n&&(i+=" "),e.nodes)this.block(e,i+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(i+n+s,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&n.type!=="root";)s+=1,n=n.parent;if(i.includes(`
|
14
|
+
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)i+=o}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==n||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),n=e.prop+i+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,i){let n;if(i||(i=t),t&&(n=e.raws[t],typeof n<"u"))return n;let s=e.parent;if(i==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return Nl[i];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[i]<"u")return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let a="raw"+$m(i);this[a]?n=this[a](o,e):o.walk(l=>{if(n=l.raws[t],typeof n<"u")return!1})}return typeof n>"u"&&(n=Nl[i]),o.rawCache[i]=n,n}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
|
15
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(n=>{if(typeof n.raws.before<"u")return i=n.raws.before,i.includes(`
|
16
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return i=n.raws.before,i.includes(`
|
17
17
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
|
18
|
-
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let
|
19
|
-
`);return t=
|
20
|
-
`?(t=1,i+=1):t+=1}return
|
21
|
-
`?(t=1,i+=1):t+=1;return{column:t,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,o=s.slice(Xe(s,this.source.start),Xe(s,this.source.end)).indexOf(e.word);o!==-1&&(t=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new Vo().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let s of e)s===this?i=!0:i?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},s=t==null;t=t||new Map;let r=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))i[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)i[o]=a.toJSON(null,t);else if(o==="source"){let l=t.get(a.input);l==null&&(l=r,t.set(a.input,r),r++),i[o]={end:a.end,inputId:l,start:a.start}}else i[o]=a}return s&&(i.inputs=[...t.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ho){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let s={node:this};for(let r in i)s[r]=i[r];return e.warn(t,s)}};$s.exports=Ze;Ze.default=Ze});var it=x((au,js)=>{"use strict";var Jo=et(),tt=class extends Jo{constructor(e){super(e),this.type="comment"}};js.exports=tt;tt.default=tt});var rt=x((hu,zs)=>{"use strict";var Ko=et(),st=class extends Ko{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"}};zs.exports=st;st.default=st});var pe=x((uu,Ys)=>{"use strict";var Ws=it(),qs=rt(),Yo=et(),{isClean:Gs,my:Vs}=Bt(),Li,Hs,Qs,Ti;function Js(n){return n.map(e=>(e.nodes&&(e.nodes=Js(e.nodes)),delete e.source,e))}function Ks(n){if(n[Gs]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Ks(e)}var Y=class n extends Yo{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 t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}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,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(r,o)=>s(r.toProxy(),o):s)):t==="every"||t==="some"?i=>e[t]((s,...r)=>i(s.toProxy(),...r)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of s)this.proxyOf.nodes.splice(i+1,0,o);let r;for(let o in this.indexes)r=this.indexes[o],i<r&&(this.indexes[o]=r+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,r=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let a of r)this.proxyOf.nodes.splice(i,0,a);let o;for(let a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+r.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Js(Hs(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"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 qs(e)]}else if(e.selector||e.selectors)e=[new Ti(e)];else if(e.name)e=[new Li(e)];else if(e.text)e=[new Ws(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Vs]||n.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Gs]&&Ks(s),s.raws||(s.raws={}),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.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 t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(r){throw t.addToError(r)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)}))}};Y.registerParse=n=>{Hs=n};Y.registerRule=n=>{Ti=n};Y.registerAtRule=n=>{Li=n};Y.registerRoot=n=>{Qs=n};Ys.exports=Y;Y.default=Y;Y.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Li.prototype):n.type==="rule"?Object.setPrototypeOf(n,Ti.prototype):n.type==="decl"?Object.setPrototypeOf(n,qs.prototype):n.type==="comment"?Object.setPrototypeOf(n,Ws.prototype):n.type==="root"&&Object.setPrototypeOf(n,Qs.prototype),n[Vs]=!0,n.nodes&&n.nodes.forEach(e=>{Y.rebuild(e)})}});var Ut=x((cu,Zs)=>{"use strict";var Xs=pe(),Re=class extends Xs{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)}};Zs.exports=Re;Re.default=Re;Xs.registerAtRule(Re)});var $t=x((fu,ir)=>{"use strict";var Xo=pe(),er,tr,ve=class extends Xo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new er(new tr,this,e).stringify()}};ve.registerLazyResult=n=>{er=n};ve.registerProcessor=n=>{tr=n};ir.exports=ve;ve.default=ve});var rr=x((pu,sr)=>{var Zo="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",el=(n,e=21)=>(t=e)=>{let i="",s=t|0;for(;s--;)i+=n[Math.random()*n.length|0];return i},tl=(n=21)=>{let e="",t=n|0;for(;t--;)e+=Zo[Math.random()*64|0];return e};sr.exports={nanoid:tl,customAlphabet:el}});var or=x(ki=>{var nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ki.encode=function(n){if(0<=n&&n<nr.length)return nr[n];throw new TypeError("Must be between 0 and 63: "+n)};ki.decode=function(n){var e=65,t=90,i=97,s=122,r=48,o=57,a=43,l=47,h=26,u=52;return e<=n&&n<=t?n-e:i<=n&&n<=s?n-i+h:r<=n&&n<=o?n-r+u:n==a?62:n==l?63:-1}});var Di=x(Pi=>{var lr=or(),Ni=5,ar=1<<Ni,hr=ar-1,ur=ar;function il(n){return n<0?(-n<<1)+1:(n<<1)+0}function sl(n){var e=(n&1)===1,t=n>>1;return e?-t:t}Pi.encode=function(e){var t="",i,s=il(e);do i=s&hr,s>>>=Ni,s>0&&(i|=ur),t+=lr.encode(i);while(s>0);return t};Pi.decode=function(e,t,i){var s=e.length,r=0,o=0,a,l;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=lr.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(l&ur),l&=hr,r=r+(l<<o),o+=Ni}while(a);i.value=sl(r),i.rest=t}});var Le=x(L=>{function rl(n,e,t){if(e in n)return n[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}L.getArg=rl;var cr=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,nl=/^data:.+\,.+$/;function nt(n){var e=n.match(cr);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}L.urlParse=nt;function Me(n){var e="";return n.scheme&&(e+=n.scheme+":"),e+="//",n.auth&&(e+=n.auth+"@"),n.host&&(e+=n.host),n.port&&(e+=":"+n.port),n.path&&(e+=n.path),e}L.urlGenerate=Me;var ol=32;function ll(n){var e=[];return function(t){for(var i=0;i<e.length;i++)if(e[i].input===t){var s=e[0];return e[0]=e[i],e[i]=s,e[0].result}var r=n(t);return e.unshift({input:t,result:r}),e.length>ol&&e.pop(),r}}var Fi=ll(function(e){var t=e,i=nt(e);if(i){if(!i.path)return e;t=i.path}for(var s=L.isAbsolute(t),r=[],o=0,a=0;;)if(o=a,a=t.indexOf("/",o),a===-1){r.push(t.slice(o));break}else for(r.push(t.slice(o,a));a<t.length&&t[a]==="/";)a++;for(var l,h=0,a=r.length-1;a>=0;a--)l=r[a],l==="."?r.splice(a,1):l===".."?h++:h>0&&(l===""?(r.splice(a+1,h),h=0):(r.splice(a,2),h--));return t=r.join("/"),t===""&&(t=s?"/":"."),i?(i.path=t,Me(i)):t});L.normalize=Fi;function fr(n,e){n===""&&(n="."),e===""&&(e=".");var t=nt(e),i=nt(n);if(i&&(n=i.path||"/"),t&&!t.scheme)return i&&(t.scheme=i.scheme),Me(t);if(t||e.match(nl))return e;if(i&&!i.host&&!i.path)return i.host=e,Me(i);var s=e.charAt(0)==="/"?e:Fi(n.replace(/\/+$/,"")+"/"+e);return i?(i.path=s,Me(i)):s}L.join=fr;L.isAbsolute=function(n){return n.charAt(0)==="/"||cr.test(n)};function al(n,e){n===""&&(n="."),n=n.replace(/\/$/,"");for(var t=0;e.indexOf(n+"/")!==0;){var i=n.lastIndexOf("/");if(i<0||(n=n.slice(0,i),n.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(n.length+1)}L.relative=al;var pr=function(){var n=Object.create(null);return!("__proto__"in n)}();function dr(n){return n}function hl(n){return mr(n)?"$"+n:n}L.toSetString=pr?dr:hl;function ul(n){return mr(n)?n.slice(1):n}L.fromSetString=pr?dr:ul;function mr(n){if(!n)return!1;var e=n.length;if(e<9||n.charCodeAt(e-1)!==95||n.charCodeAt(e-2)!==95||n.charCodeAt(e-3)!==111||n.charCodeAt(e-4)!==116||n.charCodeAt(e-5)!==111||n.charCodeAt(e-6)!==114||n.charCodeAt(e-7)!==112||n.charCodeAt(e-8)!==95||n.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(n.charCodeAt(t)!==36)return!1;return!0}function cl(n,e,t){var i=le(n.source,e.source);return i!==0||(i=n.originalLine-e.originalLine,i!==0)||(i=n.originalColumn-e.originalColumn,i!==0||t)||(i=n.generatedColumn-e.generatedColumn,i!==0)||(i=n.generatedLine-e.generatedLine,i!==0)?i:le(n.name,e.name)}L.compareByOriginalPositions=cl;function fl(n,e,t){var i;return i=n.originalLine-e.originalLine,i!==0||(i=n.originalColumn-e.originalColumn,i!==0||t)||(i=n.generatedColumn-e.generatedColumn,i!==0)||(i=n.generatedLine-e.generatedLine,i!==0)?i:le(n.name,e.name)}L.compareByOriginalPositionsNoSource=fl;function pl(n,e,t){var i=n.generatedLine-e.generatedLine;return i!==0||(i=n.generatedColumn-e.generatedColumn,i!==0||t)||(i=le(n.source,e.source),i!==0)||(i=n.originalLine-e.originalLine,i!==0)||(i=n.originalColumn-e.originalColumn,i!==0)?i:le(n.name,e.name)}L.compareByGeneratedPositionsDeflated=pl;function dl(n,e,t){var i=n.generatedColumn-e.generatedColumn;return i!==0||t||(i=le(n.source,e.source),i!==0)||(i=n.originalLine-e.originalLine,i!==0)||(i=n.originalColumn-e.originalColumn,i!==0)?i:le(n.name,e.name)}L.compareByGeneratedPositionsDeflatedNoLine=dl;function le(n,e){return n===e?0:n===null?1:e===null?-1:n>e?1:-1}function ml(n,e){var t=n.generatedLine-e.generatedLine;return t!==0||(t=n.generatedColumn-e.generatedColumn,t!==0)||(t=le(n.source,e.source),t!==0)||(t=n.originalLine-e.originalLine,t!==0)||(t=n.originalColumn-e.originalColumn,t!==0)?t:le(n.name,e.name)}L.compareByGeneratedPositionsInflated=ml;function gl(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}L.parseSourceMapInput=gl;function wl(n,e,t){if(e=e||"",n&&(n[n.length-1]!=="/"&&e[0]!=="/"&&(n+="/"),e=n+e),t){var i=nt(t);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var s=i.path.lastIndexOf("/");s>=0&&(i.path=i.path.substring(0,s+1))}e=fr(Me(i),e)}return Fi(e)}L.computeSourceURL=wl});var Ui=x(gr=>{var Ii=Le(),Bi=Object.prototype.hasOwnProperty,xe=typeof Map<"u";function ae(){this._array=[],this._set=xe?new Map:Object.create(null)}ae.fromArray=function(e,t){for(var i=new ae,s=0,r=e.length;s<r;s++)i.add(e[s],t);return i};ae.prototype.size=function(){return xe?this._set.size:Object.getOwnPropertyNames(this._set).length};ae.prototype.add=function(e,t){var i=xe?e:Ii.toSetString(e),s=xe?this.has(e):Bi.call(this._set,i),r=this._array.length;(!s||t)&&this._array.push(e),s||(xe?this._set.set(e,r):this._set[i]=r)};ae.prototype.has=function(e){if(xe)return this._set.has(e);var t=Ii.toSetString(e);return Bi.call(this._set,t)};ae.prototype.indexOf=function(e){if(xe){var t=this._set.get(e);if(t>=0)return t}else{var i=Ii.toSetString(e);if(Bi.call(this._set,i))return this._set[i]}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()};gr.ArraySet=ae});var br=x(yr=>{var wr=Le();function yl(n,e){var t=n.generatedLine,i=e.generatedLine,s=n.generatedColumn,r=e.generatedColumn;return i>t||i==t&&r>=s||wr.compareByGeneratedPositionsInflated(n,e)<=0}function jt(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}jt.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};jt.prototype.add=function(e){yl(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};jt.prototype.toArray=function(){return this._sorted||(this._array.sort(wr.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};yr.MappingList=jt});var $i=x(Sr=>{var ot=Di(),R=Le(),zt=Ui().ArraySet,bl=br().MappingList;function H(n){n||(n={}),this._file=R.getArg(n,"file",null),this._sourceRoot=R.getArg(n,"sourceRoot",null),this._skipValidation=R.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=R.getArg(n,"ignoreInvalidMapping",!1),this._sources=new zt,this._names=new zt,this._mappings=new bl,this._sourcesContents=null}H.prototype._version=3;H.fromSourceMap=function(e,t){var i=e.sourceRoot,s=new H(Object.assign(t||{},{file:e.file,sourceRoot:i}));return e.eachMapping(function(r){var o={generated:{line:r.generatedLine,column:r.generatedColumn}};r.source!=null&&(o.source=r.source,i!=null&&(o.source=R.relative(i,o.source)),o.original={line:r.originalLine,column:r.originalColumn},r.name!=null&&(o.name=r.name)),s.addMapping(o)}),e.sources.forEach(function(r){var o=r;i!==null&&(o=R.relative(i,r)),s._sources.has(o)||s._sources.add(o);var a=e.sourceContentFor(r);a!=null&&s.setSourceContent(r,a)}),s};H.prototype.addMapping=function(e){var t=R.getArg(e,"generated"),i=R.getArg(e,"original",null),s=R.getArg(e,"source",null),r=R.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,i,s,r)===!1||(s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),r!=null&&(r=String(r),this._names.has(r)||this._names.add(r)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:s,name:r}))};H.prototype.setSourceContent=function(e,t){var i=e;this._sourceRoot!=null&&(i=R.relative(this._sourceRoot,i)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[R.toSetString(i)]=t):this._sourcesContents&&(delete this._sourcesContents[R.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};H.prototype.applySourceMap=function(e,t,i){var s=t;if(t==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.`);s=e.file}var r=this._sourceRoot;r!=null&&(s=R.relative(r,s));var o=new zt,a=new zt;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var h=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});h.source!=null&&(l.source=h.source,i!=null&&(l.source=R.join(i,l.source)),r!=null&&(l.source=R.relative(r,l.source)),l.originalLine=h.line,l.originalColumn=h.column,h.name!=null&&(l.name=h.name))}var u=l.source;u!=null&&!o.has(u)&&o.add(u);var c=l.name;c!=null&&!a.has(c)&&a.add(c)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var h=e.sourceContentFor(l);h!=null&&(i!=null&&(l=R.join(i,l)),r!=null&&(l=R.relative(r,l)),this.setSourceContent(l,h))},this)};H.prototype._validateMapping=function(e,t,i,s){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var r="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(r),!1;throw new Error(r)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!i&&!s)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&i)return;var r="Invalid mapping: "+JSON.stringify({generated:e,source:i,original:t,name:s});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(r),!1;throw new Error(r)}};H.prototype._serializeMappings=function(){for(var e=0,t=1,i=0,s=0,r=0,o=0,a="",l,h,u,c,f=this._mappings.toArray(),p=0,w=f.length;p<w;p++){if(h=f[p],l="",h.generatedLine!==t)for(e=0;h.generatedLine!==t;)l+=";",t++;else if(p>0){if(!R.compareByGeneratedPositionsInflated(h,f[p-1]))continue;l+=","}l+=ot.encode(h.generatedColumn-e),e=h.generatedColumn,h.source!=null&&(c=this._sources.indexOf(h.source),l+=ot.encode(c-o),o=c,l+=ot.encode(h.originalLine-1-s),s=h.originalLine-1,l+=ot.encode(h.originalColumn-i),i=h.originalColumn,h.name!=null&&(u=this._names.indexOf(h.name),l+=ot.encode(u-r),r=u)),a+=l}return a};H.prototype._generateSourcesContent=function(e,t){return e.map(function(i){if(!this._sourcesContents)return null;t!=null&&(i=R.relative(t,i));var s=R.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};H.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};H.prototype.toString=function(){return JSON.stringify(this.toJSON())};Sr.SourceMapGenerator=H});var vr=x(Ce=>{Ce.GREATEST_LOWER_BOUND=1;Ce.LEAST_UPPER_BOUND=2;function ji(n,e,t,i,s,r){var o=Math.floor((e-n)/2)+n,a=s(t,i[o],!0);return a===0?o:a>0?e-o>1?ji(o,e,t,i,s,r):r==Ce.LEAST_UPPER_BOUND?e<i.length?e:-1:o:o-n>1?ji(n,o,t,i,s,r):r==Ce.LEAST_UPPER_BOUND?o:n<0?-1:n}Ce.search=function(e,t,i,s){if(t.length===0)return-1;var r=ji(-1,t.length,e,t,i,s||Ce.GREATEST_LOWER_BOUND);if(r<0)return-1;for(;r-1>=0&&i(t[r],t[r-1],!0)===0;)--r;return r}});var Er=x(Cr=>{function Sl(n){function e(s,r,o){var a=s[r];s[r]=s[o],s[o]=a}function t(s,r){return Math.round(s+Math.random()*(r-s))}function i(s,r,o,a){if(o<a){var l=t(o,a),h=o-1;e(s,l,a);for(var u=s[a],c=o;c<a;c++)r(s[c],u,!1)<=0&&(h+=1,e(s,h,c));e(s,h+1,c);var f=h+1;i(s,r,o,f-1),i(s,r,f+1,a)}}return i}function vl(n){let e=Sl.toString();return new Function(`return ${e}`)()(n)}var xr=new WeakMap;Cr.quickSort=function(n,e,t=0){let i=xr.get(e);i===void 0&&(i=vl(e),xr.set(e,i)),i(n,e,t,n.length-1)}});var Ar=x(Wt=>{var y=Le(),Wi=vr(),Te=Ui().ArraySet,xl=Di(),lt=Er().quickSort;function A(n,e){var t=n;return typeof n=="string"&&(t=y.parseSourceMapInput(n)),t.sections!=null?new X(t,e):new P(t,e)}A.fromSourceMap=function(n,e){return P.fromSourceMap(n,e)};A.prototype._version=3;A.prototype.__generatedMappings=null;Object.defineProperty(A.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});A.prototype.__originalMappings=null;Object.defineProperty(A.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});A.prototype._charIsMappingSeparator=function(e,t){var i=e.charAt(t);return i===";"||i===","};A.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};A.GENERATED_ORDER=1;A.ORIGINAL_ORDER=2;A.GREATEST_LOWER_BOUND=1;A.LEAST_UPPER_BOUND=2;A.prototype.eachMapping=function(e,t,i){var s=t||null,r=i||A.GENERATED_ORDER,o;switch(r){case A.GENERATED_ORDER:o=this._generatedMappings;break;case A.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(s),h=this._names,u=this._sources,c=this._sourceMapURL,f=0,p=o.length;f<p;f++){var w=o[f],d=w.source===null?null:u.at(w.source);d!==null&&(d=y.computeSourceURL(a,d,c)),l({source:d,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:h.at(w.name)})}};A.prototype.allGeneratedPositionsFor=function(e){var t=y.getArg(e,"line"),i={source:y.getArg(e,"source"),originalLine:t,originalColumn:y.getArg(e,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var s=[],r=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",y.compareByOriginalPositions,Wi.LEAST_UPPER_BOUND);if(r>=0){var o=this._originalMappings[r];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)s.push({line:y.getArg(o,"generatedLine",null),column:y.getArg(o,"generatedColumn",null),lastColumn:y.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++r];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)s.push({line:y.getArg(o,"generatedLine",null),column:y.getArg(o,"generatedColumn",null),lastColumn:y.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++r]}return s};Wt.SourceMapConsumer=A;function P(n,e){var t=n;typeof n=="string"&&(t=y.parseSourceMapInput(n));var i=y.getArg(t,"version"),s=y.getArg(t,"sources"),r=y.getArg(t,"names",[]),o=y.getArg(t,"sourceRoot",null),a=y.getArg(t,"sourcesContent",null),l=y.getArg(t,"mappings"),h=y.getArg(t,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);o&&(o=y.normalize(o)),s=s.map(String).map(y.normalize).map(function(u){return o&&y.isAbsolute(o)&&y.isAbsolute(u)?y.relative(o,u):u}),this._names=Te.fromArray(r.map(String),!0),this._sources=Te.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(u){return y.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=h}P.prototype=Object.create(A.prototype);P.prototype.consumer=A;P.prototype._findSourceIndex=function(n){var e=n;if(this.sourceRoot!=null&&(e=y.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==n)return t;return-1};P.fromSourceMap=function(e,t){var i=Object.create(P.prototype),s=i._names=Te.fromArray(e._names.toArray(),!0),r=i._sources=Te.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=t,i._absoluteSources=i._sources.toArray().map(function(p){return y.computeSourceURL(i.sourceRoot,p,t)});for(var o=e._mappings.toArray().slice(),a=i.__generatedMappings=[],l=i.__originalMappings=[],h=0,u=o.length;h<u;h++){var c=o[h],f=new Or;f.generatedLine=c.generatedLine,f.generatedColumn=c.generatedColumn,c.source&&(f.source=r.indexOf(c.source),f.originalLine=c.originalLine,f.originalColumn=c.originalColumn,c.name&&(f.name=s.indexOf(c.name)),l.push(f)),a.push(f)}return lt(i.__originalMappings,y.compareByOriginalPositions),i};P.prototype._version=3;Object.defineProperty(P.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Or(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var zi=y.compareByGeneratedPositionsDeflatedNoLine;function _r(n,e){let t=n.length,i=n.length-e;if(!(i<=1))if(i==2){let s=n[e],r=n[e+1];zi(s,r)>0&&(n[e]=r,n[e+1]=s)}else if(i<20)for(let s=e;s<t;s++)for(let r=s;r>e;r--){let o=n[r-1],a=n[r];if(zi(o,a)<=0)break;n[r-1]=a,n[r]=o}else lt(n,zi,e)}P.prototype._parseMappings=function(e,t){var i=1,s=0,r=0,o=0,a=0,l=0,h=e.length,u=0,c={},f={},p=[],w=[],d,m,g,b,S;let v=0;for(;u<h;)if(e.charAt(u)===";")i++,u++,s=0,_r(w,v),v=w.length;else if(e.charAt(u)===",")u++;else{for(d=new Or,d.generatedLine=i,b=u;b<h&&!this._charIsMappingSeparator(e,b);b++);for(m=e.slice(u,b),g=[];u<b;)xl.decode(e,u,f),S=f.value,u=f.rest,g.push(S);if(g.length===2)throw new Error("Found a source, but no line and column");if(g.length===3)throw new Error("Found a source and line, but no column");if(d.generatedColumn=s+g[0],s=d.generatedColumn,g.length>1&&(d.source=a+g[1],a+=g[1],d.originalLine=r+g[2],r=d.originalLine,d.originalLine+=1,d.originalColumn=o+g[3],o=d.originalColumn,g.length>4&&(d.name=l+g[4],l+=g[4])),w.push(d),typeof d.originalLine=="number"){let O=d.source;for(;p.length<=O;)p.push(null);p[O]===null&&(p[O]=[]),p[O].push(d)}}_r(w,v),this.__generatedMappings=w;for(var C=0;C<p.length;C++)p[C]!=null&<(p[C],y.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...p)};P.prototype._findMapping=function(e,t,i,s,r,o){if(e[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[i]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return Wi.search(e,t,r,o)};P.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var i=this._generatedMappings[e+1];if(t.generatedLine===i.generatedLine){t.lastGeneratedColumn=i.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};P.prototype.originalPositionFor=function(e){var t={generatedLine:y.getArg(e,"line"),generatedColumn:y.getArg(e,"column")},i=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",y.compareByGeneratedPositionsDeflated,y.getArg(e,"bias",A.GREATEST_LOWER_BOUND));if(i>=0){var s=this._generatedMappings[i];if(s.generatedLine===t.generatedLine){var r=y.getArg(s,"source",null);r!==null&&(r=this._sources.at(r),r=y.computeSourceURL(this.sourceRoot,r,this._sourceMapURL));var o=y.getArg(s,"name",null);return o!==null&&(o=this._names.at(o)),{source:r,line:y.getArg(s,"originalLine",null),column:y.getArg(s,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};P.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};P.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var i=this._findSourceIndex(e);if(i>=0)return this.sourcesContent[i];var s=e;this.sourceRoot!=null&&(s=y.relative(this.sourceRoot,s));var r;if(this.sourceRoot!=null&&(r=y.urlParse(this.sourceRoot))){var o=s.replace(/^file:\/\//,"");if(r.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!r.path||r.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(t)return null;throw new Error('"'+s+'" is not in the SourceMap.')};P.prototype.generatedPositionFor=function(e){var t=y.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var i={source:t,originalLine:y.getArg(e,"line"),originalColumn:y.getArg(e,"column")},s=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",y.compareByOriginalPositions,y.getArg(e,"bias",A.GREATEST_LOWER_BOUND));if(s>=0){var r=this._originalMappings[s];if(r.source===i.source)return{line:y.getArg(r,"generatedLine",null),column:y.getArg(r,"generatedColumn",null),lastColumn:y.getArg(r,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Wt.BasicSourceMapConsumer=P;function X(n,e){var t=n;typeof n=="string"&&(t=y.parseSourceMapInput(n));var i=y.getArg(t,"version"),s=y.getArg(t,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new Te,this._names=new Te;var r={line:-1,column:0};this._sections=s.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=y.getArg(o,"offset"),l=y.getArg(a,"line"),h=y.getArg(a,"column");if(l<r.line||l===r.line&&h<r.column)throw new Error("Section offsets must be ordered and non-overlapping.");return r=a,{generatedOffset:{generatedLine:l+1,generatedColumn:h+1},consumer:new A(y.getArg(o,"map"),e)}})}X.prototype=Object.create(A.prototype);X.prototype.constructor=A;X.prototype._version=3;Object.defineProperty(X.prototype,"sources",{get:function(){for(var n=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)n.push(this._sections[e].consumer.sources[t]);return n}});X.prototype.originalPositionFor=function(e){var t={generatedLine:y.getArg(e,"line"),generatedColumn:y.getArg(e,"column")},i=Wi.search(t,this._sections,function(r,o){var a=r.generatedLine-o.generatedOffset.generatedLine;return a||r.generatedColumn-o.generatedOffset.generatedColumn}),s=this._sections[i];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};X.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};X.prototype.sourceContentFor=function(e,t){for(var i=0;i<this._sections.length;i++){var s=this._sections[i],r=s.consumer.sourceContentFor(e,!0);if(r||r==="")return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};X.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var i=this._sections[t];if(i.consumer._findSourceIndex(y.getArg(e,"source"))!==-1){var s=i.consumer.generatedPositionFor(e);if(s){var r={line:s.line+(i.generatedOffset.generatedLine-1),column:s.column+(i.generatedOffset.generatedLine===s.line?i.generatedOffset.generatedColumn-1:0)};return r}}}return{line:null,column:null}};X.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var s=this._sections[i],r=s.consumer._generatedMappings,o=0;o<r.length;o++){var a=r[o],l=s.consumer._sources.at(a.source);l!==null&&(l=y.computeSourceURL(s.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var h=null;a.name&&(h=s.consumer._names.at(a.name),this._names.add(h),h=this._names.indexOf(h));var u={source:l,generatedLine:a.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(s.generatedOffset.generatedLine===a.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:h};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}lt(this.__generatedMappings,y.compareByGeneratedPositionsDeflated),lt(this.__originalMappings,y.compareByOriginalPositions)};Wt.IndexedSourceMapConsumer=X});var Mr=x(Rr=>{var Cl=$i().SourceMapGenerator,qt=Le(),El=/(\r?\n)/,_l=10,ke="$$$isSourceNode$$$";function q(n,e,t,i,s){this.children=[],this.sourceContents={},this.line=n??null,this.column=e??null,this.source=t??null,this.name=s??null,this[ke]=!0,i!=null&&this.add(i)}q.fromStringWithSourceMap=function(e,t,i){var s=new q,r=e.split(El),o=0,a=function(){var f=w(),p=w()||"";return f+p;function w(){return o<r.length?r[o++]:void 0}},l=1,h=0,u=null;return t.eachMapping(function(f){if(u!==null)if(l<f.generatedLine)c(u,a()),l++,h=0;else{var p=r[o]||"",w=p.substr(0,f.generatedColumn-h);r[o]=p.substr(f.generatedColumn-h),h=f.generatedColumn,c(u,w),u=f;return}for(;l<f.generatedLine;)s.add(a()),l++;if(h<f.generatedColumn){var p=r[o]||"";s.add(p.substr(0,f.generatedColumn)),r[o]=p.substr(f.generatedColumn),h=f.generatedColumn}u=f},this),o<r.length&&(u&&c(u,a()),s.add(r.splice(o).join(""))),t.sources.forEach(function(f){var p=t.sourceContentFor(f);p!=null&&(i!=null&&(f=qt.join(i,f)),s.setSourceContent(f,p))}),s;function c(f,p){if(f===null||f.source===void 0)s.add(p);else{var w=i?qt.join(i,f.source):f.source;s.add(new q(f.originalLine,f.originalColumn,w,p,f.name))}}};q.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[ke]||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};q.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[ke]||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};q.prototype.walk=function(e){for(var t,i=0,s=this.children.length;i<s;i++)t=this.children[i],t[ke]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};q.prototype.join=function(e){var t,i,s=this.children.length;if(s>0){for(t=[],i=0;i<s-1;i++)t.push(this.children[i]),t.push(e);t.push(this.children[i]),this.children=t}return this};q.prototype.replaceRight=function(e,t){var i=this.children[this.children.length-1];return i[ke]?i.replaceRight(e,t):typeof i=="string"?this.children[this.children.length-1]=i.replace(e,t):this.children.push("".replace(e,t)),this};q.prototype.setSourceContent=function(e,t){this.sourceContents[qt.toSetString(e)]=t};q.prototype.walkSourceContents=function(e){for(var t=0,i=this.children.length;t<i;t++)this.children[t][ke]&&this.children[t].walkSourceContents(e);for(var s=Object.keys(this.sourceContents),t=0,i=s.length;t<i;t++)e(qt.fromSetString(s[t]),this.sourceContents[s[t]])};q.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};q.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},i=new Cl(e),s=!1,r=null,o=null,a=null,l=null;return this.walk(function(h,u){t.code+=h,u.source!==null&&u.line!==null&&u.column!==null?((r!==u.source||o!==u.line||a!==u.column||l!==u.name)&&i.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),r=u.source,o=u.line,a=u.column,l=u.name,s=!0):s&&(i.addMapping({generated:{line:t.line,column:t.column}}),r=null,s=!1);for(var c=0,f=h.length;c<f;c++)h.charCodeAt(c)===_l?(t.line++,t.column=0,c+1===f?(r=null,s=!1):s&&i.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++}),this.walkSourceContents(function(h,u){i.setSourceContent(h,u)}),{code:t.code,map:i}};Rr.SourceNode=q});var Vt=x(Gt=>{Gt.SourceMapGenerator=$i().SourceMapGenerator;Gt.SourceMapConsumer=Ar().SourceMapConsumer;Gt.SourceNode=Mr().SourceNode});var Gi=x((_u,kr)=>{"use strict";var{existsSync:Ol,readFileSync:Al}=require("fs"),{dirname:qi,join:Rl}=require("path"),{SourceMapConsumer:Lr,SourceMapGenerator:Tr}=Vt();function Ml(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}var at=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,s=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=qi(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Lr(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/,o=e.match(s)||e.match(r);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(i);if(a)return Ml(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 t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}loadFile(e){if(this.root=qi(e),Ol(e))return this.mapFile=e,Al(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(t instanceof Lr)return Tr.fromSourceMap(t).toString();if(t instanceof Tr)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=Rl(qi(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};kr.exports=at;at.default=at});var ht=x((Ou,Fr)=>{"use strict";var{nanoid:Ll}=rr(),{isAbsolute:Qi,resolve:Ji}=require("path"),{SourceMapConsumer:Tl,SourceMapGenerator:kl}=Vt(),{fileURLToPath:Nr,pathToFileURL:Ht}=require("url"),Pr=It(),Nl=Gi(),Vi=_i(),Hi=Symbol("fromOffsetCache"),Pl=!!(Tl&&kl),Dr=!!(Ji&&Qi),Ne=class{get from(){return this.file||this.id}constructor(e,t={}){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,t.document&&(this.document=t.document.toString()),t.from&&(!Dr||/^\w+:\/\//.test(t.from)||Qi(t.from)?this.file=t.from:this.file=Ji(t.from)),Dr&&Pl){let i=new Nl(this.css,t);if(i.text){this.map=i;let s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+Ll(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,s={}){let r,o,a;if(t&&typeof t=="object"){let h=t,u=i;if(typeof h.offset=="number"){let c=this.fromOffset(h.offset);t=c.line,i=c.col}else t=h.line,i=h.column;if(typeof u.offset=="number"){let c=this.fromOffset(u.offset);o=c.line,r=c.col}else o=u.line,r=u.column}else if(!i){let h=this.fromOffset(t);t=h.line,i=h.col}let l=this.origin(t,i,o,r);return l?a=new Pr(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,s.plugin):a=new Pr(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:r,line:o},this.css,this.file,s.plugin),a.input={column:i,endColumn:r,endLine:o,line:t,source:this.css},this.file&&(Ht&&(a.input.url=Ht(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,i;if(this[Hi])i=this[Hi];else{let r=this.css.split(`
|
22
|
-
`);i=new Array(
|
23
|
-
`," "];return
|
18
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let n=i.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof i.raws.before<"u"){let s=i.raws.before.split(`
|
19
|
+
`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],n=e.raws[t];return n&&n.value===i?n.raw:i}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,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};Dl.exports=Sr;Sr.default=Sr});var _r=m((v2,kl)=>{"use strict";var Bm=ks();function Is(r,e){new Bm(e).stringify(r)}kl.exports=Is;Is.default=Is});var Bi=m((b2,Fs)=>{"use strict";Fs.exports.isClean=Symbol("isClean");Fs.exports.my=Symbol("my")});var Cr=m((S2,Il)=>{"use strict";var Um=$i(),zm=ks(),Wm=_r(),{isClean:xr,my:Gm}=Bi();function js(r,e){let t=new r.constructor;for(let i in r){if(!Object.prototype.hasOwnProperty.call(r,i)||i==="proxyCache")continue;let n=r[i],s=typeof n;i==="parent"&&s==="object"?e&&(t[i]=e):i==="source"?t[i]=n:Array.isArray(n)?t[i]=n.map(o=>js(o,t)):(s==="object"&&n!==null&&(n=js(n)),t[i]=n)}return t}function Er(r,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,i=1,n=0;for(let s=0;s<r.length;s++){if(i===e.line&&t===e.column){n=s;break}r[s]===`
|
20
|
+
`?(t=1,i+=1):t+=1}return n}var Or=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[xr]=!1,this[Gm]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];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 t=js(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:i.column,line:i.line},t)}return new Um(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[xr]=!0}markDirty(){if(this[xr]){this[xr]=!1;let e=this;for(;e=e.parent;)e[xr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,s=i.slice(Er(i,this.source.start),Er(i,this.source.end)).indexOf(e.word);s!==-1&&(t=this.positionInside(s))}return t}positionInside(e){let t=this.source.start.column,i=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,s=Er(n,this.source.start),o=s+e;for(let a=s;a<o;a++)n[a]===`
|
21
|
+
`?(t=1,i+=1):t+=1;return{column:t,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,o=n.slice(Er(n,this.source.start),Er(n,this.source.end)).indexOf(e.word);o!==-1&&(t=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new zm().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let n of e)n===this?i=!0:i?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},n=t==null;t=t||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))i[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)i[o]=a.toJSON(null,t);else if(o==="source"){let l=t.get(a.input);l==null&&(l=s,t.set(a.input,s),s++),i[o]={end:a.end,inputId:l,start:a.start}}else i[o]=a}return n&&(i.inputs=[...t.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Wm){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let n={node:this};for(let s in i)n[s]=i[s];return e.warn(t,n)}};Il.exports=Or;Or.default=Or});var Mr=m((_2,Fl)=>{"use strict";var Hm=Cr(),Rr=class extends Hm{constructor(e){super(e),this.type="comment"}};Fl.exports=Rr;Rr.default=Rr});var Tr=m((x2,jl)=>{"use strict";var Vm=Cr(),Ar=class extends Vm{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"}};jl.exports=Ar;Ar.default=Ar});var et=m((E2,Yl)=>{"use strict";var $l=Mr(),Bl=Tr(),Ym=Cr(),{isClean:Ul,my:zl}=Bi(),$s,Wl,Gl,Bs;function Hl(r){return r.map(e=>(e.nodes&&(e.nodes=Hl(e.nodes)),delete e.source,e))}function Vl(r){if(r[Ul]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Vl(e)}var Ae=class r extends Ym{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 t of e){let i=this.normalize(t,this.last);for(let n of i)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],n=e(this.proxyOf.nodes[i],i),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}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,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(n=>typeof n=="function"?(s,o)=>n(s.toProxy(),o):n)):t==="every"||t==="some"?i=>e[t]((n,...s)=>i(n.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),n=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of n)this.proxyOf.nodes.splice(i+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],i<s&&(this.indexes[o]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),n=i===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[i],n).reverse();i=this.index(e);for(let a of s)this.proxyOf.nodes.splice(i,0,a);let o;for(let a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Hl(Wl(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"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 Bl(e)]}else if(e.selector||e.selectors)e=[new Bs(e)];else if(e.name)e=[new $s(e)];else if(e.text)e=[new $l(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[zl]||r.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Ul]&&Vl(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let n of i)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+i.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 t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let n;try{n=e(t,i)}catch(s){throw t.addToError(s)}return n!==!1&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,n)}):this.walk((i,n)=>{if(i.type==="atrule"&&i.name===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="atrule")return t(i,n)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,n)}):this.walk((i,n)=>{if(i.type==="decl"&&i.prop===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="decl")return t(i,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,n)}):this.walk((i,n)=>{if(i.type==="rule"&&i.selector===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="rule")return t(i,n)}))}};Ae.registerParse=r=>{Wl=r};Ae.registerRule=r=>{Bs=r};Ae.registerAtRule=r=>{$s=r};Ae.registerRoot=r=>{Gl=r};Yl.exports=Ae;Ae.default=Ae;Ae.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,$s.prototype):r.type==="rule"?Object.setPrototypeOf(r,Bs.prototype):r.type==="decl"?Object.setPrototypeOf(r,Bl.prototype):r.type==="comment"?Object.setPrototypeOf(r,$l.prototype):r.type==="root"&&Object.setPrototypeOf(r,Gl.prototype),r[zl]=!0,r.nodes&&r.nodes.forEach(e=>{Ae.rebuild(e)})}});var Ui=m((O2,Jl)=>{"use strict";var Kl=et(),It=class extends Kl{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)}};Jl.exports=It;It.default=It;Kl.registerAtRule(It)});var zi=m((C2,Xl)=>{"use strict";var Km=et(),Ql,Zl,mt=class extends Km{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ql(new Zl,this,e).stringify()}};mt.registerLazyResult=r=>{Ql=r};mt.registerProcessor=r=>{Zl=r};Xl.exports=mt;mt.default=mt});var tu=m((R2,eu)=>{var Jm="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Qm=(r,e=21)=>(t=e)=>{let i="",n=t|0;for(;n--;)i+=r[Math.random()*r.length|0];return i},Zm=(r=21)=>{let e="",t=r|0;for(;t--;)e+=Jm[Math.random()*64|0];return e};eu.exports={nanoid:Zm,customAlphabet:Qm}});var iu=m(Us=>{var ru="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Us.encode=function(r){if(0<=r&&r<ru.length)return ru[r];throw new TypeError("Must be between 0 and 63: "+r)};Us.decode=function(r){var e=65,t=90,i=97,n=122,s=48,o=57,a=43,l=47,u=26,h=52;return e<=r&&r<=t?r-e:i<=r&&r<=n?r-i+u:s<=r&&r<=o?r-s+h:r==a?62:r==l?63:-1}});var Gs=m(Ws=>{var nu=iu(),zs=5,su=1<<zs,ou=su-1,au=su;function Xm(r){return r<0?(-r<<1)+1:(r<<1)+0}function e0(r){var e=(r&1)===1,t=r>>1;return e?-t:t}Ws.encode=function(e){var t="",i,n=Xm(e);do i=n&ou,n>>>=zs,n>0&&(i|=au),t+=nu.encode(i);while(n>0);return t};Ws.decode=function(e,t,i){var n=e.length,s=0,o=0,a,l;do{if(t>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(l=nu.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(l&au),l&=ou,s=s+(l<<o),o+=zs}while(a);i.value=e0(s),i.rest=t}});var jt=m(V=>{function t0(r,e,t){if(e in r)return r[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}V.getArg=t0;var lu=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r0=/^data:.+\,.+$/;function Lr(r){var e=r.match(lu);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}V.urlParse=Lr;function Ft(r){var e="";return r.scheme&&(e+=r.scheme+":"),e+="//",r.auth&&(e+=r.auth+"@"),r.host&&(e+=r.host),r.port&&(e+=":"+r.port),r.path&&(e+=r.path),e}V.urlGenerate=Ft;var i0=32;function n0(r){var e=[];return function(t){for(var i=0;i<e.length;i++)if(e[i].input===t){var n=e[0];return e[0]=e[i],e[i]=n,e[0].result}var s=r(t);return e.unshift({input:t,result:s}),e.length>i0&&e.pop(),s}}var Hs=n0(function(e){var t=e,i=Lr(e);if(i){if(!i.path)return e;t=i.path}for(var n=V.isAbsolute(t),s=[],o=0,a=0;;)if(o=a,a=t.indexOf("/",o),a===-1){s.push(t.slice(o));break}else for(s.push(t.slice(o,a));a<t.length&&t[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 t=s.join("/"),t===""&&(t=n?"/":"."),i?(i.path=t,Ft(i)):t});V.normalize=Hs;function uu(r,e){r===""&&(r="."),e===""&&(e=".");var t=Lr(e),i=Lr(r);if(i&&(r=i.path||"/"),t&&!t.scheme)return i&&(t.scheme=i.scheme),Ft(t);if(t||e.match(r0))return e;if(i&&!i.host&&!i.path)return i.host=e,Ft(i);var n=e.charAt(0)==="/"?e:Hs(r.replace(/\/+$/,"")+"/"+e);return i?(i.path=n,Ft(i)):n}V.join=uu;V.isAbsolute=function(r){return r.charAt(0)==="/"||lu.test(r)};function s0(r,e){r===""&&(r="."),r=r.replace(/\/$/,"");for(var t=0;e.indexOf(r+"/")!==0;){var i=r.lastIndexOf("/");if(i<0||(r=r.slice(0,i),r.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(r.length+1)}V.relative=s0;var hu=function(){var r=Object.create(null);return!("__proto__"in r)}();function fu(r){return r}function o0(r){return cu(r)?"$"+r:r}V.toSetString=hu?fu:o0;function a0(r){return cu(r)?r.slice(1):r}V.fromSetString=hu?fu:a0;function cu(r){if(!r)return!1;var e=r.length;if(e<9||r.charCodeAt(e-1)!==95||r.charCodeAt(e-2)!==95||r.charCodeAt(e-3)!==111||r.charCodeAt(e-4)!==116||r.charCodeAt(e-5)!==111||r.charCodeAt(e-6)!==114||r.charCodeAt(e-7)!==112||r.charCodeAt(e-8)!==95||r.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(r.charCodeAt(t)!==36)return!1;return!0}function l0(r,e,t){var i=Ye(r.source,e.source);return i!==0||(i=r.originalLine-e.originalLine,i!==0)||(i=r.originalColumn-e.originalColumn,i!==0||t)||(i=r.generatedColumn-e.generatedColumn,i!==0)||(i=r.generatedLine-e.generatedLine,i!==0)?i:Ye(r.name,e.name)}V.compareByOriginalPositions=l0;function u0(r,e,t){var i;return i=r.originalLine-e.originalLine,i!==0||(i=r.originalColumn-e.originalColumn,i!==0||t)||(i=r.generatedColumn-e.generatedColumn,i!==0)||(i=r.generatedLine-e.generatedLine,i!==0)?i:Ye(r.name,e.name)}V.compareByOriginalPositionsNoSource=u0;function h0(r,e,t){var i=r.generatedLine-e.generatedLine;return i!==0||(i=r.generatedColumn-e.generatedColumn,i!==0||t)||(i=Ye(r.source,e.source),i!==0)||(i=r.originalLine-e.originalLine,i!==0)||(i=r.originalColumn-e.originalColumn,i!==0)?i:Ye(r.name,e.name)}V.compareByGeneratedPositionsDeflated=h0;function f0(r,e,t){var i=r.generatedColumn-e.generatedColumn;return i!==0||t||(i=Ye(r.source,e.source),i!==0)||(i=r.originalLine-e.originalLine,i!==0)||(i=r.originalColumn-e.originalColumn,i!==0)?i:Ye(r.name,e.name)}V.compareByGeneratedPositionsDeflatedNoLine=f0;function Ye(r,e){return r===e?0:r===null?1:e===null?-1:r>e?1:-1}function c0(r,e){var t=r.generatedLine-e.generatedLine;return t!==0||(t=r.generatedColumn-e.generatedColumn,t!==0)||(t=Ye(r.source,e.source),t!==0)||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0)?t:Ye(r.name,e.name)}V.compareByGeneratedPositionsInflated=c0;function d0(r){return JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}V.parseSourceMapInput=d0;function p0(r,e,t){if(e=e||"",r&&(r[r.length-1]!=="/"&&e[0]!=="/"&&(r+="/"),e=r+e),t){var i=Lr(t);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var n=i.path.lastIndexOf("/");n>=0&&(i.path=i.path.substring(0,n+1))}e=uu(Ft(i),e)}return Hs(e)}V.computeSourceURL=p0});var Ks=m(du=>{var Vs=jt(),Ys=Object.prototype.hasOwnProperty,yt=typeof Map<"u";function Ke(){this._array=[],this._set=yt?new Map:Object.create(null)}Ke.fromArray=function(e,t){for(var i=new Ke,n=0,s=e.length;n<s;n++)i.add(e[n],t);return i};Ke.prototype.size=function(){return yt?this._set.size:Object.getOwnPropertyNames(this._set).length};Ke.prototype.add=function(e,t){var i=yt?e:Vs.toSetString(e),n=yt?this.has(e):Ys.call(this._set,i),s=this._array.length;(!n||t)&&this._array.push(e),n||(yt?this._set.set(e,s):this._set[i]=s)};Ke.prototype.has=function(e){if(yt)return this._set.has(e);var t=Vs.toSetString(e);return Ys.call(this._set,t)};Ke.prototype.indexOf=function(e){if(yt){var t=this._set.get(e);if(t>=0)return t}else{var i=Vs.toSetString(e);if(Ys.call(this._set,i))return this._set[i]}throw new Error('"'+e+'" is not in the set.')};Ke.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Ke.prototype.toArray=function(){return this._array.slice()};du.ArraySet=Ke});var mu=m(gu=>{var pu=jt();function g0(r,e){var t=r.generatedLine,i=e.generatedLine,n=r.generatedColumn,s=e.generatedColumn;return i>t||i==t&&s>=n||pu.compareByGeneratedPositionsInflated(r,e)<=0}function Wi(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Wi.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};Wi.prototype.add=function(e){g0(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Wi.prototype.toArray=function(){return this._sorted||(this._array.sort(pu.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};gu.MappingList=Wi});var Js=m(yu=>{var qr=Gs(),z=jt(),Gi=Ks().ArraySet,m0=mu().MappingList;function _e(r){r||(r={}),this._file=z.getArg(r,"file",null),this._sourceRoot=z.getArg(r,"sourceRoot",null),this._skipValidation=z.getArg(r,"skipValidation",!1),this._ignoreInvalidMapping=z.getArg(r,"ignoreInvalidMapping",!1),this._sources=new Gi,this._names=new Gi,this._mappings=new m0,this._sourcesContents=null}_e.prototype._version=3;_e.fromSourceMap=function(e,t){var i=e.sourceRoot,n=new _e(Object.assign(t||{},{file:e.file,sourceRoot:i}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,i!=null&&(o.source=z.relative(i,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),n.addMapping(o)}),e.sources.forEach(function(s){var o=s;i!==null&&(o=z.relative(i,s)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(s);a!=null&&n.setSourceContent(s,a)}),n};_e.prototype.addMapping=function(e){var t=z.getArg(e,"generated"),i=z.getArg(e,"original",null),n=z.getArg(e,"source",null),s=z.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,i,n,s)===!1||(n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:n,name:s}))};_e.prototype.setSourceContent=function(e,t){var i=e;this._sourceRoot!=null&&(i=z.relative(this._sourceRoot,i)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[z.toSetString(i)]=t):this._sourcesContents&&(delete this._sourcesContents[z.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};_e.prototype.applySourceMap=function(e,t,i){var n=t;if(t==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.`);n=e.file}var s=this._sourceRoot;s!=null&&(n=z.relative(s,n));var o=new Gi,a=new Gi;this._mappings.unsortedForEach(function(l){if(l.source===n&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,i!=null&&(l.source=z.join(i,l.source)),s!=null&&(l.source=z.relative(s,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var h=l.source;h!=null&&!o.has(h)&&o.add(h);var f=l.name;f!=null&&!a.has(f)&&a.add(f)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(i!=null&&(l=z.join(i,l)),s!=null&&(l=z.relative(s,l)),this.setSourceContent(l,u))},this)};_e.prototype._validateMapping=function(e,t,i,n){if(t&&typeof t.line!="number"&&typeof t.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&&!t&&!i&&!n)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&i)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:i,original:t,name:n});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};_e.prototype._serializeMappings=function(){for(var e=0,t=1,i=0,n=0,s=0,o=0,a="",l,u,h,f,c=this._mappings.toArray(),p=0,d=c.length;p<d;p++){if(u=c[p],l="",u.generatedLine!==t)for(e=0;u.generatedLine!==t;)l+=";",t++;else if(p>0){if(!z.compareByGeneratedPositionsInflated(u,c[p-1]))continue;l+=","}l+=qr.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=qr.encode(f-o),o=f,l+=qr.encode(u.originalLine-1-n),n=u.originalLine-1,l+=qr.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(h=this._names.indexOf(u.name),l+=qr.encode(h-s),s=h)),a+=l}return a};_e.prototype._generateSourcesContent=function(e,t){return e.map(function(i){if(!this._sourcesContents)return null;t!=null&&(i=z.relative(t,i));var n=z.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};_e.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};_e.prototype.toString=function(){return JSON.stringify(this.toJSON())};yu.SourceMapGenerator=_e});var wu=m(wt=>{wt.GREATEST_LOWER_BOUND=1;wt.LEAST_UPPER_BOUND=2;function Qs(r,e,t,i,n,s){var o=Math.floor((e-r)/2)+r,a=n(t,i[o],!0);return a===0?o:a>0?e-o>1?Qs(o,e,t,i,n,s):s==wt.LEAST_UPPER_BOUND?e<i.length?e:-1:o:o-r>1?Qs(r,o,t,i,n,s):s==wt.LEAST_UPPER_BOUND?o:r<0?-1:r}wt.search=function(e,t,i,n){if(t.length===0)return-1;var s=Qs(-1,t.length,e,t,i,n||wt.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&i(t[s],t[s-1],!0)===0;)--s;return s}});var Su=m(bu=>{function y0(r){function e(n,s,o){var a=n[s];n[s]=n[o],n[o]=a}function t(n,s){return Math.round(n+Math.random()*(s-n))}function i(n,s,o,a){if(o<a){var l=t(o,a),u=o-1;e(n,l,a);for(var h=n[a],f=o;f<a;f++)s(n[f],h,!1)<=0&&(u+=1,e(n,u,f));e(n,u+1,f);var c=u+1;i(n,s,o,c-1),i(n,s,c+1,a)}}return i}function w0(r){let e=y0.toString();return new Function(`return ${e}`)()(r)}var vu=new WeakMap;bu.quickSort=function(r,e,t=0){let i=vu.get(e);i===void 0&&(i=w0(e),vu.set(e,i)),i(r,e,t,r.length-1)}});var Eu=m(Hi=>{var x=jt(),Xs=wu(),$t=Ks().ArraySet,v0=Gs(),Pr=Su().quickSort;function $(r,e){var t=r;return typeof r=="string"&&(t=x.parseSourceMapInput(r)),t.sections!=null?new Te(t,e):new X(t,e)}$.fromSourceMap=function(r,e){return X.fromSourceMap(r,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,t){var i=e.charAt(t);return i===";"||i===","};$.prototype._parseMappings=function(e,t){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,t,i){var n=t||null,s=i||$.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(n),u=this._names,h=this._sources,f=this._sourceMapURL,c=0,p=o.length;c<p;c++){var d=o[c],g=d.source===null?null:h.at(d.source);g!==null&&(g=x.computeSourceURL(a,g,f)),l({source:g,generatedLine:d.generatedLine,generatedColumn:d.generatedColumn,originalLine:d.originalLine,originalColumn:d.originalColumn,name:d.name===null?null:u.at(d.name)})}};$.prototype.allGeneratedPositionsFor=function(e){var t=x.getArg(e,"line"),i={source:x.getArg(e,"source"),originalLine:t,originalColumn:x.getArg(e,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var n=[],s=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",x.compareByOriginalPositions,Xs.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;)n.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===t&&o.originalColumn==l;)n.push({line:x.getArg(o,"generatedLine",null),column:x.getArg(o,"generatedColumn",null),lastColumn:x.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return n};Hi.SourceMapConsumer=$;function X(r,e){var t=r;typeof r=="string"&&(t=x.parseSourceMapInput(r));var i=x.getArg(t,"version"),n=x.getArg(t,"sources"),s=x.getArg(t,"names",[]),o=x.getArg(t,"sourceRoot",null),a=x.getArg(t,"sourcesContent",null),l=x.getArg(t,"mappings"),u=x.getArg(t,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);o&&(o=x.normalize(o)),n=n.map(String).map(x.normalize).map(function(h){return o&&x.isAbsolute(o)&&x.isAbsolute(h)?x.relative(o,h):h}),this._names=$t.fromArray(s.map(String),!0),this._sources=$t.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(h){return x.computeSourceURL(o,h,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(r){var e=r;if(this.sourceRoot!=null&&(e=x.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==r)return t;return-1};X.fromSourceMap=function(e,t){var i=Object.create(X.prototype),n=i._names=$t.fromArray(e._names.toArray(),!0),s=i._sources=$t.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=t,i._absoluteSources=i._sources.toArray().map(function(p){return x.computeSourceURL(i.sourceRoot,p,t)});for(var o=e._mappings.toArray().slice(),a=i.__generatedMappings=[],l=i.__originalMappings=[],u=0,h=o.length;u<h;u++){var f=o[u],c=new xu;c.generatedLine=f.generatedLine,c.generatedColumn=f.generatedColumn,f.source&&(c.source=s.indexOf(f.source),c.originalLine=f.originalLine,c.originalColumn=f.originalColumn,f.name&&(c.name=n.indexOf(f.name)),l.push(c)),a.push(c)}return Pr(i.__originalMappings,x.compareByOriginalPositions),i};X.prototype._version=3;Object.defineProperty(X.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function xu(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Zs=x.compareByGeneratedPositionsDeflatedNoLine;function _u(r,e){let t=r.length,i=r.length-e;if(!(i<=1))if(i==2){let n=r[e],s=r[e+1];Zs(n,s)>0&&(r[e]=s,r[e+1]=n)}else if(i<20)for(let n=e;n<t;n++)for(let s=n;s>e;s--){let o=r[s-1],a=r[s];if(Zs(o,a)<=0)break;r[s-1]=a,r[s]=o}else Pr(r,Zs,e)}X.prototype._parseMappings=function(e,t){var i=1,n=0,s=0,o=0,a=0,l=0,u=e.length,h=0,f={},c={},p=[],d=[],g,y,w,S,b;let _=0;for(;h<u;)if(e.charAt(h)===";")i++,h++,n=0,_u(d,_),_=d.length;else if(e.charAt(h)===",")h++;else{for(g=new xu,g.generatedLine=i,S=h;S<u&&!this._charIsMappingSeparator(e,S);S++);for(y=e.slice(h,S),w=[];h<S;)v0.decode(e,h,c),b=c.value,h=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(g.generatedColumn=n+w[0],n=g.generatedColumn,w.length>1&&(g.source=a+w[1],a+=w[1],g.originalLine=s+w[2],s=g.originalLine,g.originalLine+=1,g.originalColumn=o+w[3],o=g.originalColumn,w.length>4&&(g.name=l+w[4],l+=w[4])),d.push(g),typeof g.originalLine=="number"){let M=g.source;for(;p.length<=M;)p.push(null);p[M]===null&&(p[M]=[]),p[M].push(g)}}_u(d,_),this.__generatedMappings=d;for(var C=0;C<p.length;C++)p[C]!=null&&Pr(p[C],x.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...p)};X.prototype._findMapping=function(e,t,i,n,s,o){if(e[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[i]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return Xs.search(e,t,s,o)};X.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var i=this._generatedMappings[e+1];if(t.generatedLine===i.generatedLine){t.lastGeneratedColumn=i.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};X.prototype.originalPositionFor=function(e){var t={generatedLine:x.getArg(e,"line"),generatedColumn:x.getArg(e,"column")},i=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",x.compareByGeneratedPositionsDeflated,x.getArg(e,"bias",$.GREATEST_LOWER_BOUND));if(i>=0){var n=this._generatedMappings[i];if(n.generatedLine===t.generatedLine){var s=x.getArg(n,"source",null);s!==null&&(s=this._sources.at(s),s=x.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=x.getArg(n,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:x.getArg(n,"originalLine",null),column:x.getArg(n,"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,t){if(!this.sourcesContent)return null;var i=this._findSourceIndex(e);if(i>=0)return this.sourcesContent[i];var n=e;this.sourceRoot!=null&&(n=x.relative(this.sourceRoot,n));var s;if(this.sourceRoot!=null&&(s=x.urlParse(this.sourceRoot))){var o=n.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("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(t)return null;throw new Error('"'+n+'" is not in the SourceMap.')};X.prototype.generatedPositionFor=function(e){var t=x.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var i={source:t,originalLine:x.getArg(e,"line"),originalColumn:x.getArg(e,"column")},n=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",x.compareByOriginalPositions,x.getArg(e,"bias",$.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===i.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}};Hi.BasicSourceMapConsumer=X;function Te(r,e){var t=r;typeof r=="string"&&(t=x.parseSourceMapInput(r));var i=x.getArg(t,"version"),n=x.getArg(t,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new $t,this._names=new $t;var s={line:-1,column:0};this._sections=n.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)}})}Te.prototype=Object.create($.prototype);Te.prototype.constructor=$;Te.prototype._version=3;Object.defineProperty(Te.prototype,"sources",{get:function(){for(var r=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)r.push(this._sections[e].consumer.sources[t]);return r}});Te.prototype.originalPositionFor=function(e){var t={generatedLine:x.getArg(e,"line"),generatedColumn:x.getArg(e,"column")},i=Xs.search(t,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),n=this._sections[i];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};Te.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};Te.prototype.sourceContentFor=function(e,t){for(var i=0;i<this._sections.length;i++){var n=this._sections[i],s=n.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};Te.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var i=this._sections[t];if(i.consumer._findSourceIndex(x.getArg(e,"source"))!==-1){var n=i.consumer.generatedPositionFor(e);if(n){var s={line:n.line+(i.generatedOffset.generatedLine-1),column:n.column+(i.generatedOffset.generatedLine===n.line?i.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};Te.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var n=this._sections[i],s=n.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],l=n.consumer._sources.at(a.source);l!==null&&(l=x.computeSourceURL(n.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var u=null;a.name&&(u=n.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var h={source:l,generatedLine:a.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(n.generatedOffset.generatedLine===a.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(h),typeof h.originalLine=="number"&&this.__originalMappings.push(h)}Pr(this.__generatedMappings,x.compareByGeneratedPositionsDeflated),Pr(this.__originalMappings,x.compareByOriginalPositions)};Hi.IndexedSourceMapConsumer=Te});var Cu=m(Ou=>{var b0=Js().SourceMapGenerator,Vi=jt(),S0=/(\r?\n)/,_0=10,Bt="$$$isSourceNode$$$";function ye(r,e,t,i,n){this.children=[],this.sourceContents={},this.line=r??null,this.column=e??null,this.source=t??null,this.name=n??null,this[Bt]=!0,i!=null&&this.add(i)}ye.fromStringWithSourceMap=function(e,t,i){var n=new ye,s=e.split(S0),o=0,a=function(){var c=d(),p=d()||"";return c+p;function d(){return o<s.length?s[o++]:void 0}},l=1,u=0,h=null;return t.eachMapping(function(c){if(h!==null)if(l<c.generatedLine)f(h,a()),l++,u=0;else{var p=s[o]||"",d=p.substr(0,c.generatedColumn-u);s[o]=p.substr(c.generatedColumn-u),u=c.generatedColumn,f(h,d),h=c;return}for(;l<c.generatedLine;)n.add(a()),l++;if(u<c.generatedColumn){var p=s[o]||"";n.add(p.substr(0,c.generatedColumn)),s[o]=p.substr(c.generatedColumn),u=c.generatedColumn}h=c},this),o<s.length&&(h&&f(h,a()),n.add(s.splice(o).join(""))),t.sources.forEach(function(c){var p=t.sourceContentFor(c);p!=null&&(i!=null&&(c=Vi.join(i,c)),n.setSourceContent(c,p))}),n;function f(c,p){if(c===null||c.source===void 0)n.add(p);else{var d=i?Vi.join(i,c.source):c.source;n.add(new ye(c.originalLine,c.originalColumn,d,p,c.name))}}};ye.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Bt]||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};ye.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Bt]||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};ye.prototype.walk=function(e){for(var t,i=0,n=this.children.length;i<n;i++)t=this.children[i],t[Bt]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};ye.prototype.join=function(e){var t,i,n=this.children.length;if(n>0){for(t=[],i=0;i<n-1;i++)t.push(this.children[i]),t.push(e);t.push(this.children[i]),this.children=t}return this};ye.prototype.replaceRight=function(e,t){var i=this.children[this.children.length-1];return i[Bt]?i.replaceRight(e,t):typeof i=="string"?this.children[this.children.length-1]=i.replace(e,t):this.children.push("".replace(e,t)),this};ye.prototype.setSourceContent=function(e,t){this.sourceContents[Vi.toSetString(e)]=t};ye.prototype.walkSourceContents=function(e){for(var t=0,i=this.children.length;t<i;t++)this.children[t][Bt]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,i=n.length;t<i;t++)e(Vi.fromSetString(n[t]),this.sourceContents[n[t]])};ye.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};ye.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},i=new b0(e),n=!1,s=null,o=null,a=null,l=null;return this.walk(function(u,h){t.code+=u,h.source!==null&&h.line!==null&&h.column!==null?((s!==h.source||o!==h.line||a!==h.column||l!==h.name)&&i.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:t.line,column:t.column},name:h.name}),s=h.source,o=h.line,a=h.column,l=h.name,n=!0):n&&(i.addMapping({generated:{line:t.line,column:t.column}}),s=null,n=!1);for(var f=0,c=u.length;f<c;f++)u.charCodeAt(f)===_0?(t.line++,t.column=0,f+1===c?(s=null,n=!1):n&&i.addMapping({source:h.source,original:{line:h.line,column:h.column},generated:{line:t.line,column:t.column},name:h.name})):t.column++}),this.walkSourceContents(function(u,h){i.setSourceContent(u,h)}),{code:t.code,map:i}};Ou.SourceNode=ye});var Ki=m(Yi=>{Yi.SourceMapGenerator=Js().SourceMapGenerator;Yi.SourceMapConsumer=Eu().SourceMapConsumer;Yi.SourceNode=Cu().SourceNode});var to=m((j2,Au)=>{"use strict";var{existsSync:x0,readFileSync:E0}=require("fs"),{dirname:eo,join:O0}=require("path"),{SourceMapConsumer:Ru,SourceMapGenerator:Mu}=Ki();function C0(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Nr=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,n=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=eo(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Ru(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(n)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(i);if(a)return C0(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 t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),n=e.indexOf("*/",i);i>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,n)))}loadFile(e){if(this.root=eo(e),x0(e))return this.mapFile=e,E0(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let n=this.loadFile(i);if(!n)throw new Error("Unable to load previous source map: "+i.toString());return n}}else{if(t instanceof Ru)return Mu.fromSourceMap(t).toString();if(t instanceof Mu)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=O0(eo(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Au.exports=Nr;Nr.default=Nr});var Dr=m(($2,Pu)=>{"use strict";var{nanoid:R0}=tu(),{isAbsolute:no,resolve:so}=require("path"),{SourceMapConsumer:M0,SourceMapGenerator:A0}=Ki(),{fileURLToPath:Tu,pathToFileURL:Ji}=require("url"),Lu=$i(),T0=to(),ro=Ds(),io=Symbol("fromOffsetCache"),L0=!!(M0&&A0),qu=!!(so&&no),Ut=class{get from(){return this.file||this.id}constructor(e,t={}){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,t.document&&(this.document=t.document.toString()),t.from&&(!qu||/^\w+:\/\//.test(t.from)||no(t.from)?this.file=t.from:this.file=so(t.from)),qu&&L0){let i=new T0(this.css,t);if(i.text){this.map=i;let n=i.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+R0(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,n={}){let s,o,a;if(t&&typeof t=="object"){let u=t,h=i;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);t=f.line,i=f.col}else t=u.line,i=u.column;if(typeof h.offset=="number"){let f=this.fromOffset(h.offset);o=f.line,s=f.col}else o=h.line,s=h.column}else if(!i){let u=this.fromOffset(t);t=u.line,i=u.col}let l=this.origin(t,i,o,s);return l?a=new Lu(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):a=new Lu(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:s,line:o},this.css,this.file,n.plugin),a.input={column:i,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ji&&(a.input.url=Ji(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,i;if(this[io])i=this[io];else{let s=this.css.split(`
|
22
|
+
`);i=new Array(s.length);let o=0;for(let a=0,l=s.length;a<l;a++)i[a]=o,o+=s[a].length+1;this[io]=i}t=i[i.length-1];let n=0;if(e>=t)n=i.length-1;else{let s=i.length-2,o;for(;n<s;)if(o=n+(s-n>>1),e<i[o])s=o-1;else if(e>=i[o+1])n=o+1;else{n=o;break}}return{col:e-i[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:so(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,n){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof i=="number"&&(a=s.originalPositionFor({column:n,line:i}));let l;no(o.source)?l=Ji(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Ji(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(Tu)u.file=Tu(l);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(o.source);return h&&(u.source=h),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Pu.exports=Ut;Ut.default=Ut;ro&&ro.registerInput&&ro.registerInput(Ut)});var zt=m((B2,Iu)=>{"use strict";var Nu=et(),Du,ku,tt=class extends Nu{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let n=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of n)s.raws.before=t.raws.before}return n}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new Du(new ku,this,e).stringify()}};tt.registerLazyResult=r=>{Du=r};tt.registerProcessor=r=>{ku=r};Iu.exports=tt;tt.default=tt;Nu.registerRoot(tt)});var oo=m((U2,Fu)=>{"use strict";var kr={comma(r){return kr.split(r,[","],!0)},space(r){let e=[" ",`
|
23
|
+
`," "];return kr.split(r,e)},split(r,e,t){let i=[],n="",s=!1,o=0,a=!1,l="",u=!1;for(let h of r)u?u=!1:h==="\\"?u=!0:a?h===l&&(a=!1):h==='"'||h==="'"?(a=!0,l=h):h==="("?o+=1:h===")"?o>0&&(o-=1):o===0&&e.includes(h)&&(s=!0),s?(n!==""&&i.push(n.trim()),n="",s=!1):n+=h;return(t||n!=="")&&i.push(n.trim()),i}};Fu.exports=kr;kr.default=kr});var Qi=m((z2,$u)=>{"use strict";var ju=et(),q0=oo(),Wt=class extends ju{get selectors(){return q0.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};$u.exports=Wt;Wt.default=Wt;ju.registerRule(Wt)});var Uu=m((W2,Bu)=>{"use strict";var P0=Ui(),N0=Mr(),D0=Tr(),k0=Dr(),I0=to(),F0=zt(),j0=Qi();function Ir(r,e){if(Array.isArray(r))return r.map(n=>Ir(n));let{inputs:t,...i}=r;if(t){e=[];for(let n of t){let s={...n,__proto__:k0.prototype};s.map&&(s.map={...s.map,__proto__:I0.prototype}),e.push(s)}}if(i.nodes&&(i.nodes=r.nodes.map(n=>Ir(n,e))),i.source){let{inputId:n,...s}=i.source;i.source=s,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new F0(i);if(i.type==="decl")return new D0(i);if(i.type==="rule")return new j0(i);if(i.type==="comment")return new N0(i);if(i.type==="atrule")return new P0(i);throw new Error("Unknown node type: "+r.type)}Bu.exports=Ir;Ir.default=Ir});var lo=m((G2,Yu)=>{"use strict";var{dirname:Zi,relative:Wu,resolve:Gu,sep:Hu}=require("path"),{SourceMapConsumer:Vu,SourceMapGenerator:Xi}=Ki(),{pathToFileURL:zu}=require("url"),$0=Dr(),B0=!!(Vu&&Xi),U0=!!(Zi&&Gu&&Wu&&Hu),ao=class{constructor(e,t,i,n){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=n,this.originalCSS=n,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 t=`
|
24
24
|
`;this.css.includes(`\r
|
25
25
|
`)&&(t=`\r
|
26
|
-
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||
|
27
|
-
`),t=a.length-r):t+=a.length,l&&h!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}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(t=>t.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 t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?Jt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Jt(Qr(i,this.mapOpts.annotation)));let s=Hr(i,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Wl(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,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 t=this.memoizedFileURLs.get(e);if(t)return t;if(Vr){let i=Vr(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Jr==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};Yr.exports=Yi});var tn=x((ku,en)=>{"use strict";var Vl=Ut(),Hl=it(),Ql=rt(),Jl=Pe(),Xr=Qt(),Kl=Ei(),Zr={empty:!0,space:!0};function Yl(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}var Zi=class{constructor(e){this.input=e,this.root=new Jl,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 t=new Vl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,r,o=!1,a=!1,l=[],h=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?h.push(i==="("?")":"]"):i==="{"&&h.length>0?h.push("}"):i===h[h.length-1]&&h.pop(),h.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){a=!0;break}else if(i==="}"){if(l.length>0){for(r=l.length-1,s=l[r];s&&s[0]==="space";)s=l[--r];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let r=t-1;r>=0&&(s=e[r],!(s[0]!=="space"&&(i+=1,i===2)));r--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,r;for(let[o,a]of e.entries()){if(s=a,r=s[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!i)this.doubleColon(s);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=s}return!1}comment(e){let t=new Hl;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Kl(this.input)}decl(e,t){let i=new Ql;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||Yl(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let h=e[0][0];if(h===":"||h==="space"||h==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let r;for(;e.length;)if(r=e.shift(),r[0]===":"){i.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.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 h=e.length-1;h>=0;h--){if(r=e[h],r[1].toLowerCase()==="!important"){i.important=!0;let u=this.stringFrom(e,h);u=this.spacesFromEnd(e)+u,u!==" !important"&&(i.raws.important=u);break}else if(r[1].toLowerCase()==="important"){let u=e.slice(0),c="";for(let f=h;f>0;f--){let p=u[f][0];if(c.trim().startsWith("!")&&p!=="space")break;c=u.pop()[1]+c}c.trim().startsWith("!")&&(i.important=!0,i.raws.important=c,e=u)}if(r[0]!=="space"&&r[0]!=="comment")break}e.some(h=>h[0]!=="space"&&h[0]!=="comment")&&(i.raws.between+=o.map(h=>h[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Xr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}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 t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,s=!1,r=null,o=[],a=e[1].startsWith("--"),l=[],h=e;for(;h;){if(i=h[0],l.push(h),i==="("||i==="[")r||(r=h),o.push(i==="("?")":"]");else if(a&&s&&i==="{")r||(r=h),o.push("}");else if(o.length===0)if(i===";")if(s){this.decl(l,a);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(s=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(r=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(r),t&&s){if(!a)for(;l.length&&(h=l[l.length-1][0],!(h!=="space"&&h!=="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,t,i,s){let r,o,a=i.length,l="",h=!0,u,c;for(let f=0;f<a;f+=1)r=i[f],o=r[0],o==="space"&&f===a-1&&!s?h=!1:o==="comment"?(c=i[f-1]?i[f-1][0]:"empty",u=i[f+1]?i[f+1][0]:"empty",!Zr[c]&&!Zr[u]?l.slice(-1)===","?h=!1:l+=r[1]:h=!1):l+=r[1];if(!h){let f=i.reduce((p,w)=>p+w[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new Xr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}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,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};en.exports=Zi});var Xt=x((Nu,sn)=>{"use strict";var Xl=pe(),Zl=ht(),ea=tn();function Yt(n,e){let t=new Zl(n,e),i=new ea(t);try{i.parse()}catch(s){throw process.env.NODE_ENV!=="production"&&s.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?s.message+=`
|
28
|
-
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?
|
29
|
-
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(
|
30
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),s}return i.root}sn.exports=Yt;Yt.default=Yt;Xl.registerParse(Yt)});var es=x((Pu,rn)=>{"use strict";var ft=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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}};rn.exports=ft;ft.default=ft});var Zt=x((Du,nn)=>{"use strict";var ta=es(),pt=class{get content(){return this.css}constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new ta(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}};nn.exports=pt;pt.default=pt});var ts=x((Fu,ln)=>{"use strict";var on={};ln.exports=function(e){on[e]||(on[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var rs=x((Iu,cn)=>{"use strict";var ia=pe(),sa=$t(),ra=Xi(),na=Xt(),an=Zt(),oa=Pe(),la=Ke(),{isClean:se,my:aa}=Bt(),ha=ts(),ua={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ca={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},fa={Once:!0,postcssPlugin:!0,prepare:!0},Fe=0;function dt(n){return typeof n=="object"&&typeof n.then=="function"}function un(n){let e=!1,t=ua[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,Fe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,Fe,t+"Exit"]:[t,t+"Exit"]}function hn(n){let e;return n.type==="document"?e=["Document",Fe,"DocumentExit"]:n.type==="root"?e=["Root",Fe,"RootExit"]:e=un(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function is(n){return n[se]=!1,n.nodes&&n.nodes.forEach(e=>is(e)),n}var ss={},me=class n{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,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=is(t);else if(t instanceof n||t instanceof an)s=is(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let r=na;i.syntax&&(r=i.syntax.parse),i.parser&&(r=i.parser),r.parse&&(r=r.parse);try{s=r(t,i)}catch(o){this.processed=!0,this.error=o}s&&!s[aa]&&ia.rebuild(s)}this.result=new an(e,s,i),this.helpers={...ss,postcss:ss,result:this.result},this.plugins=this.processor.plugins.map(r=>typeof r=="object"&&r.prepare?{...r,...r.prepare(this.result)}:r)}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,t){let i=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){let s=i.postcssPlugin,r=i.postcssVersion,o=this.result.processor.version,a=r.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 "+s+" uses "+r+". Perhaps this is the source of the error below.")}}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!ca[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!fa[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(dt(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[se];){e[se]=!0;let t=[hn(e)];for(;t.length>0;){let i=this.visitTick(t);if(dt(i))try{await i}catch(s){let r=t[t.length-1].node;throw this.handleError(s,r)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(r=>i(r,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}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 t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return dt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=la;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new ra(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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 t=this.runOnRoot(e);if(dt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[se];)e[se]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||ha("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,t)}toString(){return this.css}visitSync(e,t){for(let[i,s]of e){this.result.lastPlugin=i;let r;try{r=s(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(dt(r))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[o,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!a[se]){a[se]=!0,e.push(hn(a));return}t.iterator=0,delete i.indexes[o]}let r=t.events;for(;t.eventIndex<r.length;){let o=r[t.eventIndex];if(t.eventIndex+=1,o===Fe){i.nodes&&i.nodes.length&&(i[se]=!0,t.iterator=i.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[se]=!0;let t=un(e);for(let i of t)if(i===Fe)e.nodes&&e.each(s=>{s[se]||this.walkSync(s)});else{let s=this.listeners[i];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}};me.registerPostcss=n=>{ss=n};cn.exports=me;me.default=me;oa.registerLazyResult(me);sa.registerLazyResult(me)});var pn=x((Bu,fn)=>{"use strict";var pa=Xi(),da=Xt(),ma=Zt(),ga=Ke(),wa=ts(),mt=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,t=da;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,r=ga;this.result=new ma(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new pa(r,s,this._opts,t);if(a.isMap()){let[l,h]=a.generate();l&&(this.result.css=l),h&&(this.result.map=h)}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,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||wa("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,t)}toString(){return this._css}warnings(){return[]}};fn.exports=mt;mt.default=mt});var mn=x((Uu,dn)=>{"use strict";var ya=$t(),ba=rs(),Sa=pn(),va=Pe(),Ee=class{constructor(e=[]){this.version="8.5.3",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(typeof i=="object"&&(i.parse||i.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(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Sa(this,e,t):new ba(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};dn.exports=Ee;Ee.default=Ee;va.registerProcessor(Ee);ya.registerProcessor(Ee)});var Cn=x(($u,xn)=>{"use strict";var gn=Ut(),wn=it(),xa=pe(),Ca=It(),yn=rt(),bn=$t(),Ea=Gr(),_a=ht(),Oa=rs(),Aa=Ki(),Ra=et(),Ma=Xt(),ns=mn(),La=Zt(),Sn=Pe(),vn=Qt(),Ta=Ke(),ka=es();function E(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ns(n)}E.plugin=function(e,t){let i=!1;function s(...o){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
26
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||Zi(e.file),n;this.mapOpts.sourcesContent===!1?(n=new Vu(e.text),n.sourcesContent&&(n.sourcesContent=null)):n=e.consumer(),this.map.applySourceMap(n,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),U0&&B0&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[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=Xi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Xi({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 Xi({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",n={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"&&(n.generated.line=e,n.generated.column=t-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=i,n.original.line=1,n.original.column=0,this.map.addMapping(n))),o=a.match(/\n/g),o?(e+=o.length,s=a.lastIndexOf(`
|
27
|
+
`),t=a.length-s):t+=a.length,l&&u!=="start"){let h=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==h.last||h.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n)):(n.source=i,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)))}})}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(t=>t.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 t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?Zi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Zi(Gu(i,this.mapOpts.annotation)));let n=Wu(i,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new $0(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let n=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,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 t=this.memoizedFileURLs.get(e);if(t)return t;if(zu){let i=zu(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Hu==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};Yu.exports=ao});var Zu=m((H2,Qu)=>{"use strict";var z0=Ui(),W0=Mr(),G0=Tr(),H0=zt(),Ku=Qi(),V0=Ns(),Ju={empty:!0,space:!0};function Y0(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}var uo=class{constructor(e){this.input=e,this.root=new H0,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 t=new z0;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,n,s,o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?u.push(i==="("?")":"]"):i==="{"&&u.length>0?u.push("}"):i===u[u.length-1]&&u.pop(),u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){a=!0;break}else if(i==="}"){if(l.length>0){for(s=l.length-1,n=l[s];n&&n[0]==="space";)n=l[--s];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,n;for(let s=t-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,i,n,s;for(let[o,a]of e.entries()){if(n=a,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!i)this.doubleColon(n);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=n}return!1}comment(e){let t=new W0;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let n=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=V0(this.input)}decl(e,t){let i=new G0;this.init(i,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(n[3]||n[2]||Y0(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){i.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.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"){i.important=!0;let h=this.stringFrom(e,u);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=e.slice(0),f="";for(let c=u;c>0;c--){let p=h[c][0];if(f.trim().startsWith("!")&&p!=="space")break;f=h.pop()[1]+f}f.trim().startsWith("!")&&(i.important=!0,i.raws.important=f,e=h)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Ku;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}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 t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,n=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(i=u[0],l.push(u),i==="("||i==="[")s||(s=u),o.push(i==="("?")":"]");else if(a&&n&&i==="{")s||(s=u),o.push("}");else if(o.length===0)if(i===";")if(n){this.decl(l,a);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(n=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&n){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,t,i,n){let s,o,a=i.length,l="",u=!0,h,f;for(let c=0;c<a;c+=1)s=i[c],o=s[0],o==="space"&&c===a-1&&!n?u=!1:o==="comment"?(f=i[c-1]?i[c-1][0]:"empty",h=i[c+1]?i[c+1][0]:"empty",!Ju[f]&&!Ju[h]?l.slice(-1)===","?u=!1:l+=s[1]:u=!1):l+=s[1];if(!u){let c=i.reduce((p,d)=>p+d[1],"");e.raws[t]={raw:c,value:l}}e[t]=l}rule(e){e.pop();let t=new Ku;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let n=t;n<e.length;n++)i+=e[n][1];return e.splice(t,e.length-t),i}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,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};Qu.exports=uo});var tn=m((V2,Xu)=>{"use strict";var K0=et(),J0=Dr(),Q0=Zu();function en(r,e){let t=new J0(r,e),i=new Q0(t);try{i.parse()}catch(n){throw process.env.NODE_ENV!=="production"&&n.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?n.message+=`
|
28
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?n.message+=`
|
29
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(n.message+=`
|
30
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),n}return i.root}Xu.exports=en;en.default=en;K0.registerParse(en)});var ho=m((Y2,eh)=>{"use strict";var Fr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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}};eh.exports=Fr;Fr.default=Fr});var rn=m((K2,th)=>{"use strict";var Z0=ho(),jr=class{get content(){return this.css}constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new Z0(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}};th.exports=jr;jr.default=jr});var fo=m((J2,ih)=>{"use strict";var rh={};ih.exports=function(e){rh[e]||(rh[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var go=m((Q2,ah)=>{"use strict";var X0=et(),ey=zi(),ty=lo(),ry=tn(),nh=rn(),iy=zt(),ny=_r(),{isClean:je,my:sy}=Bi(),oy=fo(),ay={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ly={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},uy={Once:!0,postcssPlugin:!0,prepare:!0},Gt=0;function $r(r){return typeof r=="object"&&typeof r.then=="function"}function oh(r){let e=!1,t=ay[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Gt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Gt,t+"Exit"]:[t,t+"Exit"]}function sh(r){let e;return r.type==="document"?e=["Document",Gt,"DocumentExit"]:r.type==="root"?e=["Root",Gt,"RootExit"]:e=oh(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function co(r){return r[je]=!1,r.nodes&&r.nodes.forEach(e=>co(e)),r}var po={},rt=class r{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,t,i){this.stringified=!1,this.processed=!1;let n;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))n=co(t);else if(t instanceof r||t instanceof nh)n=co(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let s=ry;i.syntax&&(s=i.syntax.parse),i.parser&&(s=i.parser),s.parse&&(s=s.parse);try{n=s(t,i)}catch(o){this.processed=!0,this.error=o}n&&!n[sy]&&X0.rebuild(n)}this.result=new nh(e,n,i),this.helpers={...po,postcss:po,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,t){let i=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){let n=i.postcssPlugin,s=i.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 "+n+" uses "+s+". Perhaps this is the source of the error below.")}}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(t,i,n)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,n])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!ly[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!uy[i])if(typeof t[i]=="object")for(let n in t[i])n==="*"?e(t,i,t[i][n]):e(t,i+"-"+n.toLowerCase(),t[i][n]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if($r(i))try{await i}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[je];){e[je]=!0;let t=[sh(e)];for(;t.length>0;){let i=this.visitTick(t);if($r(i))try{await i}catch(n){let s=t[t.length-1].node;throw this.handleError(n,s)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let n=e.nodes.map(s=>i(s,this.helpers));await Promise.all(n)}else await i(e,this.helpers)}catch(n){throw this.handleError(n)}}}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 t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return $r(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=ny;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new ty(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[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 t=this.runOnRoot(e);if($r(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[je];)e[je]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||oy("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,t)}toString(){return this.css}visitSync(e,t){for(let[i,n]of e){this.result.lastPlugin=i;let s;try{s=n(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if($r(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:n}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(n.length>0&&t.visitorIndex<n.length){let[o,a]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!a[je]){a[je]=!0,e.push(sh(a));return}t.iterator=0,delete i.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Gt){i.nodes&&i.nodes.length&&(i[je]=!0,t.iterator=i.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[je]=!0;let t=oh(e);for(let i of t)if(i===Gt)e.nodes&&e.each(n=>{n[je]||this.walkSync(n)});else{let n=this.listeners[i];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}};rt.registerPostcss=r=>{po=r};ah.exports=rt;rt.default=rt;iy.registerLazyResult(rt);ey.registerLazyResult(rt)});var uh=m((Z2,lh)=>{"use strict";var hy=lo(),fy=tn(),cy=rn(),dy=_r(),py=fo(),Br=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,t=fy;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let n,s=dy;this.result=new cy(this._processor,n,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new hy(s,n,this._opts,t);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,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||py("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,t)}toString(){return this._css}warnings(){return[]}};lh.exports=Br;Br.default=Br});var fh=m((X2,hh)=>{"use strict";var gy=zi(),my=go(),yy=uh(),wy=zt(),vt=class{constructor(e=[]){this.version="8.5.3",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(typeof i=="object"&&(i.parse||i.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(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new yy(this,e,t):new my(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};hh.exports=vt;vt.default=vt;wy.registerProcessor(vt);gy.registerProcessor(vt)});var vh=m((eE,wh)=>{"use strict";var ch=Ui(),dh=Mr(),vy=et(),by=$i(),ph=Tr(),gh=zi(),Sy=Uu(),_y=Dr(),xy=go(),Ey=oo(),Oy=Cr(),Cy=tn(),mo=fh(),Ry=rn(),mh=zt(),yh=Qi(),My=_r(),Ay=ho();function D(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new mo(r)}D.plugin=function(e,t){let i=!1;function n(...o){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
31
31
|
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=t(...o);return a.postcssPlugin=e,a.postcssVersion=new
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
`);return
|
37
|
-
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
${
|
32
|
+
https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new mo().version,a}let s;return Object.defineProperty(n,"postcss",{get(){return s||(s=n()),s}}),n.process=function(o,a,l){return D([n(l)]).process(o,a)},n};D.stringify=My;D.parse=Cy;D.fromJSON=Sy;D.list=Ey;D.comment=r=>new dh(r);D.atRule=r=>new ch(r);D.decl=r=>new ph(r);D.rule=r=>new yh(r);D.root=r=>new mh(r);D.document=r=>new gh(r);D.CssSyntaxError=by;D.Declaration=ph;D.Container=vy;D.Processor=mo;D.Document=gh;D.Comment=dh;D.Warning=Ay;D.AtRule=ch;D.Result=Ry;D.Input=_y;D.Rule=yh;D.Root=mh;D.Node=Oy;xy.registerPostcss(D);wh.exports=D;D.default=D});var Oh=m((RE,Eh)=>{"use strict";Eh.exports=_h;function _h(r,e,t){r instanceof RegExp&&(r=Sh(r,t)),e instanceof RegExp&&(e=Sh(e,t));var i=xh(r,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+r.length,i[1]),post:t.slice(i[1]+e.length)}}function Sh(r,e){var t=e.match(r);return t?t[0]:null}_h.range=xh;function xh(r,e,t){var i,n,s,o,a,l=t.indexOf(r),u=t.indexOf(e,l+1),h=l;if(l>=0&&u>0){if(r===e)return[l,u];for(i=[],s=t.length;h>=0&&!a;)h==l?(i.push(h),l=t.indexOf(r,h+1)):i.length==1?a=[i.pop(),u]:(n=i.pop(),n<s&&(s=n,o=u),u=t.indexOf(e,h+1)),h=l<u&&l>=0?l:u;i.length&&(a=[s,o])}return a}});var Ph=m((ME,qh)=>{var Ch=Oh();qh.exports=qy;var Rh="\0SLASH"+Math.random()+"\0",Mh="\0OPEN"+Math.random()+"\0",vo="\0CLOSE"+Math.random()+"\0",Ah="\0COMMA"+Math.random()+"\0",Th="\0PERIOD"+Math.random()+"\0";function wo(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function Ty(r){return r.split("\\\\").join(Rh).split("\\{").join(Mh).split("\\}").join(vo).split("\\,").join(Ah).split("\\.").join(Th)}function Ly(r){return r.split(Rh).join("\\").split(Mh).join("{").split(vo).join("}").split(Ah).join(",").split(Th).join(".")}function Lh(r){if(!r)return[""];var e=[],t=Ch("{","}",r);if(!t)return r.split(",");var i=t.pre,n=t.body,s=t.post,o=i.split(",");o[o.length-1]+="{"+n+"}";var a=Lh(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function qy(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),Ur(Ty(r),!0).map(Ly)):[]}function Py(r){return"{"+r+"}"}function Ny(r){return/^-?0\d/.test(r)}function Dy(r,e){return r<=e}function ky(r,e){return r>=e}function Ur(r,e){var t=[],i=Ch("{","}",r);if(!i)return[r];var n=i.pre,s=i.post.length?Ur(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=n+"{"+i.body+"}"+s[o];t.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=l||u,f=i.body.indexOf(",")>=0;if(!h&&!f)return i.post.match(/,.*\}/)?(r=i.pre+"{"+i.body+vo+i.post,Ur(r)):[r];var c;if(h)c=i.body.split(/\.\./);else if(c=Lh(i.body),c.length===1&&(c=Ur(c[0],!1).map(Py),c.length===1))return s.map(function(j){return i.pre+c[0]+j});var p;if(h){var d=wo(c[0]),g=wo(c[1]),y=Math.max(c[0].length,c[1].length),w=c.length==3?Math.abs(wo(c[2])):1,S=Dy,b=g<d;b&&(w*=-1,S=ky);var _=c.some(Ny);p=[];for(var C=d;S(C,g);C+=w){var M;if(u)M=String.fromCharCode(C),M==="\\"&&(M="");else if(M=String(C),_){var T=y-M.length;if(T>0){var q=new Array(T+1).join("0");C<0?M="-"+q+M.slice(1):M=q+M}}p.push(M)}}else{p=[];for(var R=0;R<c.length;R++)p.push.apply(p,Ur(c[R],!1))}for(var R=0;R<p.length;R++)for(var o=0;o<s.length;o++){var a=n+p[R]+s[o];(!e||h||a)&&t.push(a)}}return t}});var de=m((RO,_f)=>{"use strict";var Io=class r extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
33
|
+
Found: ${e.toString().split(`
|
34
|
+
`)[0]}
|
35
|
+
`),Error.captureStackTrace(this,r)}};_f.exports=r=>{if(r.length>2)throw new Io(r);function e(i={}){this.options=i}e.prototype.transform=r;function t(i){return new e(i)}return t.Format=e,t}});var Cf=m((MO,Of)=>{var Ef={};Of.exports=Ef;var xf={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(xf).forEach(function(r){var e=xf[r],t=Ef[r]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var Mf=m((AO,Rf)=>{"use strict";Rf.exports=function(r,e){e=e||process.argv||[];var t=e.indexOf("--"),i=/^-{1,2}/.test(r)?"":"--",n=e.indexOf(i+r);return n!==-1&&(t===-1?!0:n<t)}});var Tf=m((TO,Af)=>{"use strict";var Ww=require("os"),De=Mf(),he=process.env,ir=void 0;De("no-color")||De("no-colors")||De("color=false")?ir=!1:(De("color")||De("colors")||De("color=true")||De("color=always"))&&(ir=!0);"FORCE_COLOR"in he&&(ir=he.FORCE_COLOR.length===0||parseInt(he.FORCE_COLOR,10)!==0);function Gw(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function Hw(r){if(ir===!1)return 0;if(De("color=16m")||De("color=full")||De("color=truecolor"))return 3;if(De("color=256"))return 2;if(r&&!r.isTTY&&ir!==!0)return 0;var e=ir?1:0;if(process.platform==="win32"){var t=Ww.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in he)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(n){return n in he})||he.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in he)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(he.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in he){var i=parseInt((he.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(he.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(he.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(he.TERM)||"COLORTERM"in he?1:(he.TERM==="dumb",e)}function Fo(r){var e=Hw(r);return Gw(e)}Af.exports={supportsColor:Fo,stdout:Fo(process.stdout),stderr:Fo(process.stderr)}});var qf=m((LO,Lf)=>{Lf.exports=function(e,t){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var n={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=n[s]||[" "],a=Math.floor(Math.random()*o.length);typeof n[s]<"u"?i+=n[s][a]:i+=s}),i}});var Nf=m((qO,Pf)=>{Pf.exports=function(e,t){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},n=[].concat(i.up,i.down,i.mid);function s(l){var u=Math.floor(Math.random()*l);return u}function o(l){var u=!1;return n.filter(function(h){u=h===l}),u}function a(l,u){var h="",f,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(h=h+l[c],f={up:0,down:0,mid:0},u.size){case"mini":f.up=s(8),f.mid=s(2),f.down=s(8);break;case"maxi":f.up=s(16)+3,f.mid=s(4)+1,f.down=s(64)+3;break;default:f.up=s(8)+1,f.mid=s(6)/2,f.down=s(8)+1;break}var p=["up","mid","down"];for(var d in p)for(var g=p[d],y=0;y<=f[g];y++)u[g]&&(h=h+i[g][s(i[g].length)])}return h}return a(e,t)}});var kf=m((PO,Df)=>{Df.exports=function(r){return function(e,t,i){if(e===" ")return e;switch(t%3){case 0:return r.red(e);case 1:return r.white(e);case 2:return r.blue(e)}}}});var Ff=m((NO,If)=>{If.exports=function(r){return function(e,t,i){return t%2===0?e:r.inverse(e)}}});var $f=m((DO,jf)=>{jf.exports=function(r){var e=["red","yellow","green","blue","magenta"];return function(t,i,n){return t===" "?t:r[e[i++%e.length]](t)}}});var Uf=m((kO,Bf)=>{Bf.exports=function(r){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(t,i,n){return t===" "?t:r[e[Math.round(Math.random()*(e.length-2))]](t)}}});var Yf=m((FO,Vf)=>{var P={};Vf.exports=P;P.themes={};var Vw=require("util"),_t=P.styles=Cf(),Wf=Object.defineProperties,Yw=new RegExp(/[\r\n]+/g);P.supportsColor=Tf().supportsColor;typeof P.enabled>"u"&&(P.enabled=P.supportsColor()!==!1);P.enable=function(){P.enabled=!0};P.disable=function(){P.enabled=!1};P.stripColors=P.strip=function(r){return(""+r).replace(/\x1B\[\d+m/g,"")};var IO=P.stylize=function(e,t){if(!P.enabled)return e+"";var i=_t[t];return!i&&t in P?P[t](e):i.open+e+i.close},Kw=/[|\\{}()[\]^$+*?.]/g,Jw=function(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(Kw,"\\$&")};function Gf(r){var e=function t(){return Zw.apply(t,arguments)};return e._styles=r,e.__proto__=Qw,e}var Hf=function(){var r={};return _t.grey=_t.gray,Object.keys(_t).forEach(function(e){_t[e].closeRe=new RegExp(Jw(_t[e].close),"g"),r[e]={get:function(){return Gf(this._styles.concat(e))}}}),r}(),Qw=Wf(function(){},Hf);function Zw(){var r=Array.prototype.slice.call(arguments),e=r.map(function(o){return o!=null&&o.constructor===String?o:Vw.inspect(o)}).join(" ");if(!P.enabled||!e)return e;for(var t=e.indexOf(`
|
36
|
+
`)!=-1,i=this._styles,n=i.length;n--;){var s=_t[i[n]];e=s.open+e.replace(s.closeRe,s.open)+s.close,t&&(e=e.replace(Yw,function(o){return s.close+o+s.open}))}return e}P.setTheme=function(r){if(typeof r=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in r)(function(t){P[t]=function(i){if(typeof r[t]=="object"){var n=i;for(var s in r[t])n=P[r[t][s]](n);return n}return P[r[t]](i)}})(e)};function Xw(){var r={};return Object.keys(Hf).forEach(function(e){r[e]={get:function(){return Gf([e])}}}),r}var ev=function(e,t){var i=t.split("");return i=i.map(e),i.join("")};P.trap=qf();P.zalgo=Nf();P.maps={};P.maps.america=kf()(P);P.maps.zebra=Ff()(P);P.maps.rainbow=$f()(P);P.maps.random=Uf()(P);for(zf in P.maps)(function(r){P[r]=function(e){return ev(P.maps[r],e)}})(zf);var zf;Wf(P,Xw())});var jo=m((jO,Kf)=>{var tv=Yf();Kf.exports=tv});var Jf=m($o=>{"use strict";$o.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};$o.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var Qf=m(Bo=>{"use strict";Bo.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Bo.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var Zf=m(Uo=>{"use strict";Uo.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Uo.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var Xf=m(En=>{"use strict";Object.defineProperty(En,"cli",{value:Jf()});Object.defineProperty(En,"npm",{value:Qf()});Object.defineProperty(En,"syslog",{value:Zf()})});var G=m(ni=>{"use strict";Object.defineProperty(ni,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(ni,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(ni,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(ni,"configs",{value:Xf()})});var Rn=m((GO,Cn)=>{"use strict";var Go=jo(),{LEVEL:zo,MESSAGE:Wo}=G();Go.enabled=!0;var ec=/\s+/,On=class r{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let t=Object.keys(e).reduce((i,n)=>(i[n]=ec.test(e[n])?e[n].split(ec):e[n],i),{});return r.allColors=Object.assign({},r.allColors||{},t),r.allColors}addColors(e){return r.addColors(e)}colorize(e,t,i){if(typeof i>"u"&&(i=t),!Array.isArray(r.allColors[e]))return Go[r.allColors[e]](i);for(let n=0,s=r.allColors[e].length;n<s;n++)i=Go[r.allColors[e][n]](i);return i}transform(e,t){return t.all&&typeof e[Wo]=="string"&&(e[Wo]=this.colorize(e[zo],e.level,e[Wo])),(t.level||t.all||!t.message)&&(e.level=this.colorize(e[zo],e.level)),(t.all||t.message)&&(e.message=this.colorize(e[zo],e.level,e.message)),e}};Cn.exports=r=>new On(r);Cn.exports.Colorizer=Cn.exports.Format=On});var rc=m((HO,tc)=>{"use strict";var{Colorizer:rv}=Rn();tc.exports=r=>(rv.addColors(r.colors||r),r)});var nc=m((VO,ic)=>{"use strict";var iv=de();ic.exports=iv(r=>(r.message=` ${r.message}`,r))});var ac=m((YO,oc)=>{"use strict";var nv=de(),{LEVEL:sc,MESSAGE:Ho}=G();oc.exports=nv((r,{stack:e,cause:t})=>{if(r instanceof Error){let n=Object.assign({},r,{level:r.level,[sc]:r[sc]||r.level,message:r.message,[Ho]:r[Ho]||r.message});return e&&(n.stack=r.stack),t&&(n.cause=r.cause),n}if(!(r.message instanceof Error))return r;let i=r.message;return Object.assign(r,i),r.message=i.message,r[Ho]=i.message,e&&(r.stack=i.stack),t&&(r.cause=i.cause),r})});var Yo=m((KO,An)=>{"use strict";var{configs:sv,LEVEL:lc,MESSAGE:Vo}=G(),Mn=class r{constructor(e={levels:sv.npm.levels}){this.paddings=r.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let t=Object.keys(e).map(i=>i.length);return Math.max(...t)}static paddingForLevel(e,t,i){let n=i+1-e.length,s=Math.floor(n/t.length);return`${t}${t.repeat(s)}`.slice(0,n)}static paddingForLevels(e,t=" "){let i=r.getLongestLevel(e);return Object.keys(e).reduce((n,s)=>(n[s]=r.paddingForLevel(s,t,i),n),{})}transform(e,t){return e.message=`${this.paddings[e[lc]]}${e.message}`,e[Vo]&&(e[Vo]=`${this.paddings[e[lc]]}${e[Vo]}`),e}};An.exports=r=>new Mn(r);An.exports.Padder=An.exports.Format=Mn});var uc=m((JO,Ko)=>{"use strict";var{Colorizer:ov}=Rn(),{Padder:av}=Yo(),{configs:lv,MESSAGE:uv}=G(),Tn=class{constructor(e={}){e.levels||(e.levels=lv.cli.levels),this.colorizer=new ov(e),this.padder=new av(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[uv]=`${e.level}:${e.message}`,e}};Ko.exports=r=>new Tn(r);Ko.exports.Format=Tn});var fc=m((QO,Jo)=>{"use strict";var hv=de();function hc(r){if(r.every(fv))return e=>{let t=e;for(let i=0;i<r.length;i++)if(t=r[i].transform(t,r[i].options),!t)return!1;return t}}function fv(r){if(typeof r.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
37
|
+
`));return!0}Jo.exports=(...r)=>{let e=hv(hc(r)),t=e();return t.Format=e.Format,t};Jo.exports.cascade=hc});var oi=m((ea,pc)=>{"use strict";var{hasOwnProperty:si}=Object.prototype,Et=Xo();Et.configure=Xo;Et.stringify=Et;Et.default=Et;ea.stringify=Et;ea.configure=Xo;pc.exports=Et;var cv=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function at(r){return r.length<5e3&&!cv.test(r)?`"${r}"`:JSON.stringify(r)}function Qo(r,e){if(r.length>200||e)return r.sort(e);for(let t=1;t<r.length;t++){let i=r[t],n=t;for(;n!==0&&r[n-1]>i;)r[n]=r[n-1],n--;r[n]=i}return r}var dv=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Zo(r){return dv.call(r)!==void 0&&r.length!==0}function cc(r,e,t){r.length<t&&(t=r.length);let i=e===","?"":" ",n=`"0":${i}${r[0]}`;for(let s=1;s<t;s++)n+=`${e}"${s}":${i}${r[s]}`;return n}function pv(r){if(si.call(r,"circularValue")){let e=r.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function gv(r){let e;if(si.call(r,"deterministic")&&(e=r.deterministic,typeof e!="boolean"&&typeof e!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return e===void 0?!0:e}function mv(r,e){let t;if(si.call(r,e)&&(t=r[e],typeof t!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return t===void 0?!0:t}function dc(r,e){let t;if(si.call(r,e)){if(t=r[e],typeof t!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(t))throw new TypeError(`The "${e}" argument must be an integer`);if(t<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return t===void 0?1/0:t}function xt(r){return r===1?"1 item":`${r} items`}function yv(r){let e=new Set;for(let t of r)(typeof t=="string"||typeof t=="number")&&e.add(String(t));return e}function wv(r){if(si.call(r,"strict")){let e=r.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return t=>{let i=`Object can not safely be stringified. Received type ${typeof t}`;throw typeof t!="function"&&(i+=` (${t.toString()})`),new Error(i)}}}function Xo(r){r={...r};let e=wv(r);e&&(r.bigint===void 0&&(r.bigint=!1),"circularValue"in r||(r.circularValue=Error));let t=pv(r),i=mv(r,"bigint"),n=gv(r),s=typeof n=="function"?n:void 0,o=dc(r,"maximumDepth"),a=dc(r,"maximumBreadth");function l(p,d,g,y,w,S){let b=d[p];switch(typeof b=="object"&&b!==null&&typeof b.toJSON=="function"&&(b=b.toJSON(p)),b=y.call(d,p,b),typeof b){case"string":return at(b);case"object":{if(b===null)return"null";if(g.indexOf(b)!==-1)return t;let _="",C=",",M=S;if(Array.isArray(b)){if(b.length===0)return"[]";if(o<g.length+1)return'"[Array]"';g.push(b),w!==""&&(S+=w,_+=`
|
38
|
+
${S}`,C=`,
|
39
|
+
${S}`);let Z=Math.min(b.length,a),ge=0;for(;ge<Z-1;ge++){let Dt=l(String(ge),b,g,y,w,S);_+=Dt!==void 0?Dt:"null",_+=C}let me=l(String(ge),b,g,y,w,S);if(_+=me!==void 0?me:"null",b.length-1>a){let Dt=b.length-a-1;_+=`${C}"... ${xt(Dt)} not stringified"`}return w!==""&&(_+=`
|
40
|
+
${M}`),g.pop(),`[${_}]`}let T=Object.keys(b),q=T.length;if(q===0)return"{}";if(o<g.length+1)return'"[Object]"';let R="",j="";w!==""&&(S+=w,C=`,
|
41
|
+
${S}`,R=" ");let ne=Math.min(q,a);n&&!Zo(b)&&(T=Qo(T,s)),g.push(b);for(let Z=0;Z<ne;Z++){let ge=T[Z],me=l(ge,b,g,y,w,S);me!==void 0&&(_+=`${j}${at(ge)}:${R}${me}`,j=C)}if(q>a){let Z=q-a;_+=`${j}"...":${R}"${xt(Z)} not stringified"`,j=C}return w!==""&&j.length>1&&(_=`
|
42
|
+
${S}${_}
|
43
|
+
${M}`),g.pop(),`{${_}}`}case"number":return isFinite(b)?String(b):e?e(b):"null";case"boolean":return b===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(b);default:return e?e(b):void 0}}function u(p,d,g,y,w,S){switch(typeof d=="object"&&d!==null&&typeof d.toJSON=="function"&&(d=d.toJSON(p)),typeof d){case"string":return at(d);case"object":{if(d===null)return"null";if(g.indexOf(d)!==-1)return t;let b=S,_="",C=",";if(Array.isArray(d)){if(d.length===0)return"[]";if(o<g.length+1)return'"[Array]"';g.push(d),w!==""&&(S+=w,_+=`
|
44
|
+
${S}`,C=`,
|
45
|
+
${S}`);let q=Math.min(d.length,a),R=0;for(;R<q-1;R++){let ne=u(String(R),d[R],g,y,w,S);_+=ne!==void 0?ne:"null",_+=C}let j=u(String(R),d[R],g,y,w,S);if(_+=j!==void 0?j:"null",d.length-1>a){let ne=d.length-a-1;_+=`${C}"... ${xt(ne)} not stringified"`}return w!==""&&(_+=`
|
46
|
+
${b}`),g.pop(),`[${_}]`}g.push(d);let M="";w!==""&&(S+=w,C=`,
|
47
|
+
${S}`,M=" ");let T="";for(let q of y){let R=u(q,d[q],g,y,w,S);R!==void 0&&(_+=`${T}${at(q)}:${M}${R}`,T=C)}return w!==""&&T.length>1&&(_=`
|
48
|
+
${S}${_}
|
49
|
+
${b}`),g.pop(),`{${_}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return e?e(d):void 0}}function h(p,d,g,y,w){switch(typeof d){case"string":return at(d);case"object":{if(d===null)return"null";if(typeof d.toJSON=="function"){if(d=d.toJSON(p),typeof d!="object")return h(p,d,g,y,w);if(d===null)return"null"}if(g.indexOf(d)!==-1)return t;let S=w;if(Array.isArray(d)){if(d.length===0)return"[]";if(o<g.length+1)return'"[Array]"';g.push(d),w+=y;let R=`
|
50
|
+
${w}`,j=`,
|
51
|
+
${w}`,ne=Math.min(d.length,a),Z=0;for(;Z<ne-1;Z++){let me=h(String(Z),d[Z],g,y,w);R+=me!==void 0?me:"null",R+=j}let ge=h(String(Z),d[Z],g,y,w);if(R+=ge!==void 0?ge:"null",d.length-1>a){let me=d.length-a-1;R+=`${j}"... ${xt(me)} not stringified"`}return R+=`
|
52
|
+
${S}`,g.pop(),`[${R}]`}let b=Object.keys(d),_=b.length;if(_===0)return"{}";if(o<g.length+1)return'"[Object]"';w+=y;let C=`,
|
53
|
+
${w}`,M="",T="",q=Math.min(_,a);Zo(d)&&(M+=cc(d,C,a),b=b.slice(d.length),q-=d.length,T=C),n&&(b=Qo(b,s)),g.push(d);for(let R=0;R<q;R++){let j=b[R],ne=h(j,d[j],g,y,w);ne!==void 0&&(M+=`${T}${at(j)}: ${ne}`,T=C)}if(_>a){let R=_-a;M+=`${T}"...": "${xt(R)} not stringified"`,T=C}return T!==""&&(M=`
|
54
|
+
${w}${M}
|
55
|
+
${S}`),g.pop(),`{${M}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return e?e(d):void 0}}function f(p,d,g){switch(typeof d){case"string":return at(d);case"object":{if(d===null)return"null";if(typeof d.toJSON=="function"){if(d=d.toJSON(p),typeof d!="object")return f(p,d,g);if(d===null)return"null"}if(g.indexOf(d)!==-1)return t;let y="",w=d.length!==void 0;if(w&&Array.isArray(d)){if(d.length===0)return"[]";if(o<g.length+1)return'"[Array]"';g.push(d);let M=Math.min(d.length,a),T=0;for(;T<M-1;T++){let R=f(String(T),d[T],g);y+=R!==void 0?R:"null",y+=","}let q=f(String(T),d[T],g);if(y+=q!==void 0?q:"null",d.length-1>a){let R=d.length-a-1;y+=`,"... ${xt(R)} not stringified"`}return g.pop(),`[${y}]`}let S=Object.keys(d),b=S.length;if(b===0)return"{}";if(o<g.length+1)return'"[Object]"';let _="",C=Math.min(b,a);w&&Zo(d)&&(y+=cc(d,",",a),S=S.slice(d.length),C-=d.length,_=","),n&&(S=Qo(S,s)),g.push(d);for(let M=0;M<C;M++){let T=S[M],q=f(T,d[T],g);q!==void 0&&(y+=`${_}${at(T)}:${q}`,_=",")}if(b>a){let M=b-a;y+=`${_}"...":"${xt(M)} not stringified"`}return g.pop(),`{${y}}`}case"number":return isFinite(d)?String(d):e?e(d):"null";case"boolean":return d===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return e?e(d):void 0}}function c(p,d,g){if(arguments.length>1){let y="";if(typeof g=="number"?y=" ".repeat(Math.min(g,10)):typeof g=="string"&&(y=g.slice(0,10)),d!=null){if(typeof d=="function")return l("",{"":p},[],d,y,"");if(Array.isArray(d))return u("",p,[],yv(d),y,"")}if(y.length!==0)return h("",p,[],y,"")}return f("",p,[])}return c}});var ta=m((ZO,gc)=>{"use strict";var vv=de(),{MESSAGE:bv}=G(),Sv=oi();function _v(r,e){return typeof e=="bigint"?e.toString():e}gc.exports=vv((r,e)=>{let t=Sv.configure(e);return r[bv]=t(r,e.replacer||_v,e.space),r})});var yc=m((XO,mc)=>{"use strict";var xv=de();mc.exports=xv((r,e)=>e.message?(r.message=`[${e.label}] ${r.message}`,r):(r.label=e.label,r))});var vc=m((eC,wc)=>{"use strict";var Ev=de(),{MESSAGE:Ov}=G(),Cv=oi();wc.exports=Ev(r=>{let e={};return r.message&&(e["@message"]=r.message,delete r.message),r.timestamp&&(e["@timestamp"]=r.timestamp,delete r.timestamp),e["@fields"]=r,r[Ov]=Cv(e),r})});var Sc=m((tC,bc)=>{"use strict";var Rv=de();function Mv(r,e,t){let i=e.reduce((s,o)=>(s[o]=r[o],delete r[o],s),{}),n=Object.keys(r).reduce((s,o)=>(s[o]=r[o],delete r[o],s),{});return Object.assign(r,i,{[t]:n}),r}function Av(r,e,t){return r[t]=e.reduce((i,n)=>(i[n]=r[n],delete r[n],i),{}),r}bc.exports=Rv((r,e={})=>{let t="metadata";e.key&&(t=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?Mv(r,i,t):e.fillWith?Av(r,e.fillWith,t):r})});var xc=m((rC,_c)=>{var nr=1e3,sr=nr*60,or=sr*60,Ot=or*24,Tv=Ot*7,Lv=Ot*365.25;_c.exports=function(r,e){e=e||{};var t=typeof r;if(t==="string"&&r.length>0)return qv(r);if(t==="number"&&isFinite(r))return e.long?Nv(r):Pv(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function qv(r){if(r=String(r),!(r.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(e){var t=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*Lv;case"weeks":case"week":case"w":return t*Tv;case"days":case"day":case"d":return t*Ot;case"hours":case"hour":case"hrs":case"hr":case"h":return t*or;case"minutes":case"minute":case"mins":case"min":case"m":return t*sr;case"seconds":case"second":case"secs":case"sec":case"s":return t*nr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Pv(r){var e=Math.abs(r);return e>=Ot?Math.round(r/Ot)+"d":e>=or?Math.round(r/or)+"h":e>=sr?Math.round(r/sr)+"m":e>=nr?Math.round(r/nr)+"s":r+"ms"}function Nv(r){var e=Math.abs(r);return e>=Ot?Ln(r,e,Ot,"day"):e>=or?Ln(r,e,or,"hour"):e>=sr?Ln(r,e,sr,"minute"):e>=nr?Ln(r,e,nr,"second"):r+" ms"}function Ln(r,e,t,i){var n=e>=t*1.5;return Math.round(r/t)+" "+i+(n?"s":"")}});var Oc=m((ai,Ec)=>{"use strict";var Dv=de(),kv=xc();Ec.exports=Dv(r=>{let e=+new Date;return ai.diff=e-(ai.prevTime||e),ai.prevTime=e,r.ms=`+${kv(ai.diff)}`,r})});var Mc=m((iC,Rc)=>{"use strict";var Iv=require("util").inspect,Fv=de(),{LEVEL:jv,MESSAGE:Cc,SPLAT:$v}=G();Rc.exports=Fv((r,e={})=>{let t=Object.assign({},r);return delete t[jv],delete t[Cc],delete t[$v],r[Cc]=Iv(t,!1,e.depth||null,e.colorize),r})});var Ac=m((nC,Pn)=>{"use strict";var{MESSAGE:Bv}=G(),qn=class{constructor(e){this.template=e}transform(e){return e[Bv]=this.template(e),e}};Pn.exports=r=>new qn(r);Pn.exports.Printf=Pn.exports.Format=qn});var qc=m((sC,Lc)=>{"use strict";var Uv=de(),{MESSAGE:Tc}=G(),zv=oi();Lc.exports=Uv(r=>{let e=zv(Object.assign({},r,{level:void 0,message:void 0,splat:void 0})),t=r.padding&&r.padding[r.level]||"";return e!=="{}"?r[Tc]=`${r.level}:${t} ${r.message} ${e}`:r[Tc]=`${r.level}:${t} ${r.message}`,r})});var Dc=m((oC,Nc)=>{"use strict";var Wv=require("util"),{SPLAT:Pc}=G(),Gv=/%[scdjifoO%]/g,Hv=/%%/g,ra=class{constructor(e){this.options=e}_splat(e,t){let i=e.message,n=e[Pc]||e.splat||[],s=i.match(Hv),o=s&&s.length||0,l=t.length-o-n.length,u=l<0?n.splice(l,-1*l):[],h=u.length;if(h)for(let f=0;f<h;f++)Object.assign(e,u[f]);return e.message=Wv.format(i,...n),e}transform(e){let t=e.message,i=e[Pc]||e.splat;if(!i||!i.length)return e;let n=t&&t.match&&t.match(Gv);if(!n&&(i||i.length)){let s=i.length>1?i.splice(0):i,o=s.length;if(o)for(let a=0;a<o;a++)Object.assign(e,s[a]);return e}return n?this._splat(e,n):e}};Nc.exports=r=>new ra(r)});var Ic=m((Nn,kc)=>{(function(r,e){typeof Nn=="object"&&typeof kc<"u"?e(Nn):typeof define=="function"&&define.amd?define(["exports"],e):e(r.fecha={})})(Nn,function(r){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,t="\\d\\d?",i="\\d\\d",n="\\d{3}",s="\\d{4}",o="[^\\s]+",a=/\[([^]*?)\]/gm;function l(v,E){for(var I=[],ce=0,A=v.length;ce<A;ce++)I.push(v[ce].substr(0,E));return I}var u=function(v){return function(E,I){var ce=I[v].map(function(Fe){return Fe.toLowerCase()}),A=ce.indexOf(E.toLowerCase());return A>-1?A:null}};function h(v){for(var E=[],I=1;I<arguments.length;I++)E[I-1]=arguments[I];for(var ce=0,A=E;ce<A.length;ce++){var Fe=A[ce];for(var gt in Fe)v[gt]=Fe[gt]}return v}var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],p=l(c,3),d=l(f,3),g={dayNamesShort:d,dayNames:f,monthNamesShort:p,monthNames:c,amPm:["am","pm"],DoFn:function(v){return v+["th","st","nd","rd"][v%10>3?0:(v-v%10!==10?1:0)*v%10]}},y=h({},g),w=function(v){return y=h(y,v)},S=function(v){return v.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},b=function(v,E){for(E===void 0&&(E=2),v=String(v);v.length<E;)v="0"+v;return v},_={D:function(v){return String(v.getDate())},DD:function(v){return b(v.getDate())},Do:function(v,E){return E.DoFn(v.getDate())},d:function(v){return String(v.getDay())},dd:function(v){return b(v.getDay())},ddd:function(v,E){return E.dayNamesShort[v.getDay()]},dddd:function(v,E){return E.dayNames[v.getDay()]},M:function(v){return String(v.getMonth()+1)},MM:function(v){return b(v.getMonth()+1)},MMM:function(v,E){return E.monthNamesShort[v.getMonth()]},MMMM:function(v,E){return E.monthNames[v.getMonth()]},YY:function(v){return b(String(v.getFullYear()),4).substr(2)},YYYY:function(v){return b(v.getFullYear(),4)},h:function(v){return String(v.getHours()%12||12)},hh:function(v){return b(v.getHours()%12||12)},H:function(v){return String(v.getHours())},HH:function(v){return b(v.getHours())},m:function(v){return String(v.getMinutes())},mm:function(v){return b(v.getMinutes())},s:function(v){return String(v.getSeconds())},ss:function(v){return b(v.getSeconds())},S:function(v){return String(Math.round(v.getMilliseconds()/100))},SS:function(v){return b(Math.round(v.getMilliseconds()/10),2)},SSS:function(v){return b(v.getMilliseconds(),3)},a:function(v,E){return v.getHours()<12?E.amPm[0]:E.amPm[1]},A:function(v,E){return v.getHours()<12?E.amPm[0].toUpperCase():E.amPm[1].toUpperCase()},ZZ:function(v){var E=v.getTimezoneOffset();return(E>0?"-":"+")+b(Math.floor(Math.abs(E)/60)*100+Math.abs(E)%60,4)},Z:function(v){var E=v.getTimezoneOffset();return(E>0?"-":"+")+b(Math.floor(Math.abs(E)/60),2)+":"+b(Math.abs(E)%60,2)}},C=function(v){return+v-1},M=[null,t],T=[null,o],q=["isPm",o,function(v,E){var I=v.toLowerCase();return I===E.amPm[0]?0:I===E.amPm[1]?1:null}],R=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(v){var E=(v+"").match(/([+-]|\d\d)/gi);if(E){var I=+E[1]*60+parseInt(E[2],10);return E[0]==="+"?I:-I}return 0}],j={D:["day",t],DD:["day",i],Do:["day",t+o,function(v){return parseInt(v,10)}],M:["month",t,C],MM:["month",i,C],YY:["year",i,function(v){var E=new Date,I=+(""+E.getFullYear()).substr(0,2);return+(""+(+v>68?I-1:I)+v)}],h:["hour",t,void 0,"isPm"],hh:["hour",i,void 0,"isPm"],H:["hour",t],HH:["hour",i],m:["minute",t],mm:["minute",i],s:["second",t],ss:["second",i],YYYY:["year",s],S:["millisecond","\\d",function(v){return+v*100}],SS:["millisecond",i,function(v){return+v*10}],SSS:["millisecond",n],d:M,dd:M,ddd:T,dddd:T,MMM:["month",o,u("monthNamesShort")],MMMM:["month",o,u("monthNames")],a:q,A:q,ZZ:R,Z:R},ne={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(v){return h(ne,v)},ge=function(v,E,I){if(E===void 0&&(E=ne.default),I===void 0&&(I={}),typeof v=="number"&&(v=new Date(v)),Object.prototype.toString.call(v)!=="[object Date]"||isNaN(v.getTime()))throw new Error("Invalid Date pass to format");E=ne[E]||E;var ce=[];E=E.replace(a,function(Fe,gt){return ce.push(gt),"@@@"});var A=h(h({},y),I);return E=E.replace(e,function(Fe){return _[Fe](v,A)}),E.replace(/@@@/g,function(){return ce.shift()})};function me(v,E,I){if(I===void 0&&(I={}),typeof E!="string")throw new Error("Invalid format in fecha parse");if(E=ne[E]||E,v.length>1e3)return null;var ce=new Date,A={year:ce.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},Fe=[],gt=[],yr=E.replace(a,function(wr,kt){return gt.push(S(kt)),"@@@"}),Li={},wl={};yr=S(yr).replace(e,function(wr){var kt=j[wr],Ls=kt[0],Em=kt[1],_l=kt[3];if(Li[Ls])throw new Error("Invalid format. "+Ls+" specified twice in format");return Li[Ls]=!0,_l&&(wl[_l]=!0),Fe.push(kt),"("+Em+")"}),Object.keys(wl).forEach(function(wr){if(!Li[wr])throw new Error("Invalid format. "+wr+" is required in specified format")}),yr=yr.replace(/@@@/g,function(){return gt.shift()});var qi=v.match(new RegExp(yr,"i"));if(!qi)return null;for(var Sm=h(h({},y),I),Me=1;Me<qi.length;Me++){var vl=Fe[Me-1],_m=vl[0],bl=vl[2],Sl=bl?bl(qi[Me],Sm):+qi[Me];if(Sl==null)return null;A[_m]=Sl}A.isPm===1&&A.hour!=null&&+A.hour!=12?A.hour=+A.hour+12:A.isPm===0&&+A.hour==12&&(A.hour=0);var Pi;if(A.timezoneOffset==null){Pi=new Date(A.year,A.month,A.day,A.hour,A.minute,A.second,A.millisecond);for(var Ni=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],Me=0,xm=Ni.length;Me<xm;Me++)if(Li[Ni[Me][0]]&&A[Ni[Me][0]]!==Pi[Ni[Me][1]]())return null}else if(Pi=new Date(Date.UTC(A.year,A.month,A.day,A.hour,A.minute-A.timezoneOffset,A.second,A.millisecond)),A.month>11||A.month<0||A.day>31||A.day<1||A.hour>23||A.hour<0||A.minute>59||A.minute<0||A.second>59||A.second<0)return null;return Pi}var Dt={format:ge,parse:me,defaultI18n:g,setGlobalDateI18n:w,setGlobalDateMasks:Z};r.assign=h,r.default=Dt,r.format=ge,r.parse=me,r.defaultI18n=g,r.setGlobalDateI18n=w,r.setGlobalDateMasks=Z,Object.defineProperty(r,"__esModule",{value:!0})})});var jc=m((aC,Fc)=>{"use strict";var Vv=Ic(),Yv=de();Fc.exports=Yv((r,e={})=>(e.format&&(r.timestamp=typeof e.format=="function"?e.format():Vv.format(new Date,e.format)),r.timestamp||(r.timestamp=new Date().toISOString()),e.alias&&(r[e.alias]=r.timestamp),r))});var Bc=m((lC,$c)=>{"use strict";var ia=jo(),Kv=de(),{MESSAGE:na}=G();$c.exports=Kv((r,e)=>(e.level!==!1&&(r.level=ia.strip(r.level)),e.message!==!1&&(r.message=ia.strip(String(r.message))),e.raw!==!1&&r[na]&&(r[na]=ia.strip(String(r[na]))),r))});var oa=m(sa=>{"use strict";var Jv=sa.format=de();sa.levels=rc();function te(r,e){Object.defineProperty(Jv,r,{get(){return e()},configurable:!0})}te("align",function(){return nc()});te("errors",function(){return ac()});te("cli",function(){return uc()});te("combine",function(){return fc()});te("colorize",function(){return Rn()});te("json",function(){return ta()});te("label",function(){return yc()});te("logstash",function(){return vc()});te("metadata",function(){return Sc()});te("ms",function(){return Oc()});te("padLevels",function(){return Yo()});te("prettyPrint",function(){return Mc()});te("printf",function(){return Ac()});te("simple",function(){return qc()});te("splat",function(){return Dc()});te("timestamp",function(){return jc()});te("uncolorize",function(){return Bc()})});var aa=m(Dn=>{"use strict";var{format:Uc}=require("util");Dn.warn={deprecated(r){return()=>{throw new Error(Uc("{ %s } was removed in winston@3.0.0.",r))}},useFormat(r){return()=>{throw new Error([Uc("{ %s } was removed in winston@3.0.0.",r),"Use a custom winston.format = winston.format(function) instead."].join(`
|
56
|
+
`))}},forFunctions(r,e,t){t.forEach(i=>{r[i]=Dn.warn[e](i)})},forProperties(r,e,t){t.forEach(i=>{let n=Dn.warn[e](i);Object.defineProperty(r,i,{get:n,set:n})})}}});var zc=m((fC,Qv)=>{Qv.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 Gc=m((cC,Wc)=>{Wc.exports=require("util").deprecate});var la=m((dC,Hc)=>{Hc.exports=require("stream")});var ha=m((pC,Yc)=>{"use strict";function Zv(r,e){var t=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(ua,this,r)):process.nextTick(ua,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(s){!e&&s?t._writableState?t._writableState.errorEmitted?process.nextTick(kn,t):(t._writableState.errorEmitted=!0,process.nextTick(Vc,t,s)):process.nextTick(Vc,t,s):e?(process.nextTick(kn,t),e(s)):process.nextTick(kn,t)}),this)}function Vc(r,e){ua(r,e),kn(r)}function kn(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function Xv(){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 ua(r,e){r.emit("error",e)}function eb(r,e){var t=r._readableState,i=r._writableState;t&&t.autoDestroy||i&&i.autoDestroy?r.destroy(e):r.emit("error",e)}Yc.exports={destroy:Zv,undestroy:Xv,errorOrDestroy:eb}});var lt=m((gC,Qc)=>{"use strict";var Jc={};function Ce(r,e,t){t||(t=Error);function i(s,o,a){return typeof e=="string"?e:e(s,o,a)}class n extends t{constructor(o,a,l){super(i(o,a,l))}}n.prototype.name=t.name,n.prototype.code=r,Jc[r]=n}function Kc(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(i=>String(i)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return`of ${e} ${String(r)}`}function tb(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function rb(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function ib(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Ce("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Ce("ERR_INVALID_ARG_TYPE",function(r,e,t){let i;typeof e=="string"&&tb(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(rb(r," argument"))n=`The ${r} ${i} ${Kc(e,"type")}`;else{let s=ib(r,".")?"property":"argument";n=`The "${r}" ${s} ${i} ${Kc(e,"type")}`}return n+=`. Received type ${typeof t}`,n},TypeError);Ce("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ce("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Ce("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ce("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" 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(r){return"Unknown encoding: "+r},TypeError);Ce("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Qc.exports.codes=Jc});var fa=m((mC,Zc)=>{"use strict";var nb=lt().codes.ERR_INVALID_OPT_VALUE;function sb(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function ob(r,e,t,i){var n=sb(e,i,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var s=i?t:"highWaterMark";throw new nb(s,n)}return Math.floor(n)}return r.objectMode?16:16*1024}Zc.exports={getHighWaterMark:ob}});var Xc=m((yC,ca)=>{typeof Object.create=="function"?ca.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ca.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}});var ar=m((wC,pa)=>{try{if(da=require("util"),typeof da.inherits!="function")throw"";pa.exports=da.inherits}catch{pa.exports=Xc()}var da});var sd=m((vC,nd)=>{"use strict";function ed(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function td(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ed(Object(t),!0).forEach(function(i){ab(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ed(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}function ab(r,e,t){return e=id(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function lb(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function rd(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,id(i.key),i)}}function ub(r,e,t){return e&&rd(r.prototype,e),t&&rd(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function id(r){var e=hb(r,"string");return typeof e=="symbol"?e:String(e)}function hb(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var fb=require("buffer"),In=fb.Buffer,cb=require("util"),ga=cb.inspect,db=ga&&ga.custom||"inspect";function pb(r,e,t){In.prototype.copy.call(r,e,t)}nd.exports=function(){function r(){lb(this,r),this.head=null,this.tail=null,this.length=0}return ub(r,[{key:"push",value:function(t){var i={data:t,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(t){var i={data:t,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=t+i.data;return n}},{key:"concat",value:function(t){if(this.length===0)return In.alloc(0);for(var i=In.allocUnsafe(t>>>0),n=this.head,s=0;n;)pb(n.data,i,s),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(t,i){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?n=this.shift():n=i?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var i=this.head,n=1,s=i.data;for(t-=s.length;i=i.next;){var o=i.data,a=t>o.length?o.length:t;if(a===o.length?s+=o:s+=o.slice(0,t),t-=a,t===0){a===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(t){var i=In.allocUnsafe(t),n=this.head,s=1;for(n.data.copy(i),t-=n.data.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,a),t-=a,t===0){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,i}},{key:db,value:function(t,i){return ga(this,td(td({},i),{},{depth:0,customInspect:!1}))}}]),r}()});var ld=m((ma,ad)=>{var Fn=require("buffer"),ze=Fn.Buffer;function od(r,e){for(var t in r)e[t]=r[t]}ze.from&&ze.alloc&&ze.allocUnsafe&&ze.allocUnsafeSlow?ad.exports=Fn:(od(Fn,ma),ma.Buffer=Ct);function Ct(r,e,t){return ze(r,e,t)}Ct.prototype=Object.create(ze.prototype);od(ze,Ct);Ct.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return ze(r,e,t)};Ct.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var i=ze(r);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};Ct.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return ze(r)};Ct.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Fn.SlowBuffer(r)}});var va=m(hd=>{"use strict";var wa=ld().Buffer,ud=wa.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function gb(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function mb(r){var e=gb(r);if(typeof e!="string"&&(wa.isEncoding===ud||!ud(r)))throw new Error("Unknown encoding: "+r);return e||r}hd.StringDecoder=li;function li(r){this.encoding=mb(r);var e;switch(this.encoding){case"utf16le":this.text=_b,this.end=xb,e=4;break;case"utf8":this.fillLast=vb,e=4;break;case"base64":this.text=Eb,this.end=Ob,e=3;break;default:this.write=Cb,this.end=Rb;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=wa.allocUnsafe(e)}li.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};li.prototype.end=Sb;li.prototype.text=bb;li.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function ya(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function yb(r,e,t){var i=e.length-1;if(i<t)return 0;var n=ya(e[i]);return n>=0?(n>0&&(r.lastNeed=n-1),n):--i<t||n===-2?0:(n=ya(e[i]),n>=0?(n>0&&(r.lastNeed=n-2),n):--i<t||n===-2?0:(n=ya(e[i]),n>=0?(n>0&&(n===2?n=0:r.lastNeed=n-3),n):0))}function wb(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function vb(r){var e=this.lastTotal-this.lastNeed,t=wb(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function bb(r,e){var t=yb(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var i=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,i),r.toString("utf8",e,i)}function Sb(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function _b(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var i=t.charCodeAt(t.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function xb(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function Eb(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Ob(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Cb(r){return r.toString(this.encoding)}function Rb(r){return r&&r.length?this.write(r):""}});var jn=m((SC,dd)=>{"use strict";var fd=lt().codes.ERR_STREAM_PREMATURE_CLOSE;function Mb(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];r.apply(this,i)}}}function Ab(){}function Tb(r){return r.setHeader&&typeof r.abort=="function"}function cd(r,e,t){if(typeof e=="function")return cd(r,null,e);e||(e={}),t=Mb(t||Ab);var i=e.readable||e.readable!==!1&&r.readable,n=e.writable||e.writable!==!1&&r.writable,s=function(){r.writable||a()},o=r._writableState&&r._writableState.finished,a=function(){n=!1,o=!0,i||t.call(r)},l=r._readableState&&r._readableState.endEmitted,u=function(){i=!1,l=!0,n||t.call(r)},h=function(d){t.call(r,d)},f=function(){var d;if(i&&!l)return(!r._readableState||!r._readableState.ended)&&(d=new fd),t.call(r,d);if(n&&!o)return(!r._writableState||!r._writableState.ended)&&(d=new fd),t.call(r,d)},c=function(){r.req.on("finish",a)};return Tb(r)?(r.on("complete",a),r.on("abort",f),r.req?c():r.on("request",c)):n&&!r._writableState&&(r.on("end",s),r.on("close",s)),r.on("end",u),r.on("finish",a),e.error!==!1&&r.on("error",h),r.on("close",f),function(){r.removeListener("complete",a),r.removeListener("abort",f),r.removeListener("request",c),r.req&&r.req.removeListener("finish",a),r.removeListener("end",s),r.removeListener("close",s),r.removeListener("finish",a),r.removeListener("end",u),r.removeListener("error",h),r.removeListener("close",f)}}dd.exports=cd});var gd=m((_C,pd)=>{"use strict";var $n;function ut(r,e,t){return e=Lb(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Lb(r){var e=qb(r,"string");return typeof e=="symbol"?e:String(e)}function qb(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Pb=jn(),ht=Symbol("lastResolve"),Rt=Symbol("lastReject"),ui=Symbol("error"),Bn=Symbol("ended"),Mt=Symbol("lastPromise"),ba=Symbol("handlePromise"),At=Symbol("stream");function ft(r,e){return{value:r,done:e}}function Nb(r){var e=r[ht];if(e!==null){var t=r[At].read();t!==null&&(r[Mt]=null,r[ht]=null,r[Rt]=null,e(ft(t,!1)))}}function Db(r){process.nextTick(Nb,r)}function kb(r,e){return function(t,i){r.then(function(){if(e[Bn]){t(ft(void 0,!0));return}e[ba](t,i)},i)}}var Ib=Object.getPrototypeOf(function(){}),Fb=Object.setPrototypeOf(($n={get stream(){return this[At]},next:function(){var e=this,t=this[ui];if(t!==null)return Promise.reject(t);if(this[Bn])return Promise.resolve(ft(void 0,!0));if(this[At].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[ui]?a(e[ui]):o(ft(void 0,!0))})});var i=this[Mt],n;if(i)n=new Promise(kb(i,this));else{var s=this[At].read();if(s!==null)return Promise.resolve(ft(s,!1));n=new Promise(this[ba])}return this[Mt]=n,n}},ut($n,Symbol.asyncIterator,function(){return this}),ut($n,"return",function(){var e=this;return new Promise(function(t,i){e[At].destroy(null,function(n){if(n){i(n);return}t(ft(void 0,!0))})})}),$n),Ib),jb=function(e){var t,i=Object.create(Fb,(t={},ut(t,At,{value:e,writable:!0}),ut(t,ht,{value:null,writable:!0}),ut(t,Rt,{value:null,writable:!0}),ut(t,ui,{value:null,writable:!0}),ut(t,Bn,{value:e._readableState.endEmitted,writable:!0}),ut(t,ba,{value:function(s,o){var a=i[At].read();a?(i[Mt]=null,i[ht]=null,i[Rt]=null,s(ft(a,!1))):(i[ht]=s,i[Rt]=o)},writable:!0}),t));return i[Mt]=null,Pb(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[Rt];s!==null&&(i[Mt]=null,i[ht]=null,i[Rt]=null,s(n)),i[ui]=n;return}var o=i[ht];o!==null&&(i[Mt]=null,i[ht]=null,i[Rt]=null,o(ft(void 0,!0))),i[Bn]=!0}),e.on("readable",Db.bind(null,i)),i};pd.exports=jb});var vd=m((xC,wd)=>{"use strict";function md(r,e,t,i,n,s,o){try{var a=r[s](o),l=a.value}catch(u){t(u);return}a.done?e(l):Promise.resolve(l).then(i,n)}function $b(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var s=r.apply(e,t);function o(l){md(s,i,n,o,a,"next",l)}function a(l){md(s,i,n,o,a,"throw",l)}o(void 0)})}}function yd(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Bb(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?yd(Object(t),!0).forEach(function(i){Ub(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):yd(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}function Ub(r,e,t){return e=zb(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function zb(r){var e=Wb(r,"string");return typeof e=="symbol"?e:String(e)}function Wb(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Gb=lt().codes.ERR_INVALID_ARG_TYPE;function Hb(r,e,t){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new Gb("iterable",["Iterable"],e);var n=new r(Bb({objectMode:!0},t)),s=!1;n._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=$b(function*(){try{var l=yield i.next(),u=l.value,h=l.done;h?n.push(null):n.push(yield u)?o():s=!1}catch(f){n.destroy(f)}}),a.apply(this,arguments)}return n}wd.exports=Hb});var Ta=m((OC,Ad)=>{"use strict";Ad.exports=N;var lr;N.ReadableState=xd;var EC=require("events").EventEmitter,_d=function(e,t){return e.listeners(t).length},fi=la(),Un=require("buffer").Buffer,Vb=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Yb(r){return Un.from(r)}function Kb(r){return Un.isBuffer(r)||r instanceof Vb}var Sa=require("util"),L;Sa&&Sa.debuglog?L=Sa.debuglog("stream"):L=function(){};var Jb=sd(),Ma=ha(),Qb=fa(),Zb=Qb.getHighWaterMark,zn=lt().codes,Xb=zn.ERR_INVALID_ARG_TYPE,e1=zn.ERR_STREAM_PUSH_AFTER_EOF,t1=zn.ERR_METHOD_NOT_IMPLEMENTED,r1=zn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ur,_a,xa;ar()(N,fi);var hi=Ma.errorOrDestroy,Ea=["error","close","destroy","pause","resume"];function i1(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function xd(r,e,t){lr=lr||Tt(),r=r||{},typeof t!="boolean"&&(t=e instanceof lr),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=Zb(this,r,"readableHighWaterMark",t),this.buffer=new Jb,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(ur||(ur=va().StringDecoder),this.decoder=new ur(r.encoding),this.encoding=r.encoding)}function N(r){if(lr=lr||Tt(),!(this instanceof N))return new N(r);var e=this instanceof lr;this._readableState=new xd(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),fi.call(this)}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});N.prototype.destroy=Ma.destroy;N.prototype._undestroy=Ma.undestroy;N.prototype._destroy=function(r,e){e(r)};N.prototype.push=function(r,e){var t=this._readableState,i;return t.objectMode?i=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=Un.from(r,e),e=""),i=!0),Ed(this,r,e,!1,i)};N.prototype.unshift=function(r){return Ed(this,r,null,!0,!1)};function Ed(r,e,t,i,n){L("readableAddChunk",e);var s=r._readableState;if(e===null)s.reading=!1,o1(r,s);else{var o;if(n||(o=n1(s,e)),o)hi(r,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Un.prototype&&(e=Yb(e)),i)s.endEmitted?hi(r,new r1):Oa(r,s,e,!0);else if(s.ended)hi(r,new e1);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!t?(e=s.decoder.write(e),s.objectMode||e.length!==0?Oa(r,s,e,!1):Ra(r,s)):Oa(r,s,e,!1)}else i||(s.reading=!1,Ra(r,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Oa(r,e,t,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,i?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&Wn(r)),Ra(r,e)}function n1(r,e){var t;return!Kb(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new Xb("chunk",["string","Buffer","Uint8Array"],e)),t}N.prototype.isPaused=function(){return this._readableState.flowing===!1};N.prototype.setEncoding=function(r){ur||(ur=va().StringDecoder);var e=new ur(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,i="";t!==null;)i+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var bd=1073741824;function s1(r){return r>=bd?r=bd:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function Sd(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=s1(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}N.prototype.read=function(r){L("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return L("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ca(this):Wn(this),null;if(r=Sd(r,e),r===0&&e.ended)return e.length===0&&Ca(this),null;var i=e.needReadable;L("need readable",i),(e.length===0||e.length-r<e.highWaterMark)&&(i=!0,L("length less than watermark",i)),e.ended||e.reading?(i=!1,L("reading or ended",i)):i&&(L("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=Sd(t,e)));var n;return r>0?n=Rd(r,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Ca(this)),n!==null&&this.emit("data",n),n};function o1(r,e){if(L("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Wn(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Od(r)))}}function Wn(r){var e=r._readableState;L("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(L("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Od,r))}function Od(r){var e=r._readableState;L("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Aa(r)}function Ra(r,e){e.readingMore||(e.readingMore=!0,process.nextTick(a1,r,e))}function a1(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(L("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}N.prototype._read=function(r){hi(this,new t1("_read()"))};N.prototype.pipe=function(r,e){var t=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r);break}i.pipesCount+=1,L("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&r!==process.stdout&&r!==process.stderr,s=n?a:g;i.endEmitted?process.nextTick(s):t.once("end",s),r.on("unpipe",o);function o(y,w){L("onunpipe"),y===t&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,h())}function a(){L("onend"),r.end()}var l=l1(t);r.on("drain",l);var u=!1;function h(){L("cleanup"),r.removeListener("close",p),r.removeListener("finish",d),r.removeListener("drain",l),r.removeListener("error",c),r.removeListener("unpipe",o),t.removeListener("end",a),t.removeListener("end",g),t.removeListener("data",f),u=!0,i.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&l()}t.on("data",f);function f(y){L("ondata");var w=r.write(y);L("dest.write",w),w===!1&&((i.pipesCount===1&&i.pipes===r||i.pipesCount>1&&Md(i.pipes,r)!==-1)&&!u&&(L("false write response, pause",i.awaitDrain),i.awaitDrain++),t.pause())}function c(y){L("onerror",y),g(),r.removeListener("error",c),_d(r,"error")===0&&hi(r,y)}i1(r,"error",c);function p(){r.removeListener("finish",d),g()}r.once("close",p);function d(){L("onfinish"),r.removeListener("close",p),g()}r.once("finish",d);function g(){L("unpipe"),t.unpipe(r)}return r.emit("pipe",t),i.flowing||(L("pipe resume"),t.resume()),r};function l1(r){return function(){var t=r._readableState;L("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&_d(r,"data")&&(t.flowing=!0,Aa(r))}}N.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Md(e.pipes,r);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};N.prototype.on=function(r,e){var t=fi.prototype.on.call(this,r,e),i=this._readableState;return r==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):r==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,L("on readable",i.length,i.reading),i.length?Wn(this):i.reading||process.nextTick(u1,this)),t};N.prototype.addListener=N.prototype.on;N.prototype.removeListener=function(r,e){var t=fi.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(Cd,this),t};N.prototype.removeAllListeners=function(r){var e=fi.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(Cd,this),e};function Cd(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function u1(r){L("readable nexttick read 0"),r.read(0)}N.prototype.resume=function(){var r=this._readableState;return r.flowing||(L("resume"),r.flowing=!r.readableListening,h1(this,r)),r.paused=!1,this};function h1(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(f1,r,e))}function f1(r,e){L("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),Aa(r),e.flowing&&!e.reading&&r.read(0)}N.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Aa(r){var e=r._readableState;for(L("flow",e.flowing);e.flowing&&r.read()!==null;);}N.prototype.wrap=function(r){var e=this,t=this._readableState,i=!1;r.on("end",function(){if(L("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),r.on("data",function(o){if(L("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,r.pause())}});for(var n in r)this[n]===void 0&&typeof r[n]=="function"&&(this[n]=function(a){return function(){return r[a].apply(r,arguments)}}(n));for(var s=0;s<Ea.length;s++)r.on(Ea[s],this.emit.bind(this,Ea[s]));return this._read=function(o){L("wrapped _read",o),i&&(i=!1,r.resume())},this};typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return _a===void 0&&(_a=gd()),_a(this)});Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});N._fromList=Rd;Object.defineProperty(N.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Rd(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Ca(r){var e=r._readableState;L("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(c1,e,r))}function c1(r,e){if(L("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(N.from=function(r,e){return xa===void 0&&(xa=vd()),xa(N,r,e)});function Md(r,e){for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t;return-1}});var Tt=m((CC,Ld)=>{"use strict";var d1=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};Ld.exports=We;var Td=Ta(),qa=Vn();ar()(We,Td);for(La=d1(qa.prototype),Gn=0;Gn<La.length;Gn++)Hn=La[Gn],We.prototype[Hn]||(We.prototype[Hn]=qa.prototype[Hn]);var La,Hn,Gn;function We(r){if(!(this instanceof We))return new We(r);Td.call(this,r),qa.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",p1)))}Object.defineProperty(We.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(We.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(We.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function p1(){this._writableState.ended||process.nextTick(g1,this)}function g1(r){r.end()}Object.defineProperty(We.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 Vn=m((RC,Id)=>{"use strict";Id.exports=B;function Pd(r){var e=this;this.next=null,this.entry=null,this.finish=function(){U1(e,r)}}var hr;B.WritableState=di;var m1={deprecate:Gc()},Nd=la(),Kn=require("buffer").Buffer,y1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function w1(r){return Kn.from(r)}function v1(r){return Kn.isBuffer(r)||r instanceof y1}var Na=ha(),b1=fa(),S1=b1.getHighWaterMark,ct=lt().codes,_1=ct.ERR_INVALID_ARG_TYPE,x1=ct.ERR_METHOD_NOT_IMPLEMENTED,E1=ct.ERR_MULTIPLE_CALLBACK,O1=ct.ERR_STREAM_CANNOT_PIPE,C1=ct.ERR_STREAM_DESTROYED,R1=ct.ERR_STREAM_NULL_VALUES,M1=ct.ERR_STREAM_WRITE_AFTER_END,A1=ct.ERR_UNKNOWN_ENCODING,fr=Na.errorOrDestroy;ar()(B,Nd);function T1(){}function di(r,e,t){hr=hr||Tt(),r=r||{},typeof t!="boolean"&&(t=e instanceof hr),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=S1(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=r.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){I1(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Pd(this)}di.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(di.prototype,"buffer",{get:m1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Yn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Yn=Function.prototype[Symbol.hasInstance],Object.defineProperty(B,Symbol.hasInstance,{value:function(e){return Yn.call(this,e)?!0:this!==B?!1:e&&e._writableState instanceof di}})):Yn=function(e){return e instanceof this};function B(r){hr=hr||Tt();var e=this instanceof hr;if(!e&&!Yn.call(B,this))return new B(r);this._writableState=new di(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),Nd.call(this)}B.prototype.pipe=function(){fr(this,new O1)};function L1(r,e){var t=new M1;fr(r,t),process.nextTick(e,t)}function q1(r,e,t,i){var n;return t===null?n=new R1:typeof t!="string"&&!e.objectMode&&(n=new _1("chunk",["string","Buffer"],t)),n?(fr(r,n),process.nextTick(i,n),!1):!0}B.prototype.write=function(r,e,t){var i=this._writableState,n=!1,s=!i.objectMode&&v1(r);return s&&!Kn.isBuffer(r)&&(r=w1(r)),typeof e=="function"&&(t=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof t!="function"&&(t=T1),i.ending?L1(this,t):(s||q1(this,i,r,t))&&(i.pendingcb++,n=N1(this,i,s,r,e,t)),n};B.prototype.cork=function(){this._writableState.corked++};B.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Dd(this,r))};B.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 A1(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function P1(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=Kn.from(e,t)),e}Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N1(r,e,t,i,n,s){if(!t){var o=P1(e,i,n);i!==o&&(t=!0,n="buffer",i=o)}var a=e.objectMode?1:i.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:i,encoding:n,isBuf:t,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Pa(r,e,!1,a,i,n,s);return l}function Pa(r,e,t,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new C1("write")):t?r._writev(n,e.onwrite):r._write(n,s,e.onwrite),e.sync=!1}function D1(r,e,t,i,n){--e.pendingcb,t?(process.nextTick(n,i),process.nextTick(ci,r,e),r._writableState.errorEmitted=!0,fr(r,i)):(n(i),r._writableState.errorEmitted=!0,fr(r,i),ci(r,e))}function k1(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function I1(r,e){var t=r._writableState,i=t.sync,n=t.writecb;if(typeof n!="function")throw new E1;if(k1(t),e)D1(r,t,i,e,n);else{var s=kd(t)||r.destroyed;!s&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Dd(r,t),i?process.nextTick(qd,r,t,s,n):qd(r,t,s,n)}}function qd(r,e,t,i){t||F1(r,e),e.pendingcb--,i(),ci(r,e)}function F1(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function Dd(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=t;for(var o=0,a=!0;t;)n[o]=t,t.isBuf||(a=!1),t=t.next,o+=1;n.allBuffers=a,Pa(r,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Pd(e),e.bufferedRequestCount=0}else{for(;t;){var l=t.chunk,u=t.encoding,h=t.callback,f=e.objectMode?1:l.length;if(Pa(r,e,!1,f,l,u,h),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}B.prototype._write=function(r,e,t){t(new x1("_write()"))};B.prototype._writev=null;B.prototype.end=function(r,e,t){var i=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),i.corked&&(i.corked=1,this.uncork()),i.ending||B1(this,i,t),this};Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kd(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function j1(r,e){r._final(function(t){e.pendingcb--,t&&fr(r,t),e.prefinished=!0,r.emit("prefinish"),ci(r,e)})}function $1(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(j1,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function ci(r,e){var t=kd(e);if(t&&($1(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var i=r._readableState;(!i||i.autoDestroy&&i.endEmitted)&&r.destroy()}return t}function B1(r,e,t){e.ending=!0,ci(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function U1(r,e,t){var i=r.entry;for(r.entry=null;i;){var n=i.callback;e.pendingcb--,n(t),i=i.next}e.corkedRequestsFree.next=r}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});B.prototype.destroy=Na.destroy;B.prototype._undestroy=Na.undestroy;B.prototype._destroy=function(r,e){e(r)}});var Da=m((MC,$d)=>{"use strict";var z1=require("util"),Fd=Vn(),{LEVEL:jd}=G(),pi=$d.exports=function(e={}){Fd.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",t=>{this.levels=t.levels,this.parent=t}),this.once("unpipe",t=>{t===this.parent&&(this.parent=null,this.close&&this.close())})};z1.inherits(pi,Fd);pi.prototype._write=function(e,t,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let n=this.level||this.parent&&this.parent.level;if(!n||this.levels[n]>=this.levels[e[jd]]){if(e&&!this.format)return this.log(e,i);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(a){s=a}if(s||!o){if(i(),s)throw s;return}return this.log(o,i)}return this._writableState.sync=!1,i(null)};pi.prototype._writev=function(e,t){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,t):t(null)}for(let i=0;i<e.length;i++){if(!this._accept(e[i]))continue;if(e[i].chunk&&!this.format){this.log(e[i].chunk,e[i].callback);continue}let n,s;try{s=this.format.transform(Object.assign({},e[i].chunk),this.format.options)}catch(o){n=o}if(n||!s){if(e[i].callback(),n)throw t(null),n}else this.log(s,e[i].callback)}return t(null)};pi.prototype._accept=function(e){let t=e.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;return!!((t.exception===!0||!i||this.levels[i]>=this.levels[t[jd]])&&(this.handleExceptions||t.exception!==!0))};pi.prototype._nop=function(){}});var Ia=m((AC,Ud)=>{"use strict";var W1=require("util"),{LEVEL:ka}=G(),Bd=Da(),gi=Ud.exports=function(e={}){if(Bd.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function t(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=t.bind(this),this.transport.on("error",this.transport.__winstonError))};W1.inherits(gi,Bd);gi.prototype._write=function(e,t,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[ka]])&&this.transport.log(e[ka],e.message,e,this._nop),i(null)};gi.prototype._writev=function(e,t){for(let i=0;i<e.length;i++)this._accept(e[i])&&(this.transport.log(e[i].chunk[ka],e[i].chunk.message,e[i].chunk,this._nop),e[i].callback());return t(null)};gi.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
|
+
`))};gi.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var cr=m((TC,Fa)=>{"use strict";Fa.exports=Da();Fa.exports.LegacyTransportStream=Ia()});var Gd=m((qC,Wd)=>{"use strict";var G1=require("os"),{LEVEL:zd,MESSAGE:dr}=G(),H1=cr();Wd.exports=class extends H1{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:G1.EOL,this.forceConsole=e.forceConsole||!1,this._consoleLog=console.log.bind(console),this._consoleWarn=console.warn.bind(console),this._consoleError=console.error.bind(console),this.setMaxListeners(30)}log(e,t){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[zd]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[dr]}${this.eol}`):this._consoleError(e[dr]),t&&t();return}else if(this.consoleWarnLevels[e[zd]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[dr]}${this.eol}`):this._consoleWarn(e[dr]),t&&t();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[dr]}${this.eol}`):this._consoleLog(e[dr]),t&&t()}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce((i,n)=>{if(typeof n!="string")throw new Error(t);return i[n]=!0,i},{})}}});var Qn=m((Jn,Hd)=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.default=V1;function V1(r){return r&&typeof r.length=="number"&&r.length>=0&&r.length%1===0}Hd.exports=Jn.default});var Yd=m((Zn,Vd)=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.default=function(r){return function(...e){var t=e.pop();return r.call(this,e,t)}};Vd.exports=Zn.default});var Qd=m(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.fallback=Kd;dt.wrap=Jd;var Y1=dt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,K1=dt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,J1=dt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function Kd(r){setTimeout(r,0)}function Jd(r){return(e,...t)=>r(()=>e(...t))}var mi;Y1?mi=queueMicrotask:K1?mi=setImmediate:J1?mi=process.nextTick:mi=Kd;dt.default=Jd(mi)});var rp=m((Xn,tp)=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.default=rS;var Q1=Yd(),Z1=ep(Q1),X1=Qd(),eS=ep(X1),tS=Lt();function ep(r){return r&&r.__esModule?r:{default:r}}function rS(r){return(0,tS.isAsync)(r)?function(...e){let t=e.pop(),i=r.apply(this,e);return Zd(i,t)}:(0,Z1.default)(function(e,t){var i;try{i=r.apply(this,e)}catch(n){return t(n)}if(i&&typeof i.then=="function")return Zd(i,t);t(null,i)})}function Zd(r,e){return r.then(t=>{Xd(e,null,t)},t=>{Xd(e,t&&(t instanceof Error||t.message)?t:new Error(t))})}function Xd(r,e,t){try{r(e,t)}catch(i){(0,eS.default)(n=>{throw n},i)}}tp.exports=Xn.default});var Lt=m(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.isAsyncIterable=Ze.isAsyncGenerator=Ze.isAsync=void 0;var iS=rp(),nS=sS(iS);function sS(r){return r&&r.__esModule?r:{default:r}}function ip(r){return r[Symbol.toStringTag]==="AsyncFunction"}function oS(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function aS(r){return typeof r[Symbol.asyncIterator]=="function"}function lS(r){if(typeof r!="function")throw new Error("expected a function");return ip(r)?(0,nS.default)(r):r}Ze.default=lS;Ze.isAsync=ip;Ze.isAsyncGenerator=oS;Ze.isAsyncIterable=aS});var pr=m((es,np)=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.default=uS;function uS(r,e){if(e||(e=r.length),!e)throw new Error("arity is undefined");function t(...i){return typeof i[e-1]=="function"?r.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},r.apply(this,i)})}return t}np.exports=es.default});var op=m((ts,sp)=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var hS=Qn(),fS=ja(hS),cS=Lt(),dS=ja(cS),pS=pr(),gS=ja(pS);function ja(r){return r&&r.__esModule?r:{default:r}}ts.default=(0,gS.default)((r,e,t)=>{var i=(0,fS.default)(e)?[]:{};r(e,(n,s,o)=>{(0,dS.default)(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>t(n,i))},3);sp.exports=ts.default});var $a=m((rs,ap)=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.default=mS;function mS(r){function e(...t){if(r!==null){var i=r;r=null,i.apply(this,t)}}return Object.assign(e,r),e}ap.exports=rs.default});var up=m((is,lp)=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.default=function(r){return r[Symbol.iterator]&&r[Symbol.iterator]()};lp.exports=is.default});var cp=m((ns,fp)=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.default=ES;var yS=Qn(),wS=hp(yS),vS=up(),bS=hp(vS);function hp(r){return r&&r.__esModule?r:{default:r}}function SS(r){var e=-1,t=r.length;return function(){return++e<t?{value:r[e],key:e}:null}}function _S(r){var e=-1;return function(){var i=r.next();return i.done?null:(e++,{value:i.value,key:e})}}function xS(r){var e=r?Object.keys(r):[],t=-1,i=e.length;return function n(){var s=e[++t];return s==="__proto__"?n():t<i?{value:r[s],key:s}:null}}function ES(r){if((0,wS.default)(r))return SS(r);var e=(0,bS.default)(r);return e?_S(e):xS(r)}fp.exports=ns.default});var Ba=m((ss,dp)=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.default=OS;function OS(r){return function(...e){if(r===null)throw new Error("Callback was already called.");var t=r;r=null,t.apply(this,e)}}dp.exports=ss.default});var as=m((os,pp)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var CS={};os.default=CS;pp.exports=os.default});var mp=m((ls,gp)=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.default=TS;var RS=as(),MS=AS(RS);function AS(r){return r&&r.__esModule?r:{default:r}}function TS(r,e,t,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,r.next().then(({value:c,done:p})=>{if(!(s||n)){if(o=!1,p){n=!0,a<=0&&i(null);return}a++,t(c,l,h),l++,u()}}).catch(f))}function h(c,p){if(a-=1,!s){if(c)return f(c);if(c===!1){n=!0,s=!0;return}if(p===MS.default||n&&a<=0)return n=!0,i(null);u()}}function f(c){s||(o=!1,n=!0,i(c))}u()}gp.exports=ls.default});var bp=m((us,vp)=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var LS=$a(),qS=yi(LS),PS=cp(),NS=yi(PS),DS=Ba(),kS=yi(DS),yp=Lt(),IS=mp(),wp=yi(IS),FS=as(),jS=yi(FS);function yi(r){return r&&r.__esModule?r:{default:r}}us.default=r=>(e,t,i)=>{if(i=(0,qS.default)(i),r<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,yp.isAsyncGenerator)(e))return(0,wp.default)(e,r,t,i);if((0,yp.isAsyncIterable)(e))return(0,wp.default)(e[Symbol.asyncIterator](),r,t,i);var n=(0,NS.default)(e),s=!1,o=!1,a=0,l=!1;function u(f,c){if(!o)if(a-=1,f)s=!0,i(f);else if(f===!1)s=!0,o=!0;else{if(c===jS.default||s&&a<=0)return s=!0,i(null);l||h()}}function h(){for(l=!0;a<r&&!s;){var f=n();if(f===null){s=!0,a<=0&&i(null);return}a+=1,t(f.value,f.key,(0,kS.default)(u))}l=!1}h()};vp.exports=us.default});var za=m((hs,Sp)=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var $S=bp(),BS=Ua($S),US=Lt(),zS=Ua(US),WS=pr(),GS=Ua(WS);function Ua(r){return r&&r.__esModule?r:{default:r}}function HS(r,e,t,i){return(0,BS.default)(e)(r,(0,zS.default)(t),i)}hs.default=(0,GS.default)(HS,4);Sp.exports=hs.default});var Ep=m((fs,xp)=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var VS=za(),YS=_p(VS),KS=pr(),JS=_p(KS);function _p(r){return r&&r.__esModule?r:{default:r}}function QS(r,e,t){return(0,YS.default)(r,1,e,t)}fs.default=(0,JS.default)(QS,3);xp.exports=fs.default});var Rp=m((cs,Cp)=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.default=r_;var ZS=op(),XS=Op(ZS),e_=Ep(),t_=Op(e_);function Op(r){return r&&r.__esModule?r:{default:r}}function r_(r,e){return(0,XS.default)(t_.default,r,e)}Cp.exports=cs.default});var Wa=m((DC,Ap)=>{"use strict";Ap.exports=Xe;var ds=lt().codes,i_=ds.ERR_METHOD_NOT_IMPLEMENTED,n_=ds.ERR_MULTIPLE_CALLBACK,s_=ds.ERR_TRANSFORM_ALREADY_TRANSFORMING,o_=ds.ERR_TRANSFORM_WITH_LENGTH_0,ps=Tt();ar()(Xe,ps);function a_(r,e){var t=this._transformState;t.transforming=!1;var i=t.writecb;if(i===null)return this.emit("error",new n_);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),i(r);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Xe(r){if(!(this instanceof Xe))return new Xe(r);ps.call(this,r),this._transformState={afterTransform:a_.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",l_)}function l_(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){Mp(r,e,t)}):Mp(this,null,null)}Xe.prototype.push=function(r,e){return this._transformState.needTransform=!1,ps.prototype.push.call(this,r,e)};Xe.prototype._transform=function(r,e,t){t(new i_("_transform()"))};Xe.prototype._write=function(r,e,t){var i=this._transformState;if(i.writecb=t,i.writechunk=r,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Xe.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Xe.prototype._destroy=function(r,e){ps.prototype._destroy.call(this,r,function(t){e(t)})};function Mp(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new o_;if(r._transformState.transforming)throw new s_;return r.push(null)}});var qp=m((kC,Lp)=>{"use strict";Lp.exports=wi;var Tp=Wa();ar()(wi,Tp);function wi(r){if(!(this instanceof wi))return new wi(r);Tp.call(this,r)}wi.prototype._transform=function(r,e,t){t(null,r)}});var Ip=m((IC,kp)=>{"use strict";var Ga;function u_(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var Dp=lt().codes,h_=Dp.ERR_MISSING_ARGS,f_=Dp.ERR_STREAM_DESTROYED;function Pp(r){if(r)throw r}function c_(r){return r.setHeader&&typeof r.abort=="function"}function d_(r,e,t,i){i=u_(i);var n=!1;r.on("close",function(){n=!0}),Ga===void 0&&(Ga=jn()),Ga(r,{readable:e,writable:t},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,c_(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();i(o||new f_("pipe"))}}}function Np(r){r()}function p_(r,e){return r.pipe(e)}function g_(r){return!r.length||typeof r[r.length-1]!="function"?Pp:r.pop()}function m_(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var i=g_(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new h_("streams");var n,s=e.map(function(o,a){var l=a<e.length-1,u=a>0;return d_(o,l,u,function(h){n||(n=h),h&&s.forEach(Np),!l&&(s.forEach(Np),i(n))})});return e.reduce(p_)}kp.exports=m_});var qt=m((Re,bi)=>{var vi=require("stream");process.env.READABLE_STREAM==="disable"&&vi?(bi.exports=vi.Readable,Object.assign(bi.exports,vi),bi.exports.Stream=vi):(Re=bi.exports=Ta(),Re.Stream=vi||Re,Re.Readable=Re,Re.Writable=Vn(),Re.Duplex=Tt(),Re.Transform=Wa(),Re.PassThrough=qp(),Re.finished=jn(),Re.pipeline=Ip())});var Za=m((FC,jp)=>{var gr=[],Si=[],Ha=function(){};function Ya(r){return~gr.indexOf(r)?!1:(gr.push(r),!0)}function Ka(r){Ha=r}function y_(r){for(var e=[],t=0;t<gr.length;t++){if(gr[t].async){e.push(gr[t]);continue}if(gr[t](r))return!0}return e.length?new Promise(function(n){Promise.all(e.map(function(o){return o(r)})).then(function(o){n(o.some(Boolean))})}):!1}function Ja(r){return~Si.indexOf(r)?!1:(Si.push(r),!0)}function Va(){Ha.apply(Ha,arguments)}function Fp(r){for(var e=0;e<Si.length;e++)r=Si[e].apply(Si[e],arguments);return r}function Qa(r,e){var t=Object.prototype.hasOwnProperty;for(var i in e)t.call(e,i)&&(r[i]=e[i]);return r}function w_(r){return r.enabled=!1,r.modify=Ja,r.set=Ka,r.use=Ya,Qa(function(){return!1},r)}function v_(r){function e(){var t=Array.prototype.slice.call(arguments,0);return Va.call(Va,r,Fp(t,r)),!0}return r.enabled=!0,r.modify=Ja,r.set=Ka,r.use=Ya,Qa(e,r)}jp.exports=function(e){return e.introduce=Qa,e.enabled=y_,e.process=Fp,e.modify=Ja,e.write=Va,e.nope=w_,e.yep=v_,e.set=Ka,e.use=Ya,e}});var Bp=m((jC,$p)=>{var b_=Za(),S_=b_(function r(e,t){return t=t||{},t.namespace=e,t.prod=!0,t.dev=!1,t.force||r.force?r.yep(t):r.nope(t)});$p.exports=S_});var zp=m(($C,Up)=>{"use strict";Up.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 Gp=m((BC,Wp)=>{Wp.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 Yp=m((UC,Vp)=>{"use strict";var __=Gp(),x_=Array.prototype.concat,E_=Array.prototype.slice,Hp=Vp.exports=function(e){for(var t=[],i=0,n=e.length;i<n;i++){var s=e[i];__(s)?t=x_.call(t,E_.call(s)):t.push(s)}return t};Hp.wrap=function(r){return function(){return r(Hp(arguments))}}});var Zp=m((zC,Qp)=>{var _i=zp(),xi=Yp(),Kp=Object.hasOwnProperty,Jp=Object.create(null);for(gs in _i)Kp.call(_i,gs)&&(Jp[_i[gs]]=gs);var gs,be=Qp.exports={to:{},get:{}};be.get=function(r){var e=r.substring(0,3).toLowerCase(),t,i;switch(e){case"hsl":t=be.get.hsl(r),i="hsl";break;case"hwb":t=be.get.hwb(r),i="hwb";break;default:t=be.get.rgb(r),i="rgb";break}return t?{model:i,value:t}:null};be.get.rgb=function(r){if(!r)return null;var e=/^#([a-f0-9]{3,4})$/i,t=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,n=/^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=r.match(t)){for(u=a[2],a=a[1],l=0;l<3;l++){var h=l*2;o[l]=parseInt(a.slice(h,h+2),16)}u&&(o[3]=parseInt(u,16)/255)}else if(a=r.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=r.match(i)){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=r.match(n)){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=r.match(s))?a[1]==="transparent"?[0,0,0,0]:Kp.call(_i,a[1])?(o=_i[a[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=pt(o[l],0,255);return o[3]=pt(o[3],0,1),o};be.get.hsl=function(r){if(!r)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(e);if(t){var i=parseFloat(t[4]),n=(parseFloat(t[1])%360+360)%360,s=pt(parseFloat(t[2]),0,100),o=pt(parseFloat(t[3]),0,100),a=pt(isNaN(i)?1:i,0,1);return[n,s,o,a]}return null};be.get.hwb=function(r){if(!r)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,t=r.match(e);if(t){var i=parseFloat(t[4]),n=(parseFloat(t[1])%360+360)%360,s=pt(parseFloat(t[2]),0,100),o=pt(parseFloat(t[3]),0,100),a=pt(isNaN(i)?1:i,0,1);return[n,s,o,a]}return null};be.to.hex=function(){var r=xi(arguments);return"#"+ms(r[0])+ms(r[1])+ms(r[2])+(r[3]<1?ms(Math.round(r[3]*255)):"")};be.to.rgb=function(){var r=xi(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};be.to.rgb.percent=function(){var r=xi(arguments),e=Math.round(r[0]/255*100),t=Math.round(r[1]/255*100),i=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+e+"%, "+t+"%, "+i+"%)":"rgba("+e+"%, "+t+"%, "+i+"%, "+r[3]+")"};be.to.hsl=function(){var r=xi(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};be.to.hwb=function(){var r=xi(arguments),e="";return r.length>=4&&r[3]!==1&&(e=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+e+")"};be.to.keyword=function(r){return Jp[r.slice(0,3)]};function pt(r,e,t){return Math.min(Math.max(e,r),t)}function ms(r){var e=Math.round(r).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var eg=m((WC,Xp)=>{"use strict";Xp.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 Xa=m((GC,ng)=>{var Pt=eg(),ig={};for(ys in Pt)Pt.hasOwnProperty(ys)&&(ig[Pt[ys]]=ys);var ys,O=ng.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(fe in O)if(O.hasOwnProperty(fe)){if(!("channels"in O[fe]))throw new Error("missing channels property: "+fe);if(!("labels"in O[fe]))throw new Error("missing channel labels property: "+fe);if(O[fe].labels.length!==O[fe].channels)throw new Error("channel and label counts mismatch: "+fe);tg=O[fe].channels,rg=O[fe].labels,delete O[fe].channels,delete O[fe].labels,Object.defineProperty(O[fe],"channels",{value:tg}),Object.defineProperty(O[fe],"labels",{value:rg})}var tg,rg,fe;O.rgb.hsl=function(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.min(e,t,i),s=Math.max(e,t,i),o=s-n,a,l,u;return s===n?a=0:e===s?a=(t-i)/o:t===s?a=2+(i-e)/o:i===s&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(n+s)/2,s===n?l=0:u<=.5?l=o/(s+n):l=o/(2-s-n),[a,l*100,u*100]};O.rgb.hsv=function(r){var e,t,i,n,s,o=r[0]/255,a=r[1]/255,l=r[2]/255,u=Math.max(o,a,l),h=u-Math.min(o,a,l),f=function(c){return(u-c)/6/h+1/2};return h===0?n=s=0:(s=h/u,e=f(o),t=f(a),i=f(l),o===u?n=i-t:a===u?n=1/3+e-i:l===u&&(n=2/3+t-e),n<0?n+=1:n>1&&(n-=1)),[n*360,s*100,u*100]};O.rgb.hwb=function(r){var e=r[0],t=r[1],i=r[2],n=O.rgb.hsl(r)[0],s=1/255*Math.min(e,Math.min(t,i));return i=1-1/255*Math.max(e,Math.max(t,i)),[n,s*100,i*100]};O.rgb.cmyk=function(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,n,s,o,a;return a=Math.min(1-e,1-t,1-i),n=(1-e-a)/(1-a)||0,s=(1-t-a)/(1-a)||0,o=(1-i-a)/(1-a)||0,[n*100,s*100,o*100,a*100]};function O_(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)+Math.pow(r[2]-e[2],2)}O.rgb.keyword=function(r){var e=ig[r];if(e)return e;var t=1/0,i;for(var n in Pt)if(Pt.hasOwnProperty(n)){var s=Pt[n],o=O_(r,s);o<t&&(t=o,i=n)}return i};O.keyword.rgb=function(r){return Pt[r]};O.rgb.xyz=function(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var n=e*.4124+t*.3576+i*.1805,s=e*.2126+t*.7152+i*.0722,o=e*.0193+t*.1192+i*.9505;return[n*100,s*100,o*100]};O.rgb.lab=function(r){var e=O.rgb.xyz(r),t=e[0],i=e[1],n=e[2],s,o,a;return t/=95.047,i/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,s=116*i-16,o=500*(t-i),a=200*(i-n),[s,o,a]};O.hsl.rgb=function(r){var e=r[0]/360,t=r[1]/100,i=r[2]/100,n,s,o,a,l;if(t===0)return l=i*255,[l,l,l];i<.5?s=i*(1+t):s=i+t-i*t,n=2*i-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=n+(s-n)*6*o:2*o<1?l=s:3*o<2?l=n+(s-n)*(2/3-o)*6:l=n,a[u]=l*255;return a};O.hsl.hsv=function(r){var e=r[0],t=r[1]/100,i=r[2]/100,n=t,s=Math.max(i,.01),o,a;return i*=2,t*=i<=1?i:2-i,n*=s<=1?s:2-s,a=(i+t)/2,o=i===0?2*n/(s+n):2*t/(i+t),[e,o*100,a*100]};O.hsv.rgb=function(r){var e=r[0]/60,t=r[1]/100,i=r[2]/100,n=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-t),a=255*i*(1-t*s),l=255*i*(1-t*(1-s));switch(i*=255,n){case 0:return[i,l,o];case 1:return[a,i,o];case 2:return[o,i,l];case 3:return[o,a,i];case 4:return[l,o,i];case 5:return[i,o,a]}};O.hsv.hsl=function(r){var e=r[0],t=r[1]/100,i=r[2]/100,n=Math.max(i,.01),s,o,a;return a=(2-t)*i,s=(2-t)*n,o=t*n,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};O.hwb.rgb=function(r){var e=r[0]/360,t=r[1]/100,i=r[2]/100,n=t+i,s,o,a,l;n>1&&(t/=n,i/=n),s=Math.floor(6*e),o=1-i,a=6*e-s,(s&1)!==0&&(a=1-a),l=t+a*(o-t);var u,h,f;switch(s){default:case 6:case 0:u=o,h=l,f=t;break;case 1:u=l,h=o,f=t;break;case 2:u=t,h=o,f=l;break;case 3:u=t,h=l,f=o;break;case 4:u=l,h=t,f=o;break;case 5:u=o,h=t,f=l;break}return[u*255,h*255,f*255]};O.cmyk.rgb=function(r){var e=r[0]/100,t=r[1]/100,i=r[2]/100,n=r[3]/100,s,o,a;return s=1-Math.min(1,e*(1-n)+n),o=1-Math.min(1,t*(1-n)+n),a=1-Math.min(1,i*(1-n)+n),[s*255,o*255,a*255]};O.xyz.rgb=function(r){var e=r[0]/100,t=r[1]/100,i=r[2]/100,n,s,o;return n=e*3.2406+t*-1.5372+i*-.4986,s=e*-.9689+t*1.8758+i*.0415,o=e*.0557+t*-.204+i*1.057,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*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,n=Math.min(Math.max(0,n),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[n*255,s*255,o*255]};O.xyz.lab=function(r){var e=r[0],t=r[1],i=r[2],n,s,o;return e/=95.047,t/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,n=116*t-16,s=500*(e-t),o=200*(t-i),[n,s,o]};O.lab.xyz=function(r){var e=r[0],t=r[1],i=r[2],n,s,o;s=(e+16)/116,n=t/500+s,o=s-i/200;var a=Math.pow(s,3),l=Math.pow(n,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,n*=95.047,s*=100,o*=108.883,[n,s,o]};O.lab.lch=function(r){var e=r[0],t=r[1],i=r[2],n,s,o;return n=Math.atan2(i,t),s=n*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(t*t+i*i),[e,o,s]};O.lch.lab=function(r){var e=r[0],t=r[1],i=r[2],n,s,o;return o=i/360*2*Math.PI,n=t*Math.cos(o),s=t*Math.sin(o),[e,n,s]};O.rgb.ansi16=function(r){var e=r[0],t=r[1],i=r[2],n=1 in arguments?arguments[1]:O.rgb.hsv(r)[2];if(n=Math.round(n/50),n===0)return 30;var s=30+(Math.round(i/255)<<2|Math.round(t/255)<<1|Math.round(e/255));return n===2&&(s+=60),s};O.hsv.ansi16=function(r){return O.rgb.ansi16(O.hsv.rgb(r),r[2])};O.rgb.ansi256=function(r){var e=r[0],t=r[1],i=r[2];if(e===t&&t===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var n=16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5);return n};O.ansi16.rgb=function(r){var e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var t=(~~(r>50)+1)*.5,i=(e&1)*t*255,n=(e>>1&1)*t*255,s=(e>>2&1)*t*255;return[i,n,s]};O.ansi256.rgb=function(r){if(r>=232){var e=(r-232)*10+8;return[e,e,e]}r-=16;var t,i=Math.floor(r/36)/5*255,n=Math.floor((t=r%36)/6)/5*255,s=t%6/5*255;return[i,n,s]};O.rgb.hex=function(r){var e=((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255),t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t};O.hex.rgb=function(r){var e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var t=e[0];e[0].length===3&&(t=t.split("").map(function(a){return a+a}).join(""));var i=parseInt(t,16),n=i>>16&255,s=i>>8&255,o=i&255;return[n,s,o]};O.rgb.hcg=function(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.max(Math.max(e,t),i),s=Math.min(Math.min(e,t),i),o=n-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:n===e?l=(t-i)/o%6:n===t?l=2+(i-e)/o:l=4+(e-t)/o+4,l/=6,l%=1,[l*360,o*100,a*100]};O.hsl.hcg=function(r){var e=r[1]/100,t=r[2]/100,i=1,n=0;return t<.5?i=2*e*t:i=2*e*(1-t),i<1&&(n=(t-.5*i)/(1-i)),[r[0],i*100,n*100]};O.hsv.hcg=function(r){var e=r[1]/100,t=r[2]/100,i=e*t,n=0;return i<1&&(n=(t-i)/(1-i)),[r[0],i*100,n*100]};O.hcg.rgb=function(r){var e=r[0]/360,t=r[1]/100,i=r[2]/100;if(t===0)return[i*255,i*255,i*255];var n=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=a,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=a,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=a}return l=(1-t)*i,[(t*n[0]+l)*255,(t*n[1]+l)*255,(t*n[2]+l)*255]};O.hcg.hsv=function(r){var e=r[1]/100,t=r[2]/100,i=e+t*(1-e),n=0;return i>0&&(n=e/i),[r[0],n*100,i*100]};O.hcg.hsl=function(r){var e=r[1]/100,t=r[2]/100,i=t*(1-e)+.5*e,n=0;return i>0&&i<.5?n=e/(2*i):i>=.5&&i<1&&(n=e/(2*(1-i))),[r[0],n*100,i*100]};O.hcg.hwb=function(r){var e=r[1]/100,t=r[2]/100,i=e+t*(1-e);return[r[0],(i-e)*100,(1-i)*100]};O.hwb.hcg=function(r){var e=r[1]/100,t=r[2]/100,i=1-t,n=i-e,s=0;return n<1&&(s=(i-n)/(1-n)),[r[0],n*100,s*100]};O.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};O.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};O.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};O.gray.hsl=O.gray.hsv=function(r){return[0,0,r[0]]};O.gray.hwb=function(r){return[0,100,r[0]]};O.gray.cmyk=function(r){return[0,0,0,r[0]]};O.gray.lab=function(r){return[r[0],0,0]};O.gray.hex=function(r){var e=Math.round(r[0]/100*255)&255,t=(e<<16)+(e<<8)+e,i=t.toString(16).toUpperCase();return"000000".substring(i.length)+i};O.rgb.gray=function(r){var e=(r[0]+r[1]+r[2])/3;return[e/255*100]}});var og=m((HC,sg)=>{var ws=Xa();function C_(){for(var r={},e=Object.keys(ws),t=e.length,i=0;i<t;i++)r[e[i]]={distance:-1,parent:null};return r}function R_(r){var e=C_(),t=[r];for(e[r].distance=0;t.length;)for(var i=t.pop(),n=Object.keys(ws[i]),s=n.length,o=0;o<s;o++){var a=n[o],l=e[a];l.distance===-1&&(l.distance=e[i].distance+1,l.parent=i,t.unshift(a))}return e}function M_(r,e){return function(t){return e(r(t))}}function A_(r,e){for(var t=[e[r].parent,r],i=ws[e[r].parent][r],n=e[r].parent;e[n].parent;)t.unshift(e[n].parent),i=M_(ws[e[n].parent][n],i),n=e[n].parent;return i.conversion=t,i}sg.exports=function(r){for(var e=R_(r),t={},i=Object.keys(e),n=i.length,s=0;s<n;s++){var o=i[s],a=e[o];a.parent!==null&&(t[o]=A_(o,e))}return t}});var lg=m((VC,ag)=>{var el=Xa(),T_=og(),mr={},L_=Object.keys(el);function q_(r){var e=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function P_(r){var e=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var i=r(t);if(typeof i=="object")for(var n=i.length,s=0;s<n;s++)i[s]=Math.round(i[s]);return i};return"conversion"in r&&(e.conversion=r.conversion),e}L_.forEach(function(r){mr[r]={},Object.defineProperty(mr[r],"channels",{value:el[r].channels}),Object.defineProperty(mr[r],"labels",{value:el[r].labels});var e=T_(r),t=Object.keys(e);t.forEach(function(i){var n=e[i];mr[r][i]=P_(n),mr[r][i].raw=q_(n)})});ag.exports=mr});var fg=m((YC,hg)=>{"use strict";var Ei=Zp(),Se=lg(),il=[].slice,ug=["keyword","gray","hex"],tl={};Object.keys(Se).forEach(function(r){tl[il.call(Se[r].labels).sort().join("")]=r});var vs={};function re(r,e){if(!(this instanceof re))return new re(r,e);if(e&&e in ug&&(e=null),e&&!(e in Se))throw new Error("Unknown model: "+e);var t,i;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof re)this.model=r.model,this.color=r.color.slice(),this.valpha=r.valpha;else if(typeof r=="string"){var n=Ei.get(r);if(n===null)throw new Error("Unable to parse color from string: "+r);this.model=n.model,i=Se[this.model].channels,this.color=n.value.slice(0,i),this.valpha=typeof n.value[i]=="number"?n.value[i]:1}else if(r.length){this.model=e||"rgb",i=Se[this.model].channels;var s=il.call(r,0,i);this.color=rl(s,i),this.valpha=typeof r[i]=="number"?r[i]:1}else if(typeof r=="number")r&=16777215,this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(r);"alpha"in r&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);var a=o.sort().join("");if(!(a in tl))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=tl[a];var l=Se[this.model].labels,u=[];for(t=0;t<l.length;t++)u.push(r[l[t]]);this.color=rl(u)}if(vs[this.model])for(i=Se[this.model].channels,t=0;t<i;t++){var h=vs[this.model][t];h&&(this.color[t]=h(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}re.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(r){var e=this.model in Ei.to?this:this.rgb();e=e.round(typeof r=="number"?r:1);var t=e.valpha===1?e.color:e.color.concat(this.valpha);return Ei.to[e.model](t)},percentString:function(r){var e=this.rgb().round(typeof r=="number"?r:1),t=e.valpha===1?e.color:e.color.concat(this.valpha);return Ei.to.rgb.percent(t)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var r={},e=Se[this.model].channels,t=Se[this.model].labels,i=0;i<e;i++)r[t[i]]=this.color[i];return this.valpha!==1&&(r.alpha=this.valpha),r},unitArray:function(){var r=this.rgb().color;return r[0]/=255,r[1]/=255,r[2]/=255,this.valpha!==1&&r.push(this.valpha),r},unitObject:function(){var r=this.rgb().object();return r.r/=255,r.g/=255,r.b/=255,this.valpha!==1&&(r.alpha=this.valpha),r},round:function(r){return r=Math.max(r||0,0),new re(this.color.map(D_(r)).concat(this.valpha),this.model)},alpha:function(r){return arguments.length?new re(this.color.concat(Math.max(0,Math.min(1,r))),this.model):this.valpha},red:U("rgb",0,H(255)),green:U("rgb",1,H(255)),blue:U("rgb",2,H(255)),hue:U(["hsl","hsv","hsl","hwb","hcg"],0,function(r){return(r%360+360)%360}),saturationl:U("hsl",1,H(100)),lightness:U("hsl",2,H(100)),saturationv:U("hsv",1,H(100)),value:U("hsv",2,H(100)),chroma:U("hcg",1,H(100)),gray:U("hcg",2,H(100)),white:U("hwb",1,H(100)),wblack:U("hwb",2,H(100)),cyan:U("cmyk",0,H(100)),magenta:U("cmyk",1,H(100)),yellow:U("cmyk",2,H(100)),black:U("cmyk",3,H(100)),x:U("xyz",0,H(100)),y:U("xyz",1,H(100)),z:U("xyz",2,H(100)),l:U("lab",0,H(100)),a:U("lab",1),b:U("lab",2),keyword:function(r){return arguments.length?new re(r):Se[this.model].keyword(this.color)},hex:function(r){return arguments.length?new re(r):Ei.to.hex(this.rgb().round().color)},rgbNumber:function(){var r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity:function(){for(var r=this.rgb().color,e=[],t=0;t<r.length;t++){var i=r[t]/255;e[t]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(r){var e=this.luminosity(),t=r.luminosity();return e>t?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(r){var e=this.contrast(r);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var r=this.rgb().color,e=(r[0]*299+r[1]*587+r[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),e=0;e<3;e++)r.color[e]=255-r.color[e];return r},lighten:function(r){var e=this.hsl();return e.color[2]+=e.color[2]*r,e},darken:function(r){var e=this.hsl();return e.color[2]-=e.color[2]*r,e},saturate:function(r){var e=this.hsl();return e.color[1]+=e.color[1]*r,e},desaturate:function(r){var e=this.hsl();return e.color[1]-=e.color[1]*r,e},whiten:function(r){var e=this.hwb();return e.color[1]+=e.color[1]*r,e},blacken:function(r){var e=this.hwb();return e.color[2]+=e.color[2]*r,e},grayscale:function(){var r=this.rgb().color,e=r[0]*.3+r[1]*.59+r[2]*.11;return re.rgb(e,e,e)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var e=this.hsl(),t=e.color[0];return t=(t+r)%360,t=t<0?360+t:t,e.color[0]=t,e},mix:function(r,e){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);var t=r.rgb(),i=this.rgb(),n=e===void 0?.5:e,s=2*n-1,o=t.alpha()-i.alpha(),a=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,l=1-a;return re.rgb(a*t.red()+l*i.red(),a*t.green()+l*i.green(),a*t.blue()+l*i.blue(),t.alpha()*n+i.alpha()*(1-n))}};Object.keys(Se).forEach(function(r){if(ug.indexOf(r)===-1){var e=Se[r].channels;re.prototype[r]=function(){if(this.model===r)return new re(this);if(arguments.length)return new re(arguments,r);var t=typeof arguments[e]=="number"?e:this.valpha;return new re(k_(Se[this.model][r].raw(this.color)).concat(t),r)},re[r]=function(t){return typeof t=="number"&&(t=rl(il.call(arguments),e)),new re(t,r)}}});function N_(r,e){return Number(r.toFixed(e))}function D_(r){return function(e){return N_(e,r)}}function U(r,e,t){return r=Array.isArray(r)?r:[r],r.forEach(function(i){(vs[i]||(vs[i]=[]))[e]=t}),r=r[0],function(i){var n;return arguments.length?(t&&(i=t(i)),n=this[r](),n.color[e]=i,n):(n=this[r]().color[e],t&&(n=t(n)),n)}}function H(r){return function(e){return Math.max(0,Math.min(r,e))}}function k_(r){return Array.isArray(r)?r:[r]}function rl(r,e){for(var t=0;t<e;t++)typeof r[t]!="number"&&(r[t]=0);return r}hg.exports=re});var dg=m((KC,cg)=>{"use strict";cg.exports=function(e){for(var t=0,i=0;t<e.length;i=e.charCodeAt(t++)+((i<<5)-i));var n=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-n.length+1).join("0")+n}});var yg=m((JC,mg)=>{"use strict";var pg=fg(),gg=dg();mg.exports=function(e,t){var i=e.split(t||":"),n=gg(i[0]);if(!i.length)return n;for(var s=0,o=i.length-1;s<o;s++)n=pg(n).mix(pg(gg(i[s+1]))).saturate(1).hex();return n}});var vg=m((QC,wg)=>{"use strict";function ke(r,e){if(e)return new ke(r).style(e);if(!(this instanceof ke))return new ke(r);this.text=r}ke.prototype.prefix="\x1B[";ke.prototype.suffix="m";ke.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var t=e.substring(0,2),i=e.substring(2,4),n=e.substring(4,6);return[parseInt(t,16),parseInt(i,16),parseInt(n,16)]};ke.prototype.rgb=function(e,t,i){var n=e/255*5,s=t/255*5,o=i/255*5;return this.ansi(n,s,o)};ke.prototype.ansi=function(e,t,i){var n=Math.round(e),s=Math.round(t),o=Math.round(i);return 16+n*36+s*6+o};ke.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ke.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};wg.exports=ke});var Sg=m((ZC,bg)=>{var I_=yg(),F_=vg();bg.exports=function(e,t){var i=t.namespace,n=t.colors!==!1?F_(i+":",I_(i)):i+":";return e[0]=n+" "+e[0],e}});var xg=m((XC,_g)=>{"use strict";_g.exports=function(e,t){if(!t)return!1;for(var i=t.split(/[\s,]+/),n=0;n<i.length;n++){if(t=i[n].replace("*",".*?"),t.charAt(0)==="-"){if(new RegExp("^"+t.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+t+"$").test(e))return!0}return!1}});var Og=m((eR,Eg)=>{var j_=xg();Eg.exports=function(e){return function(i){try{return j_(i,e())}catch{}return!1}}});var Rg=m((tR,Cg)=>{var $_=Og();Cg.exports=$_(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Ag=m((rR,Mg)=>{Mg.exports=function(r,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Lg=m((iR,Tg)=>{var B_=Za(),U_=require("tty").isatty(1),bs=B_(function r(e,t){return t=t||{},t.colors="colors"in t?t.colors:U_,t.namespace=e,t.prod=!1,t.dev=!0,!r.enabled(e)&&!(t.force||r.force)?r.nope(t):r.yep(t)});bs.modify(Sg());bs.use(Rg());bs.set(Ag());Tg.exports=bs});var Oi=m((nR,nl)=>{process.env.NODE_ENV==="production"?nl.exports=Bp():nl.exports=Lg()});var Pg=m((sR,qg)=>{"use strict";var sl=require("fs"),{StringDecoder:z_}=require("string_decoder"),{Stream:W_}=qt();function G_(){}qg.exports=(r,e)=>{let t=Buffer.alloc(65536),i=new z_("utf8"),n=new W_,s="",o=0,a=0;return r.start===-1&&delete r.start,n.readable=!0,n.destroy=()=>{n.destroyed=!0,n.emit("end"),n.emit("close")},sl.open(r.file,"a+","0644",(l,u)=>{if(l){e?e(l):n.emit("error",l),n.destroy();return}(function h(){if(n.destroyed){sl.close(u,G_);return}return sl.read(u,t,0,t.length,o,(f,c)=>{if(f){e?e(f):n.emit("error",f),n.destroy();return}if(!c)return s&&((r.start==null||a>r.start)&&(e?e(null,s):n.emit("line",s)),a++,s=""),setTimeout(h,1e3);let p=i.write(t.slice(0,c));e||n.emit("data",p),p=(s+p).split(/\n+/);let d=p.length-1,g=0;for(;g<d;g++)(r.start==null||a>r.start)&&(e?e(null,p[g]):n.emit("line",p[g])),a++;return s=p[d],o+=c,h()})})()}),e?n.destroy:n}});var Ig=m((aR,kg)=>{"use strict";var pe=require("fs"),Q=require("path"),Ng=Rp(),H_=require("zlib"),{MESSAGE:V_}=G(),{Stream:Y_,PassThrough:Dg}=qt(),K_=cr(),Ie=Oi()("winston:file"),J_=require("os"),Q_=Pg();kg.exports=class extends K_{constructor(e={}){super(e),this.name=e.name||"file";function t(i,...n){n.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${i} together`)})}if(this._stream=new Dg,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?Q.basename(e.filename):"winston.log",this.dirname=e.dirname||Q.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=Q.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:J_.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,t=()=>{}){if(this.silent)return t(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,t)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,t)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,t)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,t)})});return}}let i=`${e[V_]}${this.eol}`,n=Buffer.byteLength(i);function s(){if(this._size+=n,this._pendingSize-=n,Ie("logged %s %s",this._size,i),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+=n,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(i,s.bind(this));return o?t():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,t()})),Ie("written",o,this._drain),this.finishIfEnding(),o}query(e,t){typeof e=="function"&&(t=e,e={}),e=f(e);let i=Q.join(this.dirname,this.filename),n="",s=[],o=0,a=pe.createReadStream(i,{encoding:"utf8"});a.on("error",c=>{if(a.readable&&a.destroy(),!!t)return c.code!=="ENOENT"?t(c):t(null,s)}),a.on("data",c=>{c=(n+c).split(/\n+/);let p=c.length-1,d=0;for(;d<p;d++)(!e.start||o>=e.start)&&l(c[d]),o++;n=c[p]}),a.on("close",()=>{n&&l(n,!0),e.order==="desc"&&(s=s.reverse()),t&&t(null,s)});function l(c,p){try{let d=JSON.parse(c);h(d)&&u(d)}catch(d){p||a.emit("error",d)}}function u(c){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){a.readable&&a.destroy();return}e.fields&&(c=e.fields.reduce((p,d)=>(p[d]=c[d],p),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(c)}function h(c){if(!c||typeof c!="object")return;let p=new Date(c.timestamp);if(!(e.from&&p<e.from||e.until&&p>e.until||e.level&&e.level!==c.level))return!0}function f(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-24*60*60*1e3,typeof c.from!="object"&&(c.from=new Date(c.from)),c.order=c.order||"desc",c}}stream(e={}){let t=Q.join(this.dirname,this.filename),i=new Y_,n={file:t,start:e.start};return i.destroy=Q_(n,(s,o)=>{if(s)return i.emit("error",s);try{i.emit("data",o),o=JSON.parse(o),i.emit("log",o)}catch(a){i.emit("error",a)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,t)=>{if(e)return this.emit("error",e);Ie("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let t=this._getFile(),i=Q.join(this.dirname,t);pe.stat(i,(n,s)=>{if(n&&n.code==="ENOENT")return Ie("ENOENT\xA0ok",i),this.filename=t,e(null,0);if(n)return Ie(`err ${n.code} ${i}`),e(n);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=t,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 t=Q.join(this.dirname,this.filename);Ie("create stream start",t,this.options);let i=pe.createWriteStream(t,this.options).on("error",n=>Ie(n)).on("close",()=>Ie("close",i.path,i.bytesWritten)).on("open",()=>{Ie("file open ok",t),this.emit("open",t),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new Dg,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return Ie("create stream ok",t),i}_incFile(e){Ie("_incFile",this.filename);let t=Q.extname(this._basename),i=Q.basename(this._basename,t),n=[];this.zippedArchive&&n.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(Q.join(this.dirname,`${i}${o}${t}`),Q.join(this.dirname,`${i}${o}${t}.gz`),s)}.bind(this)),n.push(function(s){this.tailable?this._checkMaxFilesTailable(t,i,s):(this._created+=1,this._checkMaxFilesIncrementing(t,i,s))}.bind(this)),Ng(n,e)}_getFile(){let e=Q.extname(this._basename),t=Q.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${t}${i}${e}`:`${t}${e}`}_checkMaxFilesIncrementing(e,t,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let n=this._created-this.maxFiles,s=n!==0?n:"",o=this.zippedArchive?".gz":"",a=`${t}${s}${e}${o}`,l=Q.join(this.dirname,a);pe.unlink(l,i)}_checkMaxFilesTailable(e,t,i){let n=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)n.push(function(a,l){let u=`${t}${a-1}${e}${s}`,h=Q.join(this.dirname,u);pe.exists(h,f=>{if(!f)return l(null);u=`${t}${a}${e}${s}`,pe.rename(h,Q.join(this.dirname,u),l)})}.bind(this,o));Ng(n,()=>{pe.rename(Q.join(this.dirname,`${t}${e}${s}`),Q.join(this.dirname,`${t}1${e}${s}`),i)})}_compressFile(e,t,i){pe.access(e,pe.F_OK,n=>{if(n)return i();var s=H_.createGzip(),o=pe.createReadStream(e),a=pe.createWriteStream(t);a.on("finish",()=>{pe.unlink(e,i)}),o.pipe(s).pipe(a)})}_createLogDirIfNotExist(e){pe.existsSync(e)||pe.mkdirSync(e,{recursive:!0})}}});var jg=m((uR,Fg)=>{"use strict";var Z_=require("http"),X_=require("https"),{Stream:ex}=qt(),tx=cr(),{configure:rx}=oi();Fg.exports=class extends tx{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,null,null,(i,n)=>{n&&n.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${n.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),t&&setImmediate(t)}query(e,t){typeof e=="function"&&(t=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let n=e.params.path||null;delete e.params.path,this._request(e,i,n,(s,o,a)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return t(s);if(typeof a=="string")try{a=JSON.parse(a)}catch(l){return t(l)}t(null,a)})}stream(e={}){let t=new ex;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let n=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,n,i);return t.destroy=()=>o.destroy(),o.on("data",a=>{a=(s+a).split(/\n+/);let l=a.length-1,u=0;for(;u<l;u++)try{t.emit("log",JSON.parse(a[u]))}catch(h){t.emit("error",h)}s=a[l]}),o.on("error",a=>t.emit("error",a)),t}_request(e,t,i,n){e=e||{},t=t||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,n,t,i):this._doRequest(e,n,t,i)}_doBatch(e,t,i,n){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=t,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,i,n)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,n)}_doBatchRequest(e,t,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let n=this.batchOptions.slice();this.batchOptions=[],this._doRequest(n,e,t,i)}_doRequest(e,t,i,n){let s=Object.assign({},this.headers);i&&i.bearer&&(s.Authorization=`Bearer ${i.bearer}`);let o=(this.ssl?X_:Z_).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${n.replace(/^\//,"")}`,headers:s,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});o.on("error",t),o.on("response",l=>l.on("end",()=>t(null,l)).resume());let a=rx({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(a(e,this.options.replacer),"utf8"))}}});var ol=m((hR,$g)=>{"use strict";var Ge=r=>r!==null&&typeof r=="object"&&typeof r.pipe=="function";Ge.writable=r=>Ge(r)&&r.writable!==!1&&typeof r._write=="function"&&typeof r._writableState=="object";Ge.readable=r=>Ge(r)&&r.readable!==!1&&typeof r._read=="function"&&typeof r._readableState=="object";Ge.duplex=r=>Ge.writable(r)&&Ge.readable(r);Ge.transform=r=>Ge.duplex(r)&&typeof r._transform=="function";$g.exports=Ge});var Ug=m((cR,Bg)=>{"use strict";var ix=ol(),{MESSAGE:nx}=G(),sx=require("os"),ox=cr();Bg.exports=class extends ox{constructor(e={}){if(super(e),!e.stream||!ix(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:sx.EOL}log(e,t){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),t&&t();return}this._stream.write(`${e[nx]}${this.eol}`),t&&t()}}});var zg=m(Ci=>{"use strict";Object.defineProperty(Ci,"Console",{configurable:!0,enumerable:!0,get(){return Gd()}});Object.defineProperty(Ci,"File",{configurable:!0,enumerable:!0,get(){return Ig()}});Object.defineProperty(Ci,"Http",{configurable:!0,enumerable:!0,get(){return jg()}});Object.defineProperty(Ci,"Stream",{configurable:!0,enumerable:!0,get(){return Ug()}})});var _s=m(Ri=>{"use strict";var Ss=oa(),{configs:al}=G();Ri.cli=Ss.levels(al.cli);Ri.npm=Ss.levels(al.npm);Ri.syslog=Ss.levels(al.syslog);Ri.addColors=Ss.levels});var Gg=m((xs,Wg)=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});var ax=Qn(),lx=Nt(ax),ux=as(),hx=Nt(ux),fx=za(),cx=Nt(fx),dx=$a(),px=Nt(dx),gx=Ba(),mx=Nt(gx),yx=Lt(),wx=Nt(yx),vx=pr(),bx=Nt(vx);function Nt(r){return r&&r.__esModule?r:{default:r}}function Sx(r,e,t){t=(0,px.default)(t);var i=0,n=0,{length:s}=r,o=!1;s===0&&t(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?t(l):(++n===s||u===hx.default)&&t(null))}for(;i<s;i++)e(r[i],i,(0,mx.default)(a))}function _x(r,e,t){return(0,cx.default)(r,1/0,e,t)}function xx(r,e,t){var i=(0,lx.default)(r)?Sx:_x;return i(r,(0,wx.default)(e),t)}xs.default=(0,bx.default)(xx,3);Wg.exports=xs.default});var Vg=m((Es,Hg)=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.default=Ex;function Ex(r){return(e,t,i)=>r(e,i)}Hg.exports=Es.default});var Rs=m((Cs,Yg)=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var Ox=Gg(),Cx=Os(Ox),Rx=Vg(),Mx=Os(Rx),Ax=Lt(),Tx=Os(Ax),Lx=pr(),qx=Os(Lx);function Os(r){return r&&r.__esModule?r:{default:r}}function Px(r,e,t){return(0,Cx.default)(r,(0,Mx.default)((0,Tx.default)(e)),t)}Cs.default=(0,qx.default)(Px,3);Yg.exports=Cs.default});var Jg=m((gR,Kg)=>{"use strict";var Nx=Object.prototype.toString;Kg.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var t=e.toString(),i=Nx.call(e).slice(8,-1);return i==="Function"?t=t.substring(t.indexOf("(")+1,t.indexOf(")")):t=i,t||"anonymous"}});var ll=m((mR,Qg)=>{"use strict";var Dx=Jg();Qg.exports=function(e){var t=0,i;function n(){return t||(t=1,i=e.apply(this,arguments),e=null),i}return n.displayName=Dx(e),n}});var ul=m(Ai=>{Ai.get=function(r){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var t={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(t,r||Ai.get);var n=t.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,n};Ai.parse=function(r){if(!r.stack)return[];var e=this,t=r.stack.split(`
|
58
|
+
`).slice(1);return t.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var n=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(n){var s=null,o=null,a=null,l=null,u=null,h=n[5]==="native";if(n[1]){a=n[1];var f=a.lastIndexOf(".");if(a[f-1]=="."&&f--,f>0){s=a.substr(0,f),o=a.substr(f+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 p={fileName:n[2]||null,lineNumber:parseInt(n[3],10)||null,functionName:a,typeName:l,methodName:u,columnNumber:parseInt(n[4],10)||null,native:h};return e._createParsedCallSite(p)}}).filter(function(i){return!!i})};function Mi(r){for(var e in r)this[e]=r[e]}var kx=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],Ix=["topLevel","eval","native","constructor"];kx.forEach(function(r){Mi.prototype[r]=null,Mi.prototype["get"+r[0].toUpperCase()+r.substr(1)]=function(){return this[r]}});Ix.forEach(function(r){Mi.prototype[r]=!1,Mi.prototype["is"+r[0].toUpperCase()+r.substr(1)]=function(){return this[r]}});Ai._createParsedCallSite=function(r){return new Mi(r)}});var Xg=m((vR,Zg)=>{"use strict";var{Writable:Fx}=qt();Zg.exports=class extends Fx{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,i){return e.exception?this.transport.log(e,i):(i(),!0)}}});var fl=m((SR,rm)=>{"use strict";var em=require("os"),jx=Rs(),hl=Oi()("winston:exception"),$x=ll(),tm=ul(),Bx=Xg();rm.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(t=>{if(Array.isArray(t))return t.forEach(i=>this._addHandler(i));this._addHandler(t)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let t=null;return e&&(t=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
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:em.loadavg(),uptime:em.uptime()}}getTrace(e){return(e?tm.parse(e):tm.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let t=new Bx(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){let t=this.getAllInfo(e),i=this._getExceptionHandlers(),n=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!i.length&&n&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),n=!1);function o(){hl("doExit",n),hl("process._exiting",process._exiting),n&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);jx(i,(a,l)=>{let u=$x(l),h=a.transport||a;function f(c){return()=>{hl(c),u()}}h._ending=!0,h.once("finish",f("finished")),h.once("error",f("error"))},()=>n&&o()),this.logger.log(t),n&&(s=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var nm=m((xR,im)=>{"use strict";var{Writable:Ux}=qt();im.exports=class extends Ux{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,t,i){return e.rejection?this.transport.log(e,i):(i(),!0)}}});var dl=m((OR,am)=>{"use strict";var sm=require("os"),zx=Rs(),cl=Oi()("winston:rejection"),Wx=ll(),om=ul(),Gx=nm();am.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(t=>{if(Array.isArray(t))return t.forEach(i=>this._addHandler(i));this._addHandler(t)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let t=null;return e&&(t=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
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:sm.loadavg(),uptime:sm.uptime()}}getTrace(e){return(e?om.parse(e):om.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let t=new Gx(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){let t=this.getAllInfo(e),i=this._getRejectionHandlers(),n=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,s;!i.length&&n&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),n=!1);function o(){cl("doExit",n),cl("process._exiting",process._exiting),n&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);zx(i,(a,l)=>{let u=Wx(l),h=a.transport||a;function f(c){return()=>{cl(c),u()}}h._ending=!0,h.once("finish",f("finished")),h.once("error",f("error"))},()=>n&&o()),this.logger.log(t),n&&(s=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var um=m((CR,lm)=>{"use strict";var pl=class{constructor(e){let t=Ms();if(typeof e!="object"||Array.isArray(e)||!(e instanceof t))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let t=typeof e[e.length-1]=="object"?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}};lm.exports=pl});var Ms=m((RR,dm)=>{"use strict";var{Stream:Hx,Transform:Vx}=qt(),hm=Rs(),{LEVEL:He,SPLAT:fm}=G(),cm=ol(),Yx=fl(),Kx=dl(),Jx=Ia(),Qx=um(),{warn:Zx}=aa(),Xx=_s(),e2=/%[scdjifoO%]/g,As=class extends Vx{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let t=this;return Object.create(t,{write:{value:function(i){let n=Object.assign({},e,i);i instanceof Error&&(n.stack=i.stack,n.message=i.message),t.write(n)}}})}configure({silent:e,format:t,defaultMeta:i,levels:n,level:s="info",exitOnError:o=!0,transports:a,colors:l,emitErrs:u,formatters:h,padLevels:f,rewriters:c,stripColors:p,exceptionHandlers:d,rejectionHandlers:g}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||ta()(),this.defaultMeta=i||null,this.levels=n||this.levels||Xx.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new Yx(this),this.rejections=new Kx(this),this.profilers={},this.exitOnError=o,a&&(a=Array.isArray(a)?a:[a],a.forEach(y=>this.add(y))),l||u||h||f||c||p)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(`
|
61
|
+
`));d&&this.exceptions.handle(d),g&&this.rejections.handle(g)}isLevelEnabled(e){let t=gl(this.levels,e);if(t===null)return!1;let i=gl(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=t:this.transports.findIndex(s=>{let o=gl(this.levels,s.level);return o===null&&(o=i),o>=t})!==-1}log(e,t,...i){if(arguments.length===1)return e[He]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return t&&typeof t=="object"?(t[He]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(t={[He]:e,level:e,message:t},this._addDefaultMeta(t),this.write(t),this);let[n]=i;if(typeof n=="object"&&n!==null&&!(t&&t.match&&t.match(e2))){let o=Object.assign({},this.defaultMeta,n,{[He]:e,[fm]:i,level:e,message:t});return n.message&&(o.message=`${o.message} ${n.message}`),n.stack&&(o.stack=n.stack),n.cause&&(o.cause=n.cause),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[He]:e,[fm]:i,level:e,message:t})),this}_transform(e,t,i){if(this.silent)return i();e[He]||(e[He]=e.level),!this.levels[e[He]]&&this.levels[e[He]]!==0&&console.error("[winston] Unknown logger level: %s",e[He]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,i()}}_final(e){let t=this.transports.slice();hm(t,(i,n)=>{if(!i||i.finished)return setImmediate(n);i.once("finish",n),i.end()},e)}add(e){let t=!cm(e)||e.log.length>2?new Jx({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!cm(e)||e.log.length>2)&&(t=this.transports.filter(i=>i.transport===e)[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){Zx.deprecated("setLevels")}query(e,t){typeof e=="function"&&(t=e,e={}),e=e||{};let i={},n=Object.assign({},e.query||{});function s(a,l){e.query&&typeof a.formatQuery=="function"&&(e.query=a.formatQuery(n)),a.query(e,(u,h)=>{if(u)return l(u);typeof a.formatResults=="function"&&(h=a.formatResults(h,e.format)),l(null,h)})}function o(a,l){s(a,(u,h)=>{l&&(h=u||h,h&&(i[a.name]=h),l()),l=null})}hm(this.transports.filter(a=>!!a.query),o,()=>t(null,i))}stream(e={}){let t=new Hx,i=[];return t._streams=i,t.destroy=()=>{let n=i.length;for(;n--;)i[n].destroy()},this.transports.filter(n=>!!n.stream).forEach(n=>{let s=n.stream(e);s&&(i.push(s),s.on("log",o=>{o.transport=o.transport||[],o.transport.push(n.name),t.emit("log",o)}),s.on("error",o=>{o.transport=o.transport||[],o.transport.push(n.name),t.emit("error",o)}))}),t}startTimer(){return new Qx(this)}profile(e,...t){let i=Date.now();if(this.profilers[e]){let n=this.profilers[e];delete this.profilers[e],typeof t[t.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());let s=typeof t[t.length-1]=="object"?t.pop():{};return s.level=s.level||"info",s.durationMs=i-n,s.message=s.message||e,this.write(s)}return this.profilers[e]=i,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(`
|
62
|
+
`))}_onEvent(e,t){function i(n){e==="error"&&!this.transports.includes(t)&&this.add(t),this.emit(e,n,t)}t["__winston"+e]||(t["__winston"+e]=i.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function gl(r,e){let t=r[e];return!t&&t!==0?null:t}Object.defineProperty(As.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:r}=this._readableState;return Array.isArray(r)?r:[r].filter(Boolean)}});dm.exports=As});var ml=m((MR,pm)=>{"use strict";var{LEVEL:t2}=G(),r2=_s(),i2=Ms(),n2=Oi()("winston:create-logger");function s2(r){return"is"+r.charAt(0).toUpperCase()+r.slice(1)+"Enabled"}pm.exports=function(r={}){r.levels=r.levels||r2.npm.levels;class e extends i2{constructor(n){super(n)}}let t=new e(r);return Object.keys(r.levels).forEach(function(i){if(n2('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...n){let s=this||t;if(n.length===1){let[o]=n,a=o&&o.message&&o||{message:o};return a.level=a[t2]=i,s._addDefaultMeta(a),s.write(a),this||t}return n.length===0?(s.log(i,""),s):s.log(i,...n)},e.prototype[s2(i)]=function(){return(this||t).isLevelEnabled(i)}}),t}});var mm=m((TR,gm)=>{"use strict";var o2=ml();gm.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){t=Object.assign({},t||this.options);let i=t.transports||this.options.transports;i?t.transports=Array.isArray(i)?i.slice():[i]:t.transports=[];let n=o2(t);n.on("close",()=>this._delete(e)),this.loggers.set(e,n)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((t,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var wm=m(k=>{"use strict";var ym=oa(),{warn:Ti}=aa();k.version=zc().version;k.transports=zg();k.config=_s();k.addColors=ym.levels;k.format=ym.format;k.createLogger=ml();k.Logger=Ms();k.ExceptionHandler=fl();k.RejectionHandler=dl();k.Container=mm();k.Transport=cr();k.loggers=new k.Container;var Ve=k.createLogger();Object.keys(k.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(r=>k[r]=(...e)=>Ve[r](...e));Object.defineProperty(k,"level",{get(){return Ve.level},set(r){Ve.level=r}});Object.defineProperty(k,"exceptions",{get(){return Ve.exceptions}});Object.defineProperty(k,"rejections",{get(){return Ve.rejections}});["exitOnError"].forEach(r=>{Object.defineProperty(k,r,{get(){return Ve[r]},set(e){Ve[r]=e}})});Object.defineProperty(k,"default",{get(){return{exceptionHandlers:Ve.exceptionHandlers,rejectionHandlers:Ve.rejectionHandlers,transports:Ve.transports}}});Ti.deprecated(k,"setLevels");Ti.forFunctions(k,"useFormat",["cli"]);Ti.forProperties(k,"useFormat",["padLevels","stripColors"]);Ti.forFunctions(k,"deprecated",["addRewriter","addFilter","clone","extend"]);Ti.forProperties(k,"deprecated",["emitErrs","levelLength"])});var c2={};Tm(c2,{default:()=>f2,processCssFiles:()=>h2});module.exports=Lm(c2);var F=vr(vh(),1),yo=F.default,tE=F.default.stringify,rE=F.default.fromJSON,iE=F.default.plugin,nE=F.default.parse,sE=F.default.list,oE=F.default.document,aE=F.default.comment,lE=F.default.atRule,uE=F.default.rule,hE=F.default.decl,fE=F.default.root,cE=F.default.CssSyntaxError,dE=F.default.Declaration,pE=F.default.Container,gE=F.default.Processor,mE=F.default.Document,yE=F.default.Comment,wE=F.default.Warning,vE=F.default.AtRule,bE=F.default.Result,SE=F.default.Input,_E=F.default.Rule,xE=F.default.Root,EE=F.default.Node;var bh=[{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 Ts=require("node:fs"),vm=require("node:path");var Bh=vr(Ph(),1);var zr=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var Iy={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Wr=r=>r.replace(/[[\]\\-]/g,"\\$&"),Fy=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Nh=r=>r.join(""),Dh=(r,e)=>{let t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=t+1,o=!1,a=!1,l=!1,u=!1,h=t,f="";e:for(;s<r.length;){let g=r.charAt(s);if((g==="!"||g==="^")&&s===t+1){u=!0,s++;continue}if(g==="]"&&o&&!l){h=s+1;break}if(o=!0,g==="\\"&&!l){l=!0,s++;continue}if(g==="["&&!l){for(let[y,[w,S,b]]of Object.entries(Iy))if(r.startsWith(y,s)){if(f)return["$.",!1,r.length-t,!0];s+=y.length,b?n.push(w):i.push(w),a=a||S;continue e}}if(l=!1,f){g>f?i.push(Wr(f)+"-"+Wr(g)):g===f&&i.push(Wr(g)),f="",s++;continue}if(r.startsWith("-]",s+1)){i.push(Wr(g+"-")),s+=2;continue}if(r.startsWith("-",s+1)){f=g,s+=2;continue}i.push(Wr(g)),s++}if(h<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,r.length-t,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let g=i[0].length===2?i[0].slice(-1):i[0];return[Fy(g),!1,h-t,!1]}let c="["+(u?"^":"")+Nh(i)+"]",p="["+(u?"":"^")+Nh(n)+"]";return[i.length&&n.length?"("+c+"|"+p+")":i.length?c:p,a,h-t,!0]};var Le=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var jy=new Set(["!","?","+","*","@"]),kh=r=>jy.has(r),$y="(?!(?:^|/)\\.\\.?(?:$|/))",nn="(?!\\.)",By=new Set(["[","."]),Uy=new Set(["..","."]),zy=new Set("().*{}+?[]^$\\!"),Wy=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),bo="[^/]",Ih=bo+"*?",Fh=bo+"+?",Ht=class r{type;#e;#t;#s=!1;#i=[];#o;#b;#u;#f=!1;#a;#l;#n=!1;constructor(e,t,i={}){this.type=e,e&&(this.#t=!0),this.#o=t,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?i:this.#e.#a,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#f&&this.#u.push(this),this.#b=this.#o?this.#o.#i.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#i)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l!==void 0?this.#l:this.type?this.#l=this.type+"("+this.#i.map(e=>String(e)).join("|")+")":this.#l=this.#i.map(e=>String(e)).join("")}#m(){if(this!==this.#e)throw new Error("should only call on root");if(this.#f)return this;this.toString(),this.#f=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let t=e,i=t.#o;for(;i;){for(let n=t.#b+1;!i.type&&n<i.#i.length;n++)for(let s of e.#i){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#i[n])}t=i,i=t.#o}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof r&&t.#o===this))throw new Error("invalid part: "+t);this.#i.push(t)}}toJSON(){var t;let e=this.type===null?this.#i.slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...this.#i.map(i=>i.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#f&&((t=this.#o)==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(this.#e===this)return!0;if(!((t=this.#o)!=null&&t.isStart()))return!1;if(this.#b===0)return!0;let e=this.#o;for(let i=0;i<this.#b;i++){let n=e.#i[i];if(!(n instanceof r&&n.type==="!"))return!1}return!0}isEnd(){var t,i,n;if(this.#e===this||((t=this.#o)==null?void 0:t.type)==="!")return!0;if(!((i=this.#o)!=null&&i.isEnd()))return!1;if(!this.type)return(n=this.#o)==null?void 0:n.isEnd();let e=this.#o?this.#o.#i.length:0;return this.#b===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new r(this.type,e);for(let i of this.#i)t.copyIn(i);return t}static#y(e,t,i,n){let s=!1,o=!1,a=-1,l=!1;if(t.type===null){let p=i,d="";for(;p<e.length;){let g=e.charAt(p++);if(s||g==="\\"){s=!s,d+=g;continue}if(o){p===a+1?(g==="^"||g==="!")&&(l=!0):g==="]"&&!(p===a+2&&l)&&(o=!1),d+=g;continue}else if(g==="["){o=!0,a=p,l=!1,d+=g;continue}if(!n.noext&&kh(g)&&e.charAt(p)==="("){t.push(d),d="";let y=new r(g,t);p=r.#y(e,y,p,n),t.push(y);continue}d+=g}return t.push(d),p}let u=i+1,h=new r(null,t),f=[],c="";for(;u<e.length;){let p=e.charAt(u++);if(s||p==="\\"){s=!s,c+=p;continue}if(o){u===a+1?(p==="^"||p==="!")&&(l=!0):p==="]"&&!(u===a+2&&l)&&(o=!1),c+=p;continue}else if(p==="["){o=!0,a=u,l=!1,c+=p;continue}if(kh(p)&&e.charAt(u)==="("){h.push(c),c="";let d=new r(p,h);h.push(d),u=r.#y(e,d,u,n);continue}if(p==="|"){h.push(c),c="",f.push(h),h=new r(null,t);continue}if(p===")")return c===""&&t.#i.length===0&&(t.#n=!0),h.push(c),c="",t.push(...f,h),u;c+=p}return t.type=null,t.#t=void 0,t.#i=[e.substring(i-1)],u}static fromGlob(e,t={}){let i=new r(null,void 0,t);return r.#y(e,i,0,t),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,i,n,s]=this.toRegExpSource();if(!(n||this.#t||this.#a.nocase&&!this.#a.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#a}toRegExpSource(e){var l;let t=e??!!this.#a.dot;if(this.#e===this&&this.#m(),!this.type){let u=this.isStart()&&this.isEnd(),h=this.#i.map(d=>{let[g,y,w,S]=typeof d=="string"?r.#c(d,this.#t,u):d.toRegExpSource(e);return this.#t=this.#t||w,this.#s=this.#s||S,g}).join(""),f="";if(this.isStart()&&typeof this.#i[0]=="string"&&!(this.#i.length===1&&Uy.has(this.#i[0]))){let g=By,y=t&&g.has(h.charAt(0))||h.startsWith("\\.")&&g.has(h.charAt(2))||h.startsWith("\\.\\.")&&g.has(h.charAt(4)),w=!t&&!e&&g.has(h.charAt(0));f=y?$y:w?nn:""}let c="";return this.isEnd()&&this.#e.#f&&((l=this.#o)==null?void 0:l.type)==="!"&&(c="(?:$|\\/)"),[f+h+c,Le(h),this.#t=!!this.#t,this.#s]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#d(t);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let u=this.toString();return this.#i=[u],this.type=null,this.#t=void 0,[u,Le(this.toString()),!1,!1]}let o=!i||e||t||!nn?"":this.#d(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#n)a=(this.isStart()&&!t?nn:"")+Fh;else{let u=this.type==="!"?"))"+(this.isStart()&&!t&&!e?nn:"")+Ih+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+u}return[a,Le(s),this.#t=!!this.#t,this.#s]}#d(e){return this.#i.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=t.toRegExpSource(e);return this.#s=this.#s||o,i}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#c(e,t,i=!1){let n=!1,s="",o=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(n){n=!1,s+=(zy.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?s+="\\\\":n=!0;continue}if(l==="["){let[u,h,f,c]=Dh(e,a);if(f){s+=u,o=o||h,a+=f-1,t=t||c;continue}}if(l==="*"){i&&e==="*"?s+=Fh:s+=Ih,t=!0;continue}if(l==="?"){s+=bo,t=!0;continue}s+=Wy(l)}return[s,Le(e),!!t,o]}};var Vt=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var le=(r,e,t={})=>(zr(e),!t.nocomment&&e.charAt(0)==="#"?!1:new we(e,t).match(r)),Gy=/^\*+([^+@!?\*\[\(]*)$/,Hy=r=>e=>!e.startsWith(".")&&e.endsWith(r),Vy=r=>e=>e.endsWith(r),Yy=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),Ky=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),Jy=/^\*+\.\*+$/,Qy=r=>!r.startsWith(".")&&r.includes("."),Zy=r=>r!=="."&&r!==".."&&r.includes("."),Xy=/^\.\*+$/,ew=r=>r!=="."&&r!==".."&&r.startsWith("."),tw=/^\*+$/,rw=r=>r.length!==0&&!r.startsWith("."),iw=r=>r.length!==0&&r!=="."&&r!=="..",nw=/^\?+([^+@!?\*\[\(]*)?$/,sw=([r,e=""])=>{let t=Uh([r]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},ow=([r,e=""])=>{let t=zh([r]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},aw=([r,e=""])=>{let t=zh([r]);return e?i=>t(i)&&i.endsWith(e):t},lw=([r,e=""])=>{let t=Uh([r]);return e?i=>t(i)&&i.endsWith(e):t},Uh=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},zh=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},Wh=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",jh={win32:{sep:"\\"},posix:{sep:"/"}},uw=Wh==="win32"?jh.win32.sep:jh.posix.sep;le.sep=uw;var ee=Symbol("globstar **");le.GLOBSTAR=ee;var hw="[^/]",fw=hw+"*?",cw="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",dw="(?:(?!(?:\\/|^)\\.).)*?",pw=(r,e={})=>t=>le(t,r,e);le.filter=pw;var xe=(r,e={})=>Object.assign({},r,e),gw=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return le;let e=le;return Object.assign((i,n,s={})=>e(i,n,xe(r,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,xe(r,s))}static defaults(n){return e.defaults(xe(r,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,xe(r,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,xe(r,s))}},unescape:(i,n={})=>e.unescape(i,xe(r,n)),escape:(i,n={})=>e.escape(i,xe(r,n)),filter:(i,n={})=>e.filter(i,xe(r,n)),defaults:i=>e.defaults(xe(r,i)),makeRe:(i,n={})=>e.makeRe(i,xe(r,n)),braceExpand:(i,n={})=>e.braceExpand(i,xe(r,n)),match:(i,n,s={})=>e.match(i,n,xe(r,s)),sep:e.sep,GLOBSTAR:ee})};le.defaults=gw;var Gh=(r,e={})=>(zr(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Bh.default)(r));le.braceExpand=Gh;var mw=(r,e={})=>new we(r,e).makeRe();le.makeRe=mw;var yw=(r,e,t={})=>{let i=new we(e,t);return r=r.filter(n=>i.match(n)),i.options.nonull&&!r.length&&r.push(e),r};le.match=yw;var $h=/[?*]|[+@!]\(.*?\)|\[|\]/,ww=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),we=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){zr(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Wh,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!$h.test(s[2]))&&!$h.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(u)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let i=-1;for(;(i=t.indexOf("**",i+1))!==-1;){let n=i;for(;t[n+1]==="**";)n++;n!==i&&t.splice(i,n-i)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(t=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(t=!0,e.splice(i-1,2),i-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;t=!0,i.splice(n,1);let h=i.slice(0);h[n]="**",e.push(h),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(t=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(t=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let i=t+1;i<e.length;i++){let n=this.partsMatch(e[t],e[i],!this.preserveMultipleSlashes);if(n){e[t]=[],e[i]=n;break}}return e.filter(t=>t.length)}partsMatch(e,t,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<t.length;)if(e[n]===t[s])o.push(a==="b"?t[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&t[s]===e[n+1])o.push(e[n]),n++;else if(i&&t[s]==="**"&&e[n]===t[s+1])o.push(t[s]),s++;else if(e[n]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(t[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(t[s]),n++,s++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)t=!t,i++;i&&(this.pattern=e.slice(i)),this.negate=t}matchOne(e,t,i=!1){let n=this.options;if(this.isWindows){let g=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),y=!g&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),w=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),S=!w&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),b=y?3:g?0:void 0,_=S?3:w?0:void 0;if(typeof b=="number"&&typeof _=="number"){let[C,M]=[e[b],t[_]];C.toLowerCase()===M.toLowerCase()&&(t[_]=C,_>b?t=t.slice(_):b>_&&(e=e.slice(b)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,l=e.length,u=t.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");var h=t[a],f=e[o];if(this.debug(t,h,f),h===!1)return!1;if(h===ee){this.debug("GLOBSTAR",[t,h,f]);var c=o,p=a+1;if(p===u){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!n.dot&&e[o].charAt(0)===".")return!1;return!0}for(;c<l;){var d=e[c];if(this.debug(`
|
63
|
+
globstar while`,e,c,t,p,d),this.matchOne(e.slice(c),t.slice(p),i))return this.debug("globstar found match!",c,l,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,c,t,p);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(i&&(this.debug(`
|
64
|
+
>>> no match, partial?`,e,c,t,p),c===l))}let g;if(typeof h=="string"?(g=f===h,this.debug("string match",h,f,g)):(g=h.test(f),this.debug("pattern match",h,f,g)),!g)return!1}if(o===l&&a===u)return!0;if(o===l)return i;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return Gh(this.pattern,this.options)}parse(e){zr(e);let t=this.options;if(e==="**")return ee;if(e==="")return"";let i,n=null;(i=e.match(tw))?n=t.dot?iw:rw:(i=e.match(Gy))?n=(t.nocase?t.dot?Ky:Yy:t.dot?Vy:Hy)(i[1]):(i=e.match(nw))?n=(t.nocase?t.dot?ow:sw:t.dot?aw:lw)(i):(i=e.match(Jy))?n=t.dot?Zy:Qy:(i=e.match(Xy))&&(n=ew);let s=Ht.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,i=t.noglobstar?fw:t.dot?cw:dw,n=new Set(t.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(h=>{if(h instanceof RegExp)for(let f of h.flags.split(""))n.add(f);return typeof h=="string"?ww(h):h===ee?ee:h._src});return u.forEach((h,f)=>{let c=u[f+1],p=u[f-1];h!==ee||p===ee||(p===void 0?c!==void 0&&c!==ee?u[f+1]="(?:\\/|"+i+"\\/)?"+c:u[f]=i:c===void 0?u[f-1]=p+"(?:\\/|"+i+")?":c!==ee&&(u[f-1]=p+"(?:\\/|\\/"+i+"\\/)"+c,u[f+1]=ee))}),u.filter(h=>h!==ee).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,t))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return le.defaults(e).Minimatch}};le.AST=Ht;le.Minimatch=we;le.escape=Vt;le.unescape=Le;var yf=require("node:url");var Yt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Yh=new Set,So=typeof process=="object"&&process?process:{},Kh=(r,e,t,i)=>{typeof So.emitWarning=="function"?So.emitWarning(r,e,t,i):console.error(`[${t}] ${e}: ${r}`)},sn=globalThis.AbortController,Hh=globalThis.AbortSignal,Vh;if(typeof sn>"u"){Hh=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},sn=class{constructor(){e()}signal=new Hh;abort(i){var n,s;if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let o of this.signal._onabort)o(i);(s=(n=this.signal).onabort)==null||s.call(n,i)}}};let r=((Vh=So.env)==null?void 0:Vh.LRU_CACHE_IGNORE_AC_WARNING)!=="1",e=()=>{r&&(r=!1,Kh("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var vw=r=>!Yh.has(r),YE=Symbol("type"),it=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r),Jh=r=>it(r)?r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?Kt:null:null,Kt=class extends Array{constructor(e){super(e),this.fill(0)}},_o=class r{heap;length;static#e=!1;static create(e){let t=Jh(e);if(!t)return[];r.#e=!0;let i=new r(e,t);return r.#e=!1,i}constructor(e,t){if(!r.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Gr=class r{#e;#t;#s;#i;#o;#b;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#f;#a;#l;#n;#m;#y;#d;#c;#x;#g;#E;#O;#v;#S;#_;#p;static unsafeExposeInternals(e){return{starts:e.#O,ttls:e.#v,sizes:e.#E,keyMap:e.#a,keyList:e.#l,valList:e.#n,next:e.#m,prev:e.#y,get head(){return e.#d},get tail(){return e.#c},free:e.#x,isBackgroundFetch:t=>e.#h(t),backgroundFetch:(t,i,n,s)=>e.#F(t,i,n,s),moveToTail:t=>e.#$(t),indexes:t=>e.#R(t),rindexes:t=>e.#M(t),isStale:t=>e.#w(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#b}get dispose(){return this.#s}get disposeAfter(){return this.#i}constructor(e){let{max:t=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:h,noDisposeOnSet:f,noUpdateTTL:c,maxSize:p=0,maxEntrySize:d=0,sizeCalculation:g,fetchMethod:y,memoMethod:w,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:_,allowStaleOnFetchAbort:C,ignoreFetchAbort:M}=e;if(t!==0&&!it(t))throw new TypeError("max option must be a nonnegative integer");let T=t?Jh(t):Array;if(!T)throw new Error("invalid max value: "+t);if(this.#e=t,this.#t=p,this.maxEntrySize=d||this.#t,this.sizeCalculation=g,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(w!==void 0&&typeof w!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#b=w,y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=y,this.#_=!!y,this.#a=new Map,this.#l=new Array(t).fill(void 0),this.#n=new Array(t).fill(void 0),this.#m=new T(t),this.#y=new T(t),this.#d=0,this.#c=0,this.#x=_o.create(t),this.#u=0,this.#f=0,typeof u=="function"&&(this.#s=u),typeof h=="function"?(this.#i=h,this.#g=[]):(this.#i=void 0,this.#g=void 0),this.#S=!!this.#s,this.#p=!!this.#i,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!c,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!_,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!M,this.maxEntrySize!==0){if(this.#t!==0&&!it(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!it(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#T()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=it(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!it(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#A()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let q="LRU_CACHE_UNBOUNDED";vw(q)&&(Yh.add(q),Kh("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",q,r))}}getRemainingTTL(e){return this.#a.has(e)?1/0:0}#A(){let e=new Kt(this.#e),t=new Kt(this.#e);this.#v=e,this.#O=t,this.#q=(s,o,a=Yt.now())=>{if(t[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#L(this.#l[s],"expire")},o+1);l.unref&&l.unref()}},this.#C=s=>{t[s]=e[s]!==0?Yt.now():0},this.#r=(s,o)=>{if(e[o]){let a=e[o],l=t[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Yt.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#a.get(s);if(o===void 0)return 0;let a=e[o],l=t[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=t[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#C=()=>{};#r=()=>{};#q=()=>{};#w=()=>!1;#T(){let e=new Kt(this.#e);this.#f=0,this.#E=e,this.#P=t=>{this.#f-=e[t],e[t]=0},this.#D=(t,i,n,s)=>{if(this.#h(i))return 0;if(!it(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,t),!it(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#N=(t,i,n)=>{if(e[t]=i,this.#t){let s=this.#t-e[t];for(;this.#f>s;)this.#I(!0)}this.#f+=e[t],n&&(n.entrySize=i,n.totalCalculatedSize=this.#f)}}#P=e=>{};#N=(e,t,i)=>{};#D=(e,t,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#R({allowStale:e=this.allowStale}={}){if(this.#u)for(let t=this.#c;!(!this.#k(t)||((e||!this.#w(t))&&(yield t),t===this.#d));)t=this.#y[t]}*#M({allowStale:e=this.allowStale}={}){if(this.#u)for(let t=this.#d;!(!this.#k(t)||((e||!this.#w(t))&&(yield t),t===this.#c));)t=this.#m[t]}#k(e){return e!==void 0&&this.#a.get(this.#l[e])===e}*entries(){for(let e of this.#R())this.#n[e]!==void 0&&this.#l[e]!==void 0&&!this.#h(this.#n[e])&&(yield[this.#l[e],this.#n[e]])}*rentries(){for(let e of this.#M())this.#n[e]!==void 0&&this.#l[e]!==void 0&&!this.#h(this.#n[e])&&(yield[this.#l[e],this.#n[e]])}*keys(){for(let e of this.#R()){let t=this.#l[e];t!==void 0&&!this.#h(this.#n[e])&&(yield t)}}*rkeys(){for(let e of this.#M()){let t=this.#l[e];t!==void 0&&!this.#h(this.#n[e])&&(yield t)}}*values(){for(let e of this.#R())this.#n[e]!==void 0&&!this.#h(this.#n[e])&&(yield this.#n[e])}*rvalues(){for(let e of this.#M())this.#n[e]!==void 0&&!this.#h(this.#n[e])&&(yield this.#n[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#R()){let n=this.#n[i],s=this.#h(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#l[i],this))return this.get(this.#l[i],t)}}forEach(e,t=this){for(let i of this.#R()){let n=this.#n[i],s=this.#h(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(t,s,this.#l[i],this)}}rforEach(e,t=this){for(let i of this.#M()){let n=this.#n[i],s=this.#h(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(t,s,this.#l[i],this)}}purgeStale(){let e=!1;for(let t of this.#M({allowStale:!0}))this.#w(t)&&(this.#L(this.#l[t],"expire"),e=!0);return e}info(e){let t=this.#a.get(e);if(t===void 0)return;let i=this.#n[t],n=this.#h(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#v&&this.#O){let o=this.#v[t],a=this.#O[t];if(o&&a){let l=o-(Yt.now()-a);s.ttl=l,s.start=Date.now()}}return this.#E&&(s.size=this.#E[t]),s}dump(){let e=[];for(let t of this.#R({allowStale:!0})){let i=this.#l[t],n=this.#n[t],s=this.#h(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#v&&this.#O){o.ttl=this.#v[t];let a=Yt.now()-this.#O[t];o.start=Math.floor(Date.now()-a)}this.#E&&(o.size=this.#E[t]),e.unshift([i,o])}return e}load(e){this.clear();for(let[t,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Yt.now()-n}this.set(t,i.value,i)}}set(e,t,i={}){var c,p,d,g,y;if(t===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,h=this.#D(e,t,i.size||0,a);if(this.maxEntrySize&&h>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#L(e,"set"),this;let f=this.#u===0?void 0:this.#a.get(e);if(f===void 0)f=this.#u===0?this.#c:this.#x.length!==0?this.#x.pop():this.#u===this.#e?this.#I(!1):this.#u,this.#l[f]=e,this.#n[f]=t,this.#a.set(e,f),this.#m[this.#c]=f,this.#y[f]=this.#c,this.#c=f,this.#u++,this.#N(f,h,l),l&&(l.set="add"),u=!1;else{this.#$(f);let w=this.#n[f];if(t!==w){if(this.#_&&this.#h(w)){w.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:S}=w;S!==void 0&&!o&&(this.#S&&((c=this.#s)==null||c.call(this,S,e,"set")),this.#p&&((p=this.#g)==null||p.push([S,e,"set"])))}else o||(this.#S&&((d=this.#s)==null||d.call(this,w,e,"set")),this.#p&&((g=this.#g)==null||g.push([w,e,"set"])));if(this.#P(f),this.#N(f,h,l),this.#n[f]=t,l){l.set="replace";let S=w&&this.#h(w)?w.__staleWhileFetching:w;S!==void 0&&(l.oldValue=S)}}else l&&(l.set="update")}if(n!==0&&!this.#v&&this.#A(),this.#v&&(u||this.#q(f,n,s),l&&this.#r(l,f)),!o&&this.#p&&this.#g){let w=this.#g,S;for(;S=w==null?void 0:w.shift();)(y=this.#i)==null||y.call(this,...S)}return this}pop(){var e;try{for(;this.#u;){let t=this.#n[this.#d];if(this.#I(!0),this.#h(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#p&&this.#g){let t=this.#g,i;for(;i=t==null?void 0:t.shift();)(e=this.#i)==null||e.call(this,...i)}}}#I(e){var s,o;let t=this.#d,i=this.#l[t],n=this.#n[t];return this.#_&&this.#h(n)?n.__abortController.abort(new Error("evicted")):(this.#S||this.#p)&&(this.#S&&((s=this.#s)==null||s.call(this,n,i,"evict")),this.#p&&((o=this.#g)==null||o.push([n,i,"evict"]))),this.#P(t),e&&(this.#l[t]=void 0,this.#n[t]=void 0,this.#x.push(t)),this.#u===1?(this.#d=this.#c=0,this.#x.length=0):this.#d=this.#m[t],this.#a.delete(i),this.#u--,t}has(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=t,s=this.#a.get(e);if(s!==void 0){let o=this.#n[s];if(this.#h(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#r(n,s));else return i&&this.#C(s),n&&(n.has="hit",this.#r(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,t={}){let{allowStale:i=this.allowStale}=t,n=this.#a.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#n[n];return this.#h(s)?s.__staleWhileFetching:s}#F(e,t,i,n){let s=t===void 0?void 0:this.#n[t];if(this.#h(s))return s;let o=new sn,{signal:a}=i;a==null||a.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(g,y=!1)=>{let{aborted:w}=o.signal,S=i.ignoreFetchAbort&&g!==void 0;if(i.status&&(w&&!y?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,S&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),w&&!S&&!y)return f(o.signal.reason);let b=p;return this.#n[t]===p&&(g===void 0?b.__staleWhileFetching?this.#n[t]=b.__staleWhileFetching:this.#L(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,g,l.options))),g},h=g=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=g),f(g)),f=g=>{let{aborted:y}=o.signal,w=y&&i.allowStaleOnFetchAbort,S=w||i.allowStaleOnFetchRejection,b=S||i.noDeleteOnFetchRejection,_=p;if(this.#n[t]===p&&(!b||_.__staleWhileFetching===void 0?this.#L(e,"fetch"):w||(this.#n[t]=_.__staleWhileFetching)),S)return i.status&&_.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),_.__staleWhileFetching;if(_.__returned===_)throw g},c=(g,y)=>{var S;let w=(S=this.#o)==null?void 0:S.call(this,e,s,l);w&&w instanceof Promise&&w.then(b=>g(b===void 0?void 0:b),y),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(g(void 0),i.allowStaleOnFetchAbort&&(g=b=>u(b,!0)))})};i.status&&(i.status.fetchDispatched=!0);let p=new Promise(c).then(u,h),d=Object.assign(p,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,d,{...l.options,status:void 0}),t=this.#a.get(e)):this.#n[t]=d,d}#h(e){if(!this.#_)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof sn}async fetch(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:g,forceRefresh:y=!1,status:w,signal:S}=t;if(!this.#_)return w&&(w.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:w});let b={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:h,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:w,signal:S},_=this.#a.get(e);if(_===void 0){w&&(w.fetch="miss");let C=this.#F(e,_,b,g);return C.__returned=C}else{let C=this.#n[_];if(this.#h(C)){let j=i&&C.__staleWhileFetching!==void 0;return w&&(w.fetch="inflight",j&&(w.returnedStale=!0)),j?C.__staleWhileFetching:C.__returned=C}let M=this.#w(_);if(!y&&!M)return w&&(w.fetch="hit"),this.#$(_),n&&this.#C(_),w&&this.#r(w,_),C;let T=this.#F(e,_,b,g),R=T.__staleWhileFetching!==void 0&&i;return w&&(w.fetch=M?"stale":"refresh",R&&M&&(w.returnedStale=!0)),R?T.__staleWhileFetching:T.__returned=T}}async forceFetch(e,t={}){let i=await this.fetch(e,t);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,t={}){let i=this.#b;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=t,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=i(e,a,{options:o,context:n});return this.set(e,l,o),l}get(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=t,a=this.#a.get(e);if(a!==void 0){let l=this.#n[a],u=this.#h(l);return o&&this.#r(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#L(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#$(a),n&&this.#C(a),l))}else o&&(o.get="miss")}#j(e,t){this.#y[t]=e,this.#m[e]=t}#$(e){e!==this.#c&&(e===this.#d?this.#d=this.#m[e]:this.#j(this.#y[e],this.#m[e]),this.#j(this.#c,e),this.#c=e)}delete(e){return this.#L(e,"delete")}#L(e,t){var n,s,o,a;let i=!1;if(this.#u!==0){let l=this.#a.get(e);if(l!==void 0)if(i=!0,this.#u===1)this.#B(t);else{this.#P(l);let u=this.#n[l];if(this.#h(u)?u.__abortController.abort(new Error("deleted")):(this.#S||this.#p)&&(this.#S&&((n=this.#s)==null||n.call(this,u,e,t)),this.#p&&((s=this.#g)==null||s.push([u,e,t]))),this.#a.delete(e),this.#l[l]=void 0,this.#n[l]=void 0,l===this.#c)this.#c=this.#y[l];else if(l===this.#d)this.#d=this.#m[l];else{let h=this.#y[l];this.#m[h]=this.#m[l];let f=this.#m[l];this.#y[f]=this.#y[l]}this.#u--,this.#x.push(l)}}if(this.#p&&((o=this.#g)!=null&&o.length)){let l=this.#g,u;for(;u=l==null?void 0:l.shift();)(a=this.#i)==null||a.call(this,...u)}return i}clear(){return this.#B("delete")}#B(e){var t,i,n;for(let s of this.#M({allowStale:!0})){let o=this.#n[s];if(this.#h(o))o.__abortController.abort(new Error("deleted"));else{let a=this.#l[s];this.#S&&((t=this.#s)==null||t.call(this,o,a,e)),this.#p&&((i=this.#g)==null||i.push([o,a,e]))}}if(this.#a.clear(),this.#n.fill(void 0),this.#l.fill(void 0),this.#v&&this.#O&&(this.#v.fill(0),this.#O.fill(0)),this.#E&&this.#E.fill(0),this.#d=0,this.#c=0,this.#x.length=0,this.#f=0,this.#u=0,this.#p&&this.#g){let s=this.#g,o;for(;o=s==null?void 0:s.shift();)(n=this.#i)==null||n.call(this,...o)}}};var Zt=require("node:path"),af=require("node:url"),Ue=require("fs"),Aw=vr(require("node:fs"),1),ot=require("node:fs/promises");var cn=require("node:events"),Ao=vr(require("node:stream"),1),tf=require("node:string_decoder"),Qh=typeof process=="object"&&process?process:{stdout:null,stderr:null},bw=r=>!!r&&typeof r=="object"&&(r instanceof st||r instanceof Ao.default||Sw(r)||_w(r)),Sw=r=>!!r&&typeof r=="object"&&r instanceof cn.EventEmitter&&typeof r.pipe=="function"&&r.pipe!==Ao.default.Writable.prototype.pipe,_w=r=>!!r&&typeof r=="object"&&r instanceof cn.EventEmitter&&typeof r.write=="function"&&typeof r.end=="function",Je=Symbol("EOF"),Qe=Symbol("maybeEmitEnd"),nt=Symbol("emittedEnd"),on=Symbol("emittingEnd"),Hr=Symbol("emittedError"),an=Symbol("closed"),Zh=Symbol("read"),ln=Symbol("flush"),Xh=Symbol("flushChunk"),qe=Symbol("encoding"),Jt=Symbol("decoder"),Y=Symbol("flowing"),Vr=Symbol("paused"),Qt=Symbol("resume"),K=Symbol("buffer"),ue=Symbol("pipes"),J=Symbol("bufferLength"),xo=Symbol("bufferPush"),un=Symbol("bufferShift"),se=Symbol("objectMode"),W=Symbol("destroyed"),Eo=Symbol("error"),Oo=Symbol("emitData"),ef=Symbol("emitEnd"),Co=Symbol("emitEnd2"),$e=Symbol("async"),Ro=Symbol("abort"),hn=Symbol("aborted"),Yr=Symbol("signal"),bt=Symbol("dataListeners"),ve=Symbol("discarded"),Kr=r=>Promise.resolve().then(r),xw=r=>r(),Ew=r=>r==="end"||r==="finish"||r==="prefinish",Ow=r=>r instanceof ArrayBuffer||!!r&&typeof r=="object"&&r.constructor&&r.constructor.name==="ArrayBuffer"&&r.byteLength>=0,Cw=r=>!Buffer.isBuffer(r)&&ArrayBuffer.isView(r),fn=class{src;dest;opts;ondrain;constructor(e,t,i){this.src=e,this.dest=t,this.opts=i,this.ondrain=()=>e[Qt](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Mo=class extends fn{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,i){super(e,t,i),this.proxyErrors=n=>t.emit("error",n),e.on("error",this.proxyErrors)}},Rw=r=>!!r.objectMode,Mw=r=>!r.objectMode&&!!r.encoding&&r.encoding!=="buffer",st=class extends cn.EventEmitter{[Y]=!1;[Vr]=!1;[ue]=[];[K]=[];[se];[qe];[$e];[Jt];[Je]=!1;[nt]=!1;[on]=!1;[an]=!1;[Hr]=null;[J]=0;[W]=!1;[Yr];[hn]=!1;[bt]=0;[ve]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");Rw(t)?(this[se]=!0,this[qe]=null):Mw(t)?(this[qe]=t.encoding,this[se]=!1):(this[se]=!1,this[qe]=null),this[$e]=!!t.async,this[Jt]=this[qe]?new tf.StringDecoder(this[qe]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[K]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ue]});let{signal:i}=t;i&&(this[Yr]=i,i.aborted?this[Ro]():i.addEventListener("abort",()=>this[Ro]()))}get bufferLength(){return this[J]}get encoding(){return this[qe]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[se]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[$e]}set async(e){this[$e]=this[$e]||!!e}[Ro](){var e,t;this[hn]=!0,this.emit("abort",(e=this[Yr])==null?void 0:e.reason),this.destroy((t=this[Yr])==null?void 0:t.reason)}get aborted(){return this[hn]}set aborted(e){}write(e,t,i){var s;if(this[hn])return!1;if(this[Je])throw new Error("write after end");if(this[W])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8");let n=this[$e]?Kr:xw;if(!this[se]&&!Buffer.isBuffer(e)){if(Cw(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(Ow(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[se]?(this[Y]&&this[J]!==0&&this[ln](!0),this[Y]?this.emit("data",e):this[xo](e),this[J]!==0&&this.emit("readable"),i&&n(i),this[Y]):e.length?(typeof e=="string"&&!(t===this[qe]&&!((s=this[Jt])!=null&&s.lastNeed))&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[qe]&&(e=this[Jt].write(e)),this[Y]&&this[J]!==0&&this[ln](!0),this[Y]?this.emit("data",e):this[xo](e),this[J]!==0&&this.emit("readable"),i&&n(i),this[Y]):(this[J]!==0&&this.emit("readable"),i&&n(i),this[Y])}read(e){if(this[W])return null;if(this[ve]=!1,this[J]===0||e===0||e&&e>this[J])return this[Qe](),null;this[se]&&(e=null),this[K].length>1&&!this[se]&&(this[K]=[this[qe]?this[K].join(""):Buffer.concat(this[K],this[J])]);let t=this[Zh](e||null,this[K][0]);return this[Qe](),t}[Zh](e,t){if(this[se])this[un]();else{let i=t;e===i.length||e===null?this[un]():typeof i=="string"?(this[K][0]=i.slice(e),t=i.slice(0,e),this[J]-=e):(this[K][0]=i.subarray(e),t=i.subarray(0,e),this[J]-=e)}return this.emit("data",t),!this[K].length&&!this[Je]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t="utf8"),e!==void 0&&this.write(e,t),i&&this.once("end",i),this[Je]=!0,this.writable=!1,(this[Y]||!this[Vr])&&this[Qe](),this}[Qt](){this[W]||(!this[bt]&&!this[ue].length&&(this[ve]=!0),this[Vr]=!1,this[Y]=!0,this.emit("resume"),this[K].length?this[ln]():this[Je]?this[Qe]():this.emit("drain"))}resume(){return this[Qt]()}pause(){this[Y]=!1,this[Vr]=!0,this[ve]=!1}get destroyed(){return this[W]}get flowing(){return this[Y]}get paused(){return this[Vr]}[xo](e){this[se]?this[J]+=1:this[J]+=e.length,this[K].push(e)}[un](){return this[se]?this[J]-=1:this[J]-=this[K][0].length,this[K].shift()}[ln](e=!1){do;while(this[Xh](this[un]())&&this[K].length);!e&&!this[K].length&&!this[Je]&&this.emit("drain")}[Xh](e){return this.emit("data",e),this[Y]}pipe(e,t){if(this[W])return e;this[ve]=!1;let i=this[nt];return t=t||{},e===Qh.stdout||e===Qh.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,i?t.end&&e.end():(this[ue].push(t.proxyErrors?new Mo(this,e,t):new fn(this,e,t)),this[$e]?Kr(()=>this[Qt]()):this[Qt]()),e}unpipe(e){let t=this[ue].find(i=>i.dest===e);t&&(this[ue].length===1?(this[Y]&&this[bt]===0&&(this[Y]=!1),this[ue]=[]):this[ue].splice(this[ue].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let i=super.on(e,t);if(e==="data")this[ve]=!1,this[bt]++,!this[ue].length&&!this[Y]&&this[Qt]();else if(e==="readable"&&this[J]!==0)super.emit("readable");else if(Ew(e)&&this[nt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Hr]){let n=t;this[$e]?Kr(()=>n.call(this,this[Hr])):n.call(this,this[Hr])}return i}removeListener(e,t){return this.off(e,t)}off(e,t){let i=super.off(e,t);return e==="data"&&(this[bt]=this.listeners("data").length,this[bt]===0&&!this[ve]&&!this[ue].length&&(this[Y]=!1)),i}removeAllListeners(e){let t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[bt]=0,!this[ve]&&!this[ue].length&&(this[Y]=!1)),t}get emittedEnd(){return this[nt]}[Qe](){!this[on]&&!this[nt]&&!this[W]&&this[K].length===0&&this[Je]&&(this[on]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[an]&&this.emit("close"),this[on]=!1)}emit(e,...t){let i=t[0];if(e!=="error"&&e!=="close"&&e!==W&&this[W])return!1;if(e==="data")return!this[se]&&!i?!1:this[$e]?(Kr(()=>this[Oo](i)),!0):this[Oo](i);if(e==="end")return this[ef]();if(e==="close"){if(this[an]=!0,!this[nt]&&!this[W])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Hr]=i,super.emit(Eo,i);let s=!this[Yr]||this.listeners("error").length?super.emit("error",i):!1;return this[Qe](),s}else if(e==="resume"){let s=super.emit("resume");return this[Qe](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...t);return this[Qe](),n}[Oo](e){for(let i of this[ue])i.dest.write(e)===!1&&this.pause();let t=this[ve]?!1:super.emit("data",e);return this[Qe](),t}[ef](){return this[nt]?!1:(this[nt]=!0,this.readable=!1,this[$e]?(Kr(()=>this[Co]()),!0):this[Co]())}[Co](){if(this[Jt]){let t=this[Jt].end();if(t){for(let i of this[ue])i.dest.write(t);this[ve]||super.emit("data",t)}}for(let t of this[ue])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[se]||(e.dataLength=0);let t=this.promise();return this.on("data",i=>{e.push(i),this[se]||(e.dataLength+=i.length)}),await t,e}async concat(){if(this[se])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[qe]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(W,()=>t(new Error("stream destroyed"))),this.on("error",i=>t(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[ve]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[Je])return t();let s,o,a=f=>{this.off("data",l),this.off("end",u),this.off(W,h),t(),o(f)},l=f=>{this.off("error",a),this.off("end",u),this.off(W,h),this.pause(),s({value:f,done:!!this[Je]})},u=()=>{this.off("error",a),this.off("data",l),this.off(W,h),t(),s({done:!0,value:void 0})},h=()=>a(new Error("stream destroyed"));return new Promise((f,c)=>{o=c,s=f,this.once(W,h),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ve]=!1;let e=!1,t=()=>(this.pause(),this.off(Eo,t),this.off(W,t),this.off("end",t),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return t();let n=this.read();return n===null?t():{done:!1,value:n}};return this.once("end",t),this.once(Eo,t),this.once(W,t),{next:i,throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[W])return e?this.emit("error",e):this.emit(W),this;this[W]=!0,this[ve]=!0,this[K].length=0,this[J]=0;let t=this;return typeof t.close=="function"&&!this[an]&&t.close(),e?this.emit("error",e):this.emit(W),this}static get isStream(){return bw}};var Tw=Ue.realpathSync.native,Qr={lstatSync:Ue.lstatSync,readdir:Ue.readdir,readdirSync:Ue.readdirSync,readlinkSync:Ue.readlinkSync,realpathSync:Tw,promises:{lstat:ot.lstat,readdir:ot.readdir,readlink:ot.readlink,realpath:ot.realpath}},lf=r=>!r||r===Qr||r===Aw?Qr:{...Qr,...r,promises:{...Qr.promises,...r.promises||{}}},uf=/^\\\\\?\\([a-z]:)\\?$/i,Lw=r=>r.replace(/\//g,"\\").replace(uf,"$1\\"),qw=/[\\\/]/,Oe=0,hf=1,ff=2,Be=4,cf=6,df=8,St=10,pf=12,Ee=15,Jr=~Ee,To=16,rf=32,Zr=64,Pe=128,dn=256,gn=512,nf=Zr|Pe|gn,Pw=1023,Lo=r=>r.isFile()?df:r.isDirectory()?Be:r.isSymbolicLink()?St:r.isCharacterDevice()?ff:r.isBlockDevice()?cf:r.isSocket()?pf:r.isFIFO()?hf:Oe,sf=new Map,Xr=r=>{let e=sf.get(r);if(e)return e;let t=r.normalize("NFKD");return sf.set(r,t),t},of=new Map,pn=r=>{let e=of.get(r);if(e)return e;let t=Xr(r.toLowerCase());return of.set(r,t),t},mn=class extends Gr{constructor(){super({max:256})}},qo=class extends Gr{constructor(e=16*1024){super({maxSize:e,sizeCalculation:t=>t.length+1})}},gf=Symbol("PathScurry setAsCwd"),oe=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#s;get mode(){return this.#s}#i;get nlink(){return this.#i}#o;get uid(){return this.#o}#b;get gid(){return this.#b}#u;get rdev(){return this.#u}#f;get blksize(){return this.#f}#a;get ino(){return this.#a}#l;get size(){return this.#l}#n;get blocks(){return this.#n}#m;get atimeMs(){return this.#m}#y;get mtimeMs(){return this.#y}#d;get ctimeMs(){return this.#d}#c;get birthtimeMs(){return this.#c}#x;get atime(){return this.#x}#g;get mtime(){return this.#g}#E;get ctime(){return this.#E}#O;get birthtime(){return this.#O}#v;#S;#_;#p;#A;#C;#r;#q;#w;#T;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=Oe,i,n,s,o,a){this.name=e,this.#v=s?pn(e):Xr(e),this.#r=t&Pw,this.nocase=s,this.roots=n,this.root=i||this,this.#q=o,this.#_=a.fullpath,this.#A=a.relative,this.#C=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=lf(a.fs)}depth(){return this.#S!==void 0?this.#S:this.parent?this.#S=this.parent.depth()+1:this.#S=0}childrenCache(){return this.#q}resolve(e){if(!e)return this;let t=this.getRootString(e),n=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#P(n):this.#P(n)}#P(e){let t=this;for(let i of e)t=t.child(i);return t}children(){let e=this.#q.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#q.set(this,t),this.#r&=~To,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?pn(e):Xr(e);for(let l of i)if(l.#v===n)return l;let s=this.parent?this.sep:"",o=this.#_?this.#_+s+e:void 0,a=this.newChild(e,Oe,{...t,parent:this,fullpath:o});return this.canReaddir()||(a.#r|=Pe),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,t=this.parent;if(!t)return this.#A=this.name;let i=t.relative();return i+(!i||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let e=this.name,t=this.parent;if(!t)return this.#C=this.fullpathPosix();let i=t.relativePosix();return i+(!i||!t.parent?"":"/")+e}fullpath(){if(this.#_!==void 0)return this.#_;let e=this.name,t=this.parent;if(!t)return this.#_=this.name;let n=t.fullpath()+(t.parent?this.sep:"")+e;return this.#_=n}fullpathPosix(){if(this.#p!==void 0)return this.#p;if(this.sep==="/")return this.#p=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#p=`//?/${n}`:this.#p=n}let e=this.parent,t=e.fullpathPosix(),i=t+(!t||!e.parent?"":"/")+this.name;return this.#p=i}isUnknown(){return(this.#r&Ee)===Oe}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#r&Ee)===df}isDirectory(){return(this.#r&Ee)===Be}isCharacterDevice(){return(this.#r&Ee)===ff}isBlockDevice(){return(this.#r&Ee)===cf}isFIFO(){return(this.#r&Ee)===hf}isSocket(){return(this.#r&Ee)===pf}isSymbolicLink(){return(this.#r&St)===St}lstatCached(){return this.#r&rf?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#T}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#r&Ee;return!(e!==Oe&&e!==St||this.#r&dn||this.#r&Pe)}calledReaddir(){return!!(this.#r&To)}isENOENT(){return!!(this.#r&Pe)}isNamed(e){return this.nocase?this.#v===pn(e):this.#v===Xr(e)}async readlink(){var t;let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let i=await this.#e.promises.readlink(this.fullpath()),n=(t=await this.parent.realpath())==null?void 0:t.resolve(i);if(n)return this.#w=n}catch(i){this.#h(i.code);return}}readlinkSync(){var t;let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let i=this.#e.readlinkSync(this.fullpath()),n=(t=this.parent.realpathSync())==null?void 0:t.resolve(i);if(n)return this.#w=n}catch(i){this.#h(i.code);return}}#N(e){this.#r|=To;for(let t=e.provisional;t<e.length;t++){let i=e[t];i&&i.#D()}}#D(){this.#r&Pe||(this.#r=(this.#r|Pe)&Jr,this.#R())}#R(){let e=this.children();e.provisional=0;for(let t of e)t.#D()}#M(){this.#r|=gn,this.#k()}#k(){if(this.#r&Zr)return;let e=this.#r;(e&Ee)===Be&&(e&=Jr),this.#r=e|Zr,this.#R()}#I(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#D():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#D()}#h(e=""){let t=this.#r;t|=dn,e==="ENOENT"&&(t|=Pe),(e==="EINVAL"||e==="UNKNOWN")&&(t&=Jr),this.#r=t,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#j(e,t){return this.#L(e,t)||this.#$(e,t)}#$(e,t){let i=Lo(e),n=this.newChild(e.name,i,{parent:this}),s=n.#r&Ee;return s!==Be&&s!==St&&s!==Oe&&(n.#r|=Zr),t.unshift(n),t.provisional++,n}#L(e,t){for(let i=t.provisional;i<t.length;i++){let n=t[i];if((this.nocase?pn(e.name):Xr(e.name))===n.#v)return this.#B(e,n,i,t)}}#B(e,t,i,n){let s=t.name;return t.#r=t.#r&Jr|Lo(e),s!==e.name&&(t.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(t)),n.provisional++,t}async lstat(){if((this.#r&Pe)===0)try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#F(e.code)}}lstatSync(){if((this.#r&Pe)===0)try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(e.code)}}#G(e){let{atime:t,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:h,gid:f,ino:c,mode:p,mtime:d,mtimeMs:g,nlink:y,rdev:w,size:S,uid:b}=e;this.#x=t,this.#m=i,this.#O=n,this.#c=s,this.#f=o,this.#n=a,this.#E=l,this.#d=u,this.#t=h,this.#b=f,this.#a=c,this.#s=p,this.#g=d,this.#y=g,this.#i=y,this.#u=w,this.#l=S,this.#o=b;let _=Lo(e);this.#r=this.#r&Jr|_|rf,_!==Oe&&_!==Be&&_!==St&&(this.#r|=Zr)}#z=[];#W=!1;#H(e){this.#W=!1;let t=this.#z.slice();this.#z.length=0,t.forEach(i=>i(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);t?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#z.push(e),this.#W)return;this.#W=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#I(s.code),i.provisional=0;else{for(let a of o)this.#j(a,i);this.#N(i)}this.#H(i.slice(0,i.provisional))})}#U;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#U)await this.#U;else{let i=()=>{};this.#U=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#j(n,e);this.#N(e)}catch(n){this.#I(n.code),e.provisional=0}this.#U=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let i of this.#e.readdirSync(t,{withFileTypes:!0}))this.#j(i,e);this.#N(e)}catch(i){this.#I(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#r&nf)return!1;let e=Ee&this.#r;return e===Oe||e===Be||e===St}shouldWalk(e,t){return(this.#r&Be)===Be&&!(this.#r&nf)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#T)return this.#T;if(!((gn|dn|Pe)&this.#r))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#T=this.resolve(e)}catch{this.#M()}}realpathSync(){if(this.#T)return this.#T;if(!((gn|dn|Pe)&this.#r))try{let e=this.#e.realpathSync(this.fullpath());return this.#T=this.resolve(e)}catch{this.#M()}}[gf](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),i=[],n=this;for(;n&&n.parent;)t.add(n),n.#A=i.join(this.sep),n.#C=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!t.has(n);)n.#A=void 0,n.#C=void 0,n=n.parent}},yn=class r extends oe{sep="\\";splitSep=qw;constructor(e,t=Oe,i,n,s,o,a){super(e,t,i,n,s,o,a)}newChild(e,t=Oe,i={}){return new r(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Zt.win32.parse(e).root}getRoot(e){if(e=Lw(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,i]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=i;return this.roots[e]=new Xt(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(uf,"$1\\"),e===t}},wn=class r extends oe{splitSep="/";sep="/";constructor(e,t=Oe,i,n,s,o,a){super(e,t,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=Oe,i={}){return new r(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}},vn=class{root;rootPath;roots;cwd;#e;#t;#s;nocase;#i;constructor(e=process.cwd(),t,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=Qr}={}){this.#i=lf(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,af.fileURLToPath)(e));let a=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new mn,this.#t=new mn,this.#s=new qo(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#i),this.roots[this.rootPath]=this.root;let u=this.root,h=l.length-1,f=t.sep,c=this.rootPath,p=!1;for(let d of l){let g=h--;u=u.child(d,{relative:new Array(g).fill("..").join(f),relativePosix:new Array(g).fill("..").join("/"),fullpath:c+=(p?"":f)+d}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#s}resolve(...e){let t="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let i=this.#e.get(t);if(i!==void 0)return i;let n=this.cwd.resolve(t).fullpath();return this.#e.set(t,n),n}resolvePosix(...e){let t="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let i=this.#t.get(t);if(i!==void 0)return i;let n=this.cwd.resolve(t).fullpathPosix();return this.#t.set(t,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e,e=this.cwd);let{withFileTypes:i}=t;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e,e=this.cwd);let{withFileTypes:i=!0}=t;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e.withFileTypes,e=this.cwd);let i=await e.readlink();return t?i:i==null?void 0:i.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return t?i:i==null?void 0:i.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e.withFileTypes,e=this.cwd);let i=await e.realpath();return t?i:i==null?void 0:i.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return t?i:i==null?void 0:i.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=t,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set,u=(f,c)=>{l.add(f),f.readdirCB((p,d)=>{if(p)return c(p);let g=d.length;if(!g)return c();let y=()=>{--g===0&&c()};for(let w of d)(!s||s(w))&&a.push(i?w:w.fullpath()),n&&w.isSymbolicLink()?w.realpath().then(S=>S!=null&&S.isUnknown()?S.lstat():S).then(S=>S!=null&&S.shouldWalk(l,o)?u(S,y):y()):w.shouldWalk(l,o)?u(w,y):y()},!0)},h=e;return new Promise((f,c)=>{u(h,p=>{if(p)return c(p);f(a)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=t,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let h=u.readdirSync();for(let f of h){(!s||s(f))&&a.push(i?f:f.fullpath());let c=f;if(f.isSymbolicLink()){if(!(n&&(c=f.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(l,o)&&l.add(c)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=t;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let h of u){(!s||s(h))&&(yield i?h:h.fullpath());let f=h;if(h.isSymbolicLink()){if(!(n&&(f=h.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(a,o)&&a.add(f)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=t,a=new st({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],h=0,f=()=>{let c=!1;for(;!c;){let p=u.shift();if(!p){h===0&&a.end();return}h++,l.add(p);let d=(y,w,S=!1)=>{if(y)return a.emit("error",y);if(n&&!S){let b=[];for(let _ of w)_.isSymbolicLink()&&b.push(_.realpath().then(C=>C!=null&&C.isUnknown()?C.lstat():C));if(b.length){Promise.all(b).then(()=>d(null,w,!0));return}}for(let b of w)b&&(!s||s(b))&&(a.write(i?b:b.fullpath())||(c=!0));h--;for(let b of w){let _=b.realpathCached()||b;_.shouldWalk(l,o)&&u.push(_)}c&&!a.flowing?a.once("drain",f):g||f()},g=!0;p.readdirCB(d,!0),g=!1}};return f(),a}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof oe||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=t,a=new st({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],h=0,f=()=>{let c=!1;for(;!c;){let p=u.shift();if(!p){h===0&&a.end();return}h++,l.add(p);let d=p.readdirSync();for(let g of d)(!s||s(g))&&(a.write(i?g:g.fullpath())||(c=!0));h--;for(let g of d){let y=g;if(g.isSymbolicLink()){if(!(n&&(y=g.realpathSync())))continue;y.isUnknown()&&y.lstatSync()}y.shouldWalk(l,o)&&u.push(y)}}c&&!a.flowing&&a.once("drain",f)};return f(),a}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[gf](t)}},Xt=class extends vn{sep="\\";constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,Zt.win32,"\\",{...t,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Zt.win32.parse(e).root.toUpperCase()}newRoot(e){return new yn(this.rootPath,Be,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},er=class extends vn{sep="/";constructor(e=process.cwd(),t={}){let{nocase:i=!1}=t;super(e,Zt.posix,"/",{...t,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new wn(this.rootPath,Be,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},ei=class extends er{constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,{...t,nocase:i})}},XE=process.platform==="win32"?yn:wn,mf=process.platform==="win32"?Xt:process.platform==="darwin"?ei:er;var Nw=r=>r.length>=1,Dw=r=>r.length>=1,tr=class r{#e;#t;#s;length;#i;#o;#b;#u;#f;#a;#l=!0;constructor(e,t,i,n){if(!Nw(e))throw new TypeError("empty pattern list");if(!Dw(t))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=t,this.#s=i,this.#i=n,this.#s===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[h,f,c,p,...d]=this.#t;u[0]===""&&(u.shift(),d.shift());let g=[s,o,a,l,""].join("/"),y=[h,f,c,p,""].join("/");this.#e=[g,...u],this.#t=[y,...d],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#t;o[0]===""&&(o.shift(),l.shift());let u=s+"/",h=a+"/";this.#e=[u,...o],this.#t=[h,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#s]}isString(){return typeof this.#e[this.#s]=="string"}isGlobstar(){return this.#e[this.#s]===ee}isRegExp(){return this.#e[this.#s]instanceof RegExp}globString(){return this.#b=this.#b||(this.#s===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#s).join("/"))}hasMore(){return this.length>this.#s+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new r(this.#e,this.#t,this.#s+1,this.#i),this.#o.#a=this.#a,this.#o.#f=this.#f,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#f!==void 0?this.#f:this.#f=this.#i==="win32"&&this.#s===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#i==="win32"&&this.#s===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#s===0?e:""}checkFollowGlobstar(){return!(this.#s===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#s===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}};var kw=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",rr=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:i,noext:n,noglobstar:s,platform:o=kw}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let t=new we(e,this.mmopts);for(let i=0;i<t.set.length;i++){let n=t.set[i],s=t.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new tr(n,s,0,this.platform),a=new we(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let t=e.fullpath(),i=`${t}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(t)||o.match(i))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(t))return!0;return!1}};var Po=class r{store;constructor(e=new Map){this.store=e}copy(){return new r(new Map(this.store))}hasWalked(e,t){var i;return(i=this.store.get(e.fullpath()))==null?void 0:i.has(t.globString())}storeWalked(e,t){let i=e.fullpath(),n=this.store.get(i);n?n.add(t.globString()):this.store.set(i,new Set([t.globString()]))}},No=class{store=new Map;add(e,t,i){let n=(t?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},Do=class{store=new Map;add(e,t){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===t.globString())||i.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},ti=class r{hasWalkedCache;matches=new No;subwalks=new Do;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new Po}processPatterns(e,t){this.patterns=t;let i=t.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let f=s.rest();if(f)s=f;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,h=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,h=!0;if(l=s.pattern(),u=s.rest(),h){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,f);continue}else if(l===ee){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let f=u==null?void 0:u.pattern(),c=u==null?void 0:u.rest();if(!u||(f===""||f===".")&&!c)this.matches.add(n,a,f===""||f===".");else if(f===".."){let p=n.parent||n;c?this.hasWalkedCache.hasWalked(p,c)||this.subwalks.add(p,c):this.matches.add(p,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new r(this.opts,this.hasWalkedCache)}filterEntries(e,t){let i=this.subwalks.get(e),n=this.child();for(let s of t)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===ee?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,t,i,n){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(i&&t.checkFollowGlobstar()?this.subwalks.add(e,i):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,t,i,n){t.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,t,i,n){e.isNamed(t)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};var Iw=(r,e)=>typeof r=="string"?new rr([r],e):Array.isArray(r)?new rr(r,e):r,bn=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#s;signal;maxDepth;includeChildMatches;constructor(e,t,i){if(this.patterns=e,this.path=t,this.opts=i,this.#s=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#t=Iw(i.ignore??[],i),!this.includeChildMatches&&typeof this.#t.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#i(e){var t,i;return this.seen.has(e)||!!((i=(t=this.#t)==null?void 0:t.ignored)!=null&&i.call(t,e))}#o(e){var t,i;return!!((i=(t=this.#t)==null?void 0:t.childrenIgnored)!=null&&i.call(t,e))}pause(){this.paused=!0}resume(){var t;if((t=this.signal)!=null&&t.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){var t;(t=this.signal)!=null&&t.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&(s!=null&&s.isSymbolicLink())){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,t)}matchCheckTest(e,t){var i;return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!((i=e.realpathCached())!=null&&i.isDirectory()))&&!this.#i(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&(s!=null&&s.isSymbolicLink())){let o=s.realpathSync();o&&(o!=null&&o.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,t)}matchFinish(e,t){var s;if(this.#i(e))return;if(!this.includeChildMatches&&((s=this.#t)!=null&&s.add)){let o=`${e.relativePosix()}/**`;this.#t.add(o)}let i=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#s:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let o=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(o+n)}else{let o=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!o.startsWith(".."+this.#s)?"."+this.#s:"";this.matchEmit(o?a+o+n:"."+n)}}async match(e,t,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,t)}matchSync(e,t,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,t)}walkCB(e,t,i){var n;(n=this.signal)!=null&&n.aborted&&i(),this.walkCB2(e,t,new ti(this.opts),i)}walkCB2(e,t,i,n){var a;if(this.#o(e))return n();if((a=this.signal)!=null&&a.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,t,i,n));return}i.processPatterns(e,t);let s=1,o=()=>{--s===0&&n()};for(let[l,u,h]of i.matches.entries())this.#i(l)||(s++,this.match(l,u,h).then(()=>o()));for(let l of i.subwalkTargets()){if(this.maxDepth!==1/0&&l.depth()>=this.maxDepth)continue;s++;let u=l.readdirCached();l.calledReaddir()?this.walkCB3(l,u,i,o):l.readdirCB((h,f)=>this.walkCB3(l,f,i,o),!0)}o()}walkCB3(e,t,i,n){i=i.filterEntries(e,t);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#i(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,t,i){var n;(n=this.signal)!=null&&n.aborted&&i(),this.walkCB2Sync(e,t,new ti(this.opts),i)}walkCB2Sync(e,t,i,n){var a;if(this.#o(e))return n();if((a=this.signal)!=null&&a.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,i,n));return}i.processPatterns(e,t);let s=1,o=()=>{--s===0&&n()};for(let[l,u,h]of i.matches.entries())this.#i(l)||this.matchSync(l,u,h);for(let l of i.subwalkTargets()){if(this.maxDepth!==1/0&&l.depth()>=this.maxDepth)continue;s++;let u=l.readdirSync();this.walkCB3Sync(l,u,i,o)}o()}walkCB3Sync(e,t,i,n){i=i.filterEntries(e,t);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#i(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}},ri=class extends bn{matches=new Set;constructor(e,t,i){super(e,t,i)}matchEmit(e){this.matches.add(e)}async walk(){var e;if((e=this.signal)!=null&&e.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,i)=>{this.walkCB(this.path,this.patterns,()=>{var n;(n=this.signal)!=null&&n.aborted?i(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){var e;if((e=this.signal)!=null&&e.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{var t;if((t=this.signal)!=null&&t.aborted)throw this.signal.reason}),this.matches}},ii=class extends bn{results;constructor(e,t,i){super(e,t,i),this.results=new st({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var Fw=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ne=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,yf.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=t.platform||Fw,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=t.platform==="win32"?Xt:t.platform==="darwin"?ei:t.platform?er:mf;this.scurry=new l(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new we(l,n)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let h=a[u];if(!h)throw new Error("invalid pattern object");return new tr(l,h,0,this.platform)})}async walk(){return[...await new ri(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new ri(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new ii(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new ii(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var ko=(r,e={})=>{Array.isArray(r)||(r=[r]);for(let t of r)if(new we(t,e).hasMagic())return!0;return!1};function _n(r,e={}){return new Ne(r,e).streamSync()}function vf(r,e={}){return new Ne(r,e).stream()}function bf(r,e={}){return new Ne(r,e).walkSync()}async function wf(r,e={}){return new Ne(r,e).walk()}function xn(r,e={}){return new Ne(r,e).iterateSync()}function Sf(r,e={}){return new Ne(r,e).iterate()}var jw=_n,$w=Object.assign(vf,{sync:_n}),Bw=xn,Uw=Object.assign(Sf,{sync:xn}),zw=Object.assign(bf,{stream:_n,iterate:xn}),Sn=Object.assign(wf,{glob:wf,globSync:bf,sync:zw,globStream:vf,stream:$w,globStreamSync:_n,streamSync:jw,globIterate:Sf,iterate:Uw,globIterateSync:xn,iterateSync:Bw,Glob:Ne,hasMagic:ko,escape:Vt,unescape:Le});Sn.glob=Sn;var ie=vr(wm(),1);function yl(r){let e=(0,ie.createLogger)({level:"debug",format:ie.format.combine(ie.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),ie.format.printf(({level:t,message:i,timestamp:n,...s})=>{let o=Object.keys(s).length?` ${JSON.stringify(s)}`:"";return`${n} [${t.toUpperCase()}] ${r}: ${i}${o}`})),transports:[new ie.transports.File({filename:`.report/${r}-success.log`,level:"info",format:ie.format.combine(ie.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),ie.format.printf(({message:t,timestamp:i,...n})=>{let s=Object.keys(n).length?` ${JSON.stringify(n)}`:"";return`${i} [SUCCESS] ${r}: ${t}${s}`}))}),new ie.transports.File({filename:`.report/${r}-issues.log`,level:"warn",format:ie.format.combine(ie.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),ie.format.printf(({level:t,message:i,timestamp:n,...s})=>{let o=Object.keys(s).length?` ${JSON.stringify(s)}`:"";return`${n} [${t.toUpperCase()}] ${r}: ${i}${o}`}))}),new ie.transports.File({filename:`.report/${r}-debug.log`,level:"debug"}),new ie.transports.Console({level:process.env.LOG==="true"?"debug":"info"})]});return{logger:e,logTransformResult(t,i){let{status:n,previousToken:s,nextToken:o,line:a,failureReason:l}=i,u=n==="success"?"info":n==="warning"?"warn":"error",h=a?`(line: ${a})`:"",f=`${t}${h}: ${s} -> ${o||"undefined"}`;e.log({level:u,message:f,...l&&{failureReason:l},metadata:i})},startFile(t){e.debug(`Starting transformation of ${t}`)},finishFile(t){e.debug(`Finished transformation of ${t}`)}}}function a2(r){let e=bh.find(t=>t.previous===r);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 l2(r){return r.replace(/var\(--seed-semantic-typography-([^-]+)-([^-]+)-([^)]+)\)/g,(e,t,i,n)=>{try{let s=`$semantic.typography.${t}${i.charAt(0).toUpperCase()+i.slice(1)}`,o=a2(s);if(!o)return e;let a="";switch(n){case"font-size":a=`--seed-font-size-${o.replace(/Regular|Medium|Bold/,"")}`;break;case"line-height":a=`--seed-line-height-${o.replace(/Regular|Medium|Bold/,"")}`;break;case"font-weight":o.includes("Regular")?a="--seed-font-weight-regular":o.includes("Medium")?a="--seed-font-weight-medium":o.includes("Bold")&&(a="--seed-font-weight-bold");break;case"letter-spacing":return"normal";default:return e}return`var(${a})`}catch(s){return console.error(`Error transforming token: ${e}`,s),e}})}var u2={postcssPlugin:"replace-css-typography-variable",Declaration(r){if(r.value.includes("var(--seed-semantic-typography")){let e=r.value,t=l2(e);e!==t&&(r.value=t)}}},bm=(r,e,t)=>{let i=yl("replace-css-typography-variable");if(!r.path.endsWith(".css"))return r.source;i.startFile(r.path);try{let n=yo([u2]),s=r.source,a=n.process(s,{from:r.path,parser:yo.parse}).sync().root.toString();return i.finishFile(r.path),a}catch(n){return console.error("Error processing CSS:",n),r.source}};function h2(r,e){let t=yl("replace-css-typography-variable"),i=[];for(let o of r)try{if(o.endsWith(".css")){i.push((0,vm.resolve)(o));continue}let a=Sn.sync(`${o}/**/*.css`,{ignore:["**/node_modules/**","**/dist/**","**/build/**"]});i=[...i,...a]}catch(a){console.error(`\uACBD\uB85C \uCC98\uB9AC \uC911 \uC624\uB958 \uBC1C\uC0DD: ${o}`,a)}let n=[...new Set(i)];if(n.length===0){console.log("\uBCC0\uD658\uD560 CSS \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");return}console.log(`\uCD1D ${n.length}\uAC1C\uC758 CSS \uD30C\uC77C\uC744 \uCC3E\uC558\uC2B5\uB2C8\uB2E4.`);let s=0;for(let o of n)try{let a=(0,Ts.readFileSync)(o,"utf8"),l=bm({path:o,source:a},null,{});a!==l&&((0,Ts.writeFileSync)(o,l,"utf8"),t.logTransformResult(o,{previousToken:o,nextToken:"transformed",status:"success"}),s++)}catch(a){console.error(`\uD30C\uC77C \uBCC0\uD658 \uC911 \uC624\uB958 \uBC1C\uC0DD: ${o}`,a),t.logTransformResult(o,{previousToken:o,nextToken:null,status:"failure",failureReason:a.message})}console.log(`CSS \uBCC0\uD658 \uC644\uB8CC: \uCD1D ${s}\uAC1C \uD30C\uC77C \uBCC0\uACBD\uB428`)}var f2=bm;0&&(module.exports={processCssFiles});
|
65
|
+
/*! Bundled license information:
|
45
66
|
|
46
|
-
|
47
|
-
|
48
|
-
`:"")+i)}};var En=[{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 vi=require("node:fs"),Oo=require("node:path");var Gn=Ae(In(),1);var wt=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>65536)throw new TypeError("pattern is too long")};var $a={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},yt=n=>n.replace(/[[\]\\-]/g,"\\$&"),ja=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bn=n=>n.join(""),Un=(n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let i=[],s=[],r=t+1,o=!1,a=!1,l=!1,h=!1,u=t,c="";e:for(;r<n.length;){let d=n.charAt(r);if((d==="!"||d==="^")&&r===t+1){h=!0,r++;continue}if(d==="]"&&o&&!l){u=r+1;break}if(o=!0,d==="\\"&&!l){l=!0,r++;continue}if(d==="["&&!l){for(let[m,[g,b,S]]of Object.entries($a))if(n.startsWith(m,r)){if(c)return["$.",!1,n.length-t,!0];r+=m.length,S?s.push(g):i.push(g),a=a||b;continue e}}if(l=!1,c){d>c?i.push(yt(c)+"-"+yt(d)):d===c&&i.push(yt(d)),c="",r++;continue}if(n.startsWith("-]",r+1)){i.push(yt(d+"-")),r+=2;continue}if(n.startsWith("-",r+1)){c=d,r+=2;continue}i.push(yt(d)),r++}if(u<r)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,n.length-t,!0];if(s.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!h){let d=i[0].length===2?i[0].slice(-1):i[0];return[ja(d),!1,u-t,!1]}let f="["+(h?"^":"")+Bn(i)+"]",p="["+(h?"":"^")+Bn(s)+"]";return[i.length&&s.length?"("+f+"|"+p+")":i.length?f:p,a,u-t,!0]};var Z=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var za=new Set(["!","?","+","*","@"]),$n=n=>za.has(n),Wa="(?!(?:^|/)\\.\\.?(?:$|/))",ti="(?!\\.)",qa=new Set(["[","."]),Ga=new Set(["..","."]),Va=new Set("().*{}+?[]^$\\!"),Ha=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hs="[^/]",jn=hs+"*?",zn=hs+"+?",Ie=class n{type;#e;#t;#n=!1;#s=[];#o;#S;#h;#c=!1;#l;#a;#r=!1;constructor(e,t,i={}){this.type=e,e&&(this.#t=!0),this.#o=t,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#h=this.#e===this?[]:this.#e.#h,e==="!"&&!this.#e.#c&&this.#h.push(this),this.#S=this.#o?this.#o.#s.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#s)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#s.map(e=>String(e)).join("|")+")":this.#a=this.#s.map(e=>String(e)).join("")}#g(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#h.pop();){if(e.type!=="!")continue;let t=e,i=t.#o;for(;i;){for(let s=t.#S+1;!i.type&&s<i.#s.length;s++)for(let r of e.#s){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(i.#s[s])}t=i,i=t.#o}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof n&&t.#o===this))throw new Error("invalid part: "+t);this.#s.push(t)}}toJSON(){var t;let e=this.type===null?this.#s.slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...this.#s.map(i=>i.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&((t=this.#o)==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(this.#e===this)return!0;if(!((t=this.#o)!=null&&t.isStart()))return!1;if(this.#S===0)return!0;let e=this.#o;for(let i=0;i<this.#S;i++){let s=e.#s[i];if(!(s instanceof n&&s.type==="!"))return!1}return!0}isEnd(){var t,i,s;if(this.#e===this||((t=this.#o)==null?void 0:t.type)==="!")return!0;if(!((i=this.#o)!=null&&i.isEnd()))return!1;if(!this.type)return(s=this.#o)==null?void 0:s.isEnd();let e=this.#o?this.#o.#s.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new n(this.type,e);for(let i of this.#s)t.copyIn(i);return t}static#w(e,t,i,s){let r=!1,o=!1,a=-1,l=!1;if(t.type===null){let p=i,w="";for(;p<e.length;){let d=e.charAt(p++);if(r||d==="\\"){r=!r,w+=d;continue}if(o){p===a+1?(d==="^"||d==="!")&&(l=!0):d==="]"&&!(p===a+2&&l)&&(o=!1),w+=d;continue}else if(d==="["){o=!0,a=p,l=!1,w+=d;continue}if(!s.noext&&$n(d)&&e.charAt(p)==="("){t.push(w),w="";let m=new n(d,t);p=n.#w(e,m,p,s),t.push(m);continue}w+=d}return t.push(w),p}let h=i+1,u=new n(null,t),c=[],f="";for(;h<e.length;){let p=e.charAt(h++);if(r||p==="\\"){r=!r,f+=p;continue}if(o){h===a+1?(p==="^"||p==="!")&&(l=!0):p==="]"&&!(h===a+2&&l)&&(o=!1),f+=p;continue}else if(p==="["){o=!0,a=h,l=!1,f+=p;continue}if($n(p)&&e.charAt(h)==="("){u.push(f),f="";let w=new n(p,u);u.push(w),h=n.#w(e,w,h,s);continue}if(p==="|"){u.push(f),f="",c.push(u),u=new n(null,t);continue}if(p===")")return f===""&&t.#s.length===0&&(t.#r=!0),u.push(f),f="",t.push(...c,u),h;f+=p}return t.type=null,t.#t=void 0,t.#s=[e.substring(i-1)],h}static fromGlob(e,t={}){let i=new n(null,void 0,t);return n.#w(e,i,0,t),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,i,s,r]=this.toRegExpSource();if(!(s||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#l}toRegExpSource(e){var l;let t=e??!!this.#l.dot;if(this.#e===this&&this.#g(),!this.type){let h=this.isStart()&&this.isEnd(),u=this.#s.map(w=>{let[d,m,g,b]=typeof w=="string"?n.#f(w,this.#t,h):w.toRegExpSource(e);return this.#t=this.#t||g,this.#n=this.#n||b,d}).join(""),c="";if(this.isStart()&&typeof this.#s[0]=="string"&&!(this.#s.length===1&&Ga.has(this.#s[0]))){let d=qa,m=t&&d.has(u.charAt(0))||u.startsWith("\\.")&&d.has(u.charAt(2))||u.startsWith("\\.\\.")&&d.has(u.charAt(4)),g=!t&&!e&&d.has(u.charAt(0));c=m?Wa:g?ti:""}let f="";return this.isEnd()&&this.#e.#c&&((l=this.#o)==null?void 0:l.type)==="!"&&(f="(?:$|\\/)"),[c+u+f,Z(u),this.#t=!!this.#t,this.#n]}let i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#p(t);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let h=this.toString();return this.#s=[h],this.type=null,this.#t=void 0,[h,Z(this.toString()),!1,!1]}let o=!i||e||t||!ti?"":this.#p(!0);o===r&&(o=""),o&&(r=`(?:${r})(?:${o})*?`);let a="";if(this.type==="!"&&this.#r)a=(this.isStart()&&!t?ti:"")+zn;else{let h=this.type==="!"?"))"+(this.isStart()&&!t&&!e?ti:"")+jn+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+r+h}return[a,Z(r),this.#t=!!this.#t,this.#n]}#p(e){return this.#s.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[i,s,r,o]=t.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#f(e,t,i=!1){let s=!1,r="",o=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(s){s=!1,r+=(Va.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?r+="\\\\":s=!0;continue}if(l==="["){let[h,u,c,f]=Un(e,a);if(c){r+=h,o=o||u,a+=c-1,t=t||f;continue}}if(l==="*"){i&&e==="*"?r+=zn:r+=jn,t=!0;continue}if(l==="?"){r+=hs,t=!0;continue}r+=Ha(l)}return[r,Z(e),!!t,o]}};var Be=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&");var $=(n,e,t={})=>(wt(e),!t.nocomment&&e.charAt(0)==="#"?!1:new G(e,t).match(n)),Qa=/^\*+([^+@!?\*\[\(]*)$/,Ja=n=>e=>!e.startsWith(".")&&e.endsWith(n),Ka=n=>e=>e.endsWith(n),Ya=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),Xa=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),Za=/^\*+\.\*+$/,eh=n=>!n.startsWith(".")&&n.includes("."),th=n=>n!=="."&&n!==".."&&n.includes("."),ih=/^\.\*+$/,sh=n=>n!=="."&&n!==".."&&n.startsWith("."),rh=/^\*+$/,nh=n=>n.length!==0&&!n.startsWith("."),oh=n=>n.length!==0&&n!=="."&&n!=="..",lh=/^\?+([^+@!?\*\[\(]*)?$/,ah=([n,e=""])=>{let t=Vn([n]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},hh=([n,e=""])=>{let t=Hn([n]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},uh=([n,e=""])=>{let t=Hn([n]);return e?i=>t(i)&&i.endsWith(e):t},ch=([n,e=""])=>{let t=Vn([n]);return e?i=>t(i)&&i.endsWith(e):t},Vn=([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},Hn=([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},Qn=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Wn={win32:{sep:"\\"},posix:{sep:"/"}},fh=Qn==="win32"?Wn.win32.sep:Wn.posix.sep;$.sep=fh;var D=Symbol("globstar **");$.GLOBSTAR=D;var ph="[^/]",dh=ph+"*?",mh="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",gh="(?:(?!(?:\\/|^)\\.).)*?",wh=(n,e={})=>t=>$(t,n,e);$.filter=wh;var Q=(n,e={})=>Object.assign({},n,e),yh=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return $;let e=$;return Object.assign((i,s,r={})=>e(i,s,Q(n,r)),{Minimatch:class extends e.Minimatch{constructor(s,r={}){super(s,Q(n,r))}static defaults(s){return e.defaults(Q(n,s)).Minimatch}},AST:class extends e.AST{constructor(s,r,o={}){super(s,r,Q(n,o))}static fromGlob(s,r={}){return e.AST.fromGlob(s,Q(n,r))}},unescape:(i,s={})=>e.unescape(i,Q(n,s)),escape:(i,s={})=>e.escape(i,Q(n,s)),filter:(i,s={})=>e.filter(i,Q(n,s)),defaults:i=>e.defaults(Q(n,i)),makeRe:(i,s={})=>e.makeRe(i,Q(n,s)),braceExpand:(i,s={})=>e.braceExpand(i,Q(n,s)),match:(i,s,r={})=>e.match(i,s,Q(n,r)),sep:e.sep,GLOBSTAR:D})};$.defaults=yh;var Jn=(n,e={})=>(wt(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:(0,Gn.default)(n));$.braceExpand=Jn;var bh=(n,e={})=>new G(n,e).makeRe();$.makeRe=bh;var Sh=(n,e,t={})=>{let i=new G(e,t);return n=n.filter(s=>i.match(s)),i.options.nonull&&!n.length&&n.push(e),n};$.match=Sh;var qn=/[?*]|[+@!]\(.*?\)|\[|\]/,vh=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),G=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){wt(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Qn,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((r,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=r[0]===""&&r[1]===""&&(r[2]==="?"||!qn.test(r[2]))&&!qn.test(r[3]),h=/^[a-z]:/i.test(r[0]);if(l)return[...r.slice(0,4),...r.slice(4).map(u=>this.parse(u))];if(h)return[r[0],...r.slice(1).map(u=>this.parse(u))]}return r.map(l=>this.parse(l))});if(this.debug(this.pattern,s),this.set=s.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let o=this.set[r];o[0]===""&&o[1]===""&&this.globParts[r][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let s=0;s<e[i].length;s++)e[i][s]==="**"&&(e[i][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let i=-1;for(;(i=t.indexOf("**",i+1))!==-1;){let s=i;for(;t[s+1]==="**";)s++;s!==i&&t.splice(i,s-i)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((i,s)=>{let r=i[i.length-1];return s==="**"&&r==="**"?i:s===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(i.pop(),i):(i.push(s),i)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let r=e[s];s===1&&r===""&&e[0]===""||(r==="."||r==="")&&(t=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let s=e[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(i-1,2),i-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let i of e){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let o=s;for(;i[o+1]==="**";)o++;o>s&&i.splice(s+1,o-s);let a=i[s+1],l=i[s+2],h=i[s+3];if(a!==".."||!l||l==="."||l===".."||!h||h==="."||h==="..")continue;t=!0,i.splice(s,1);let u=i.slice(0);u[s]="**",e.push(u),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(t=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(t=!0,i.pop())}let r=0;for(;(r=i.indexOf("..",r+1))!==-1;){let o=i[r-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let l=r===1&&i[r+1]==="**"?["."]:[];i.splice(r-1,2,...l),i.length===0&&i.push(""),r-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let i=t+1;i<e.length;i++){let s=this.partsMatch(e[t],e[i],!this.preserveMultipleSlashes);if(s){e[t]=[],e[i]=s;break}}return e.filter(t=>t.length)}partsMatch(e,t,i=!1){let s=0,r=0,o=[],a="";for(;s<e.length&&r<t.length;)if(e[s]===t[r])o.push(a==="b"?t[r]:e[s]),s++,r++;else if(i&&e[s]==="**"&&t[r]===e[s+1])o.push(e[s]),s++;else if(i&&t[r]==="**"&&e[s]===t[r+1])o.push(t[r]),r++;else if(e[s]==="*"&&t[r]&&(this.options.dot||!t[r].startsWith("."))&&t[r]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,r++}else if(t[r]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(t[r]),s++,r++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,i=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,i++;i&&(this.pattern=e.slice(i)),this.negate=t}matchOne(e,t,i=!1){let s=this.options;if(this.isWindows){let d=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),m=!d&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),b=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),S=m?3:d?0:void 0,v=b?3:g?0:void 0;if(typeof S=="number"&&typeof v=="number"){let[C,O]=[e[S],t[v]];C.toLowerCase()===O.toLowerCase()&&(t[v]=C,v>S?t=t.slice(v):S>v&&(e=e.slice(S)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,l=e.length,h=t.length;o<l&&a<h;o++,a++){this.debug("matchOne loop");var u=t[a],c=e[o];if(this.debug(t,u,c),u===!1)return!1;if(u===D){this.debug("GLOBSTAR",[t,u,c]);var f=o,p=a+1;if(p===h){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!s.dot&&e[o].charAt(0)===".")return!1;return!0}for(;f<l;){var w=e[f];if(this.debug(`
|
49
|
-
globstar while`,e,f,t,p,w),this.matchOne(e.slice(f),t.slice(p),i))return this.debug("globstar found match!",f,l,w),!0;if(w==="."||w===".."||!s.dot&&w.charAt(0)==="."){this.debug("dot detected!",e,f,t,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(i&&(this.debug(`
|
50
|
-
>>> no match, partial?`,e,f,t,p),f===l))}let d;if(typeof u=="string"?(d=c===u,this.debug("string match",u,c,d)):(d=u.test(c),this.debug("pattern match",u,c,d)),!d)return!1}if(o===l&&a===h)return!0;if(o===l)return i;if(a===h)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return Jn(this.pattern,this.options)}parse(e){wt(e);let t=this.options;if(e==="**")return D;if(e==="")return"";let i,s=null;(i=e.match(rh))?s=t.dot?oh:nh:(i=e.match(Qa))?s=(t.nocase?t.dot?Xa:Ya:t.dot?Ka:Ja)(i[1]):(i=e.match(lh))?s=(t.nocase?t.dot?hh:ah:t.dot?uh:ch)(i):(i=e.match(Za))?s=t.dot?th:eh:(i=e.match(ih))&&(s=sh);let r=Ie.fromGlob(e,this.options).toMMPattern();return s&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:s}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,i=t.noglobstar?dh:t.dot?mh:gh,s=new Set(t.nocase?["i"]:[]),r=e.map(l=>{let h=l.map(u=>{if(u instanceof RegExp)for(let c of u.flags.split(""))s.add(c);return typeof u=="string"?vh(u):u===D?D:u._src});return h.forEach((u,c)=>{let f=h[c+1],p=h[c-1];u!==D||p===D||(p===void 0?f!==void 0&&f!==D?h[c+1]="(?:\\/|"+i+"\\/)?"+f:h[c]=i:f===void 0?h[c-1]=p+"(?:\\/|"+i+")?":f!==D&&(h[c-1]=p+"(?:\\/|\\/"+i+"\\/)"+f,h[c+1]=D))}),h.filter(u=>u!==D).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];r="^"+o+r+a+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let r=this.set;this.debug(this.pattern,"set",r);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<r.length;a++){let l=r[a],h=s;if(i.matchBase&&l.length===1&&(h=[o]),this.matchOne(h,l,t))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return $.defaults(e).Minimatch}};$.AST=Ie;$.Minimatch=G;$.escape=Be;$.unescape=Z;var vo=require("node:url");var Ue=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Xn=new Set,us=typeof process=="object"&&process?process:{},Zn=(n,e,t,i)=>{typeof us.emitWarning=="function"?us.emitWarning(n,e,t,i):console.error(`[${t}] ${e}: ${n}`)},ii=globalThis.AbortController,Kn=globalThis.AbortSignal,Yn;if(typeof ii>"u"){Kn=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},ii=class{constructor(){e()}signal=new Kn;abort(i){var s,r;if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let o of this.signal._onabort)o(i);(r=(s=this.signal).onabort)==null||r.call(s,i)}}};let n=((Yn=us.env)==null?void 0:Yn.LRU_CACHE_IGNORE_AC_WARNING)!=="1",e=()=>{n&&(n=!1,Zn("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var xh=n=>!Xn.has(n),Dc=Symbol("type"),ge=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),eo=n=>ge(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?$e:null:null,$e=class extends Array{constructor(e){super(e),this.fill(0)}},cs=class n{heap;length;static#e=!1;static create(e){let t=eo(e);if(!t)return[];n.#e=!0;let i=new n(e,t);return n.#e=!1,i}constructor(e,t){if(!n.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},bt=class n{#e;#t;#n;#s;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#h;#c;#l;#a;#r;#g;#w;#p;#f;#C;#m;#E;#_;#b;#v;#x;#d;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#b,sizes:e.#E,keyMap:e.#l,keyList:e.#a,valList:e.#r,next:e.#g,prev:e.#w,get head(){return e.#p},get tail(){return e.#f},free:e.#C,isBackgroundFetch:t=>e.#u(t),backgroundFetch:(t,i,s,r)=>e.#B(t,i,s,r),moveToTail:t=>e.#$(t),indexes:t=>e.#A(t),rindexes:t=>e.#R(t),isStale:t=>e.#y(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#h}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#s}constructor(e){let{max:t=0,ttl:i,ttlResolution:s=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:h,disposeAfter:u,noDisposeOnSet:c,noUpdateTTL:f,maxSize:p=0,maxEntrySize:w=0,sizeCalculation:d,fetchMethod:m,memoMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:C,ignoreFetchAbort:O}=e;if(t!==0&&!ge(t))throw new TypeError("max option must be a nonnegative integer");let W=t?eo(t):Array;if(!W)throw new Error("invalid max value: "+t);if(this.#e=t,this.#t=p,this.maxEntrySize=w||this.#t,this.sizeCalculation=d,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=g,m!==void 0&&typeof m!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=m,this.#x=!!m,this.#l=new Map,this.#a=new Array(t).fill(void 0),this.#r=new Array(t).fill(void 0),this.#g=new W(t),this.#w=new W(t),this.#p=0,this.#f=0,this.#C=cs.create(t),this.#h=0,this.#c=0,typeof h=="function"&&(this.#n=h),typeof u=="function"?(this.#s=u,this.#m=[]):(this.#s=void 0,this.#m=void 0),this.#v=!!this.#n,this.#d=!!this.#s,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!O,this.maxEntrySize!==0){if(this.#t!==0&&!ge(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!ge(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#L()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ge(s)||s===0?s:1,this.ttlAutopurge=!!r,this.ttl=i||0,this.ttl){if(!ge(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#M()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let z="LRU_CACHE_UNBOUNDED";xh(z)&&(Xn.add(z),Zn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",z,n))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#M(){let e=new $e(this.#e),t=new $e(this.#e);this.#b=e,this.#_=t,this.#k=(r,o,a=Ue.now())=>{if(t[r]=o!==0?a:0,e[r]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#y(r)&&this.#T(this.#a[r],"expire")},o+1);l.unref&&l.unref()}},this.#O=r=>{t[r]=e[r]!==0?Ue.now():0},this.#i=(r,o)=>{if(e[o]){let a=e[o],l=t[o];if(!a||!l)return;r.ttl=a,r.start=l,r.now=i||s();let h=r.now-l;r.remainingTTL=a-h}};let i=0,s=()=>{let r=Ue.now();if(this.ttlResolution>0){i=r;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return r};this.getRemainingTTL=r=>{let o=this.#l.get(r);if(o===void 0)return 0;let a=e[o],l=t[o];if(!a||!l)return 1/0;let h=(i||s())-l;return a-h},this.#y=r=>{let o=t[r],a=e[r];return!!a&&!!o&&(i||s())-o>a}}#O=()=>{};#i=()=>{};#k=()=>{};#y=()=>!1;#L(){let e=new $e(this.#e);this.#c=0,this.#E=e,this.#N=t=>{this.#c-=e[t],e[t]=0},this.#D=(t,i,s,r)=>{if(this.#u(i))return 0;if(!ge(s))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(s=r(i,t),!ge(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#P=(t,i,s)=>{if(e[t]=i,this.#t){let r=this.#t-e[t];for(;this.#c>r;)this.#I(!0)}this.#c+=e[t],s&&(s.entrySize=i,s.totalCalculatedSize=this.#c)}}#N=e=>{};#P=(e,t,i)=>{};#D=(e,t,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#A({allowStale:e=this.allowStale}={}){if(this.#h)for(let t=this.#f;!(!this.#F(t)||((e||!this.#y(t))&&(yield t),t===this.#p));)t=this.#w[t]}*#R({allowStale:e=this.allowStale}={}){if(this.#h)for(let t=this.#p;!(!this.#F(t)||((e||!this.#y(t))&&(yield t),t===this.#f));)t=this.#g[t]}#F(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#A())this.#r[e]!==void 0&&this.#a[e]!==void 0&&!this.#u(this.#r[e])&&(yield[this.#a[e],this.#r[e]])}*rentries(){for(let e of this.#R())this.#r[e]!==void 0&&this.#a[e]!==void 0&&!this.#u(this.#r[e])&&(yield[this.#a[e],this.#r[e]])}*keys(){for(let e of this.#A()){let t=this.#a[e];t!==void 0&&!this.#u(this.#r[e])&&(yield t)}}*rkeys(){for(let e of this.#R()){let t=this.#a[e];t!==void 0&&!this.#u(this.#r[e])&&(yield t)}}*values(){for(let e of this.#A())this.#r[e]!==void 0&&!this.#u(this.#r[e])&&(yield this.#r[e])}*rvalues(){for(let e of this.#R())this.#r[e]!==void 0&&!this.#u(this.#r[e])&&(yield this.#r[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#A()){let s=this.#r[i],r=this.#u(s)?s.__staleWhileFetching:s;if(r!==void 0&&e(r,this.#a[i],this))return this.get(this.#a[i],t)}}forEach(e,t=this){for(let i of this.#A()){let s=this.#r[i],r=this.#u(s)?s.__staleWhileFetching:s;r!==void 0&&e.call(t,r,this.#a[i],this)}}rforEach(e,t=this){for(let i of this.#R()){let s=this.#r[i],r=this.#u(s)?s.__staleWhileFetching:s;r!==void 0&&e.call(t,r,this.#a[i],this)}}purgeStale(){let e=!1;for(let t of this.#R({allowStale:!0}))this.#y(t)&&(this.#T(this.#a[t],"expire"),e=!0);return e}info(e){let t=this.#l.get(e);if(t===void 0)return;let i=this.#r[t],s=this.#u(i)?i.__staleWhileFetching:i;if(s===void 0)return;let r={value:s};if(this.#b&&this.#_){let o=this.#b[t],a=this.#_[t];if(o&&a){let l=o-(Ue.now()-a);r.ttl=l,r.start=Date.now()}}return this.#E&&(r.size=this.#E[t]),r}dump(){let e=[];for(let t of this.#A({allowStale:!0})){let i=this.#a[t],s=this.#r[t],r=this.#u(s)?s.__staleWhileFetching:s;if(r===void 0||i===void 0)continue;let o={value:r};if(this.#b&&this.#_){o.ttl=this.#b[t];let a=Ue.now()-this.#_[t];o.start=Math.floor(Date.now()-a)}this.#E&&(o.size=this.#E[t]),e.unshift([i,o])}return e}load(e){this.clear();for(let[t,i]of e){if(i.start){let s=Date.now()-i.start;i.start=Ue.now()-s}this.set(t,i.value,i)}}set(e,t,i={}){var f,p,w,d,m;if(t===void 0)return this.delete(e),this;let{ttl:s=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:h=this.noUpdateTTL}=i,u=this.#D(e,t,i.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#T(e,"set"),this;let c=this.#h===0?void 0:this.#l.get(e);if(c===void 0)c=this.#h===0?this.#f:this.#C.length!==0?this.#C.pop():this.#h===this.#e?this.#I(!1):this.#h,this.#a[c]=e,this.#r[c]=t,this.#l.set(e,c),this.#g[this.#f]=c,this.#w[c]=this.#f,this.#f=c,this.#h++,this.#P(c,u,l),l&&(l.set="add"),h=!1;else{this.#$(c);let g=this.#r[c];if(t!==g){if(this.#x&&this.#u(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:b}=g;b!==void 0&&!o&&(this.#v&&((f=this.#n)==null||f.call(this,b,e,"set")),this.#d&&((p=this.#m)==null||p.push([b,e,"set"])))}else o||(this.#v&&((w=this.#n)==null||w.call(this,g,e,"set")),this.#d&&((d=this.#m)==null||d.push([g,e,"set"])));if(this.#N(c),this.#P(c,u,l),this.#r[c]=t,l){l.set="replace";let b=g&&this.#u(g)?g.__staleWhileFetching:g;b!==void 0&&(l.oldValue=b)}}else l&&(l.set="update")}if(s!==0&&!this.#b&&this.#M(),this.#b&&(h||this.#k(c,s,r),l&&this.#i(l,c)),!o&&this.#d&&this.#m){let g=this.#m,b;for(;b=g==null?void 0:g.shift();)(m=this.#s)==null||m.call(this,...b)}return this}pop(){var e;try{for(;this.#h;){let t=this.#r[this.#p];if(this.#I(!0),this.#u(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#d&&this.#m){let t=this.#m,i;for(;i=t==null?void 0:t.shift();)(e=this.#s)==null||e.call(this,...i)}}}#I(e){var r,o;let t=this.#p,i=this.#a[t],s=this.#r[t];return this.#x&&this.#u(s)?s.__abortController.abort(new Error("evicted")):(this.#v||this.#d)&&(this.#v&&((r=this.#n)==null||r.call(this,s,i,"evict")),this.#d&&((o=this.#m)==null||o.push([s,i,"evict"]))),this.#N(t),e&&(this.#a[t]=void 0,this.#r[t]=void 0,this.#C.push(t)),this.#h===1?(this.#p=this.#f=0,this.#C.length=0):this.#p=this.#g[t],this.#l.delete(i),this.#h--,t}has(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=t,r=this.#l.get(e);if(r!==void 0){let o=this.#r[r];if(this.#u(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#y(r))s&&(s.has="stale",this.#i(s,r));else return i&&this.#O(r),s&&(s.has="hit",this.#i(s,r)),!0}else s&&(s.has="miss");return!1}peek(e,t={}){let{allowStale:i=this.allowStale}=t,s=this.#l.get(e);if(s===void 0||!i&&this.#y(s))return;let r=this.#r[s];return this.#u(r)?r.__staleWhileFetching:r}#B(e,t,i,s){let r=t===void 0?void 0:this.#r[t];if(this.#u(r))return r;let o=new ii,{signal:a}=i;a==null||a.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:s},h=(d,m=!1)=>{let{aborted:g}=o.signal,b=i.ignoreFetchAbort&&d!==void 0;if(i.status&&(g&&!m?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,b&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),g&&!b&&!m)return c(o.signal.reason);let S=p;return this.#r[t]===p&&(d===void 0?S.__staleWhileFetching?this.#r[t]=S.__staleWhileFetching:this.#T(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,d,l.options))),d},u=d=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=d),c(d)),c=d=>{let{aborted:m}=o.signal,g=m&&i.allowStaleOnFetchAbort,b=g||i.allowStaleOnFetchRejection,S=b||i.noDeleteOnFetchRejection,v=p;if(this.#r[t]===p&&(!S||v.__staleWhileFetching===void 0?this.#T(e,"fetch"):g||(this.#r[t]=v.__staleWhileFetching)),b)return i.status&&v.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),v.__staleWhileFetching;if(v.__returned===v)throw d},f=(d,m)=>{var b;let g=(b=this.#o)==null?void 0:b.call(this,e,r,l);g&&g instanceof Promise&&g.then(S=>d(S===void 0?void 0:S),m),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(d(void 0),i.allowStaleOnFetchAbort&&(d=S=>h(S,!0)))})};i.status&&(i.status.fetchDispatched=!0);let p=new Promise(f).then(h,u),w=Object.assign(p,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return t===void 0?(this.set(e,w,{...l.options,status:void 0}),t=this.#l.get(e)):this.#r[t]=w,w}#u(e){if(!this.#x)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof ii}async fetch(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,context:d,forceRefresh:m=!1,status:g,signal:b}=t;if(!this.#x)return g&&(g.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:g});let S={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:h,noUpdateTTL:u,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:w,ignoreFetchAbort:p,status:g,signal:b},v=this.#l.get(e);if(v===void 0){g&&(g.fetch="miss");let C=this.#B(e,v,S,d);return C.__returned=C}else{let C=this.#r[v];if(this.#u(C)){let Se=i&&C.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",Se&&(g.returnedStale=!0)),Se?C.__staleWhileFetching:C.__returned=C}let O=this.#y(v);if(!m&&!O)return g&&(g.fetch="hit"),this.#$(v),s&&this.#O(v),g&&this.#i(g,v),C;let W=this.#B(e,v,S,d),B=W.__staleWhileFetching!==void 0&&i;return g&&(g.fetch=O?"stale":"refresh",B&&O&&(g.returnedStale=!0)),B?W.__staleWhileFetching:W.__returned=W}}async forceFetch(e,t={}){let i=await this.fetch(e,t);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,t={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:s,forceRefresh:r,...o}=t,a=this.get(e,o);if(!r&&a!==void 0)return a;let l=i(e,a,{options:o,context:s});return this.set(e,l,o),l}get(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=t,a=this.#l.get(e);if(a!==void 0){let l=this.#r[a],h=this.#u(l);return o&&this.#i(o,a),this.#y(a)?(o&&(o.get="stale"),h?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(r||this.#T(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),h?l.__staleWhileFetching:(this.#$(a),s&&this.#O(a),l))}else o&&(o.get="miss")}#U(e,t){this.#w[t]=e,this.#g[e]=t}#$(e){e!==this.#f&&(e===this.#p?this.#p=this.#g[e]:this.#U(this.#w[e],this.#g[e]),this.#U(this.#f,e),this.#f=e)}delete(e){return this.#T(e,"delete")}#T(e,t){var s,r,o,a;let i=!1;if(this.#h!==0){let l=this.#l.get(e);if(l!==void 0)if(i=!0,this.#h===1)this.#j(t);else{this.#N(l);let h=this.#r[l];if(this.#u(h)?h.__abortController.abort(new Error("deleted")):(this.#v||this.#d)&&(this.#v&&((s=this.#n)==null||s.call(this,h,e,t)),this.#d&&((r=this.#m)==null||r.push([h,e,t]))),this.#l.delete(e),this.#a[l]=void 0,this.#r[l]=void 0,l===this.#f)this.#f=this.#w[l];else if(l===this.#p)this.#p=this.#g[l];else{let u=this.#w[l];this.#g[u]=this.#g[l];let c=this.#g[l];this.#w[c]=this.#w[l]}this.#h--,this.#C.push(l)}}if(this.#d&&((o=this.#m)!=null&&o.length)){let l=this.#m,h;for(;h=l==null?void 0:l.shift();)(a=this.#s)==null||a.call(this,...h)}return i}clear(){return this.#j("delete")}#j(e){var t,i,s;for(let r of this.#R({allowStale:!0})){let o=this.#r[r];if(this.#u(o))o.__abortController.abort(new Error("deleted"));else{let a=this.#a[r];this.#v&&((t=this.#n)==null||t.call(this,o,a,e)),this.#d&&((i=this.#m)==null||i.push([o,a,e]))}}if(this.#l.clear(),this.#r.fill(void 0),this.#a.fill(void 0),this.#b&&this.#_&&(this.#b.fill(0),this.#_.fill(0)),this.#E&&this.#E.fill(0),this.#p=0,this.#f=0,this.#C.length=0,this.#c=0,this.#h=0,this.#d&&this.#m){let r=this.#m,o;for(;o=r==null?void 0:r.shift();)(s=this.#s)==null||s.call(this,...o)}}};var We=require("node:path"),uo=require("node:url"),oe=require("fs"),kh=Ae(require("node:fs"),1),be=require("node:fs/promises");var hi=require("node:events"),ys=Ae(require("node:stream"),1),no=require("node:string_decoder"),to=typeof process=="object"&&process?process:{stdout:null,stderr:null},Ch=n=>!!n&&typeof n=="object"&&(n instanceof ye||n instanceof ys.default||Eh(n)||_h(n)),Eh=n=>!!n&&typeof n=="object"&&n instanceof hi.EventEmitter&&typeof n.pipe=="function"&&n.pipe!==ys.default.Writable.prototype.pipe,_h=n=>!!n&&typeof n=="object"&&n instanceof hi.EventEmitter&&typeof n.write=="function"&&typeof n.end=="function",ce=Symbol("EOF"),fe=Symbol("maybeEmitEnd"),we=Symbol("emittedEnd"),si=Symbol("emittingEnd"),St=Symbol("emittedError"),ri=Symbol("closed"),io=Symbol("read"),ni=Symbol("flush"),so=Symbol("flushChunk"),ee=Symbol("encoding"),je=Symbol("decoder"),T=Symbol("flowing"),vt=Symbol("paused"),ze=Symbol("resume"),k=Symbol("buffer"),j=Symbol("pipes"),N=Symbol("bufferLength"),fs=Symbol("bufferPush"),oi=Symbol("bufferShift"),F=Symbol("objectMode"),M=Symbol("destroyed"),ps=Symbol("error"),ds=Symbol("emitData"),ro=Symbol("emitEnd"),ms=Symbol("emitEnd2"),re=Symbol("async"),gs=Symbol("abort"),li=Symbol("aborted"),xt=Symbol("signal"),_e=Symbol("dataListeners"),V=Symbol("discarded"),Ct=n=>Promise.resolve().then(n),Oh=n=>n(),Ah=n=>n==="end"||n==="finish"||n==="prefinish",Rh=n=>n instanceof ArrayBuffer||!!n&&typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,Mh=n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n),ai=class{src;dest;opts;ondrain;constructor(e,t,i){this.src=e,this.dest=t,this.opts=i,this.ondrain=()=>e[ze](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},ws=class extends ai{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,i){super(e,t,i),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors)}},Lh=n=>!!n.objectMode,Th=n=>!n.objectMode&&!!n.encoding&&n.encoding!=="buffer",ye=class extends hi.EventEmitter{[T]=!1;[vt]=!1;[j]=[];[k]=[];[F];[ee];[re];[je];[ce]=!1;[we]=!1;[si]=!1;[ri]=!1;[St]=null;[N]=0;[M]=!1;[xt];[li]=!1;[_e]=0;[V]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");Lh(t)?(this[F]=!0,this[ee]=null):Th(t)?(this[ee]=t.encoding,this[F]=!1):(this[F]=!1,this[ee]=null),this[re]=!!t.async,this[je]=this[ee]?new no.StringDecoder(this[ee]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[k]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[j]});let{signal:i}=t;i&&(this[xt]=i,i.aborted?this[gs]():i.addEventListener("abort",()=>this[gs]()))}get bufferLength(){return this[N]}get encoding(){return this[ee]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[F]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[re]}set async(e){this[re]=this[re]||!!e}[gs](){var e,t;this[li]=!0,this.emit("abort",(e=this[xt])==null?void 0:e.reason),this.destroy((t=this[xt])==null?void 0:t.reason)}get aborted(){return this[li]}set aborted(e){}write(e,t,i){var r;if(this[li])return!1;if(this[ce])throw new Error("write after end");if(this[M])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8");let s=this[re]?Ct:Oh;if(!this[F]&&!Buffer.isBuffer(e)){if(Mh(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(Rh(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[F]?(this[T]&&this[N]!==0&&this[ni](!0),this[T]?this.emit("data",e):this[fs](e),this[N]!==0&&this.emit("readable"),i&&s(i),this[T]):e.length?(typeof e=="string"&&!(t===this[ee]&&!((r=this[je])!=null&&r.lastNeed))&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[ee]&&(e=this[je].write(e)),this[T]&&this[N]!==0&&this[ni](!0),this[T]?this.emit("data",e):this[fs](e),this[N]!==0&&this.emit("readable"),i&&s(i),this[T]):(this[N]!==0&&this.emit("readable"),i&&s(i),this[T])}read(e){if(this[M])return null;if(this[V]=!1,this[N]===0||e===0||e&&e>this[N])return this[fe](),null;this[F]&&(e=null),this[k].length>1&&!this[F]&&(this[k]=[this[ee]?this[k].join(""):Buffer.concat(this[k],this[N])]);let t=this[io](e||null,this[k][0]);return this[fe](),t}[io](e,t){if(this[F])this[oi]();else{let i=t;e===i.length||e===null?this[oi]():typeof i=="string"?(this[k][0]=i.slice(e),t=i.slice(0,e),this[N]-=e):(this[k][0]=i.subarray(e),t=i.subarray(0,e),this[N]-=e)}return this.emit("data",t),!this[k].length&&!this[ce]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t="utf8"),e!==void 0&&this.write(e,t),i&&this.once("end",i),this[ce]=!0,this.writable=!1,(this[T]||!this[vt])&&this[fe](),this}[ze](){this[M]||(!this[_e]&&!this[j].length&&(this[V]=!0),this[vt]=!1,this[T]=!0,this.emit("resume"),this[k].length?this[ni]():this[ce]?this[fe]():this.emit("drain"))}resume(){return this[ze]()}pause(){this[T]=!1,this[vt]=!0,this[V]=!1}get destroyed(){return this[M]}get flowing(){return this[T]}get paused(){return this[vt]}[fs](e){this[F]?this[N]+=1:this[N]+=e.length,this[k].push(e)}[oi](){return this[F]?this[N]-=1:this[N]-=this[k][0].length,this[k].shift()}[ni](e=!1){do;while(this[so](this[oi]())&&this[k].length);!e&&!this[k].length&&!this[ce]&&this.emit("drain")}[so](e){return this.emit("data",e),this[T]}pipe(e,t){if(this[M])return e;this[V]=!1;let i=this[we];return t=t||{},e===to.stdout||e===to.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,i?t.end&&e.end():(this[j].push(t.proxyErrors?new ws(this,e,t):new ai(this,e,t)),this[re]?Ct(()=>this[ze]()):this[ze]()),e}unpipe(e){let t=this[j].find(i=>i.dest===e);t&&(this[j].length===1?(this[T]&&this[_e]===0&&(this[T]=!1),this[j]=[]):this[j].splice(this[j].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let i=super.on(e,t);if(e==="data")this[V]=!1,this[_e]++,!this[j].length&&!this[T]&&this[ze]();else if(e==="readable"&&this[N]!==0)super.emit("readable");else if(Ah(e)&&this[we])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[St]){let s=t;this[re]?Ct(()=>s.call(this,this[St])):s.call(this,this[St])}return i}removeListener(e,t){return this.off(e,t)}off(e,t){let i=super.off(e,t);return e==="data"&&(this[_e]=this.listeners("data").length,this[_e]===0&&!this[V]&&!this[j].length&&(this[T]=!1)),i}removeAllListeners(e){let t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[_e]=0,!this[V]&&!this[j].length&&(this[T]=!1)),t}get emittedEnd(){return this[we]}[fe](){!this[si]&&!this[we]&&!this[M]&&this[k].length===0&&this[ce]&&(this[si]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ri]&&this.emit("close"),this[si]=!1)}emit(e,...t){let i=t[0];if(e!=="error"&&e!=="close"&&e!==M&&this[M])return!1;if(e==="data")return!this[F]&&!i?!1:this[re]?(Ct(()=>this[ds](i)),!0):this[ds](i);if(e==="end")return this[ro]();if(e==="close"){if(this[ri]=!0,!this[we]&&!this[M])return!1;let r=super.emit("close");return this.removeAllListeners("close"),r}else if(e==="error"){this[St]=i,super.emit(ps,i);let r=!this[xt]||this.listeners("error").length?super.emit("error",i):!1;return this[fe](),r}else if(e==="resume"){let r=super.emit("resume");return this[fe](),r}else if(e==="finish"||e==="prefinish"){let r=super.emit(e);return this.removeAllListeners(e),r}let s=super.emit(e,...t);return this[fe](),s}[ds](e){for(let i of this[j])i.dest.write(e)===!1&&this.pause();let t=this[V]?!1:super.emit("data",e);return this[fe](),t}[ro](){return this[we]?!1:(this[we]=!0,this.readable=!1,this[re]?(Ct(()=>this[ms]()),!0):this[ms]())}[ms](){if(this[je]){let t=this[je].end();if(t){for(let i of this[j])i.dest.write(t);this[V]||super.emit("data",t)}}for(let t of this[j])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[F]||(e.dataLength=0);let t=this.promise();return this.on("data",i=>{e.push(i),this[F]||(e.dataLength+=i.length)}),await t,e}async concat(){if(this[F])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[ee]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(M,()=>t(new Error("stream destroyed"))),this.on("error",i=>t(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[V]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[ce])return t();let r,o,a=c=>{this.off("data",l),this.off("end",h),this.off(M,u),t(),o(c)},l=c=>{this.off("error",a),this.off("end",h),this.off(M,u),this.pause(),r({value:c,done:!!this[ce]})},h=()=>{this.off("error",a),this.off("data",l),this.off(M,u),t(),r({done:!0,value:void 0})},u=()=>a(new Error("stream destroyed"));return new Promise((c,f)=>{o=f,r=c,this.once(M,u),this.once("error",a),this.once("end",h),this.once("data",l)})},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[V]=!1;let e=!1,t=()=>(this.pause(),this.off(ps,t),this.off(M,t),this.off("end",t),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return t();let s=this.read();return s===null?t():{done:!1,value:s}};return this.once("end",t),this.once(ps,t),this.once(M,t),{next:i,throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[M])return e?this.emit("error",e):this.emit(M),this;this[M]=!0,this[V]=!0,this[k].length=0,this[N]=0;let t=this;return typeof t.close=="function"&&!this[ri]&&t.close(),e?this.emit("error",e):this.emit(M),this}static get isStream(){return Ch}};var Nh=oe.realpathSync.native,_t={lstatSync:oe.lstatSync,readdir:oe.readdir,readdirSync:oe.readdirSync,readlinkSync:oe.readlinkSync,realpathSync:Nh,promises:{lstat:be.lstat,readdir:be.readdir,readlink:be.readlink,realpath:be.realpath}},co=n=>!n||n===_t||n===kh?_t:{..._t,...n,promises:{..._t.promises,...n.promises||{}}},fo=/^\\\\\?\\([a-z]:)\\?$/i,Ph=n=>n.replace(/\//g,"\\").replace(fo,"$1\\"),Dh=/[\\\/]/,K=0,po=1,mo=2,ne=4,go=6,wo=8,Oe=10,yo=12,J=15,Et=~J,bs=16,oo=32,Ot=64,te=128,ui=256,fi=512,lo=Ot|te|fi,Fh=1023,Ss=n=>n.isFile()?wo:n.isDirectory()?ne:n.isSymbolicLink()?Oe:n.isCharacterDevice()?mo:n.isBlockDevice()?go:n.isSocket()?yo:n.isFIFO()?po:K,ao=new Map,At=n=>{let e=ao.get(n);if(e)return e;let t=n.normalize("NFKD");return ao.set(n,t),t},ho=new Map,ci=n=>{let e=ho.get(n);if(e)return e;let t=At(n.toLowerCase());return ho.set(n,t),t},pi=class extends bt{constructor(){super({max:256})}},vs=class extends bt{constructor(e=16*1024){super({maxSize:e,sizeCalculation:t=>t.length+1})}},bo=Symbol("PathScurry setAsCwd"),I=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#n;get mode(){return this.#n}#s;get nlink(){return this.#s}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#h;get rdev(){return this.#h}#c;get blksize(){return this.#c}#l;get ino(){return this.#l}#a;get size(){return this.#a}#r;get blocks(){return this.#r}#g;get atimeMs(){return this.#g}#w;get mtimeMs(){return this.#w}#p;get ctimeMs(){return this.#p}#f;get birthtimeMs(){return this.#f}#C;get atime(){return this.#C}#m;get mtime(){return this.#m}#E;get ctime(){return this.#E}#_;get birthtime(){return this.#_}#b;#v;#x;#d;#M;#O;#i;#k;#y;#L;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=K,i,s,r,o,a){this.name=e,this.#b=r?ci(e):At(e),this.#i=t&Fh,this.nocase=r,this.roots=s,this.root=i||this,this.#k=o,this.#x=a.fullpath,this.#M=a.relative,this.#O=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=co(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#k}resolve(e){if(!e)return this;let t=this.getRootString(e),s=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#N(s):this.#N(s)}#N(e){let t=this;for(let i of e)t=t.child(i);return t}children(){let e=this.#k.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#k.set(this,t),this.#i&=~bs,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),s=this.nocase?ci(e):At(e);for(let l of i)if(l.#b===s)return l;let r=this.parent?this.sep:"",o=this.#x?this.#x+r+e:void 0,a=this.newChild(e,K,{...t,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=te),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#M!==void 0)return this.#M;let e=this.name,t=this.parent;if(!t)return this.#M=this.name;let i=t.relative();return i+(!i||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#O!==void 0)return this.#O;let e=this.name,t=this.parent;if(!t)return this.#O=this.fullpathPosix();let i=t.relativePosix();return i+(!i||!t.parent?"":"/")+e}fullpath(){if(this.#x!==void 0)return this.#x;let e=this.name,t=this.parent;if(!t)return this.#x=this.name;let s=t.fullpath()+(t.parent?this.sep:"")+e;return this.#x=s}fullpathPosix(){if(this.#d!==void 0)return this.#d;if(this.sep==="/")return this.#d=this.fullpath();if(!this.parent){let s=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(s)?this.#d=`//?/${s}`:this.#d=s}let e=this.parent,t=e.fullpathPosix(),i=t+(!t||!e.parent?"":"/")+this.name;return this.#d=i}isUnknown(){return(this.#i&J)===K}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&J)===wo}isDirectory(){return(this.#i&J)===ne}isCharacterDevice(){return(this.#i&J)===mo}isBlockDevice(){return(this.#i&J)===go}isFIFO(){return(this.#i&J)===po}isSocket(){return(this.#i&J)===yo}isSymbolicLink(){return(this.#i&Oe)===Oe}lstatCached(){return this.#i&oo?this:void 0}readlinkCached(){return this.#y}realpathCached(){return this.#L}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#y)return!0;if(!this.parent)return!1;let e=this.#i&J;return!(e!==K&&e!==Oe||this.#i&ui||this.#i&te)}calledReaddir(){return!!(this.#i&bs)}isENOENT(){return!!(this.#i&te)}isNamed(e){return this.nocase?this.#b===ci(e):this.#b===At(e)}async readlink(){var t;let e=this.#y;if(e)return e;if(this.canReadlink()&&this.parent)try{let i=await this.#e.promises.readlink(this.fullpath()),s=(t=await this.parent.realpath())==null?void 0:t.resolve(i);if(s)return this.#y=s}catch(i){this.#u(i.code);return}}readlinkSync(){var t;let e=this.#y;if(e)return e;if(this.canReadlink()&&this.parent)try{let i=this.#e.readlinkSync(this.fullpath()),s=(t=this.parent.realpathSync())==null?void 0:t.resolve(i);if(s)return this.#y=s}catch(i){this.#u(i.code);return}}#P(e){this.#i|=bs;for(let t=e.provisional;t<e.length;t++){let i=e[t];i&&i.#D()}}#D(){this.#i&te||(this.#i=(this.#i|te)&Et,this.#A())}#A(){let e=this.children();e.provisional=0;for(let t of e)t.#D()}#R(){this.#i|=fi,this.#F()}#F(){if(this.#i&Ot)return;let e=this.#i;(e&J)===ne&&(e&=Et),this.#i=e|Ot,this.#A()}#I(e=""){e==="ENOTDIR"||e==="EPERM"?this.#F():e==="ENOENT"?this.#D():this.children().provisional=0}#B(e=""){e==="ENOTDIR"?this.parent.#F():e==="ENOENT"&&this.#D()}#u(e=""){let t=this.#i;t|=ui,e==="ENOENT"&&(t|=te),(e==="EINVAL"||e==="UNKNOWN")&&(t&=Et),this.#i=t,e==="ENOTDIR"&&this.parent&&this.parent.#F()}#U(e,t){return this.#T(e,t)||this.#$(e,t)}#$(e,t){let i=Ss(e),s=this.newChild(e.name,i,{parent:this}),r=s.#i&J;return r!==ne&&r!==Oe&&r!==K&&(s.#i|=Ot),t.unshift(s),t.provisional++,s}#T(e,t){for(let i=t.provisional;i<t.length;i++){let s=t[i];if((this.nocase?ci(e.name):At(e.name))===s.#b)return this.#j(e,s,i,t)}}#j(e,t,i,s){let r=t.name;return t.#i=t.#i&Et|Ss(e),r!==e.name&&(t.name=e.name),i!==s.provisional&&(i===s.length-1?s.pop():s.splice(i,1),s.unshift(t)),s.provisional++,t}async lstat(){if((this.#i&te)===0)try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#B(e.code)}}lstatSync(){if((this.#i&te)===0)try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#B(e.code)}}#G(e){let{atime:t,atimeMs:i,birthtime:s,birthtimeMs:r,blksize:o,blocks:a,ctime:l,ctimeMs:h,dev:u,gid:c,ino:f,mode:p,mtime:w,mtimeMs:d,nlink:m,rdev:g,size:b,uid:S}=e;this.#C=t,this.#g=i,this.#_=s,this.#f=r,this.#c=o,this.#r=a,this.#E=l,this.#p=h,this.#t=u,this.#S=c,this.#l=f,this.#n=p,this.#m=w,this.#w=d,this.#s=m,this.#h=g,this.#a=b,this.#o=S;let v=Ss(e);this.#i=this.#i&Et|v|oo,v!==K&&v!==ne&&v!==Oe&&(this.#i|=Ot)}#W=[];#q=!1;#V(e){this.#q=!1;let t=this.#W.slice();this.#W.length=0,t.forEach(i=>i(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let r=i.slice(0,i.provisional);t?e(null,r):queueMicrotask(()=>e(null,r));return}if(this.#W.push(e),this.#q)return;this.#q=!0;let s=this.fullpath();this.#e.readdir(s,{withFileTypes:!0},(r,o)=>{if(r)this.#I(r.code),i.provisional=0;else{for(let a of o)this.#U(a,i);this.#P(i)}this.#V(i.slice(0,i.provisional))})}#z;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#z)await this.#z;else{let i=()=>{};this.#z=new Promise(s=>i=s);try{for(let s of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#U(s,e);this.#P(e)}catch(s){this.#I(s.code),e.provisional=0}this.#z=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let i of this.#e.readdirSync(t,{withFileTypes:!0}))this.#U(i,e);this.#P(e)}catch(i){this.#I(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&lo)return!1;let e=J&this.#i;return e===K||e===ne||e===Oe}shouldWalk(e,t){return(this.#i&ne)===ne&&!(this.#i&lo)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#L)return this.#L;if(!((fi|ui|te)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#L=this.resolve(e)}catch{this.#R()}}realpathSync(){if(this.#L)return this.#L;if(!((fi|ui|te)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#L=this.resolve(e)}catch{this.#R()}}[bo](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),i=[],s=this;for(;s&&s.parent;)t.add(s),s.#M=i.join(this.sep),s.#O=i.join("/"),s=s.parent,i.push("..");for(s=e;s&&s.parent&&!t.has(s);)s.#M=void 0,s.#O=void 0,s=s.parent}},di=class n extends I{sep="\\";splitSep=Dh;constructor(e,t=K,i,s,r,o,a){super(e,t,i,s,r,o,a)}newChild(e,t=K,i={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return We.win32.parse(e).root}getRoot(e){if(e=Ph(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,i]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=i;return this.roots[e]=new qe(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(fo,"$1\\"),e===t}},mi=class n extends I{splitSep="/";sep="/";constructor(e,t=K,i,s,r,o,a){super(e,t,i,s,r,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=K,i={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}},gi=class{root;rootPath;roots;cwd;#e;#t;#n;nocase;#s;constructor(e=process.cwd(),t,i,{nocase:s,childrenCacheSize:r=16*1024,fs:o=_t}={}){this.#s=co(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,uo.fileURLToPath)(e));let a=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new pi,this.#t=new pi,this.#n=new vs(r);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),s===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=s,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let h=this.root,u=l.length-1,c=t.sep,f=this.rootPath,p=!1;for(let w of l){let d=u--;h=h.child(w,{relative:new Array(d).fill("..").join(c),relativePosix:new Array(d).fill("..").join("/"),fullpath:f+=(p?"":c)+w}),p=!0}this.cwd=h}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let t="";for(let r=e.length-1;r>=0;r--){let o=e[r];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let i=this.#e.get(t);if(i!==void 0)return i;let s=this.cwd.resolve(t).fullpath();return this.#e.set(t,s),s}resolvePosix(...e){let t="";for(let r=e.length-1;r>=0;r--){let o=e[r];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let i=this.#t.get(t);if(i!==void 0)return i;let s=this.cwd.resolve(t).fullpathPosix();return this.#t.set(t,s),s}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i}=t;if(e.canReaddir()){let s=await e.readdir();return i?s:s.map(r=>r.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0}=t;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(s=>s.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e.withFileTypes,e=this.cwd);let i=await e.readlink();return t?i:i==null?void 0:i.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return t?i:i==null?void 0:i.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e.withFileTypes,e=this.cwd);let i=await e.realpath();return t?i:i==null?void 0:i.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return t?i:i==null?void 0:i.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t,a=[];(!r||r(e))&&a.push(i?e:e.fullpath());let l=new Set,h=(c,f)=>{l.add(c),c.readdirCB((p,w)=>{if(p)return f(p);let d=w.length;if(!d)return f();let m=()=>{--d===0&&f()};for(let g of w)(!r||r(g))&&a.push(i?g:g.fullpath()),s&&g.isSymbolicLink()?g.realpath().then(b=>b!=null&&b.isUnknown()?b.lstat():b).then(b=>b!=null&&b.shouldWalk(l,o)?h(b,m):m()):g.shouldWalk(l,o)?h(g,m):m()},!0)},u=e;return new Promise((c,f)=>{h(u,p=>{if(p)return f(p);c(a)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t,a=[];(!r||r(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let h of l){let u=h.readdirSync();for(let c of u){(!r||r(c))&&a.push(i?c:c.fullpath());let f=c;if(c.isSymbolicLink()){if(!(s&&(f=c.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(l,o)&&l.add(f)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t;(!r||r(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let h=l.readdirSync();for(let u of h){(!r||r(u))&&(yield i?u:u.fullpath());let c=u;if(u.isSymbolicLink()){if(!(s&&(c=u.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(a,o)&&a.add(c)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t,a=new ye({objectMode:!0});(!r||r(e))&&a.write(i?e:e.fullpath());let l=new Set,h=[e],u=0,c=()=>{let f=!1;for(;!f;){let p=h.shift();if(!p){u===0&&a.end();return}u++,l.add(p);let w=(m,g,b=!1)=>{if(m)return a.emit("error",m);if(s&&!b){let S=[];for(let v of g)v.isSymbolicLink()&&S.push(v.realpath().then(C=>C!=null&&C.isUnknown()?C.lstat():C));if(S.length){Promise.all(S).then(()=>w(null,g,!0));return}}for(let S of g)S&&(!r||r(S))&&(a.write(i?S:S.fullpath())||(f=!0));u--;for(let S of g){let v=S.realpathCached()||S;v.shouldWalk(l,o)&&h.push(v)}f&&!a.flowing?a.once("drain",c):d||c()},d=!0;p.readdirCB(w,!0),d=!1}};return c(),a}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof I||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:o}=t,a=new ye({objectMode:!0}),l=new Set;(!r||r(e))&&a.write(i?e:e.fullpath());let h=[e],u=0,c=()=>{let f=!1;for(;!f;){let p=h.shift();if(!p){u===0&&a.end();return}u++,l.add(p);let w=p.readdirSync();for(let d of w)(!r||r(d))&&(a.write(i?d:d.fullpath())||(f=!0));u--;for(let d of w){let m=d;if(d.isSymbolicLink()){if(!(s&&(m=d.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(l,o)&&h.push(m)}}f&&!a.flowing&&a.once("drain",c)};return c(),a}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[bo](t)}},qe=class extends gi{sep="\\";constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,We.win32,"\\",{...t,nocase:i}),this.nocase=i;for(let s=this.cwd;s;s=s.parent)s.nocase=this.nocase}parseRootPath(e){return We.win32.parse(e).root.toUpperCase()}newRoot(e){return new di(this.rootPath,ne,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},Ge=class extends gi{sep="/";constructor(e=process.cwd(),t={}){let{nocase:i=!1}=t;super(e,We.posix,"/",{...t,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new mi(this.rootPath,ne,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},Rt=class extends Ge{constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,{...t,nocase:i})}},$c=process.platform==="win32"?di:mi,So=process.platform==="win32"?qe:process.platform==="darwin"?Rt:Ge;var Ih=n=>n.length>=1,Bh=n=>n.length>=1,Ve=class n{#e;#t;#n;length;#s;#o;#S;#h;#c;#l;#a=!0;constructor(e,t,i,s){if(!Ih(e))throw new TypeError("empty pattern list");if(!Bh(t))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=t,this.#n=i,this.#s=s,this.#n===0){if(this.isUNC()){let[r,o,a,l,...h]=this.#e,[u,c,f,p,...w]=this.#t;h[0]===""&&(h.shift(),w.shift());let d=[r,o,a,l,""].join("/"),m=[u,c,f,p,""].join("/");this.#e=[d,...h],this.#t=[m,...w],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[r,...o]=this.#e,[a,...l]=this.#t;o[0]===""&&(o.shift(),l.shift());let h=r+"/",u=a+"/";this.#e=[h,...o],this.#t=[u,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===D}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new n(this.#e,this.#t,this.#n+1,this.#s),this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o.#h=this.#h,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#s==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#h!==void 0?this.#h:this.#h=this.#s==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};var Uh=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",He=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:i,noext:s,noglobstar:r,platform:o=Uh}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:i,noext:s,noglobstar:r,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let t=new G(e,this.mmopts);for(let i=0;i<t.set.length;i++){let s=t.set[i],r=t.globParts[i];if(!s||!r)throw new Error("invalid pattern object");for(;s[0]==="."&&r[0]===".";)s.shift(),r.shift();let o=new Ve(s,r,0,this.platform),a=new G(o.globString(),this.mmopts),l=r[r.length-1]==="**",h=o.isAbsolute();h?this.absolute.push(a):this.relative.push(a),l&&(h?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let t=e.fullpath(),i=`${t}/`,s=e.relative()||".",r=`${s}/`;for(let o of this.relative)if(o.match(s)||o.match(r))return!0;for(let o of this.absolute)if(o.match(t)||o.match(i))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let s of this.relativeChildren)if(s.match(i))return!0;for(let s of this.absoluteChildren)if(s.match(t))return!0;return!1}};var xs=class n{store;constructor(e=new Map){this.store=e}copy(){return new n(new Map(this.store))}hasWalked(e,t){var i;return(i=this.store.get(e.fullpath()))==null?void 0:i.has(t.globString())}storeWalked(e,t){let i=e.fullpath(),s=this.store.get(i);s?s.add(t.globString()):this.store.set(i,new Set([t.globString()]))}},Cs=class{store=new Map;add(e,t,i){let s=(t?2:0)|(i?1:0),r=this.store.get(e);this.store.set(e,r===void 0?s:s&r)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},Es=class{store=new Map;add(e,t){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(s=>s.globString()===t.globString())||i.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},Mt=class n{hasWalkedCache;matches=new Cs;subwalks=new Es;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new xs}processPatterns(e,t){this.patterns=t;let i=t.map(s=>[e,s]);for(let[s,r]of i){this.hasWalkedCache.storeWalked(s,r);let o=r.root(),a=r.isAbsolute()&&this.opts.absolute!==!1;if(o){s=s.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=r.rest();if(c)r=c;else{this.matches.add(s,!0,!1);continue}}if(s.isENOENT())continue;let l,h,u=!1;for(;typeof(l=r.pattern())=="string"&&(h=r.rest());)s=s.resolve(l),r=h,u=!0;if(l=r.pattern(),h=r.rest(),u){if(this.hasWalkedCache.hasWalked(s,r))continue;this.hasWalkedCache.storeWalked(s,r)}if(typeof l=="string"){let c=l===".."||l===""||l===".";this.matches.add(s.resolve(l),a,c);continue}else if(l===D){(!s.isSymbolicLink()||this.follow||r.checkFollowGlobstar())&&this.subwalks.add(s,r);let c=h==null?void 0:h.pattern(),f=h==null?void 0:h.rest();if(!h||(c===""||c===".")&&!f)this.matches.add(s,a,c===""||c===".");else if(c===".."){let p=s.parent||s;f?this.hasWalkedCache.hasWalked(p,f)||this.subwalks.add(p,f):this.matches.add(p,a,!0)}}else l instanceof RegExp&&this.subwalks.add(s,r)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new n(this.opts,this.hasWalkedCache)}filterEntries(e,t){let i=this.subwalks.get(e),s=this.child();for(let r of t)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),h=o.rest();l===D?s.testGlobstar(r,o,h,a):l instanceof RegExp?s.testRegExp(r,l,h,a):s.testString(r,l,h,a)}return s}testGlobstar(e,t,i,s){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,s,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(i&&t.checkFollowGlobstar()?this.subwalks.add(e,i):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),i){let r=i.pattern();if(typeof r=="string"&&r!==".."&&r!==""&&r!==".")this.testString(e,r,i.rest(),s);else if(r===".."){let o=e.parent||e;this.subwalks.add(o,i)}else r instanceof RegExp&&this.testRegExp(e,r,i.rest(),s)}}testRegExp(e,t,i,s){t.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,s,!1))}testString(e,t,i,s){e.isNamed(t)&&(i?this.subwalks.add(e,i):this.matches.add(e,s,!1))}};var $h=(n,e)=>typeof n=="string"?new He([n],e):Array.isArray(n)?new He(n,e):n,wi=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#n;signal;maxDepth;includeChildMatches;constructor(e,t,i){if(this.patterns=e,this.path=t,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#t=$h(i.ignore??[],i),!this.includeChildMatches&&typeof this.#t.add!="function")){let s="cannot ignore child matches, ignore lacks add() method.";throw new Error(s)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#s(e){var t,i;return this.seen.has(e)||!!((i=(t=this.#t)==null?void 0:t.ignored)!=null&&i.call(t,e))}#o(e){var t,i;return!!((i=(t=this.#t)==null?void 0:t.childrenIgnored)!=null&&i.call(t,e))}pause(){this.paused=!0}resume(){var t;if((t=this.signal)!=null&&t.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){var t;(t=this.signal)!=null&&t.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let r=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&(r!=null&&r.isSymbolicLink())){let o=await r.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(r,t)}matchCheckTest(e,t){var i;return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!((i=e.realpathCached())!=null&&i.isDirectory()))&&!this.#s(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let r=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&(r!=null&&r.isSymbolicLink())){let o=r.realpathSync();o&&(o!=null&&o.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(r,t)}matchFinish(e,t){var r;if(this.#s(e))return;if(!this.includeChildMatches&&((r=this.#t)!=null&&r.add)){let o=`${e.relativePosix()}/**`;this.#t.add(o)}let i=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let s=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let o=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(o+s)}else{let o=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!o.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(o?a+o+s:"."+s)}}async match(e,t,i){let s=await this.matchCheck(e,i);s&&this.matchFinish(s,t)}matchSync(e,t,i){let s=this.matchCheckSync(e,i);s&&this.matchFinish(s,t)}walkCB(e,t,i){var s;(s=this.signal)!=null&&s.aborted&&i(),this.walkCB2(e,t,new Mt(this.opts),i)}walkCB2(e,t,i,s){var a;if(this.#o(e))return s();if((a=this.signal)!=null&&a.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2(e,t,i,s));return}i.processPatterns(e,t);let r=1,o=()=>{--r===0&&s()};for(let[l,h,u]of i.matches.entries())this.#s(l)||(r++,this.match(l,h,u).then(()=>o()));for(let l of i.subwalkTargets()){if(this.maxDepth!==1/0&&l.depth()>=this.maxDepth)continue;r++;let h=l.readdirCached();l.calledReaddir()?this.walkCB3(l,h,i,o):l.readdirCB((u,c)=>this.walkCB3(l,c,i,o),!0)}o()}walkCB3(e,t,i,s){i=i.filterEntries(e,t);let r=1,o=()=>{--r===0&&s()};for(let[a,l,h]of i.matches.entries())this.#s(a)||(r++,this.match(a,l,h).then(()=>o()));for(let[a,l]of i.subwalks.entries())r++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,t,i){var s;(s=this.signal)!=null&&s.aborted&&i(),this.walkCB2Sync(e,t,new Mt(this.opts),i)}walkCB2Sync(e,t,i,s){var a;if(this.#o(e))return s();if((a=this.signal)!=null&&a.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,i,s));return}i.processPatterns(e,t);let r=1,o=()=>{--r===0&&s()};for(let[l,h,u]of i.matches.entries())this.#s(l)||this.matchSync(l,h,u);for(let l of i.subwalkTargets()){if(this.maxDepth!==1/0&&l.depth()>=this.maxDepth)continue;r++;let h=l.readdirSync();this.walkCB3Sync(l,h,i,o)}o()}walkCB3Sync(e,t,i,s){i=i.filterEntries(e,t);let r=1,o=()=>{--r===0&&s()};for(let[a,l,h]of i.matches.entries())this.#s(a)||this.matchSync(a,l,h);for(let[a,l]of i.subwalks.entries())r++,this.walkCB2Sync(a,l,i.child(),o);o()}},Lt=class extends wi{matches=new Set;constructor(e,t,i){super(e,t,i)}matchEmit(e){this.matches.add(e)}async walk(){var e;if((e=this.signal)!=null&&e.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,i)=>{this.walkCB(this.path,this.patterns,()=>{var s;(s=this.signal)!=null&&s.aborted?i(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){var e;if((e=this.signal)!=null&&e.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{var t;if((t=this.signal)!=null&&t.aborted)throw this.signal.reason}),this.matches}},Tt=class extends wi{results;constructor(e,t,i){super(e,t,i),this.results=new ye({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var jh=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ie=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,vo.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=t.platform||jh,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=t.platform==="win32"?qe:t.platform==="darwin"?Rt:t.platform?Ge:So;this.scurry=new l(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",s={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(l=>new G(l,s)),[o,a]=r.reduce((l,h)=>(l[0].push(...h.set),l[1].push(...h.globParts),l),[[],[]]);this.patterns=o.map((l,h)=>{let u=a[h];if(!u)throw new Error("invalid pattern object");return new Ve(l,u,0,this.platform)})}async walk(){return[...await new Lt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Lt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Tt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Tt(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var _s=(n,e={})=>{Array.isArray(n)||(n=[n]);for(let t of n)if(new G(t,e).hasMagic())return!0;return!1};function bi(n,e={}){return new ie(n,e).streamSync()}function Co(n,e={}){return new ie(n,e).stream()}function Eo(n,e={}){return new ie(n,e).walkSync()}async function xo(n,e={}){return new ie(n,e).walk()}function Si(n,e={}){return new ie(n,e).iterateSync()}function _o(n,e={}){return new ie(n,e).iterate()}var zh=bi,Wh=Object.assign(Co,{sync:bi}),qh=Si,Gh=Object.assign(_o,{sync:Si}),Vh=Object.assign(Eo,{stream:bi,iterate:Si}),yi=Object.assign(xo,{glob:xo,globSync:Eo,sync:Vh,globStream:Co,stream:Wh,globStreamSync:bi,streamSync:zh,globIterate:_o,iterate:Gh,globIterateSync:Si,iterateSync:qh,Glob:ie,hasMagic:_s,escape:Be,unescape:Z});yi.glob=yi;function Hh(n){let e=En.find(t=>t.previous===n);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 Qh(n){return n.replace(/var\(--seed-semantic-typography-([^-]+)-([^-]+)-([^)]+)\)/g,(e,t,i,s)=>{try{let r=`$semantic.typography.${t}${i.charAt(0).toUpperCase()+i.slice(1)}`,o=Hh(r);if(!o)return e;let a="";switch(s){case"font-size":a=`--seed-font-size-${o.replace(/Regular|Medium|Bold/,"")}`;break;case"line-height":a=`--seed-line-height-${o.replace(/Regular|Medium|Bold/,"")}`;break;case"font-weight":o.includes("Regular")?a="--seed-font-weight-regular":o.includes("Medium")?a="--seed-font-weight-medium":o.includes("Bold")&&(a="--seed-font-weight-bold");break;case"letter-spacing":return"normal";default:return e}return`var(${a})`}catch(r){return console.error(`Error transforming token: ${e}`,r),e}})}var Jh={postcssPlugin:"replace-css-typography-variable",Declaration(n){if(n.value.includes("var(--seed-semantic-typography")){let e=n.value,t=Qh(e);e!==t&&(n.value=t)}}},Ao=(n,e,t)=>{let{reporter:i}=t,s=null;if(i&&(s=new ei("replace-css-typography-variable"),s.startNewFile(n.path)),!n.path.endsWith(".css"))return n.source;try{let r=os([Jh]),o=n.source,l=r.process(o,{from:n.path,parser:os.parse}).sync().root.toString();return s&&(s.finishFile(),s.writeReport()),l}catch(r){return console.error("Error processing CSS:",r),n.source}};function Kh(n,e){let t=[];for(let r of n)try{if(r.endsWith(".css")){t.push((0,Oo.resolve)(r));continue}let o=yi.sync(`${r}/**/*.css`,{ignore:["**/node_modules/**","**/dist/**","**/build/**"]});t=[...t,...o]}catch(o){console.error(`\uACBD\uB85C \uCC98\uB9AC \uC911 \uC624\uB958 \uBC1C\uC0DD: ${r}`,o)}let i=[...new Set(t)];if(i.length===0){console.log("\uBCC0\uD658\uD560 CSS \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");return}console.log(`\uCD1D ${i.length}\uAC1C\uC758 CSS \uD30C\uC77C\uC744 \uCC3E\uC558\uC2B5\uB2C8\uB2E4.`);let s=0;for(let r of i)try{let o=(0,vi.readFileSync)(r,"utf8"),a=Ao({path:r,source:o},null,e);o!==a&&((0,vi.writeFileSync)(r,a,"utf8"),console.log(`\uBCC0\uD658 \uC644\uB8CC: ${r}`),s++)}catch(o){console.error(`\uD30C\uC77C \uBCC0\uD658 \uC911 \uC624\uB958 \uBC1C\uC0DD: ${r}`,o)}console.log(`CSS \uBCC0\uD658 \uC644\uB8CC: \uCD1D ${s}\uAC1C \uD30C\uC77C \uBCC0\uACBD\uB428`)}var Yh=Ao;0&&(module.exports={processCssFiles});
|
67
|
+
safe-buffer/index.js:
|
68
|
+
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
69
|
+
*/
|