turbo-ignore 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +68 -81
  2. package/package.json +6 -3
package/dist/cli.js CHANGED
@@ -1,104 +1,91 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var A5=Object.create;var Qf=Object.defineProperty;var C5=Object.getOwnPropertyDescriptor;var D5=Object.getOwnPropertyNames;var R5=Object.getPrototypeOf,O5=Object.prototype.hasOwnProperty;var T5=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),k5=(t,e)=>{for(var r in e)Qf(t,r,{get:e[r],enumerable:!0})},F5=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of D5(e))!O5.call(t,i)&&i!==r&&Qf(t,i,{get:()=>e[i],enumerable:!(n=C5(e,i))||n.enumerable});return t};var me=(t,e,r)=>(r=t!=null?A5(R5(t)):{},F5(e||!t||!t.__esModule?Qf(r,"default",{value:t,enumerable:!0}):r,t));var c=T5(()=>{});var Bo=m(th=>{c();var cu=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},eh=class extends cu{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};th.CommanderError=cu;th.InvalidArgumentError=eh});var lu=m(nh=>{c();var{InvalidArgumentError:P5}=Bo(),rh=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new P5(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function I5(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}nh.Argument=rh;nh.humanReadableArgName=I5});var sh=m(y_=>{c();var{humanReadableArgName:B5}=lu(),ih=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e._args.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e._args.find(r=>r.description)?e._args:[]}subcommandTerm(e){let r=e._args.map(n=>B5(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(y,v){if(v){let E=`${y.padEnd(n+o)}${v}`;return r.wrap(E,i-s,n+o)}return y}function u(y){return y.join(`
3
- `).replace(/^/gm," ".repeat(s))}let l=[`Usage: ${r.commandUsage(e)}`,""],f=r.commandDescription(e);f.length>0&&(l=l.concat([r.wrap(f,i,0),""]));let h=r.visibleArguments(e).map(y=>a(r.argumentTerm(y),r.argumentDescription(y)));h.length>0&&(l=l.concat(["Arguments:",u(h),""]));let d=r.visibleOptions(e).map(y=>a(r.optionTerm(y),r.optionDescription(y)));if(d.length>0&&(l=l.concat(["Options:",u(d),""])),this.showGlobalOptions){let y=r.visibleGlobalOptions(e).map(v=>a(r.optionTerm(v),r.optionDescription(v)));y.length>0&&(l=l.concat(["Global Options:",u(y),""]))}let g=r.visibleCommands(e).map(y=>a(r.subcommandTerm(y),r.subcommandDescription(y)));return g.length>0&&(l=l.concat(["Commands:",u(g),""])),l.join(`
4
- `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;let a=r-n;if(a<i)return e;let u=e.slice(0,n),l=e.slice(n).replace(`\r
2
+ "use strict";var QI=Object.create;var If=Object.defineProperty;var eL=Object.getOwnPropertyDescriptor;var tL=Object.getOwnPropertyNames;var rL=Object.getPrototypeOf,nL=Object.prototype.hasOwnProperty;var iL=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sL=(t,e)=>{for(var r in e)If(t,r,{get:e[r],enumerable:!0})},oL=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of tL(e))!nL.call(t,i)&&i!==r&&If(t,i,{get:()=>e[i],enumerable:!(n=eL(e,i))||n.enumerable});return t};var le=(t,e,r)=>(r=t!=null?QI(rL(t)):{},oL(e||!t||!t.__esModule?If(r,"default",{value:t,enumerable:!0}):r,t));var u=iL(()=>{});var vo=m(Nf=>{u();var Va=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Lf=class extends Va{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Nf.CommanderError=Va;Nf.InvalidArgumentError=Lf});var Wa=m(Mf=>{u();var{InvalidArgumentError:aL}=vo(),Df=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new aL(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function cL(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Mf.Argument=Df;Mf.humanReadableArgName=cL});var qf=m(V0=>{u();var{humanReadableArgName:uL}=Wa(),Ff=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e._args.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e._args.find(r=>r.description)?e._args:[]}subcommandTerm(e){let r=e._args.map(n=>uL(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(g,E){if(E){let v=`${g.padEnd(n+o)}${E}`;return r.wrap(v,i-s,n+o)}return g}function c(g){return g.join(`
3
+ `).replace(/^/gm," ".repeat(s))}let l=[`Usage: ${r.commandUsage(e)}`,""],f=r.commandDescription(e);f.length>0&&(l=l.concat([r.wrap(f,i,0),""]));let h=r.visibleArguments(e).map(g=>a(r.argumentTerm(g),r.argumentDescription(g)));h.length>0&&(l=l.concat(["Arguments:",c(h),""]));let d=r.visibleOptions(e).map(g=>a(r.optionTerm(g),r.optionDescription(g)));if(d.length>0&&(l=l.concat(["Options:",c(d),""])),this.showGlobalOptions){let g=r.visibleGlobalOptions(e).map(E=>a(r.optionTerm(E),r.optionDescription(E)));g.length>0&&(l=l.concat(["Global Options:",c(g),""]))}let y=r.visibleCommands(e).map(g=>a(r.subcommandTerm(g),r.subcommandDescription(g)));return y.length>0&&(l=l.concat(["Commands:",c(y),""])),l.join(`
4
+ `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;let a=r-n;if(a<i)return e;let c=e.slice(0,n),l=e.slice(n).replace(`\r
5
5
  `,`
6
- `),f=" ".repeat(n),d="\\s\u200B",g=new RegExp(`
7
- |.{1,${a-1}}([${d}]|$)|[^${d}]+?([${d}]|$)`,"g"),y=l.match(g)||[];return u+y.map((v,E)=>v===`
8
- `?"":(E>0?f:"")+v.trimEnd()).join(`
9
- `)}};y_.Help=ih});var uh=m(fu=>{c();var{InvalidArgumentError:L5}=Bo(),oh=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=__(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new L5(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return N5(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},ah=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===e)}};function N5(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function __(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}fu.Option=oh;fu.splitOptionFlags=__;fu.DualOptions=ah});var E_=m(v_=>{c();function M5(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function q5(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=M5(t,o),u=Math.max(t.length,o.length);(u-a)/u>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
6
+ `),f=" ".repeat(n),d="\\s\u200B",y=new RegExp(`
7
+ |.{1,${a-1}}([${d}]|$)|[^${d}]+?([${d}]|$)`,"g"),g=l.match(y)||[];return c+g.map((E,v)=>E===`
8
+ `?"":(v>0?f:"")+E.trimEnd()).join(`
9
+ `)}};V0.Help=Ff});var Hf=m(za=>{u();var{InvalidArgumentError:lL}=vo(),Bf=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=W0(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new lL(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return fL(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},jf=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===e)}};function fL(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function W0(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}za.Option=Bf;za.splitOptionFlags=W0;za.DualOptions=jf});var Y0=m(z0=>{u();function hL(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function dL(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=hL(t,o),c=Math.max(t.length,o.length);(c-a)/c>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
10
10
  (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
11
- (Did you mean ${n[0]}?)`:""}v_.suggestSimilar=q5});var C_=m(A_=>{c();var j5=require("events").EventEmitter,ch=require("child_process"),Yr=require("path"),lh=require("fs"),Ie=require("process"),{Argument:H5,humanReadableArgName:$5}=lu(),{CommanderError:fh}=Bo(),{Help:U5}=sh(),{Option:b_,splitOptionFlags:G5,DualOptions:V5}=uh(),{suggestSimilar:w_}=E_(),No=class extends j5{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this._args=[],this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>Ie.stdout.write(r),writeErr:r=>Ie.stderr.write(r),getOutHelpWidth:()=>Ie.stdout.isTTY?Ie.stdout.columns:void 0,getErrHelpWidth:()=>Ie.stderr.isTTY?Ie.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),u=this.createCommand(o);return i&&(u.description(i),u._executableHandler=!0),s.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(s.noHelp||s.hidden),u._executableFile=s.executableFile||null,a&&u.arguments(a),this.commands.push(u),u.parent=this,u.copyInheritedSettings(this),i?this:u}createCommand(e){return new No(e)}createHelp(){return Object.assign(new U5,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new H5(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this._args.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this._args.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
- Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new fh(e,r,n)),Ie.exit(e)}action(e){let r=n=>{let i=this._args.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new b_(e,r)}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let u=this.getOptionValue(n);if(s!==null&&e.parseArg)try{s=e.parseArg(s,u)}catch(l){if(l.code==="commander.invalidArgument"){let f=`${o} ${l.message}`;this.error(f,{exitCode:l.exitCode,code:l.code})}throw l}else s!==null&&e.variadic&&(s=e._concatValue(s,u));s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof b_)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(u,l)=>{let f=a.exec(u);return f?f[0]:l},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,!!this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return Lo(this).forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=Ie.argv,Ie.versions&&Ie.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":Ie.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(f,h){let d=Yr.resolve(f,h);if(lh.existsSync(d))return d;if(i.includes(Yr.extname(h)))return;let g=i.find(y=>lh.existsSync(`${d}${y}`));if(g)return`${d}${g}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let f;try{f=lh.realpathSync(this._scriptPath)}catch{f=this._scriptPath}a=Yr.resolve(Yr.dirname(f),a)}if(a){let f=s(a,o);if(!f&&!e._executableFile&&this._scriptPath){let h=Yr.basename(this._scriptPath,Yr.extname(this._scriptPath));h!==this._name&&(f=s(a,`${h}-${e._name}`))}o=f||o}n=i.includes(Yr.extname(o));let u;Ie.platform!=="win32"?n?(r.unshift(o),r=S_(Ie.execArgv).concat(r),u=ch.spawn(Ie.argv[0],r,{stdio:"inherit"})):u=ch.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=S_(Ie.execArgv).concat(r),u=ch.spawn(Ie.execPath,r,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{Ie.on(h,()=>{u.killed===!1&&u.exitCode===null&&u.kill(h)})});let l=this._exitCallback;l?u.on("close",()=>{l(new fh(Ie.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):u.on("close",Ie.exit.bind(Ie)),u.on("error",f=>{if(f.code==="ENOENT"){let h=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",d=`'${o}' does not exist
11
+ (Did you mean ${n[0]}?)`:""}z0.suggestSimilar=dL});var e_=m(Q0=>{u();var pL=require("events").EventEmitter,$f=require("child_process"),Br=require("path"),Uf=require("fs"),Te=require("process"),{Argument:mL,humanReadableArgName:gL}=Wa(),{CommanderError:Gf}=vo(),{Help:yL}=qf(),{Option:K0,splitOptionFlags:_L,DualOptions:vL}=Hf(),{suggestSimilar:Z0}=Y0(),Eo=class extends pL{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this._args=[],this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>Te.stdout.write(r),writeErr:r=>Te.stderr.write(r),getOutHelpWidth:()=>Te.stdout.isTTY?Te.stdout.columns:void 0,getErrHelpWidth:()=>Te.stderr.isTTY?Te.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),c=this.createCommand(o);return i&&(c.description(i),c._executableHandler=!0),s.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(s.noHelp||s.hidden),c._executableFile=s.executableFile||null,a&&c.arguments(a),this.commands.push(c),c.parent=this,c.copyInheritedSettings(this),i?this:c}createCommand(e){return new Eo(e)}createHelp(){return Object.assign(new yL,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new mL(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this._args.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this._args.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
+ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new Gf(e,r,n)),Te.exit(e)}action(e){let r=n=>{let i=this._args.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new K0(e,r)}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let c=this.getOptionValue(n);if(s!==null&&e.parseArg)try{s=e.parseArg(s,c)}catch(l){if(l.code==="commander.invalidArgument"){let f=`${o} ${l.message}`;this.error(f,{exitCode:l.exitCode,code:l.code})}throw l}else s!==null&&e.variadic&&(s=e._concatValue(s,c));s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof K0)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(c,l)=>{let f=a.exec(c);return f?f[0]:l},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,!!this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return bo(this).forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=Te.argv,Te.versions&&Te.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":Te.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(f,h){let d=Br.resolve(f,h);if(Uf.existsSync(d))return d;if(i.includes(Br.extname(h)))return;let y=i.find(g=>Uf.existsSync(`${d}${g}`));if(y)return`${d}${y}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let f;try{f=Uf.realpathSync(this._scriptPath)}catch{f=this._scriptPath}a=Br.resolve(Br.dirname(f),a)}if(a){let f=s(a,o);if(!f&&!e._executableFile&&this._scriptPath){let h=Br.basename(this._scriptPath,Br.extname(this._scriptPath));h!==this._name&&(f=s(a,`${h}-${e._name}`))}o=f||o}n=i.includes(Br.extname(o));let c;Te.platform!=="win32"?n?(r.unshift(o),r=X0(Te.execArgv).concat(r),c=$f.spawn(Te.argv[0],r,{stdio:"inherit"})):c=$f.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=X0(Te.execArgv).concat(r),c=$f.spawn(Te.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{Te.on(h,()=>{c.killed===!1&&c.exitCode===null&&c.kill(h)})});let l=this._exitCallback;l?c.on("close",()=>{l(new Gf(Te.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):c.on("close",Te.exit.bind(Te)),c.on("error",f=>{if(f.code==="ENOENT"){let h=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",d=`'${o}' does not exist
14
14
  - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${h}`;throw new Error(d)}else if(f.code==="EACCES")throw new Error(`'${o}' not executable`);if(!l)Ie.exit(1);else{let h=new fh(1,"commander.executeSubCommandAsync","(error)");h.nestedError=f,l(h)}}),this.runningCommand=u}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag])}_checkNumberOfArguments(){this._args.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this._args.length>0&&this._args[this._args.length-1].variadic)&&this.args.length>this._args.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg)try{o=n.parseArg(i,s)}catch(a){if(a.code==="commander.invalidArgument"){let u=`error: command-argument value '${i}' is invalid for argument '${n.name()}'. ${a.message}`;this.error(u,{exitCode:a.exitCode,code:a.code})}throw a}return o};this._checkNumberOfArguments();let r=[];this._args.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return Lo(this).reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return x_(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),x_(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(!!e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){for(let e=this;e;e=e.parent)e._checkForConflictingLocalOptions()}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(u){return u.length>1&&u[0]==="-"}let a=null;for(;s.length;){let u=s.shift();if(u==="--"){i===n&&i.push(u),i.push(...s);break}if(a&&!o(u)){this.emit(`option:${a.name()}`,u);continue}if(a=null,o(u)){let l=this._findOption(u);if(l){if(l.required){let f=s.shift();f===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,f)}else if(l.optional){let f=null;s.length>0&&!o(s[0])&&(f=s.shift()),this.emit(`option:${l.name()}`,f)}else this.emit(`option:${l.name()}`);a=l.variadic?l:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let l=this._findOption(`-${u[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,u.slice(2)):(this.emit(`option:${l.name()}`),s.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let l=u.indexOf("="),f=this._findOption(u.slice(0,l));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,u.slice(l+1));continue}}if(o(u)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(u)){r.push(u),s.length>0&&n.push(...s);break}else if(u===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(u),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(u),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(u),s.length>0&&i.push(...s);break}i.push(u)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return Lo(this).reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
16
+ - ${h}`;throw new Error(d)}else if(f.code==="EACCES")throw new Error(`'${o}' not executable`);if(!l)Te.exit(1);else{let h=new Gf(1,"commander.executeSubCommandAsync","(error)");h.nestedError=f,l(h)}}),this.runningCommand=c}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag])}_checkNumberOfArguments(){this._args.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this._args.length>0&&this._args[this._args.length-1].variadic)&&this.args.length>this._args.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg)try{o=n.parseArg(i,s)}catch(a){if(a.code==="commander.invalidArgument"){let c=`error: command-argument value '${i}' is invalid for argument '${n.name()}'. ${a.message}`;this.error(c,{exitCode:a.exitCode,code:a.code})}throw a}return o};this._checkNumberOfArguments();let r=[];this._args.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return bo(this).reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return J0(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),J0(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(!!e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){for(let e=this;e;e=e.parent)e._checkForConflictingLocalOptions()}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(c){return c.length>1&&c[0]==="-"}let a=null;for(;s.length;){let c=s.shift();if(c==="--"){i===n&&i.push(c),i.push(...s);break}if(a&&!o(c)){this.emit(`option:${a.name()}`,c);continue}if(a=null,o(c)){let l=this._findOption(c);if(l){if(l.required){let f=s.shift();f===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,f)}else if(l.optional){let f=null;s.length>0&&!o(s[0])&&(f=s.shift()),this.emit(`option:${l.name()}`,f)}else this.emit(`option:${l.name()}`);a=l.variadic?l:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let l=this._findOption(`-${c[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,c.slice(2)):(this.emit(`option:${l.name()}`),s.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let l=c.indexOf("="),f=this._findOption(c.slice(0,l));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,c.slice(l+1));continue}}if(o(c)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(c)){r.push(c),s.length>0&&n.push(...s);break}else if(c===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(c),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(c),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(c),s.length>0&&i.push(...s);break}i.push(c)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return bo(this).reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in Ie.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,Ie.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new V5(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let a=o.attributeName(),u=this.getOptionValue(a),l=this.options.find(h=>h.negate&&a===h.attributeName()),f=this.options.find(h=>!h.negate&&a===h.attributeName());return l&&(l.presetArg===void 0&&u===!1||l.presetArg!==void 0&&u===l.presetArg)?l:f||o},i=o=>{let a=n(o),u=a.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=w_(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=w_(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
- `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this._args.map(n=>$5(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Yr.basename(e,Yr.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);Lo(this).reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this.emit(this._helpLongFlag),this.emit("afterHelp",n),Lo(this).forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=G5(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=Ie.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
19
+ `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in Te.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,Te.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new vL(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let a=o.attributeName(),c=this.getOptionValue(a),l=this.options.find(h=>h.negate&&a===h.attributeName()),f=this.options.find(h=>!h.negate&&a===h.attributeName());return l&&(l.presetArg===void 0&&c===!1||l.presetArg!==void 0&&c===l.presetArg)?l:f||o},i=o=>{let a=n(o),c=a.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=Z0(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=Z0(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
+ `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this._args.map(n=>gL(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Br.basename(e,Br.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);bo(this).reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this.emit(this._helpLongFlag),this.emit("afterHelp",n),bo(this).forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=_L(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=Te.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
22
- `)}),this}};function x_(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function S_(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}function Lo(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}A_.Command=No});var T_=m((gr,O_)=>{c();var{Argument:W5}=lu(),{Command:D_}=C_(),{CommanderError:z5,InvalidArgumentError:R_}=Bo(),{Help:Y5}=sh(),{Option:K5}=uh();gr=O_.exports=new D_;gr.program=gr;gr.Argument=W5;gr.Command=D_;gr.CommanderError=z5;gr.Help=Y5;gr.InvalidArgumentError=R_;gr.InvalidOptionArgumentError=R_;gr.Option=K5});var I_=m((YY,Kr)=>{c();function hh(t){return Kr.exports=hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr.exports.__esModule=!0,Kr.exports.default=Kr.exports,hh(t)}Kr.exports=hh,Kr.exports.__esModule=!0,Kr.exports.default=Kr.exports});var N_=m((KY,Zr)=>{c();var B_=I_().default;function L_(){"use strict";Zr.exports=L_=function(){return e},Zr.exports.__esModule=!0,Zr.exports.default=Zr.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(S,T,k){S[T]=k.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function l(S,T,k){return Object.defineProperty(S,T,{value:k,enumerable:!0,configurable:!0,writable:!0}),S[T]}try{l({},"")}catch{l=function(k,P,Z){return k[P]=Z}}function f(S,T,k,P){var Z=T&&T.prototype instanceof x?T:x,$=Object.create(Z.prototype),xe=new pe(P||[]);return i($,"_invoke",{value:te(S,k,xe)}),$}function h(S,T,k){try{return{type:"normal",arg:S.call(T,k)}}catch(P){return{type:"throw",arg:P}}}e.wrap=f;var d="suspendedStart",g="suspendedYield",y="executing",v="completed",E={};function x(){}function O(){}function B(){}var z={};l(z,o,function(){return this});var H=Object.getPrototypeOf,ie=H&&H(H(C([])));ie&&ie!==r&&n.call(ie,o)&&(z=ie);var J=B.prototype=x.prototype=Object.create(z);function X(S){["next","throw","return"].forEach(function(T){l(S,T,function(k){return this._invoke(T,k)})})}function M(S,T){function k(Z,$,xe,Ze){var Ee=h(S[Z],S,$);if(Ee.type!=="throw"){var He=Ee.arg,se=He.value;return se&&B_(se)=="object"&&n.call(se,"__await")?T.resolve(se.__await).then(function(xt){k("next",xt,xe,Ze)},function(xt){k("throw",xt,xe,Ze)}):T.resolve(se).then(function(xt){He.value=xt,xe(He)},function(xt){return k("throw",xt,xe,Ze)})}Ze(Ee.arg)}var P;i(this,"_invoke",{value:function($,xe){function Ze(){return new T(function(Ee,He){k($,xe,Ee,He)})}return P=P?P.then(Ze,Ze):Ze()}})}function te(S,T,k){var P=d;return function(Z,$){if(P===y)throw new Error("Generator is already running");if(P===v){if(Z==="throw")throw $;return{value:t,done:!0}}for(k.method=Z,k.arg=$;;){var xe=k.delegate;if(xe){var Ze=D(xe,k);if(Ze){if(Ze===E)continue;return Ze}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(P===d)throw P=v,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);P=y;var Ee=h(S,T,k);if(Ee.type==="normal"){if(P=k.done?v:g,Ee.arg===E)continue;return{value:Ee.arg,done:k.done}}Ee.type==="throw"&&(P=v,k.method="throw",k.arg=Ee.arg)}}}function D(S,T){var k=T.method,P=S.iterator[k];if(P===t)return T.delegate=null,k==="throw"&&S.iterator.return&&(T.method="return",T.arg=t,D(S,T),T.method==="throw")||k!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+k+"' method")),E;var Z=h(P,S.iterator,T.arg);if(Z.type==="throw")return T.method="throw",T.arg=Z.arg,T.delegate=null,E;var $=Z.arg;return $?$.done?(T[S.resultName]=$.value,T.next=S.nextLoc,T.method!=="return"&&(T.method="next",T.arg=t),T.delegate=null,E):$:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,E)}function oe(S){var T={tryLoc:S[0]};1 in S&&(T.catchLoc=S[1]),2 in S&&(T.finallyLoc=S[2],T.afterLoc=S[3]),this.tryEntries.push(T)}function re(S){var T=S.completion||{};T.type="normal",delete T.arg,S.completion=T}function pe(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(oe,this),this.reset(!0)}function C(S){if(S||S===""){var T=S[o];if(T)return T.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var k=-1,P=function Z(){for(;++k<S.length;)if(n.call(S,k))return Z.value=S[k],Z.done=!1,Z;return Z.value=t,Z.done=!0,Z};return P.next=P}}throw new TypeError(B_(S)+" is not iterable")}return O.prototype=B,i(J,"constructor",{value:B,configurable:!0}),i(B,"constructor",{value:O,configurable:!0}),O.displayName=l(B,u,"GeneratorFunction"),e.isGeneratorFunction=function(S){var T=typeof S=="function"&&S.constructor;return!!T&&(T===O||(T.displayName||T.name)==="GeneratorFunction")},e.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,B):(S.__proto__=B,l(S,u,"GeneratorFunction")),S.prototype=Object.create(J),S},e.awrap=function(S){return{__await:S}},X(M.prototype),l(M.prototype,a,function(){return this}),e.AsyncIterator=M,e.async=function(S,T,k,P,Z){Z===void 0&&(Z=Promise);var $=new M(f(S,T,k,P),Z);return e.isGeneratorFunction(T)?$:$.next().then(function(xe){return xe.done?xe.value:$.next()})},X(J),l(J,u,"Generator"),l(J,o,function(){return this}),l(J,"toString",function(){return"[object Generator]"}),e.keys=function(S){var T=Object(S),k=[];for(var P in T)k.push(P);return k.reverse(),function Z(){for(;k.length;){var $=k.pop();if($ in T)return Z.value=$,Z.done=!1,Z}return Z.done=!0,Z}},e.values=C,pe.prototype={constructor:pe,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(re),!T)for(var k in this)k.charAt(0)==="t"&&n.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=t)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var k=this;function P(He,se){return xe.type="throw",xe.arg=T,k.next=He,se&&(k.method="next",k.arg=t),!!se}for(var Z=this.tryEntries.length-1;Z>=0;--Z){var $=this.tryEntries[Z],xe=$.completion;if($.tryLoc==="root")return P("end");if($.tryLoc<=this.prev){var Ze=n.call($,"catchLoc"),Ee=n.call($,"finallyLoc");if(Ze&&Ee){if(this.prev<$.catchLoc)return P($.catchLoc,!0);if(this.prev<$.finallyLoc)return P($.finallyLoc)}else if(Ze){if(this.prev<$.catchLoc)return P($.catchLoc,!0)}else{if(!Ee)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return P($.finallyLoc)}}}},abrupt:function(T,k){for(var P=this.tryEntries.length-1;P>=0;--P){var Z=this.tryEntries[P];if(Z.tryLoc<=this.prev&&n.call(Z,"finallyLoc")&&this.prev<Z.finallyLoc){var $=Z;break}}$&&(T==="break"||T==="continue")&&$.tryLoc<=k&&k<=$.finallyLoc&&($=null);var xe=$?$.completion:{};return xe.type=T,xe.arg=k,$?(this.method="next",this.next=$.finallyLoc,E):this.complete(xe)},complete:function(T,k){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&k&&(this.next=k),E},finish:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var P=this.tryEntries[k];if(P.finallyLoc===T)return this.complete(P.completion,P.afterLoc),re(P),E}},catch:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var P=this.tryEntries[k];if(P.tryLoc===T){var Z=P.completion;if(Z.type==="throw"){var $=Z.arg;re(P)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(T,k,P){return this.delegate={iterator:C(T),resultName:k,nextLoc:P},this.method==="next"&&(this.arg=t),E}},e}Zr.exports=L_,Zr.exports.__esModule=!0,Zr.exports.default=Zr.exports});var q_=m((ZY,M_)=>{c();var hu=N_()();M_.exports=hu;try{regeneratorRuntime=hu}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=hu:Function("r","regeneratorRuntime = r")(hu)}});var H_=m((_K,vh)=>{"use strict";c();var j_=(t,...e)=>new Promise(r=>{r(t(...e))});vh.exports=j_;vh.exports.default=j_});var U_=m((vK,Eh)=>{"use strict";c();var Z5=H_(),$_=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,u,...l)=>{r++;let f=Z5(a,...l);u(f),f.then(n,n)},s=(a,u,...l)=>{r<t?i(a,u,...l):e.push(i.bind(null,a,u,...l))},o=(a,...u)=>new Promise(l=>s(a,l,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};Eh.exports=$_;Eh.exports.default=$_});var W_=m((EK,bh)=>{"use strict";c();var G_=U_(),du=class extends Error{constructor(e){super(),this.value=e}},J5=async(t,e)=>e(await t),X5=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new du(e[0]);return!1},V_=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=G_(r.concurrency),i=[...t].map(o=>[o,n(J5,o,e)]),s=G_(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(X5,o)))}catch(o){if(o instanceof du)return o.value;throw o}};bh.exports=V_;bh.exports.default=V_});var X_=m((bK,wh)=>{"use strict";c();var z_=require("path"),pu=require("fs"),{promisify:Y_}=require("util"),Q5=W_(),eP=Y_(pu.stat),tP=Y_(pu.lstat),K_={directory:"isDirectory",file:"isFile"};function Z_({type:t}){if(!(t in K_))throw new Error(`Invalid type specified: ${t}`)}var J_=(t,e)=>t===void 0||e[K_[t]]();wh.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Z_(e);let r=e.allowSymlinks?eP:tP;return Q5(t,async n=>{try{let i=await r(z_.resolve(e.cwd,n));return J_(e.type,i)}catch{return!1}},e)};wh.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Z_(e);let r=e.allowSymlinks?pu.statSync:pu.lstatSync;for(let n of t)try{let i=r(z_.resolve(e.cwd,n));if(J_(e.type,i))return n}catch{}}});var ev=m((wK,xh)=>{"use strict";c();var Q_=require("fs"),{promisify:rP}=require("util"),nP=rP(Q_.access);xh.exports=async t=>{try{return await nP(t),!0}catch{return!1}};xh.exports.sync=t=>{try{return Q_.accessSync(t),!0}catch{return!1}}});var rv=m((xK,ns)=>{"use strict";c();var Rn=require("path"),mu=X_(),tv=ev(),Sh=Symbol("findUp.stop");ns.exports=async(t,e={})=>{let r=Rn.resolve(e.cwd||""),{root:n}=Rn.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return mu(i,o);let a=await t(o.cwd);return typeof a=="string"?mu([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Sh)return;if(o)return Rn.resolve(r,o);if(r===n)return;r=Rn.dirname(r)}};ns.exports.sync=(t,e={})=>{let r=Rn.resolve(e.cwd||""),{root:n}=Rn.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return mu.sync(i,o);let a=t(o.cwd);return typeof a=="string"?mu.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Sh)return;if(o)return Rn.resolve(r,o);if(r===n)return;r=Rn.dirname(r)}};ns.exports.exists=tv;ns.exports.sync.exists=tv.sync;ns.exports.stop=Sh});var Ot=m(Ah=>{"use strict";c();Ah.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((e,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);e(i)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})};Ah.fromPromise=function(t){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return t.apply(this,arguments);t.apply(this,arguments).then(r=>e(null,r),e)},"name",{value:t.name})}});var iv=m((AK,nv)=>{c();var On=require("constants"),iP=process.cwd,gu=null,sP=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gu||(gu=iP.call(process)),gu};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ch=process.chdir,process.chdir=function(t){gu=null,Ch.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ch));var Ch;nv.exports=oP;function oP(t){On.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,d,g){g&&process.nextTick(g)},t.lchownSync=function(){}),sP==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(f){function h(d,g,y){var v=Date.now(),E=0;f(d,g,function x(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(g,function(B,z){B&&B.code==="ENOENT"?f(d,g,x):y(O)})},E),E<100&&(E+=10);return}y&&y(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.rename)),t.read=typeof t.read!="function"?t.read:function(f){function h(d,g,y,v,E,x){var O;if(x&&typeof x=="function"){var B=0;O=function(z,H,ie){if(z&&z.code==="EAGAIN"&&B<10)return B++,f.call(t,d,g,y,v,E,O);x.apply(this,arguments)}}return f.call(t,d,g,y,v,E,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(f){return function(h,d,g,y,v){for(var E=0;;)try{return f.call(t,h,d,g,y,v)}catch(x){if(x.code==="EAGAIN"&&E<10){E++;continue}throw x}}}(t.readSync);function e(f){f.lchmod=function(h,d,g){f.open(h,On.O_WRONLY|On.O_SYMLINK,d,function(y,v){if(y){g&&g(y);return}f.fchmod(v,d,function(E){f.close(v,function(x){g&&g(E||x)})})})},f.lchmodSync=function(h,d){var g=f.openSync(h,On.O_WRONLY|On.O_SYMLINK,d),y=!0,v;try{v=f.fchmodSync(g,d),y=!1}finally{if(y)try{f.closeSync(g)}catch{}else f.closeSync(g)}return v}}function r(f){On.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,d,g,y){f.open(h,On.O_SYMLINK,function(v,E){if(v){y&&y(v);return}f.futimes(E,d,g,function(x){f.close(E,function(O){y&&y(x||O)})})})},f.lutimesSync=function(h,d,g){var y=f.openSync(h,On.O_SYMLINK),v,E=!0;try{v=f.futimesSync(y,d,g),E=!1}finally{if(E)try{f.closeSync(y)}catch{}else f.closeSync(y)}return v}):f.futimes&&(f.lutimes=function(h,d,g,y){y&&process.nextTick(y)},f.lutimesSync=function(){})}function n(f){return f&&function(h,d,g){return f.call(t,h,d,function(y){l(y)&&(y=null),g&&g.apply(this,arguments)})}}function i(f){return f&&function(h,d){try{return f.call(t,h,d)}catch(g){if(!l(g))throw g}}}function s(f){return f&&function(h,d,g,y){return f.call(t,h,d,g,function(v){l(v)&&(v=null),y&&y.apply(this,arguments)})}}function o(f){return f&&function(h,d,g){try{return f.call(t,h,d,g)}catch(y){if(!l(y))throw y}}}function a(f){return f&&function(h,d,g){typeof d=="function"&&(g=d,d=null);function y(v,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),g&&g.apply(this,arguments)}return d?f.call(t,h,d,y):f.call(t,h,y)}}function u(f){return f&&function(h,d){var g=d?f.call(t,h,d):f.call(t,h);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function l(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var av=m((CK,ov)=>{c();var sv=require("stream").Stream;ov.exports=aP;function aP(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);sv.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);sv.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var cv=m((DK,uv)=>{"use strict";c();uv.exports=cP;var uP=Object.getPrototypeOf||function(t){return t.__proto__};function cP(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:uP(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var ze=m((RK,Oh)=>{c();var qe=require("fs"),lP=iv(),fP=av(),hP=cv(),yu=require("util"),at,vu;typeof Symbol=="function"&&typeof Symbol.for=="function"?(at=Symbol.for("graceful-fs.queue"),vu=Symbol.for("graceful-fs.previous")):(at="___graceful-fs.queue",vu="___graceful-fs.previous");function dP(){}function hv(t,e){Object.defineProperty(t,at,{get:function(){return e}})}var hi=dP;yu.debuglog?hi=yu.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(hi=function(){var t=yu.format.apply(yu,arguments);t="GFS4: "+t.split(/\n/).join(`
23
- GFS4: `),console.error(t)});qe[at]||(lv=global[at]||[],hv(qe,lv),qe.close=function(t){function e(r,n){return t.call(qe,r,function(i){i||fv(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,vu,{value:t}),e}(qe.close),qe.closeSync=function(t){function e(r){t.apply(qe,arguments),fv()}return Object.defineProperty(e,vu,{value:t}),e}(qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){hi(qe[at]),require("assert").equal(qe[at].length,0)}));var lv;global[at]||hv(global,qe[at]);Oh.exports=Dh(hP(qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!qe.__patched&&(Oh.exports=Dh(qe),qe.__patched=!0);function Dh(t){lP(t),t.gracefulify=Dh,t.createReadStream=H,t.createWriteStream=ie;var e=t.readFile;t.readFile=r;function r(M,te,D){return typeof te=="function"&&(D=te,te=null),oe(M,te,D);function oe(re,pe,C,S){return e(re,pe,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?is([oe,[re,pe,C],T,S||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(M,te,D,oe){return typeof D=="function"&&(oe=D,D=null),re(M,te,D,oe);function re(pe,C,S,T,k){return n(pe,C,S,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?is([re,[pe,C,S,T],P,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(M,te,D,oe){return typeof D=="function"&&(oe=D,D=null),re(M,te,D,oe);function re(pe,C,S,T,k){return s(pe,C,S,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?is([re,[pe,C,S,T],P,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(M,te,D,oe){return typeof D=="function"&&(oe=D,D=0),re(M,te,D,oe);function re(pe,C,S,T,k){return a(pe,C,S,function(P){P&&(P.code==="EMFILE"||P.code==="ENFILE")?is([re,[pe,C,S,T],P,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var l=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(M,te,D){typeof te=="function"&&(D=te,te=null);var oe=f.test(process.version)?function(C,S,T,k){return l(C,re(C,S,T,k))}:function(C,S,T,k){return l(C,S,re(C,S,T,k))};return oe(M,te,D);function re(pe,C,S,T){return function(k,P){k&&(k.code==="EMFILE"||k.code==="ENFILE")?is([oe,[pe,C,S],k,T||Date.now(),Date.now()]):(P&&P.sort&&P.sort(),typeof S=="function"&&S.call(this,k,P))}}}if(process.version.substr(0,4)==="v0.8"){var d=fP(t);x=d.ReadStream,B=d.WriteStream}var g=t.ReadStream;g&&(x.prototype=Object.create(g.prototype),x.prototype.open=O);var y=t.WriteStream;y&&(B.prototype=Object.create(y.prototype),B.prototype.open=z),Object.defineProperty(t,"ReadStream",{get:function(){return x},set:function(M){x=M},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(M){B=M},enumerable:!0,configurable:!0});var v=x;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(M){v=M},enumerable:!0,configurable:!0});var E=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(M){E=M},enumerable:!0,configurable:!0});function x(M,te){return this instanceof x?(g.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function O(){var M=this;X(M.path,M.flags,M.mode,function(te,D){te?(M.autoClose&&M.destroy(),M.emit("error",te)):(M.fd=D,M.emit("open",D),M.read())})}function B(M,te){return this instanceof B?(y.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function z(){var M=this;X(M.path,M.flags,M.mode,function(te,D){te?(M.destroy(),M.emit("error",te)):(M.fd=D,M.emit("open",D))})}function H(M,te){return new t.ReadStream(M,te)}function ie(M,te){return new t.WriteStream(M,te)}var J=t.open;t.open=X;function X(M,te,D,oe){return typeof D=="function"&&(oe=D,D=null),re(M,te,D,oe);function re(pe,C,S,T,k){return J(pe,C,S,function(P,Z){P&&(P.code==="EMFILE"||P.code==="ENFILE")?is([re,[pe,C,S,T],P,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return t}function is(t){hi("ENQUEUE",t[0].name,t[1]),qe[at].push(t),Rh()}var _u;function fv(){for(var t=Date.now(),e=0;e<qe[at].length;++e)qe[at][e].length>2&&(qe[at][e][3]=t,qe[at][e][4]=t);Rh()}function Rh(){if(clearTimeout(_u),_u=void 0,qe[at].length!==0){var t=qe[at].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)hi("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){hi("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),l=Math.min(u*1.2,100);a>=l?(hi("RETRY",e.name,r),e.apply(null,r.concat([i]))):qe[at].push(t)}_u===void 0&&(_u=setTimeout(Rh,0))}}});var Th=m(di=>{"use strict";c();var dv=Ot().fromCallback,Qt=ze(),pP=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Qt[t]=="function");Object.keys(Qt).forEach(t=>{t!=="promises"&&(di[t]=Qt[t])});pP.forEach(t=>{di[t]=dv(Qt[t])});di.exists=function(t,e){return typeof e=="function"?Qt.exists(t,e):new Promise(r=>Qt.exists(t,r))};di.read=function(t,e,r,n,i,s){return typeof s=="function"?Qt.read(t,e,r,n,i,s):new Promise((o,a)=>{Qt.read(t,e,r,n,i,(u,l,f)=>{if(u)return a(u);o({bytesRead:l,buffer:f})})})};di.write=function(t,e,...r){return typeof r[r.length-1]=="function"?Qt.write(t,e,...r):new Promise((n,i)=>{Qt.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof Qt.realpath.native=="function"&&(di.realpath.native=dv(Qt.realpath.native))});var Fh=m((TK,mv)=>{"use strict";c();var kh=require("path");function pv(t){return t=kh.normalize(kh.resolve(t)).split(kh.sep),t.length>0?t[0]:null}var mP=/[<>:"|?*]/;function gP(t){let e=pv(t);return t=t.replace(e,""),mP.test(t)}mv.exports={getRootPath:pv,invalidWin32Path:gP}});var yv=m((kK,gv)=>{"use strict";c();var yP=ze(),Ph=require("path"),_P=Fh().invalidWin32Path,vP=parseInt("0777",8);function Ih(t,e,r,n){if(typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&_P(t)){let o=new Error(t+" contains invalid WIN32 path characters.");return o.code="EINVAL",r(o)}let i=e.mode,s=e.fs||yP;i===void 0&&(i=vP&~process.umask()),n||(n=null),r=r||function(){},t=Ph.resolve(t),s.mkdir(t,i,o=>{if(!o)return n=n||t,r(null,n);switch(o.code){case"ENOENT":if(Ph.dirname(t)===t)return r(o);Ih(Ph.dirname(t),e,(a,u)=>{a?r(a,u):Ih(t,e,r,u)});break;default:s.stat(t,(a,u)=>{a||!u.isDirectory()?r(o,n):r(null,n)});break}})}gv.exports=Ih});var vv=m((FK,_v)=>{"use strict";c();var EP=ze(),Bh=require("path"),bP=Fh().invalidWin32Path,wP=parseInt("0777",8);function Lh(t,e,r){(!e||typeof e!="object")&&(e={mode:e});let n=e.mode,i=e.fs||EP;if(process.platform==="win32"&&bP(t)){let s=new Error(t+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=wP&~process.umask()),r||(r=null),t=Bh.resolve(t);try{i.mkdirSync(t,n),r=r||t}catch(s){if(s.code==="ENOENT"){if(Bh.dirname(t)===t)throw s;r=Lh(Bh.dirname(t),e,r),Lh(t,e,r)}else{let o;try{o=i.statSync(t)}catch{throw s}if(!o.isDirectory())throw s}}return r}_v.exports=Lh});var jt=m((PK,Ev)=>{"use strict";c();var xP=Ot().fromCallback,Nh=xP(yv()),Mh=vv();Ev.exports={mkdirs:Nh,mkdirsSync:Mh,mkdirp:Nh,mkdirpSync:Mh,ensureDir:Nh,ensureDirSync:Mh}});var qh=m((IK,wv)=>{"use strict";c();var ft=ze(),bv=require("os"),Eu=require("path");function SP(){let t=Eu.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=Eu.join(bv.tmpdir(),t);let e=new Date(1435410243862);ft.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=ft.openSync(t,"r+");return ft.futimesSync(r,e,e),ft.closeSync(r),ft.statSync(t).mtime>1435410243e3}function AP(t){let e=Eu.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=Eu.join(bv.tmpdir(),e);let r=new Date(1435410243862);ft.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return t(n);ft.open(e,"r+",(i,s)=>{if(i)return t(i);ft.futimes(s,r,r,o=>{if(o)return t(o);ft.close(s,a=>{if(a)return t(a);ft.stat(e,(u,l)=>{if(u)return t(u);t(null,l.mtime>1435410243e3)})})})})})}function CP(t){if(typeof t=="number")return Math.floor(t/1e3)*1e3;if(t instanceof Date)return new Date(Math.floor(t.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function DP(t,e,r,n){ft.open(t,"r+",(i,s)=>{if(i)return n(i);ft.futimes(s,e,r,o=>{ft.close(s,a=>{n&&n(o||a)})})})}function RP(t,e,r){let n=ft.openSync(t,"r+");return ft.futimesSync(n,e,r),ft.closeSync(n)}wv.exports={hasMillisRes:AP,hasMillisResSync:SP,timeRemoveMillis:CP,utimesMillis:DP,utimesMillisSync:RP}});var $o=m((BK,Rv)=>{"use strict";c();var er=ze(),Tt=require("path"),xv=10,Sv=5,OP=0,Hh=process.versions.node.split("."),Av=Number.parseInt(Hh[0],10),Cv=Number.parseInt(Hh[1],10),TP=Number.parseInt(Hh[2],10);function jo(){if(Av>xv)return!0;if(Av===xv){if(Cv>Sv)return!0;if(Cv===Sv&&TP>=OP)return!0}return!1}function kP(t,e,r){jo()?er.stat(t,{bigint:!0},(n,i)=>{if(n)return r(n);er.stat(e,{bigint:!0},(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))}):er.stat(t,(n,i)=>{if(n)return r(n);er.stat(e,(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))})}function FP(t,e){let r,n;jo()?r=er.statSync(t,{bigint:!0}):r=er.statSync(t);try{jo()?n=er.statSync(e,{bigint:!0}):n=er.statSync(e)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function PP(t,e,r,n){kP(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&$h(t,e)?n(new Error(Ho(t,e,r))):n(null,{srcStat:o,destStat:a})})}function IP(t,e,r){let{srcStat:n,destStat:i}=FP(t,e);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&$h(t,e))throw new Error(Ho(t,e,r));return{srcStat:n,destStat:i}}function jh(t,e,r,n,i){let s=Tt.resolve(Tt.dirname(t)),o=Tt.resolve(Tt.dirname(r));if(o===s||o===Tt.parse(o).root)return i();jo()?er.stat(o,{bigint:!0},(a,u)=>a?a.code==="ENOENT"?i():i(a):u.ino&&u.dev&&u.ino===e.ino&&u.dev===e.dev?i(new Error(Ho(t,r,n))):jh(t,e,o,n,i)):er.stat(o,(a,u)=>a?a.code==="ENOENT"?i():i(a):u.ino&&u.dev&&u.ino===e.ino&&u.dev===e.dev?i(new Error(Ho(t,r,n))):jh(t,e,o,n,i))}function Dv(t,e,r,n){let i=Tt.resolve(Tt.dirname(t)),s=Tt.resolve(Tt.dirname(r));if(s===i||s===Tt.parse(s).root)return;let o;try{jo()?o=er.statSync(s,{bigint:!0}):o=er.statSync(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(o.ino&&o.dev&&o.ino===e.ino&&o.dev===e.dev)throw new Error(Ho(t,r,n));return Dv(t,e,s,n)}function $h(t,e){let r=Tt.resolve(t).split(Tt.sep).filter(i=>i),n=Tt.resolve(e).split(Tt.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Ho(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}Rv.exports={checkPaths:PP,checkPathsSync:IP,checkParentPaths:jh,checkParentPathsSync:Dv,isSrcSubdir:$h}});var Tv=m((LK,Ov)=>{"use strict";c();Ov.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}});var Bv=m((NK,Iv)=>{"use strict";c();var Be=ze(),Uo=require("path"),BP=jt().mkdirsSync,LP=qh().utimesMillisSync,Go=$o();function NP(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
22
+ `)}),this}};function J0(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function X0(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}function bo(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}Q0.Command=Eo});var i_=m((cr,n_)=>{u();var{Argument:bL}=Wa(),{Command:t_}=e_(),{CommanderError:EL,InvalidArgumentError:r_}=vo(),{Help:wL}=qf(),{Option:xL}=Hf();cr=n_.exports=new t_;cr.program=cr;cr.Argument=bL;cr.Command=t_;cr.CommanderError=EL;cr.Help=wL;cr.InvalidArgumentError=r_;cr.InvalidOptionArgumentError=r_;cr.Option=xL});var c_=m((fY,jr)=>{u();function Vf(t){return jr.exports=Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr.exports.__esModule=!0,jr.exports.default=jr.exports,Vf(t)}jr.exports=Vf,jr.exports.__esModule=!0,jr.exports.default=jr.exports});var f_=m((hY,Hr)=>{u();var u_=c_().default;function l_(){"use strict";Hr.exports=l_=function(){return e},Hr.exports.__esModule=!0,Hr.exports.default=Hr.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(x,T,k){x[T]=k.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(x,T,k){return Object.defineProperty(x,T,{value:k,enumerable:!0,configurable:!0,writable:!0}),x[T]}try{l({},"")}catch{l=function(k,I,Y){return k[I]=Y}}function f(x,T,k,I){var Y=T&&T.prototype instanceof A?T:A,j=Object.create(Y.prototype),ve=new fe(I||[]);return i(j,"_invoke",{value:Q(x,k,ve)}),j}function h(x,T,k){try{return{type:"normal",arg:x.call(T,k)}}catch(I){return{type:"throw",arg:I}}}e.wrap=f;var d="suspendedStart",y="suspendedYield",g="executing",E="completed",v={};function A(){}function P(){}function D(){}var ie={};l(ie,o,function(){return this});var z=Object.getPrototypeOf,ue=z&&z(z(R([])));ue&&ue!==r&&n.call(ue,o)&&(ie=ue);var K=D.prototype=A.prototype=Object.create(ie);function Z(x){["next","throw","return"].forEach(function(T){l(x,T,function(k){return this._invoke(T,k)})})}function F(x,T){function k(Y,j,ve,Ue){var ge=h(x[Y],x,j);if(ge.type!=="throw"){var De=ge.arg,re=De.value;return re&&u_(re)=="object"&&n.call(re,"__await")?T.resolve(re.__await).then(function(mt){k("next",mt,ve,Ue)},function(mt){k("throw",mt,ve,Ue)}):T.resolve(re).then(function(mt){De.value=mt,ve(De)},function(mt){return k("throw",mt,ve,Ue)})}Ue(ge.arg)}var I;i(this,"_invoke",{value:function(j,ve){function Ue(){return new T(function(ge,De){k(j,ve,ge,De)})}return I=I?I.then(Ue,Ue):Ue()}})}function Q(x,T,k){var I=d;return function(Y,j){if(I===g)throw new Error("Generator is already running");if(I===E){if(Y==="throw")throw j;return{value:t,done:!0}}for(k.method=Y,k.arg=j;;){var ve=k.delegate;if(ve){var Ue=C(ve,k);if(Ue){if(Ue===v)continue;return Ue}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(I===d)throw I=E,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);I=g;var ge=h(x,T,k);if(ge.type==="normal"){if(I=k.done?E:y,ge.arg===v)continue;return{value:ge.arg,done:k.done}}ge.type==="throw"&&(I=E,k.method="throw",k.arg=ge.arg)}}}function C(x,T){var k=T.method,I=x.iterator[k];if(I===t)return T.delegate=null,k==="throw"&&x.iterator.return&&(T.method="return",T.arg=t,C(x,T),T.method==="throw")||k!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+k+"' method")),v;var Y=h(I,x.iterator,T.arg);if(Y.type==="throw")return T.method="throw",T.arg=Y.arg,T.delegate=null,v;var j=Y.arg;return j?j.done?(T[x.resultName]=j.value,T.next=x.nextLoc,T.method!=="return"&&(T.method="next",T.arg=t),T.delegate=null,v):j:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,v)}function ne(x){var T={tryLoc:x[0]};1 in x&&(T.catchLoc=x[1]),2 in x&&(T.finallyLoc=x[2],T.afterLoc=x[3]),this.tryEntries.push(T)}function ee(x){var T=x.completion||{};T.type="normal",delete T.arg,x.completion=T}function fe(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ne,this),this.reset(!0)}function R(x){if(x||x===""){var T=x[o];if(T)return T.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var k=-1,I=function Y(){for(;++k<x.length;)if(n.call(x,k))return Y.value=x[k],Y.done=!1,Y;return Y.value=t,Y.done=!0,Y};return I.next=I}}throw new TypeError(u_(x)+" is not iterable")}return P.prototype=D,i(K,"constructor",{value:D,configurable:!0}),i(D,"constructor",{value:P,configurable:!0}),P.displayName=l(D,c,"GeneratorFunction"),e.isGeneratorFunction=function(x){var T=typeof x=="function"&&x.constructor;return!!T&&(T===P||(T.displayName||T.name)==="GeneratorFunction")},e.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,D):(x.__proto__=D,l(x,c,"GeneratorFunction")),x.prototype=Object.create(K),x},e.awrap=function(x){return{__await:x}},Z(F.prototype),l(F.prototype,a,function(){return this}),e.AsyncIterator=F,e.async=function(x,T,k,I,Y){Y===void 0&&(Y=Promise);var j=new F(f(x,T,k,I),Y);return e.isGeneratorFunction(T)?j:j.next().then(function(ve){return ve.done?ve.value:j.next()})},Z(K),l(K,c,"Generator"),l(K,o,function(){return this}),l(K,"toString",function(){return"[object Generator]"}),e.keys=function(x){var T=Object(x),k=[];for(var I in T)k.push(I);return k.reverse(),function Y(){for(;k.length;){var j=k.pop();if(j in T)return Y.value=j,Y.done=!1,Y}return Y.done=!0,Y}},e.values=R,fe.prototype={constructor:fe,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(ee),!T)for(var k in this)k.charAt(0)==="t"&&n.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=t)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var k=this;function I(De,re){return ve.type="throw",ve.arg=T,k.next=De,re&&(k.method="next",k.arg=t),!!re}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var j=this.tryEntries[Y],ve=j.completion;if(j.tryLoc==="root")return I("end");if(j.tryLoc<=this.prev){var Ue=n.call(j,"catchLoc"),ge=n.call(j,"finallyLoc");if(Ue&&ge){if(this.prev<j.catchLoc)return I(j.catchLoc,!0);if(this.prev<j.finallyLoc)return I(j.finallyLoc)}else if(Ue){if(this.prev<j.catchLoc)return I(j.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return I(j.finallyLoc)}}}},abrupt:function(T,k){for(var I=this.tryEntries.length-1;I>=0;--I){var Y=this.tryEntries[I];if(Y.tryLoc<=this.prev&&n.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var j=Y;break}}j&&(T==="break"||T==="continue")&&j.tryLoc<=k&&k<=j.finallyLoc&&(j=null);var ve=j?j.completion:{};return ve.type=T,ve.arg=k,j?(this.method="next",this.next=j.finallyLoc,v):this.complete(ve)},complete:function(T,k){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&k&&(this.next=k),v},finish:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.finallyLoc===T)return this.complete(I.completion,I.afterLoc),ee(I),v}},catch:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.tryLoc===T){var Y=I.completion;if(Y.type==="throw"){var j=Y.arg;ee(I)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(T,k,I){return this.delegate={iterator:R(T),resultName:k,nextLoc:I},this.method==="next"&&(this.arg=t),v}},e}Hr.exports=l_,Hr.exports.__esModule=!0,Hr.exports.default=Hr.exports});var d_=m((dY,h_)=>{u();var Ya=f_()();h_.exports=Ya;try{regeneratorRuntime=Ya}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ya:Function("r","regeneratorRuntime = r")(Ya)}});var m_=m((DY,Xf)=>{"use strict";u();var p_=(t,...e)=>new Promise(r=>{r(t(...e))});Xf.exports=p_;Xf.exports.default=p_});var y_=m((MY,Qf)=>{"use strict";u();var SL=m_(),g_=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,c,...l)=>{r++;let f=SL(a,...l);c(f),f.then(n,n)},s=(a,c,...l)=>{r<t?i(a,c,...l):e.push(i.bind(null,a,c,...l))},o=(a,...c)=>new Promise(l=>s(a,l,...c));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};Qf.exports=g_;Qf.exports.default=g_});var b_=m((FY,eh)=>{"use strict";u();var __=y_(),Ka=class extends Error{constructor(e){super(),this.value=e}},AL=async(t,e)=>e(await t),RL=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Ka(e[0]);return!1},v_=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=__(r.concurrency),i=[...t].map(o=>[o,n(AL,o,e)]),s=__(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(RL,o)))}catch(o){if(o instanceof Ka)return o.value;throw o}};eh.exports=v_;eh.exports.default=v_});var R_=m((qY,th)=>{"use strict";u();var E_=require("path"),Za=require("fs"),{promisify:w_}=require("util"),CL=b_(),OL=w_(Za.stat),TL=w_(Za.lstat),x_={directory:"isDirectory",file:"isFile"};function S_({type:t}){if(!(t in x_))throw new Error(`Invalid type specified: ${t}`)}var A_=(t,e)=>t===void 0||e[x_[t]]();th.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},S_(e);let r=e.allowSymlinks?OL:TL;return CL(t,async n=>{try{let i=await r(E_.resolve(e.cwd,n));return A_(e.type,i)}catch{return!1}},e)};th.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},S_(e);let r=e.allowSymlinks?Za.statSync:Za.lstatSync;for(let n of t)try{let i=r(E_.resolve(e.cwd,n));if(A_(e.type,i))return n}catch{}}});var O_=m((BY,rh)=>{"use strict";u();var C_=require("fs"),{promisify:kL}=require("util"),PL=kL(C_.access);rh.exports=async t=>{try{return await PL(t),!0}catch{return!1}};rh.exports.sync=t=>{try{return C_.accessSync(t),!0}catch{return!1}}});var k_=m((jY,Hi)=>{"use strict";u();var mn=require("path"),Ja=R_(),T_=O_(),nh=Symbol("findUp.stop");Hi.exports=async(t,e={})=>{let r=mn.resolve(e.cwd||""),{root:n}=mn.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Ja(i,o);let a=await t(o.cwd);return typeof a=="string"?Ja([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===nh)return;if(o)return mn.resolve(r,o);if(r===n)return;r=mn.dirname(r)}};Hi.exports.sync=(t,e={})=>{let r=mn.resolve(e.cwd||""),{root:n}=mn.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Ja.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Ja.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===nh)return;if(o)return mn.resolve(r,o);if(r===n)return;r=mn.dirname(r)}};Hi.exports.exists=T_;Hi.exports.sync.exists=T_.sync;Hi.exports.stop=nh});var bt=m(ih=>{"use strict";u();ih.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((e,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);e(i)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})};ih.fromPromise=function(t){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return t.apply(this,arguments);t.apply(this,arguments).then(r=>e(null,r),e)},"name",{value:t.name})}});var I_=m(($Y,P_)=>{u();var gn=require("constants"),IL=process.cwd,Xa=null,LL=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Xa||(Xa=IL.call(process)),Xa};try{process.cwd()}catch{}typeof process.chdir=="function"&&(sh=process.chdir,process.chdir=function(t){Xa=null,sh.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,sh));var sh;P_.exports=NL;function NL(t){gn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,d,y){y&&process.nextTick(y)},t.lchownSync=function(){}),LL==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(f){function h(d,y,g){var E=Date.now(),v=0;f(d,y,function A(P){if(P&&(P.code==="EACCES"||P.code==="EPERM"||P.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){t.stat(y,function(D,ie){D&&D.code==="ENOENT"?f(d,y,A):g(P)})},v),v<100&&(v+=10);return}g&&g(P)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.rename)),t.read=typeof t.read!="function"?t.read:function(f){function h(d,y,g,E,v,A){var P;if(A&&typeof A=="function"){var D=0;P=function(ie,z,ue){if(ie&&ie.code==="EAGAIN"&&D<10)return D++,f.call(t,d,y,g,E,v,P);A.apply(this,arguments)}}return f.call(t,d,y,g,E,v,P)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(f){return function(h,d,y,g,E){for(var v=0;;)try{return f.call(t,h,d,y,g,E)}catch(A){if(A.code==="EAGAIN"&&v<10){v++;continue}throw A}}}(t.readSync);function e(f){f.lchmod=function(h,d,y){f.open(h,gn.O_WRONLY|gn.O_SYMLINK,d,function(g,E){if(g){y&&y(g);return}f.fchmod(E,d,function(v){f.close(E,function(A){y&&y(v||A)})})})},f.lchmodSync=function(h,d){var y=f.openSync(h,gn.O_WRONLY|gn.O_SYMLINK,d),g=!0,E;try{E=f.fchmodSync(y,d),g=!1}finally{if(g)try{f.closeSync(y)}catch{}else f.closeSync(y)}return E}}function r(f){gn.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,d,y,g){f.open(h,gn.O_SYMLINK,function(E,v){if(E){g&&g(E);return}f.futimes(v,d,y,function(A){f.close(v,function(P){g&&g(A||P)})})})},f.lutimesSync=function(h,d,y){var g=f.openSync(h,gn.O_SYMLINK),E,v=!0;try{E=f.futimesSync(g,d,y),v=!1}finally{if(v)try{f.closeSync(g)}catch{}else f.closeSync(g)}return E}):f.futimes&&(f.lutimes=function(h,d,y,g){g&&process.nextTick(g)},f.lutimesSync=function(){})}function n(f){return f&&function(h,d,y){return f.call(t,h,d,function(g){l(g)&&(g=null),y&&y.apply(this,arguments)})}}function i(f){return f&&function(h,d){try{return f.call(t,h,d)}catch(y){if(!l(y))throw y}}}function s(f){return f&&function(h,d,y,g){return f.call(t,h,d,y,function(E){l(E)&&(E=null),g&&g.apply(this,arguments)})}}function o(f){return f&&function(h,d,y){try{return f.call(t,h,d,y)}catch(g){if(!l(g))throw g}}}function a(f){return f&&function(h,d,y){typeof d=="function"&&(y=d,d=null);function g(E,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),y&&y.apply(this,arguments)}return d?f.call(t,h,d,g):f.call(t,h,g)}}function c(f){return f&&function(h,d){var y=d?f.call(t,h,d):f.call(t,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function l(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var D_=m((UY,N_)=>{u();var L_=require("stream").Stream;N_.exports=DL;function DL(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);L_.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);L_.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var F_=m((GY,M_)=>{"use strict";u();M_.exports=FL;var ML=Object.getPrototypeOf||function(t){return t.__proto__};function FL(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:ML(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var je=m((VY,ch)=>{u();var Ne=require("fs"),qL=I_(),BL=D_(),jL=F_(),Qa=require("util"),Qe,tc;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Qe=Symbol.for("graceful-fs.queue"),tc=Symbol.for("graceful-fs.previous")):(Qe="___graceful-fs.queue",tc="___graceful-fs.previous");function HL(){}function j_(t,e){Object.defineProperty(t,Qe,{get:function(){return e}})}var Qn=HL;Qa.debuglog?Qn=Qa.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qn=function(){var t=Qa.format.apply(Qa,arguments);t="GFS4: "+t.split(/\n/).join(`
23
+ GFS4: `),console.error(t)});Ne[Qe]||(q_=global[Qe]||[],j_(Ne,q_),Ne.close=function(t){function e(r,n){return t.call(Ne,r,function(i){i||B_(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,tc,{value:t}),e}(Ne.close),Ne.closeSync=function(t){function e(r){t.apply(Ne,arguments),B_()}return Object.defineProperty(e,tc,{value:t}),e}(Ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qn(Ne[Qe]),require("assert").equal(Ne[Qe].length,0)}));var q_;global[Qe]||j_(global,Ne[Qe]);ch.exports=oh(jL(Ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ne.__patched&&(ch.exports=oh(Ne),Ne.__patched=!0);function oh(t){qL(t),t.gracefulify=oh,t.createReadStream=z,t.createWriteStream=ue;var e=t.readFile;t.readFile=r;function r(F,Q,C){return typeof Q=="function"&&(C=Q,Q=null),ne(F,Q,C);function ne(ee,fe,R,x){return e(ee,fe,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?$i([ne,[ee,fe,R],T,x||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return n(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?$i([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return s(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?$i([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=0),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return a(fe,R,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?$i([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var l=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(F,Q,C){typeof Q=="function"&&(C=Q,Q=null);var ne=f.test(process.version)?function(R,x,T,k){return l(R,ee(R,x,T,k))}:function(R,x,T,k){return l(R,x,ee(R,x,T,k))};return ne(F,Q,C);function ee(fe,R,x,T){return function(k,I){k&&(k.code==="EMFILE"||k.code==="ENFILE")?$i([ne,[fe,R,x],k,T||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof x=="function"&&x.call(this,k,I))}}}if(process.version.substr(0,4)==="v0.8"){var d=BL(t);A=d.ReadStream,D=d.WriteStream}var y=t.ReadStream;y&&(A.prototype=Object.create(y.prototype),A.prototype.open=P);var g=t.WriteStream;g&&(D.prototype=Object.create(g.prototype),D.prototype.open=ie),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(F){A=F},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return D},set:function(F){D=F},enumerable:!0,configurable:!0});var E=A;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(F){E=F},enumerable:!0,configurable:!0});var v=D;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(F){v=F},enumerable:!0,configurable:!0});function A(F,Q){return this instanceof A?(y.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function P(){var F=this;Z(F.path,F.flags,F.mode,function(Q,C){Q?(F.autoClose&&F.destroy(),F.emit("error",Q)):(F.fd=C,F.emit("open",C),F.read())})}function D(F,Q){return this instanceof D?(g.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function ie(){var F=this;Z(F.path,F.flags,F.mode,function(Q,C){Q?(F.destroy(),F.emit("error",Q)):(F.fd=C,F.emit("open",C))})}function z(F,Q){return new t.ReadStream(F,Q)}function ue(F,Q){return new t.WriteStream(F,Q)}var K=t.open;t.open=Z;function Z(F,Q,C,ne){return typeof C=="function"&&(ne=C,C=null),ee(F,Q,C,ne);function ee(fe,R,x,T,k){return K(fe,R,x,function(I,Y){I&&(I.code==="EMFILE"||I.code==="ENFILE")?$i([ee,[fe,R,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return t}function $i(t){Qn("ENQUEUE",t[0].name,t[1]),Ne[Qe].push(t),ah()}var ec;function B_(){for(var t=Date.now(),e=0;e<Ne[Qe].length;++e)Ne[Qe][e].length>2&&(Ne[Qe][e][3]=t,Ne[Qe][e][4]=t);ah()}function ah(){if(clearTimeout(ec),ec=void 0,Ne[Qe].length!==0){var t=Ne[Qe].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Qn("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Qn("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),l=Math.min(c*1.2,100);a>=l?(Qn("RETRY",e.name,r),e.apply(null,r.concat([i]))):Ne[Qe].push(t)}ec===void 0&&(ec=setTimeout(ah,0))}}});var uh=m(ei=>{"use strict";u();var H_=bt().fromCallback,Gt=je(),$L=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Gt[t]=="function");Object.keys(Gt).forEach(t=>{t!=="promises"&&(ei[t]=Gt[t])});$L.forEach(t=>{ei[t]=H_(Gt[t])});ei.exists=function(t,e){return typeof e=="function"?Gt.exists(t,e):new Promise(r=>Gt.exists(t,r))};ei.read=function(t,e,r,n,i,s){return typeof s=="function"?Gt.read(t,e,r,n,i,s):new Promise((o,a)=>{Gt.read(t,e,r,n,i,(c,l,f)=>{if(c)return a(c);o({bytesRead:l,buffer:f})})})};ei.write=function(t,e,...r){return typeof r[r.length-1]=="function"?Gt.write(t,e,...r):new Promise((n,i)=>{Gt.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof Gt.realpath.native=="function"&&(ei.realpath.native=H_(Gt.realpath.native))});var fh=m((zY,U_)=>{"use strict";u();var lh=require("path");function $_(t){return t=lh.normalize(lh.resolve(t)).split(lh.sep),t.length>0?t[0]:null}var UL=/[<>:"|?*]/;function GL(t){let e=$_(t);return t=t.replace(e,""),UL.test(t)}U_.exports={getRootPath:$_,invalidWin32Path:GL}});var V_=m((YY,G_)=>{"use strict";u();var VL=je(),hh=require("path"),WL=fh().invalidWin32Path,zL=parseInt("0777",8);function dh(t,e,r,n){if(typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&WL(t)){let o=new Error(t+" contains invalid WIN32 path characters.");return o.code="EINVAL",r(o)}let i=e.mode,s=e.fs||VL;i===void 0&&(i=zL&~process.umask()),n||(n=null),r=r||function(){},t=hh.resolve(t),s.mkdir(t,i,o=>{if(!o)return n=n||t,r(null,n);switch(o.code){case"ENOENT":if(hh.dirname(t)===t)return r(o);dh(hh.dirname(t),e,(a,c)=>{a?r(a,c):dh(t,e,r,c)});break;default:s.stat(t,(a,c)=>{a||!c.isDirectory()?r(o,n):r(null,n)});break}})}G_.exports=dh});var z_=m((KY,W_)=>{"use strict";u();var YL=je(),ph=require("path"),KL=fh().invalidWin32Path,ZL=parseInt("0777",8);function mh(t,e,r){(!e||typeof e!="object")&&(e={mode:e});let n=e.mode,i=e.fs||YL;if(process.platform==="win32"&&KL(t)){let s=new Error(t+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=ZL&~process.umask()),r||(r=null),t=ph.resolve(t);try{i.mkdirSync(t,n),r=r||t}catch(s){if(s.code==="ENOENT"){if(ph.dirname(t)===t)throw s;r=mh(ph.dirname(t),e,r),mh(t,e,r)}else{let o;try{o=i.statSync(t)}catch{throw s}if(!o.isDirectory())throw s}}return r}W_.exports=mh});var Pt=m((ZY,Y_)=>{"use strict";u();var JL=bt().fromCallback,gh=JL(V_()),yh=z_();Y_.exports={mkdirs:gh,mkdirsSync:yh,mkdirp:gh,mkdirpSync:yh,ensureDir:gh,ensureDirSync:yh}});var _h=m((JY,Z_)=>{"use strict";u();var nt=je(),K_=require("os"),rc=require("path");function XL(){let t=rc.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=rc.join(K_.tmpdir(),t);let e=new Date(1435410243862);nt.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=nt.openSync(t,"r+");return nt.futimesSync(r,e,e),nt.closeSync(r),nt.statSync(t).mtime>1435410243e3}function QL(t){let e=rc.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=rc.join(K_.tmpdir(),e);let r=new Date(1435410243862);nt.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return t(n);nt.open(e,"r+",(i,s)=>{if(i)return t(i);nt.futimes(s,r,r,o=>{if(o)return t(o);nt.close(s,a=>{if(a)return t(a);nt.stat(e,(c,l)=>{if(c)return t(c);t(null,l.mtime>1435410243e3)})})})})})}function eN(t){if(typeof t=="number")return Math.floor(t/1e3)*1e3;if(t instanceof Date)return new Date(Math.floor(t.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function tN(t,e,r,n){nt.open(t,"r+",(i,s)=>{if(i)return n(i);nt.futimes(s,e,r,o=>{nt.close(s,a=>{n&&n(o||a)})})})}function rN(t,e,r){let n=nt.openSync(t,"r+");return nt.futimesSync(n,e,r),nt.closeSync(n)}Z_.exports={hasMillisRes:QL,hasMillisResSync:XL,timeRemoveMillis:eN,utimesMillis:tN,utimesMillisSync:rN}});var Ro=m((XY,rv)=>{"use strict";u();var Vt=je(),Et=require("path"),J_=10,X_=5,nN=0,bh=process.versions.node.split("."),Q_=Number.parseInt(bh[0],10),ev=Number.parseInt(bh[1],10),iN=Number.parseInt(bh[2],10);function So(){if(Q_>J_)return!0;if(Q_===J_){if(ev>X_)return!0;if(ev===X_&&iN>=nN)return!0}return!1}function sN(t,e,r){So()?Vt.stat(t,{bigint:!0},(n,i)=>{if(n)return r(n);Vt.stat(e,{bigint:!0},(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))}):Vt.stat(t,(n,i)=>{if(n)return r(n);Vt.stat(e,(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))})}function oN(t,e){let r,n;So()?r=Vt.statSync(t,{bigint:!0}):r=Vt.statSync(t);try{So()?n=Vt.statSync(e,{bigint:!0}):n=Vt.statSync(e)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function aN(t,e,r,n){sN(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Eh(t,e)?n(new Error(Ao(t,e,r))):n(null,{srcStat:o,destStat:a})})}function cN(t,e,r){let{srcStat:n,destStat:i}=oN(t,e);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Eh(t,e))throw new Error(Ao(t,e,r));return{srcStat:n,destStat:i}}function vh(t,e,r,n,i){let s=Et.resolve(Et.dirname(t)),o=Et.resolve(Et.dirname(r));if(o===s||o===Et.parse(o).root)return i();So()?Vt.stat(o,{bigint:!0},(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(Ao(t,r,n))):vh(t,e,o,n,i)):Vt.stat(o,(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(Ao(t,r,n))):vh(t,e,o,n,i))}function tv(t,e,r,n){let i=Et.resolve(Et.dirname(t)),s=Et.resolve(Et.dirname(r));if(s===i||s===Et.parse(s).root)return;let o;try{So()?o=Vt.statSync(s,{bigint:!0}):o=Vt.statSync(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(o.ino&&o.dev&&o.ino===e.ino&&o.dev===e.dev)throw new Error(Ao(t,r,n));return tv(t,e,s,n)}function Eh(t,e){let r=Et.resolve(t).split(Et.sep).filter(i=>i),n=Et.resolve(e).split(Et.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Ao(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}rv.exports={checkPaths:aN,checkPathsSync:cN,checkParentPaths:vh,checkParentPathsSync:tv,isSrcSubdir:Eh}});var iv=m((QY,nv)=>{"use strict";u();nv.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}});var uv=m((eK,cv)=>{"use strict";u();var ke=je(),Co=require("path"),uN=Pt().mkdirsSync,lN=_h().utimesMillisSync,Oo=Ro();function fN(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
24
24
 
25
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Go.checkPathsSync(t,e,"copy");return Go.checkParentPathsSync(t,n,e,"copy"),MP(i,t,e,r)}function MP(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Uo.dirname(r);return Be.existsSync(i)||BP(i),kv(t,e,r,n)}function kv(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return qP(t,e,r,n)}function qP(t,e,r,n){let s=(n.dereference?Be.statSync:Be.lstatSync)(e);if(s.isDirectory())return UP(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return jP(s,t,e,r,n);if(s.isSymbolicLink())return WP(t,e,r,n)}function jP(t,e,r,n,i){return e?HP(t,r,n,i):Fv(t,r,n,i)}function HP(t,e,r,n){if(n.overwrite)return Be.unlinkSync(r),Fv(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Fv(t,e,r,n){return typeof Be.copyFileSync=="function"?(Be.copyFileSync(e,r),Be.chmodSync(r,t.mode),n.preserveTimestamps?LP(r,t.atime,t.mtime):void 0):$P(t,e,r,n)}function $P(t,e,r,n){let s=Tv()(65536),o=Be.openSync(e,"r"),a=Be.openSync(r,"w",t.mode),u=0;for(;u<t.size;){let l=Be.readSync(o,s,0,65536,u);Be.writeSync(a,s,0,l),u+=l}n.preserveTimestamps&&Be.futimesSync(a,t.atime,t.mtime),Be.closeSync(o),Be.closeSync(a)}function UP(t,e,r,n,i){if(!e)return GP(t,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Pv(r,n,i)}function GP(t,e,r,n){return Be.mkdirSync(r),Pv(e,r,n),Be.chmodSync(r,t.mode)}function Pv(t,e,r){Be.readdirSync(t).forEach(n=>VP(n,t,e,r))}function VP(t,e,r,n){let i=Uo.join(e,t),s=Uo.join(r,t),{destStat:o}=Go.checkPathsSync(i,s,"copy");return kv(o,i,s,n)}function WP(t,e,r,n){let i=Be.readlinkSync(e);if(n.dereference&&(i=Uo.resolve(process.cwd(),i)),t){let s;try{s=Be.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Be.symlinkSync(i,r);throw o}if(n.dereference&&(s=Uo.resolve(process.cwd(),s)),Go.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Be.statSync(r).isDirectory()&&Go.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return zP(i,r)}else return Be.symlinkSync(i,r)}function zP(t,e){return Be.unlinkSync(e),Be.symlinkSync(t,e)}Iv.exports=NP});var Uh=m((MK,Lv)=>{"use strict";c();Lv.exports={copySync:Bv()}});var Cr=m((qK,Mv)=>{"use strict";c();var YP=Ot().fromPromise,Nv=Th();function KP(t){return Nv.access(t).then(()=>!0).catch(()=>!1)}Mv.exports={pathExists:YP(KP),pathExistsSync:Nv.existsSync}});var zv=m((jK,Wv)=>{"use strict";c();var ut=ze(),Vo=require("path"),ZP=jt().mkdirs,JP=Cr().pathExists,XP=qh().utimesMillis,Wo=$o();function QP(t,e,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
25
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Oo.checkPathsSync(t,e,"copy");return Oo.checkParentPathsSync(t,n,e,"copy"),hN(i,t,e,r)}function hN(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Co.dirname(r);return ke.existsSync(i)||uN(i),sv(t,e,r,n)}function sv(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return dN(t,e,r,n)}function dN(t,e,r,n){let s=(n.dereference?ke.statSync:ke.lstatSync)(e);if(s.isDirectory())return yN(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return pN(s,t,e,r,n);if(s.isSymbolicLink())return bN(t,e,r,n)}function pN(t,e,r,n,i){return e?mN(t,r,n,i):ov(t,r,n,i)}function mN(t,e,r,n){if(n.overwrite)return ke.unlinkSync(r),ov(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function ov(t,e,r,n){return typeof ke.copyFileSync=="function"?(ke.copyFileSync(e,r),ke.chmodSync(r,t.mode),n.preserveTimestamps?lN(r,t.atime,t.mtime):void 0):gN(t,e,r,n)}function gN(t,e,r,n){let s=iv()(65536),o=ke.openSync(e,"r"),a=ke.openSync(r,"w",t.mode),c=0;for(;c<t.size;){let l=ke.readSync(o,s,0,65536,c);ke.writeSync(a,s,0,l),c+=l}n.preserveTimestamps&&ke.futimesSync(a,t.atime,t.mtime),ke.closeSync(o),ke.closeSync(a)}function yN(t,e,r,n,i){if(!e)return _N(t,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return av(r,n,i)}function _N(t,e,r,n){return ke.mkdirSync(r),av(e,r,n),ke.chmodSync(r,t.mode)}function av(t,e,r){ke.readdirSync(t).forEach(n=>vN(n,t,e,r))}function vN(t,e,r,n){let i=Co.join(e,t),s=Co.join(r,t),{destStat:o}=Oo.checkPathsSync(i,s,"copy");return sv(o,i,s,n)}function bN(t,e,r,n){let i=ke.readlinkSync(e);if(n.dereference&&(i=Co.resolve(process.cwd(),i)),t){let s;try{s=ke.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ke.symlinkSync(i,r);throw o}if(n.dereference&&(s=Co.resolve(process.cwd(),s)),Oo.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ke.statSync(r).isDirectory()&&Oo.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return EN(i,r)}else return ke.symlinkSync(i,r)}function EN(t,e){return ke.unlinkSync(e),ke.symlinkSync(t,e)}cv.exports=fN});var wh=m((tK,lv)=>{"use strict";u();lv.exports={copySync:uv()}});var yr=m((rK,hv)=>{"use strict";u();var wN=bt().fromPromise,fv=uh();function xN(t){return fv.access(t).then(()=>!0).catch(()=>!1)}hv.exports={pathExists:wN(xN),pathExistsSync:fv.existsSync}});var Ev=m((nK,bv)=>{"use strict";u();var et=je(),To=require("path"),SN=Pt().mkdirs,AN=yr().pathExists,RN=_h().utimesMillis,ko=Ro();function CN(t,e,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
26
26
 
27
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Wo.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Wo.checkParentPaths(t,o,e,"copy",u=>u?n(u):r.filter?Hv(qv,a,t,e,r,n):qv(a,t,e,r,n))})}function qv(t,e,r,n,i){let s=Vo.dirname(r);JP(s,(o,a)=>{if(o)return i(o);if(a)return Gh(t,e,r,n,i);ZP(s,u=>u?i(u):Gh(t,e,r,n,i))})}function Hv(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function Gh(t,e,r,n,i){return n.filter?Hv(jv,t,e,r,n,i):jv(t,e,r,n,i)}function jv(t,e,r,n,i){(n.dereference?ut.stat:ut.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return nI(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return eI(a,t,e,r,n,i);if(a.isSymbolicLink())return oI(t,e,r,n,i)})}function eI(t,e,r,n,i,s){return e?tI(t,r,n,i,s):$v(t,r,n,i,s)}function tI(t,e,r,n,i){if(n.overwrite)ut.unlink(r,s=>s?i(s):$v(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function $v(t,e,r,n,i){return typeof ut.copyFile=="function"?ut.copyFile(e,r,s=>s?i(s):Uv(t,r,n,i)):rI(t,e,r,n,i)}function rI(t,e,r,n,i){let s=ut.createReadStream(e);s.on("error",o=>i(o)).once("open",()=>{let o=ut.createWriteStream(r,{mode:t.mode});o.on("error",a=>i(a)).on("open",()=>s.pipe(o)).once("close",()=>Uv(t,r,n,i))})}function Uv(t,e,r,n){ut.chmod(e,t.mode,i=>i?n(i):r.preserveTimestamps?XP(e,t.atime,t.mtime,n):n())}function nI(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Gv(r,n,i,s):iI(t,r,n,i,s)}function iI(t,e,r,n,i){ut.mkdir(r,s=>{if(s)return i(s);Gv(e,r,n,o=>o?i(o):ut.chmod(r,t.mode,i))})}function Gv(t,e,r,n){ut.readdir(t,(i,s)=>i?n(i):Vv(s,t,e,r,n))}function Vv(t,e,r,n,i){let s=t.pop();return s?sI(t,s,e,r,n,i):i()}function sI(t,e,r,n,i,s){let o=Vo.join(r,e),a=Vo.join(n,e);Wo.checkPaths(o,a,"copy",(u,l)=>{if(u)return s(u);let{destStat:f}=l;Gh(f,o,a,i,h=>h?s(h):Vv(t,r,n,i,s))})}function oI(t,e,r,n,i){ut.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Vo.resolve(process.cwd(),o)),t)ut.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?ut.symlink(o,r,i):i(a):(n.dereference&&(u=Vo.resolve(process.cwd(),u)),Wo.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Wo.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):aI(o,r,i)));else return ut.symlink(o,r,i)})}function aI(t,e,r){ut.unlink(e,n=>n?r(n):ut.symlink(t,e,r))}Wv.exports=QP});var Vh=m((HK,Yv)=>{"use strict";c();var uI=Ot().fromCallback;Yv.exports={copy:uI(zv())}});var nE=m(($K,rE)=>{"use strict";c();var Kv=ze(),Qv=require("path"),we=require("assert"),zo=process.platform==="win32";function eE(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||Kv[r],r=r+"Sync",t[r]=t[r]||Kv[r]}),t.maxBusyTries=t.maxBusyTries||3}function Wh(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),we(t,"rimraf: missing path"),we.strictEqual(typeof t,"string","rimraf: path should be a string"),we.strictEqual(typeof r,"function","rimraf: callback function required"),we(e,"rimraf: invalid options argument provided"),we.strictEqual(typeof e,"object","rimraf: options should be object"),eE(e),Zv(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Zv(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Zv(t,e,r){we(t),we(e),we(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&zo)return Jv(t,e,n,r);if(i&&i.isDirectory())return bu(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return zo?Jv(t,e,s,r):bu(t,e,s,r);if(s.code==="EISDIR")return bu(t,e,s,r)}return r(s)})})}function Jv(t,e,r,n){we(t),we(e),we(typeof n=="function"),r&&we(r instanceof Error),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?bu(t,e,r,n):e.unlink(t,n)})})}function Xv(t,e,r){let n;we(t),we(e),r&&we(r instanceof Error);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?wu(t,e,r):e.unlinkSync(t)}function bu(t,e,r,n){we(t),we(e),r&&we(r instanceof Error),we(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?cI(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function cI(t,e,r){we(t),we(e),we(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{Wh(Qv.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})}function tE(t,e){let r;e=e||{},eE(e),we(t,"rimraf: missing path"),we.strictEqual(typeof t,"string","rimraf: path should be a string"),we(e,"rimraf: missing options"),we.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&zo&&Xv(t,e,n)}try{r&&r.isDirectory()?wu(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return zo?Xv(t,e,n):wu(t,e,n);if(n.code!=="EISDIR")throw n;wu(t,e,n)}}function wu(t,e,r){we(t),we(e),r&&we(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")lI(t,e);else if(n.code!=="ENOENT")throw n}}function lI(t,e){if(we(t),we(e),e.readdirSync(t).forEach(r=>tE(Qv.join(t,r),e)),zo){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}rE.exports=Wh;Wh.sync=tE});var Yo=m((UK,sE)=>{"use strict";c();var fI=Ot().fromCallback,iE=nE();sE.exports={remove:fI(iE),removeSync:iE.sync}});var dE=m((GK,hE)=>{"use strict";c();var hI=Ot().fromCallback,uE=ze(),cE=require("path"),lE=jt(),fE=Yo(),oE=hI(function(e,r){r=r||function(){},uE.readdir(e,(n,i)=>{if(n)return lE.mkdirs(e,r);i=i.map(o=>cE.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();fE.remove(o,a=>{if(a)return r(a);s()})}})});function aE(t){let e;try{e=uE.readdirSync(t)}catch{return lE.mkdirsSync(t)}e.forEach(r=>{r=cE.join(t,r),fE.removeSync(r)})}hE.exports={emptyDirSync:aE,emptydirSync:aE,emptyDir:oE,emptydir:oE}});var yE=m((VK,gE)=>{"use strict";c();var dI=Ot().fromCallback,pE=require("path"),Ko=ze(),mE=jt(),pI=Cr().pathExists;function mI(t,e){function r(){Ko.writeFile(t,"",n=>{if(n)return e(n);e()})}Ko.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=pE.dirname(t);pI(s,(o,a)=>{if(o)return e(o);if(a)return r();mE.mkdirs(s,u=>{if(u)return e(u);r()})})})}function gI(t){let e;try{e=Ko.statSync(t)}catch{}if(e&&e.isFile())return;let r=pE.dirname(t);Ko.existsSync(r)||mE.mkdirsSync(r),Ko.writeFileSync(t,"")}gE.exports={createFile:dI(mI),createFileSync:gI}});var wE=m((WK,bE)=>{"use strict";c();var yI=Ot().fromCallback,vE=require("path"),pi=ze(),EE=jt(),_E=Cr().pathExists;function _I(t,e,r){function n(i,s){pi.link(i,s,o=>{if(o)return r(o);r(null)})}_E(e,(i,s)=>{if(i)return r(i);if(s)return r(null);pi.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=vE.dirname(e);_E(a,(u,l)=>{if(u)return r(u);if(l)return n(t,e);EE.mkdirs(a,f=>{if(f)return r(f);n(t,e)})})})})}function vI(t,e){if(pi.existsSync(e))return;try{pi.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=vE.dirname(e);return pi.existsSync(n)||EE.mkdirsSync(n),pi.linkSync(t,e)}bE.exports={createLink:yI(_I),createLinkSync:vI}});var SE=m((zK,xE)=>{"use strict";c();var Tn=require("path"),Zo=ze(),EI=Cr().pathExists;function bI(t,e,r){if(Tn.isAbsolute(t))return Zo.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=Tn.dirname(e),i=Tn.join(n,t);return EI(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):Zo.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:Tn.relative(n,t)})))}}function wI(t,e){let r;if(Tn.isAbsolute(t)){if(r=Zo.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=Tn.dirname(e),i=Tn.join(n,t);if(r=Zo.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Zo.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:Tn.relative(n,t)}}}xE.exports={symlinkPaths:bI,symlinkPathsSync:wI}});var DE=m((YK,CE)=>{"use strict";c();var AE=ze();function xI(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);AE.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function SI(t,e){let r;if(e)return e;try{r=AE.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}CE.exports={symlinkType:xI,symlinkTypeSync:SI}});var IE=m((KK,PE)=>{"use strict";c();var AI=Ot().fromCallback,OE=require("path"),ss=ze(),TE=jt(),CI=TE.mkdirs,DI=TE.mkdirsSync,kE=SE(),RI=kE.symlinkPaths,OI=kE.symlinkPathsSync,FE=DE(),TI=FE.symlinkType,kI=FE.symlinkTypeSync,RE=Cr().pathExists;function FI(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,RE(e,(i,s)=>{if(i)return n(i);if(s)return n(null);RI(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,TI(a.toCwd,r,(u,l)=>{if(u)return n(u);let f=OE.dirname(e);RE(f,(h,d)=>{if(h)return n(h);if(d)return ss.symlink(t,e,l,n);CI(f,g=>{if(g)return n(g);ss.symlink(t,e,l,n)})})})})})}function PI(t,e,r){if(ss.existsSync(e))return;let i=OI(t,e);t=i.toDst,r=kI(i.toCwd,r);let s=OE.dirname(e);return ss.existsSync(s)||DI(s),ss.symlinkSync(t,e,r)}PE.exports={createSymlink:AI(FI),createSymlinkSync:PI}});var LE=m((ZK,BE)=>{"use strict";c();var xu=yE(),Su=wE(),Au=IE();BE.exports={createFile:xu.createFile,createFileSync:xu.createFileSync,ensureFile:xu.createFile,ensureFileSync:xu.createFileSync,createLink:Su.createLink,createLinkSync:Su.createLinkSync,ensureLink:Su.createLink,ensureLinkSync:Su.createLinkSync,createSymlink:Au.createSymlink,createSymlinkSync:Au.createSymlinkSync,ensureSymlink:Au.createSymlink,ensureSymlinkSync:Au.createSymlinkSync}});var jE=m((JK,qE)=>{c();var os;try{os=ze()}catch{os=require("fs")}function II(t,e,r){r==null&&(r=e,e={}),typeof e=="string"&&(e={encoding:e}),e=e||{};var n=e.fs||os,i=!0;"throws"in e&&(i=e.throws),n.readFile(t,e,function(s,o){if(s)return r(s);o=ME(o);var a;try{a=JSON.parse(o,e?e.reviver:null)}catch(u){return i?(u.message=t+": "+u.message,r(u)):r(null,null)}r(null,a)})}function BI(t,e){e=e||{},typeof e=="string"&&(e={encoding:e});var r=e.fs||os,n=!0;"throws"in e&&(n=e.throws);try{var i=r.readFileSync(t,e);return i=ME(i),JSON.parse(i,e.reviver)}catch(s){if(n)throw s.message=t+": "+s.message,s;return null}}function NE(t,e){var r,n=`
28
- `;typeof e=="object"&&e!==null&&(e.spaces&&(r=e.spaces),e.EOL&&(n=e.EOL));var i=JSON.stringify(t,e?e.replacer:null,r);return i.replace(/\n/g,n)+n}function LI(t,e,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||os,s="";try{s=NE(e,r)}catch(o){n&&n(o,null);return}i.writeFile(t,s,r,n)}function NI(t,e,r){r=r||{};var n=r.fs||os,i=NE(e,r);return n.writeFileSync(t,i,r)}function ME(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,""),t}var MI={readFile:II,readFileSync:BI,writeFile:LI,writeFileSync:NI};qE.exports=MI});var Du=m((XK,$E)=>{"use strict";c();var HE=Ot().fromCallback,Cu=jE();$E.exports={readJson:HE(Cu.readFile),readJsonSync:Cu.readFileSync,writeJson:HE(Cu.writeFile),writeJsonSync:Cu.writeFileSync}});var VE=m((QK,GE)=>{"use strict";c();var qI=require("path"),jI=jt(),HI=Cr().pathExists,UE=Du();function $I(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=qI.dirname(t);HI(i,(s,o)=>{if(s)return n(s);if(o)return UE.writeJson(t,e,r,n);jI.mkdirs(i,a=>{if(a)return n(a);UE.writeJson(t,e,r,n)})})}GE.exports=$I});var zE=m((eZ,WE)=>{"use strict";c();var UI=ze(),GI=require("path"),VI=jt(),WI=Du();function zI(t,e,r){let n=GI.dirname(t);UI.existsSync(n)||VI.mkdirsSync(n),WI.writeJsonSync(t,e,r)}WE.exports=zI});var KE=m((tZ,YE)=>{"use strict";c();var YI=Ot().fromCallback,St=Du();St.outputJson=YI(VE());St.outputJsonSync=zE();St.outputJSON=St.outputJson;St.outputJSONSync=St.outputJsonSync;St.writeJSON=St.writeJson;St.writeJSONSync=St.writeJsonSync;St.readJSON=St.readJson;St.readJSONSync=St.readJsonSync;YE.exports=St});var t1=m((rZ,e1)=>{"use strict";c();var XE=ze(),KI=require("path"),ZI=Uh().copySync,QE=Yo().removeSync,JI=jt().mkdirpSync,ZE=$o();function XI(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=ZE.checkPathsSync(t,e,"move");return ZE.checkParentPathsSync(t,i,e,"move"),JI(KI.dirname(e)),QI(t,e,n)}function QI(t,e,r){if(r)return QE(e),JE(t,e,r);if(XE.existsSync(e))throw new Error("dest already exists.");return JE(t,e,r)}function JE(t,e,r){try{XE.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return eB(t,e,r)}}function eB(t,e,r){return ZI(t,e,{overwrite:r,errorOnExist:!0}),QE(t)}e1.exports=XI});var n1=m((nZ,r1)=>{"use strict";c();r1.exports={moveSync:t1()}});var u1=m((iZ,a1)=>{"use strict";c();var tB=ze(),rB=require("path"),nB=Vh().copy,o1=Yo().remove,iB=jt().mkdirp,sB=Cr().pathExists,i1=$o();function oB(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;i1.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;i1.checkParentPaths(t,a,e,"move",u=>{if(u)return n(u);iB(rB.dirname(e),l=>l?n(l):aB(t,e,i,n))})})}function aB(t,e,r,n){if(r)return o1(e,i=>i?n(i):s1(t,e,r,n));sB(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):s1(t,e,r,n))}function s1(t,e,r,n){tB.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):uB(t,e,r,n):n())}function uB(t,e,r,n){nB(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):o1(t,n))}a1.exports=oB});var l1=m((sZ,c1)=>{"use strict";c();var cB=Ot().fromCallback;c1.exports={move:cB(u1())}});var p1=m((oZ,d1)=>{"use strict";c();var lB=Ot().fromCallback,Jo=ze(),f1=require("path"),h1=jt(),fB=Cr().pathExists;function hB(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=f1.dirname(t);fB(i,(s,o)=>{if(s)return n(s);if(o)return Jo.writeFile(t,e,r,n);h1.mkdirs(i,a=>{if(a)return n(a);Jo.writeFile(t,e,r,n)})})}function dB(t,...e){let r=f1.dirname(t);if(Jo.existsSync(r))return Jo.writeFileSync(t,...e);h1.mkdirsSync(r),Jo.writeFileSync(t,...e)}d1.exports={outputFile:lB(hB),outputFileSync:dB}});var g1=m((aZ,zh)=>{"use strict";c();zh.exports=Object.assign({},Th(),Uh(),Vh(),dE(),LE(),KE(),jt(),n1(),l1(),p1(),Cr(),Yo());var m1=require("fs");Object.getOwnPropertyDescriptor(m1,"promises")&&Object.defineProperty(zh.exports,"promises",{get(){return m1.promises}})});var ab=m(fs=>{"use strict";c();Object.defineProperty(fs,"__esModule",{value:!0});fs.splitWhen=fs.flatten=void 0;function eN(t){return t.reduce((e,r)=>[].concat(e,r),[])}fs.flatten=eN;function tN(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}fs.splitWhen=tN});var ub=m(ju=>{"use strict";c();Object.defineProperty(ju,"__esModule",{value:!0});ju.isEnoentCodeError=void 0;function rN(t){return t.code==="ENOENT"}ju.isEnoentCodeError=rN});var cb=m(Hu=>{"use strict";c();Object.defineProperty(Hu,"__esModule",{value:!0});Hu.createDirentFromStats=void 0;var _d=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function nN(t,e){return new _d(t,e)}Hu.createDirentFromStats=nN});var lb=m(Rr=>{"use strict";c();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.removeLeadingDotSegment=Rr.escape=Rr.makeAbsolute=Rr.unixify=void 0;var iN=require("path"),sN=2,oN=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function aN(t){return t.replace(/\\/g,"/")}Rr.unixify=aN;function uN(t,e){return iN.resolve(t,e)}Rr.makeAbsolute=uN;function cN(t){return t.replace(oN,"\\$2")}Rr.escape=cN;function lN(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(sN)}return t}Rr.removeLeadingDotSegment=lN});var hb=m((PZ,fb)=>{c();fb.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var mb=m((IZ,pb)=>{c();var fN=hb(),db={"{":"}","(":")","[":"]"},hN=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=db[a];if(u){var l=t.indexOf(u,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},dN=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=db[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};pb.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(fN(e))return!0;var n=hN;return r&&r.strict===!1&&(n=dN),n(e)}});var yb=m((BZ,gb)=>{"use strict";c();var pN=mb(),mN=require("path").posix.dirname,gN=require("os").platform()==="win32",vd="/",yN=/\\/g,_N=/[\{\[].*[\}\]]$/,vN=/(^|[^\\])([\{\[]|\([^\)]+$)/,EN=/\\([\!\*\?\|\[\]\(\)\{\}])/g;gb.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&gN&&e.indexOf(vd)<0&&(e=e.replace(yN,vd)),_N.test(e)&&(e+=vd),e+="a";do e=mN(e);while(pN(e)||vN.test(e));return e.replace(EN,"$1")}});var $u=m(tr=>{"use strict";c();tr.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;tr.find=(t,e)=>t.nodes.find(r=>r.type===e);tr.exceedsLimit=(t,e,r=1,n)=>n===!1||!tr.isInteger(t)||!tr.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;tr.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};tr.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;tr.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;tr.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;tr.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);tr.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var Uu=m((NZ,vb)=>{"use strict";c();var _b=$u();vb.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&_b.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&_b.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(t)}});var bb=m((MZ,Eb)=>{"use strict";c();Eb.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Tb=m((qZ,Ob)=>{"use strict";c();var wb=bb(),vi=(t,e,r)=>{if(wb(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(wb(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+i+s+o+a;if(vi.cache.hasOwnProperty(u))return vi.cache[u].result;let l=Math.min(t,e),f=Math.max(t,e);if(Math.abs(l-f)===1){let v=t+"|"+e;return n.capture?`(${v})`:n.wrap===!1?v:`(?:${v})`}let h=Rb(t)||Rb(e),d={min:t,max:e,a:l,b:f},g=[],y=[];if(h&&(d.isPadded=h,d.maxLen=String(d.max).length),l<0){let v=f<0?Math.abs(f):1;y=xb(v,Math.abs(l),d,n),l=d.a=0}return f>=0&&(g=xb(l,f,d,n)),d.negatives=y,d.positives=g,d.result=bN(y,g,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&g.length+y.length>1&&(d.result=`(?:${d.result})`),vi.cache[u]=d,d.result};function bN(t,e,r){let n=Ed(t,e,"-",!1,r)||[],i=Ed(e,t,"",!1,r)||[],s=Ed(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function wN(t,e){let r=1,n=1,i=Ab(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=Ab(t,r);for(i=Cb(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=Cb(e+1,n)-1;return s=[...s],s.sort(AN),s}function xN(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=SN(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,l]=n[a];u===l?s+=u:u!=="0"||l!=="9"?s+=CN(u,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function xb(t,e,r,n){let i=wN(t,e),s=[],o=t,a;for(let u=0;u<i.length;u++){let l=i[u],f=xN(String(o),String(l),n),h="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+Db(a.count),o=l+1;continue}r.isPadded&&(h=DN(l,r,n)),f.string=h+f.pattern+Db(f.count),s.push(f),o=l+1,a=f}return s}function Ed(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!Sb(e,"string",a)&&s.push(r+a),n&&Sb(e,"string",a)&&s.push(r+a)}return s}function SN(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function AN(t,e){return t>e?1:e>t?-1:0}function Sb(t,e,r){return t.some(n=>n[e]===r)}function Ab(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Cb(t,e){return t-t%Math.pow(10,e)}function Db(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function CN(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Rb(t){return/^-?(0+)\d/.test(t)}function DN(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}vi.cache={};vi.clearCache=()=>vi.cache={};Ob.exports=vi});var xd=m((jZ,Mb)=>{"use strict";c();var RN=require("util"),Pb=Tb(),kb=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),ON=t=>e=>t===!0?Number(e):String(e),bd=t=>typeof t=="number"||typeof t=="string"&&t!=="",oa=t=>Number.isInteger(+t),wd=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},TN=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,kN=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Fb=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},FN=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},Ib=(t,e,r,n)=>{if(r)return Pb(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Bb=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return Pb(t,e,r)},Lb=(...t)=>new RangeError("Invalid range arguments: "+RN.inspect(...t)),Nb=(t,e,r)=>{if(r.strictRanges===!0)throw Lb([t,e]);return[]},PN=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},IN=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Lb([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),u=String(e),l=String(r);r=Math.max(Math.abs(r),1);let f=wd(a)||wd(u)||wd(l),h=f?Math.max(a.length,u.length,l.length):0,d=f===!1&&TN(t,e,n)===!1,g=n.transform||ON(d);if(n.toRegex&&r===1)return Ib(Fb(t,h),Fb(e,h),!0,n);let y={negatives:[],positives:[]},v=O=>y[O<0?"negatives":"positives"].push(Math.abs(O)),E=[],x=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?v(i):E.push(kN(g(i,x),h,d)),i=o?i-r:i+r,x++;return n.toRegex===!0?r>1?FN(y,n):Bb(E,null,{wrap:!1,...n}):E},BN=(t,e,r=1,n={})=>{if(!oa(t)&&t.length>1||!oa(e)&&e.length>1)return Nb(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),l=Math.max(s,o);if(n.toRegex&&r===1)return Ib(u,l,!1,n);let f=[],h=0;for(;a?s>=o:s<=o;)f.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?Bb(f,null,{wrap:!1,options:n}):f},Gu=(t,e,r,n={})=>{if(e==null&&bd(t))return[t];if(!bd(t)||!bd(e))return Nb(t,e,n);if(typeof r=="function")return Gu(t,e,1,{transform:r});if(kb(r))return Gu(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,oa(r)?oa(t)&&oa(e)?IN(t,e,r,i):BN(t,e,Math.max(Math.abs(r),1),i):r!=null&&!kb(r)?PN(r,i):Gu(t,e,1,r)};Mb.exports=Gu});var Hb=m((HZ,jb)=>{"use strict";c();var LN=xd(),qb=$u(),NN=(t,e={})=>{let r=(n,i={})=>{let s=qb.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",l="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=qb.reduce(n.nodes),h=LN(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let f of n.nodes)l+=r(f,n);return l};return r(t)};jb.exports=NN});var Gb=m(($Z,Ub)=>{"use strict";c();var MN=xd(),$b=Uu(),hs=$u(),Ei=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?hs.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(Ei(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Ei(i,s,r):i+s);return hs.flatten(n)},qN=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Ei(a.pop(),$b(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Ei(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=hs.reduce(i.nodes);if(hs.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=MN(...h,e);d.length===0&&(d=$b(i,e)),a.push(Ei(a.pop(),d)),i.nodes=[];return}let u=hs.encloseBrace(i),l=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,l=f.queue;for(let h=0;h<i.nodes.length;h++){let d=i.nodes[h];if(d.type==="comma"&&i.type==="brace"){h===1&&l.push(""),l.push("");continue}if(d.type==="close"){a.push(Ei(a.pop(),l,u));continue}if(d.value&&d.type!=="open"){l.push(Ei(l.pop(),d.value));continue}d.nodes&&n(d,i)}return l};return hs.flatten(n(t))};Ub.exports=qN});var Wb=m((UZ,Vb)=>{"use strict";c();Vb.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
29
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Jb=m((GZ,Zb)=>{"use strict";c();var jN=Uu(),{MAX_LENGTH:zb,CHAR_BACKSLASH:Sd,CHAR_BACKTICK:HN,CHAR_COMMA:$N,CHAR_DOT:UN,CHAR_LEFT_PARENTHESES:GN,CHAR_RIGHT_PARENTHESES:VN,CHAR_LEFT_CURLY_BRACE:WN,CHAR_RIGHT_CURLY_BRACE:zN,CHAR_LEFT_SQUARE_BRACKET:Yb,CHAR_RIGHT_SQUARE_BRACKET:Kb,CHAR_DOUBLE_QUOTE:YN,CHAR_SINGLE_QUOTE:KN,CHAR_NO_BREAK_SPACE:ZN,CHAR_ZERO_WIDTH_NOBREAK_SPACE:JN}=Wb(),XN=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(zb,r.maxLength):zb;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,u=0,l=t.length,f=0,h=0,d,g={},y=()=>t[f++],v=E=>{if(E.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&E.type==="text"){a.value+=E.value;return}return o.nodes.push(E),E.parent=o,E.prev=a,a=E,E};for(v({type:"bos"});f<l;)if(o=s[s.length-1],d=y(),!(d===JN||d===ZN)){if(d===Sd){v({type:"text",value:(e.keepEscaping?d:"")+y()});continue}if(d===Kb){v({type:"text",value:"\\"+d});continue}if(d===Yb){u++;let E=!0,x;for(;f<l&&(x=y());){if(d+=x,x===Yb){u++;continue}if(x===Sd){d+=y();continue}if(x===Kb&&(u--,u===0))break}v({type:"text",value:d});continue}if(d===GN){o=v({type:"paren",nodes:[]}),s.push(o),v({type:"text",value:d});continue}if(d===VN){if(o.type!=="paren"){v({type:"text",value:d});continue}o=s.pop(),v({type:"text",value:d}),o=s[s.length-1];continue}if(d===YN||d===KN||d===HN){let E=d,x;for(e.keepQuotes!==!0&&(d="");f<l&&(x=y());){if(x===Sd){d+=x+y();continue}if(x===E){e.keepQuotes===!0&&(d+=x);break}d+=x}v({type:"text",value:d});continue}if(d===WN){h++;let E=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=v({type:"brace",open:!0,close:!1,dollar:E,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),v({type:"open",value:d});continue}if(d===zN){if(o.type!=="brace"){v({type:"text",value:d});continue}let E="close";o=s.pop(),o.close=!0,v({type:E,value:d}),h--,o=s[s.length-1];continue}if(d===$N&&h>0){if(o.ranges>0){o.ranges=0;let E=o.nodes.shift();o.nodes=[E,{type:"text",value:jN(o)}]}v({type:"comma",value:d}),o.commas++;continue}if(d===UN&&h>0&&o.commas===0){let E=o.nodes;if(h===0||E.length===0){v({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){E.pop();let x=E[E.length-1];x.value+=a.value+d,a=x,o.ranges--;continue}v({type:"dot",value:d});continue}v({type:"text",value:d})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let E=s[s.length-1],x=E.nodes.indexOf(o);E.nodes.splice(x,1,...o.nodes)}while(s.length>0);return v({type:"eos"}),i};Zb.exports=XN});var ew=m((VZ,Qb)=>{"use strict";c();var Xb=Uu(),QN=Hb(),eM=Gb(),tM=Jb(),Ht=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=Ht.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Ht.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ht.parse=(t,e={})=>tM(t,e);Ht.stringify=(t,e={})=>Xb(typeof t=="string"?Ht.parse(t,e):t,e);Ht.compile=(t,e={})=>(typeof t=="string"&&(t=Ht.parse(t,e)),QN(t,e));Ht.expand=(t,e={})=>{typeof t=="string"&&(t=Ht.parse(t,e));let r=eM(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ht.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ht.compile(t,e):Ht.expand(t,e);Qb.exports=Ht});var aa=m((WZ,sw)=>{"use strict";c();var rM=require("path"),Or="\\\\/",tw=`[^${Or}]`,rn="\\.",nM="\\+",iM="\\?",Vu="\\/",sM="(?=.)",rw="[^/]",Ad=`(?:${Vu}|$)`,nw=`(?:^|${Vu})`,Cd=`${rn}{1,2}${Ad}`,oM=`(?!${rn})`,aM=`(?!${nw}${Cd})`,uM=`(?!${rn}{0,1}${Ad})`,cM=`(?!${Cd})`,lM=`[^.${Vu}]`,fM=`${rw}*?`,iw={DOT_LITERAL:rn,PLUS_LITERAL:nM,QMARK_LITERAL:iM,SLASH_LITERAL:Vu,ONE_CHAR:sM,QMARK:rw,END_ANCHOR:Ad,DOTS_SLASH:Cd,NO_DOT:oM,NO_DOTS:aM,NO_DOT_SLASH:uM,NO_DOTS_SLASH:cM,QMARK_NO_DOT:lM,STAR:fM,START_ANCHOR:nw},hM={...iw,SLASH_LITERAL:`[${Or}]`,QMARK:tw,STAR:`${tw}*?`,DOTS_SLASH:`${rn}{1,2}(?:[${Or}]|$)`,NO_DOT:`(?!${rn})`,NO_DOTS:`(?!(?:^|[${Or}])${rn}{1,2}(?:[${Or}]|$))`,NO_DOT_SLASH:`(?!${rn}{0,1}(?:[${Or}]|$))`,NO_DOTS_SLASH:`(?!${rn}{1,2}(?:[${Or}]|$))`,QMARK_NO_DOT:`[^.${Or}]`,START_ANCHOR:`(?:^|[${Or}])`,END_ANCHOR:`(?:[${Or}]|$)`},dM={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};sw.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:dM,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:rM.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?hM:iw}}});var ua=m(Pt=>{"use strict";c();var pM=require("path"),mM=process.platform==="win32",{REGEX_BACKSLASH:gM,REGEX_REMOVE_BACKSLASH:yM,REGEX_SPECIAL_CHARS:_M,REGEX_SPECIAL_CHARS_GLOBAL:vM}=aa();Pt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Pt.hasRegexChars=t=>_M.test(t);Pt.isRegexChar=t=>t.length===1&&Pt.hasRegexChars(t);Pt.escapeRegex=t=>t.replace(vM,"\\$1");Pt.toPosixSlashes=t=>t.replace(gM,"/");Pt.removeBackslashes=t=>t.replace(yM,e=>e==="\\"?"":e);Pt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Pt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:mM===!0||pM.sep==="\\";Pt.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Pt.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Pt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Pt.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var dw=m((YZ,hw)=>{"use strict";c();var ow=ua(),{CHAR_ASTERISK:Dd,CHAR_AT:EM,CHAR_BACKWARD_SLASH:ca,CHAR_COMMA:bM,CHAR_DOT:Rd,CHAR_EXCLAMATION_MARK:Od,CHAR_FORWARD_SLASH:fw,CHAR_LEFT_CURLY_BRACE:Td,CHAR_LEFT_PARENTHESES:kd,CHAR_LEFT_SQUARE_BRACKET:wM,CHAR_PLUS:xM,CHAR_QUESTION_MARK:aw,CHAR_RIGHT_CURLY_BRACE:SM,CHAR_RIGHT_PARENTHESES:uw,CHAR_RIGHT_SQUARE_BRACKET:AM}=aa(),cw=t=>t===fw||t===ca,lw=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},CM=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,l=-1,f=0,h=0,d=!1,g=!1,y=!1,v=!1,E=!1,x=!1,O=!1,B=!1,z=!1,H=!1,ie=0,J,X,M={value:"",depth:0,isGlob:!1},te=()=>l>=n,D=()=>u.charCodeAt(l+1),oe=()=>(J=X,u.charCodeAt(++l));for(;l<n;){X=oe();let T;if(X===ca){O=M.backslashes=!0,X=oe(),X===Td&&(x=!0);continue}if(x===!0||X===Td){for(ie++;te()!==!0&&(X=oe());){if(X===ca){O=M.backslashes=!0,oe();continue}if(X===Td){ie++;continue}if(x!==!0&&X===Rd&&(X=oe())===Rd){if(d=M.isBrace=!0,y=M.isGlob=!0,H=!0,i===!0)continue;break}if(x!==!0&&X===bM){if(d=M.isBrace=!0,y=M.isGlob=!0,H=!0,i===!0)continue;break}if(X===SM&&(ie--,ie===0)){x=!1,d=M.isBrace=!0,H=!0;break}}if(i===!0)continue;break}if(X===fw){if(s.push(l),o.push(M),M={value:"",depth:0,isGlob:!1},H===!0)continue;if(J===Rd&&l===f+1){f+=2;continue}h=l+1;continue}if(r.noext!==!0&&(X===xM||X===EM||X===Dd||X===aw||X===Od)===!0&&D()===kd){if(y=M.isGlob=!0,v=M.isExtglob=!0,H=!0,X===Od&&l===f&&(z=!0),i===!0){for(;te()!==!0&&(X=oe());){if(X===ca){O=M.backslashes=!0,X=oe();continue}if(X===uw){y=M.isGlob=!0,H=!0;break}}continue}break}if(X===Dd){if(J===Dd&&(E=M.isGlobstar=!0),y=M.isGlob=!0,H=!0,i===!0)continue;break}if(X===aw){if(y=M.isGlob=!0,H=!0,i===!0)continue;break}if(X===wM){for(;te()!==!0&&(T=oe());){if(T===ca){O=M.backslashes=!0,oe();continue}if(T===AM){g=M.isBracket=!0,y=M.isGlob=!0,H=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&X===Od&&l===f){B=M.negated=!0,f++;continue}if(r.noparen!==!0&&X===kd){if(y=M.isGlob=!0,i===!0){for(;te()!==!0&&(X=oe());){if(X===kd){O=M.backslashes=!0,X=oe();continue}if(X===uw){H=!0;break}}continue}break}if(y===!0){if(H=!0,i===!0)continue;break}}r.noext===!0&&(v=!1,y=!1);let re=u,pe="",C="";f>0&&(pe=u.slice(0,f),u=u.slice(f),h-=f),re&&y===!0&&h>0?(re=u.slice(0,h),C=u.slice(h)):y===!0?(re="",C=u):re=u,re&&re!==""&&re!=="/"&&re!==u&&cw(re.charCodeAt(re.length-1))&&(re=re.slice(0,-1)),r.unescape===!0&&(C&&(C=ow.removeBackslashes(C)),re&&O===!0&&(re=ow.removeBackslashes(re)));let S={prefix:pe,input:t,start:f,base:re,glob:C,isBrace:d,isBracket:g,isGlob:y,isExtglob:v,isGlobstar:E,negated:B,negatedExtglob:z};if(r.tokens===!0&&(S.maxDepth=0,cw(X)||o.push(M),S.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let k=0;k<s.length;k++){let P=T?T+1:f,Z=s[k],$=t.slice(P,Z);r.tokens&&(k===0&&f!==0?(o[k].isPrefix=!0,o[k].value=pe):o[k].value=$,lw(o[k]),S.maxDepth+=o[k].depth),(k!==0||$!=="")&&a.push($),T=Z}if(T&&T+1<t.length){let k=t.slice(T+1);a.push(k),r.tokens&&(o[o.length-1].value=k,lw(o[o.length-1]),S.maxDepth+=o[o.length-1].depth)}S.slashes=s,S.parts=a}return S};hw.exports=CM});var gw=m((KZ,mw)=>{"use strict";c();var Wu=aa(),$t=ua(),{MAX_LENGTH:zu,POSIX_REGEX_SOURCE:DM,REGEX_NON_SPECIAL_CHARS:RM,REGEX_SPECIAL_CHARS_BACKREF:OM,REPLACEMENTS:pw}=Wu,TM=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>$t.escapeRegex(i)).join("..")}return r},ds=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Fd=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=pw[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(zu,r.maxLength):zu,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=$t.isWindows(e),l=Wu.globChars(u),f=Wu.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:d,SLASH_LITERAL:g,ONE_CHAR:y,DOTS_SLASH:v,NO_DOT:E,NO_DOT_SLASH:x,NO_DOTS_SLASH:O,QMARK:B,QMARK_NO_DOT:z,STAR:H,START_ANCHOR:ie}=l,J=j=>`(${a}(?:(?!${ie}${j.dot?v:h}).)*?)`,X=r.dot?"":E,M=r.dot?B:z,te=r.bash===!0?J(r):H;r.capture&&(te=`(${te})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let D={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=$t.removePrefix(t,D),i=t.length;let oe=[],re=[],pe=[],C=s,S,T=()=>D.index===i-1,k=D.peek=(j=1)=>t[D.index+j],P=D.advance=()=>t[++D.index]||"",Z=()=>t.slice(D.index+1),$=(j="",Ae=0)=>{D.consumed+=j,D.index+=Ae},xe=j=>{D.output+=j.output!=null?j.output:j.value,$(j.value)},Ze=()=>{let j=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)P(),D.start++,j++;return j%2===0?!1:(D.negated=!0,D.start++,!0)},Ee=j=>{D[j]++,pe.push(j)},He=j=>{D[j]--,pe.pop()},se=j=>{if(C.type==="globstar"){let Ae=D.braces>0&&(j.type==="comma"||j.type==="brace"),q=j.extglob===!0||oe.length&&(j.type==="pipe"||j.type==="paren");j.type!=="slash"&&j.type!=="paren"&&!Ae&&!q&&(D.output=D.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=te,D.output+=C.output)}if(oe.length&&j.type!=="paren"&&(oe[oe.length-1].inner+=j.value),(j.value||j.output)&&xe(j),C&&C.type==="text"&&j.type==="text"){C.value+=j.value,C.output=(C.output||"")+j.value;return}j.prev=C,o.push(j),C=j},xt=(j,Ae)=>{let q={...f[Ae],conditions:1,inner:""};q.prev=C,q.parens=D.parens,q.output=D.output;let _=(r.capture?"(":"")+q.open;Ee("parens"),se({type:j,value:Ae,output:D.output?"":y}),se({type:"paren",extglob:!0,value:P(),output:_}),oe.push(q)},qt=j=>{let Ae=j.close+(r.capture?")":""),q;if(j.type==="negate"){let _=te;if(j.inner&&j.inner.length>1&&j.inner.includes("/")&&(_=J(r)),(_!==te||T()||/^\)+$/.test(Z()))&&(Ae=j.close=`)$))${_}`),j.inner.includes("*")&&(q=Z())&&/^\.[^\\/.]+$/.test(q)){let A=Fd(q,{...e,fastpaths:!1}).output;Ae=j.close=`)${A})${_})`}j.prev.type==="bos"&&(D.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:S,output:Ae}),He("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let j=!1,Ae=t.replace(OM,(q,_,A,b,I,G)=>b==="\\"?(j=!0,q):b==="?"?_?_+b+(I?B.repeat(I.length):""):G===0?M+(I?B.repeat(I.length):""):B.repeat(A.length):b==="."?h.repeat(A.length):b==="*"?_?_+b+(I?te:""):te:_?q:`\\${q}`);return j===!0&&(r.unescape===!0?Ae=Ae.replace(/\\/g,""):Ae=Ae.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),Ae===t&&r.contains===!0?(D.output=t,D):(D.output=$t.wrapOutput(Ae,D,e),D)}for(;!T();){if(S=P(),S==="\0")continue;if(S==="\\"){let q=k();if(q==="/"&&r.bash!==!0||q==="."||q===";")continue;if(!q){S+="\\",se({type:"text",value:S});continue}let _=/^\\+/.exec(Z()),A=0;if(_&&_[0].length>2&&(A=_[0].length,D.index+=A,A%2!==0&&(S+="\\")),r.unescape===!0?S=P():S+=P(),D.brackets===0){se({type:"text",value:S});continue}}if(D.brackets>0&&(S!=="]"||C.value==="["||C.value==="[^")){if(r.posix!==!1&&S===":"){let q=C.value.slice(1);if(q.includes("[")&&(C.posix=!0,q.includes(":"))){let _=C.value.lastIndexOf("["),A=C.value.slice(0,_),b=C.value.slice(_+2),I=DM[b];if(I){C.value=A+I,D.backtrack=!0,P(),!s.output&&o.indexOf(C)===1&&(s.output=y);continue}}}(S==="["&&k()!==":"||S==="-"&&k()==="]")&&(S=`\\${S}`),S==="]"&&(C.value==="["||C.value==="[^")&&(S=`\\${S}`),r.posix===!0&&S==="!"&&C.value==="["&&(S="^"),C.value+=S,xe({value:S});continue}if(D.quotes===1&&S!=='"'){S=$t.escapeRegex(S),C.value+=S,xe({value:S});continue}if(S==='"'){D.quotes=D.quotes===1?0:1,r.keepQuotes===!0&&se({type:"text",value:S});continue}if(S==="("){Ee("parens"),se({type:"paren",value:S});continue}if(S===")"){if(D.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ds("opening","("));let q=oe[oe.length-1];if(q&&D.parens===q.parens+1){qt(oe.pop());continue}se({type:"paren",value:S,output:D.parens?")":"\\)"}),He("parens");continue}if(S==="["){if(r.nobracket===!0||!Z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ds("closing","]"));S=`\\${S}`}else Ee("brackets");se({type:"bracket",value:S});continue}if(S==="]"){if(r.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){se({type:"text",value:S,output:`\\${S}`});continue}if(D.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ds("opening","["));se({type:"text",value:S,output:`\\${S}`});continue}He("brackets");let q=C.value.slice(1);if(C.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(S=`/${S}`),C.value+=S,xe({value:S}),r.literalBrackets===!1||$t.hasRegexChars(q))continue;let _=$t.escapeRegex(C.value);if(D.output=D.output.slice(0,-C.value.length),r.literalBrackets===!0){D.output+=_,C.value=_;continue}C.value=`(${a}${_}|${C.value})`,D.output+=C.value;continue}if(S==="{"&&r.nobrace!==!0){Ee("braces");let q={type:"brace",value:S,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};re.push(q),se(q);continue}if(S==="}"){let q=re[re.length-1];if(r.nobrace===!0||!q){se({type:"text",value:S,output:S});continue}let _=")";if(q.dots===!0){let A=o.slice(),b=[];for(let I=A.length-1;I>=0&&(o.pop(),A[I].type!=="brace");I--)A[I].type!=="dots"&&b.unshift(A[I].value);_=TM(b,r),D.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let A=D.output.slice(0,q.outputIndex),b=D.tokens.slice(q.tokensIndex);q.value=q.output="\\{",S=_="\\}",D.output=A;for(let I of b)D.output+=I.output||I.value}se({type:"brace",value:S,output:_}),He("braces"),re.pop();continue}if(S==="|"){oe.length>0&&oe[oe.length-1].conditions++,se({type:"text",value:S});continue}if(S===","){let q=S,_=re[re.length-1];_&&pe[pe.length-1]==="braces"&&(_.comma=!0,q="|"),se({type:"comma",value:S,output:q});continue}if(S==="/"){if(C.type==="dot"&&D.index===D.start+1){D.start=D.index+1,D.consumed="",D.output="",o.pop(),C=s;continue}se({type:"slash",value:S,output:g});continue}if(S==="."){if(D.braces>0&&C.type==="dot"){C.value==="."&&(C.output=h);let q=re[re.length-1];C.type="dots",C.output+=S,C.value+=S,q.dots=!0;continue}if(D.braces+D.parens===0&&C.type!=="bos"&&C.type!=="slash"){se({type:"text",value:S,output:h});continue}se({type:"dot",value:S,output:h});continue}if(S==="?"){if(!(C&&C.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){xt("qmark",S);continue}if(C&&C.type==="paren"){let _=k(),A=S;if(_==="<"&&!$t.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(_)||_==="<"&&!/<([!=]|\w+>)/.test(Z()))&&(A=`\\${S}`),se({type:"text",value:S,output:A});continue}if(r.dot!==!0&&(C.type==="slash"||C.type==="bos")){se({type:"qmark",value:S,output:z});continue}se({type:"qmark",value:S,output:B});continue}if(S==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){xt("negate",S);continue}if(r.nonegate!==!0&&D.index===0){Ze();continue}}if(S==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){xt("plus",S);continue}if(C&&C.value==="("||r.regex===!1){se({type:"plus",value:S,output:d});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||D.parens>0){se({type:"plus",value:S});continue}se({type:"plus",value:d});continue}if(S==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){se({type:"at",extglob:!0,value:S,output:""});continue}se({type:"text",value:S});continue}if(S!=="*"){(S==="$"||S==="^")&&(S=`\\${S}`);let q=RM.exec(Z());q&&(S+=q[0],D.index+=q[0].length),se({type:"text",value:S});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=S,C.output=te,D.backtrack=!0,D.globstar=!0,$(S);continue}let j=Z();if(r.noextglob!==!0&&/^\([^?]/.test(j)){xt("star",S);continue}if(C.type==="star"){if(r.noglobstar===!0){$(S);continue}let q=C.prev,_=q.prev,A=q.type==="slash"||q.type==="bos",b=_&&(_.type==="star"||_.type==="globstar");if(r.bash===!0&&(!A||j[0]&&j[0]!=="/")){se({type:"star",value:S,output:""});continue}let I=D.braces>0&&(q.type==="comma"||q.type==="brace"),G=oe.length&&(q.type==="pipe"||q.type==="paren");if(!A&&q.type!=="paren"&&!I&&!G){se({type:"star",value:S,output:""});continue}for(;j.slice(0,3)==="/**";){let U=t[D.index+4];if(U&&U!=="/")break;j=j.slice(3),$("/**",3)}if(q.type==="bos"&&T()){C.type="globstar",C.value+=S,C.output=J(r),D.output=C.output,D.globstar=!0,$(S);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!b&&T()){D.output=D.output.slice(0,-(q.output+C.output).length),q.output=`(?:${q.output}`,C.type="globstar",C.output=J(r)+(r.strictSlashes?")":"|$)"),C.value+=S,D.globstar=!0,D.output+=q.output+C.output,$(S);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&j[0]==="/"){let U=j[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(q.output+C.output).length),q.output=`(?:${q.output}`,C.type="globstar",C.output=`${J(r)}${g}|${g}${U})`,C.value+=S,D.output+=q.output+C.output,D.globstar=!0,$(S+P()),se({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&j[0]==="/"){C.type="globstar",C.value+=S,C.output=`(?:^|${g}|${J(r)}${g})`,D.output=C.output,D.globstar=!0,$(S+P()),se({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-C.output.length),C.type="globstar",C.output=J(r),C.value+=S,D.output+=C.output,D.globstar=!0,$(S);continue}let Ae={type:"star",value:S,output:te};if(r.bash===!0){Ae.output=".*?",(C.type==="bos"||C.type==="slash")&&(Ae.output=X+Ae.output),se(Ae);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&r.regex===!0){Ae.output=S,se(Ae);continue}(D.index===D.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(D.output+=x,C.output+=x):r.dot===!0?(D.output+=O,C.output+=O):(D.output+=X,C.output+=X),k()!=="*"&&(D.output+=y,C.output+=y)),se(Ae)}for(;D.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ds("closing","]"));D.output=$t.escapeLast(D.output,"["),He("brackets")}for(;D.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ds("closing",")"));D.output=$t.escapeLast(D.output,"("),He("parens")}for(;D.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ds("closing","}"));D.output=$t.escapeLast(D.output,"{"),He("braces")}if(r.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${g}?`}),D.backtrack===!0){D.output="";for(let j of D.tokens)D.output+=j.output!=null?j.output:j.value,j.suffix&&(D.output+=j.suffix)}return D};Fd.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(zu,r.maxLength):zu,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=pw[t]||t;let s=$t.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:d,STAR:g,START_ANCHOR:y}=Wu.globChars(s),v=r.dot?h:f,E=r.dot?d:f,x=r.capture?"":"?:",O={negated:!1,prefix:""},B=r.bash===!0?".*?":g;r.capture&&(B=`(${B})`);let z=X=>X.noglobstar===!0?B:`(${x}(?:(?!${y}${X.dot?l:o}).)*?)`,H=X=>{switch(X){case"*":return`${v}${u}${B}`;case".*":return`${o}${u}${B}`;case"*.*":return`${v}${B}${o}${u}${B}`;case"*/*":return`${v}${B}${a}${u}${E}${B}`;case"**":return v+z(r);case"**/*":return`(?:${v}${z(r)}${a})?${E}${u}${B}`;case"**/*.*":return`(?:${v}${z(r)}${a})?${E}${B}${o}${u}${B}`;case"**/.*":return`(?:${v}${z(r)}${a})?${o}${u}${B}`;default:{let M=/^(.*?)\.(\w+)$/.exec(X);if(!M)return;let te=H(M[1]);return te?te+o+M[2]:void 0}}},ie=$t.removePrefix(t,O),J=H(ie);return J&&r.strictSlashes!==!0&&(J+=`${a}?`),J};mw.exports=Fd});var _w=m((ZZ,yw)=>{"use strict";c();var kM=require("path"),FM=dw(),Pd=gw(),Id=ua(),PM=aa(),IM=t=>t&&typeof t=="object"&&!Array.isArray(t),Ge=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(d=>Ge(d,e,r));return d=>{for(let g of f){let y=g(d);if(y)return y}return!1}}let n=IM(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=Id.isWindows(e),o=n?Ge.compileRe(t,e):Ge.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};u=Ge(i.ignore,f,r)}let l=(f,h=!1)=>{let{isMatch:d,match:g,output:y}=Ge.test(f,o,e,{glob:t,posix:s}),v={glob:t,state:a,regex:o,posix:s,input:f,output:y,match:g,isMatch:d};return typeof i.onResult=="function"&&i.onResult(v),d===!1?(v.isMatch=!1,h?v:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(v),v.isMatch=!1,h?v:!1):(typeof i.onMatch=="function"&&i.onMatch(v),h?v:!0)};return r&&(l.state=a),l};Ge.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Id.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ge.matchBase(t,e,r,i):a=e.exec(u)),{isMatch:Boolean(a),match:a,output:u}};Ge.matchBase=(t,e,r,n=Id.isWindows(r))=>(e instanceof RegExp?e:Ge.makeRe(e,r)).test(kM.basename(t));Ge.isMatch=(t,e,r)=>Ge(e,r)(t);Ge.parse=(t,e)=>Array.isArray(t)?t.map(r=>Ge.parse(r,e)):Pd(t,{...e,fastpaths:!1});Ge.scan=(t,e)=>FM(t,e);Ge.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Ge.toRegex(a,e);return n===!0&&(u.state=t),u};Ge.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Pd.fastpaths(t,e)),i.output||(i=Pd(t,e)),Ge.compileRe(i,e,r,n)};Ge.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Ge.constants=PM;yw.exports=Ge});var Ew=m((JZ,vw)=>{"use strict";c();vw.exports=_w()});var Aw=m((XZ,Sw)=>{"use strict";c();var ww=require("util"),xw=ew(),Tr=Ew(),Bd=ua(),bw=t=>t===""||t==="./",Le=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<e.length;f++){let h=Tr(String(e[f]),{...r,onResult:a},!0),d=h.state.negated||h.state.negatedExtglob;d&&o++;for(let g of t){let y=h(g,!0);!(d?!y.isMatch:y.isMatch)||(d?n.add(y.output):(n.delete(y.output),i.add(y.output)))}}let l=(o===e.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return l};Le.match=Le;Le.matcher=(t,e)=>Tr(t,e);Le.isMatch=(t,e,r)=>Tr(e,r)(t);Le.any=Le.isMatch;Le.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Le(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Le.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ww.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Le.contains(t,n,r));if(typeof e=="string"){if(bw(t)||bw(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Le.isMatch(t,e,{...r,contains:!0})};Le.matchKeys=(t,e,r)=>{if(!Bd.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Le(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};Le.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Tr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Le.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Tr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Le.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ww.inspect(t)}"`);return[].concat(e).every(n=>Tr(n,r)(t))};Le.capture=(t,e,r)=>{let n=Bd.isWindows(r),s=Tr.makeRe(String(t),{...r,capture:!0}).exec(n?Bd.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Le.makeRe=(...t)=>Tr.makeRe(...t);Le.scan=(...t)=>Tr.scan(...t);Le.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of xw(String(n),e))r.push(Tr.parse(i,e));return r};Le.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:xw(t,e)};Le.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Le.braces(t,{...e,expand:!0})};Sw.exports=Le});var Pw=m(ae=>{"use strict";c();Object.defineProperty(ae,"__esModule",{value:!0});ae.matchAny=ae.convertPatternsToRe=ae.makeRe=ae.getPatternParts=ae.expandBraceExpansion=ae.expandPatternsWithBraceExpansion=ae.isAffectDepthOfReadingPattern=ae.endsWithSlashGlobStar=ae.hasGlobStar=ae.getBaseDirectory=ae.isPatternRelatedToParentDirectory=ae.getPatternsOutsideCurrentDirectory=ae.getPatternsInsideCurrentDirectory=ae.getPositivePatterns=ae.getNegativePatterns=ae.isPositivePattern=ae.isNegativePattern=ae.convertToNegativePattern=ae.convertToPositivePattern=ae.isDynamicPattern=ae.isStaticPattern=void 0;var BM=require("path"),LM=yb(),Ld=Aw(),Cw="**",NM="\\",MM=/[*?]|^!/,qM=/\[[^[]*]/,jM=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,HM=/[!*+?@]\([^(]*\)/,$M=/,|\.\./;function Dw(t,e={}){return!Rw(t,e)}ae.isStaticPattern=Dw;function Rw(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(NM)||MM.test(t)||qM.test(t)||jM.test(t)||e.extglob!==!1&&HM.test(t)||e.braceExpansion!==!1&&UM(t))}ae.isDynamicPattern=Rw;function UM(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return $M.test(n)}function GM(t){return Yu(t)?t.slice(1):t}ae.convertToPositivePattern=GM;function VM(t){return"!"+t}ae.convertToNegativePattern=VM;function Yu(t){return t.startsWith("!")&&t[1]!=="("}ae.isNegativePattern=Yu;function Ow(t){return!Yu(t)}ae.isPositivePattern=Ow;function WM(t){return t.filter(Yu)}ae.getNegativePatterns=WM;function zM(t){return t.filter(Ow)}ae.getPositivePatterns=zM;function YM(t){return t.filter(e=>!Nd(e))}ae.getPatternsInsideCurrentDirectory=YM;function KM(t){return t.filter(Nd)}ae.getPatternsOutsideCurrentDirectory=KM;function Nd(t){return t.startsWith("..")||t.startsWith("./..")}ae.isPatternRelatedToParentDirectory=Nd;function ZM(t){return LM(t,{flipBackslashes:!1})}ae.getBaseDirectory=ZM;function JM(t){return t.includes(Cw)}ae.hasGlobStar=JM;function Tw(t){return t.endsWith("/"+Cw)}ae.endsWithSlashGlobStar=Tw;function XM(t){let e=BM.basename(t);return Tw(t)||Dw(e)}ae.isAffectDepthOfReadingPattern=XM;function QM(t){return t.reduce((e,r)=>e.concat(kw(r)),[])}ae.expandPatternsWithBraceExpansion=QM;function kw(t){return Ld.braces(t,{expand:!0,nodupes:!0})}ae.expandBraceExpansion=kw;function e8(t,e){let{parts:r}=Ld.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ae.getPatternParts=e8;function Fw(t,e){return Ld.makeRe(t,e)}ae.makeRe=Fw;function t8(t,e){return t.map(r=>Fw(r,e))}ae.convertPatternsToRe=t8;function r8(t,e){return e.some(r=>r.test(t))}ae.matchAny=r8});var Nw=m((eJ,Lw)=>{"use strict";c();var n8=require("stream"),Iw=n8.PassThrough,i8=Array.prototype.slice;Lw.exports=s8;function s8(){let t=[],e=i8.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Iw(n);function a(){for(let f=0,h=arguments.length;f<h;f++)t.push(Bw(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(l);return}Array.isArray(f)||(f=[f]);let h=f.length+1;function d(){--h>0||(r=!1,u())}function g(y){function v(){y.removeListener("merge2UnpipeEnd",v),y.removeListener("end",v),s&&y.removeListener("error",E),d()}function E(x){o.emit("error",x)}if(y._readableState.endEmitted)return d();y.on("merge2UnpipeEnd",v),y.on("end",v),s&&y.on("error",E),y.pipe(o,{end:!1}),y.resume()}for(let y=0;y<f.length;y++)g(f[y]);d()}function l(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Bw(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Bw(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Iw(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var qw=m(Ku=>{"use strict";c();Object.defineProperty(Ku,"__esModule",{value:!0});Ku.merge=void 0;var o8=Nw();function a8(t){let e=o8(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Mw(t)),e.once("end",()=>Mw(t)),e}Ku.merge=a8;function Mw(t){t.forEach(e=>e.emit("close"))}});var jw=m(ps=>{"use strict";c();Object.defineProperty(ps,"__esModule",{value:!0});ps.isEmpty=ps.isString=void 0;function u8(t){return typeof t=="string"}ps.isString=u8;function c8(t){return t===""}ps.isEmpty=c8});var nn=m(pt=>{"use strict";c();Object.defineProperty(pt,"__esModule",{value:!0});pt.string=pt.stream=pt.pattern=pt.path=pt.fs=pt.errno=pt.array=void 0;var l8=ab();pt.array=l8;var f8=ub();pt.errno=f8;var h8=cb();pt.fs=h8;var d8=lb();pt.path=d8;var p8=Pw();pt.pattern=p8;var m8=qw();pt.stream=m8;var g8=jw();pt.string=g8});var Uw=m(mt=>{"use strict";c();Object.defineProperty(mt,"__esModule",{value:!0});mt.convertPatternGroupToTask=mt.convertPatternGroupsToTasks=mt.groupPatternsByBaseDirectory=mt.getNegativePatternsAsPositive=mt.getPositivePatterns=mt.convertPatternsToTasks=mt.generate=void 0;var sn=nn();function y8(t,e){let r=Hw(t),n=$w(t,e.ignore),i=r.filter(u=>sn.pattern.isStaticPattern(u,e)),s=r.filter(u=>sn.pattern.isDynamicPattern(u,e)),o=Md(i,n,!1),a=Md(s,n,!0);return o.concat(a)}mt.generate=y8;function Md(t,e,r){let n=[],i=sn.pattern.getPatternsOutsideCurrentDirectory(t),s=sn.pattern.getPatternsInsideCurrentDirectory(t),o=qd(i),a=qd(s);return n.push(...jd(o,e,r)),"."in a?n.push(Hd(".",s,e,r)):n.push(...jd(a,e,r)),n}mt.convertPatternsToTasks=Md;function Hw(t){return sn.pattern.getPositivePatterns(t)}mt.getPositivePatterns=Hw;function $w(t,e){return sn.pattern.getNegativePatterns(t).concat(e).map(sn.pattern.convertToPositivePattern)}mt.getNegativePatternsAsPositive=$w;function qd(t){let e={};return t.reduce((r,n)=>{let i=sn.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}mt.groupPatternsByBaseDirectory=qd;function jd(t,e,r){return Object.keys(t).map(n=>Hd(n,t[n],e,r))}mt.convertPatternGroupsToTasks=jd;function Hd(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(sn.pattern.convertToNegativePattern))}}mt.convertPatternGroupToTask=Hd});var Vw=m(ms=>{"use strict";c();Object.defineProperty(ms,"__esModule",{value:!0});ms.removeDuplicateSlashes=ms.transform=void 0;var _8=/(?!^)\/{2,}/g;function v8(t){return t.map(e=>Gw(e))}ms.transform=v8;function Gw(t){return t.replace(_8,"/")}ms.removeDuplicateSlashes=Gw});var zw=m(Zu=>{"use strict";c();Object.defineProperty(Zu,"__esModule",{value:!0});Zu.read=void 0;function E8(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Ww(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){$d(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Ww(r,s);return}$d(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),$d(r,o)})})}Zu.read=E8;function Ww(t,e){t(e)}function $d(t,e){t(null,e)}});var Yw=m(Ju=>{"use strict";c();Object.defineProperty(Ju,"__esModule",{value:!0});Ju.read=void 0;function b8(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Ju.read=b8});var Kw=m(In=>{"use strict";c();Object.defineProperty(In,"__esModule",{value:!0});In.createFileSystemAdapter=In.FILE_SYSTEM_ADAPTER=void 0;var Xu=require("fs");In.FILE_SYSTEM_ADAPTER={lstat:Xu.lstat,stat:Xu.stat,lstatSync:Xu.lstatSync,statSync:Xu.statSync};function w8(t){return t===void 0?In.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},In.FILE_SYSTEM_ADAPTER),t)}In.createFileSystemAdapter=w8});var Zw=m(Gd=>{"use strict";c();Object.defineProperty(Gd,"__esModule",{value:!0});var x8=Kw(),Ud=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=x8.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};Gd.default=Ud});var bi=m(Bn=>{"use strict";c();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.statSync=Bn.stat=Bn.Settings=void 0;var Jw=zw(),S8=Yw(),Vd=Zw();Bn.Settings=Vd.default;function A8(t,e,r){if(typeof e=="function"){Jw.read(t,Wd(),e);return}Jw.read(t,Wd(e),r)}Bn.stat=A8;function C8(t,e){let r=Wd(e);return S8.read(t,r)}Bn.statSync=C8;function Wd(t={}){return t instanceof Vd.default?t:new Vd.default(t)}});var ex=m((fJ,Qw)=>{c();var Xw;Qw.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Xw||(Xw=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var rx=m((hJ,tx)=>{c();tx.exports=R8;var D8=ex();function R8(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(u){function l(){e&&e(u,r),e=null}s?D8(l):l()}function a(u,l,f){r[u]=f,(--n===0||l)&&o(l)}n?i?i.forEach(function(u){t[u](function(l,f){a(u,l,f)})}):t.forEach(function(u,l){u(function(f,h){a(l,f,h)})}):o(null),s=!1}});var zd=m(ec=>{"use strict";c();Object.defineProperty(ec,"__esModule",{value:!0});ec.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Qu=process.versions.node.split(".");if(Qu[0]===void 0||Qu[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var nx=Number.parseInt(Qu[0],10),O8=Number.parseInt(Qu[1],10),ix=10,T8=10,k8=nx>ix,F8=nx===ix&&O8>=T8;ec.IS_SUPPORT_READDIR_WITH_FILE_TYPES=k8||F8});var sx=m(tc=>{"use strict";c();Object.defineProperty(tc,"__esModule",{value:!0});tc.createDirentFromStats=void 0;var Yd=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function P8(t,e){return new Yd(t,e)}tc.createDirentFromStats=P8});var Kd=m(rc=>{"use strict";c();Object.defineProperty(rc,"__esModule",{value:!0});rc.fs=void 0;var I8=sx();rc.fs=I8});var Zd=m(nc=>{"use strict";c();Object.defineProperty(nc,"__esModule",{value:!0});nc.joinPathSegments=void 0;function B8(t,e,r){return t.endsWith(r)?t+e:t+r+e}nc.joinPathSegments=B8});var fx=m(Ln=>{"use strict";c();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.readdir=Ln.readdirWithFileTypes=Ln.read=void 0;var L8=bi(),ox=rx(),N8=zd(),ax=Kd(),ux=Zd();function M8(t,e,r){if(!e.stats&&N8.IS_SUPPORT_READDIR_WITH_FILE_TYPES){cx(t,e,r);return}lx(t,e,r)}Ln.read=M8;function cx(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){ic(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:ux.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Jd(r,s);return}let o=s.map(a=>q8(a,e));ox(o,(a,u)=>{if(a!==null){ic(r,a);return}Jd(r,u)})})}Ln.readdirWithFileTypes=cx;function q8(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=ax.fs.createDirentFromStats(t.name,i),r(null,t)})}}function lx(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){ic(r,n);return}let s=i.map(o=>{let a=ux.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{L8.stat(a,e.fsStatSettings,(l,f)=>{if(l!==null){u(l);return}let h={name:o,path:a,dirent:ax.fs.createDirentFromStats(o,f)};e.stats&&(h.stats=f),u(null,h)})}});ox(s,(o,a)=>{if(o!==null){ic(r,o);return}Jd(r,a)})})}Ln.readdir=lx;function ic(t,e){t(e)}function Jd(t,e){t(null,e)}});var gx=m(Nn=>{"use strict";c();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.readdir=Nn.readdirWithFileTypes=Nn.read=void 0;var j8=bi(),H8=zd(),hx=Kd(),dx=Zd();function $8(t,e){return!e.stats&&H8.IS_SUPPORT_READDIR_WITH_FILE_TYPES?px(t,e):mx(t,e)}Nn.read=$8;function px(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:dx.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=hx.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Nn.readdirWithFileTypes=px;function mx(t,e){return e.fs.readdirSync(t).map(n=>{let i=dx.joinPathSegments(t,n,e.pathSegmentSeparator),s=j8.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:hx.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}Nn.readdir=mx});var yx=m(Mn=>{"use strict";c();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.createFileSystemAdapter=Mn.FILE_SYSTEM_ADAPTER=void 0;var gs=require("fs");Mn.FILE_SYSTEM_ADAPTER={lstat:gs.lstat,stat:gs.stat,lstatSync:gs.lstatSync,statSync:gs.statSync,readdir:gs.readdir,readdirSync:gs.readdirSync};function U8(t){return t===void 0?Mn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mn.FILE_SYSTEM_ADAPTER),t)}Mn.createFileSystemAdapter=U8});var _x=m(Qd=>{"use strict";c();Object.defineProperty(Qd,"__esModule",{value:!0});var G8=require("path"),V8=bi(),W8=yx(),Xd=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=W8.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,G8.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new V8.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Qd.default=Xd});var sc=m(qn=>{"use strict";c();Object.defineProperty(qn,"__esModule",{value:!0});qn.Settings=qn.scandirSync=qn.scandir=void 0;var vx=fx(),z8=gx(),ep=_x();qn.Settings=ep.default;function Y8(t,e,r){if(typeof e=="function"){vx.read(t,tp(),e);return}vx.read(t,tp(e),r)}qn.scandir=Y8;function K8(t,e){let r=tp(e);return z8.read(t,r)}qn.scandirSync=K8;function tp(t={}){return t instanceof ep.default?t:new ep.default(t)}});var bx=m((wJ,Ex)=>{"use strict";c();function Z8(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Ex.exports=Z8});var xx=m((xJ,rp)=>{"use strict";c();var J8=bx();function wx(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=J8(X8),i=null,s=null,o=0,a=null,u={push:v,drain:rr,saturated:rr,pause:f,paused:!1,concurrency:r,running:l,resume:g,idle:y,length:h,getQueue:d,unshift:E,empty:rr,kill:O,killAndDrain:B,error:z};return u;function l(){return o}function f(){u.paused=!0}function h(){for(var H=i,ie=0;H;)H=H.next,ie++;return ie}function d(){for(var H=i,ie=[];H;)ie.push(H.value),H=H.next;return ie}function g(){if(!!u.paused){u.paused=!1;for(var H=0;H<u.concurrency;H++)o++,x()}}function y(){return o===0&&u.length()===0}function v(H,ie){var J=n.get();J.context=t,J.release=x,J.value=H,J.callback=ie||rr,J.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=J,s=J):(i=J,s=J,u.saturated()):(o++,e.call(t,J.value,J.worked))}function E(H,ie){var J=n.get();J.context=t,J.release=x,J.value=H,J.callback=ie||rr,o===u.concurrency||u.paused?i?(J.next=i,i=J):(i=J,s=J,u.saturated()):(o++,e.call(t,J.value,J.worked))}function x(H){H&&n.release(H);var ie=i;ie?u.paused?o--:(s===i&&(s=null),i=ie.next,ie.next=null,e.call(t,ie.value,ie.worked),s===null&&u.empty()):--o===0&&u.drain()}function O(){i=null,s=null,u.drain=rr}function B(){i=null,s=null,u.drain(),u.drain=rr}function z(H){a=H}}function rr(){}function X8(){this.value=null,this.callback=rr,this.next=null,this.release=rr,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=rr,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function Q8(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,h){e.call(this,f).then(function(d){h(null,d)},h)}var i=wx(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=l,i;function a(f){var h=new Promise(function(d,g){s(f,function(y,v){if(y){g(y);return}d(v)})});return h.catch(rr),h}function u(f){var h=new Promise(function(d,g){o(f,function(y,v){if(y){g(y);return}d(v)})});return h.catch(rr),h}function l(){var f=i.drain,h=new Promise(function(d){i.drain=function(){f(),d()}});return h}}rp.exports=wx;rp.exports.promise=Q8});var oc=m(kr=>{"use strict";c();Object.defineProperty(kr,"__esModule",{value:!0});kr.joinPathSegments=kr.replacePathSegmentSeparator=kr.isAppliedFilter=kr.isFatalError=void 0;function e6(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}kr.isFatalError=e6;function t6(t,e){return t===null||t(e)}kr.isAppliedFilter=t6;function r6(t,e){return t.split(/[/\\]/).join(e)}kr.replacePathSegmentSeparator=r6;function n6(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}kr.joinPathSegments=n6});var sp=m(ip=>{"use strict";c();Object.defineProperty(ip,"__esModule",{value:!0});var i6=oc(),np=class{constructor(e,r){this._root=e,this._settings=r,this._root=i6.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};ip.default=np});var up=m(ap=>{"use strict";c();Object.defineProperty(ap,"__esModule",{value:!0});var s6=require("events"),o6=sc(),a6=xx(),ac=oc(),u6=sp(),op=class extends u6.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=o6.scandir,this._emitter=new s6.EventEmitter,this._queue=a6(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ac.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=ac.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ac.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ac.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};ap.default=op});var Sx=m(lp=>{"use strict";c();Object.defineProperty(lp,"__esModule",{value:!0});var c6=up(),cp=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new c6.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{l6(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{f6(e,this._storage)}),this._reader.read()}};lp.default=cp;function l6(t,e){t(e)}function f6(t,e){t(null,e)}});var Ax=m(hp=>{"use strict";c();Object.defineProperty(hp,"__esModule",{value:!0});var h6=require("stream"),d6=up(),fp=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new d6.default(this._root,this._settings),this._stream=new h6.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};hp.default=fp});var Cx=m(pp=>{"use strict";c();Object.defineProperty(pp,"__esModule",{value:!0});var p6=sc(),uc=oc(),m6=sp(),dp=class extends m6.default{constructor(){super(...arguments),this._scandir=p6.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!uc.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=uc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),uc.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&uc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};pp.default=dp});var Dx=m(gp=>{"use strict";c();Object.defineProperty(gp,"__esModule",{value:!0});var g6=Cx(),mp=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new g6.default(this._root,this._settings)}read(){return this._reader.read()}};gp.default=mp});var Rx=m(_p=>{"use strict";c();Object.defineProperty(_p,"__esModule",{value:!0});var y6=require("path"),_6=sc(),yp=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,y6.sep),this.fsScandirSettings=new _6.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};_p.default=yp});var lc=m(Fr=>{"use strict";c();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.Settings=Fr.walkStream=Fr.walkSync=Fr.walk=void 0;var Ox=Sx(),v6=Ax(),E6=Dx(),vp=Rx();Fr.Settings=vp.default;function b6(t,e,r){if(typeof e=="function"){new Ox.default(t,cc()).read(e);return}new Ox.default(t,cc(e)).read(r)}Fr.walk=b6;function w6(t,e){let r=cc(e);return new E6.default(t,r).read()}Fr.walkSync=w6;function x6(t,e){let r=cc(e);return new v6.default(t,r).read()}Fr.walkStream=x6;function cc(t={}){return t instanceof vp.default?t:new vp.default(t)}});var fc=m(bp=>{"use strict";c();Object.defineProperty(bp,"__esModule",{value:!0});var S6=require("path"),A6=bi(),Tx=nn(),Ep=class{constructor(e){this._settings=e,this._fsStatSettings=new A6.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return S6.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:Tx.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Tx.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};bp.default=Ep});var Sp=m(xp=>{"use strict";c();Object.defineProperty(xp,"__esModule",{value:!0});var C6=require("stream"),D6=bi(),R6=lc(),O6=fc(),wp=class extends O6.default{constructor(){super(...arguments),this._walkStream=R6.walkStream,this._stat=D6.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new C6.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};xp.default=wp});var kx=m(Cp=>{"use strict";c();Object.defineProperty(Cp,"__esModule",{value:!0});var T6=lc(),k6=fc(),F6=Sp(),Ap=class extends k6.default{constructor(){super(...arguments),this._walkAsync=T6.walk,this._readerStream=new F6.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Cp.default=Ap});var Fx=m(Rp=>{"use strict";c();Object.defineProperty(Rp,"__esModule",{value:!0});var ys=nn(),Dp=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=ys.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return ys.pattern.getPatternParts(e,this._micromatchOptions).map(n=>ys.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ys.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return ys.array.splitWhen(e,r=>r.dynamic&&ys.pattern.hasGlobStar(r.pattern))}};Rp.default=Dp});var Px=m(Tp=>{"use strict";c();Object.defineProperty(Tp,"__esModule",{value:!0});var P6=Fx(),Op=class extends P6.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,l)=>{let f=s.segments[l];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};Tp.default=Op});var Ix=m(Fp=>{"use strict";c();Object.defineProperty(Fp,"__esModule",{value:!0});var hc=nn(),I6=Px(),kp=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new I6.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(hc.pattern.isAffectDepthOfReadingPattern);return hc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=hc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!hc.pattern.matchAny(e,r)}};Fp.default=kp});var Bx=m(Ip=>{"use strict";c();Object.defineProperty(Ip,"__esModule",{value:!0});var wi=nn(),Pp=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=wi.pattern.convertPatternsToRe(e,this._micromatchOptions),i=wi.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=wi.path.makeAbsolute(this._settings.cwd,e);return wi.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=wi.path.removeLeadingDotSegment(e),s=wi.pattern.matchAny(i,r);return!s&&n?wi.pattern.matchAny(i+"/",r):s}};Ip.default=Pp});var Lx=m(Lp=>{"use strict";c();Object.defineProperty(Lp,"__esModule",{value:!0});var B6=nn(),Bp=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return B6.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Lp.default=Bp});var Mx=m(Mp=>{"use strict";c();Object.defineProperty(Mp,"__esModule",{value:!0});var Nx=nn(),Np=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Nx.path.makeAbsolute(this._settings.cwd,r),r=Nx.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Mp.default=Np});var dc=m(jp=>{"use strict";c();Object.defineProperty(jp,"__esModule",{value:!0});var L6=require("path"),N6=Ix(),M6=Bx(),q6=Lx(),j6=Mx(),qp=class{constructor(e){this._settings=e,this.errorFilter=new q6.default(this._settings),this.entryFilter=new M6.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new N6.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new j6.default(this._settings)}_getRootDirectory(e){return L6.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};jp.default=qp});var qx=m($p=>{"use strict";c();Object.defineProperty($p,"__esModule",{value:!0});var H6=kx(),$6=dc(),Hp=class extends $6.default{constructor(){super(...arguments),this._reader=new H6.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};$p.default=Hp});var jx=m(Gp=>{"use strict";c();Object.defineProperty(Gp,"__esModule",{value:!0});var U6=require("stream"),G6=Sp(),V6=dc(),Up=class extends V6.default{constructor(){super(...arguments),this._reader=new G6.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new U6.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Gp.default=Up});var Hx=m(Wp=>{"use strict";c();Object.defineProperty(Wp,"__esModule",{value:!0});var W6=bi(),z6=lc(),Y6=fc(),Vp=class extends Y6.default{constructor(){super(...arguments),this._walkSync=z6.walkSync,this._statSync=W6.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Wp.default=Vp});var $x=m(Yp=>{"use strict";c();Object.defineProperty(Yp,"__esModule",{value:!0});var K6=Hx(),Z6=dc(),zp=class extends Z6.default{constructor(){super(...arguments),this._reader=new K6.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Yp.default=zp});var Ux=m(vs=>{"use strict";c();Object.defineProperty(vs,"__esModule",{value:!0});vs.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _s=require("fs"),J6=require("os"),X6=Math.max(J6.cpus().length,1);vs.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_s.lstat,lstatSync:_s.lstatSync,stat:_s.stat,statSync:_s.statSync,readdir:_s.readdir,readdirSync:_s.readdirSync};var Kp=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,X6),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},vs.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};vs.default=Kp});var zx=m((YJ,Wx)=>{"use strict";c();var Gx=Uw(),Vx=Vw(),Q6=qx(),eq=jx(),tq=$x(),Zp=Ux(),xi=nn();async function Jp(t,e){Es(t);let r=Xp(t,Q6.default,e),n=await Promise.all(r);return xi.array.flatten(n)}(function(t){function e(o,a){Es(o);let u=Xp(o,tq.default,a);return xi.array.flatten(u)}t.sync=e;function r(o,a){Es(o);let u=Xp(o,eq.default,a);return xi.stream.merge(u)}t.stream=r;function n(o,a){Es(o);let u=Vx.transform([].concat(o)),l=new Zp.default(a);return Gx.generate(u,l)}t.generateTasks=n;function i(o,a){Es(o);let u=new Zp.default(a);return xi.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=i;function s(o){return Es(o),xi.path.escape(o)}t.escapePath=s})(Jp||(Jp={}));function Xp(t,e,r){let n=Vx.transform([].concat(t)),i=new Zp.default(r),s=Gx.generate(n,i),o=new e(i);return s.map(o.read,o)}function Es(t){if(![].concat(t).every(n=>xi.string.isString(n)&&!xi.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Wx.exports=Jp});var Kx=m((KJ,Yx)=>{"use strict";c();var rq=/[|\\{}()[\]^$+*?.]/g;Yx.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(rq,"\\$&")}});var Jx=m((ZJ,Zx)=>{"use strict";c();Zx.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 Qp=m((JJ,tS)=>{c();var Si=Jx(),eS={};for(pc in Si)Si.hasOwnProperty(pc)&&(eS[Si[pc]]=pc);var pc,Y=tS.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(Ct in Y)if(Y.hasOwnProperty(Ct)){if(!("channels"in Y[Ct]))throw new Error("missing channels property: "+Ct);if(!("labels"in Y[Ct]))throw new Error("missing channel labels property: "+Ct);if(Y[Ct].labels.length!==Y[Ct].channels)throw new Error("channel and label counts mismatch: "+Ct);Xx=Y[Ct].channels,Qx=Y[Ct].labels,delete Y[Ct].channels,delete Y[Ct].labels,Object.defineProperty(Y[Ct],"channels",{value:Xx}),Object.defineProperty(Y[Ct],"labels",{value:Qx})}var Xx,Qx,Ct;Y.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u,l;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),l=(i+s)/2,s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};Y.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),f=l-Math.min(o,a,u),h=function(d){return(l-d)/6/f+1/2};return f===0?i=s=0:(s=f/l,e=h(o),r=h(a),n=h(u),o===l?i=n-r:a===l?i=1/3+e-n:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};Y.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=Y.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};Y.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function nq(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}Y.rgb.keyword=function(t){var e=eS[t];if(e)return e;var r=1/0,n;for(var i in Si)if(Si.hasOwnProperty(i)){var s=Si[i],o=nq(t,s);o<r&&(r=o,n=i)}return n};Y.keyword.rgb=function(t){return Si[t]};Y.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};Y.rgb.lab=function(t){var e=Y.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};Y.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[l]=u*255;return a};Y.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};Y.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};Y.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};Y.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,(s&1)!==0&&(a=1-a),u=r+a*(o-r);var l,f,h;switch(s){default:case 6:case 0:l=o,f=u,h=r;break;case 1:l=u,f=o,h=r;break;case 2:l=r,f=o,h=u;break;case 3:l=r,f=u,h=o;break;case 4:l=u,f=r,h=o;break;case 5:l=o,f=r,h=u;break}return[l*255,f*255,h*255]};Y.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};Y.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};Y.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};Y.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),u=Math.pow(i,3),l=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};Y.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};Y.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};Y.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:Y.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};Y.hsv.ansi16=function(t){return Y.rgb.ansi16(Y.hsv.rgb(t),t[2])};Y.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};Y.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};Y.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};Y.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};Y.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};Y.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};Y.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};Y.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};Y.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};Y.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};Y.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};Y.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};Y.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};Y.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Y.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Y.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Y.gray.hsl=Y.gray.hsv=function(t){return[0,0,t[0]]};Y.gray.hwb=function(t){return[0,100,t[0]]};Y.gray.cmyk=function(t){return[0,0,0,t[0]]};Y.gray.lab=function(t){return[t[0],0,0]};Y.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var nS=m((XJ,rS)=>{c();var mc=Qp();function iq(){for(var t={},e=Object.keys(mc),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function sq(t){var e=iq(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(mc[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function oq(t,e){return function(r){return e(t(r))}}function aq(t,e){for(var r=[e[t].parent,t],n=mc[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=oq(mc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}rS.exports=function(t){for(var e=sq(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=aq(o,e))}return r}});var sS=m((QJ,iS)=>{c();var em=Qp(),uq=nS(),bs={},cq=Object.keys(em);function lq(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function fq(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}cq.forEach(function(t){bs[t]={},Object.defineProperty(bs[t],"channels",{value:em[t].channels}),Object.defineProperty(bs[t],"labels",{value:em[t].labels});var e=uq(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];bs[t][n]=fq(i),bs[t][n].raw=lq(i)})});iS.exports=bs});var aS=m((eX,oS)=>{"use strict";c();var ws=sS(),gc=(t,e)=>function(){return`\x1B[${t.apply(ws,arguments)+e}m`},yc=(t,e)=>function(){let r=t.apply(ws,arguments);return`\x1B[${38+e};5;${r}m`},_c=(t,e)=>function(){let r=t.apply(ws,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function hq(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:gc(r,0)},e.color.ansi256={ansi256:yc(r,0)},e.color.ansi16m={rgb:_c(n,0)},e.bgColor.ansi={ansi:gc(r,10)},e.bgColor.ansi256={ansi256:yc(r,10)},e.bgColor.ansi16m={rgb:_c(n,10)};for(let i of Object.keys(ws)){if(typeof ws[i]!="object")continue;let s=ws[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=gc(s.ansi16,0),e.bgColor.ansi[i]=gc(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=yc(s.ansi256,0),e.bgColor.ansi256[i]=yc(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=_c(s.rgb,0),e.bgColor.ansi16m[i]=_c(s.rgb,10))}return e}Object.defineProperty(oS,"exports",{enumerable:!0,get:hq})});var cS=m((tX,uS)=>{"use strict";c();uS.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var fS=m((rX,lS)=>{"use strict";c();var dq=require("os"),_r=cS(),gt=process.env,xs;_r("no-color")||_r("no-colors")||_r("color=false")?xs=!1:(_r("color")||_r("colors")||_r("color=true")||_r("color=always"))&&(xs=!0);"FORCE_COLOR"in gt&&(xs=gt.FORCE_COLOR.length===0||parseInt(gt.FORCE_COLOR,10)!==0);function pq(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function mq(t){if(xs===!1)return 0;if(_r("color=16m")||_r("color=full")||_r("color=truecolor"))return 3;if(_r("color=256"))return 2;if(t&&!t.isTTY&&xs!==!0)return 0;let e=xs?1:0;if(process.platform==="win32"){let r=dq.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in gt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in gt)||gt.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in gt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gt.TEAMCITY_VERSION)?1:0;if(gt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gt){let r=parseInt((gt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gt.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gt.TERM)||"COLORTERM"in gt?1:(gt.TERM==="dumb",e)}function tm(t){let e=mq(t);return pq(e)}lS.exports={supportsColor:tm,stdout:tm(process.stdout),stderr:tm(process.stderr)}});var gS=m((nX,mS)=>{"use strict";c();var gq=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,hS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,yq=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,_q=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,vq=new Map([["n",`
30
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function pS(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):vq.get(t)||t}function Eq(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(yq))r.push(i[2].replace(_q,(o,a,u)=>a?pS(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function bq(t){hS.lastIndex=0;let e=[],r;for(;(r=hS.exec(t))!==null;){let n=r[1];if(r[2]){let i=Eq(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function dS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}mS.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(gq,(s,o,a,u,l,f)=>{if(o)i.push(pS(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:dS(t,r)(h)),r.push({inverse:a,styles:bq(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(dS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var ha=m((iX,fa)=>{"use strict";c();var nm=Kx(),Ke=aS(),rm=fS().stdout,wq=gS(),_S=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),vS=["ansi","ansi","ansi256","ansi16m"],ES=new Set(["gray"]),Ss=Object.create(null);function yS(t,e){e=e||{};let r=rm?rm.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function la(t){if(!this||!(this instanceof la)||this.template){let e={};return yS(e,t),e.template=function(){let r=[].slice.call(arguments);return Aq.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,la.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=la,e.template}yS(this,t)}_S&&(Ke.blue.open="\x1B[94m");for(let t of Object.keys(Ke))Ke[t].closeRe=new RegExp(nm(Ke[t].close),"g"),Ss[t]={get(){let e=Ke[t];return vc.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};Ss.visible={get(){return vc.call(this,this._styles||[],!0,"visible")}};Ke.color.closeRe=new RegExp(nm(Ke.color.close),"g");for(let t of Object.keys(Ke.color.ansi))ES.has(t)||(Ss[t]={get(){let e=this.level;return function(){let n={open:Ke.color[vS[e]][t].apply(null,arguments),close:Ke.color.close,closeRe:Ke.color.closeRe};return vc.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});Ke.bgColor.closeRe=new RegExp(nm(Ke.bgColor.close),"g");for(let t of Object.keys(Ke.bgColor.ansi)){if(ES.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);Ss[e]={get(){let r=this.level;return function(){let i={open:Ke.bgColor[vS[r]][t].apply(null,arguments),close:Ke.bgColor.close,closeRe:Ke.bgColor.closeRe};return vc.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var xq=Object.defineProperties(()=>{},Ss);function vc(t,e,r){let n=function(){return Sq.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=xq,n}function Sq(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Ke.dim.open;_S&&this.hasGrey&&(Ke.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Ke.dim.open=n,r}function Aq(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return wq(t,n.join(""))}Object.defineProperties(la.prototype,Ss);fa.exports=la();fa.exports.supportsColor=rm;fa.exports.default=fa.exports});var wS=m((sX,bS)=>{"use strict";c();bS.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 im=m((oX,SS)=>{c();var da=wS(),xS={};for(let t of Object.keys(da))xS[da[t]]=t;var K={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"]}};SS.exports=K;for(let t of Object.keys(K)){if(!("channels"in K[t]))throw new Error("missing channels property: "+t);if(!("labels"in K[t]))throw new Error("missing channel labels property: "+t);if(K[t].labels.length!==K[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=K[t];delete K[t].channels,delete K[t].labels,Object.defineProperty(K[t],"channels",{value:e}),Object.defineProperty(K[t],"labels",{value:r})}K.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};K.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),f=l-Math.min(o,a,u),h=function(d){return(l-d)/6/f+1/2};return f===0?(i=0,s=0):(s=f/l,e=h(o),r=h(a),n=h(u),o===l?i=n-r:a===l?i=1/3+e-n:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};K.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=K.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};K.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function Cq(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}K.rgb.keyword=function(t){let e=xS[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(da)){let s=da[i],o=Cq(t,s);o<r&&(r=o,n=i)}return n};K.keyword.rgb=function(t){return da[t]};K.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};K.rgb.lab=function(t){let e=K.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};K.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)s=e+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[l]=o*255;return u};K.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};K.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};K.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};K.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let u=r+s*(a-r),l,f,h;switch(o){default:case 6:case 0:l=a,f=u,h=r;break;case 1:l=u,f=a,h=r;break;case 2:l=r,f=a,h=u;break;case 3:l=r,f=u,h=a;break;case 4:l=u,f=r,h=a;break;case 5:l=a,f=r,h=u;break}return[l*255,f*255,h*255]};K.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};K.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};K.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};K.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,l=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};K.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};K.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};K.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?K.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};K.hsv.ansi16=function(t){return K.rgb.ansi16(K.hsv.rgb(t),t[2])};K.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};K.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};K.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};K.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};K.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};K.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};K.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};K.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};K.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};K.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};K.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};K.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};K.hwb.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};K.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};K.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};K.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};K.gray.hsl=function(t){return[0,0,t[0]]};K.gray.hsv=K.gray.hsl;K.gray.hwb=function(t){return[0,100,t[0]]};K.gray.cmyk=function(t){return[0,0,0,t[0]]};K.gray.lab=function(t){return[t[0],0,0]};K.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};K.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var CS=m((aX,AS)=>{c();var Ec=im();function Dq(){let t={},e=Object.keys(Ec);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Rq(t){let e=Dq(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Ec[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function Oq(t,e){return function(r){return e(t(r))}}function Tq(t,e){let r=[e[t].parent,t],n=Ec[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Oq(Ec[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}AS.exports=function(t){let e=Rq(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Tq(o,e))}return r}});var RS=m((uX,DS)=>{c();var sm=im(),kq=CS(),As={},Fq=Object.keys(sm);function Pq(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Iq(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Fq.forEach(t=>{As[t]={},Object.defineProperty(As[t],"channels",{value:sm[t].channels}),Object.defineProperty(As[t],"labels",{value:sm[t].labels});let e=kq(t);Object.keys(e).forEach(n=>{let i=e[n];As[t][n]=Iq(i),As[t][n].raw=Pq(i)})});DS.exports=As});var am=m((cX,PS)=>{"use strict";c();var OS=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,TS=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},kS=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},bc=t=>t,FS=(t,e,r)=>[t,e,r],Cs=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},om,Ds=(t,e,r,n)=>{om===void 0&&(om=RS());let i=n?10:0,s={};for(let[o,a]of Object.entries(om)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function Bq(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Cs(e.color,"ansi",()=>Ds(OS,"ansi16",bc,!1)),Cs(e.color,"ansi256",()=>Ds(TS,"ansi256",bc,!1)),Cs(e.color,"ansi16m",()=>Ds(kS,"rgb",FS,!1)),Cs(e.bgColor,"ansi",()=>Ds(OS,"ansi16",bc,!0)),Cs(e.bgColor,"ansi256",()=>Ds(TS,"ansi256",bc,!0)),Cs(e.bgColor,"ansi16m",()=>Ds(kS,"rgb",FS,!0)),e}Object.defineProperty(PS,"exports",{enumerable:!0,get:Bq})});var BS=m((lX,IS)=>{"use strict";c();IS.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var lm=m((fX,NS)=>{"use strict";c();var Lq=require("os"),LS=require("tty"),nr=BS(),{env:tt}=process,jn;nr("no-color")||nr("no-colors")||nr("color=false")||nr("color=never")?jn=0:(nr("color")||nr("colors")||nr("color=true")||nr("color=always"))&&(jn=1);"FORCE_COLOR"in tt&&(tt.FORCE_COLOR==="true"?jn=1:tt.FORCE_COLOR==="false"?jn=0:jn=tt.FORCE_COLOR.length===0?1:Math.min(parseInt(tt.FORCE_COLOR,10),3));function um(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function cm(t,e){if(jn===0)return 0;if(nr("color=16m")||nr("color=full")||nr("color=truecolor"))return 3;if(nr("color=256"))return 2;if(t&&!e&&jn===void 0)return 0;let r=jn||0;if(tt.TERM==="dumb")return r;if(process.platform==="win32"){let n=Lq.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in tt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in tt)||tt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in tt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(tt.TEAMCITY_VERSION)?1:0;if(tt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in tt){let n=parseInt((tt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(tt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(tt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(tt.TERM)||"COLORTERM"in tt?1:r}function Nq(t){let e=cm(t,t&&t.isTTY);return um(e)}NS.exports={supportsColor:Nq,stdout:um(cm(!0,LS.isatty(1))),stderr:um(cm(!0,LS.isatty(2)))}});var qS=m((hX,MS)=>{"use strict";c();var Mq=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},qq=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
27
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),ko.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;ko.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?mv(dv,a,t,e,r,n):dv(a,t,e,r,n))})}function dv(t,e,r,n,i){let s=To.dirname(r);AN(s,(o,a)=>{if(o)return i(o);if(a)return xh(t,e,r,n,i);SN(s,c=>c?i(c):xh(t,e,r,n,i))})}function mv(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function xh(t,e,r,n,i){return n.filter?mv(pv,t,e,r,n,i):pv(t,e,r,n,i)}function pv(t,e,r,n,i){(n.dereference?et.stat:et.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return PN(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return ON(a,t,e,r,n,i);if(a.isSymbolicLink())return NN(t,e,r,n,i)})}function ON(t,e,r,n,i,s){return e?TN(t,r,n,i,s):gv(t,r,n,i,s)}function TN(t,e,r,n,i){if(n.overwrite)et.unlink(r,s=>s?i(s):gv(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function gv(t,e,r,n,i){return typeof et.copyFile=="function"?et.copyFile(e,r,s=>s?i(s):yv(t,r,n,i)):kN(t,e,r,n,i)}function kN(t,e,r,n,i){let s=et.createReadStream(e);s.on("error",o=>i(o)).once("open",()=>{let o=et.createWriteStream(r,{mode:t.mode});o.on("error",a=>i(a)).on("open",()=>s.pipe(o)).once("close",()=>yv(t,r,n,i))})}function yv(t,e,r,n){et.chmod(e,t.mode,i=>i?n(i):r.preserveTimestamps?RN(e,t.atime,t.mtime,n):n())}function PN(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):_v(r,n,i,s):IN(t,r,n,i,s)}function IN(t,e,r,n,i){et.mkdir(r,s=>{if(s)return i(s);_v(e,r,n,o=>o?i(o):et.chmod(r,t.mode,i))})}function _v(t,e,r,n){et.readdir(t,(i,s)=>i?n(i):vv(s,t,e,r,n))}function vv(t,e,r,n,i){let s=t.pop();return s?LN(t,s,e,r,n,i):i()}function LN(t,e,r,n,i,s){let o=To.join(r,e),a=To.join(n,e);ko.checkPaths(o,a,"copy",(c,l)=>{if(c)return s(c);let{destStat:f}=l;xh(f,o,a,i,h=>h?s(h):vv(t,r,n,i,s))})}function NN(t,e,r,n,i){et.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=To.resolve(process.cwd(),o)),t)et.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?et.symlink(o,r,i):i(a):(n.dereference&&(c=To.resolve(process.cwd(),c)),ko.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&ko.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):DN(o,r,i)));else return et.symlink(o,r,i)})}function DN(t,e,r){et.unlink(e,n=>n?r(n):et.symlink(t,e,r))}bv.exports=CN});var Sh=m((iK,wv)=>{"use strict";u();var MN=bt().fromCallback;wv.exports={copy:MN(Ev())}});var Pv=m((sK,kv)=>{"use strict";u();var xv=je(),Cv=require("path"),_e=require("assert"),Po=process.platform==="win32";function Ov(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||xv[r],r=r+"Sync",t[r]=t[r]||xv[r]}),t.maxBusyTries=t.maxBusyTries||3}function Ah(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e.strictEqual(typeof r,"function","rimraf: callback function required"),_e(e,"rimraf: invalid options argument provided"),_e.strictEqual(typeof e,"object","rimraf: options should be object"),Ov(e),Sv(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Sv(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Sv(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Po)return Av(t,e,n,r);if(i&&i.isDirectory())return nc(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Po?Av(t,e,s,r):nc(t,e,s,r);if(s.code==="EISDIR")return nc(t,e,s,r)}return r(s)})})}function Av(t,e,r,n){_e(t),_e(e),_e(typeof n=="function"),r&&_e(r instanceof Error),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?nc(t,e,r,n):e.unlink(t,n)})})}function Rv(t,e,r){let n;_e(t),_e(e),r&&_e(r instanceof Error);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?ic(t,e,r):e.unlinkSync(t)}function nc(t,e,r,n){_e(t),_e(e),r&&_e(r instanceof Error),_e(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?FN(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function FN(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{Ah(Cv.join(t,a),e,c=>{if(!o){if(c)return r(o=c);--s===0&&e.rmdir(t,r)}})})})}function Tv(t,e){let r;e=e||{},Ov(e),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e(e,"rimraf: missing options"),_e.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Po&&Rv(t,e,n)}try{r&&r.isDirectory()?ic(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Po?Rv(t,e,n):ic(t,e,n);if(n.code!=="EISDIR")throw n;ic(t,e,n)}}function ic(t,e,r){_e(t),_e(e),r&&_e(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")qN(t,e);else if(n.code!=="ENOENT")throw n}}function qN(t,e){if(_e(t),_e(e),e.readdirSync(t).forEach(r=>Tv(Cv.join(t,r),e)),Po){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}kv.exports=Ah;Ah.sync=Tv});var Io=m((oK,Lv)=>{"use strict";u();var BN=bt().fromCallback,Iv=Pv();Lv.exports={remove:BN(Iv),removeSync:Iv.sync}});var Hv=m((aK,jv)=>{"use strict";u();var jN=bt().fromCallback,Mv=je(),Fv=require("path"),qv=Pt(),Bv=Io(),Nv=jN(function(e,r){r=r||function(){},Mv.readdir(e,(n,i)=>{if(n)return qv.mkdirs(e,r);i=i.map(o=>Fv.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();Bv.remove(o,a=>{if(a)return r(a);s()})}})});function Dv(t){let e;try{e=Mv.readdirSync(t)}catch{return qv.mkdirsSync(t)}e.forEach(r=>{r=Fv.join(t,r),Bv.removeSync(r)})}jv.exports={emptyDirSync:Dv,emptydirSync:Dv,emptyDir:Nv,emptydir:Nv}});var Vv=m((cK,Gv)=>{"use strict";u();var HN=bt().fromCallback,$v=require("path"),Lo=je(),Uv=Pt(),$N=yr().pathExists;function UN(t,e){function r(){Lo.writeFile(t,"",n=>{if(n)return e(n);e()})}Lo.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=$v.dirname(t);$N(s,(o,a)=>{if(o)return e(o);if(a)return r();Uv.mkdirs(s,c=>{if(c)return e(c);r()})})})}function GN(t){let e;try{e=Lo.statSync(t)}catch{}if(e&&e.isFile())return;let r=$v.dirname(t);Lo.existsSync(r)||Uv.mkdirsSync(r),Lo.writeFileSync(t,"")}Gv.exports={createFile:HN(UN),createFileSync:GN}});var Zv=m((uK,Kv)=>{"use strict";u();var VN=bt().fromCallback,zv=require("path"),ti=je(),Yv=Pt(),Wv=yr().pathExists;function WN(t,e,r){function n(i,s){ti.link(i,s,o=>{if(o)return r(o);r(null)})}Wv(e,(i,s)=>{if(i)return r(i);if(s)return r(null);ti.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=zv.dirname(e);Wv(a,(c,l)=>{if(c)return r(c);if(l)return n(t,e);Yv.mkdirs(a,f=>{if(f)return r(f);n(t,e)})})})})}function zN(t,e){if(ti.existsSync(e))return;try{ti.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=zv.dirname(e);return ti.existsSync(n)||Yv.mkdirsSync(n),ti.linkSync(t,e)}Kv.exports={createLink:VN(WN),createLinkSync:zN}});var Xv=m((lK,Jv)=>{"use strict";u();var yn=require("path"),No=je(),YN=yr().pathExists;function KN(t,e,r){if(yn.isAbsolute(t))return No.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=yn.dirname(e),i=yn.join(n,t);return YN(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):No.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:yn.relative(n,t)})))}}function ZN(t,e){let r;if(yn.isAbsolute(t)){if(r=No.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=yn.dirname(e),i=yn.join(n,t);if(r=No.existsSync(i),r)return{toCwd:i,toDst:t};if(r=No.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:yn.relative(n,t)}}}Jv.exports={symlinkPaths:KN,symlinkPathsSync:ZN}});var tb=m((fK,eb)=>{"use strict";u();var Qv=je();function JN(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Qv.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function XN(t,e){let r;if(e)return e;try{r=Qv.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}eb.exports={symlinkType:JN,symlinkTypeSync:XN}});var cb=m((hK,ab)=>{"use strict";u();var QN=bt().fromCallback,nb=require("path"),Ui=je(),ib=Pt(),e5=ib.mkdirs,t5=ib.mkdirsSync,sb=Xv(),r5=sb.symlinkPaths,n5=sb.symlinkPathsSync,ob=tb(),i5=ob.symlinkType,s5=ob.symlinkTypeSync,rb=yr().pathExists;function o5(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,rb(e,(i,s)=>{if(i)return n(i);if(s)return n(null);r5(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,i5(a.toCwd,r,(c,l)=>{if(c)return n(c);let f=nb.dirname(e);rb(f,(h,d)=>{if(h)return n(h);if(d)return Ui.symlink(t,e,l,n);e5(f,y=>{if(y)return n(y);Ui.symlink(t,e,l,n)})})})})})}function a5(t,e,r){if(Ui.existsSync(e))return;let i=n5(t,e);t=i.toDst,r=s5(i.toCwd,r);let s=nb.dirname(e);return Ui.existsSync(s)||t5(s),Ui.symlinkSync(t,e,r)}ab.exports={createSymlink:QN(o5),createSymlinkSync:a5}});var lb=m((dK,ub)=>{"use strict";u();var sc=Vv(),oc=Zv(),ac=cb();ub.exports={createFile:sc.createFile,createFileSync:sc.createFileSync,ensureFile:sc.createFile,ensureFileSync:sc.createFileSync,createLink:oc.createLink,createLinkSync:oc.createLinkSync,ensureLink:oc.createLink,ensureLinkSync:oc.createLinkSync,createSymlink:ac.createSymlink,createSymlinkSync:ac.createSymlinkSync,ensureSymlink:ac.createSymlink,ensureSymlinkSync:ac.createSymlinkSync}});var pb=m((pK,db)=>{u();var Gi;try{Gi=je()}catch{Gi=require("fs")}function c5(t,e,r){r==null&&(r=e,e={}),typeof e=="string"&&(e={encoding:e}),e=e||{};var n=e.fs||Gi,i=!0;"throws"in e&&(i=e.throws),n.readFile(t,e,function(s,o){if(s)return r(s);o=hb(o);var a;try{a=JSON.parse(o,e?e.reviver:null)}catch(c){return i?(c.message=t+": "+c.message,r(c)):r(null,null)}r(null,a)})}function u5(t,e){e=e||{},typeof e=="string"&&(e={encoding:e});var r=e.fs||Gi,n=!0;"throws"in e&&(n=e.throws);try{var i=r.readFileSync(t,e);return i=hb(i),JSON.parse(i,e.reviver)}catch(s){if(n)throw s.message=t+": "+s.message,s;return null}}function fb(t,e){var r,n=`
28
+ `;typeof e=="object"&&e!==null&&(e.spaces&&(r=e.spaces),e.EOL&&(n=e.EOL));var i=JSON.stringify(t,e?e.replacer:null,r);return i.replace(/\n/g,n)+n}function l5(t,e,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||Gi,s="";try{s=fb(e,r)}catch(o){n&&n(o,null);return}i.writeFile(t,s,r,n)}function f5(t,e,r){r=r||{};var n=r.fs||Gi,i=fb(e,r);return n.writeFileSync(t,i,r)}function hb(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,""),t}var h5={readFile:c5,readFileSync:u5,writeFile:l5,writeFileSync:f5};db.exports=h5});var uc=m((mK,gb)=>{"use strict";u();var mb=bt().fromCallback,cc=pb();gb.exports={readJson:mb(cc.readFile),readJsonSync:cc.readFileSync,writeJson:mb(cc.writeFile),writeJsonSync:cc.writeFileSync}});var vb=m((gK,_b)=>{"use strict";u();var d5=require("path"),p5=Pt(),m5=yr().pathExists,yb=uc();function g5(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=d5.dirname(t);m5(i,(s,o)=>{if(s)return n(s);if(o)return yb.writeJson(t,e,r,n);p5.mkdirs(i,a=>{if(a)return n(a);yb.writeJson(t,e,r,n)})})}_b.exports=g5});var Eb=m((yK,bb)=>{"use strict";u();var y5=je(),_5=require("path"),v5=Pt(),b5=uc();function E5(t,e,r){let n=_5.dirname(t);y5.existsSync(n)||v5.mkdirsSync(n),b5.writeJsonSync(t,e,r)}bb.exports=E5});var xb=m((_K,wb)=>{"use strict";u();var w5=bt().fromCallback,gt=uc();gt.outputJson=w5(vb());gt.outputJsonSync=Eb();gt.outputJSON=gt.outputJson;gt.outputJSONSync=gt.outputJsonSync;gt.writeJSON=gt.writeJson;gt.writeJSONSync=gt.writeJsonSync;gt.readJSON=gt.readJson;gt.readJSONSync=gt.readJsonSync;wb.exports=gt});var Tb=m((vK,Ob)=>{"use strict";u();var Rb=je(),x5=require("path"),S5=wh().copySync,Cb=Io().removeSync,A5=Pt().mkdirpSync,Sb=Ro();function R5(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Sb.checkPathsSync(t,e,"move");return Sb.checkParentPathsSync(t,i,e,"move"),A5(x5.dirname(e)),C5(t,e,n)}function C5(t,e,r){if(r)return Cb(e),Ab(t,e,r);if(Rb.existsSync(e))throw new Error("dest already exists.");return Ab(t,e,r)}function Ab(t,e,r){try{Rb.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return O5(t,e,r)}}function O5(t,e,r){return S5(t,e,{overwrite:r,errorOnExist:!0}),Cb(t)}Ob.exports=R5});var Pb=m((bK,kb)=>{"use strict";u();kb.exports={moveSync:Tb()}});var Mb=m((EK,Db)=>{"use strict";u();var T5=je(),k5=require("path"),P5=Sh().copy,Nb=Io().remove,I5=Pt().mkdirp,L5=yr().pathExists,Ib=Ro();function N5(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Ib.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;Ib.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);I5(k5.dirname(e),l=>l?n(l):D5(t,e,i,n))})})}function D5(t,e,r,n){if(r)return Nb(e,i=>i?n(i):Lb(t,e,r,n));L5(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Lb(t,e,r,n))}function Lb(t,e,r,n){T5.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):M5(t,e,r,n):n())}function M5(t,e,r,n){P5(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):Nb(t,n))}Db.exports=N5});var qb=m((wK,Fb)=>{"use strict";u();var F5=bt().fromCallback;Fb.exports={move:F5(Mb())}});var $b=m((xK,Hb)=>{"use strict";u();var q5=bt().fromCallback,Do=je(),Bb=require("path"),jb=Pt(),B5=yr().pathExists;function j5(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Bb.dirname(t);B5(i,(s,o)=>{if(s)return n(s);if(o)return Do.writeFile(t,e,r,n);jb.mkdirs(i,a=>{if(a)return n(a);Do.writeFile(t,e,r,n)})})}function H5(t,...e){let r=Bb.dirname(t);if(Do.existsSync(r))return Do.writeFileSync(t,...e);jb.mkdirsSync(r),Do.writeFileSync(t,...e)}Hb.exports={outputFile:q5(j5),outputFileSync:H5}});var Gb=m((SK,Rh)=>{"use strict";u();Rh.exports=Object.assign({},uh(),wh(),Sh(),Hv(),lb(),xb(),Pt(),Pb(),qb(),$b(),yr(),Io());var Ub=require("fs");Object.getOwnPropertyDescriptor(Ub,"promises")&&Object.defineProperty(Rh.exports,"promises",{get(){return Ub.promises}})});var LE=m(Ki=>{"use strict";u();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.splitWhen=Ki.flatten=void 0;function gF(t){return t.reduce((e,r)=>[].concat(e,r),[])}Ki.flatten=gF;function yF(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Ki.splitWhen=yF});var NE=m(vc=>{"use strict";u();Object.defineProperty(vc,"__esModule",{value:!0});vc.isEnoentCodeError=void 0;function _F(t){return t.code==="ENOENT"}vc.isEnoentCodeError=_F});var DE=m(bc=>{"use strict";u();Object.defineProperty(bc,"__esModule",{value:!0});bc.createDirentFromStats=void 0;var Gh=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function vF(t,e){return new Gh(t,e)}bc.createDirentFromStats=vF});var ME=m(vr=>{"use strict";u();Object.defineProperty(vr,"__esModule",{value:!0});vr.removeLeadingDotSegment=vr.escape=vr.makeAbsolute=vr.unixify=void 0;var bF=require("path"),EF=2,wF=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function xF(t){return t.replace(/\\/g,"/")}vr.unixify=xF;function SF(t,e){return bF.resolve(t,e)}vr.makeAbsolute=SF;function AF(t){return t.replace(wF,"\\$2")}vr.escape=AF;function RF(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(EF)}return t}vr.removeLeadingDotSegment=RF});var qE=m((YK,FE)=>{u();FE.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var HE=m((KK,jE)=>{u();var CF=qE(),BE={"{":"}","(":")","[":"]"},OF=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=BE[a];if(c){var l=t.indexOf(c,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},TF=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=BE[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};jE.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(CF(e))return!0;var n=OF;return r&&r.strict===!1&&(n=TF),n(e)}});var UE=m((ZK,$E)=>{"use strict";u();var kF=HE(),PF=require("path").posix.dirname,IF=require("os").platform()==="win32",Vh="/",LF=/\\/g,NF=/[\{\[].*[\}\]]$/,DF=/(^|[^\\])([\{\[]|\([^\)]+$)/,MF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;$E.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&IF&&e.indexOf(Vh)<0&&(e=e.replace(LF,Vh)),NF.test(e)&&(e+=Vh),e+="a";do e=PF(e);while(kF(e)||DF.test(e));return e.replace(MF,"$1")}});var Ec=m(Wt=>{"use strict";u();Wt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Wt.find=(t,e)=>t.nodes.find(r=>r.type===e);Wt.exceedsLimit=(t,e,r=1,n)=>n===!1||!Wt.isInteger(t)||!Wt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Wt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Wt.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Wt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Wt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Wt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Wt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var wc=m((XK,VE)=>{"use strict";u();var GE=Ec();VE.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&GE.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&GE.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(t)}});var zE=m((QK,WE)=>{"use strict";u();WE.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var rw=m((eZ,tw)=>{"use strict";u();var YE=zE(),ii=(t,e,r)=>{if(YE(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(YE(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),c=t+":"+e+"="+i+s+o+a;if(ii.cache.hasOwnProperty(c))return ii.cache[c].result;let l=Math.min(t,e),f=Math.max(t,e);if(Math.abs(l-f)===1){let E=t+"|"+e;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let h=ew(t)||ew(e),d={min:t,max:e,a:l,b:f},y=[],g=[];if(h&&(d.isPadded=h,d.maxLen=String(d.max).length),l<0){let E=f<0?Math.abs(f):1;g=KE(E,Math.abs(l),d,n),l=d.a=0}return f>=0&&(y=KE(l,f,d,n)),d.negatives=g,d.positives=y,d.result=FF(g,y,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&y.length+g.length>1&&(d.result=`(?:${d.result})`),ii.cache[c]=d,d.result};function FF(t,e,r){let n=Wh(t,e,"-",!1,r)||[],i=Wh(e,t,"",!1,r)||[],s=Wh(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function qF(t,e){let r=1,n=1,i=JE(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=JE(t,r);for(i=XE(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=XE(e+1,n)-1;return s=[...s],s.sort(HF),s}function BF(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=jF(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,l]=n[a];c===l?s+=c:c!=="0"||l!=="9"?s+=$F(c,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function KE(t,e,r,n){let i=qF(t,e),s=[],o=t,a;for(let c=0;c<i.length;c++){let l=i[c],f=BF(String(o),String(l),n),h="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+QE(a.count),o=l+1;continue}r.isPadded&&(h=UF(l,r,n)),f.string=h+f.pattern+QE(f.count),s.push(f),o=l+1,a=f}return s}function Wh(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!ZE(e,"string",a)&&s.push(r+a),n&&ZE(e,"string",a)&&s.push(r+a)}return s}function jF(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function HF(t,e){return t>e?1:e>t?-1:0}function ZE(t,e,r){return t.some(n=>n[e]===r)}function JE(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function XE(t,e){return t-t%Math.pow(10,e)}function QE(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function $F(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function ew(t){return/^-?(0+)\d/.test(t)}function UF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}ii.cache={};ii.clearCache=()=>ii.cache={};tw.exports=ii});var Kh=m((tZ,lw)=>{"use strict";u();var GF=require("util"),sw=rw(),nw=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),VF=t=>e=>t===!0?Number(e):String(e),zh=t=>typeof t=="number"||typeof t=="string"&&t!=="",$o=t=>Number.isInteger(+t),Yh=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},WF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,zF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},iw=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},YF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},ow=(t,e,r,n)=>{if(r)return sw(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},aw=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return sw(t,e,r)},cw=(...t)=>new RangeError("Invalid range arguments: "+GF.inspect(...t)),uw=(t,e,r)=>{if(r.strictRanges===!0)throw cw([t,e]);return[]},KF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},ZF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw cw([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),c=String(e),l=String(r);r=Math.max(Math.abs(r),1);let f=Yh(a)||Yh(c)||Yh(l),h=f?Math.max(a.length,c.length,l.length):0,d=f===!1&&WF(t,e,n)===!1,y=n.transform||VF(d);if(n.toRegex&&r===1)return ow(iw(t,h),iw(e,h),!0,n);let g={negatives:[],positives:[]},E=P=>g[P<0?"negatives":"positives"].push(Math.abs(P)),v=[],A=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):v.push(zF(y(i,A),h,d)),i=o?i-r:i+r,A++;return n.toRegex===!0?r>1?YF(g,n):aw(v,null,{wrap:!1,...n}):v},JF=(t,e,r=1,n={})=>{if(!$o(t)&&t.length>1||!$o(e)&&e.length>1)return uw(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),l=Math.max(s,o);if(n.toRegex&&r===1)return ow(c,l,!1,n);let f=[],h=0;for(;a?s>=o:s<=o;)f.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?aw(f,null,{wrap:!1,options:n}):f},xc=(t,e,r,n={})=>{if(e==null&&zh(t))return[t];if(!zh(t)||!zh(e))return uw(t,e,n);if(typeof r=="function")return xc(t,e,1,{transform:r});if(nw(r))return xc(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,$o(r)?$o(t)&&$o(e)?ZF(t,e,r,i):JF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!nw(r)?KF(r,i):xc(t,e,1,r)};lw.exports=xc});var dw=m((rZ,hw)=>{"use strict";u();var XF=Kh(),fw=Ec(),QF=(t,e={})=>{let r=(n,i={})=>{let s=fw.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",l="";if(n.isOpen===!0||n.isClose===!0)return c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=fw.reduce(n.nodes),h=XF(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let f of n.nodes)l+=r(f,n);return l};return r(t)};hw.exports=QF});var gw=m((nZ,mw)=>{"use strict";u();var eq=Kh(),pw=wc(),Zi=Ec(),si=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Zi.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(si(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?si(i,s,r):i+s);return Zi.flatten(n)},tq=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(si(a.pop(),pw(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(si(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Zi.reduce(i.nodes);if(Zi.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=eq(...h,e);d.length===0&&(d=pw(i,e)),a.push(si(a.pop(),d)),i.nodes=[];return}let c=Zi.encloseBrace(i),l=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,l=f.queue;for(let h=0;h<i.nodes.length;h++){let d=i.nodes[h];if(d.type==="comma"&&i.type==="brace"){h===1&&l.push(""),l.push("");continue}if(d.type==="close"){a.push(si(a.pop(),l,c));continue}if(d.value&&d.type!=="open"){l.push(si(l.pop(),d.value));continue}d.nodes&&n(d,i)}return l};return Zi.flatten(n(t))};mw.exports=tq});var _w=m((iZ,yw)=>{"use strict";u();yw.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
29
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var xw=m((sZ,ww)=>{"use strict";u();var rq=wc(),{MAX_LENGTH:vw,CHAR_BACKSLASH:Zh,CHAR_BACKTICK:nq,CHAR_COMMA:iq,CHAR_DOT:sq,CHAR_LEFT_PARENTHESES:oq,CHAR_RIGHT_PARENTHESES:aq,CHAR_LEFT_CURLY_BRACE:cq,CHAR_RIGHT_CURLY_BRACE:uq,CHAR_LEFT_SQUARE_BRACKET:bw,CHAR_RIGHT_SQUARE_BRACKET:Ew,CHAR_DOUBLE_QUOTE:lq,CHAR_SINGLE_QUOTE:fq,CHAR_NO_BREAK_SPACE:hq,CHAR_ZERO_WIDTH_NOBREAK_SPACE:dq}=_w(),pq=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(vw,r.maxLength):vw;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,c=0,l=t.length,f=0,h=0,d,y={},g=()=>t[f++],E=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(E({type:"bos"});f<l;)if(o=s[s.length-1],d=g(),!(d===dq||d===hq)){if(d===Zh){E({type:"text",value:(e.keepEscaping?d:"")+g()});continue}if(d===Ew){E({type:"text",value:"\\"+d});continue}if(d===bw){c++;let v=!0,A;for(;f<l&&(A=g());){if(d+=A,A===bw){c++;continue}if(A===Zh){d+=g();continue}if(A===Ew&&(c--,c===0))break}E({type:"text",value:d});continue}if(d===oq){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:d});continue}if(d===aq){if(o.type!=="paren"){E({type:"text",value:d});continue}o=s.pop(),E({type:"text",value:d}),o=s[s.length-1];continue}if(d===lq||d===fq||d===nq){let v=d,A;for(e.keepQuotes!==!0&&(d="");f<l&&(A=g());){if(A===Zh){d+=A+g();continue}if(A===v){e.keepQuotes===!0&&(d+=A);break}d+=A}E({type:"text",value:d});continue}if(d===cq){h++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=E({type:"brace",open:!0,close:!1,dollar:v,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),E({type:"open",value:d});continue}if(d===uq){if(o.type!=="brace"){E({type:"text",value:d});continue}let v="close";o=s.pop(),o.close=!0,E({type:v,value:d}),h--,o=s[s.length-1];continue}if(d===iq&&h>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:rq(o)}]}E({type:"comma",value:d}),o.commas++;continue}if(d===sq&&h>0&&o.commas===0){let v=o.nodes;if(h===0||v.length===0){E({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){v.pop();let A=v[v.length-1];A.value+=a.value+d,a=A,o.ranges--;continue}E({type:"dot",value:d});continue}E({type:"text",value:d})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let v=s[s.length-1],A=v.nodes.indexOf(o);v.nodes.splice(A,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};ww.exports=pq});var Rw=m((oZ,Aw)=>{"use strict";u();var Sw=wc(),mq=dw(),gq=gw(),yq=xw(),It=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=It.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(It.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};It.parse=(t,e={})=>yq(t,e);It.stringify=(t,e={})=>Sw(typeof t=="string"?It.parse(t,e):t,e);It.compile=(t,e={})=>(typeof t=="string"&&(t=It.parse(t,e)),mq(t,e));It.expand=(t,e={})=>{typeof t=="string"&&(t=It.parse(t,e));let r=gq(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};It.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?It.compile(t,e):It.expand(t,e);Aw.exports=It});var Uo=m((aZ,Pw)=>{"use strict";u();var _q=require("path"),br="\\\\/",Cw=`[^${br}]`,Gr="\\.",vq="\\+",bq="\\?",Sc="\\/",Eq="(?=.)",Ow="[^/]",Jh=`(?:${Sc}|$)`,Tw=`(?:^|${Sc})`,Xh=`${Gr}{1,2}${Jh}`,wq=`(?!${Gr})`,xq=`(?!${Tw}${Xh})`,Sq=`(?!${Gr}{0,1}${Jh})`,Aq=`(?!${Xh})`,Rq=`[^.${Sc}]`,Cq=`${Ow}*?`,kw={DOT_LITERAL:Gr,PLUS_LITERAL:vq,QMARK_LITERAL:bq,SLASH_LITERAL:Sc,ONE_CHAR:Eq,QMARK:Ow,END_ANCHOR:Jh,DOTS_SLASH:Xh,NO_DOT:wq,NO_DOTS:xq,NO_DOT_SLASH:Sq,NO_DOTS_SLASH:Aq,QMARK_NO_DOT:Rq,STAR:Cq,START_ANCHOR:Tw},Oq={...kw,SLASH_LITERAL:`[${br}]`,QMARK:Cw,STAR:`${Cw}*?`,DOTS_SLASH:`${Gr}{1,2}(?:[${br}]|$)`,NO_DOT:`(?!${Gr})`,NO_DOTS:`(?!(?:^|[${br}])${Gr}{1,2}(?:[${br}]|$))`,NO_DOT_SLASH:`(?!${Gr}{0,1}(?:[${br}]|$))`,NO_DOTS_SLASH:`(?!${Gr}{1,2}(?:[${br}]|$))`,QMARK_NO_DOT:`[^.${br}]`,START_ANCHOR:`(?:^|[${br}])`,END_ANCHOR:`(?:[${br}]|$)`},Tq={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Pw.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Tq,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:_q.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Oq:kw}}});var Go=m(St=>{"use strict";u();var kq=require("path"),Pq=process.platform==="win32",{REGEX_BACKSLASH:Iq,REGEX_REMOVE_BACKSLASH:Lq,REGEX_SPECIAL_CHARS:Nq,REGEX_SPECIAL_CHARS_GLOBAL:Dq}=Uo();St.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);St.hasRegexChars=t=>Nq.test(t);St.isRegexChar=t=>t.length===1&&St.hasRegexChars(t);St.escapeRegex=t=>t.replace(Dq,"\\$1");St.toPosixSlashes=t=>t.replace(Iq,"/");St.removeBackslashes=t=>t.replace(Lq,e=>e==="\\"?"":e);St.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};St.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Pq===!0||kq.sep==="\\";St.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?St.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};St.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};St.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Bw=m((uZ,qw)=>{"use strict";u();var Iw=Go(),{CHAR_ASTERISK:Qh,CHAR_AT:Mq,CHAR_BACKWARD_SLASH:Vo,CHAR_COMMA:Fq,CHAR_DOT:ed,CHAR_EXCLAMATION_MARK:td,CHAR_FORWARD_SLASH:Fw,CHAR_LEFT_CURLY_BRACE:rd,CHAR_LEFT_PARENTHESES:nd,CHAR_LEFT_SQUARE_BRACKET:qq,CHAR_PLUS:Bq,CHAR_QUESTION_MARK:Lw,CHAR_RIGHT_CURLY_BRACE:jq,CHAR_RIGHT_PARENTHESES:Nw,CHAR_RIGHT_SQUARE_BRACKET:Hq}=Uo(),Dw=t=>t===Fw||t===Vo,Mw=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},$q=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,l=-1,f=0,h=0,d=!1,y=!1,g=!1,E=!1,v=!1,A=!1,P=!1,D=!1,ie=!1,z=!1,ue=0,K,Z,F={value:"",depth:0,isGlob:!1},Q=()=>l>=n,C=()=>c.charCodeAt(l+1),ne=()=>(K=Z,c.charCodeAt(++l));for(;l<n;){Z=ne();let T;if(Z===Vo){P=F.backslashes=!0,Z=ne(),Z===rd&&(A=!0);continue}if(A===!0||Z===rd){for(ue++;Q()!==!0&&(Z=ne());){if(Z===Vo){P=F.backslashes=!0,ne();continue}if(Z===rd){ue++;continue}if(A!==!0&&Z===ed&&(Z=ne())===ed){if(d=F.isBrace=!0,g=F.isGlob=!0,z=!0,i===!0)continue;break}if(A!==!0&&Z===Fq){if(d=F.isBrace=!0,g=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===jq&&(ue--,ue===0)){A=!1,d=F.isBrace=!0,z=!0;break}}if(i===!0)continue;break}if(Z===Fw){if(s.push(l),o.push(F),F={value:"",depth:0,isGlob:!1},z===!0)continue;if(K===ed&&l===f+1){f+=2;continue}h=l+1;continue}if(r.noext!==!0&&(Z===Bq||Z===Mq||Z===Qh||Z===Lw||Z===td)===!0&&C()===nd){if(g=F.isGlob=!0,E=F.isExtglob=!0,z=!0,Z===td&&l===f&&(ie=!0),i===!0){for(;Q()!==!0&&(Z=ne());){if(Z===Vo){P=F.backslashes=!0,Z=ne();continue}if(Z===Nw){g=F.isGlob=!0,z=!0;break}}continue}break}if(Z===Qh){if(K===Qh&&(v=F.isGlobstar=!0),g=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===Lw){if(g=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===qq){for(;Q()!==!0&&(T=ne());){if(T===Vo){P=F.backslashes=!0,ne();continue}if(T===Hq){y=F.isBracket=!0,g=F.isGlob=!0,z=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&Z===td&&l===f){D=F.negated=!0,f++;continue}if(r.noparen!==!0&&Z===nd){if(g=F.isGlob=!0,i===!0){for(;Q()!==!0&&(Z=ne());){if(Z===nd){P=F.backslashes=!0,Z=ne();continue}if(Z===Nw){z=!0;break}}continue}break}if(g===!0){if(z=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,g=!1);let ee=c,fe="",R="";f>0&&(fe=c.slice(0,f),c=c.slice(f),h-=f),ee&&g===!0&&h>0?(ee=c.slice(0,h),R=c.slice(h)):g===!0?(ee="",R=c):ee=c,ee&&ee!==""&&ee!=="/"&&ee!==c&&Dw(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),r.unescape===!0&&(R&&(R=Iw.removeBackslashes(R)),ee&&P===!0&&(ee=Iw.removeBackslashes(ee)));let x={prefix:fe,input:t,start:f,base:ee,glob:R,isBrace:d,isBracket:y,isGlob:g,isExtglob:E,isGlobstar:v,negated:D,negatedExtglob:ie};if(r.tokens===!0&&(x.maxDepth=0,Dw(Z)||o.push(F),x.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let k=0;k<s.length;k++){let I=T?T+1:f,Y=s[k],j=t.slice(I,Y);r.tokens&&(k===0&&f!==0?(o[k].isPrefix=!0,o[k].value=fe):o[k].value=j,Mw(o[k]),x.maxDepth+=o[k].depth),(k!==0||j!=="")&&a.push(j),T=Y}if(T&&T+1<t.length){let k=t.slice(T+1);a.push(k),r.tokens&&(o[o.length-1].value=k,Mw(o[o.length-1]),x.maxDepth+=o[o.length-1].depth)}x.slashes=s,x.parts=a}return x};qw.exports=$q});var $w=m((lZ,Hw)=>{"use strict";u();var Ac=Uo(),Lt=Go(),{MAX_LENGTH:Rc,POSIX_REGEX_SOURCE:Uq,REGEX_NON_SPECIAL_CHARS:Gq,REGEX_SPECIAL_CHARS_BACKREF:Vq,REPLACEMENTS:jw}=Ac,Wq=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Lt.escapeRegex(i)).join("..")}return r},Ji=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,id=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=jw[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(Rc,r.maxLength):Rc,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",c=Lt.isWindows(e),l=Ac.globChars(c),f=Ac.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:d,SLASH_LITERAL:y,ONE_CHAR:g,DOTS_SLASH:E,NO_DOT:v,NO_DOT_SLASH:A,NO_DOTS_SLASH:P,QMARK:D,QMARK_NO_DOT:ie,STAR:z,START_ANCHOR:ue}=l,K=B=>`(${a}(?:(?!${ue}${B.dot?E:h}).)*?)`,Z=r.dot?"":v,F=r.dot?D:ie,Q=r.bash===!0?K(r):z;r.capture&&(Q=`(${Q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let C={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Lt.removePrefix(t,C),i=t.length;let ne=[],ee=[],fe=[],R=s,x,T=()=>C.index===i-1,k=C.peek=(B=1)=>t[C.index+B],I=C.advance=()=>t[++C.index]||"",Y=()=>t.slice(C.index+1),j=(B="",Ee=0)=>{C.consumed+=B,C.index+=Ee},ve=B=>{C.output+=B.output!=null?B.output:B.value,j(B.value)},Ue=()=>{let B=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)I(),C.start++,B++;return B%2===0?!1:(C.negated=!0,C.start++,!0)},ge=B=>{C[B]++,fe.push(B)},De=B=>{C[B]--,fe.pop()},re=B=>{if(R.type==="globstar"){let Ee=C.braces>0&&(B.type==="comma"||B.type==="brace"),q=B.extglob===!0||ne.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!Ee&&!q&&(C.output=C.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=Q,C.output+=R.output)}if(ne.length&&B.type!=="paren"&&(ne[ne.length-1].inner+=B.value),(B.value||B.output)&&ve(B),R&&R.type==="text"&&B.type==="text"){R.value+=B.value,R.output=(R.output||"")+B.value;return}B.prev=R,o.push(B),R=B},mt=(B,Ee)=>{let q={...f[Ee],conditions:1,inner:""};q.prev=R,q.parens=C.parens,q.output=C.output;let _=(r.capture?"(":"")+q.open;ge("parens"),re({type:B,value:Ee,output:C.output?"":g}),re({type:"paren",extglob:!0,value:I(),output:_}),ne.push(q)},kt=B=>{let Ee=B.close+(r.capture?")":""),q;if(B.type==="negate"){let _=Q;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(_=K(r)),(_!==Q||T()||/^\)+$/.test(Y()))&&(Ee=B.close=`)$))${_}`),B.inner.includes("*")&&(q=Y())&&/^\.[^\\/.]+$/.test(q)){let S=id(q,{...e,fastpaths:!1}).output;Ee=B.close=`)${S})${_})`}B.prev.type==="bos"&&(C.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:x,output:Ee}),De("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let B=!1,Ee=t.replace(Vq,(q,_,S,b,L,$)=>b==="\\"?(B=!0,q):b==="?"?_?_+b+(L?D.repeat(L.length):""):$===0?F+(L?D.repeat(L.length):""):D.repeat(S.length):b==="."?h.repeat(S.length):b==="*"?_?_+b+(L?Q:""):Q:_?q:`\\${q}`);return B===!0&&(r.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),Ee===t&&r.contains===!0?(C.output=t,C):(C.output=Lt.wrapOutput(Ee,C,e),C)}for(;!T();){if(x=I(),x==="\0")continue;if(x==="\\"){let q=k();if(q==="/"&&r.bash!==!0||q==="."||q===";")continue;if(!q){x+="\\",re({type:"text",value:x});continue}let _=/^\\+/.exec(Y()),S=0;if(_&&_[0].length>2&&(S=_[0].length,C.index+=S,S%2!==0&&(x+="\\")),r.unescape===!0?x=I():x+=I(),C.brackets===0){re({type:"text",value:x});continue}}if(C.brackets>0&&(x!=="]"||R.value==="["||R.value==="[^")){if(r.posix!==!1&&x===":"){let q=R.value.slice(1);if(q.includes("[")&&(R.posix=!0,q.includes(":"))){let _=R.value.lastIndexOf("["),S=R.value.slice(0,_),b=R.value.slice(_+2),L=Uq[b];if(L){R.value=S+L,C.backtrack=!0,I(),!s.output&&o.indexOf(R)===1&&(s.output=g);continue}}}(x==="["&&k()!==":"||x==="-"&&k()==="]")&&(x=`\\${x}`),x==="]"&&(R.value==="["||R.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&R.value==="["&&(x="^"),R.value+=x,ve({value:x});continue}if(C.quotes===1&&x!=='"'){x=Lt.escapeRegex(x),R.value+=x,ve({value:x});continue}if(x==='"'){C.quotes=C.quotes===1?0:1,r.keepQuotes===!0&&re({type:"text",value:x});continue}if(x==="("){ge("parens"),re({type:"paren",value:x});continue}if(x===")"){if(C.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Ji("opening","("));let q=ne[ne.length-1];if(q&&C.parens===q.parens+1){kt(ne.pop());continue}re({type:"paren",value:x,output:C.parens?")":"\\)"}),De("parens");continue}if(x==="["){if(r.nobracket===!0||!Y().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Ji("closing","]"));x=`\\${x}`}else ge("brackets");re({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){re({type:"text",value:x,output:`\\${x}`});continue}if(C.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Ji("opening","["));re({type:"text",value:x,output:`\\${x}`});continue}De("brackets");let q=R.value.slice(1);if(R.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(x=`/${x}`),R.value+=x,ve({value:x}),r.literalBrackets===!1||Lt.hasRegexChars(q))continue;let _=Lt.escapeRegex(R.value);if(C.output=C.output.slice(0,-R.value.length),r.literalBrackets===!0){C.output+=_,R.value=_;continue}R.value=`(${a}${_}|${R.value})`,C.output+=R.value;continue}if(x==="{"&&r.nobrace!==!0){ge("braces");let q={type:"brace",value:x,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};ee.push(q),re(q);continue}if(x==="}"){let q=ee[ee.length-1];if(r.nobrace===!0||!q){re({type:"text",value:x,output:x});continue}let _=")";if(q.dots===!0){let S=o.slice(),b=[];for(let L=S.length-1;L>=0&&(o.pop(),S[L].type!=="brace");L--)S[L].type!=="dots"&&b.unshift(S[L].value);_=Wq(b,r),C.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let S=C.output.slice(0,q.outputIndex),b=C.tokens.slice(q.tokensIndex);q.value=q.output="\\{",x=_="\\}",C.output=S;for(let L of b)C.output+=L.output||L.value}re({type:"brace",value:x,output:_}),De("braces"),ee.pop();continue}if(x==="|"){ne.length>0&&ne[ne.length-1].conditions++,re({type:"text",value:x});continue}if(x===","){let q=x,_=ee[ee.length-1];_&&fe[fe.length-1]==="braces"&&(_.comma=!0,q="|"),re({type:"comma",value:x,output:q});continue}if(x==="/"){if(R.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",o.pop(),R=s;continue}re({type:"slash",value:x,output:y});continue}if(x==="."){if(C.braces>0&&R.type==="dot"){R.value==="."&&(R.output=h);let q=ee[ee.length-1];R.type="dots",R.output+=x,R.value+=x,q.dots=!0;continue}if(C.braces+C.parens===0&&R.type!=="bos"&&R.type!=="slash"){re({type:"text",value:x,output:h});continue}re({type:"dot",value:x,output:h});continue}if(x==="?"){if(!(R&&R.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){mt("qmark",x);continue}if(R&&R.type==="paren"){let _=k(),S=x;if(_==="<"&&!Lt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(_)||_==="<"&&!/<([!=]|\w+>)/.test(Y()))&&(S=`\\${x}`),re({type:"text",value:x,output:S});continue}if(r.dot!==!0&&(R.type==="slash"||R.type==="bos")){re({type:"qmark",value:x,output:ie});continue}re({type:"qmark",value:x,output:D});continue}if(x==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){mt("negate",x);continue}if(r.nonegate!==!0&&C.index===0){Ue();continue}}if(x==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){mt("plus",x);continue}if(R&&R.value==="("||r.regex===!1){re({type:"plus",value:x,output:d});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||C.parens>0){re({type:"plus",value:x});continue}re({type:"plus",value:d});continue}if(x==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){re({type:"at",extglob:!0,value:x,output:""});continue}re({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let q=Gq.exec(Y());q&&(x+=q[0],C.index+=q[0].length),re({type:"text",value:x});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=x,R.output=Q,C.backtrack=!0,C.globstar=!0,j(x);continue}let B=Y();if(r.noextglob!==!0&&/^\([^?]/.test(B)){mt("star",x);continue}if(R.type==="star"){if(r.noglobstar===!0){j(x);continue}let q=R.prev,_=q.prev,S=q.type==="slash"||q.type==="bos",b=_&&(_.type==="star"||_.type==="globstar");if(r.bash===!0&&(!S||B[0]&&B[0]!=="/")){re({type:"star",value:x,output:""});continue}let L=C.braces>0&&(q.type==="comma"||q.type==="brace"),$=ne.length&&(q.type==="pipe"||q.type==="paren");if(!S&&q.type!=="paren"&&!L&&!$){re({type:"star",value:x,output:""});continue}for(;B.slice(0,3)==="/**";){let H=t[C.index+4];if(H&&H!=="/")break;B=B.slice(3),j("/**",3)}if(q.type==="bos"&&T()){R.type="globstar",R.value+=x,R.output=K(r),C.output=R.output,C.globstar=!0,j(x);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!b&&T()){C.output=C.output.slice(0,-(q.output+R.output).length),q.output=`(?:${q.output}`,R.type="globstar",R.output=K(r)+(r.strictSlashes?")":"|$)"),R.value+=x,C.globstar=!0,C.output+=q.output+R.output,j(x);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&B[0]==="/"){let H=B[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(q.output+R.output).length),q.output=`(?:${q.output}`,R.type="globstar",R.output=`${K(r)}${y}|${y}${H})`,R.value+=x,C.output+=q.output+R.output,C.globstar=!0,j(x+I()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&B[0]==="/"){R.type="globstar",R.value+=x,R.output=`(?:^|${y}|${K(r)}${y})`,C.output=R.output,C.globstar=!0,j(x+I()),re({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-R.output.length),R.type="globstar",R.output=K(r),R.value+=x,C.output+=R.output,C.globstar=!0,j(x);continue}let Ee={type:"star",value:x,output:Q};if(r.bash===!0){Ee.output=".*?",(R.type==="bos"||R.type==="slash")&&(Ee.output=Z+Ee.output),re(Ee);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&r.regex===!0){Ee.output=x,re(Ee);continue}(C.index===C.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(C.output+=A,R.output+=A):r.dot===!0?(C.output+=P,R.output+=P):(C.output+=Z,R.output+=Z),k()!=="*"&&(C.output+=g,R.output+=g)),re(Ee)}for(;C.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ji("closing","]"));C.output=Lt.escapeLast(C.output,"["),De("brackets")}for(;C.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ji("closing",")"));C.output=Lt.escapeLast(C.output,"("),De("parens")}for(;C.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ji("closing","}"));C.output=Lt.escapeLast(C.output,"{"),De("braces")}if(r.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${y}?`}),C.backtrack===!0){C.output="";for(let B of C.tokens)C.output+=B.output!=null?B.output:B.value,B.suffix&&(C.output+=B.suffix)}return C};id.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(Rc,r.maxLength):Rc,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=jw[t]||t;let s=Lt.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:d,STAR:y,START_ANCHOR:g}=Ac.globChars(s),E=r.dot?h:f,v=r.dot?d:f,A=r.capture?"":"?:",P={negated:!1,prefix:""},D=r.bash===!0?".*?":y;r.capture&&(D=`(${D})`);let ie=Z=>Z.noglobstar===!0?D:`(${A}(?:(?!${g}${Z.dot?l:o}).)*?)`,z=Z=>{switch(Z){case"*":return`${E}${c}${D}`;case".*":return`${o}${c}${D}`;case"*.*":return`${E}${D}${o}${c}${D}`;case"*/*":return`${E}${D}${a}${c}${v}${D}`;case"**":return E+ie(r);case"**/*":return`(?:${E}${ie(r)}${a})?${v}${c}${D}`;case"**/*.*":return`(?:${E}${ie(r)}${a})?${v}${D}${o}${c}${D}`;case"**/.*":return`(?:${E}${ie(r)}${a})?${o}${c}${D}`;default:{let F=/^(.*?)\.(\w+)$/.exec(Z);if(!F)return;let Q=z(F[1]);return Q?Q+o+F[2]:void 0}}},ue=Lt.removePrefix(t,P),K=z(ue);return K&&r.strictSlashes!==!0&&(K+=`${a}?`),K};Hw.exports=id});var Gw=m((fZ,Uw)=>{"use strict";u();var zq=require("path"),Yq=Bw(),sd=$w(),od=Go(),Kq=Uo(),Zq=t=>t&&typeof t=="object"&&!Array.isArray(t),Fe=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(d=>Fe(d,e,r));return d=>{for(let y of f){let g=y(d);if(g)return g}return!1}}let n=Zq(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=od.isWindows(e),o=n?Fe.compileRe(t,e):Fe.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};c=Fe(i.ignore,f,r)}let l=(f,h=!1)=>{let{isMatch:d,match:y,output:g}=Fe.test(f,o,e,{glob:t,posix:s}),E={glob:t,state:a,regex:o,posix:s,input:f,output:g,match:y,isMatch:d};return typeof i.onResult=="function"&&i.onResult(E),d===!1?(E.isMatch=!1,h?E:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,h?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),h?E:!0)};return r&&(l.state=a),l};Fe.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?od.toPosixSlashes:null),a=t===n,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Fe.matchBase(t,e,r,i):a=e.exec(c)),{isMatch:Boolean(a),match:a,output:c}};Fe.matchBase=(t,e,r,n=od.isWindows(r))=>(e instanceof RegExp?e:Fe.makeRe(e,r)).test(zq.basename(t));Fe.isMatch=(t,e,r)=>Fe(e,r)(t);Fe.parse=(t,e)=>Array.isArray(t)?t.map(r=>Fe.parse(r,e)):sd(t,{...e,fastpaths:!1});Fe.scan=(t,e)=>Yq(t,e);Fe.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=Fe.toRegex(a,e);return n===!0&&(c.state=t),c};Fe.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=sd.fastpaths(t,e)),i.output||(i=sd(t,e)),Fe.compileRe(i,e,r,n)};Fe.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Fe.constants=Kq;Uw.exports=Fe});var Ww=m((hZ,Vw)=>{"use strict";u();Vw.exports=Gw()});var Jw=m((dZ,Zw)=>{"use strict";u();var Yw=require("util"),Kw=Rw(),Er=Ww(),ad=Go(),zw=t=>t===""||t==="./",Pe=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<e.length;f++){let h=Er(String(e[f]),{...r,onResult:a},!0),d=h.state.negated||h.state.negatedExtglob;d&&o++;for(let y of t){let g=h(y,!0);!(d?!g.isMatch:g.isMatch)||(d?n.add(g.output):(n.delete(g.output),i.add(g.output)))}}let l=(o===e.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&l.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return l};Pe.match=Pe;Pe.matcher=(t,e)=>Er(t,e);Pe.isMatch=(t,e,r)=>Er(e,r)(t);Pe.any=Pe.isMatch;Pe.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Pe(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Pe.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Yw.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Pe.contains(t,n,r));if(typeof e=="string"){if(zw(t)||zw(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Pe.isMatch(t,e,{...r,contains:!0})};Pe.matchKeys=(t,e,r)=>{if(!ad.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Pe(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};Pe.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Er(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Pe.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Er(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Pe.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Yw.inspect(t)}"`);return[].concat(e).every(n=>Er(n,r)(t))};Pe.capture=(t,e,r)=>{let n=ad.isWindows(r),s=Er.makeRe(String(t),{...r,capture:!0}).exec(n?ad.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Pe.makeRe=(...t)=>Er.makeRe(...t);Pe.scan=(...t)=>Er.scan(...t);Pe.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of Kw(String(n),e))r.push(Er.parse(i,e));return r};Pe.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Kw(t,e)};Pe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Pe.braces(t,{...e,expand:!0})};Zw.exports=Pe});var sx=m(se=>{"use strict";u();Object.defineProperty(se,"__esModule",{value:!0});se.matchAny=se.convertPatternsToRe=se.makeRe=se.getPatternParts=se.expandBraceExpansion=se.expandPatternsWithBraceExpansion=se.isAffectDepthOfReadingPattern=se.endsWithSlashGlobStar=se.hasGlobStar=se.getBaseDirectory=se.isPatternRelatedToParentDirectory=se.getPatternsOutsideCurrentDirectory=se.getPatternsInsideCurrentDirectory=se.getPositivePatterns=se.getNegativePatterns=se.isPositivePattern=se.isNegativePattern=se.convertToNegativePattern=se.convertToPositivePattern=se.isDynamicPattern=se.isStaticPattern=void 0;var Jq=require("path"),Xq=UE(),cd=Jw(),Xw="**",Qq="\\",eB=/[*?]|^!/,tB=/\[[^[]*]/,rB=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,nB=/[!*+?@]\([^(]*\)/,iB=/,|\.\./;function Qw(t,e={}){return!ex(t,e)}se.isStaticPattern=Qw;function ex(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Qq)||eB.test(t)||tB.test(t)||rB.test(t)||e.extglob!==!1&&nB.test(t)||e.braceExpansion!==!1&&sB(t))}se.isDynamicPattern=ex;function sB(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return iB.test(n)}function oB(t){return Cc(t)?t.slice(1):t}se.convertToPositivePattern=oB;function aB(t){return"!"+t}se.convertToNegativePattern=aB;function Cc(t){return t.startsWith("!")&&t[1]!=="("}se.isNegativePattern=Cc;function tx(t){return!Cc(t)}se.isPositivePattern=tx;function cB(t){return t.filter(Cc)}se.getNegativePatterns=cB;function uB(t){return t.filter(tx)}se.getPositivePatterns=uB;function lB(t){return t.filter(e=>!ud(e))}se.getPatternsInsideCurrentDirectory=lB;function fB(t){return t.filter(ud)}se.getPatternsOutsideCurrentDirectory=fB;function ud(t){return t.startsWith("..")||t.startsWith("./..")}se.isPatternRelatedToParentDirectory=ud;function hB(t){return Xq(t,{flipBackslashes:!1})}se.getBaseDirectory=hB;function dB(t){return t.includes(Xw)}se.hasGlobStar=dB;function rx(t){return t.endsWith("/"+Xw)}se.endsWithSlashGlobStar=rx;function pB(t){let e=Jq.basename(t);return rx(t)||Qw(e)}se.isAffectDepthOfReadingPattern=pB;function mB(t){return t.reduce((e,r)=>e.concat(nx(r)),[])}se.expandPatternsWithBraceExpansion=mB;function nx(t){return cd.braces(t,{expand:!0,nodupes:!0})}se.expandBraceExpansion=nx;function gB(t,e){let{parts:r}=cd.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}se.getPatternParts=gB;function ix(t,e){return cd.makeRe(t,e)}se.makeRe=ix;function yB(t,e){return t.map(r=>ix(r,e))}se.convertPatternsToRe=yB;function _B(t,e){return e.some(r=>r.test(t))}se.matchAny=_B});var ux=m((mZ,cx)=>{"use strict";u();var vB=require("stream"),ox=vB.PassThrough,bB=Array.prototype.slice;cx.exports=EB;function EB(){let t=[],e=bB.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=ox(n);function a(){for(let f=0,h=arguments.length;f<h;f++)t.push(ax(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(l);return}Array.isArray(f)||(f=[f]);let h=f.length+1;function d(){--h>0||(r=!1,c())}function y(g){function E(){g.removeListener("merge2UnpipeEnd",E),g.removeListener("end",E),s&&g.removeListener("error",v),d()}function v(A){o.emit("error",A)}if(g._readableState.endEmitted)return d();g.on("merge2UnpipeEnd",E),g.on("end",E),s&&g.on("error",v),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<f.length;g++)y(f[g]);d()}function l(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function ax(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=ax(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(ox(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var fx=m(Oc=>{"use strict";u();Object.defineProperty(Oc,"__esModule",{value:!0});Oc.merge=void 0;var wB=ux();function xB(t){let e=wB(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>lx(t)),e.once("end",()=>lx(t)),e}Oc.merge=xB;function lx(t){t.forEach(e=>e.emit("close"))}});var hx=m(Xi=>{"use strict";u();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.isEmpty=Xi.isString=void 0;function SB(t){return typeof t=="string"}Xi.isString=SB;function AB(t){return t===""}Xi.isEmpty=AB});var Vr=m(ot=>{"use strict";u();Object.defineProperty(ot,"__esModule",{value:!0});ot.string=ot.stream=ot.pattern=ot.path=ot.fs=ot.errno=ot.array=void 0;var RB=LE();ot.array=RB;var CB=NE();ot.errno=CB;var OB=DE();ot.fs=OB;var TB=ME();ot.path=TB;var kB=sx();ot.pattern=kB;var PB=fx();ot.stream=PB;var IB=hx();ot.string=IB});var mx=m(at=>{"use strict";u();Object.defineProperty(at,"__esModule",{value:!0});at.convertPatternGroupToTask=at.convertPatternGroupsToTasks=at.groupPatternsByBaseDirectory=at.getNegativePatternsAsPositive=at.getPositivePatterns=at.convertPatternsToTasks=at.generate=void 0;var Wr=Vr();function LB(t,e){let r=dx(t),n=px(t,e.ignore),i=r.filter(c=>Wr.pattern.isStaticPattern(c,e)),s=r.filter(c=>Wr.pattern.isDynamicPattern(c,e)),o=ld(i,n,!1),a=ld(s,n,!0);return o.concat(a)}at.generate=LB;function ld(t,e,r){let n=[],i=Wr.pattern.getPatternsOutsideCurrentDirectory(t),s=Wr.pattern.getPatternsInsideCurrentDirectory(t),o=fd(i),a=fd(s);return n.push(...hd(o,e,r)),"."in a?n.push(dd(".",s,e,r)):n.push(...hd(a,e,r)),n}at.convertPatternsToTasks=ld;function dx(t){return Wr.pattern.getPositivePatterns(t)}at.getPositivePatterns=dx;function px(t,e){return Wr.pattern.getNegativePatterns(t).concat(e).map(Wr.pattern.convertToPositivePattern)}at.getNegativePatternsAsPositive=px;function fd(t){let e={};return t.reduce((r,n)=>{let i=Wr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}at.groupPatternsByBaseDirectory=fd;function hd(t,e,r){return Object.keys(t).map(n=>dd(n,t[n],e,r))}at.convertPatternGroupsToTasks=hd;function dd(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Wr.pattern.convertToNegativePattern))}}at.convertPatternGroupToTask=dd});var yx=m(Qi=>{"use strict";u();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.removeDuplicateSlashes=Qi.transform=void 0;var NB=/(?!^)\/{2,}/g;function DB(t){return t.map(e=>gx(e))}Qi.transform=DB;function gx(t){return t.replace(NB,"/")}Qi.removeDuplicateSlashes=gx});var vx=m(Tc=>{"use strict";u();Object.defineProperty(Tc,"__esModule",{value:!0});Tc.read=void 0;function MB(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){_x(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){pd(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){_x(r,s);return}pd(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),pd(r,o)})})}Tc.read=MB;function _x(t,e){t(e)}function pd(t,e){t(null,e)}});var bx=m(kc=>{"use strict";u();Object.defineProperty(kc,"__esModule",{value:!0});kc.read=void 0;function FB(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}kc.read=FB});var Ex=m(bn=>{"use strict";u();Object.defineProperty(bn,"__esModule",{value:!0});bn.createFileSystemAdapter=bn.FILE_SYSTEM_ADAPTER=void 0;var Pc=require("fs");bn.FILE_SYSTEM_ADAPTER={lstat:Pc.lstat,stat:Pc.stat,lstatSync:Pc.lstatSync,statSync:Pc.statSync};function qB(t){return t===void 0?bn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},bn.FILE_SYSTEM_ADAPTER),t)}bn.createFileSystemAdapter=qB});var wx=m(gd=>{"use strict";u();Object.defineProperty(gd,"__esModule",{value:!0});var BB=Ex(),md=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=BB.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};gd.default=md});var oi=m(En=>{"use strict";u();Object.defineProperty(En,"__esModule",{value:!0});En.statSync=En.stat=En.Settings=void 0;var xx=vx(),jB=bx(),yd=wx();En.Settings=yd.default;function HB(t,e,r){if(typeof e=="function"){xx.read(t,_d(),e);return}xx.read(t,_d(e),r)}En.stat=HB;function $B(t,e){let r=_d(e);return jB.read(t,r)}En.statSync=$B;function _d(t={}){return t instanceof yd.default?t:new yd.default(t)}});var Rx=m((RZ,Ax)=>{u();var Sx;Ax.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Sx||(Sx=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Ox=m((CZ,Cx)=>{u();Cx.exports=GB;var UB=Rx();function GB(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(c){function l(){e&&e(c,r),e=null}s?UB(l):l()}function a(c,l,f){r[c]=f,(--n===0||l)&&o(l)}n?i?i.forEach(function(c){t[c](function(l,f){a(c,l,f)})}):t.forEach(function(c,l){c(function(f,h){a(l,f,h)})}):o(null),s=!1}});var vd=m(Lc=>{"use strict";u();Object.defineProperty(Lc,"__esModule",{value:!0});Lc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ic=process.versions.node.split(".");if(Ic[0]===void 0||Ic[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Tx=Number.parseInt(Ic[0],10),VB=Number.parseInt(Ic[1],10),kx=10,WB=10,zB=Tx>kx,YB=Tx===kx&&VB>=WB;Lc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=zB||YB});var Px=m(Nc=>{"use strict";u();Object.defineProperty(Nc,"__esModule",{value:!0});Nc.createDirentFromStats=void 0;var bd=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function KB(t,e){return new bd(t,e)}Nc.createDirentFromStats=KB});var Ed=m(Dc=>{"use strict";u();Object.defineProperty(Dc,"__esModule",{value:!0});Dc.fs=void 0;var ZB=Px();Dc.fs=ZB});var wd=m(Mc=>{"use strict";u();Object.defineProperty(Mc,"__esModule",{value:!0});Mc.joinPathSegments=void 0;function JB(t,e,r){return t.endsWith(r)?t+e:t+r+e}Mc.joinPathSegments=JB});var Fx=m(wn=>{"use strict";u();Object.defineProperty(wn,"__esModule",{value:!0});wn.readdir=wn.readdirWithFileTypes=wn.read=void 0;var XB=oi(),Ix=Ox(),QB=vd(),Lx=Ed(),Nx=wd();function e3(t,e,r){if(!e.stats&&QB.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Dx(t,e,r);return}Mx(t,e,r)}wn.read=e3;function Dx(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Fc(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Nx.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){xd(r,s);return}let o=s.map(a=>t3(a,e));Ix(o,(a,c)=>{if(a!==null){Fc(r,a);return}xd(r,c)})})}wn.readdirWithFileTypes=Dx;function t3(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=Lx.fs.createDirentFromStats(t.name,i),r(null,t)})}}function Mx(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Fc(r,n);return}let s=i.map(o=>{let a=Nx.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{XB.stat(a,e.fsStatSettings,(l,f)=>{if(l!==null){c(l);return}let h={name:o,path:a,dirent:Lx.fs.createDirentFromStats(o,f)};e.stats&&(h.stats=f),c(null,h)})}});Ix(s,(o,a)=>{if(o!==null){Fc(r,o);return}xd(r,a)})})}wn.readdir=Mx;function Fc(t,e){t(e)}function xd(t,e){t(null,e)}});var $x=m(xn=>{"use strict";u();Object.defineProperty(xn,"__esModule",{value:!0});xn.readdir=xn.readdirWithFileTypes=xn.read=void 0;var r3=oi(),n3=vd(),qx=Ed(),Bx=wd();function i3(t,e){return!e.stats&&n3.IS_SUPPORT_READDIR_WITH_FILE_TYPES?jx(t,e):Hx(t,e)}xn.read=i3;function jx(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Bx.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=qx.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}xn.readdirWithFileTypes=jx;function Hx(t,e){return e.fs.readdirSync(t).map(n=>{let i=Bx.joinPathSegments(t,n,e.pathSegmentSeparator),s=r3.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:qx.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}xn.readdir=Hx});var Ux=m(Sn=>{"use strict";u();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.createFileSystemAdapter=Sn.FILE_SYSTEM_ADAPTER=void 0;var es=require("fs");Sn.FILE_SYSTEM_ADAPTER={lstat:es.lstat,stat:es.stat,lstatSync:es.lstatSync,statSync:es.statSync,readdir:es.readdir,readdirSync:es.readdirSync};function s3(t){return t===void 0?Sn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Sn.FILE_SYSTEM_ADAPTER),t)}Sn.createFileSystemAdapter=s3});var Gx=m(Ad=>{"use strict";u();Object.defineProperty(Ad,"__esModule",{value:!0});var o3=require("path"),a3=oi(),c3=Ux(),Sd=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=c3.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,o3.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new a3.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Ad.default=Sd});var qc=m(An=>{"use strict";u();Object.defineProperty(An,"__esModule",{value:!0});An.Settings=An.scandirSync=An.scandir=void 0;var Vx=Fx(),u3=$x(),Rd=Gx();An.Settings=Rd.default;function l3(t,e,r){if(typeof e=="function"){Vx.read(t,Cd(),e);return}Vx.read(t,Cd(e),r)}An.scandir=l3;function f3(t,e){let r=Cd(e);return u3.read(t,r)}An.scandirSync=f3;function Cd(t={}){return t instanceof Rd.default?t:new Rd.default(t)}});var zx=m((FZ,Wx)=>{"use strict";u();function h3(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Wx.exports=h3});var Kx=m((qZ,Od)=>{"use strict";u();var d3=zx();function Yx(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=d3(p3),i=null,s=null,o=0,a=null,c={push:E,drain:zt,saturated:zt,pause:f,paused:!1,concurrency:r,running:l,resume:y,idle:g,length:h,getQueue:d,unshift:v,empty:zt,kill:P,killAndDrain:D,error:ie};return c;function l(){return o}function f(){c.paused=!0}function h(){for(var z=i,ue=0;z;)z=z.next,ue++;return ue}function d(){for(var z=i,ue=[];z;)ue.push(z.value),z=z.next;return ue}function y(){if(!!c.paused){c.paused=!1;for(var z=0;z<c.concurrency;z++)o++,A()}}function g(){return o===0&&c.length()===0}function E(z,ue){var K=n.get();K.context=t,K.release=A,K.value=z,K.callback=ue||zt,K.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=K,s=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function v(z,ue){var K=n.get();K.context=t,K.release=A,K.value=z,K.callback=ue||zt,o===c.concurrency||c.paused?i?(K.next=i,i=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function A(z){z&&n.release(z);var ue=i;ue?c.paused?o--:(s===i&&(s=null),i=ue.next,ue.next=null,e.call(t,ue.value,ue.worked),s===null&&c.empty()):--o===0&&c.drain()}function P(){i=null,s=null,c.drain=zt}function D(){i=null,s=null,c.drain(),c.drain=zt}function ie(z){a=z}}function zt(){}function p3(){this.value=null,this.callback=zt,this.next=null,this.release=zt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=zt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function m3(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,h){e.call(this,f).then(function(d){h(null,d)},h)}var i=Yx(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=l,i;function a(f){var h=new Promise(function(d,y){s(f,function(g,E){if(g){y(g);return}d(E)})});return h.catch(zt),h}function c(f){var h=new Promise(function(d,y){o(f,function(g,E){if(g){y(g);return}d(E)})});return h.catch(zt),h}function l(){var f=i.drain,h=new Promise(function(d){i.drain=function(){f(),d()}});return h}}Od.exports=Yx;Od.exports.promise=m3});var Bc=m(wr=>{"use strict";u();Object.defineProperty(wr,"__esModule",{value:!0});wr.joinPathSegments=wr.replacePathSegmentSeparator=wr.isAppliedFilter=wr.isFatalError=void 0;function g3(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}wr.isFatalError=g3;function y3(t,e){return t===null||t(e)}wr.isAppliedFilter=y3;function _3(t,e){return t.split(/[/\\]/).join(e)}wr.replacePathSegmentSeparator=_3;function v3(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}wr.joinPathSegments=v3});var Pd=m(kd=>{"use strict";u();Object.defineProperty(kd,"__esModule",{value:!0});var b3=Bc(),Td=class{constructor(e,r){this._root=e,this._settings=r,this._root=b3.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};kd.default=Td});var Nd=m(Ld=>{"use strict";u();Object.defineProperty(Ld,"__esModule",{value:!0});var E3=require("events"),w3=qc(),x3=Kx(),jc=Bc(),S3=Pd(),Id=class extends S3.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=w3.scandir,this._emitter=new E3.EventEmitter,this._queue=x3(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!jc.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=jc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),jc.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&jc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ld.default=Id});var Zx=m(Md=>{"use strict";u();Object.defineProperty(Md,"__esModule",{value:!0});var A3=Nd(),Dd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new A3.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{R3(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{C3(e,this._storage)}),this._reader.read()}};Md.default=Dd;function R3(t,e){t(e)}function C3(t,e){t(null,e)}});var Jx=m(qd=>{"use strict";u();Object.defineProperty(qd,"__esModule",{value:!0});var O3=require("stream"),T3=Nd(),Fd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new T3.default(this._root,this._settings),this._stream=new O3.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};qd.default=Fd});var Xx=m(jd=>{"use strict";u();Object.defineProperty(jd,"__esModule",{value:!0});var k3=qc(),Hc=Bc(),P3=Pd(),Bd=class extends P3.default{constructor(){super(...arguments),this._scandir=k3.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!Hc.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Hc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Hc.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Hc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};jd.default=Bd});var Qx=m($d=>{"use strict";u();Object.defineProperty($d,"__esModule",{value:!0});var I3=Xx(),Hd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new I3.default(this._root,this._settings)}read(){return this._reader.read()}};$d.default=Hd});var e1=m(Gd=>{"use strict";u();Object.defineProperty(Gd,"__esModule",{value:!0});var L3=require("path"),N3=qc(),Ud=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,L3.sep),this.fsScandirSettings=new N3.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Gd.default=Ud});var Uc=m(xr=>{"use strict";u();Object.defineProperty(xr,"__esModule",{value:!0});xr.Settings=xr.walkStream=xr.walkSync=xr.walk=void 0;var t1=Zx(),D3=Jx(),M3=Qx(),Vd=e1();xr.Settings=Vd.default;function F3(t,e,r){if(typeof e=="function"){new t1.default(t,$c()).read(e);return}new t1.default(t,$c(e)).read(r)}xr.walk=F3;function q3(t,e){let r=$c(e);return new M3.default(t,r).read()}xr.walkSync=q3;function B3(t,e){let r=$c(e);return new D3.default(t,r).read()}xr.walkStream=B3;function $c(t={}){return t instanceof Vd.default?t:new Vd.default(t)}});var Gc=m(zd=>{"use strict";u();Object.defineProperty(zd,"__esModule",{value:!0});var j3=require("path"),H3=oi(),r1=Vr(),Wd=class{constructor(e){this._settings=e,this._fsStatSettings=new H3.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return j3.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:r1.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!r1.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};zd.default=Wd});var Zd=m(Kd=>{"use strict";u();Object.defineProperty(Kd,"__esModule",{value:!0});var $3=require("stream"),U3=oi(),G3=Uc(),V3=Gc(),Yd=class extends V3.default{constructor(){super(...arguments),this._walkStream=G3.walkStream,this._stat=U3.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new $3.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Kd.default=Yd});var n1=m(Xd=>{"use strict";u();Object.defineProperty(Xd,"__esModule",{value:!0});var W3=Uc(),z3=Gc(),Y3=Zd(),Jd=class extends z3.default{constructor(){super(...arguments),this._walkAsync=W3.walk,this._readerStream=new Y3.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Xd.default=Jd});var i1=m(ep=>{"use strict";u();Object.defineProperty(ep,"__esModule",{value:!0});var ts=Vr(),Qd=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=ts.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return ts.pattern.getPatternParts(e,this._micromatchOptions).map(n=>ts.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ts.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return ts.array.splitWhen(e,r=>r.dynamic&&ts.pattern.hasGlobStar(r.pattern))}};ep.default=Qd});var s1=m(rp=>{"use strict";u();Object.defineProperty(rp,"__esModule",{value:!0});var K3=i1(),tp=class extends K3.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((c,l)=>{let f=s.segments[l];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};rp.default=tp});var o1=m(ip=>{"use strict";u();Object.defineProperty(ip,"__esModule",{value:!0});var Vc=Vr(),Z3=s1(),np=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new Z3.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Vc.pattern.isAffectDepthOfReadingPattern);return Vc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Vc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Vc.pattern.matchAny(e,r)}};ip.default=np});var a1=m(op=>{"use strict";u();Object.defineProperty(op,"__esModule",{value:!0});var ai=Vr(),sp=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=ai.pattern.convertPatternsToRe(e,this._micromatchOptions),i=ai.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=ai.path.makeAbsolute(this._settings.cwd,e);return ai.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=ai.path.removeLeadingDotSegment(e),s=ai.pattern.matchAny(i,r);return!s&&n?ai.pattern.matchAny(i+"/",r):s}};op.default=sp});var c1=m(cp=>{"use strict";u();Object.defineProperty(cp,"__esModule",{value:!0});var J3=Vr(),ap=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return J3.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};cp.default=ap});var l1=m(lp=>{"use strict";u();Object.defineProperty(lp,"__esModule",{value:!0});var u1=Vr(),up=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=u1.path.makeAbsolute(this._settings.cwd,r),r=u1.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};lp.default=up});var Wc=m(hp=>{"use strict";u();Object.defineProperty(hp,"__esModule",{value:!0});var X3=require("path"),Q3=o1(),ej=a1(),tj=c1(),rj=l1(),fp=class{constructor(e){this._settings=e,this.errorFilter=new tj.default(this._settings),this.entryFilter=new ej.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Q3.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new rj.default(this._settings)}_getRootDirectory(e){return X3.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};hp.default=fp});var f1=m(pp=>{"use strict";u();Object.defineProperty(pp,"__esModule",{value:!0});var nj=n1(),ij=Wc(),dp=class extends ij.default{constructor(){super(...arguments),this._reader=new nj.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};pp.default=dp});var h1=m(gp=>{"use strict";u();Object.defineProperty(gp,"__esModule",{value:!0});var sj=require("stream"),oj=Zd(),aj=Wc(),mp=class extends aj.default{constructor(){super(...arguments),this._reader=new oj.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new sj.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};gp.default=mp});var d1=m(_p=>{"use strict";u();Object.defineProperty(_p,"__esModule",{value:!0});var cj=oi(),uj=Uc(),lj=Gc(),yp=class extends lj.default{constructor(){super(...arguments),this._walkSync=uj.walkSync,this._statSync=cj.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};_p.default=yp});var p1=m(bp=>{"use strict";u();Object.defineProperty(bp,"__esModule",{value:!0});var fj=d1(),hj=Wc(),vp=class extends hj.default{constructor(){super(...arguments),this._reader=new fj.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};bp.default=vp});var m1=m(ns=>{"use strict";u();Object.defineProperty(ns,"__esModule",{value:!0});ns.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var rs=require("fs"),dj=require("os"),pj=Math.max(dj.cpus().length,1);ns.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:rs.lstat,lstatSync:rs.lstatSync,stat:rs.stat,statSync:rs.statSync,readdir:rs.readdir,readdirSync:rs.readdirSync};var Ep=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,pj),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},ns.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};ns.default=Ep});var v1=m((uJ,_1)=>{"use strict";u();var g1=mx(),y1=yx(),mj=f1(),gj=h1(),yj=p1(),wp=m1(),ci=Vr();async function xp(t,e){is(t);let r=Sp(t,mj.default,e),n=await Promise.all(r);return ci.array.flatten(n)}(function(t){function e(o,a){is(o);let c=Sp(o,yj.default,a);return ci.array.flatten(c)}t.sync=e;function r(o,a){is(o);let c=Sp(o,gj.default,a);return ci.stream.merge(c)}t.stream=r;function n(o,a){is(o);let c=y1.transform([].concat(o)),l=new wp.default(a);return g1.generate(c,l)}t.generateTasks=n;function i(o,a){is(o);let c=new wp.default(a);return ci.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=i;function s(o){return is(o),ci.path.escape(o)}t.escapePath=s})(xp||(xp={}));function Sp(t,e,r){let n=y1.transform([].concat(t)),i=new wp.default(r),s=g1.generate(n,i),o=new e(i);return s.map(o.read,o)}function is(t){if(![].concat(t).every(n=>ci.string.isString(n)&&!ci.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}_1.exports=xp});var E1=m((lJ,b1)=>{"use strict";u();var _j=/[|\\{}()[\]^$+*?.]/g;b1.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(_j,"\\$&")}});var x1=m((fJ,w1)=>{"use strict";u();w1.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 Ap=m((hJ,C1)=>{u();var ui=x1(),R1={};for(zc in ui)ui.hasOwnProperty(zc)&&(R1[ui[zc]]=zc);var zc,V=C1.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(yt in V)if(V.hasOwnProperty(yt)){if(!("channels"in V[yt]))throw new Error("missing channels property: "+yt);if(!("labels"in V[yt]))throw new Error("missing channel labels property: "+yt);if(V[yt].labels.length!==V[yt].channels)throw new Error("channel and label counts mismatch: "+yt);S1=V[yt].channels,A1=V[yt].labels,delete V[yt].channels,delete V[yt].labels,Object.defineProperty(V[yt],"channels",{value:S1}),Object.defineProperty(V[yt],"labels",{value:A1})}var S1,A1,yt;V.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c,l;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),l=(i+s)/2,s===i?c=0:l<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,l*100]};V.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,l=Math.max(o,a,c),f=l-Math.min(o,a,c),h=function(d){return(l-d)/6/f+1/2};return f===0?i=s=0:(s=f/l,e=h(o),r=h(a),n=h(c),o===l?i=n-r:a===l?i=1/3+e-n:c===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};V.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=V.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};V.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function vj(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}V.rgb.keyword=function(t){var e=R1[t];if(e)return e;var r=1/0,n;for(var i in ui)if(ui.hasOwnProperty(i)){var s=ui[i],o=vj(t,s);o<r&&(r=o,n=i)}return n};V.keyword.rgb=function(t){return ui[t]};V.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};V.rgb.lab=function(t){var e=V.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};V.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[l]=c*255;return a};V.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};V.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};V.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};V.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,(s&1)!==0&&(a=1-a),c=r+a*(o-r);var l,f,h;switch(s){default:case 6:case 0:l=o,f=c,h=r;break;case 1:l=c,f=o,h=r;break;case 2:l=r,f=o,h=c;break;case 3:l=r,f=c,h=o;break;case 4:l=c,f=r,h=o;break;case 5:l=o,f=r,h=c;break}return[l*255,f*255,h*255]};V.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};V.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};V.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};V.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),l=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};V.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};V.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};V.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:V.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};V.hsv.ansi16=function(t){return V.rgb.ansi16(V.hsv.rgb(t),t[2])};V.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};V.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};V.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};V.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};V.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};V.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};V.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};V.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};V.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};V.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};V.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};V.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};V.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};V.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};V.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};V.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};V.gray.hsl=V.gray.hsv=function(t){return[0,0,t[0]]};V.gray.hwb=function(t){return[0,100,t[0]]};V.gray.cmyk=function(t){return[0,0,0,t[0]]};V.gray.lab=function(t){return[t[0],0,0]};V.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};V.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var T1=m((dJ,O1)=>{u();var Yc=Ap();function bj(){for(var t={},e=Object.keys(Yc),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Ej(t){var e=bj(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Yc[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function wj(t,e){return function(r){return e(t(r))}}function xj(t,e){for(var r=[e[t].parent,t],n=Yc[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=wj(Yc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}O1.exports=function(t){for(var e=Ej(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=xj(o,e))}return r}});var P1=m((pJ,k1)=>{u();var Rp=Ap(),Sj=T1(),ss={},Aj=Object.keys(Rp);function Rj(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Cj(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}Aj.forEach(function(t){ss[t]={},Object.defineProperty(ss[t],"channels",{value:Rp[t].channels}),Object.defineProperty(ss[t],"labels",{value:Rp[t].labels});var e=Sj(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];ss[t][n]=Cj(i),ss[t][n].raw=Rj(i)})});k1.exports=ss});var L1=m((mJ,I1)=>{"use strict";u();var os=P1(),Kc=(t,e)=>function(){return`\x1B[${t.apply(os,arguments)+e}m`},Zc=(t,e)=>function(){let r=t.apply(os,arguments);return`\x1B[${38+e};5;${r}m`},Jc=(t,e)=>function(){let r=t.apply(os,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function Oj(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:Kc(r,0)},e.color.ansi256={ansi256:Zc(r,0)},e.color.ansi16m={rgb:Jc(n,0)},e.bgColor.ansi={ansi:Kc(r,10)},e.bgColor.ansi256={ansi256:Zc(r,10)},e.bgColor.ansi16m={rgb:Jc(n,10)};for(let i of Object.keys(os)){if(typeof os[i]!="object")continue;let s=os[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=Kc(s.ansi16,0),e.bgColor.ansi[i]=Kc(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Zc(s.ansi256,0),e.bgColor.ansi256[i]=Zc(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Jc(s.rgb,0),e.bgColor.ansi16m[i]=Jc(s.rgb,10))}return e}Object.defineProperty(I1,"exports",{enumerable:!0,get:Oj})});var D1=m((gJ,N1)=>{"use strict";u();N1.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var F1=m((yJ,M1)=>{"use strict";u();var Tj=require("os"),ur=D1(),ct=process.env,as;ur("no-color")||ur("no-colors")||ur("color=false")?as=!1:(ur("color")||ur("colors")||ur("color=true")||ur("color=always"))&&(as=!0);"FORCE_COLOR"in ct&&(as=ct.FORCE_COLOR.length===0||parseInt(ct.FORCE_COLOR,10)!==0);function kj(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Pj(t){if(as===!1)return 0;if(ur("color=16m")||ur("color=full")||ur("color=truecolor"))return 3;if(ur("color=256"))return 2;if(t&&!t.isTTY&&as!==!0)return 0;let e=as?1:0;if(process.platform==="win32"){let r=Tj.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ct)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ct)||ct.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in ct)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ct.TEAMCITY_VERSION)?1:0;if(ct.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ct){let r=parseInt((ct.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ct.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ct.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ct.TERM)||"COLORTERM"in ct?1:(ct.TERM==="dumb",e)}function Cp(t){let e=Pj(t);return kj(e)}M1.exports={supportsColor:Cp,stdout:Cp(process.stdout),stderr:Cp(process.stderr)}});var $1=m((_J,H1)=>{"use strict";u();var Ij=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,q1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Lj=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Nj=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Dj=new Map([["n",`
30
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function j1(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):Dj.get(t)||t}function Mj(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Lj))r.push(i[2].replace(Nj,(o,a,c)=>a?j1(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function Fj(t){q1.lastIndex=0;let e=[],r;for(;(r=q1.exec(t))!==null;){let n=r[1];if(r[2]){let i=Mj(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function B1(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}H1.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Ij,(s,o,a,c,l,f)=>{if(o)i.push(j1(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:B1(t,r)(h)),r.push({inverse:a,styles:Fj(c)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(B1(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Yo=m((vJ,zo)=>{"use strict";u();var Tp=E1(),$e=L1(),Op=F1().stdout,qj=$1(),G1=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),V1=["ansi","ansi","ansi256","ansi16m"],W1=new Set(["gray"]),cs=Object.create(null);function U1(t,e){e=e||{};let r=Op?Op.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Wo(t){if(!this||!(this instanceof Wo)||this.template){let e={};return U1(e,t),e.template=function(){let r=[].slice.call(arguments);return Hj.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Wo.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Wo,e.template}U1(this,t)}G1&&($e.blue.open="\x1B[94m");for(let t of Object.keys($e))$e[t].closeRe=new RegExp(Tp($e[t].close),"g"),cs[t]={get(){let e=$e[t];return Xc.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};cs.visible={get(){return Xc.call(this,this._styles||[],!0,"visible")}};$e.color.closeRe=new RegExp(Tp($e.color.close),"g");for(let t of Object.keys($e.color.ansi))W1.has(t)||(cs[t]={get(){let e=this.level;return function(){let n={open:$e.color[V1[e]][t].apply(null,arguments),close:$e.color.close,closeRe:$e.color.closeRe};return Xc.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});$e.bgColor.closeRe=new RegExp(Tp($e.bgColor.close),"g");for(let t of Object.keys($e.bgColor.ansi)){if(W1.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);cs[e]={get(){let r=this.level;return function(){let i={open:$e.bgColor[V1[r]][t].apply(null,arguments),close:$e.bgColor.close,closeRe:$e.bgColor.closeRe};return Xc.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Bj=Object.defineProperties(()=>{},cs);function Xc(t,e,r){let n=function(){return jj.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Bj,n}function jj(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=$e.dim.open;G1&&this.hasGrey&&($e.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return $e.dim.open=n,r}function Hj(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return qj(t,n.join(""))}Object.defineProperties(Wo.prototype,cs);zo.exports=Wo();zo.exports.supportsColor=Op;zo.exports.default=zo.exports});var Y1=m((bJ,z1)=>{"use strict";u();z1.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 kp=m((EJ,Z1)=>{u();var Ko=Y1(),K1={};for(let t of Object.keys(Ko))K1[Ko[t]]=t;var W={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"]}};Z1.exports=W;for(let t of Object.keys(W)){if(!("channels"in W[t]))throw new Error("missing channels property: "+t);if(!("labels"in W[t]))throw new Error("missing channel labels property: "+t);if(W[t].labels.length!==W[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=W[t];delete W[t].channels,delete W[t].labels,Object.defineProperty(W[t],"channels",{value:e}),Object.defineProperty(W[t],"labels",{value:r})}W.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?c=0:l<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,l*100]};W.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,l=Math.max(o,a,c),f=l-Math.min(o,a,c),h=function(d){return(l-d)/6/f+1/2};return f===0?(i=0,s=0):(s=f/l,e=h(o),r=h(a),n=h(c),o===l?i=n-r:a===l?i=1/3+e-n:c===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};W.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=W.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};W.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function $j(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}W.rgb.keyword=function(t){let e=K1[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(Ko)){let s=Ko[i],o=$j(t,s);o<r&&(r=o,n=i)}return n};W.keyword.rgb=function(t){return Ko[t]};W.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};W.rgb.lab=function(t){let e=W.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};W.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let l=0;l<3;l++)s=e+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,c[l]=o*255;return c};W.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};W.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};W.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};W.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let c=r+s*(a-r),l,f,h;switch(o){default:case 6:case 0:l=a,f=c,h=r;break;case 1:l=c,f=a,h=r;break;case 2:l=r,f=a,h=c;break;case 3:l=r,f=c,h=a;break;case 4:l=c,f=r,h=a;break;case 5:l=a,f=r,h=c;break}return[l*255,f*255,h*255]};W.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};W.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};W.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};W.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,l=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};W.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};W.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};W.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?W.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};W.hsv.ansi16=function(t){return W.rgb.ansi16(W.hsv.rgb(t),t[2])};W.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};W.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};W.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};W.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};W.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};W.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};W.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};W.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};W.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};W.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};W.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};W.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};W.hwb.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};W.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};W.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};W.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};W.gray.hsl=function(t){return[0,0,t[0]]};W.gray.hsv=W.gray.hsl;W.gray.hwb=function(t){return[0,100,t[0]]};W.gray.cmyk=function(t){return[0,0,0,t[0]]};W.gray.lab=function(t){return[t[0],0,0]};W.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};W.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var X1=m((wJ,J1)=>{u();var Qc=kp();function Uj(){let t={},e=Object.keys(Qc);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Gj(t){let e=Uj(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Qc[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function Vj(t,e){return function(r){return e(t(r))}}function Wj(t,e){let r=[e[t].parent,t],n=Qc[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Vj(Qc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}J1.exports=function(t){let e=Gj(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Wj(o,e))}return r}});var eS=m((xJ,Q1)=>{u();var Pp=kp(),zj=X1(),us={},Yj=Object.keys(Pp);function Kj(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Zj(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Yj.forEach(t=>{us[t]={},Object.defineProperty(us[t],"channels",{value:Pp[t].channels}),Object.defineProperty(us[t],"labels",{value:Pp[t].labels});let e=zj(t);Object.keys(e).forEach(n=>{let i=e[n];us[t][n]=Zj(i),us[t][n].raw=Kj(i)})});Q1.exports=us});var Lp=m((SJ,sS)=>{"use strict";u();var tS=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,rS=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},nS=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},eu=t=>t,iS=(t,e,r)=>[t,e,r],ls=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Ip,fs=(t,e,r,n)=>{Ip===void 0&&(Ip=eS());let i=n?10:0,s={};for(let[o,a]of Object.entries(Ip)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function Jj(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ls(e.color,"ansi",()=>fs(tS,"ansi16",eu,!1)),ls(e.color,"ansi256",()=>fs(rS,"ansi256",eu,!1)),ls(e.color,"ansi16m",()=>fs(nS,"rgb",iS,!1)),ls(e.bgColor,"ansi",()=>fs(tS,"ansi16",eu,!0)),ls(e.bgColor,"ansi256",()=>fs(rS,"ansi256",eu,!0)),ls(e.bgColor,"ansi16m",()=>fs(nS,"rgb",iS,!0)),e}Object.defineProperty(sS,"exports",{enumerable:!0,get:Jj})});var aS=m((AJ,oS)=>{"use strict";u();oS.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Mp=m((RJ,uS)=>{"use strict";u();var Xj=require("os"),cS=require("tty"),Yt=aS(),{env:ze}=process,Rn;Yt("no-color")||Yt("no-colors")||Yt("color=false")||Yt("color=never")?Rn=0:(Yt("color")||Yt("colors")||Yt("color=true")||Yt("color=always"))&&(Rn=1);"FORCE_COLOR"in ze&&(ze.FORCE_COLOR==="true"?Rn=1:ze.FORCE_COLOR==="false"?Rn=0:Rn=ze.FORCE_COLOR.length===0?1:Math.min(parseInt(ze.FORCE_COLOR,10),3));function Np(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Dp(t,e){if(Rn===0)return 0;if(Yt("color=16m")||Yt("color=full")||Yt("color=truecolor"))return 3;if(Yt("color=256"))return 2;if(t&&!e&&Rn===void 0)return 0;let r=Rn||0;if(ze.TERM==="dumb")return r;if(process.platform==="win32"){let n=Xj.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ze)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ze)||ze.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ze.TEAMCITY_VERSION)?1:0;if(ze.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ze){let n=parseInt((ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ze.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ze.TERM)||"COLORTERM"in ze?1:r}function Qj(t){let e=Dp(t,t&&t.isTTY);return Np(e)}uS.exports={supportsColor:Qj,stdout:Np(Dp(!0,cS.isatty(1))),stderr:Np(Dp(!0,cS.isatty(2)))}});var fS=m((CJ,lS)=>{"use strict";u();var eH=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},tH=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
31
31
  `:`
32
32
  `)+r,i=n+1,n=t.indexOf(`
33
- `,i)}while(n!==-1);return s+=t.substr(i),s};MS.exports={stringReplaceAll:Mq,stringEncaseCRLFWithFirstIndex:qq}});var GS=m((dX,US)=>{"use strict";c();var jq=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,jS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Hq=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,$q=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,Uq=new Map([["n",`
34
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function $S(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):Uq.get(t)||t}function Gq(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Hq))r.push(i[2].replace($q,(a,u,l)=>u?$S(u):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Vq(t){jS.lastIndex=0;let e=[],r;for(;(r=jS.exec(t))!==null;){let n=r[1];if(r[2]){let i=Gq(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function HS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}US.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(jq,(s,o,a,u,l,f)=>{if(o)i.push($S(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:HS(t,r)(h)),r.push({inverse:a,styles:Vq(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(HS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var KS=m((pX,YS)=>{"use strict";c();var pa=am(),{stdout:hm,stderr:dm}=lm(),{stringReplaceAll:Wq,stringEncaseCRLFWithFirstIndex:zq}=qS(),VS=["ansi","ansi","ansi256","ansi16m"],Rs=Object.create(null),Yq=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=hm?hm.level:0;t.level=e.level===void 0?r:e.level},pm=class{constructor(e){return WS(e)}},WS=t=>{let e={};return Yq(e,t),e.template=(...r)=>Jq(e.template,...r),Object.setPrototypeOf(e,wc.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=pm,e.template};function wc(t){return WS(t)}for(let[t,e]of Object.entries(pa))Rs[t]={get(){let r=xc(this,mm(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Rs.visible={get(){let t=xc(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var zS=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of zS)Rs[t]={get(){let{level:e}=this;return function(...r){let n=mm(pa.color[VS[e]][t](...r),pa.color.close,this._styler);return xc(this,n,this._isEmpty)}}};for(let t of zS){let e="bg"+t[0].toUpperCase()+t.slice(1);Rs[e]={get(){let{level:r}=this;return function(...n){let i=mm(pa.bgColor[VS[r]][t](...n),pa.bgColor.close,this._styler);return xc(this,i,this._isEmpty)}}}}var Kq=Object.defineProperties(()=>{},{...Rs,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),mm=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},xc=(t,e,r)=>{let n=(...i)=>Zq(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=Kq,n._generator=t,n._styler=e,n._isEmpty=r,n},Zq=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=Wq(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
35
- `);return s!==-1&&(e=zq(e,i,n,s)),n+e+i},fm,Jq=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return fm===void 0&&(fm=GS()),fm(t,i.join(""))};Object.defineProperties(wc.prototype,Rs);var ma=wc();ma.supportsColor=hm;ma.stderr=wc({level:dm?dm.level:0});ma.stderr.supportsColor=dm;ma.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};YS.exports=ma});var JS=m((mX,gm)=>{"use strict";c();var ZS=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};gm.exports=ZS;gm.exports.default=ZS});var ym=m((gX,Ac)=>{"use strict";c();var Xq=JS(),Sc=new WeakMap,XS=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Sc.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Xq(s,t),Sc.set(s,n),s};Ac.exports=XS;Ac.exports.default=XS;Ac.exports.callCount=t=>{if(!Sc.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Sc.get(t)}});var QS=m((yX,Cc)=>{c();Cc.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Cc.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Cc.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Em=m((_X,ks)=>{c();var Ne=global.process,Ai=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ai(Ne)?(eA=require("assert"),Os=QS(),tA=/^win/i.test(Ne.platform),ga=require("events"),typeof ga!="function"&&(ga=ga.EventEmitter),Ne.__signal_exit_emitter__?rt=Ne.__signal_exit_emitter__:(rt=Ne.__signal_exit_emitter__=new ga,rt.count=0,rt.emitted={}),rt.infinite||(rt.setMaxListeners(1/0),rt.infinite=!0),ks.exports=function(t,e){if(!Ai(global.process))return function(){};eA.equal(typeof t,"function","a callback must be provided for exit handler"),Ts===!1&&_m();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){rt.removeListener(r,t),rt.listeners("exit").length===0&&rt.listeners("afterexit").length===0&&Dc()};return rt.on(r,t),n},Dc=function(){!Ts||!Ai(global.process)||(Ts=!1,Os.forEach(function(e){try{Ne.removeListener(e,Rc[e])}catch{}}),Ne.emit=Oc,Ne.reallyExit=vm,rt.count-=1)},ks.exports.unload=Dc,Ci=function(e,r,n){rt.emitted[e]||(rt.emitted[e]=!0,rt.emit(e,r,n))},Rc={},Os.forEach(function(t){Rc[t]=function(){if(!!Ai(global.process)){var r=Ne.listeners(t);r.length===rt.count&&(Dc(),Ci("exit",null,t),Ci("afterexit",null,t),tA&&t==="SIGHUP"&&(t="SIGINT"),Ne.kill(Ne.pid,t))}}}),ks.exports.signals=function(){return Os},Ts=!1,_m=function(){Ts||!Ai(global.process)||(Ts=!0,rt.count+=1,Os=Os.filter(function(e){try{return Ne.on(e,Rc[e]),!0}catch{return!1}}),Ne.emit=nA,Ne.reallyExit=rA)},ks.exports.load=_m,vm=Ne.reallyExit,rA=function(e){!Ai(global.process)||(Ne.exitCode=e||0,Ci("exit",Ne.exitCode,null),Ci("afterexit",Ne.exitCode,null),vm.call(Ne,Ne.exitCode))},Oc=Ne.emit,nA=function(e,r){if(e==="exit"&&Ai(global.process)){r!==void 0&&(Ne.exitCode=r);var n=Oc.apply(this,arguments);return Ci("exit",Ne.exitCode,null),Ci("afterexit",Ne.exitCode,null),n}else return Oc.apply(this,arguments)}):ks.exports=function(){return function(){}};var eA,Os,tA,ga,rt,Dc,Ci,Rc,Ts,_m,vm,rA,Oc,nA});var sA=m((vX,iA)=>{"use strict";c();var Qq=ym(),e4=Em();iA.exports=Qq(()=>{e4(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var oA=m(Fs=>{"use strict";c();var t4=sA(),Tc=!1;Fs.show=(t=process.stderr)=>{!t.isTTY||(Tc=!1,t.write("\x1B[?25h"))};Fs.hide=(t=process.stderr)=>{!t.isTTY||(t4(),Tc=!0,t.write("\x1B[?25l"))};Fs.toggle=(t,e)=>{t!==void 0&&(Tc=t),Tc?Fs.show(e):Fs.hide(e)}});var aA=m((bX,r4)=>{r4.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var lA=m((wX,cA)=>{"use strict";c();var kc=Object.assign({},aA()),uA=Object.keys(kc);Object.defineProperty(kc,"random",{get(){let t=Math.floor(Math.random()*uA.length),e=uA[t];return kc[e]}});cA.exports=kc});var hA=m((xX,fA)=>{"use strict";c();var Hn=ha(),n4=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i4={info:Hn.blue("\u2139"),success:Hn.green("\u2714"),warning:Hn.yellow("\u26A0"),error:Hn.red("\u2716")},s4={info:Hn.blue("i"),success:Hn.green("\u221A"),warning:Hn.yellow("\u203C"),error:Hn.red("\xD7")};fA.exports=n4?i4:s4});var pA=m((SX,dA)=>{"use strict";c();dA.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var gA=m((AX,mA)=>{"use strict";c();var o4=pA();mA.exports=t=>typeof t=="string"?t.replace(o4(),""):t});var yA=m((CX,Fc)=>{c();var a4=function(){"use strict";function t(o,a,u,l){var f;typeof a=="object"&&(u=a.depth,l=a.prototype,f=a.filter,a=a.circular);var h=[],d=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof u>"u"&&(u=1/0);function y(v,E){if(v===null)return null;if(E==0)return v;var x,O;if(typeof v!="object")return v;if(t.__isArray(v))x=[];else if(t.__isRegExp(v))x=new RegExp(v.source,s(v)),v.lastIndex&&(x.lastIndex=v.lastIndex);else if(t.__isDate(v))x=new Date(v.getTime());else{if(g&&Buffer.isBuffer(v))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(v.length):x=new Buffer(v.length),v.copy(x),x;typeof l>"u"?(O=Object.getPrototypeOf(v),x=Object.create(O)):(x=Object.create(l),O=l)}if(a){var B=h.indexOf(v);if(B!=-1)return d[B];h.push(v),d.push(x)}for(var z in v){var H;O&&(H=Object.getOwnPropertyDescriptor(O,z)),!(H&&H.set==null)&&(x[z]=y(v[z],E-1))}return x}return y(o,u)}t.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Fc=="object"&&Fc.exports&&(Fc.exports=a4)});var vA=m((DX,_A)=>{c();var u4=yA();_A.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=u4(e[r]))}),t}});var bA=m((RX,EA)=>{c();EA.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var AA=m((OX,bm)=>{"use strict";c();var c4=vA(),ya=bA(),xA={nul:0,control:0};bm.exports=function(e){return SA(e,xA)};bm.exports.config=function(t){return t=c4(t||{},xA),function(r){return SA(r,t)}};function SA(t,e){if(typeof t!="string")return wA(t,e);for(var r=0,n=0;n<t.length;n++){var i=wA(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function wA(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:l4(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function l4(t){var e=0,r=ya.length-1,n;if(t<ya[0][0]||t>ya[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>ya[n][1])e=n+1;else if(t<ya[n][0])r=n-1;else return!0;return!1}});var DA=m((TX,CA)=>{"use strict";c();CA.exports=({stream:t=process.stdout}={})=>Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var OA=m((kX,RA)=>{c();var wm=require("stream");RA.exports=nt;function nt(t){wm.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}nt.prototype=Object.create(wm.prototype);Object.defineProperty(nt.prototype,"constructor",{value:nt,enumerable:!1});nt.prototype.mute=function(){this.muted=!0};nt.prototype.unmute=function(){this.muted=!1};Object.defineProperty(nt.prototype,"_onpipe",{value:f4,enumerable:!1,writable:!0,configurable:!0});function f4(t){this._src=t}Object.defineProperty(nt.prototype,"isTTY",{get:h4,set:d4,enumerable:!0,configurable:!0});function h4(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function d4(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(nt.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(nt.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});nt.prototype.pipe=function(t,e){return this._dest=t,wm.prototype.pipe.call(this,t,e)};nt.prototype.pause=function(){if(this._src)return this._src.pause()};nt.prototype.resume=function(){if(this._src)return this._src.resume()};nt.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};nt.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function xm(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}nt.prototype.destroy=xm("destroy");nt.prototype.destroySoon=xm("destroySoon");nt.prototype.close=xm("close")});var kA=m((FX,Cm)=>{"use strict";c();var p4=require("readline"),m4=KS(),TA=oA(),Pc=lA(),Ic=hA(),g4=gA(),y4=AA(),_4=DA(),v4=OA(),Sm=Symbol("text"),Bc=Symbol("prefixText"),E4=3,Am=class{constructor(){this.requests=0,this.mutedStream=new v4,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(E4)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=p4.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},Lc,Nc=class{constructor(e){Lc||(Lc=new Am),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:_4({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=Pc.line;else if(e===void 0)this._spinner=Pc.dots;else if(Pc[e])this._spinner=Pc[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Sm]}get prefixText(){return this[Bc]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[Bc]=="string"?this[Bc]+"-":"";this.lineCount=g4(r+"--"+this[Sm]).split(`
36
- `).reduce((n,i)=>n+Math.max(1,Math.ceil(y4(i)/e)),0)}set text(e){this[Sm]=e,this.updateLineCount()}set prefixText(e){this[Bc]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=m4[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&TA.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Lc.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
37
- `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&TA.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Lc.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Ic.success,text:e})}fail(e){return this.stopAndPersist({symbol:Ic.error,text:e})}warn(e){return this.stopAndPersist({symbol:Ic.warning,text:e})}info(e){return this.stopAndPersist({symbol:Ic.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
38
- `),this}},b4=function(t){return new Nc(t)};Cm.exports=b4;Cm.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new Nc(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var PA=m((PX,FA)=>{"use strict";c();var w4=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},x4=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
33
+ `,i)}while(n!==-1);return s+=t.substr(i),s};lS.exports={stringReplaceAll:eH,stringEncaseCRLFWithFirstIndex:tH}});var gS=m((OJ,mS)=>{"use strict";u();var rH=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,hS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,nH=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,iH=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,sH=new Map([["n",`
34
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function pS(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):sH.get(t)||t}function oH(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(nH))r.push(i[2].replace(iH,(a,c,l)=>c?pS(c):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function aH(t){hS.lastIndex=0;let e=[],r;for(;(r=hS.exec(t))!==null;){let n=r[1];if(r[2]){let i=oH(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function dS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}mS.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(rH,(s,o,a,c,l,f)=>{if(o)i.push(pS(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:dS(t,r)(h)),r.push({inverse:a,styles:aH(c)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(dS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var ES=m((TJ,bS)=>{"use strict";u();var Zo=Lp(),{stdout:qp,stderr:Bp}=Mp(),{stringReplaceAll:cH,stringEncaseCRLFWithFirstIndex:uH}=fS(),yS=["ansi","ansi","ansi256","ansi16m"],hs=Object.create(null),lH=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=qp?qp.level:0;t.level=e.level===void 0?r:e.level},jp=class{constructor(e){return _S(e)}},_S=t=>{let e={};return lH(e,t),e.template=(...r)=>dH(e.template,...r),Object.setPrototypeOf(e,tu.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=jp,e.template};function tu(t){return _S(t)}for(let[t,e]of Object.entries(Zo))hs[t]={get(){let r=ru(this,Hp(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};hs.visible={get(){let t=ru(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var vS=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of vS)hs[t]={get(){let{level:e}=this;return function(...r){let n=Hp(Zo.color[yS[e]][t](...r),Zo.color.close,this._styler);return ru(this,n,this._isEmpty)}}};for(let t of vS){let e="bg"+t[0].toUpperCase()+t.slice(1);hs[e]={get(){let{level:r}=this;return function(...n){let i=Hp(Zo.bgColor[yS[r]][t](...n),Zo.bgColor.close,this._styler);return ru(this,i,this._isEmpty)}}}}var fH=Object.defineProperties(()=>{},{...hs,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Hp=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},ru=(t,e,r)=>{let n=(...i)=>hH(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=fH,n._generator=t,n._styler=e,n._isEmpty=r,n},hH=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=cH(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
35
+ `);return s!==-1&&(e=uH(e,i,n,s)),n+e+i},Fp,dH=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Fp===void 0&&(Fp=gS()),Fp(t,i.join(""))};Object.defineProperties(tu.prototype,hs);var Jo=tu();Jo.supportsColor=qp;Jo.stderr=tu({level:Bp?Bp.level:0});Jo.stderr.supportsColor=Bp;Jo.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};bS.exports=Jo});var xS=m((kJ,$p)=>{"use strict";u();var wS=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};$p.exports=wS;$p.exports.default=wS});var Up=m((PJ,iu)=>{"use strict";u();var pH=xS(),nu=new WeakMap,SS=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(nu.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return pH(s,t),nu.set(s,n),s};iu.exports=SS;iu.exports.default=SS;iu.exports.callCount=t=>{if(!nu.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return nu.get(t)}});var AS=m((IJ,su)=>{u();su.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&su.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&su.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Wp=m((LJ,ms)=>{u();var Ie=global.process,li=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};li(Ie)?(RS=require("assert"),ds=AS(),CS=/^win/i.test(Ie.platform),Xo=require("events"),typeof Xo!="function"&&(Xo=Xo.EventEmitter),Ie.__signal_exit_emitter__?Ye=Ie.__signal_exit_emitter__:(Ye=Ie.__signal_exit_emitter__=new Xo,Ye.count=0,Ye.emitted={}),Ye.infinite||(Ye.setMaxListeners(1/0),Ye.infinite=!0),ms.exports=function(t,e){if(!li(global.process))return function(){};RS.equal(typeof t,"function","a callback must be provided for exit handler"),ps===!1&&Gp();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ye.removeListener(r,t),Ye.listeners("exit").length===0&&Ye.listeners("afterexit").length===0&&ou()};return Ye.on(r,t),n},ou=function(){!ps||!li(global.process)||(ps=!1,ds.forEach(function(e){try{Ie.removeListener(e,au[e])}catch{}}),Ie.emit=cu,Ie.reallyExit=Vp,Ye.count-=1)},ms.exports.unload=ou,fi=function(e,r,n){Ye.emitted[e]||(Ye.emitted[e]=!0,Ye.emit(e,r,n))},au={},ds.forEach(function(t){au[t]=function(){if(!!li(global.process)){var r=Ie.listeners(t);r.length===Ye.count&&(ou(),fi("exit",null,t),fi("afterexit",null,t),CS&&t==="SIGHUP"&&(t="SIGINT"),Ie.kill(Ie.pid,t))}}}),ms.exports.signals=function(){return ds},ps=!1,Gp=function(){ps||!li(global.process)||(ps=!0,Ye.count+=1,ds=ds.filter(function(e){try{return Ie.on(e,au[e]),!0}catch{return!1}}),Ie.emit=TS,Ie.reallyExit=OS)},ms.exports.load=Gp,Vp=Ie.reallyExit,OS=function(e){!li(global.process)||(Ie.exitCode=e||0,fi("exit",Ie.exitCode,null),fi("afterexit",Ie.exitCode,null),Vp.call(Ie,Ie.exitCode))},cu=Ie.emit,TS=function(e,r){if(e==="exit"&&li(global.process)){r!==void 0&&(Ie.exitCode=r);var n=cu.apply(this,arguments);return fi("exit",Ie.exitCode,null),fi("afterexit",Ie.exitCode,null),n}else return cu.apply(this,arguments)}):ms.exports=function(){return function(){}};var RS,ds,CS,Xo,Ye,ou,fi,au,ps,Gp,Vp,OS,cu,TS});var PS=m((NJ,kS)=>{"use strict";u();var mH=Up(),gH=Wp();kS.exports=mH(()=>{gH(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var IS=m(gs=>{"use strict";u();var yH=PS(),uu=!1;gs.show=(t=process.stderr)=>{!t.isTTY||(uu=!1,t.write("\x1B[?25h"))};gs.hide=(t=process.stderr)=>{!t.isTTY||(yH(),uu=!0,t.write("\x1B[?25l"))};gs.toggle=(t,e)=>{t!==void 0&&(uu=t),uu?gs.show(e):gs.hide(e)}});var LS=m((MJ,_H)=>{_H.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var MS=m((FJ,DS)=>{"use strict";u();var lu=Object.assign({},LS()),NS=Object.keys(lu);Object.defineProperty(lu,"random",{get(){let t=Math.floor(Math.random()*NS.length),e=NS[t];return lu[e]}});DS.exports=lu});var qS=m((qJ,FS)=>{"use strict";u();var Cn=Yo(),vH=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",bH={info:Cn.blue("\u2139"),success:Cn.green("\u2714"),warning:Cn.yellow("\u26A0"),error:Cn.red("\u2716")},EH={info:Cn.blue("i"),success:Cn.green("\u221A"),warning:Cn.yellow("\u203C"),error:Cn.red("\xD7")};FS.exports=vH?bH:EH});var jS=m((BJ,BS)=>{"use strict";u();BS.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var $S=m((jJ,HS)=>{"use strict";u();var wH=jS();HS.exports=t=>typeof t=="string"?t.replace(wH(),""):t});var US=m((HJ,fu)=>{u();var xH=function(){"use strict";function t(o,a,c,l){var f;typeof a=="object"&&(c=a.depth,l=a.prototype,f=a.filter,a=a.circular);var h=[],d=[],y=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof c>"u"&&(c=1/0);function g(E,v){if(E===null)return null;if(v==0)return E;var A,P;if(typeof E!="object")return E;if(t.__isArray(E))A=[];else if(t.__isRegExp(E))A=new RegExp(E.source,s(E)),E.lastIndex&&(A.lastIndex=E.lastIndex);else if(t.__isDate(E))A=new Date(E.getTime());else{if(y&&Buffer.isBuffer(E))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(E.length):A=new Buffer(E.length),E.copy(A),A;typeof l>"u"?(P=Object.getPrototypeOf(E),A=Object.create(P)):(A=Object.create(l),P=l)}if(a){var D=h.indexOf(E);if(D!=-1)return d[D];h.push(E),d.push(A)}for(var ie in E){var z;P&&(z=Object.getOwnPropertyDescriptor(P,ie)),!(z&&z.set==null)&&(A[ie]=g(E[ie],v-1))}return A}return g(o,c)}t.clonePrototype=function(a){if(a===null)return null;var c=function(){};return c.prototype=a,new c};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof fu=="object"&&fu.exports&&(fu.exports=xH)});var VS=m(($J,GS)=>{u();var SH=US();GS.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=SH(e[r]))}),t}});var zS=m((UJ,WS)=>{u();WS.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var JS=m((GJ,zp)=>{"use strict";u();var AH=VS(),Qo=zS(),KS={nul:0,control:0};zp.exports=function(e){return ZS(e,KS)};zp.exports.config=function(t){return t=AH(t||{},KS),function(r){return ZS(r,t)}};function ZS(t,e){if(typeof t!="string")return YS(t,e);for(var r=0,n=0;n<t.length;n++){var i=YS(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function YS(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:RH(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function RH(t){var e=0,r=Qo.length-1,n;if(t<Qo[0][0]||t>Qo[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>Qo[n][1])e=n+1;else if(t<Qo[n][0])r=n-1;else return!0;return!1}});var QS=m((VJ,XS)=>{"use strict";u();XS.exports=({stream:t=process.stdout}={})=>Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var tA=m((WJ,eA)=>{u();var Yp=require("stream");eA.exports=Ke;function Ke(t){Yp.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Ke.prototype=Object.create(Yp.prototype);Object.defineProperty(Ke.prototype,"constructor",{value:Ke,enumerable:!1});Ke.prototype.mute=function(){this.muted=!0};Ke.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ke.prototype,"_onpipe",{value:CH,enumerable:!1,writable:!0,configurable:!0});function CH(t){this._src=t}Object.defineProperty(Ke.prototype,"isTTY",{get:OH,set:TH,enumerable:!0,configurable:!0});function OH(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function TH(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ke.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ke.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ke.prototype.pipe=function(t,e){return this._dest=t,Yp.prototype.pipe.call(this,t,e)};Ke.prototype.pause=function(){if(this._src)return this._src.pause()};Ke.prototype.resume=function(){if(this._src)return this._src.resume()};Ke.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Ke.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function Kp(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Ke.prototype.destroy=Kp("destroy");Ke.prototype.destroySoon=Kp("destroySoon");Ke.prototype.close=Kp("close")});var nA=m((zJ,Xp)=>{"use strict";u();var kH=require("readline"),PH=ES(),rA=IS(),hu=MS(),du=qS(),IH=$S(),LH=JS(),NH=QS(),DH=tA(),Zp=Symbol("text"),pu=Symbol("prefixText"),MH=3,Jp=class{constructor(){this.requests=0,this.mutedStream=new DH,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(MH)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=kH.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},mu,gu=class{constructor(e){mu||(mu=new Jp),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:NH({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=hu.line;else if(e===void 0)this._spinner=hu.dots;else if(hu[e])this._spinner=hu[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Zp]}get prefixText(){return this[pu]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[pu]=="string"?this[pu]+"-":"";this.lineCount=IH(r+"--"+this[Zp]).split(`
36
+ `).reduce((n,i)=>n+Math.max(1,Math.ceil(LH(i)/e)),0)}set text(e){this[Zp]=e,this.updateLineCount()}set prefixText(e){this[pu]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=PH[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&rA.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,mu.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
37
+ `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&rA.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(mu.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:du.success,text:e})}fail(e){return this.stopAndPersist({symbol:du.error,text:e})}warn(e){return this.stopAndPersist({symbol:du.warning,text:e})}info(e){return this.stopAndPersist({symbol:du.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
38
+ `),this}},FH=function(t){return new gu(t)};Xp.exports=FH;Xp.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new gu(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var sA=m((YJ,iA)=>{"use strict";u();var qH=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},BH=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
39
39
  `:`
40
40
  `)+r,i=n+1,n=t.indexOf(`
41
- `,i)}while(n!==-1);return s+=t.substr(i),s};FA.exports={stringReplaceAll:w4,stringEncaseCRLFWithFirstIndex:x4}});var MA=m((IX,NA)=>{"use strict";c();var S4=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,IA=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,A4=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,C4=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,D4=new Map([["n",`
42
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function LA(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):D4.get(t)||t}function R4(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(A4))r.push(i[2].replace(C4,(a,u,l)=>u?LA(u):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function O4(t){IA.lastIndex=0;let e=[],r;for(;(r=IA.exec(t))!==null;){let n=r[1];if(r[2]){let i=R4(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function BA(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}NA.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(S4,(s,o,a,u,l,f)=>{if(o)i.push(LA(o));else if(u){let h=i.join("");i=[],n.push(r.length===0?h:BA(t,r)(h)),r.push({inverse:a,styles:O4(u)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(BA(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var $c=m((BX,GA)=>{"use strict";c();var _a=am(),{stdout:Rm,stderr:Om}=lm(),{stringReplaceAll:T4,stringEncaseCRLFWithFirstIndex:k4}=PA(),{isArray:Mc}=Array,jA=["ansi","ansi","ansi256","ansi16m"],Ps=Object.create(null),F4=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Rm?Rm.level:0;t.level=e.level===void 0?r:e.level},Tm=class{constructor(e){return HA(e)}},HA=t=>{let e={};return F4(e,t),e.template=(...r)=>UA(e.template,...r),Object.setPrototypeOf(e,qc.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Tm,e.template};function qc(t){return HA(t)}for(let[t,e]of Object.entries(_a))Ps[t]={get(){let r=jc(this,km(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Ps.visible={get(){let t=jc(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var $A=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of $A)Ps[t]={get(){let{level:e}=this;return function(...r){let n=km(_a.color[jA[e]][t](...r),_a.color.close,this._styler);return jc(this,n,this._isEmpty)}}};for(let t of $A){let e="bg"+t[0].toUpperCase()+t.slice(1);Ps[e]={get(){let{level:r}=this;return function(...n){let i=km(_a.bgColor[jA[r]][t](...n),_a.bgColor.close,this._styler);return jc(this,i,this._isEmpty)}}}}var P4=Object.defineProperties(()=>{},{...Ps,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),km=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},jc=(t,e,r)=>{let n=(...i)=>Mc(i[0])&&Mc(i[0].raw)?qA(n,UA(n,...i)):qA(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,P4),n._generator=t,n._styler=e,n._isEmpty=r,n},qA=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=T4(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
43
- `);return s!==-1&&(e=k4(e,i,n,s)),n+e+i},Dm,UA=(t,...e)=>{let[r]=e;if(!Mc(r)||!Mc(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Dm===void 0&&(Dm=MA()),Dm(t,i.join(""))};Object.defineProperties(qc.prototype,Ps);var Hc=qc();Hc.supportsColor=Rm;Hc.stderr=qc({level:Om?Om.level:0});Hc.stderr.supportsColor=Om;GA.exports=Hc});var VA=m((LX,Uc)=>{c();(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function u(_,A){if(_=_||"",A=A||{},_ instanceof u)return _;if(!(this instanceof u))return new u(_,A);var b=l(_);this._originalInput=_,this._r=b.r,this._g=b.g,this._b=b.b,this._a=b.a,this._roundA=i(100*this._a)/100,this._format=A.format||b.format,this._gradientType=A.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=b.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),A,b,I,G,U,be;return A=_.r/255,b=_.g/255,I=_.b/255,A<=.03928?G=A/12.92:G=t.pow((A+.055)/1.055,2.4),b<=.03928?U=b/12.92:U=t.pow((b+.055)/1.055,2.4),I<=.03928?be=I/12.92:be=t.pow((I+.055)/1.055,2.4),.2126*G+.7152*U+.0722*be},setAlpha:function(_){return this._a=k(_),this._roundA=i(100*this._a)/100,this},toHsv:function(){var _=g(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=g(this._r,this._g,this._b),A=i(_.h*360),b=i(_.s*100),I=i(_.v*100);return this._a==1?"hsv("+A+", "+b+"%, "+I+"%)":"hsva("+A+", "+b+"%, "+I+"%, "+this._roundA+")"},toHsl:function(){var _=h(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=h(this._r,this._g,this._b),A=i(_.h*360),b=i(_.s*100),I=i(_.l*100);return this._a==1?"hsl("+A+", "+b+"%, "+I+"%)":"hsla("+A+", "+b+"%, "+I+"%, "+this._roundA+")"},toHex:function(_){return v(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return E(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(P(this._r,255)*100)+"%",g:i(P(this._g,255)*100)+"%",b:i(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(P(this._r,255)*100)+"%, "+i(P(this._g,255)*100)+"%, "+i(P(this._b,255)*100)+"%)":"rgba("+i(P(this._r,255)*100)+"%, "+i(P(this._g,255)*100)+"%, "+i(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:S[v(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var A="#"+x(this._r,this._g,this._b,this._a),b=A,I=this._gradientType?"GradientType = 1, ":"";if(_){var G=u(_);b="#"+x(G._r,G._g,G._b,G._a)}return"progid:DXImageTransform.Microsoft.gradient("+I+"startColorstr="+A+",endColorstr="+b+")"},toString:function(_){var A=!!_;_=_||this._format;var b=!1,I=this._a<1&&this._a>=0,G=!A&&I&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return G?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(b=this.toRgbString()),_==="prgb"&&(b=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(b=this.toHexString()),_==="hex3"&&(b=this.toHexString(!0)),_==="hex4"&&(b=this.toHex8String(!0)),_==="hex8"&&(b=this.toHex8String()),_==="name"&&(b=this.toName()),_==="hsl"&&(b=this.toHslString()),_==="hsv"&&(b=this.toHsvString()),b||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(_,A){var b=_.apply(null,[this].concat([].slice.call(A)));return this._r=b._r,this._g=b._g,this._b=b._b,this.setAlpha(b._a),this},lighten:function(){return this._applyModification(H,arguments)},brighten:function(){return this._applyModification(ie,arguments)},darken:function(){return this._applyModification(J,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(B,arguments)},greyscale:function(){return this._applyModification(z,arguments)},spin:function(){return this._applyModification(X,arguments)},_applyCombination:function(_,A){return _.apply(null,[this].concat([].slice.call(A)))},analogous:function(){return this._applyCombination(re,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(pe,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(te,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},u.fromRatio=function(_,A){if(typeof _=="object"){var b={};for(var I in _)_.hasOwnProperty(I)&&(I==="a"?b[I]=_[I]:b[I]=He(_[I]));_=b}return u(_,A)};function l(_){var A={r:0,g:0,b:0},b=1,I=null,G=null,U=null,be=!1,Me=!1;return typeof _=="string"&&(_=Ae(_)),typeof _=="object"&&(j(_.r)&&j(_.g)&&j(_.b)?(A=f(_.r,_.g,_.b),be=!0,Me=String(_.r).substr(-1)==="%"?"prgb":"rgb"):j(_.h)&&j(_.s)&&j(_.v)?(I=He(_.s),G=He(_.v),A=y(_.h,I,G),be=!0,Me="hsv"):j(_.h)&&j(_.s)&&j(_.l)&&(I=He(_.s),U=He(_.l),A=d(_.h,I,U),be=!0,Me="hsl"),_.hasOwnProperty("a")&&(b=_.a)),b=k(b),{ok:be,format:_.format||Me,r:s(255,o(A.r,0)),g:s(255,o(A.g,0)),b:s(255,o(A.b,0)),a:b}}function f(_,A,b){return{r:P(_,255)*255,g:P(A,255)*255,b:P(b,255)*255}}function h(_,A,b){_=P(_,255),A=P(A,255),b=P(b,255);var I=o(_,A,b),G=s(_,A,b),U,be,Me=(I+G)/2;if(I==G)U=be=0;else{var $e=I-G;switch(be=Me>.5?$e/(2-I-G):$e/(I+G),I){case _:U=(A-b)/$e+(A<b?6:0);break;case A:U=(b-_)/$e+2;break;case b:U=(_-A)/$e+4;break}U/=6}return{h:U,s:be,l:Me}}function d(_,A,b){var I,G,U;_=P(_,360),A=P(A,100),b=P(b,100);function be(Xt,Io,mr){return mr<0&&(mr+=1),mr>1&&(mr-=1),mr<1/6?Xt+(Io-Xt)*6*mr:mr<1/2?Io:mr<2/3?Xt+(Io-Xt)*(2/3-mr)*6:Xt}if(A===0)I=G=U=b;else{var Me=b<.5?b*(1+A):b+A-b*A,$e=2*b-Me;I=be($e,Me,_+1/3),G=be($e,Me,_),U=be($e,Me,_-1/3)}return{r:I*255,g:G*255,b:U*255}}function g(_,A,b){_=P(_,255),A=P(A,255),b=P(b,255);var I=o(_,A,b),G=s(_,A,b),U,be,Me=I,$e=I-G;if(be=I===0?0:$e/I,I==G)U=0;else{switch(I){case _:U=(A-b)/$e+(A<b?6:0);break;case A:U=(b-_)/$e+2;break;case b:U=(_-A)/$e+4;break}U/=6}return{h:U,s:be,v:Me}}function y(_,A,b){_=P(_,360)*6,A=P(A,100),b=P(b,100);var I=t.floor(_),G=_-I,U=b*(1-A),be=b*(1-G*A),Me=b*(1-(1-G)*A),$e=I%6,Xt=[b,be,U,U,Me,b][$e],Io=[Me,b,b,be,U,U][$e],mr=[U,U,Me,b,b,be][$e];return{r:Xt*255,g:Io*255,b:mr*255}}function v(_,A,b,I){var G=[Ee(i(_).toString(16)),Ee(i(A).toString(16)),Ee(i(b).toString(16))];return I&&G[0].charAt(0)==G[0].charAt(1)&&G[1].charAt(0)==G[1].charAt(1)&&G[2].charAt(0)==G[2].charAt(1)?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0):G.join("")}function E(_,A,b,I,G){var U=[Ee(i(_).toString(16)),Ee(i(A).toString(16)),Ee(i(b).toString(16)),Ee(se(I))];return G&&U[0].charAt(0)==U[0].charAt(1)&&U[1].charAt(0)==U[1].charAt(1)&&U[2].charAt(0)==U[2].charAt(1)&&U[3].charAt(0)==U[3].charAt(1)?U[0].charAt(0)+U[1].charAt(0)+U[2].charAt(0)+U[3].charAt(0):U.join("")}function x(_,A,b,I){var G=[Ee(se(I)),Ee(i(_).toString(16)),Ee(i(A).toString(16)),Ee(i(b).toString(16))];return G.join("")}u.equals=function(_,A){return!_||!A?!1:u(_).toRgbString()==u(A).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function O(_,A){A=A===0?0:A||10;var b=u(_).toHsl();return b.s-=A/100,b.s=Z(b.s),u(b)}function B(_,A){A=A===0?0:A||10;var b=u(_).toHsl();return b.s+=A/100,b.s=Z(b.s),u(b)}function z(_){return u(_).desaturate(100)}function H(_,A){A=A===0?0:A||10;var b=u(_).toHsl();return b.l+=A/100,b.l=Z(b.l),u(b)}function ie(_,A){A=A===0?0:A||10;var b=u(_).toRgb();return b.r=o(0,s(255,b.r-i(255*-(A/100)))),b.g=o(0,s(255,b.g-i(255*-(A/100)))),b.b=o(0,s(255,b.b-i(255*-(A/100)))),u(b)}function J(_,A){A=A===0?0:A||10;var b=u(_).toHsl();return b.l-=A/100,b.l=Z(b.l),u(b)}function X(_,A){var b=u(_).toHsl(),I=(b.h+A)%360;return b.h=I<0?360+I:I,u(b)}function M(_){var A=u(_).toHsl();return A.h=(A.h+180)%360,u(A)}function te(_){var A=u(_).toHsl(),b=A.h;return[u(_),u({h:(b+120)%360,s:A.s,l:A.l}),u({h:(b+240)%360,s:A.s,l:A.l})]}function D(_){var A=u(_).toHsl(),b=A.h;return[u(_),u({h:(b+90)%360,s:A.s,l:A.l}),u({h:(b+180)%360,s:A.s,l:A.l}),u({h:(b+270)%360,s:A.s,l:A.l})]}function oe(_){var A=u(_).toHsl(),b=A.h;return[u(_),u({h:(b+72)%360,s:A.s,l:A.l}),u({h:(b+216)%360,s:A.s,l:A.l})]}function re(_,A,b){A=A||6,b=b||30;var I=u(_).toHsl(),G=360/b,U=[u(_)];for(I.h=(I.h-(G*A>>1)+720)%360;--A;)I.h=(I.h+G)%360,U.push(u(I));return U}function pe(_,A){A=A||6;for(var b=u(_).toHsv(),I=b.h,G=b.s,U=b.v,be=[],Me=1/A;A--;)be.push(u({h:I,s:G,v:U})),U=(U+Me)%1;return be}u.mix=function(_,A,b){b=b===0?0:b||50;var I=u(_).toRgb(),G=u(A).toRgb(),U=b/100,be={r:(G.r-I.r)*U+I.r,g:(G.g-I.g)*U+I.g,b:(G.b-I.b)*U+I.b,a:(G.a-I.a)*U+I.a};return u(be)},u.readability=function(_,A){var b=u(_),I=u(A);return(t.max(b.getLuminance(),I.getLuminance())+.05)/(t.min(b.getLuminance(),I.getLuminance())+.05)},u.isReadable=function(_,A,b){var I=u.readability(_,A),G,U;switch(U=!1,G=q(b),G.level+G.size){case"AAsmall":case"AAAlarge":U=I>=4.5;break;case"AAlarge":U=I>=3;break;case"AAAsmall":U=I>=7;break}return U},u.mostReadable=function(_,A,b){var I=null,G=0,U,be,Me,$e;b=b||{},be=b.includeFallbackColors,Me=b.level,$e=b.size;for(var Xt=0;Xt<A.length;Xt++)U=u.readability(_,A[Xt]),U>G&&(G=U,I=u(A[Xt]));return u.isReadable(_,I,{level:Me,size:$e})||!be?I:(b.includeFallbackColors=!1,u.mostReadable(_,["#fff","#000"],b))};var C=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=u.hexNames=T(C);function T(_){var A={};for(var b in _)_.hasOwnProperty(b)&&(A[_[b]]=b);return A}function k(_){return _=parseFloat(_),(isNaN(_)||_<0||_>1)&&(_=1),_}function P(_,A){xe(_)&&(_="100%");var b=Ze(_);return _=s(A,o(0,parseFloat(_))),b&&(_=parseInt(_*A,10)/100),t.abs(_-A)<1e-6?1:_%A/parseFloat(A)}function Z(_){return s(1,o(0,_))}function $(_){return parseInt(_,16)}function xe(_){return typeof _=="string"&&_.indexOf(".")!=-1&&parseFloat(_)===1}function Ze(_){return typeof _=="string"&&_.indexOf("%")!=-1}function Ee(_){return _.length==1?"0"+_:""+_}function He(_){return _<=1&&(_=_*100+"%"),_}function se(_){return t.round(parseFloat(_)*255).toString(16)}function xt(_){return $(_)/255}var qt=function(){var _="[-\\+]?\\d+%?",A="[-\\+]?\\d*\\.\\d+%?",b="(?:"+A+")|(?:"+_+")",I="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",G="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?";return{CSS_UNIT:new RegExp(b),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+G),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function j(_){return!!qt.CSS_UNIT.exec(_)}function Ae(_){_=_.replace(e,"").replace(r,"").toLowerCase();var A=!1;if(C[_])_=C[_],A=!0;else if(_=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var b;return(b=qt.rgb.exec(_))?{r:b[1],g:b[2],b:b[3]}:(b=qt.rgba.exec(_))?{r:b[1],g:b[2],b:b[3],a:b[4]}:(b=qt.hsl.exec(_))?{h:b[1],s:b[2],l:b[3]}:(b=qt.hsla.exec(_))?{h:b[1],s:b[2],l:b[3],a:b[4]}:(b=qt.hsv.exec(_))?{h:b[1],s:b[2],v:b[3]}:(b=qt.hsva.exec(_))?{h:b[1],s:b[2],v:b[3],a:b[4]}:(b=qt.hex8.exec(_))?{r:$(b[1]),g:$(b[2]),b:$(b[3]),a:xt(b[4]),format:A?"name":"hex8"}:(b=qt.hex6.exec(_))?{r:$(b[1]),g:$(b[2]),b:$(b[3]),format:A?"name":"hex"}:(b=qt.hex4.exec(_))?{r:$(b[1]+""+b[1]),g:$(b[2]+""+b[2]),b:$(b[3]+""+b[3]),a:xt(b[4]+""+b[4]),format:A?"name":"hex8"}:(b=qt.hex3.exec(_))?{r:$(b[1]+""+b[1]),g:$(b[2]+""+b[2]),b:$(b[3]+""+b[3]),format:A?"name":"hex"}:!1}function q(_){var A,b;return _=_||{level:"AA",size:"small"},A=(_.level||"AA").toUpperCase(),b=(_.size||"small").toLowerCase(),A!=="AA"&&A!=="AAA"&&(A="AA"),b!=="small"&&b!=="large"&&(b="small"),{level:A,size:b}}typeof Uc<"u"&&Uc.exports?Uc.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var XA=m((NX,JA)=>{c();var va=VA(),KA={r:256,g:256,b:256,a:1},ZA={h:360,s:1,v:1,a:1};function Pm(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Im(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Fm(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Pm(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=Im(s,n,a,KA);o.push(va(u))}return o}function WA(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Fm(t,e,r);let o;if(typeof n=="boolean")o=n;else{let f=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&f||n==="short"&&!f}let a=Pm(i,s,r),u=[t.color],l;i.h<=s.h&&!o||i.h>=s.h&&o?l=s.h-i.h:o?l=360-s.h+i.h:l=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(l)/r;for(let f=1;f<r;f++){let h=Im(a,i,f,ZA);u.push(va(h))}return u}function zA(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function YA(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,l=t.length;u<l-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=Pm(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Im(o,i.color[r](),(e-i.pos)*100,n);return va(a)}var Is=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let l=o.color!==void 0;if(!l&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!l,o={color:l?va(o.color):null,colorLess:!l,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:va(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Is(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Is(e.concat(r.reverse()))}rgb(e){let r=zA(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Fm(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Fm(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=zA(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=WA(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=WA(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return YA(this.stops,e,"toRgb",KA)}hsvAt(e){return YA(this.stops,e,"toHsv",ZA)}};JA.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Is(t)}});var nC=m((MX,Gc)=>{"use strict";c();var eC=$c(),I4=XA(),QA=/\s/g;function Bm(...t){let e=I4.apply(this,t),r=(n,i)=>B4(n?n.toString():"",e,i);return r.multiline=(n,i)=>L4(n?n.toString():"",e,i),r}var tC=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function B4(t,e,r){let n=rC(r),i=Math.max(t.replace(QA,"").length,e.stops.length),s=tC(e,n,i),o="";for(let a of t)o+=a.match(QA)?a:eC.hex(s.shift().toHex())(a);return o}function L4(t,e,r){let n=rC(r),i=t.split(`
44
- `),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=tC(e,n,s),a=[];for(let u of i){let l=o.slice(0),f="";for(let h of u)f+=eC.hex(l.shift().toHex())(h);a.push(f)}return a.join(`
45
- `)}function rC(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var Ea={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Gc.exports=Bm;for(let t in Ea)Gc.exports[t]=e=>new Bm(Ea[t].colors)(e,Ea[t].options),Gc.exports[t].multiline=e=>new Bm(Ea[t].colors).multiline(e,Ea[t].options)});var yC=m((GX,gC)=>{c();gC.exports=mC;mC.sync=K4;var dC=require("fs");function Y4(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function pC(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:Y4(e,r)}function mC(t,e,r){dC.stat(t,function(n,i){r(n,n?!1:pC(i,t,e))})}function K4(t,e){return pC(dC.statSync(t),t,e)}});var wC=m((VX,bC)=>{c();bC.exports=vC;vC.sync=Z4;var _C=require("fs");function vC(t,e,r){_C.stat(t,function(n,i){r(n,n?!1:EC(i,e))})}function Z4(t,e){return EC(_C.statSync(t),e)}function EC(t,e){return t.isFile()&&J4(t,e)}function J4(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),f=a|u,h=r&l||r&u&&i===o||r&a&&n===s||r&f&&s===0;return h}});var SC=m((zX,xC)=>{c();var WX=require("fs"),Vc;process.platform==="win32"||global.TESTING_WINDOWS?Vc=yC():Vc=wC();xC.exports=Lm;Lm.sync=X4;function Lm(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Lm(t,e||{},function(s,o){s?i(s):n(o)})})}Vc(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function X4(t,e){try{return Vc.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var kC=m((YX,TC)=>{c();var Ls=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",AC=require("path"),Q4=Ls?";":":",CC=SC(),DC=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),RC=(t,e)=>{let r=e.colon||Q4,n=t.match(/\//)||Ls&&t.match(/\\/)?[""]:[...Ls?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Ls?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ls?i.split(r):[""];return Ls&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},OC=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=RC(t,e),o=[],a=l=>new Promise((f,h)=>{if(l===n.length)return e.all&&o.length?f(o):h(DC(t));let d=n[l],g=/^".*"$/.test(d)?d.slice(1,-1):d,y=AC.join(g,t),v=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+y:y;f(u(v,l,0))}),u=(l,f,h)=>new Promise((d,g)=>{if(h===i.length)return d(a(f+1));let y=i[h];CC(l+y,{pathExt:s},(v,E)=>{if(!v&&E)if(e.all)o.push(l+y);else return d(l+y);return d(u(l,f,h+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},e9=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=RC(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=AC.join(u,t),f=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<n.length;h++){let d=f+n[h];try{if(CC.sync(d,{pathExt:i}))if(e.all)s.push(d);else return d}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw DC(t)};TC.exports=OC;OC.sync=e9});var Mm=m((KX,Nm)=>{"use strict";c();var FC=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Nm.exports=FC;Nm.exports.default=FC});var LC=m((ZX,BC)=>{"use strict";c();var PC=require("path"),t9=kC(),r9=Mm();function IC(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=t9.sync(t.command,{path:r[r9({env:r})],pathExt:e?PC.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=PC.resolve(i?t.options.cwd:"",o)),o}function n9(t){return IC(t)||IC(t,!0)}BC.exports=n9});var NC=m((JX,jm)=>{"use strict";c();var qm=/([()\][%!^"`<>&|;, *?])/g;function i9(t){return t=t.replace(qm,"^$1"),t}function s9(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(qm,"^$1"),e&&(t=t.replace(qm,"^$1")),t}jm.exports.command=i9;jm.exports.argument=s9});var qC=m((XX,MC)=>{"use strict";c();MC.exports=/^#!(.*)/});var HC=m((QX,jC)=>{"use strict";c();var o9=qC();jC.exports=(t="")=>{let e=t.match(o9);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var UC=m((eQ,$C)=>{"use strict";c();var Hm=require("fs"),a9=HC();function u9(t){let r=Buffer.alloc(150),n;try{n=Hm.openSync(t,"r"),Hm.readSync(n,r,0,150,0),Hm.closeSync(n)}catch{}return a9(r.toString())}$C.exports=u9});var zC=m((tQ,WC)=>{"use strict";c();var c9=require("path"),GC=LC(),VC=NC(),l9=UC(),f9=process.platform==="win32",h9=/\.(?:com|exe)$/i,d9=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function p9(t){t.file=GC(t);let e=t.file&&l9(t.file);return e?(t.args.unshift(t.file),t.command=e,GC(t)):t.file}function m9(t){if(!f9)return t;let e=p9(t),r=!h9.test(e);if(t.options.forceShell||r){let n=d9.test(e);t.command=c9.normalize(t.command),t.command=VC.command(t.command),t.args=t.args.map(s=>VC.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function g9(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:m9(n)}WC.exports=g9});var ZC=m((rQ,KC)=>{"use strict";c();var $m=process.platform==="win32";function Um(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function y9(t,e){if(!$m)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=YC(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function YC(t,e){return $m&&t===1&&!e.file?Um(e.original,"spawn"):null}function _9(t,e){return $m&&t===1&&!e.file?Um(e.original,"spawnSync"):null}KC.exports={hookChildProcess:y9,verifyENOENT:YC,verifyENOENTSync:_9,notFoundError:Um}});var QC=m((nQ,Ns)=>{"use strict";c();var JC=require("child_process"),Gm=zC(),Vm=ZC();function XC(t,e,r){let n=Gm(t,e,r),i=JC.spawn(n.command,n.args,n.options);return Vm.hookChildProcess(i,n),i}function v9(t,e,r){let n=Gm(t,e,r),i=JC.spawnSync(n.command,n.args,n.options);return i.error=i.error||Vm.verifyENOENTSync(i.status,n),i}Ns.exports=XC;Ns.exports.spawn=XC;Ns.exports.sync=v9;Ns.exports._parse=Gm;Ns.exports._enoent=Vm});var tD=m((iQ,eD)=>{"use strict";c();eD.exports=t=>{let e=typeof t=="string"?`
41
+ `,i)}while(n!==-1);return s+=t.substr(i),s};iA.exports={stringReplaceAll:qH,stringEncaseCRLFWithFirstIndex:BH}});var lA=m((KJ,uA)=>{"use strict";u();var jH=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,oA=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,HH=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,$H=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,UH=new Map([["n",`
42
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function cA(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):UH.get(t)||t}function GH(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(HH))r.push(i[2].replace($H,(a,c,l)=>c?cA(c):l));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function VH(t){oA.lastIndex=0;let e=[],r;for(;(r=oA.exec(t))!==null;){let n=r[1];if(r[2]){let i=GH(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function aA(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}uA.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(jH,(s,o,a,c,l,f)=>{if(o)i.push(cA(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:aA(t,r)(h)),r.push({inverse:a,styles:VH(c)})}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(aA(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Eu=m((ZJ,gA)=>{"use strict";u();var ea=Lp(),{stdout:em,stderr:tm}=Mp(),{stringReplaceAll:WH,stringEncaseCRLFWithFirstIndex:zH}=sA(),{isArray:yu}=Array,hA=["ansi","ansi","ansi256","ansi16m"],ys=Object.create(null),YH=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=em?em.level:0;t.level=e.level===void 0?r:e.level},rm=class{constructor(e){return dA(e)}},dA=t=>{let e={};return YH(e,t),e.template=(...r)=>mA(e.template,...r),Object.setPrototypeOf(e,_u.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=rm,e.template};function _u(t){return dA(t)}for(let[t,e]of Object.entries(ea))ys[t]={get(){let r=vu(this,nm(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};ys.visible={get(){let t=vu(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var pA=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of pA)ys[t]={get(){let{level:e}=this;return function(...r){let n=nm(ea.color[hA[e]][t](...r),ea.color.close,this._styler);return vu(this,n,this._isEmpty)}}};for(let t of pA){let e="bg"+t[0].toUpperCase()+t.slice(1);ys[e]={get(){let{level:r}=this;return function(...n){let i=nm(ea.bgColor[hA[r]][t](...n),ea.bgColor.close,this._styler);return vu(this,i,this._isEmpty)}}}}var KH=Object.defineProperties(()=>{},{...ys,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),nm=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},vu=(t,e,r)=>{let n=(...i)=>yu(i[0])&&yu(i[0].raw)?fA(n,mA(n,...i)):fA(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,KH),n._generator=t,n._styler=e,n._isEmpty=r,n},fA=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=WH(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
43
+ `);return s!==-1&&(e=zH(e,i,n,s)),n+e+i},Qp,mA=(t,...e)=>{let[r]=e;if(!yu(r)||!yu(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Qp===void 0&&(Qp=lA()),Qp(t,i.join(""))};Object.defineProperties(_u.prototype,ys);var bu=_u();bu.supportsColor=em;bu.stderr=_u({level:tm?tm.level:0});bu.stderr.supportsColor=tm;gA.exports=bu});var yA=m((JJ,wu)=>{u();(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function c(_,S){if(_=_||"",S=S||{},_ instanceof c)return _;if(!(this instanceof c))return new c(_,S);var b=l(_);this._originalInput=_,this._r=b.r,this._g=b.g,this._b=b.b,this._a=b.a,this._roundA=i(100*this._a)/100,this._format=S.format||b.format,this._gradientType=S.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=b.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),S,b,L,$,H,ye;return S=_.r/255,b=_.g/255,L=_.b/255,S<=.03928?$=S/12.92:$=t.pow((S+.055)/1.055,2.4),b<=.03928?H=b/12.92:H=t.pow((b+.055)/1.055,2.4),L<=.03928?ye=L/12.92:ye=t.pow((L+.055)/1.055,2.4),.2126*$+.7152*H+.0722*ye},setAlpha:function(_){return this._a=k(_),this._roundA=i(100*this._a)/100,this},toHsv:function(){var _=y(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=y(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.v*100);return this._a==1?"hsv("+S+", "+b+"%, "+L+"%)":"hsva("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHsl:function(){var _=h(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=h(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.l*100);return this._a==1?"hsl("+S+", "+b+"%, "+L+"%)":"hsla("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHex:function(_){return E(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return v(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(I(this._r,255)*100)+"%",g:i(I(this._g,255)*100)+"%",b:i(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%)":"rgba("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:x[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var S="#"+A(this._r,this._g,this._b,this._a),b=S,L=this._gradientType?"GradientType = 1, ":"";if(_){var $=c(_);b="#"+A($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+L+"startColorstr="+S+",endColorstr="+b+")"},toString:function(_){var S=!!_;_=_||this._format;var b=!1,L=this._a<1&&this._a>=0,$=!S&&L&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return $?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(b=this.toRgbString()),_==="prgb"&&(b=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(b=this.toHexString()),_==="hex3"&&(b=this.toHexString(!0)),_==="hex4"&&(b=this.toHex8String(!0)),_==="hex8"&&(b=this.toHex8String()),_==="name"&&(b=this.toName()),_==="hsl"&&(b=this.toHslString()),_==="hsv"&&(b=this.toHsvString()),b||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(_,S){var b=_.apply(null,[this].concat([].slice.call(S)));return this._r=b._r,this._g=b._g,this._b=b._b,this.setAlpha(b._a),this},lighten:function(){return this._applyModification(z,arguments)},brighten:function(){return this._applyModification(ue,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(P,arguments)},saturate:function(){return this._applyModification(D,arguments)},greyscale:function(){return this._applyModification(ie,arguments)},spin:function(){return this._applyModification(Z,arguments)},_applyCombination:function(_,S){return _.apply(null,[this].concat([].slice.call(S)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(fe,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(Q,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},c.fromRatio=function(_,S){if(typeof _=="object"){var b={};for(var L in _)_.hasOwnProperty(L)&&(L==="a"?b[L]=_[L]:b[L]=De(_[L]));_=b}return c(_,S)};function l(_){var S={r:0,g:0,b:0},b=1,L=null,$=null,H=null,ye=!1,Le=!1;return typeof _=="string"&&(_=Ee(_)),typeof _=="object"&&(B(_.r)&&B(_.g)&&B(_.b)?(S=f(_.r,_.g,_.b),ye=!0,Le=String(_.r).substr(-1)==="%"?"prgb":"rgb"):B(_.h)&&B(_.s)&&B(_.v)?(L=De(_.s),$=De(_.v),S=g(_.h,L,$),ye=!0,Le="hsv"):B(_.h)&&B(_.s)&&B(_.l)&&(L=De(_.s),H=De(_.l),S=d(_.h,L,H),ye=!0,Le="hsl"),_.hasOwnProperty("a")&&(b=_.a)),b=k(b),{ok:ye,format:_.format||Le,r:s(255,o(S.r,0)),g:s(255,o(S.g,0)),b:s(255,o(S.b,0)),a:b}}function f(_,S,b){return{r:I(_,255)*255,g:I(S,255)*255,b:I(b,255)*255}}function h(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),$=s(_,S,b),H,ye,Le=(L+$)/2;if(L==$)H=ye=0;else{var Me=L-$;switch(ye=Le>.5?Me/(2-L-$):Me/(L+$),L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,l:Le}}function d(_,S,b){var L,$,H;_=I(_,360),S=I(S,100),b=I(b,100);function ye(Ut,_o,ar){return ar<0&&(ar+=1),ar>1&&(ar-=1),ar<1/6?Ut+(_o-Ut)*6*ar:ar<1/2?_o:ar<2/3?Ut+(_o-Ut)*(2/3-ar)*6:Ut}if(S===0)L=$=H=b;else{var Le=b<.5?b*(1+S):b+S-b*S,Me=2*b-Le;L=ye(Me,Le,_+1/3),$=ye(Me,Le,_),H=ye(Me,Le,_-1/3)}return{r:L*255,g:$*255,b:H*255}}function y(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),$=s(_,S,b),H,ye,Le=L,Me=L-$;if(ye=L===0?0:Me/L,L==$)H=0;else{switch(L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,v:Le}}function g(_,S,b){_=I(_,360)*6,S=I(S,100),b=I(b,100);var L=t.floor(_),$=_-L,H=b*(1-S),ye=b*(1-$*S),Le=b*(1-(1-$)*S),Me=L%6,Ut=[b,ye,H,H,Le,b][Me],_o=[Le,b,b,ye,H,H][Me],ar=[H,H,Le,b,b,ye][Me];return{r:Ut*255,g:_o*255,b:ar*255}}function E(_,S,b,L){var $=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return L&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0):$.join("")}function v(_,S,b,L,$){var H=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16)),ge(re(L))];return $&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function A(_,S,b,L){var $=[ge(re(L)),ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return $.join("")}c.equals=function(_,S){return!_||!S?!1:c(_).toRgbString()==c(S).toRgbString()},c.random=function(){return c.fromRatio({r:a(),g:a(),b:a()})};function P(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s-=S/100,b.s=Y(b.s),c(b)}function D(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s+=S/100,b.s=Y(b.s),c(b)}function ie(_){return c(_).desaturate(100)}function z(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l+=S/100,b.l=Y(b.l),c(b)}function ue(_,S){S=S===0?0:S||10;var b=c(_).toRgb();return b.r=o(0,s(255,b.r-i(255*-(S/100)))),b.g=o(0,s(255,b.g-i(255*-(S/100)))),b.b=o(0,s(255,b.b-i(255*-(S/100)))),c(b)}function K(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l-=S/100,b.l=Y(b.l),c(b)}function Z(_,S){var b=c(_).toHsl(),L=(b.h+S)%360;return b.h=L<0?360+L:L,c(b)}function F(_){var S=c(_).toHsl();return S.h=(S.h+180)%360,c(S)}function Q(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+120)%360,s:S.s,l:S.l}),c({h:(b+240)%360,s:S.s,l:S.l})]}function C(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+90)%360,s:S.s,l:S.l}),c({h:(b+180)%360,s:S.s,l:S.l}),c({h:(b+270)%360,s:S.s,l:S.l})]}function ne(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+72)%360,s:S.s,l:S.l}),c({h:(b+216)%360,s:S.s,l:S.l})]}function ee(_,S,b){S=S||6,b=b||30;var L=c(_).toHsl(),$=360/b,H=[c(_)];for(L.h=(L.h-($*S>>1)+720)%360;--S;)L.h=(L.h+$)%360,H.push(c(L));return H}function fe(_,S){S=S||6;for(var b=c(_).toHsv(),L=b.h,$=b.s,H=b.v,ye=[],Le=1/S;S--;)ye.push(c({h:L,s:$,v:H})),H=(H+Le)%1;return ye}c.mix=function(_,S,b){b=b===0?0:b||50;var L=c(_).toRgb(),$=c(S).toRgb(),H=b/100,ye={r:($.r-L.r)*H+L.r,g:($.g-L.g)*H+L.g,b:($.b-L.b)*H+L.b,a:($.a-L.a)*H+L.a};return c(ye)},c.readability=function(_,S){var b=c(_),L=c(S);return(t.max(b.getLuminance(),L.getLuminance())+.05)/(t.min(b.getLuminance(),L.getLuminance())+.05)},c.isReadable=function(_,S,b){var L=c.readability(_,S),$,H;switch(H=!1,$=q(b),$.level+$.size){case"AAsmall":case"AAAlarge":H=L>=4.5;break;case"AAlarge":H=L>=3;break;case"AAAsmall":H=L>=7;break}return H},c.mostReadable=function(_,S,b){var L=null,$=0,H,ye,Le,Me;b=b||{},ye=b.includeFallbackColors,Le=b.level,Me=b.size;for(var Ut=0;Ut<S.length;Ut++)H=c.readability(_,S[Ut]),H>$&&($=H,L=c(S[Ut]));return c.isReadable(_,L,{level:Le,size:Me})||!ye?L:(b.includeFallbackColors=!1,c.mostReadable(_,["#fff","#000"],b))};var R=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=c.hexNames=T(R);function T(_){var S={};for(var b in _)_.hasOwnProperty(b)&&(S[_[b]]=b);return S}function k(_){return _=parseFloat(_),(isNaN(_)||_<0||_>1)&&(_=1),_}function I(_,S){ve(_)&&(_="100%");var b=Ue(_);return _=s(S,o(0,parseFloat(_))),b&&(_=parseInt(_*S,10)/100),t.abs(_-S)<1e-6?1:_%S/parseFloat(S)}function Y(_){return s(1,o(0,_))}function j(_){return parseInt(_,16)}function ve(_){return typeof _=="string"&&_.indexOf(".")!=-1&&parseFloat(_)===1}function Ue(_){return typeof _=="string"&&_.indexOf("%")!=-1}function ge(_){return _.length==1?"0"+_:""+_}function De(_){return _<=1&&(_=_*100+"%"),_}function re(_){return t.round(parseFloat(_)*255).toString(16)}function mt(_){return j(_)/255}var kt=function(){var _="[-\\+]?\\d+%?",S="[-\\+]?\\d*\\.\\d+%?",b="(?:"+S+")|(?:"+_+")",L="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",$="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?";return{CSS_UNIT:new RegExp(b),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function B(_){return!!kt.CSS_UNIT.exec(_)}function Ee(_){_=_.replace(e,"").replace(r,"").toLowerCase();var S=!1;if(R[_])_=R[_],S=!0;else if(_=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var b;return(b=kt.rgb.exec(_))?{r:b[1],g:b[2],b:b[3]}:(b=kt.rgba.exec(_))?{r:b[1],g:b[2],b:b[3],a:b[4]}:(b=kt.hsl.exec(_))?{h:b[1],s:b[2],l:b[3]}:(b=kt.hsla.exec(_))?{h:b[1],s:b[2],l:b[3],a:b[4]}:(b=kt.hsv.exec(_))?{h:b[1],s:b[2],v:b[3]}:(b=kt.hsva.exec(_))?{h:b[1],s:b[2],v:b[3],a:b[4]}:(b=kt.hex8.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),a:mt(b[4]),format:S?"name":"hex8"}:(b=kt.hex6.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),format:S?"name":"hex"}:(b=kt.hex4.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),a:mt(b[4]+""+b[4]),format:S?"name":"hex8"}:(b=kt.hex3.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),format:S?"name":"hex"}:!1}function q(_){var S,b;return _=_||{level:"AA",size:"small"},S=(_.level||"AA").toUpperCase(),b=(_.size||"small").toLowerCase(),S!=="AA"&&S!=="AAA"&&(S="AA"),b!=="small"&&b!=="large"&&(b="small"),{level:S,size:b}}typeof wu<"u"&&wu.exports?wu.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.tinycolor=c})(Math)});var SA=m((XJ,xA)=>{u();var ta=yA(),EA={r:256,g:256,b:256,a:1},wA={h:360,s:1,v:1,a:1};function sm(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function om(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function im(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=sm(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=om(s,n,a,EA);o.push(ta(c))}return o}function _A(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return im(t,e,r);let o;if(typeof n=="boolean")o=n;else{let f=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&f||n==="short"&&!f}let a=sm(i,s,r),c=[t.color],l;i.h<=s.h&&!o||i.h>=s.h&&o?l=s.h-i.h:o?l=360-s.h+i.h:l=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(l)/r;for(let f=1;f<r;f++){let h=om(a,i,f,wA);c.push(ta(h))}return c}function vA(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function bA(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,l=t.length;c<l-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=sm(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=om(o,i.color[r](),(e-i.pos)*100,n);return ta(a)}var _s=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let l=o.color!==void 0;if(!l&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!l,o={color:l?ta(o.color):null,colorLess:!l,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:ta(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new _s(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new _s(e.concat(r.reverse()))}rgb(e){let r=vA(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=im(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=im(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=vA(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=_A(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=_A(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return bA(this.stops,e,"toRgb",EA)}hsvAt(e){return bA(this.stops,e,"toHsv",wA)}};xA.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new _s(t)}});var TA=m((QJ,xu)=>{"use strict";u();var RA=Eu(),ZH=SA(),AA=/\s/g;function am(...t){let e=ZH.apply(this,t),r=(n,i)=>JH(n?n.toString():"",e,i);return r.multiline=(n,i)=>XH(n?n.toString():"",e,i),r}var CA=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function JH(t,e,r){let n=OA(r),i=Math.max(t.replace(AA,"").length,e.stops.length),s=CA(e,n,i),o="";for(let a of t)o+=a.match(AA)?a:RA.hex(s.shift().toHex())(a);return o}function XH(t,e,r){let n=OA(r),i=t.split(`
44
+ `),s=Math.max.apply(null,i.map(c=>c.length).concat([e.stops.length])),o=CA(e,n,s),a=[];for(let c of i){let l=o.slice(0),f="";for(let h of c)f+=RA.hex(l.shift().toHex())(h);a.push(f)}return a.join(`
45
+ `)}function OA(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var ra={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};xu.exports=am;for(let t in ra)xu.exports[t]=e=>new am(ra[t].colors)(e,ra[t].options),xu.exports[t].multiline=e=>new am(ra[t].colors).multiline(e,ra[t].options)});var UA=m((iX,$A)=>{u();$A.exports=HA;HA.sync=h6;var BA=require("fs");function f6(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function jA(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:f6(e,r)}function HA(t,e,r){BA.stat(t,function(n,i){r(n,n?!1:jA(i,t,e))})}function h6(t,e){return jA(BA.statSync(t),t,e)}});var YA=m((sX,zA)=>{u();zA.exports=VA;VA.sync=d6;var GA=require("fs");function VA(t,e,r){GA.stat(t,function(n,i){r(n,n?!1:WA(i,e))})}function d6(t,e){return WA(GA.statSync(t),e)}function WA(t,e){return t.isFile()&&p6(t,e)}function p6(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),f=a|c,h=r&l||r&c&&i===o||r&a&&n===s||r&f&&s===0;return h}});var ZA=m((aX,KA)=>{u();var oX=require("fs"),Su;process.platform==="win32"||global.TESTING_WINDOWS?Su=UA():Su=YA();KA.exports=cm;cm.sync=m6;function cm(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){cm(t,e||{},function(s,o){s?i(s):n(o)})})}Su(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function m6(t,e){try{return Su.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var nR=m((cX,rR)=>{u();var bs=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",JA=require("path"),g6=bs?";":":",XA=ZA(),QA=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),eR=(t,e)=>{let r=e.colon||g6,n=t.match(/\//)||bs&&t.match(/\\/)?[""]:[...bs?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=bs?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=bs?i.split(r):[""];return bs&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},tR=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=eR(t,e),o=[],a=l=>new Promise((f,h)=>{if(l===n.length)return e.all&&o.length?f(o):h(QA(t));let d=n[l],y=/^".*"$/.test(d)?d.slice(1,-1):d,g=JA.join(y,t),E=!y&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;f(c(E,l,0))}),c=(l,f,h)=>new Promise((d,y)=>{if(h===i.length)return d(a(f+1));let g=i[h];XA(l+g,{pathExt:s},(E,v)=>{if(!E&&v)if(e.all)o.push(l+g);else return d(l+g);return d(c(l,f,h+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},y6=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=eR(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=JA.join(c,t),f=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<n.length;h++){let d=f+n[h];try{if(XA.sync(d,{pathExt:i}))if(e.all)s.push(d);else return d}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw QA(t)};rR.exports=tR;tR.sync=y6});var lm=m((uX,um)=>{"use strict";u();var iR=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};um.exports=iR;um.exports.default=iR});var cR=m((lX,aR)=>{"use strict";u();var sR=require("path"),_6=nR(),v6=lm();function oR(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=_6.sync(t.command,{path:r[v6({env:r})],pathExt:e?sR.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=sR.resolve(i?t.options.cwd:"",o)),o}function b6(t){return oR(t)||oR(t,!0)}aR.exports=b6});var uR=m((fX,hm)=>{"use strict";u();var fm=/([()\][%!^"`<>&|;, *?])/g;function E6(t){return t=t.replace(fm,"^$1"),t}function w6(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(fm,"^$1"),e&&(t=t.replace(fm,"^$1")),t}hm.exports.command=E6;hm.exports.argument=w6});var fR=m((hX,lR)=>{"use strict";u();lR.exports=/^#!(.*)/});var dR=m((dX,hR)=>{"use strict";u();var x6=fR();hR.exports=(t="")=>{let e=t.match(x6);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var mR=m((pX,pR)=>{"use strict";u();var dm=require("fs"),S6=dR();function A6(t){let r=Buffer.alloc(150),n;try{n=dm.openSync(t,"r"),dm.readSync(n,r,0,150,0),dm.closeSync(n)}catch{}return S6(r.toString())}pR.exports=A6});var vR=m((mX,_R)=>{"use strict";u();var R6=require("path"),gR=cR(),yR=uR(),C6=mR(),O6=process.platform==="win32",T6=/\.(?:com|exe)$/i,k6=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function P6(t){t.file=gR(t);let e=t.file&&C6(t.file);return e?(t.args.unshift(t.file),t.command=e,gR(t)):t.file}function I6(t){if(!O6)return t;let e=P6(t),r=!T6.test(e);if(t.options.forceShell||r){let n=k6.test(e);t.command=R6.normalize(t.command),t.command=yR.command(t.command),t.args=t.args.map(s=>yR.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function L6(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:I6(n)}_R.exports=L6});var wR=m((gX,ER)=>{"use strict";u();var pm=process.platform==="win32";function mm(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function N6(t,e){if(!pm)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=bR(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function bR(t,e){return pm&&t===1&&!e.file?mm(e.original,"spawn"):null}function D6(t,e){return pm&&t===1&&!e.file?mm(e.original,"spawnSync"):null}ER.exports={hookChildProcess:N6,verifyENOENT:bR,verifyENOENTSync:D6,notFoundError:mm}});var AR=m((yX,Es)=>{"use strict";u();var xR=require("child_process"),gm=vR(),ym=wR();function SR(t,e,r){let n=gm(t,e,r),i=xR.spawn(n.command,n.args,n.options);return ym.hookChildProcess(i,n),i}function M6(t,e,r){let n=gm(t,e,r),i=xR.spawnSync(n.command,n.args,n.options);return i.error=i.error||ym.verifyENOENTSync(i.status,n),i}Es.exports=SR;Es.exports.spawn=SR;Es.exports.sync=M6;Es.exports._parse=gm;Es.exports._enoent=ym});var CR=m((_X,RR)=>{"use strict";u();RR.exports=t=>{let e=typeof t=="string"?`
46
46
  `:`
47
- `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var iD=m((sQ,wa)=>{"use strict";c();var ba=require("path"),rD=Mm(),nD=t=>{t={cwd:process.cwd(),path:process.env[rD()],execPath:process.execPath,...t};let e,r=ba.resolve(t.cwd),n=[];for(;e!==r;)n.push(ba.join(r,"node_modules/.bin")),e=r,r=ba.resolve(r,"..");let i=ba.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(ba.delimiter)};wa.exports=nD;wa.exports.default=nD;wa.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=rD({env:e});return t.path=e[r],e[r]=wa.exports(t),e}});var sD=m(Wc=>{"use strict";c();Object.defineProperty(Wc,"__esModule",{value:!0});Wc.SIGNALS=void 0;var E9=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Wc.SIGNALS=E9});var Wm=m(Ms=>{"use strict";c();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.SIGRTMAX=Ms.getRealtimeSignals=void 0;var b9=function(){let t=aD-oD+1;return Array.from({length:t},w9)};Ms.getRealtimeSignals=b9;var w9=function(t,e){return{name:`SIGRT${e+1}`,number:oD+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},oD=34,aD=64;Ms.SIGRTMAX=aD});var uD=m(zc=>{"use strict";c();Object.defineProperty(zc,"__esModule",{value:!0});zc.getSignals=void 0;var x9=require("os"),S9=sD(),A9=Wm(),C9=function(){let t=(0,A9.getRealtimeSignals)();return[...S9.SIGNALS,...t].map(D9)};zc.getSignals=C9;var D9=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=x9.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var lD=m(qs=>{"use strict";c();Object.defineProperty(qs,"__esModule",{value:!0});qs.signalsByNumber=qs.signalsByName=void 0;var R9=require("os"),cD=uD(),O9=Wm(),T9=function(){return(0,cD.getSignals)().reduce(k9,{})},k9=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},F9=T9();qs.signalsByName=F9;var P9=function(){let t=(0,cD.getSignals)(),e=O9.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>I9(i,t));return Object.assign({},...r)},I9=function(t,e){let r=B9(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:u}}},B9=function(t,e){let r=e.find(({name:n})=>R9.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},L9=P9();qs.signalsByNumber=L9});var hD=m((lQ,fD)=>{"use strict";c();var{signalsByName:N9}=lD(),M9=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",q9=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:l,killed:f,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let d=i===void 0?void 0:N9[i].description,g=n&&n.code,v=`Command ${M9({timedOut:u,timeout:h,errorCode:g,signal:i,signalDescription:d,exitCode:s,isCanceled:l})}: ${o}`,E=Object.prototype.toString.call(n)==="[object Error]",x=E?`${v}
48
- ${n.message}`:v,O=[x,e,t].filter(Boolean).join(`
49
- `);return E?(n.originalMessage=n.message,n.message=O):n=new Error(O),n.shortMessage=x,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(u),n.isCanceled=l,n.killed=f&&!u,n};fD.exports=q9});var pD=m((fQ,zm)=>{"use strict";c();var Yc=["stdin","stdout","stderr"],j9=t=>Yc.some(e=>t[e]!==void 0),dD=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Yc.map(n=>t[n]);if(j9(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Yc.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Yc.length);return Array.from({length:r},(n,i)=>e[i])};zm.exports=dD;zm.exports.node=t=>{let e=dD(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var gD=m((hQ,mD)=>{"use strict";c();var H9=require("os"),$9=Em(),U9=1e3*5,G9=(t,e="SIGTERM",r={})=>{let n=t(e);return V9(t,e,r,n),n},V9=(t,e,r,n)=>{if(!W9(e,r,n))return;let i=Y9(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},W9=(t,{forceKillAfterTimeout:e},r)=>z9(t)&&e!==!1&&r,z9=t=>t===H9.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Y9=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return U9;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},K9=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Z9=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},J9=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{Z9(t,r,u)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},X9=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Q9=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=$9(()=>{t.kill()});return n.finally(()=>{i()})};mD.exports={spawnedKill:G9,spawnedCancel:K9,setupTimeout:J9,validateTimeout:X9,setExitHandler:Q9}});var _D=m((dQ,yD)=>{"use strict";c();var Pr=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Pr.writable=t=>Pr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Pr.readable=t=>Pr(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Pr.duplex=t=>Pr.writable(t)&&Pr.readable(t);Pr.transform=t=>Pr.duplex(t)&&typeof t._transform=="function";yD.exports=Pr});var ED=m((pQ,vD)=>{"use strict";c();var{PassThrough:ej}=require("stream");vD.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new ej({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var bD=m((mQ,xa)=>{"use strict";c();var{constants:tj}=require("buffer"),rj=require("stream"),{promisify:nj}=require("util"),ij=ED(),sj=nj(rj.pipeline),Kc=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Ym(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=ij(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=tj.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await sj(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Kc)})}),n.getBufferedValue()}xa.exports=Ym;xa.exports.buffer=(t,e)=>Ym(t,{...e,encoding:"buffer"});xa.exports.array=(t,e)=>Ym(t,{...e,array:!0});xa.exports.MaxBufferError=Kc});var xD=m((gQ,wD)=>{"use strict";c();var{PassThrough:oj}=require("stream");wD.exports=function(){var t=[],e=new oj({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var DD=m((yQ,CD)=>{"use strict";c();var AD=_D(),SD=bD(),aj=xD(),uj=(t,e)=>{e===void 0||t.stdin===void 0||(AD(e)?e.pipe(t.stdin):t.stdin.end(e))},cj=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=aj();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Km=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Zm=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?SD(t,{encoding:e,maxBuffer:n}):SD.buffer(t,{maxBuffer:n})},lj=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=Zm(t,{encoding:n,buffer:i,maxBuffer:s}),u=Zm(e,{encoding:n,buffer:i,maxBuffer:s}),l=Zm(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,u,l])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},Km(t,a),Km(e,u),Km(r,l)])}},fj=({input:t})=>{if(AD(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};CD.exports={handleInput:uj,makeAllStream:cj,getSpawnedResult:lj,validateInputSync:fj}});var OD=m((_Q,RD)=>{"use strict";c();var hj=(async()=>{})().constructor.prototype,dj=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(hj,t)]),pj=(t,e)=>{for(let[r,n]of dj){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},mj=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});RD.exports={mergePromise:pj,getSpawnedPromise:mj}});var FD=m((vQ,kD)=>{"use strict";c();var TD=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],gj=/^[\w.-]+$/,yj=/"/g,_j=t=>typeof t!="string"||gj.test(t)?t:`"${t.replace(yj,'\\"')}"`,vj=(t,e)=>TD(t,e).join(" "),Ej=(t,e)=>TD(t,e).map(r=>_j(r)).join(" "),bj=/ +/g,wj=t=>{let e=[];for(let r of t.trim().split(bj)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};kD.exports={joinCommand:vj,getEscapedCommand:Ej,parseCommand:wj}});var qD=m((EQ,js)=>{"use strict";c();var xj=require("path"),Jm=require("child_process"),Sj=QC(),Aj=tD(),Cj=iD(),Dj=ym(),Zc=hD(),ID=pD(),{spawnedKill:Rj,spawnedCancel:Oj,setupTimeout:Tj,validateTimeout:kj,setExitHandler:Fj}=gD(),{handleInput:Pj,getSpawnedResult:Ij,makeAllStream:Bj,validateInputSync:Lj}=DD(),{mergePromise:PD,getSpawnedPromise:Nj}=OD(),{joinCommand:BD,parseCommand:LD,getEscapedCommand:ND}=FD(),Mj=1e3*1e3*100,qj=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?Cj.env({env:s,cwd:n,execPath:i}):s},MD=(t,e,r={})=>{let n=Sj._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:Mj,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=qj(r),r.stdio=ID(r),process.platform==="win32"&&xj.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Sa=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Aj(e):e,Jc=(t,e,r)=>{let n=MD(t,e,r),i=BD(t,e),s=ND(t,e);kj(n.options);let o;try{o=Jm.spawn(n.file,n.args,n.options)}catch(g){let y=new Jm.ChildProcess,v=Promise.reject(Zc({error:g,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return PD(y,v)}let a=Nj(o),u=Tj(o,n.options,a),l=Fj(o,n.options,u),f={isCanceled:!1};o.kill=Rj.bind(null,o.kill.bind(o)),o.cancel=Oj.bind(null,o,f);let d=Dj(async()=>{let[{error:g,exitCode:y,signal:v,timedOut:E},x,O,B]=await Ij(o,n.options,l),z=Sa(n.options,x),H=Sa(n.options,O),ie=Sa(n.options,B);if(g||y!==0||v!==null){let J=Zc({error:g,exitCode:y,signal:v,stdout:z,stderr:H,all:ie,command:i,escapedCommand:s,parsed:n,timedOut:E,isCanceled:f.isCanceled,killed:o.killed});if(!n.options.reject)return J;throw J}return{command:i,escapedCommand:s,exitCode:0,stdout:z,stderr:H,all:ie,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Pj(o,n.options.input),o.all=Bj(o,n.options),PD(o,d)};js.exports=Jc;js.exports.sync=(t,e,r)=>{let n=MD(t,e,r),i=BD(t,e),s=ND(t,e);Lj(n.options);let o;try{o=Jm.spawnSync(n.file,n.args,n.options)}catch(l){throw Zc({error:l,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Sa(n.options,o.stdout,o.error),u=Sa(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=Zc({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return l;throw l}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};js.exports.command=(t,e)=>{let[r,...n]=LD(t);return Jc(r,n,e)};js.exports.commandSync=(t,e)=>{let[r,...n]=LD(t);return Jc.sync(r,n,e)};js.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=ID.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return Jc(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Hs=m((AQ,$D)=>{"use strict";c();var HD=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);$D.exports=t=>t?Object.keys(t).map(e=>[HD.has(e)?HD.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var nl=m((CQ,JD)=>{"use strict";c();var UD=typeof process=="object"&&process?process:{stdout:null,stderr:null},Gj=require("events"),GD=require("stream"),VD=require("string_decoder").StringDecoder,on=Symbol("EOF"),an=Symbol("maybeEmitEnd"),Gn=Symbol("emittedEnd"),Xc=Symbol("emittingEnd"),Aa=Symbol("emittedError"),Qc=Symbol("closed"),WD=Symbol("read"),el=Symbol("flush"),zD=Symbol("flushChunk"),It=Symbol("encoding"),un=Symbol("decoder"),tl=Symbol("flowing"),Ca=Symbol("paused"),$s=Symbol("resume"),Ve=Symbol("buffer"),Ir=Symbol("pipes"),it=Symbol("bufferLength"),Xm=Symbol("bufferPush"),Qm=Symbol("bufferShift"),yt=Symbol("objectMode"),_t=Symbol("destroyed"),e0=Symbol("emitData"),YD=Symbol("emitEnd"),t0=Symbol("emitEnd2"),cn=Symbol("async"),Da=t=>Promise.resolve().then(t),KD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Vj=KD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Wj=KD&&Symbol.iterator||Symbol("iterator not implemented"),zj=t=>t==="end"||t==="finish"||t==="prefinish",Yj=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Kj=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),rl=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[$s](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},r0=class extends rl{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};JD.exports=class ZD extends GD{constructor(e){super(),this[tl]=!1,this[Ca]=!1,this[Ir]=[],this[Ve]=[],this[yt]=e&&e.objectMode||!1,this[yt]?this[It]=null:this[It]=e&&e.encoding||null,this[It]==="buffer"&&(this[It]=null),this[cn]=e&&!!e.async||!1,this[un]=this[It]?new VD(this[It]):null,this[on]=!1,this[Gn]=!1,this[Xc]=!1,this[Qc]=!1,this[Aa]=null,this.writable=!0,this.readable=!0,this[it]=0,this[_t]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ve]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ir]})}get bufferLength(){return this[it]}get encoding(){return this[It]}set encoding(e){if(this[yt])throw new Error("cannot set encoding in objectMode");if(this[It]&&e!==this[It]&&(this[un]&&this[un].lastNeed||this[it]))throw new Error("cannot change encoding");this[It]!==e&&(this[un]=e?new VD(e):null,this[Ve].length&&(this[Ve]=this[Ve].map(r=>this[un].write(r)))),this[It]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[yt]}set objectMode(e){this[yt]=this[yt]||!!e}get async(){return this[cn]}set async(e){this[cn]=this[cn]||!!e}write(e,r,n){if(this[on])throw new Error("write after end");if(this[_t])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[cn]?Da:s=>s();return!this[yt]&&!Buffer.isBuffer(e)&&(Kj(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Yj(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[yt]?(this.flowing&&this[it]!==0&&this[el](!0),this.flowing?this.emit("data",e):this[Xm](e),this[it]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[It]&&!this[un].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[It]&&(e=this[un].write(e)),this.flowing&&this[it]!==0&&this[el](!0),this.flowing?this.emit("data",e):this[Xm](e),this[it]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[it]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[_t])return null;if(this[it]===0||e===0||e>this[it])return this[an](),null;this[yt]&&(e=null),this[Ve].length>1&&!this[yt]&&(this.encoding?this[Ve]=[this[Ve].join("")]:this[Ve]=[Buffer.concat(this[Ve],this[it])]);let r=this[WD](e||null,this[Ve][0]);return this[an](),r}[WD](e,r){return e===r.length||e===null?this[Qm]():(this[Ve][0]=r.slice(e),r=r.slice(0,e),this[it]-=e),this.emit("data",r),!this[Ve].length&&!this[on]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[on]=!0,this.writable=!1,(this.flowing||!this[Ca])&&this[an](),this}[$s](){this[_t]||(this[Ca]=!1,this[tl]=!0,this.emit("resume"),this[Ve].length?this[el]():this[on]?this[an]():this.emit("drain"))}resume(){return this[$s]()}pause(){this[tl]=!1,this[Ca]=!0}get destroyed(){return this[_t]}get flowing(){return this[tl]}get paused(){return this[Ca]}[Xm](e){this[yt]?this[it]+=1:this[it]+=e.length,this[Ve].push(e)}[Qm](){return this[Ve].length&&(this[yt]?this[it]-=1:this[it]-=this[Ve][0].length),this[Ve].shift()}[el](e){do;while(this[zD](this[Qm]()));!e&&!this[Ve].length&&!this[on]&&this.emit("drain")}[zD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[_t])return;let n=this[Gn];return r=r||{},e===UD.stdout||e===UD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Ir].push(r.proxyErrors?new r0(this,e,r):new rl(this,e,r)),this[cn]?Da(()=>this[$s]()):this[$s]()),e}unpipe(e){let r=this[Ir].find(n=>n.dest===e);r&&(this[Ir].splice(this[Ir].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[Ir].length&&!this.flowing?this[$s]():e==="readable"&&this[it]!==0?super.emit("readable"):zj(e)&&this[Gn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Aa]&&(this[cn]?Da(()=>r.call(this,this[Aa])):r.call(this,this[Aa])),n}get emittedEnd(){return this[Gn]}[an](){!this[Xc]&&!this[Gn]&&!this[_t]&&this[Ve].length===0&&this[on]&&(this[Xc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Qc]&&this.emit("close"),this[Xc]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==_t&&this[_t])return;if(e==="data")return r?this[cn]?Da(()=>this[e0](r)):this[e0](r):!1;if(e==="end")return this[YD]();if(e==="close"){if(this[Qc]=!0,!this[Gn]&&!this[_t])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Aa]=r;let s=super.emit("error",r);return this[an](),s}else if(e==="resume"){let s=super.emit("resume");return this[an](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[an](),i}[e0](e){for(let n of this[Ir])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[an](),r}[YD](){this[Gn]||(this[Gn]=!0,this.readable=!1,this[cn]?Da(()=>this[t0]()):this[t0]())}[t0](){if(this[un]){let r=this[un].end();if(r){for(let n of this[Ir])n.dest.write(r);super.emit("data",r)}}for(let r of this[Ir])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[yt]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[yt]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[yt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[yt]?Promise.reject(new Error("cannot concat in objectMode")):this[It]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(_t,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Vj](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[on])return Promise.resolve({done:!0});let n=null,i=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),i(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:l,done:!!this[on]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((l,f)=>{i=f,n=l,this.once(_t,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[Wj](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[_t]?(e?this.emit("error",e):this.emit(_t),this):(this[_t]=!0,this[Ve].length=0,this[it]=0,typeof this.close=="function"&&!this[Qc]&&this.close(),e?this.emit("error",e):this.emit(_t),this)}static isStream(e){return!!e&&(e instanceof ZD||e instanceof GD||e instanceof Gj&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var QD=m((DQ,XD)=>{c();var Zj=require("zlib").constants||{ZLIB_VERNUM:4736};XD.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},Zj))});var u0=m((RQ,u2)=>{"use strict";c();var e2=typeof process=="object"&&process?process:{stdout:null,stderr:null},Jj=require("events"),t2=require("stream"),r2=require("string_decoder").StringDecoder,ln=Symbol("EOF"),fn=Symbol("maybeEmitEnd"),Vn=Symbol("emittedEnd"),il=Symbol("emittingEnd"),Ra=Symbol("emittedError"),sl=Symbol("closed"),n2=Symbol("read"),ol=Symbol("flush"),i2=Symbol("flushChunk"),Bt=Symbol("encoding"),hn=Symbol("decoder"),al=Symbol("flowing"),Oa=Symbol("paused"),Us=Symbol("resume"),st=Symbol("bufferLength"),n0=Symbol("bufferPush"),i0=Symbol("bufferShift"),vt=Symbol("objectMode"),Et=Symbol("destroyed"),s0=Symbol("emitData"),s2=Symbol("emitEnd"),o0=Symbol("emitEnd2"),dn=Symbol("async"),Ta=t=>Promise.resolve().then(t),o2=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Xj=o2&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Qj=o2&&Symbol.iterator||Symbol("iterator not implemented"),eH=t=>t==="end"||t==="finish"||t==="prefinish",tH=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,rH=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ul=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Us](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},a0=class extends ul{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};u2.exports=class a2 extends t2{constructor(e){super(),this[al]=!1,this[Oa]=!1,this.pipes=[],this.buffer=[],this[vt]=e&&e.objectMode||!1,this[vt]?this[Bt]=null:this[Bt]=e&&e.encoding||null,this[Bt]==="buffer"&&(this[Bt]=null),this[dn]=e&&!!e.async||!1,this[hn]=this[Bt]?new r2(this[Bt]):null,this[ln]=!1,this[Vn]=!1,this[il]=!1,this[sl]=!1,this[Ra]=null,this.writable=!0,this.readable=!0,this[st]=0,this[Et]=!1}get bufferLength(){return this[st]}get encoding(){return this[Bt]}set encoding(e){if(this[vt])throw new Error("cannot set encoding in objectMode");if(this[Bt]&&e!==this[Bt]&&(this[hn]&&this[hn].lastNeed||this[st]))throw new Error("cannot change encoding");this[Bt]!==e&&(this[hn]=e?new r2(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[hn].write(r)))),this[Bt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[vt]}set objectMode(e){this[vt]=this[vt]||!!e}get async(){return this[dn]}set async(e){this[dn]=this[dn]||!!e}write(e,r,n){if(this[ln])throw new Error("write after end");if(this[Et])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[dn]?Ta:s=>s();return!this[vt]&&!Buffer.isBuffer(e)&&(rH(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):tH(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[vt]?(this.flowing&&this[st]!==0&&this[ol](!0),this.flowing?this.emit("data",e):this[n0](e),this[st]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Bt]&&!this[hn].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Bt]&&(e=this[hn].write(e)),this.flowing&&this[st]!==0&&this[ol](!0),this.flowing?this.emit("data",e):this[n0](e),this[st]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[st]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[Et])return null;if(this[st]===0||e===0||e>this[st])return this[fn](),null;this[vt]&&(e=null),this.buffer.length>1&&!this[vt]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[st])]);let r=this[n2](e||null,this.buffer[0]);return this[fn](),r}[n2](e,r){return e===r.length||e===null?this[i0]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[st]-=e),this.emit("data",r),!this.buffer.length&&!this[ln]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[ln]=!0,this.writable=!1,(this.flowing||!this[Oa])&&this[fn](),this}[Us](){this[Et]||(this[Oa]=!1,this[al]=!0,this.emit("resume"),this.buffer.length?this[ol]():this[ln]?this[fn]():this.emit("drain"))}resume(){return this[Us]()}pause(){this[al]=!1,this[Oa]=!0}get destroyed(){return this[Et]}get flowing(){return this[al]}get paused(){return this[Oa]}[n0](e){this[vt]?this[st]+=1:this[st]+=e.length,this.buffer.push(e)}[i0](){return this.buffer.length&&(this[vt]?this[st]-=1:this[st]-=this.buffer[0].length),this.buffer.shift()}[ol](e){do;while(this[i2](this[i0]()));!e&&!this.buffer.length&&!this[ln]&&this.emit("drain")}[i2](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Et])return;let n=this[Vn];return r=r||{},e===e2.stdout||e===e2.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new a0(this,e,r):new ul(this,e,r)),this[dn]?Ta(()=>this[Us]()):this[Us]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Us]():e==="readable"&&this[st]!==0?super.emit("readable"):eH(e)&&this[Vn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ra]&&(this[dn]?Ta(()=>r.call(this,this[Ra])):r.call(this,this[Ra])),n}get emittedEnd(){return this[Vn]}[fn](){!this[il]&&!this[Vn]&&!this[Et]&&this.buffer.length===0&&this[ln]&&(this[il]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[sl]&&this.emit("close"),this[il]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==Et&&this[Et])return;if(e==="data")return r?this[dn]?Ta(()=>this[s0](r)):this[s0](r):!1;if(e==="end")return this[s2]();if(e==="close"){if(this[sl]=!0,!this[Vn]&&!this[Et])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ra]=r;let s=super.emit("error",r);return this[fn](),s}else if(e==="resume"){let s=super.emit("resume");return this[fn](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[fn](),i}[s0](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[fn](),r}[s2](){this[Vn]||(this[Vn]=!0,this.readable=!1,this[dn]?Ta(()=>this[o0]()):this[o0]())}[o0](){if(this[hn]){let r=this[hn].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[vt]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[vt]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[vt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[vt]?Promise.reject(new Error("cannot concat in objectMode")):this[Bt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Et,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[Xj](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[ln])return Promise.resolve({done:!0});let n=null,i=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),i(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:l,done:!!this[ln]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((l,f)=>{i=f,n=l,this.once(Et,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[Qj](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Et]?(e?this.emit("error",e):this.emit(Et),this):(this[Et]=!0,this.buffer.length=0,this[st]=0,typeof this.close=="function"&&!this[sl]&&this.close(),e?this.emit("error",e):this.emit(Et),this)}static isStream(e){return!!e&&(e instanceof a2||e instanceof t2||e instanceof Jj&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var S0=m(Ut=>{"use strict";c();var d0=require("assert"),Wn=require("buffer").Buffer,f2=require("zlib"),Di=Ut.constants=QD(),nH=u0(),c2=Wn.concat,Ri=Symbol("_superWrite"),Vs=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},iH=Symbol("opts"),ka=Symbol("flushFlag"),l2=Symbol("finishFlushFlag"),x0=Symbol("fullFlushFlag"),Re=Symbol("handle"),cl=Symbol("onError"),Gs=Symbol("sawError"),c0=Symbol("level"),l0=Symbol("strategy"),f0=Symbol("ended"),OQ=Symbol("_defaultFullFlush"),ll=class extends nH{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Gs]=!1,this[f0]=!1,this[iH]=e,this[ka]=e.flush,this[l2]=e.finishFlush;try{this[Re]=new f2[r](e)}catch(n){throw new Vs(n)}this[cl]=n=>{this[Gs]||(this[Gs]=!0,this.close(),this.emit("error",n))},this[Re].on("error",n=>this[cl](new Vs(n))),this.once("end",()=>this.close)}close(){this[Re]&&(this[Re].close(),this[Re]=null,this.emit("close"))}reset(){if(!this[Gs])return d0(this[Re],"zlib binding closed"),this[Re].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[x0]),this.write(Object.assign(Wn.alloc(0),{[ka]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[l2]),this[f0]=!0,super.end(null,null,n)}get ended(){return this[f0]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=Wn.from(e,r)),this[Gs])return;d0(this[Re],"zlib binding closed");let i=this[Re]._handle,s=i.close;i.close=()=>{};let o=this[Re].close;this[Re].close=()=>{},Wn.concat=l=>l;let a;try{let l=typeof e[ka]=="number"?e[ka]:this[ka];a=this[Re]._processChunk(e,l),Wn.concat=c2}catch(l){Wn.concat=c2,this[cl](new Vs(l))}finally{this[Re]&&(this[Re]._handle=i,i.close=s,this[Re].close=o,this[Re].removeAllListeners("error"))}this[Re]&&this[Re].on("error",l=>this[cl](new Vs(l)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[Ri](Wn.from(a[0]));for(let l=1;l<a.length;l++)u=this[Ri](a[l])}else u=this[Ri](Wn.from(a));return n&&n(),u}[Ri](e){return super.write(e)}},pn=class extends ll{constructor(e,r){e=e||{},e.flush=e.flush||Di.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Di.Z_FINISH,super(e,r),this[x0]=Di.Z_FULL_FLUSH,this[c0]=e.level,this[l0]=e.strategy}params(e,r){if(!this[Gs]){if(!this[Re])throw new Error("cannot switch params when binding is closed");if(!this[Re].params)throw new Error("not supported in this implementation");if(this[c0]!==e||this[l0]!==r){this.flush(Di.Z_SYNC_FLUSH),d0(this[Re],"zlib binding closed");let n=this[Re].flush;this[Re].flush=(i,s)=>{this.flush(i),s()};try{this[Re].params(e,r)}finally{this[Re].flush=n}this[Re]&&(this[c0]=e,this[l0]=r)}}}},p0=class extends pn{constructor(e){super(e,"Deflate")}},m0=class extends pn{constructor(e){super(e,"Inflate")}},h0=Symbol("_portable"),g0=class extends pn{constructor(e){super(e,"Gzip"),this[h0]=e&&!!e.portable}[Ri](e){return this[h0]?(this[h0]=!1,e[9]=255,super[Ri](e)):super[Ri](e)}},y0=class extends pn{constructor(e){super(e,"Gunzip")}},_0=class extends pn{constructor(e){super(e,"DeflateRaw")}},v0=class extends pn{constructor(e){super(e,"InflateRaw")}},E0=class extends pn{constructor(e){super(e,"Unzip")}},fl=class extends ll{constructor(e,r){e=e||{},e.flush=e.flush||Di.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Di.BROTLI_OPERATION_FINISH,super(e,r),this[x0]=Di.BROTLI_OPERATION_FLUSH}},b0=class extends fl{constructor(e){super(e,"BrotliCompress")}},w0=class extends fl{constructor(e){super(e,"BrotliDecompress")}};Ut.Deflate=p0;Ut.Inflate=m0;Ut.Gzip=g0;Ut.Gunzip=y0;Ut.DeflateRaw=_0;Ut.InflateRaw=v0;Ut.Unzip=E0;typeof f2.BrotliCompress=="function"?(Ut.BrotliCompress=b0,Ut.BrotliDecompress=w0):Ut.BrotliCompress=Ut.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ws=m((FQ,h2)=>{c();var sH=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;h2.exports=sH!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var hl=m((IQ,d2)=>{"use strict";c();var oH=nl(),A0=Ws(),C0=Symbol("slurp");d2.exports=class extends oH{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=A0(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=A0(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[C0](r),n&&this[C0](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[C0](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?A0(e[n]):e[n])}}});var D0=m(dl=>{"use strict";c();dl.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);dl.code=new Map(Array.from(dl.name).map(t=>[t[1],t[0]]))});var y2=m((LQ,g2)=>{"use strict";c();var aH=(t,e)=>{if(Number.isSafeInteger(t))t<0?cH(t,e):uH(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},uH=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},cH=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=p2(i):i===0?e[n-1]=0:(r=!0,e[n-1]=m2(i))}},lH=t=>{let e=t[0],r=e===128?hH(t.slice(1,t.length)):e===255?fH(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},fH=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=p2(s):s===0?o=s:(n=!0,o=m2(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},hH=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},p2=t=>(255^t)&255,m2=t=>(255^t)+1&255;g2.exports={encode:aH,parse:lH}});var Ys=m((NQ,v2)=>{"use strict";c();var R0=D0(),zs=require("path").posix,_2=y2(),O0=Symbol("slurp"),Gt=Symbol("type"),F0=class{constructor(e,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Gt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=Oi(e,r,100),this.mode=zn(e,r+100,8),this.uid=zn(e,r+108,8),this.gid=zn(e,r+116,8),this.size=zn(e,r+124,12),this.mtime=T0(e,r+136,12),this.cksum=zn(e,r+148,12),this[O0](n),this[O0](i,!0),this[Gt]=Oi(e,r+156,1),this[Gt]===""&&(this[Gt]="0"),this[Gt]==="0"&&this.path.slice(-1)==="/"&&(this[Gt]="5"),this[Gt]==="5"&&(this.size=0),this.linkpath=Oi(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Oi(e,r+265,32),this.gname=Oi(e,r+297,32),this.devmaj=zn(e,r+329,8),this.devmin=zn(e,r+337,8),e[r+475]!==0){let o=Oi(e,r+345,155);this.path=o+"/"+this.path}else{let o=Oi(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=T0(e,r+476,12),this.ctime=T0(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[O0](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=dH(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=Ti(e,r,100,s)||this.needPax,this.needPax=Yn(e,r+100,8,this.mode)||this.needPax,this.needPax=Yn(e,r+108,8,this.uid)||this.needPax,this.needPax=Yn(e,r+116,8,this.gid)||this.needPax,this.needPax=Yn(e,r+124,12,this.size)||this.needPax,this.needPax=k0(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Gt].charCodeAt(0),this.needPax=Ti(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Ti(e,r+265,32,this.uname)||this.needPax,this.needPax=Ti(e,r+297,32,this.gname)||this.needPax,this.needPax=Yn(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Yn(e,r+337,8,this.devmin)||this.needPax,this.needPax=Ti(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=Ti(e,r+345,155,o)||this.needPax:(this.needPax=Ti(e,r+345,130,o)||this.needPax,this.needPax=k0(e,r+476,12,this.atime)||this.needPax,this.needPax=k0(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=e[u];for(let u=r+156;u<r+512;u++)a+=e[u];return this.cksum=a,Yn(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return R0.name.get(this[Gt])||this[Gt]}get typeKey(){return this[Gt]}set type(e){R0.code.has(e)?this[Gt]=R0.code.get(e):this[Gt]=e}},dH=(t,e)=>{let n=t,i="",s,o=zs.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=zs.dirname(n),n=zs.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=zs.join(zs.basename(i),n),i=zs.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Oi=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),T0=(t,e,r)=>pH(zn(t,e,r)),pH=t=>t===null?null:new Date(t*1e3),zn=(t,e,r)=>t[e]&128?_2.parse(t.slice(e,e+r)):gH(t,e,r),mH=t=>isNaN(t)?null:t,gH=(t,e,r)=>mH(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),yH={12:8589934591,8:2097151},Yn=(t,e,r,n)=>n===null?!1:n>yH[r]||n<0?(_2.encode(n,t.slice(e,e+r)),!0):(_H(t,e,r,n),!1),_H=(t,e,r,n)=>t.write(vH(n,r),e,r,"ascii"),vH=(t,e)=>EH(Math.floor(t).toString(8),e),EH=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",k0=(t,e,r,n)=>n===null?!1:Yn(t,e,r,n.getTime()/1e3),bH=new Array(156).join("\0"),Ti=(t,e,r,n)=>n===null?!1:(t.write(n+bH,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);v2.exports=F0});var pl=m((MQ,E2)=>{"use strict";c();var wH=Ys(),xH=require("path"),Fa=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new wH({path:("PaxHeader/"+xH.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
50
- `,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};Fa.parse=(t,e,r)=>new Fa(SH(AH(t),e),r);var SH=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,AH=t=>t.replace(/\n$/,"").split(`
51
- `).reduce(CH,Object.create(null)),CH=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};E2.exports=Fa});var Ks=m((qQ,b2)=>{c();b2.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var ml=m((jQ,w2)=>{"use strict";c();w2.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var I0=m(($Q,x2)=>{"use strict";c();var gl=["|","<",">","?",":"],P0=gl.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),DH=new Map(gl.map((t,e)=>[t,P0[e]])),RH=new Map(P0.map((t,e)=>[t,gl[e]]));x2.exports={encode:t=>gl.reduce((e,r)=>e.split(r).join(DH.get(r)),t),decode:t=>P0.reduce((e,r)=>e.split(r).join(RH.get(r)),t)}});var B0=m((UQ,A2)=>{c();var{isAbsolute:OH,parse:S2}=require("path").win32;A2.exports=t=>{let e="",r=S2(t);for(;OH(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=S2(t)}return[e,t]}});var D2=m((GQ,C2)=>{"use strict";c();C2.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var V0=m((zQ,H2)=>{"use strict";c();var I2=nl(),B2=pl(),L2=Ys(),Lr=require("fs"),R2=require("path"),Br=Ws(),TH=Ks(),N2=(t,e)=>e?(t=Br(t).replace(/^\.(\/|$)/,""),TH(e)+"/"+t):Br(t),kH=16*1024*1024,O2=Symbol("process"),T2=Symbol("file"),k2=Symbol("directory"),N0=Symbol("symlink"),F2=Symbol("hardlink"),Pa=Symbol("header"),yl=Symbol("read"),M0=Symbol("lstat"),_l=Symbol("onlstat"),q0=Symbol("onread"),j0=Symbol("onreadlink"),H0=Symbol("openfile"),$0=Symbol("onopenfile"),Kn=Symbol("close"),vl=Symbol("mode"),U0=Symbol("awaitDrain"),L0=Symbol("ondrain"),Nr=Symbol("prefix"),P2=Symbol("hadError"),M2=ml(),FH=I0(),q2=B0(),j2=D2(),El=M2(class extends I2{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Br(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||kH,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Br(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Br(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=q2(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=FH.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Br(r.absolute||R2.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[_l](this.statCache.get(this.absolute)):this[M0]()}emit(e,...r){return e==="error"&&(this[P2]=!0),super.emit(e,...r)}[M0](){Lr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[_l](r)})}[_l](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=IH(e),this.emit("stat",e),this[O2]()}[O2](){switch(this.type){case"File":return this[T2]();case"Directory":return this[k2]();case"SymbolicLink":return this[N0]();default:return this.end()}}[vl](e){return j2(e,this.type==="Directory",this.portable)}[Nr](e){return N2(e,this.prefix)}[Pa](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new L2({path:this[Nr](this.path),linkpath:this.type==="Link"?this[Nr](this.linkpath):this.linkpath,mode:this[vl](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new B2({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Nr](this.path),linkpath:this.type==="Link"?this[Nr](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[k2](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Pa](),this.end()}[N0](){Lr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[j0](r)})}[j0](e){this.linkpath=Br(e),this[Pa](),this.end()}[F2](e){this.type="Link",this.linkpath=Br(R2.relative(this.cwd,e)),this.stat.size=0,this[Pa](),this.end()}[T2](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[F2](r)}this.linkCache.set(e,this.absolute)}if(this[Pa](),this.stat.size===0)return this.end();this[H0]()}[H0](){Lr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[$0](r)})}[$0](e){if(this.fd=e,this[P2])return this[Kn]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[yl]()}[yl](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Lr.read(e,r,n,i,s,(o,a)=>{if(o)return this[Kn](()=>this.emit("error",o));this[q0](a)})}[Kn](e){Lr.close(this.fd,e)}[q0](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Kn](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Kn](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[L0]():this[U0](()=>this[L0]())}[U0](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[L0](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Kn](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[yl]()}}),G0=class extends El{[M0](){this[_l](Lr.lstatSync(this.absolute))}[N0](){this[j0](Lr.readlinkSync(this.absolute))}[H0](){this[$0](Lr.openSync(this.absolute,"r"))}[yl](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Lr.readSync(r,n,i,s,o);this[q0](a),e=!1}finally{if(e)try{this[Kn](()=>{})}catch{}}}[U0](e){e()}[Kn](e){Lr.closeSync(this.fd),e()}},PH=M2(class extends I2{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Br(e.path),this.mode=this[vl](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Br(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=q2(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new L2({path:this[Nr](this.path),linkpath:this.type==="Link"?this[Nr](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new B2({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Nr](this.path),linkpath:this.type==="Link"?this[Nr](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Nr](e){return N2(e,this.prefix)}[vl](e){return j2(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});El.Sync=G0;El.Tar=PH;var IH=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";H2.exports=El});var U2=m((YQ,$2)=>{"use strict";c();$2.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var W0=m((KQ,G2)=>{"use strict";c();G2.exports=ge;ge.Node=ki;ge.create=ge;function ge(t){var e=this;if(e instanceof ge||(e=new ge),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}ge.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};ge.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};ge.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};ge.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)LH(this,arguments[t]);return this.length};ge.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)NH(this,arguments[t]);return this.length};ge.prototype.pop=function(){if(!!this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};ge.prototype.shift=function(){if(!!this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};ge.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};ge.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};ge.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};ge.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};ge.prototype.map=function(t,e){e=e||this;for(var r=new ge,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};ge.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ge,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};ge.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};ge.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};ge.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};ge.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};ge.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};ge.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ge;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};ge.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=BH(this,i,r[n]);return s};ge.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function BH(t,e,r){var n=e===t.head?new ki(r,null,e,t):new ki(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function LH(t,e){t.tail=new ki(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function NH(t,e){t.head=new ki(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function ki(t,e,r,n){if(!(this instanceof ki))return new ki(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{U2()(ge)}catch{}});var Ol=m((JQ,J2)=>{"use strict";c();var Dl=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},MH=nl(),qH=S0(),jH=hl(),tg=V0(),HH=tg.Sync,$H=tg.Tar,UH=W0(),V2=Buffer.alloc(1024),xl=Symbol("onStat"),bl=Symbol("ended"),Mr=Symbol("queue"),Zs=Symbol("current"),Fi=Symbol("process"),wl=Symbol("processing"),W2=Symbol("processJob"),qr=Symbol("jobs"),z0=Symbol("jobDone"),Sl=Symbol("addFSEntry"),z2=Symbol("addTarEntry"),J0=Symbol("stat"),X0=Symbol("readdir"),Al=Symbol("onreaddir"),Cl=Symbol("pipe"),Y2=Symbol("entry"),Y0=Symbol("entryOpt"),Q0=Symbol("writeEntryClass"),Z2=Symbol("write"),K0=Symbol("ondrain"),Rl=require("fs"),K2=require("path"),GH=ml(),Z0=Ws(),rg=GH(class extends MH{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Z0(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Q0]=tg,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new qH.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[K0]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[K0]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Mr]=new UH,this[qr]=0,this.jobs=+e.jobs||4,this[wl]=!1,this[bl]=!1}[Z2](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[bl]=!0,this[Fi](),this}write(e){if(this[bl])throw new Error("write after end");return e instanceof jH?this[z2](e):this[Sl](e),this.flowing}[z2](e){let r=Z0(K2.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Dl(e.path,r,!1);n.entry=new $H(e,this[Y0](n)),n.entry.on("end",i=>this[z0](n)),this[qr]+=1,this[Mr].push(n)}this[Fi]()}[Sl](e){let r=Z0(K2.resolve(this.cwd,e));this[Mr].push(new Dl(e,r)),this[Fi]()}[J0](e){e.pending=!0,this[qr]+=1;let r=this.follow?"stat":"lstat";Rl[r](e.absolute,(n,i)=>{e.pending=!1,this[qr]-=1,n?this.emit("error",n):this[xl](e,i)})}[xl](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Fi]()}[X0](e){e.pending=!0,this[qr]+=1,Rl.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[qr]-=1,r)return this.emit("error",r);this[Al](e,n)})}[Al](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Fi]()}[Fi](){if(!this[wl]){this[wl]=!0;for(let e=this[Mr].head;e!==null&&this[qr]<this.jobs;e=e.next)if(this[W2](e.value),e.value.ignore){let r=e.next;this[Mr].removeNode(e),e.next=r}this[wl]=!1,this[bl]&&!this[Mr].length&&this[qr]===0&&(this.zip?this.zip.end(V2):(super.write(V2),super.end()))}}get[Zs](){return this[Mr]&&this[Mr].head&&this[Mr].head.value}[z0](e){this[Mr].shift(),this[qr]-=1,this[Fi]()}[W2](e){if(!e.pending){if(e.entry){e===this[Zs]&&!e.piped&&this[Cl](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[xl](e,this.statCache.get(e.absolute)):this[J0](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Al](e,this.readdirCache.get(e.absolute)):this[X0](e),!e.readdir))){if(e.entry=this[Y2](e),!e.entry){e.ignore=!0;return}e===this[Zs]&&!e.piped&&this[Cl](e)}}}[Y0](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[Y2](e){this[qr]+=1;try{return new this[Q0](e.path,this[Y0](e)).on("end",()=>this[z0](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[K0](){this[Zs]&&this[Zs].entry&&this[Zs].entry.resume()}[Cl](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Sl](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),eg=class extends rg{constructor(e){super(e),this[Q0]=HH}pause(){}resume(){}[J0](e){let r=this.follow?"statSync":"lstatSync";this[xl](e,Rl[r](e.absolute))}[X0](e,r){this[Al](e,Rl.readdirSync(e.absolute))}[Cl](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Sl](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[Z2](i)})}};rg.Sync=eg;J2.exports=rg});var io=m(Ba=>{"use strict";c();var VH=u0(),WH=require("events").EventEmitter,Lt=require("fs"),sg=Lt.writev;if(!sg){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;sg=(r,n,i,s)=>{let o=(u,l)=>s(u,l,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var ro=Symbol("_autoClose"),vr=Symbol("_close"),Ia=Symbol("_ended"),Se=Symbol("_fd"),X2=Symbol("_finished"),Jn=Symbol("_flags"),ng=Symbol("_flush"),og=Symbol("_handleChunk"),ag=Symbol("_makeBuf"),Il=Symbol("_mode"),Tl=Symbol("_needDrain"),eo=Symbol("_onerror"),no=Symbol("_onopen"),ig=Symbol("_onread"),Xs=Symbol("_onwrite"),Xn=Symbol("_open"),mn=Symbol("_path"),Pi=Symbol("_pos"),jr=Symbol("_queue"),Qs=Symbol("_read"),Q2=Symbol("_readSize"),Zn=Symbol("_reading"),kl=Symbol("_remain"),eR=Symbol("_size"),Fl=Symbol("_write"),Js=Symbol("_writing"),Pl=Symbol("_defaultFlag"),to=Symbol("_errored"),Bl=class extends VH{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[to]=!1,this[Se]=typeof r.fd=="number"?r.fd:null,this[mn]=e,this[Q2]=r.readSize||16*1024*1024,this[Zn]=!1,this[eR]=typeof r.size=="number"?r.size:1/0,this[kl]=this[eR],this[ro]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Se]=="number"?this[Qs]():this[Xn]()}get fd(){return this[Se]}get path(){return this[mn]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Xn](){Lt.open(this[mn],"r",(e,r)=>this[no](e,r))}[no](e,r){e?this[eo](e):(this[Se]=r,this.emit("open",r),this[Qs]())}[ag](){return Buffer.allocUnsafe(Math.min(this[Q2],this[kl]))}[Qs](){if(!this[Zn]){this[Zn]=!0;let e=this[ag]();if(e.length===0)return process.nextTick(()=>this[ig](null,0,e));Lt.read(this[Se],e,0,e.length,null,(r,n,i)=>this[ig](r,n,i))}}[ig](e,r,n){this[Zn]=!1,e?this[eo](e):this[og](r,n)&&this[Qs]()}[vr](){if(this[ro]&&typeof this[Se]=="number"){let e=this[Se];this[Se]=null,Lt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[eo](e){this[Zn]=!0,this[vr](),this.emit("error",e)}[og](e,r){let n=!1;return this[kl]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[kl]<=0)&&(n=!1,this[vr](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Se]=="number"&&this[Qs]();break;case"error":return this[to]?void 0:(this[to]=!0,super.emit(e,r));default:return super.emit(e,r)}}},ug=class extends Bl{[Xn](){let e=!0;try{this[no](null,Lt.openSync(this[mn],"r")),e=!1}finally{e&&this[vr]()}}[Qs](){let e=!0;try{if(!this[Zn]){this[Zn]=!0;do{let r=this[ag](),n=r.length===0?0:Lt.readSync(this[Se],r,0,r.length,null);if(!this[og](n,r))break}while(!0);this[Zn]=!1}e=!1}finally{e&&this[vr]()}}[vr](){if(this[ro]&&typeof this[Se]=="number"){let e=this[Se];this[Se]=null,Lt.closeSync(e),this.emit("close")}}},Ll=class extends WH{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[to]=!1,this[Js]=!1,this[Ia]=!1,this[Tl]=!1,this[jr]=[],this[mn]=e,this[Se]=typeof r.fd=="number"?r.fd:null,this[Il]=r.mode===void 0?438:r.mode,this[Pi]=typeof r.start=="number"?r.start:null,this[ro]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[Pi]!==null?"r+":"w";this[Pl]=r.flags===void 0,this[Jn]=this[Pl]?n:r.flags,this[Se]===null&&this[Xn]()}emit(e,r){if(e==="error"){if(this[to])return;this[to]=!0}return super.emit(e,r)}get fd(){return this[Se]}get path(){return this[mn]}[eo](e){this[vr](),this[Js]=!0,this.emit("error",e)}[Xn](){Lt.open(this[mn],this[Jn],this[Il],(e,r)=>this[no](e,r))}[no](e,r){this[Pl]&&this[Jn]==="r+"&&e&&e.code==="ENOENT"?(this[Jn]="w",this[Xn]()):e?this[eo](e):(this[Se]=r,this.emit("open",r),this[ng]())}end(e,r){return e&&this.write(e,r),this[Ia]=!0,!this[Js]&&!this[jr].length&&typeof this[Se]=="number"&&this[Xs](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Ia]?(this.emit("error",new Error("write() after end()")),!1):this[Se]===null||this[Js]||this[jr].length?(this[jr].push(e),this[Tl]=!0,!1):(this[Js]=!0,this[Fl](e),!0)}[Fl](e){Lt.write(this[Se],e,0,e.length,this[Pi],(r,n)=>this[Xs](r,n))}[Xs](e,r){e?this[eo](e):(this[Pi]!==null&&(this[Pi]+=r),this[jr].length?this[ng]():(this[Js]=!1,this[Ia]&&!this[X2]?(this[X2]=!0,this[vr](),this.emit("finish")):this[Tl]&&(this[Tl]=!1,this.emit("drain"))))}[ng](){if(this[jr].length===0)this[Ia]&&this[Xs](null,0);else if(this[jr].length===1)this[Fl](this[jr].pop());else{let e=this[jr];this[jr]=[],sg(this[Se],e,this[Pi],(r,n)=>this[Xs](r,n))}}[vr](){if(this[ro]&&typeof this[Se]=="number"){let e=this[Se];this[Se]=null,Lt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},cg=class extends Ll{[Xn](){let e;if(this[Pl]&&this[Jn]==="r+")try{e=Lt.openSync(this[mn],this[Jn],this[Il])}catch(r){if(r.code==="ENOENT")return this[Jn]="w",this[Xn]();throw r}else e=Lt.openSync(this[mn],this[Jn],this[Il]);this[no](null,e)}[vr](){if(this[ro]&&typeof this[Se]=="number"){let e=this[Se];this[Se]=null,Lt.closeSync(e),this.emit("close")}}[Fl](e){let r=!0;try{this[Xs](null,Lt.writeSync(this[Se],e,0,e.length,this[Pi])),r=!1}finally{if(r)try{this[vr]()}catch{}}}};Ba.ReadStream=Bl;Ba.ReadStreamSync=ug;Ba.WriteStream=Ll;Ba.WriteStreamSync=cg});var Ul=m((eee,uR)=>{"use strict";c();var zH=ml(),YH=Ys(),KH=require("events"),ZH=W0(),JH=1024*1024,XH=hl(),tR=pl(),QH=S0(),{nextTick:e7}=require("process"),lg=Buffer.from([31,139]),ir=Symbol("state"),Ii=Symbol("writeEntry"),gn=Symbol("readEntry"),fg=Symbol("nextEntry"),rR=Symbol("processEntry"),sr=Symbol("extendedHeader"),La=Symbol("globalExtendedHeader"),Qn=Symbol("meta"),nR=Symbol("emitMeta"),ke=Symbol("buffer"),yn=Symbol("queue"),Bi=Symbol("ended"),iR=Symbol("emittedEnd"),Li=Symbol("emit"),Nt=Symbol("unzip"),Nl=Symbol("consumeChunk"),Ml=Symbol("consumeChunkSub"),hg=Symbol("consumeBody"),sR=Symbol("consumeMeta"),oR=Symbol("consumeHeader"),ql=Symbol("consuming"),dg=Symbol("bufferConcat"),pg=Symbol("maybeEnd"),Na=Symbol("writing"),ei=Symbol("aborted"),jl=Symbol("onDone"),Ni=Symbol("sawValidEntry"),Hl=Symbol("sawNullBlock"),$l=Symbol("sawEOF"),aR=Symbol("closeStream"),t7=t=>!0;uR.exports=zH(class extends KH{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Ni]=null,this.on(jl,r=>{(this[ir]==="begin"||this[Ni]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(jl,e.ondone):this.on(jl,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||JH,this.filter=typeof e.filter=="function"?e.filter:t7,this.writable=!0,this.readable=!1,this[yn]=new ZH,this[ke]=null,this[gn]=null,this[Ii]=null,this[ir]="begin",this[Qn]="",this[sr]=null,this[La]=null,this[Bi]=!1,this[Nt]=null,this[ei]=!1,this[Hl]=!1,this[$l]=!1,this.on("end",()=>this[aR]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[oR](e,r){this[Ni]===null&&(this[Ni]=!1);let n;try{n=new YH(e,r,this[sr],this[La])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Hl]?(this[$l]=!0,this[ir]==="begin"&&(this[ir]="header"),this[Li]("eof")):(this[Hl]=!0,this[Li]("nullBlock"));else if(this[Hl]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[Ii]=new XH(n,this[sr],this[La]);if(!this[Ni])if(s.remain){let o=()=>{s.invalid||(this[Ni]=!0)};s.on("end",o)}else this[Ni]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Li]("ignoredEntry",s),this[ir]="ignore",s.resume()):s.size>0&&(this[Qn]="",s.on("data",o=>this[Qn]+=o),this[ir]="meta"):(this[sr]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Li]("ignoredEntry",s),this[ir]=s.remain?"ignore":"header",s.resume()):(s.remain?this[ir]="body":(this[ir]="header",s.end()),this[gn]?this[yn].push(s):(this[yn].push(s),this[fg]())))}}}[aR](){e7(()=>this.emit("close"))}[rR](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[gn]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[fg]()),r=!1)):(this[gn]=null,r=!1),r}[fg](){do;while(this[rR](this[yn].shift()));if(!this[yn].length){let e=this[gn];!e||e.flowing||e.size===e.remain?this[Na]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[hg](e,r){let n=this[Ii],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[ir]="header",this[Ii]=null,n.end()),s.length}[sR](e,r){let n=this[Ii],i=this[hg](e,r);return this[Ii]||this[nR](n),i}[Li](e,r,n){!this[yn].length&&!this[gn]?this.emit(e,r,n):this[yn].push([e,r,n])}[nR](e){switch(this[Li]("meta",this[Qn]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[sr]=tR.parse(this[Qn],this[sr],!1);break;case"GlobalExtendedHeader":this[La]=tR.parse(this[Qn],this[La],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[sr]=this[sr]||Object.create(null),this[sr].path=this[Qn].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[sr]=this[sr]||Object.create(null),this[sr].linkpath=this[Qn].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[ei]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[ei])return;if(this[Nt]===null&&e){if(this[ke]&&(e=Buffer.concat([this[ke],e]),this[ke]=null),e.length<lg.length)return this[ke]=e,!0;for(let n=0;this[Nt]===null&&n<lg.length;n++)e[n]!==lg[n]&&(this[Nt]=!1);if(this[Nt]===null){let n=this[Bi];this[Bi]=!1,this[Nt]=new QH.Unzip,this[Nt].on("data",s=>this[Nl](s)),this[Nt].on("error",s=>this.abort(s)),this[Nt].on("end",s=>{this[Bi]=!0,this[Nl]()}),this[Na]=!0;let i=this[Nt][n?"end":"write"](e);return this[Na]=!1,i}}this[Na]=!0,this[Nt]?this[Nt].write(e):this[Nl](e),this[Na]=!1;let r=this[yn].length?!1:this[gn]?this[gn].flowing:!0;return!r&&!this[yn].length&&this[gn].once("drain",n=>this.emit("drain")),r}[dg](e){e&&!this[ei]&&(this[ke]=this[ke]?Buffer.concat([this[ke],e]):e)}[pg](){if(this[Bi]&&!this[iR]&&!this[ei]&&!this[ql]){this[iR]=!0;let e=this[Ii];if(e&&e.blockRemain){let r=this[ke]?this[ke].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[ke]&&e.write(this[ke]),e.end()}this[Li](jl)}}[Nl](e){if(this[ql])this[dg](e);else if(!e&&!this[ke])this[pg]();else{if(this[ql]=!0,this[ke]){this[dg](e);let r=this[ke];this[ke]=null,this[Ml](r)}else this[Ml](e);for(;this[ke]&&this[ke].length>=512&&!this[ei]&&!this[$l];){let r=this[ke];this[ke]=null,this[Ml](r)}this[ql]=!1}(!this[ke]||this[Bi])&&this[pg]()}[Ml](e){let r=0,n=e.length;for(;r+512<=n&&!this[ei]&&!this[$l];)switch(this[ir]){case"begin":case"header":this[oR](e,r),r+=512;break;case"ignore":case"body":r+=this[hg](e,r);break;case"meta":r+=this[sR](e,r);break;default:throw new Error("invalid state: "+this[ir])}r<n&&(this[ke]?this[ke]=Buffer.concat([e.slice(r),this[ke]]):this[ke]=e.slice(r))}end(e){this[ei]||(this[Nt]?this[Nt].end(e):(this[Bi]=!0,this.write(e)))}})});var Gl=m((tee,hR)=>{"use strict";c();var r7=Hs(),lR=Ul(),so=require("fs"),n7=io(),cR=require("path"),mg=Ks();hR.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=r7(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&s7(n,e),n.noResume||i7(n),n.file&&n.sync?o7(n):n.file?a7(n,r):fR(n)};var i7=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},s7=(t,e)=>{let r=new Map(e.map(s=>[mg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||cR.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(cR.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(mg(s)):s=>i(mg(s))},o7=t=>{let e=fR(t),r=t.file,n=!0,i;try{let s=so.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(so.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=so.openSync(r,"r");a<s.size;){let l=so.readSync(i,u,0,o,a);a+=l,e.write(u.slice(0,l))}e.end()}n=!1}finally{if(n&&i)try{so.closeSync(i)}catch{}}},a7=(t,e)=>{let r=new lR(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),so.stat(i,(u,l)=>{if(u)a(u);else{let f=new n7.ReadStream(i,{readSize:n,size:l.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},fR=t=>new lR(t)});var _R=m((ree,yR)=>{"use strict";c();var u7=Hs(),Vl=Ol(),dR=io(),pR=Gl(),mR=require("path");yR.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=u7(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?c7(n,e):n.file?l7(n,e,r):n.sync?f7(n,e):h7(n,e)};var c7=(t,e)=>{let r=new Vl.Sync(t),n=new dR.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),gR(r,e)},l7=(t,e,r)=>{let n=new Vl(t),i=new dR.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return gg(n,e),r?s.then(r,r):s},gR=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?pR({file:mR.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},gg=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return pR({file:mR.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>gg(t,e));t.add(r)}t.end()},f7=(t,e)=>{let r=new Vl.Sync(t);return gR(r,e),r},h7=(t,e)=>{let r=new Vl(t);return gg(r,e),r}});var yg=m((nee,AR)=>{"use strict";c();var d7=Hs(),vR=Ol(),Vt=require("fs"),ER=io(),bR=Gl(),wR=require("path"),xR=Ys();AR.exports=(t,e,r)=>{let n=d7(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?p7(n,e):g7(n,e,r)};var p7=(t,e)=>{let r=new vR.Sync(t),n=!0,i,s;try{try{i=Vt.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")i=Vt.openSync(t.file,"w+");else throw u}let o=Vt.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let f=0,h=0;f<512;f+=h){if(h=Vt.readSync(i,a,f,a.length-f,s+f),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let u=new xR(a);if(!u.cksumValid)break;let l=512*Math.ceil(u.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(u.path,u.mtime)}n=!1,m7(t,r,s,i,e)}finally{if(n)try{Vt.closeSync(i)}catch{}}},m7=(t,e,r,n,i)=>{let s=new ER.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),y7(e,i)},g7=(t,e,r)=>{e=Array.from(e);let n=new vR(t),i=(o,a,u)=>{let l=(y,v)=>{y?Vt.close(o,E=>u(y)):u(null,v)},f=0;if(a===0)return l(null,0);let h=0,d=Buffer.alloc(512),g=(y,v)=>{if(y)return l(y);if(h+=v,h<512&&v)return Vt.read(o,d,h,d.length-h,f+h,g);if(f===0&&d[0]===31&&d[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,f);let E=new xR(d);if(!E.cksumValid)return l(null,f);let x=512*Math.ceil(E.size/512);if(f+x+512>a||(f+=x+512,f>=a))return l(null,f);t.mtimeCache&&t.mtimeCache.set(E.path,E.mtime),h=0,Vt.read(o,d,0,512,f,g)};Vt.read(o,d,0,512,f,g)},s=new Promise((o,a)=>{n.on("error",a);let u="r+",l=(f,h)=>{if(f&&f.code==="ENOENT"&&u==="r+")return u="w+",Vt.open(t.file,u,l);if(f)return a(f);Vt.fstat(h,(d,g)=>{if(d)return Vt.close(h,()=>a(d));i(h,g.size,(y,v)=>{if(y)return a(y);let E=new ER.WriteStream(t.file,{fd:h,start:v});n.pipe(E),E.on("error",a),E.on("close",o),SR(n,e)})})};Vt.open(t.file,u,l)});return r?s.then(r,r):s},y7=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?bR({file:wR.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},SR=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return bR({file:wR.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>SR(t,e));t.add(r)}t.end()}});var DR=m((iee,CR)=>{"use strict";c();var _7=Hs(),v7=yg();CR.exports=(t,e,r)=>{let n=_7(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),E7(n),v7(n,e,r)};var E7=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var TR=m((see,OR)=>{c();var{promisify:RR}=require("util"),ti=require("fs"),b7=t=>{if(!t)t={mode:511,fs:ti};else if(typeof t=="object")t={mode:511,fs:ti,...t};else if(typeof t=="number")t={mode:t,fs:ti};else if(typeof t=="string")t={mode:parseInt(t,8),fs:ti};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||ti.mkdir,t.mkdirAsync=RR(t.mkdir),t.stat=t.stat||t.fs.stat||ti.stat,t.statAsync=RR(t.stat),t.statSync=t.statSync||t.fs.statSync||ti.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||ti.mkdirSync,t};OR.exports=b7});var FR=m((oee,kR)=>{c();var w7=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:x7,parse:S7}=require("path"),A7=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=x7(t),w7==="win32"){let e=/[*|"<>?:]/,{root:r}=S7(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};kR.exports=A7});var NR=m((aee,LR)=>{c();var{dirname:PR}=require("path"),IR=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?IR(t,PR(e),e):void 0),BR=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?BR(t,PR(e),e):void 0}};LR.exports={findMade:IR,findMadeSync:BR}});var Eg=m((uee,qR)=>{c();var{dirname:MR}=require("path"),_g=(t,e,r)=>{e.recursive=!1;let n=MR(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return _g(n,e).then(s=>_g(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},vg=(t,e,r)=>{let n=MR(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return vg(t,e,vg(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};qR.exports={mkdirpManual:_g,mkdirpManualSync:vg}});var $R=m((cee,HR)=>{c();var{dirname:jR}=require("path"),{findMade:C7,findMadeSync:D7}=NR(),{mkdirpManual:R7,mkdirpManualSync:O7}=Eg(),T7=(t,e)=>(e.recursive=!0,jR(t)===t?e.mkdirAsync(t,e):C7(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return R7(t,e);throw i}))),k7=(t,e)=>{if(e.recursive=!0,jR(t)===t)return e.mkdirSync(t,e);let n=D7(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return O7(t,e);throw i}};HR.exports={mkdirpNative:T7,mkdirpNativeSync:k7}});var WR=m((lee,VR)=>{c();var UR=require("fs"),F7=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,bg=F7.replace(/^v/,"").split("."),GR=+bg[0]>10||+bg[0]==10&&+bg[1]>=12,P7=GR?t=>t.mkdir===UR.mkdir:()=>!1,I7=GR?t=>t.mkdirSync===UR.mkdirSync:()=>!1;VR.exports={useNative:P7,useNativeSync:I7}});var XR=m((fee,JR)=>{c();var oo=TR(),ao=FR(),{mkdirpNative:zR,mkdirpNativeSync:YR}=$R(),{mkdirpManual:KR,mkdirpManualSync:ZR}=Eg(),{useNative:B7,useNativeSync:L7}=WR(),uo=(t,e)=>(t=ao(t),e=oo(e),B7(e)?zR(t,e):KR(t,e)),N7=(t,e)=>(t=ao(t),e=oo(e),L7(e)?YR(t,e):ZR(t,e));uo.sync=N7;uo.native=(t,e)=>zR(ao(t),oo(e));uo.manual=(t,e)=>KR(ao(t),oo(e));uo.nativeSync=(t,e)=>YR(ao(t),oo(e));uo.manualSync=(t,e)=>ZR(ao(t),oo(e));JR.exports=uo});var sO=m((hee,iO)=>{"use strict";c();var or=require("fs"),Mi=require("path"),M7=or.lchown?"lchown":"chown",q7=or.lchownSync?"lchownSync":"chownSync",eO=or.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),QR=(t,e,r)=>{try{return or[q7](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},j7=(t,e,r)=>{try{return or.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},H7=eO?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):or.chown(t,e,r,n)}:(t,e,r,n)=>n,wg=eO?(t,e,r)=>{try{return QR(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;j7(t,e,r)}}:(t,e,r)=>QR(t,e,r),$7=process.version,tO=(t,e,r)=>or.readdir(t,e,r),U7=(t,e)=>or.readdirSync(t,e);/^v4\./.test($7)&&(tO=(t,e,r)=>or.readdir(t,r));var Wl=(t,e,r,n)=>{or[M7](t,e,r,H7(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},rO=(t,e,r,n,i)=>{if(typeof e=="string")return or.lstat(Mi.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,rO(t,o,r,n,i)});if(e.isDirectory())xg(Mi.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=Mi.resolve(t,e.name);Wl(o,r,n,i)});else{let s=Mi.resolve(t,e.name);Wl(s,r,n,i)}},xg=(t,e,r,n)=>{tO(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return Wl(t,e,r,n);let o=s.length,a=null,u=l=>{if(!a){if(l)return n(a=l);if(--o===0)return Wl(t,e,r,n)}};s.forEach(l=>rO(t,l,e,r,u))})},G7=(t,e,r,n)=>{if(typeof e=="string")try{let i=or.lstatSync(Mi.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&nO(Mi.resolve(t,e.name),r,n),wg(Mi.resolve(t,e.name),r,n)},nO=(t,e,r)=>{let n;try{n=U7(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return wg(t,e,r);throw i}return n&&n.length&&n.forEach(i=>G7(t,i,e,r)),wg(t,e,r)};iO.exports=xg;xg.sync=nO});var cO=m((dee,Sg)=>{"use strict";c();var oO=XR(),ar=require("fs"),zl=require("path"),aO=sO(),Er=Ws(),Yl=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Kl=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zl=(t,e)=>t.get(Er(e)),Ma=(t,e,r)=>t.set(Er(e),r),V7=(t,e)=>{ar.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new Kl(t,r&&r.code||"ENOTDIR")),e(r)})};Sg.exports=(t,e,r)=>{t=Er(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,f=e.unlink,h=e.cache,d=Er(e.cwd),g=(E,x)=>{E?r(E):(Ma(h,t,!0),x&&u?aO(x,o,a,O=>g(O)):s?ar.chmod(t,i,r):r())};if(h&&Zl(h,t)===!0)return g();if(t===d)return V7(t,g);if(l)return oO(t,{mode:i}).then(E=>g(null,E),g);let v=Er(zl.relative(d,t)).split("/");Jl(d,v,i,h,f,d,null,g)};var Jl=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),l=Er(zl.resolve(t+"/"+u));if(Zl(n,l))return Jl(l,e,r,n,i,s,o,a);ar.mkdir(l,r,uO(l,e,r,n,i,s,o,a))},uO=(t,e,r,n,i,s,o,a)=>u=>{u?ar.lstat(t,(l,f)=>{if(l)l.path=l.path&&Er(l.path),a(l);else if(f.isDirectory())Jl(t,e,r,n,i,s,o,a);else if(i)ar.unlink(t,h=>{if(h)return a(h);ar.mkdir(t,r,uO(t,e,r,n,i,s,o,a))});else{if(f.isSymbolicLink())return a(new Yl(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,Jl(t,e,r,n,i,s,o,a))},W7=t=>{let e=!1,r="ENOTDIR";try{e=ar.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new Kl(t,r)}};Sg.exports.sync=(t,e)=>{t=Er(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,l=e.unlink,f=e.cache,h=Er(e.cwd),d=E=>{Ma(f,t,!0),E&&a&&aO.sync(E,s,o),i&&ar.chmodSync(t,n)};if(f&&Zl(f,t)===!0)return d();if(t===h)return W7(h),d();if(u)return d(oO.sync(t,n));let y=Er(zl.relative(h,t)).split("/"),v=null;for(let E=y.shift(),x=h;E&&(x+="/"+E);E=y.shift())if(x=Er(zl.resolve(x)),!Zl(f,x))try{ar.mkdirSync(x,n),v=v||x,Ma(f,x,!0)}catch{let B=ar.lstatSync(x);if(B.isDirectory()){Ma(f,x,!0);continue}else if(l){ar.unlinkSync(x),ar.mkdirSync(x,n),v=v||x,Ma(f,x,!0);continue}else if(B.isSymbolicLink())return new Yl(x,x+"/"+y.join("/"))}return d(v)}});var Cg=m((pee,lO)=>{c();var Ag=Object.create(null),{hasOwnProperty:z7}=Object.prototype;lO.exports=t=>(z7.call(Ag,t)||(Ag[t]=t.normalize("NFKD")),Ag[t])});var pO=m((mee,dO)=>{c();var fO=require("assert"),Y7=Cg(),K7=Ks(),{join:hO}=require("path"),Z7=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,J7=Z7==="win32";dO.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=hO(h[h.length-1],d)),h.push(d||"/"),h),[]),n=new Set,i=l=>{let f=e.get(l);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(h=>t.get(h)),dirs:[...f.dirs].map(h=>t.get(h))}},s=l=>{let{paths:f,dirs:h}=i(l);return f.every(d=>d[0]===l)&&h.every(d=>d[0]instanceof Set&&d[0].has(l))},o=l=>n.has(l)||!s(l)?!1:(n.add(l),l(()=>a(l)),!0),a=l=>{if(!n.has(l))return!1;let{paths:f,dirs:h}=e.get(l),d=new Set;return f.forEach(g=>{let y=t.get(g);fO.equal(y[0],l),y.length===1?t.delete(g):(y.shift(),typeof y[0]=="function"?d.add(y[0]):y[0].forEach(v=>d.add(v)))}),h.forEach(g=>{let y=t.get(g);fO(y[0]instanceof Set),y[0].size===1&&y.length===1?t.delete(g):y[0].size===1?(y.shift(),d.add(y[0])):y[0].delete(l)}),n.delete(l),d.forEach(g=>o(g)),!0};return{check:s,reserve:(l,f)=>{l=J7?["win32 parallelization disabled"]:l.map(d=>Y7(K7(hO(d))).toLowerCase());let h=new Set(l.map(d=>r(d)).reduce((d,g)=>d.concat(g)));return e.set(f,{dirs:h,paths:l}),l.forEach(d=>{let g=t.get(d);g?g.push(f):t.set(d,[f])}),h.forEach(d=>{let g=t.get(d);g?g[g.length-1]instanceof Set?g[g.length-1].add(f):g.push(new Set([f])):t.set(d,[new Set([f])])}),o(f)}}}});var yO=m((gee,gO)=>{c();var X7=process.env.__FAKE_PLATFORM__||process.platform,Q7=X7==="win32",e$=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:t$,O_TRUNC:r$,O_WRONLY:n$,UV_FS_O_FILEMAP:mO=0}=e$.constants,i$=Q7&&!!mO,s$=512*1024,o$=mO|r$|t$|n$;gO.exports=i$?t=>t<s$?o$:"w":()=>"w"});var Bg=m((yee,kO)=>{"use strict";c();var a$=require("assert"),u$=Ul(),ye=require("fs"),c$=io(),_n=require("path"),RO=cO(),_O=I0(),l$=pO(),f$=B0(),Wt=Ws(),h$=Ks(),d$=Cg(),vO=Symbol("onEntry"),Og=Symbol("checkFs"),EO=Symbol("checkFs2"),ef=Symbol("pruneCache"),Tg=Symbol("isReusable"),ur=Symbol("makeFs"),kg=Symbol("file"),Fg=Symbol("directory"),tf=Symbol("link"),bO=Symbol("symlink"),wO=Symbol("hardlink"),xO=Symbol("unsupported"),SO=Symbol("checkPath"),ri=Symbol("mkdir"),bt=Symbol("onError"),Xl=Symbol("pending"),AO=Symbol("pend"),co=Symbol("unpend"),Dg=Symbol("ended"),Rg=Symbol("maybeClose"),Pg=Symbol("skip"),qa=Symbol("doChown"),ja=Symbol("uid"),Ha=Symbol("gid"),$a=Symbol("checkedCwd"),OO=require("crypto"),TO=yO(),p$=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Ua=p$==="win32",m$=(t,e)=>{if(!Ua)return ye.unlink(t,e);let r=t+".DELETE."+OO.randomBytes(16).toString("hex");ye.rename(t,r,n=>{if(n)return e(n);ye.unlink(r,e)})},g$=t=>{if(!Ua)return ye.unlinkSync(t);let e=t+".DELETE."+OO.randomBytes(16).toString("hex");ye.renameSync(t,e),ye.unlinkSync(e)},CO=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,DO=t=>d$(h$(Wt(t))).toLowerCase(),y$=(t,e)=>{e=DO(e);for(let r of t.keys()){let n=DO(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},_$=t=>{for(let e of t.keys())t.delete(e)},Ga=class extends u${constructor(e){if(e||(e={}),e.ondone=r=>{this[Dg]=!0,this[Rg]()},super(e),this[$a]=!1,this.reservations=l$(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Xl]=0,this[Dg]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Ua,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Wt(_n.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[vO](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[Rg](){this[Dg]&&this[Xl]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[SO](e){if(this.strip){let r=Wt(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=Wt(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Wt(e.path),n=r.split("/");if(n.includes("..")||Ua&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=f$(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(_n.isAbsolute(e.path)?e.absolute=Wt(_n.resolve(e.path)):e.absolute=Wt(_n.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Wt(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=_n.win32.parse(e.absolute);e.absolute=r+_O.encode(e.absolute.slice(r.length));let{root:n}=_n.win32.parse(e.path);e.path=n+_O.encode(e.path.slice(n.length))}return!0}[vO](e){if(!this[SO](e))return e.resume();switch(a$.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Og](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[xO](e)}}[bt](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[co](),r.resume())}[ri](e,r,n){RO(Wt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[qa](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[ja](e){return CO(this.uid,e.uid,this.processUid)}[Ha](e){return CO(this.gid,e.gid,this.processGid)}[kg](e,r){let n=e.mode&4095||this.fmode,i=new c$.WriteStream(e.absolute,{flags:TO(e.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&ye.close(i.fd,()=>{}),i.write=()=>!0,this[bt](u,e),r()});let s=1,o=u=>{if(u){i.fd&&ye.close(i.fd,()=>{}),this[bt](u,e),r();return}--s===0&&ye.close(i.fd,l=>{l?this[bt](l,e):this[co](),r()})};i.on("finish",u=>{let l=e.absolute,f=i.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,d=e.mtime;ye.futimes(f,h,d,g=>g?ye.utimes(l,h,d,y=>o(y&&g)):o())}if(this[qa](e)){s++;let h=this[ja](e),d=this[Ha](e);ye.fchown(f,h,d,g=>g?ye.chown(l,h,d,y=>o(y&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[bt](u,e),r()}),e.pipe(a)),a.pipe(i)}[Fg](e,r){let n=e.mode&4095||this.dmode;this[ri](e.absolute,n,i=>{if(i){this[bt](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[co](),e.resume())};e.mtime&&!this.noMtime&&(s++,ye.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[qa](e)&&(s++,ye.chown(e.absolute,this[ja](e),this[Ha](e),o)),o()})}[xO](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[bO](e,r){this[tf](e,e.linkpath,"symlink",r)}[wO](e,r){let n=Wt(_n.resolve(this.cwd,e.linkpath));this[tf](e,n,"link",r)}[AO](){this[Xl]++}[co](){this[Xl]--,this[Rg]()}[Pg](e){this[co](),e.resume()}[Tg](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Ua}[Og](e){this[AO]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[EO](e,n))}[ef](e){e.type==="SymbolicLink"?_$(this.dirCache):e.type!=="Directory"&&y$(this.dirCache,e.absolute)}[EO](e,r){this[ef](e);let n=a=>{this[ef](e),r(a)},i=()=>{this[ri](this.cwd,this.dmode,a=>{if(a){this[bt](a,e),n();return}this[$a]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Wt(_n.dirname(e.absolute));if(a!==this.cwd)return this[ri](a,this.dmode,u=>{if(u){this[bt](u,e),n();return}o()})}o()},o=()=>{ye.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[Pg](e),n();return}if(a||this[Tg](e,u))return this[ur](null,e,n);if(u.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,f=h=>this[ur](h,e,n);return l?ye.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return ye.rmdir(e.absolute,l=>this[ur](l,e,n))}if(e.absolute===this.cwd)return this[ur](null,e,n);m$(e.absolute,l=>this[ur](l,e,n))})};this[$a]?s():i()}[ur](e,r,n){if(e){this[bt](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[kg](r,n);case"Link":return this[wO](r,n);case"SymbolicLink":return this[bO](r,n);case"Directory":case"GNUDumpDir":return this[Fg](r,n)}}[tf](e,r,n,i){ye[n](r,e.absolute,s=>{s?this[bt](s,e):(this[co](),e.resume()),i()})}},Ql=t=>{try{return[null,t()]}catch(e){return[e,null]}},Ig=class extends Ga{[ur](e,r){return super[ur](e,r,()=>{})}[Og](e){if(this[ef](e),!this[$a]){let s=this[ri](this.cwd,this.dmode);if(s)return this[bt](s,e);this[$a]=!0}if(e.absolute!==this.cwd){let s=Wt(_n.dirname(e.absolute));if(s!==this.cwd){let o=this[ri](s,this.dmode);if(o)return this[bt](o,e)}}let[r,n]=Ql(()=>ye.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[Pg](e);if(r||this[Tg](e,n))return this[ur](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?Ql(()=>{ye.chmodSync(e.absolute,e.mode)}):[];return this[ur](a,e)}let[s]=Ql(()=>ye.rmdirSync(e.absolute));this[ur](s,e)}let[i]=e.absolute===this.cwd?[]:Ql(()=>g$(e.absolute));this[ur](i,e)}[kg](e,r){let n=e.mode&4095||this.fmode,i=a=>{let u;try{ye.closeSync(s)}catch(l){u=l}(a||u)&&this[bt](a||u,e),r()},s;try{s=ye.openSync(e.absolute,TO(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[bt](a,e)),e.pipe(o)),o.on("data",a=>{try{ye.writeSync(s,a,0,a.length)}catch(u){i(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,f=e.mtime;try{ye.futimesSync(s,l,f)}catch(h){try{ye.utimesSync(e.absolute,l,f)}catch{u=h}}}if(this[qa](e)){let l=this[ja](e),f=this[Ha](e);try{ye.fchownSync(s,l,f)}catch(h){try{ye.chownSync(e.absolute,l,f)}catch{u=u||h}}}i(u)})}[Fg](e,r){let n=e.mode&4095||this.dmode,i=this[ri](e.absolute,n);if(i){this[bt](i,e),r();return}if(e.mtime&&!this.noMtime)try{ye.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[qa](e))try{ye.chownSync(e.absolute,this[ja](e),this[Ha](e))}catch{}r(),e.resume()}[ri](e,r){try{return RO.sync(Wt(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[tf](e,r,n,i){try{ye[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[bt](s,e)}}};Ga.Sync=Ig;kO.exports=Ga});var LO=m((_ee,BO)=>{"use strict";c();var v$=Hs(),rf=Bg(),PO=require("fs"),IO=io(),FO=require("path"),Lg=Ks();BO.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=v$(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&E$(n,e),n.file&&n.sync?b$(n):n.file?w$(n,r):n.sync?x$(n):S$(n)};var E$=(t,e)=>{let r=new Map(e.map(s=>[Lg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||FO.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(FO.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(Lg(s)):s=>i(Lg(s))},b$=t=>{let e=new rf.Sync(t),r=t.file,n=PO.statSync(r),i=t.maxReadSize||16*1024*1024;new IO.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},w$=(t,e)=>{let r=new rf(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),PO.stat(i,(u,l)=>{if(u)a(u);else{let f=new IO.ReadStream(i,{readSize:n,size:l.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},x$=t=>new rf.Sync(t),S$=t=>new rf(t)});var NO=m(Xe=>{"use strict";c();Xe.c=Xe.create=_R();Xe.r=Xe.replace=yg();Xe.t=Xe.list=Gl();Xe.u=Xe.update=DR();Xe.x=Xe.extract=LO();Xe.Pack=Ol();Xe.Unpack=Bg();Xe.Parse=Ul();Xe.ReadEntry=hl();Xe.WriteEntry=V0();Xe.Header=Ys();Xe.Pax=pl();Xe.types=D0()});var En=m((vn,nf)=>{"use strict";c();Object.defineProperty(vn,"__esModule",{value:!0});var MO=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function A$(t){return MO.includes(t)}var C$=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...MO];function D$(t){return C$.includes(t)}var R$=["null","undefined","string","number","bigint","boolean","symbol"];function O$(t){return R$.includes(t)}function lo(t){return e=>typeof e===t}var{toString:qO}=Object.prototype,Va=t=>{let e=qO.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&w.domElement(t))return"HTMLElement";if(D$(e))return e},Ce=t=>e=>Va(e)===t;function w(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(w.observable(t))return"Observable";if(w.array(t))return"Array";if(w.buffer(t))return"Buffer";let e=Va(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}w.undefined=lo("undefined");w.string=lo("string");var T$=lo("number");w.number=t=>T$(t)&&!w.nan(t);w.bigint=lo("bigint");w.function_=lo("function");w.null_=t=>t===null;w.class_=t=>w.function_(t)&&t.toString().startsWith("class ");w.boolean=t=>t===!0||t===!1;w.symbol=lo("symbol");w.numericString=t=>w.string(t)&&!w.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));w.array=(t,e)=>Array.isArray(t)?w.function_(e)?t.every(e):!0:!1;w.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};w.blob=t=>Ce("Blob")(t);w.nullOrUndefined=t=>w.null_(t)||w.undefined(t);w.object=t=>!w.null_(t)&&(typeof t=="object"||w.function_(t));w.iterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};w.asyncIterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};w.generator=t=>{var e,r;return w.iterable(t)&&w.function_((e=t)===null||e===void 0?void 0:e.next)&&w.function_((r=t)===null||r===void 0?void 0:r.throw)};w.asyncGenerator=t=>w.asyncIterable(t)&&w.function_(t.next)&&w.function_(t.throw);w.nativePromise=t=>Ce("Promise")(t);var k$=t=>{var e,r;return w.function_((e=t)===null||e===void 0?void 0:e.then)&&w.function_((r=t)===null||r===void 0?void 0:r.catch)};w.promise=t=>w.nativePromise(t)||k$(t);w.generatorFunction=Ce("GeneratorFunction");w.asyncGeneratorFunction=t=>Va(t)==="AsyncGeneratorFunction";w.asyncFunction=t=>Va(t)==="AsyncFunction";w.boundFunction=t=>w.function_(t)&&!t.hasOwnProperty("prototype");w.regExp=Ce("RegExp");w.date=Ce("Date");w.error=Ce("Error");w.map=t=>Ce("Map")(t);w.set=t=>Ce("Set")(t);w.weakMap=t=>Ce("WeakMap")(t);w.weakSet=t=>Ce("WeakSet")(t);w.int8Array=Ce("Int8Array");w.uint8Array=Ce("Uint8Array");w.uint8ClampedArray=Ce("Uint8ClampedArray");w.int16Array=Ce("Int16Array");w.uint16Array=Ce("Uint16Array");w.int32Array=Ce("Int32Array");w.uint32Array=Ce("Uint32Array");w.float32Array=Ce("Float32Array");w.float64Array=Ce("Float64Array");w.bigInt64Array=Ce("BigInt64Array");w.bigUint64Array=Ce("BigUint64Array");w.arrayBuffer=Ce("ArrayBuffer");w.sharedArrayBuffer=Ce("SharedArrayBuffer");w.dataView=Ce("DataView");w.enumCase=(t,e)=>Object.values(e).includes(t);w.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;w.urlInstance=t=>Ce("URL")(t);w.urlString=t=>{if(!w.string(t))return!1;try{return new URL(t),!0}catch{return!1}};w.truthy=t=>Boolean(t);w.falsy=t=>!t;w.nan=t=>Number.isNaN(t);w.primitive=t=>w.null_(t)||O$(typeof t);w.integer=t=>Number.isInteger(t);w.safeInteger=t=>Number.isSafeInteger(t);w.plainObject=t=>{if(qO.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};w.typedArray=t=>A$(Va(t));var F$=t=>w.safeInteger(t)&&t>=0;w.arrayLike=t=>!w.nullOrUndefined(t)&&!w.function_(t)&&F$(t.length);w.inRange=(t,e)=>{if(w.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(w.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var P$=1,I$=["innerHTML","ownerDocument","style","attributes","nodeValue"];w.domElement=t=>w.object(t)&&t.nodeType===P$&&w.string(t.nodeName)&&!w.plainObject(t)&&I$.every(e=>e in t);w.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};w.nodeStream=t=>w.object(t)&&w.function_(t.pipe)&&!w.observable(t);w.infinite=t=>t===1/0||t===-1/0;var jO=t=>e=>w.integer(e)&&Math.abs(e%2)===t;w.evenInteger=jO(0);w.oddInteger=jO(1);w.emptyArray=t=>w.array(t)&&t.length===0;w.nonEmptyArray=t=>w.array(t)&&t.length>0;w.emptyString=t=>w.string(t)&&t.length===0;var B$=t=>w.string(t)&&!/\S/.test(t);w.emptyStringOrWhitespace=t=>w.emptyString(t)||B$(t);w.nonEmptyString=t=>w.string(t)&&t.length>0;w.nonEmptyStringAndNotWhitespace=t=>w.string(t)&&!w.emptyStringOrWhitespace(t);w.emptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length===0;w.nonEmptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length>0;w.emptySet=t=>w.set(t)&&t.size===0;w.nonEmptySet=t=>w.set(t)&&t.size>0;w.emptyMap=t=>w.map(t)&&t.size===0;w.nonEmptyMap=t=>w.map(t)&&t.size>0;w.propertyKey=t=>w.any([w.string,w.number,w.symbol],t);w.formData=t=>Ce("FormData")(t);w.urlSearchParams=t=>Ce("URLSearchParams")(t);var HO=(t,e,r)=>{if(!w.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};w.any=(t,...e)=>(w.array(t)?t:[t]).some(n=>HO(Array.prototype.some,n,e));w.all=(t,...e)=>HO(Array.prototype.every,t,e);var N=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${w(o)}\``))].join(", ")}`:`received value of type \`${w(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};vn.assert={undefined:t=>N(w.undefined(t),"undefined",t),string:t=>N(w.string(t),"string",t),number:t=>N(w.number(t),"number",t),bigint:t=>N(w.bigint(t),"bigint",t),function_:t=>N(w.function_(t),"Function",t),null_:t=>N(w.null_(t),"null",t),class_:t=>N(w.class_(t),"Class",t),boolean:t=>N(w.boolean(t),"boolean",t),symbol:t=>N(w.symbol(t),"symbol",t),numericString:t=>N(w.numericString(t),"string with a number",t),array:(t,e)=>{N(w.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>N(w.buffer(t),"Buffer",t),blob:t=>N(w.blob(t),"Blob",t),nullOrUndefined:t=>N(w.nullOrUndefined(t),"null or undefined",t),object:t=>N(w.object(t),"Object",t),iterable:t=>N(w.iterable(t),"Iterable",t),asyncIterable:t=>N(w.asyncIterable(t),"AsyncIterable",t),generator:t=>N(w.generator(t),"Generator",t),asyncGenerator:t=>N(w.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>N(w.nativePromise(t),"native Promise",t),promise:t=>N(w.promise(t),"Promise",t),generatorFunction:t=>N(w.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>N(w.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>N(w.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>N(w.boundFunction(t),"Function",t),regExp:t=>N(w.regExp(t),"RegExp",t),date:t=>N(w.date(t),"Date",t),error:t=>N(w.error(t),"Error",t),map:t=>N(w.map(t),"Map",t),set:t=>N(w.set(t),"Set",t),weakMap:t=>N(w.weakMap(t),"WeakMap",t),weakSet:t=>N(w.weakSet(t),"WeakSet",t),int8Array:t=>N(w.int8Array(t),"Int8Array",t),uint8Array:t=>N(w.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>N(w.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>N(w.int16Array(t),"Int16Array",t),uint16Array:t=>N(w.uint16Array(t),"Uint16Array",t),int32Array:t=>N(w.int32Array(t),"Int32Array",t),uint32Array:t=>N(w.uint32Array(t),"Uint32Array",t),float32Array:t=>N(w.float32Array(t),"Float32Array",t),float64Array:t=>N(w.float64Array(t),"Float64Array",t),bigInt64Array:t=>N(w.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>N(w.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>N(w.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>N(w.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>N(w.dataView(t),"DataView",t),enumCase:(t,e)=>N(w.enumCase(t,e),"EnumCase",t),urlInstance:t=>N(w.urlInstance(t),"URL",t),urlString:t=>N(w.urlString(t),"string with a URL",t),truthy:t=>N(w.truthy(t),"truthy",t),falsy:t=>N(w.falsy(t),"falsy",t),nan:t=>N(w.nan(t),"NaN",t),primitive:t=>N(w.primitive(t),"primitive",t),integer:t=>N(w.integer(t),"integer",t),safeInteger:t=>N(w.safeInteger(t),"integer",t),plainObject:t=>N(w.plainObject(t),"plain object",t),typedArray:t=>N(w.typedArray(t),"TypedArray",t),arrayLike:t=>N(w.arrayLike(t),"array-like",t),domElement:t=>N(w.domElement(t),"HTMLElement",t),observable:t=>N(w.observable(t),"Observable",t),nodeStream:t=>N(w.nodeStream(t),"Node.js Stream",t),infinite:t=>N(w.infinite(t),"infinite number",t),emptyArray:t=>N(w.emptyArray(t),"empty array",t),nonEmptyArray:t=>N(w.nonEmptyArray(t),"non-empty array",t),emptyString:t=>N(w.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>N(w.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>N(w.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>N(w.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>N(w.emptyObject(t),"empty object",t),nonEmptyObject:t=>N(w.nonEmptyObject(t),"non-empty object",t),emptySet:t=>N(w.emptySet(t),"empty set",t),nonEmptySet:t=>N(w.nonEmptySet(t),"non-empty set",t),emptyMap:t=>N(w.emptyMap(t),"empty map",t),nonEmptyMap:t=>N(w.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>N(w.propertyKey(t),"PropertyKey",t),formData:t=>N(w.formData(t),"FormData",t),urlSearchParams:t=>N(w.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>N(w.evenInteger(t),"even integer",t),oddInteger:t=>N(w.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>N(w.directInstanceOf(t,e),"T",t),inRange:(t,e)=>N(w.inRange(t,e),"in range",t),any:(t,...e)=>N(w.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>N(w.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(w,{class:{value:w.class_},function:{value:w.function_},null:{value:w.null_}});Object.defineProperties(vn.assert,{class:{value:vn.assert.class_},function:{value:vn.assert.function_},null:{value:vn.assert.null_}});vn.default=w;nf.exports=w;nf.exports.default=w;nf.exports.assert=vn.assert});var $O=m((Eee,Ng)=>{"use strict";c();var sf=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},fo=class{static fn(e){return(...r)=>new fo((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new sf(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(fo.prototype,Promise.prototype);Ng.exports=fo;Ng.exports.CancelError=sf});var UO=m((qg,jg)=>{"use strict";c();Object.defineProperty(qg,"__esModule",{value:!0});function L$(t){return t.encrypted}var Mg=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),L$(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};qg.default=Mg;jg.exports=Mg;jg.exports.default=Mg});var GO=m(($g,Ug)=>{"use strict";c();Object.defineProperty($g,"__esModule",{value:!0});var N$=UO(),M$=require("util"),q$=Number(process.versions.node.split(".")[0]),Hg=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let u=a.emit.bind(a);a.emit=(l,...f)=>(l==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=u),u(l,...f))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||q$>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,M$.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),N$.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};$g.default=Hg;Ug.exports=Hg;Ug.exports.default=Hg});var JO=m((bee,Wg)=>{"use strict";c();var{V4MAPPED:j$,ADDRCONFIG:H$,ALL:ZO,promises:{Resolver:VO},lookup:$$}=require("dns"),{promisify:Gg}=require("util"),U$=require("os"),ho=Symbol("cacheableLookupCreateConnection"),Vg=Symbol("cacheableLookupInstance"),WO=Symbol("expires"),G$=typeof ZO=="number",zO=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},V$=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},YO=()=>{let t=!1,e=!1;for(let r of Object.values(U$.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},W$=t=>Symbol.iterator in t,KO={ttl:!0},z$={all:!0},of=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new VO,lookup:o=$$}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Gg(o),this._resolver instanceof VO?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Gg(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Gg(this._resolver.resolve6.bind(this._resolver))),this._iface=YO(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&j$&&(G$&&r.hints&ZO||i.length===0)?V$(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&H$){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async l=>{try{return await l}catch(f){if(f.code==="ENODATA"||f.code==="ENOTFOUND")return[];throw f}},[n,i]=await Promise.all([this._resolve4(e,KO),this._resolve6(e,KO)].map(l=>r(l))),s=0,o=0,a=0,u=Date.now();for(let l of n)l.family=4,l.expires=u+l.ttl*1e3,s=Math.max(s,l.ttl);for(let l of i)l.family=6,l.expires=u+l.ttl*1e3,o=Math.max(o,l.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[WO]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}W$(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,z$);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[WO];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(zO(e),ho in e)throw new Error("CacheableLookup has been already installed");e[ho]=e.createConnection,e[Vg]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[ho](r,n))}uninstall(e){if(zO(e),e[ho]){if(e[Vg]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[ho],delete e[ho],delete e[Vg]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=YO(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Wg.exports=of;Wg.exports.default=of});var eT=m((wee,QO)=>{"use strict";c();var Y$="text/plain",K$="us-ascii",XO=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),Z$=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),f=[...o.map(h=>{let[d,g=""]=h.split("=").map(y=>y.trim());return d==="charset"&&(g=g.toLowerCase(),g===K$)?"":`${d}${g?`=${g}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length!==0||u&&u!==Y$)&&f.unshift(u),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},J$=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return Z$(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];XO(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])XO(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};QO.exports=J$});var nT=m((xee,rT)=>{c();rT.exports=tT;function tT(t,e){if(t&&e)return tT(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Yg=m((See,zg)=>{c();var iT=nT();zg.exports=iT(af);zg.exports.strict=iT(sT);af.proto=af(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return af(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return sT(this)},configurable:!0})});function af(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function sT(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var uT=m((Aee,aT)=>{c();var X$=Yg(),Q$=function(){},eU=function(t){return t.setHeader&&typeof t.abort=="function"},tU=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},oT=function(t,e,r){if(typeof e=="function")return oT(t,null,e);e||(e={}),r=X$(r||Q$);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,u=function(){t.writable||l()},l=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},h=function(E){r.call(t,E?new Error("exited with error code: "+E):null)},d=function(E){r.call(t,E)},g=function(){process.nextTick(y)},y=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},v=function(){t.req.on("finish",l)};return eU(t)?(t.on("complete",l),t.on("abort",g),t.req?v():t.on("request",v)):o&&!n&&(t.on("end",u),t.on("close",u)),tU(t)&&t.on("exit",h),t.on("end",f),t.on("finish",l),e.error!==!1&&t.on("error",d),t.on("close",g),function(){a=!0,t.removeListener("complete",l),t.removeListener("abort",g),t.removeListener("request",v),t.req&&t.req.removeListener("finish",l),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",g)}};aT.exports=oT});var fT=m((Cee,lT)=>{c();var rU=Yg(),nU=uT(),Kg=require("fs"),Wa=function(){},iU=/^v?\.0/.test(process.version),uf=function(t){return typeof t=="function"},sU=function(t){return!iU||!Kg?!1:(t instanceof(Kg.ReadStream||Wa)||t instanceof(Kg.WriteStream||Wa))&&uf(t.close)},oU=function(t){return t.setHeader&&uf(t.abort)},aU=function(t,e,r,n){n=rU(n);var i=!1;t.on("close",function(){i=!0}),nU(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,sU(t))return t.close(Wa);if(oU(t))return t.abort();if(uf(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},cT=function(t){t()},uU=function(t,e){return t.pipe(e)},cU=function(){var t=Array.prototype.slice.call(arguments),e=uf(t[t.length-1]||Wa)&&t.pop()||Wa;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return aU(i,o,a,function(u){r||(r=u),u&&n.forEach(cT),!o&&(n.forEach(cT),e(r))})});return t.reduce(uU)};lT.exports=cU});var dT=m((Dee,hT)=>{"use strict";c();var{PassThrough:lU}=require("stream");hT.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new lU({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var pT=m((Ree,po)=>{"use strict";c();var{constants:fU}=require("buffer"),hU=fT(),dU=dT(),cf=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function lf(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=fU.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=hU(t,dU(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new cf)})}),n.getBufferedValue()}po.exports=lf;po.exports.default=lf;po.exports.buffer=(t,e)=>lf(t,{...e,encoding:"buffer"});po.exports.array=(t,e)=>lf(t,{...e,array:!0});po.exports.MaxBufferError=cf});var gT=m((Tee,mT)=>{"use strict";c();var pU=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),mU=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),gU=new Set([500,502,503,504]),yU={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},_U={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function qi(t){let e=parseInt(t,10);return isFinite(e)?e:0}function vU(t){return t?gU.has(t.status):!0}function Zg(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function EU(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(!!e.length)return e.join(", ")}mT.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Zg(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Zg(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":EU(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&mU.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||pU.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=Zg(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)yU[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return qi(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return qi(this._rescc["s-maxage"])}if(this._rescc["max-age"])return qi(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+qi(this._rescc["stale-if-error"]),n=e+qi(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+qi(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+qi(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&vU(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!_U[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var ff=m((kee,yT)=>{"use strict";c();yT.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var vT=m((Fee,_T)=>{"use strict";c();var bU=require("stream").Readable,wU=ff(),Jg=class extends bU{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=wU(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};_T.exports=Jg});var bT=m((Pee,ET)=>{"use strict";c();var xU=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];ET.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(xU));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var xT=m((Iee,wT)=>{"use strict";c();var SU=require("stream").PassThrough,AU=bT(),CU=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new SU;return AU(t,e),t.pipe(e)};wT.exports=CU});var ST=m(Xg=>{c();Xg.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]>"u";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};Xg.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var RT=m((Lee,DT)=>{"use strict";c();var DU=require("events"),AT=ST(),RU=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},CT=["sqlite","postgres","mysql","mongo","redis","tiered"],Qg=class extends DU{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:AT.stringify,deserialize:AT.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=RU(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let u=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return CT.includes(this.opts.store.opts.dialect)||CT.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let l of a)u.push(l.value);return u})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let u of o){if(typeof u=="string"&&(u=this.opts.deserialize(u)),u==null){a.push(void 0);continue}typeof u.expires=="number"&&Date.now()>u.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?u:u.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};DT.exports=Qg});var kT=m((Nee,TT)=>{"use strict";c();var OU=require("events"),hf=require("url"),TU=eT(),kU=pT(),ey=gT(),OT=vT(),FU=ff(),PU=xT(),IU=RT(),br=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new IU({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=ty(hf.parse(r)),r={};else if(r instanceof hf.URL)i=ty(hf.parse(r.toString())),r={};else{let[h,...d]=(r.path||"").split("?"),g=d.length>0?`?${d.join("?")}`:"";i=ty({...r,pathname:h,search:g})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...BU(i)},r.headers=FU(r.headers);let s=new OU,o=TU(hf.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,l=!1,f=h=>{l=!0;let d=!1,g,y=new Promise(E=>{g=()=>{d||(d=!0,E())}}),v=E=>{if(u&&!h.forceRefresh){E.status=E.statusCode;let O=ey.fromObject(u.cachePolicy).revalidatedPolicy(h,E);if(!O.modified){let B=O.policy.responseHeaders();E=new OT(u.statusCode,B,u.body,u.url),E.cachePolicy=O.policy,E.fromCache=!0}}E.fromCache||(E.cachePolicy=new ey(h,E,h),E.fromCache=!1);let x;h.cache&&E.cachePolicy.storable()?(x=PU(E),(async()=>{try{let O=kU.buffer(E);if(await Promise.race([y,new Promise(ie=>E.once("end",ie))]),d)return;let B=await O,z={cachePolicy:E.cachePolicy.toObject(),url:E.url,statusCode:E.fromCache?u.statusCode:E.statusCode,body:B},H=h.strictTtl?E.cachePolicy.timeToLive():void 0;h.maxTtl&&(H=H?Math.min(H,h.maxTtl):h.maxTtl),await this.cache.set(a,z,H)}catch(O){s.emit("error",new br.CacheError(O))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(O){s.emit("error",new br.CacheError(O))}})(),s.emit("response",x||E),typeof n=="function"&&n(x||E)};try{let E=e(h,v);E.once("error",g),E.once("abort",g),s.emit("request",E)}catch(E){s.emit("error",new br.RequestError(E))}};return(async()=>{let h=async g=>{await Promise.resolve();let y=g.cache?await this.cache.get(a):void 0;if(typeof y>"u")return f(g);let v=ey.fromObject(y.cachePolicy);if(v.satisfiesWithoutRevalidation(g)&&!g.forceRefresh){let E=v.responseHeaders(),x=new OT(y.statusCode,E,y.body,y.url);x.cachePolicy=v,x.fromCache=!0,s.emit("response",x),typeof n=="function"&&n(x)}else u=y,g.headers=v.revalidationHeaders(g),f(g)},d=g=>s.emit("error",new br.CacheError(g));this.cache.once("error",d),s.on("response",()=>this.cache.removeListener("error",d));try{await h(r)}catch(g){r.automaticFailover&&!l&&f(r),s.emit("error",new br.CacheError(g))}})(),s}}};function BU(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function ty(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}br.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};br.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};TT.exports=br});var PT=m((jee,FT)=>{"use strict";c();var LU=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];FT.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(LU)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var BT=m((Hee,IT)=>{"use strict";c();var{Transform:NU,PassThrough:MU}=require("stream"),ry=require("zlib"),qU=PT();IT.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof ry.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new NU({transform(a,u,l){n=!1,l(null,a)},flush(a){a()}}),s=new MU({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?ry.createBrotliDecompress():ry.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),qU(t,s),t.pipe(i).pipe(o).pipe(s),s}});var iy=m(($ee,LT)=>{"use strict";c();var ny=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};LT.exports=ny});var oy=m((Uee,jT)=>{"use strict";c();var jU=require("events"),HU=require("tls"),$U=require("http2"),UU=iy(),Dt=Symbol("currentStreamsCount"),NT=Symbol("request"),cr=Symbol("cachedOriginSet"),mo=Symbol("gracefullyClosing"),GU=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],VU=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},WU=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,sy=(t,e)=>{for(let r of t)r[cr].length<e[cr].length&&r[cr].every(n=>e[cr].includes(n))&&r[Dt]+e[Dt]<=e.remoteSettings.maxConcurrentStreams&&qT(r)},zU=(t,e)=>{for(let r of t)e[cr].length<r[cr].length&&e[cr].every(n=>r[cr].includes(n))&&e[Dt]+r[Dt]<=r.remoteSettings.maxConcurrentStreams&&qT(e)},MT=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Hr.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},qT=t=>{t[mo]=!0,t[Dt]===0&&t.close()},Hr=class extends jU{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new UU({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of GU)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Hr.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:f}of n)f(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let f=this.sessions[o],h=-1,d=-1,g;for(let y of f){let v=y.remoteSettings.maxConcurrentStreams;if(v<h)break;if(y[cr].includes(a)){let E=y[Dt];if(E>=v||y[mo]||y.destroyed)continue;g||(h=v),E>d&&(g=y,d=E)}}if(g){if(n.length!==1){for(let{reject:y}of n){let v=new Error(`Expected the length of listeners to be 1, got ${n.length}.
52
- Please report this to https://github.com/szmarczak/http2-wrapper/`);y(v)}return}n[0].resolve(g);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let u=()=>{o in this.queue&&this.queue[o][a]===l&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},l=()=>{let f=`${a}:${o}`,h=!1;try{let d=$U.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(f),...r});d[Dt]=0,d[mo]=!1;let g=()=>d[Dt]<d.remoteSettings.maxConcurrentStreams,y=!0;d.socket.once("session",E=>{this.tlsSessionCache.set(f,E)}),d.once("error",E=>{for(let{reject:x}of n)x(E);this.tlsSessionCache.delete(f)}),d.setTimeout(this.timeout,()=>{d.destroy()}),d.once("close",()=>{if(h){y&&this._freeSessionsCount--,this._sessionsCount--;let E=this.sessions[o];E.splice(E.indexOf(d),1),E.length===0&&delete this.sessions[o]}else{let E=new Error("Session closed without receiving a SETTINGS frame");E.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:x}of n)x(E);u()}this._tryToCreateNewSession(o,a)});let v=()=>{if(!(!(o in this.queue)||!g())){for(let E of d[cr])if(E in this.queue[o]){let{listeners:x}=this.queue[o][E];for(;x.length!==0&&g();)x.shift().resolve(d);let O=this.queue[o];if(O[E].listeners.length===0&&(delete O[E],Object.keys(O).length===0)){delete this.queue[o];break}if(!g())break}}};d.on("origin",()=>{d[cr]=d.originSet,g()&&(v(),sy(this.sessions[o],d))}),d.once("remoteSettings",()=>{if(d.ref(),d.unref(),this._sessionsCount++,l.destroyed){let E=new Error("Agent has been destroyed");for(let x of n)x.reject(E);d.destroy();return}d[cr]=d.originSet;{let E=this.sessions;if(o in E){let x=E[o];x.splice(VU(x,d,WU),0,d)}else E[o]=[d]}this._freeSessionsCount+=1,h=!0,this.emit("session",d),v(),u(),d[Dt]===0&&this._freeSessionsCount>this.maxFreeSessions&&d.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),d.on("remoteSettings",()=>{v(),sy(this.sessions[o],d)})}),d[NT]=d.request,d.request=(E,x)=>{if(d[mo])throw new Error("The session is gracefully closing. No new streams are allowed.");let O=d[NT](E,x);return d.ref(),++d[Dt],d[Dt]===d.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,O.once("close",()=>{if(y=g(),--d[Dt],!d.destroyed&&!d.closed&&(zU(this.sessions[o],d),g()&&!d.closed)){y||(this._freeSessionsCount++,y=!0);let B=d[Dt]===0;B&&d.unref(),B&&(this._freeSessionsCount>this.maxFreeSessions||d[mo])?d.close():(sy(this.sessions[o],d),v())}}),O}}catch(d){for(let g of n)g.reject(d);u()}};l.listeners=n,l.completed=!1,l.destroyed=!1,this.queue[o][a]=l,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(e,r){return Hr.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername>"u"&&(r.servername=i),HU.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[Dt]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return MT({agent:this,isFree:!0})}get busySessions(){return MT({agent:this,isFree:!1})}};Hr.kCurrentStreamsCount=Dt;Hr.kGracefullyClosing=mo;jT.exports={Agent:Hr,globalAgent:new Hr}});var uy=m((Gee,HT)=>{"use strict";c();var{Readable:YU}=require("stream"),ay=class extends YU{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};HT.exports=ay});var cy=m((Vee,$T)=>{"use strict";c();$T.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var GT=m((Wee,UT)=>{"use strict";c();UT.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var WT=m((zee,VT)=>{"use strict";c();VT.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var YT=m((Kee,zT)=>{"use strict";c();var go=(t,e,r)=>{zT.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};go(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});go(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);go(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);go(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);go(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);go(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var py=m((Zee,tk)=>{"use strict";c();var KU=require("http2"),{Writable:ZU}=require("stream"),{Agent:KT,globalAgent:JU}=oy(),XU=uy(),QU=cy(),eG=GT(),tG=WT(),{ERR_INVALID_ARG_TYPE:ly,ERR_INVALID_PROTOCOL:rG,ERR_HTTP_HEADERS_SENT:ZT,ERR_INVALID_HTTP_TOKEN:nG,ERR_HTTP_INVALID_HEADER_VALUE:iG,ERR_INVALID_CHAR:sG}=YT(),{HTTP2_HEADER_STATUS:JT,HTTP2_HEADER_METHOD:XT,HTTP2_HEADER_PATH:QT,HTTP2_METHOD_CONNECT:oG}=KU.constants,wt=Symbol("headers"),fy=Symbol("origin"),hy=Symbol("session"),ek=Symbol("options"),df=Symbol("flushedHeaders"),za=Symbol("jobs"),aG=/^[\^`\-\w!#$%&*+.|~]+$/,uG=/[^\t\u0020-\u007E\u0080-\u00FF]/,dy=class extends ZU{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=QU(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[hy]=r.h2session;else if(r.agent===!1)this.agent=new KT({maxFreeSessions:0});else if(typeof r.agent>"u"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new KT({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=JU;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new ly("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new rG(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[wt]=Object.create(null),this[za]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[u,l]of Object.entries(r.headers))this.setHeader(u,l);r.auth&&!("authorization"in this[wt])&&(this[wt].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[ek]=r,s===443?(this[fy]=`https://${o}`,":authority"in this[wt]||(this[wt][":authority"]=o)):(this[fy]=`https://${o}:${s}`,":authority"in this[wt]||(this[wt][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[df]=!1}get method(){return this[wt][XT]}set method(e){e&&(this[wt][XT]=e.toUpperCase())}get path(){return this[wt][QT]}set path(e){e&&(this[wt][QT]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[za].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[za].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[df]||this.destroyed)return;this[df]=!0;let e=this.method===oG,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||eG(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,u)=>{let l=new XU(this.socket,n.readableHighWaterMark);this.res=l,l.req=this,l.statusCode=o[JT],l.headers=o,l.rawHeaders=u,l.once("end",()=>{this.aborted?(l.aborted=!0,l.emit("aborted")):(l.complete=!0,l.socket=null,l.connection=null)}),e?(l.upgrade=!0,this.emit("connect",l,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!l._dumped&&!l.push(f)&&n.pause()}),n.once("end",()=>{l.push(null)}),this.emit("response",l)||l._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[JT]}))),n.once("trailers",i((o,a,u)=>{let{res:l}=this;l.trailers=o,l.rawTrailers=u}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[za])o();this.emit("socket",this.socket)};if(this[hy])try{r(this[hy].request(this[wt]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[fy],this[ek],this[wt]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new ly("name","string",e);return this[wt][e.toLowerCase()]}get headersSent(){return this[df]}removeHeader(e){if(typeof e!="string")throw new ly("name","string",e);if(this.headersSent)throw new ZT("remove");delete this[wt][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new ZT("set");if(typeof e!="string"||!aG.test(e)&&!tG(e))throw new nG("Header name",e);if(typeof r>"u")throw new iG(r,e);if(uG.test(r))throw new sG("header content",e);this[wt][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[za].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};tk.exports=dy});var nk=m((Jee,rk)=>{"use strict";c();var cG=require("tls");rk.exports=(t={},e=cG.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(l){n(l)}})()})});var sk=m((Xee,ik)=>{"use strict";c();var lG=require("net");ik.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),lG.isIP(e)?"":e}});var uk=m((Qee,gy)=>{"use strict";c();var ok=require("http"),my=require("https"),fG=nk(),hG=iy(),dG=py(),pG=sk(),mG=cy(),pf=new hG({maxSize:100}),Ya=new Map,ak=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},gG=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!pf.has(e)){if(Ya.has(e))return(await Ya.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=fG(t);Ya.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(pf.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=my,u=my.Agent.prototype.createConnection;n?n.createConnection===u?ak(n,s,t):s.destroy():a.createConnection===u?ak(a,s,t):s.destroy()}return Ya.delete(e),o}catch(s){throw Ya.delete(e),s}}return pf.get(e)};gy.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=mG(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||pG(e),e.port=e.port||(n?443:80),e._defaultAgent=n?my.globalAgent:ok.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await gG(e)==="h2"?(i&&(e.agent=i.http2),new dG(e,r)):ok.request(e,r)};gy.exports.protocolCache=pf});var lk=m((ete,ck)=>{"use strict";c();var yG=require("http2"),_G=oy(),yy=py(),vG=uy(),EG=uk(),bG=(t,e,r)=>new yy(t,e,r),wG=(t,e,r)=>{let n=new yy(t,e,r);return n.end(),n};ck.exports={...yG,ClientRequest:yy,IncomingMessage:vG,..._G,request:bG,get:wG,auto:EG}});var vy=m(_y=>{"use strict";c();Object.defineProperty(_y,"__esModule",{value:!0});var fk=En();_y.default=t=>fk.default.nodeStream(t)&&fk.default.function_(t.getBoundary)});var mk=m(Ey=>{"use strict";c();Object.defineProperty(Ey,"__esModule",{value:!0});var dk=require("fs"),pk=require("util"),hk=En(),xG=vy(),SG=pk.promisify(dk.stat);Ey.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(hk.default.string(t))return Buffer.byteLength(t);if(hk.default.buffer(t))return t.length;if(xG.default(t))return pk.promisify(t.getLength.bind(t))();if(t instanceof dk.ReadStream){let{size:r}=await SG(t.path);return r===0?void 0:r}}});var wy=m(by=>{"use strict";c();Object.defineProperty(by,"__esModule",{value:!0});function AG(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}by.default=AG});var gk=m(xy=>{"use strict";c();Object.defineProperty(xy,"__esModule",{value:!0});xy.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var _k=m(Ka=>{"use strict";c();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.TimeoutError=void 0;var CG=require("net"),DG=gk(),yk=Symbol("reentry"),RG=()=>{},mf=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Ka.TimeoutError=mf;Ka.default=(t,e,r)=>{if(yk in t)return RG;t[yk]=!0;let n=[],{once:i,unhandleAll:s}=DG.default(),o=(h,d,g)=>{var y;let v=setTimeout(d,h,h,g);(y=v.unref)===null||y===void 0||y.call(v);let E=()=>{clearTimeout(v)};return n.push(E),E},{host:a,hostname:u}=r,l=(h,d)=>{t.destroy(new mf(h,d))},f=()=>{for(let h of n)h();s()};if(t.once("error",h=>{if(f(),t.listenerCount("error")===0)throw h}),t.once("close",f),i(t,"response",h=>{i(h,"end",f)}),typeof e.request<"u"&&o(e.request,l,"request"),typeof e.socket<"u"){let h=()=>{l(e.socket,"socket")};t.setTimeout(e.socket,h),n.push(()=>{t.removeListener("timeout",h)})}return i(t,"socket",h=>{var d;let{socketPath:g}=t;if(h.connecting){let y=Boolean(g!=null?g:CG.isIP((d=u!=null?u:a)!==null&&d!==void 0?d:"")!==0);if(typeof e.lookup<"u"&&!y&&typeof h.address().address>"u"){let v=o(e.lookup,l,"lookup");i(h,"lookup",v)}if(typeof e.connect<"u"){let v=()=>o(e.connect,l,"connect");y?i(h,"connect",v()):i(h,"lookup",E=>{E===null&&i(h,"connect",v())})}typeof e.secureConnect<"u"&&r.protocol==="https:"&&i(h,"connect",()=>{let v=o(e.secureConnect,l,"secureConnect");i(h,"secureConnect",v)})}if(typeof e.send<"u"){let y=()=>o(e.send,l,"send");h.connecting?i(h,"connect",()=>{i(t,"upload-complete",y())}):i(t,"upload-complete",y())}}),typeof e.response<"u"&&i(t,"upload-complete",()=>{let h=o(e.response,l,"response");i(t,"response",h)}),f}});var Ek=m(Sy=>{"use strict";c();Object.defineProperty(Sy,"__esModule",{value:!0});var vk=En();Sy.default=t=>{t=t;let e={protocol:t.protocol,hostname:vk.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return vk.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var bk=m(Ay=>{"use strict";c();Object.defineProperty(Ay,"__esModule",{value:!0});var OG=require("url"),TG=["protocol","host","hostname","port","pathname","search"];Ay.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new OG.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of TG)e[s]&&(i[s]=e[s].toString());return i}});var wk=m(Dy=>{"use strict";c();Object.defineProperty(Dy,"__esModule",{value:!0});var Cy=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Dy.default=Cy});var Oy=m(Ry=>{"use strict";c();Object.defineProperty(Ry,"__esModule",{value:!0});var kG=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Ry.default=kG});var Sk=m(ji=>{"use strict";c();Object.defineProperty(ji,"__esModule",{value:!0});ji.dnsLookupIpVersionToFamily=ji.isDnsLookupIpVersion=void 0;var xk={auto:0,ipv4:4,ipv6:6};ji.isDnsLookupIpVersion=t=>t in xk;ji.dnsLookupIpVersionToFamily=t=>{if(ji.isDnsLookupIpVersion(t))return xk[t];throw new Error("Invalid DNS lookup IP version")}});var Ty=m(gf=>{"use strict";c();Object.defineProperty(gf,"__esModule",{value:!0});gf.isResponseOk=void 0;gf.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var Ck=m(ky=>{"use strict";c();Object.defineProperty(ky,"__esModule",{value:!0});var Ak=new Set;ky.default=t=>{Ak.has(t)||(Ak.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var Dk=m(Fy=>{"use strict";c();Object.defineProperty(Fy,"__esModule",{value:!0});var Fe=En(),FG=(t,e)=>{if(Fe.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Fe.assert.any([Fe.default.string,Fe.default.undefined],t.encoding),Fe.assert.any([Fe.default.boolean,Fe.default.undefined],t.resolveBodyOnly),Fe.assert.any([Fe.default.boolean,Fe.default.undefined],t.methodRewriting),Fe.assert.any([Fe.default.boolean,Fe.default.undefined],t.isStream),Fe.assert.any([Fe.default.string,Fe.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Fe.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Fe.default.number(r)&&(t.retry.limit=r),Fe.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Fe.default.number))),Fe.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!Fe.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Fe.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Fe.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Fe.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};Fy.default=FG});var Rk=m(Za=>{"use strict";c();Object.defineProperty(Za,"__esModule",{value:!0});Za.retryAfterStatusCodes=void 0;Za.retryAfterStatusCodes=new Set([413,429,503]);var PG=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Za.default=PG});var Qa=m(_e=>{"use strict";c();Object.defineProperty(_e,"__esModule",{value:!0});_e.UnsupportedProtocolError=_e.ReadError=_e.TimeoutError=_e.UploadError=_e.CacheError=_e.HTTPError=_e.MaxRedirectsError=_e.RequestError=_e.setNonEnumerableProperties=_e.knownHookEvents=_e.withoutBody=_e.kIsNormalizedAlready=void 0;var Ok=require("util"),Tk=require("stream"),IG=require("fs"),ni=require("url"),kk=require("http"),Py=require("http"),BG=require("https"),LG=GO(),NG=JO(),Fk=kT(),MG=BT(),qG=lk(),jG=ff(),R=En(),HG=mk(),Pk=vy(),$G=wy(),Ik=_k(),UG=Ek(),Bk=bk(),GG=wk(),VG=Oy(),Lk=Sk(),WG=Ty(),ii=Ck(),zG=Dk(),YG=Rk(),Iy,ct=Symbol("request"),vf=Symbol("response"),yo=Symbol("responseSize"),_o=Symbol("downloadedSize"),vo=Symbol("bodySize"),Eo=Symbol("uploadedSize"),yf=Symbol("serverResponsesPiped"),Nk=Symbol("unproxyEvents"),Mk=Symbol("isFromCache"),By=Symbol("cancelTimeouts"),qk=Symbol("startedReading"),bo=Symbol("stopReading"),_f=Symbol("triggerRead"),si=Symbol("body"),Ja=Symbol("jobs"),jk=Symbol("originalResponse"),Hk=Symbol("retryTimeout");_e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var KG=R.default.string(process.versions.brotli);_e.withoutBody=new Set(["GET","HEAD"]);_e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function ZG(t){for(let e in t){let r=t[e];if(!R.default.string(r)&&!R.default.number(r)&&!R.default.boolean(r)&&!R.default.null_(r)&&!R.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function JG(t){return R.default.object(t)&&!("statusCode"in t)}var Ly=new GG.default,XG=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),QG=new Set([300,301,302,303,304,307,308]),eV=["context","body","json","form"];_e.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(!!n)for(let i of eV)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var We=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof Cf?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[vf]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,R.default.string(r.stack)&&R.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
53
- `).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
54
- `).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
55
- `)}${u.reverse().join(`
56
- `)}`}}};_e.RequestError=We;var Ef=class extends We{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};_e.MaxRedirectsError=Ef;var bf=class extends We{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};_e.HTTPError=bf;var wf=class extends We{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};_e.CacheError=wf;var xf=class extends We{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};_e.UploadError=xf;var Sf=class extends We{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};_e.TimeoutError=Sf;var Xa=class extends We{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};_e.ReadError=Xa;var Af=class extends We{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};_e.UnsupportedProtocolError=Af;var tV=["socket","connect","continue","information","upgrade","timeout"],Cf=class extends Tk.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[_o]=0,this[Eo]=0,this.requestInitialized=!1,this[yf]=new Set,this.redirects=[],this[bo]=!1,this[_f]=!1,this[Ja]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",l=>{l.prependListener("data",i),l.on("data",s),l.prependListener("end",i),l.on("end",s)}),this.on("unpipe",l=>{l.off("data",i),l.off("data",s),l.off("end",i),l.off("end",s)}),this.on("pipe",l=>{l instanceof Py.IncomingMessage&&(this.options.headers={...l.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),_e.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(l){R.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(l);return}(async()=>{var l;try{this.options.body instanceof IG.ReadStream&&await XG(this.options.body);let{url:f}=this.options;if(!f)throw new TypeError("Missing `url` property");if(this.requestUrl=f.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(l=this[ct])===null||l===void 0||l.destroy();return}for(let h of this[Ja])h();this[Ja].length=0,this.requestInitialized=!0}catch(f){if(f instanceof We){this._beforeError(f);return}this.destroyed||this.destroy(f)}})()}static normalizeArguments(e,r,n){var i,s,o,a,u;let l=r;if(R.default.object(e)&&!R.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),R.default.urlInstance(r.url)&&(r.url=new ni.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),R.assert.any([R.default.string,R.default.undefined],r.method),R.assert.any([R.default.object,R.default.undefined],r.headers),R.assert.any([R.default.string,R.default.urlInstance,R.default.undefined],r.prefixUrl),R.assert.any([R.default.object,R.default.undefined],r.cookieJar),R.assert.any([R.default.object,R.default.string,R.default.undefined],r.searchParams),R.assert.any([R.default.object,R.default.string,R.default.undefined],r.cache),R.assert.any([R.default.object,R.default.number,R.default.undefined],r.timeout),R.assert.any([R.default.object,R.default.undefined],r.context),R.assert.any([R.default.object,R.default.undefined],r.hooks),R.assert.any([R.default.boolean,R.default.undefined],r.decompress),R.assert.any([R.default.boolean,R.default.undefined],r.ignoreInvalidCookies),R.assert.any([R.default.boolean,R.default.undefined],r.followRedirect),R.assert.any([R.default.number,R.default.undefined],r.maxRedirects),R.assert.any([R.default.boolean,R.default.undefined],r.throwHttpErrors),R.assert.any([R.default.boolean,R.default.undefined],r.http2),R.assert.any([R.default.boolean,R.default.undefined],r.allowGetBody),R.assert.any([R.default.string,R.default.undefined],r.localAddress),R.assert.any([Lk.isDnsLookupIpVersion,R.default.undefined],r.dnsLookupIpVersion),R.assert.any([R.default.object,R.default.undefined],r.https),R.assert.any([R.default.boolean,R.default.undefined],r.rejectUnauthorized),r.https&&(R.assert.any([R.default.boolean,R.default.undefined],r.https.rejectUnauthorized),R.assert.any([R.default.function_,R.default.undefined],r.https.checkServerIdentity),R.assert.any([R.default.string,R.default.object,R.default.array,R.default.undefined],r.https.certificateAuthority),R.assert.any([R.default.string,R.default.object,R.default.array,R.default.undefined],r.https.key),R.assert.any([R.default.string,R.default.object,R.default.array,R.default.undefined],r.https.certificate),R.assert.any([R.default.string,R.default.undefined],r.https.passphrase),R.assert.any([R.default.string,R.default.buffer,R.default.array,R.default.undefined],r.https.pfx)),R.assert.any([R.default.object,R.default.undefined],r.cacheOptions),R.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=jG({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let g;if(R.default.string(r.searchParams)||r.searchParams instanceof ni.URLSearchParams)g=new ni.URLSearchParams(r.searchParams);else{ZG(r.searchParams),g=new ni.URLSearchParams;for(let y in r.searchParams){let v=r.searchParams[y];v===null?g.append(y,""):v!==void 0&&g.append(y,v)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((y,v)=>{g.has(v)||g.append(v,y)}),r.searchParams=g}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",R.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),R.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=Bk.default(r.prefixUrl+r.url,r)}else(R.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=Bk.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:g}=r;Object.defineProperty(r,"prefixUrl",{set:v=>{let E=r.url;if(!E.href.startsWith(v))throw new Error(`Cannot change \`prefixUrl\` from ${g} to ${v}: ${E.href}`);r.url=new ni.URL(v+E.href.slice(g.length)),g=v},get:()=>g});let{protocol:y}=r.url;if(y==="unix:"&&(y="http:",r.url=new ni.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),y!=="http:"&&y!=="https:")throw new Af(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:f}=r;if(f){let{setCookie:g,getCookieString:y}=f;R.assert.function_(g),R.assert.function_(y),g.length===4&&y.length===0&&(g=Ok.promisify(g.bind(r.cookieJar)),y=Ok.promisify(y.bind(r.cookieJar)),r.cookieJar={setCookie:g,getCookieString:y})}let{cache:h}=r;if(h&&(Ly.has(h)||Ly.set(h,new Fk((g,y)=>{let v=g[ct](g,y);return R.default.promise(v)&&(v.once=(E,x)=>{if(E==="error")v.catch(x);else if(E==="abort")(async()=>{try{(await v).once("abort",x)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${E}`);return v}),v},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)Iy||(Iy=new NG.default),r.dnsCache=Iy;else if(!R.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${R.default(r.dnsCache)}`);R.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let d=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let g of _e.knownHookEvents)if(g in r.hooks)if(R.default.array(r.hooks[g]))r.hooks[g]=[...r.hooks[g]];else throw new TypeError(`Parameter \`${g}\` must be an Array, got ${R.default(r.hooks[g])}`);else r.hooks[g]=[];if(n&&!d)for(let g of _e.knownHookEvents)n.hooks[g].length>0&&(r.hooks[g]=[...n.hooks[g],...r.hooks[g]]);if("family"in r&&ii.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&ii.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&ii.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&ii.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&ii.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&ii.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&ii.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&ii.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let g in r.agent)if(g!=="http"&&g!=="https"&&g!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${g}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,_e.setNonEnumerableProperties([n,l],r),zG.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!R.default.undefined(e.form),i=!R.default.undefined(e.json),s=!R.default.undefined(e.body),o=n||i||s,a=_e.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof Tk.Readable)&&!R.default.string(e.body)&&!R.default.buffer(e.body)&&!Pk.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!R.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!R.default.string(r["content-type"]);s?(Pk.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[si]=e.body):n?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[si]=new ni.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[si]=e.stringifyJson(e.json));let l=await HG.default(this[si],e.headers);R.default.undefined(r["content-length"])&&R.default.undefined(r["transfer-encoding"])&&!a&&!R.default.undefined(l)&&(r["content-length"]=String(l))}}else a?this._lockWrite():this._unlockWrite();this[vo]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[jk]=e,r.decompress&&(e=MG(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:kk.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[Mk]=s.isFromCache,this[yo]=Number(e.headers["content-length"])||void 0,this[vf]=e,e.once("end",()=>{this[yo]=this[_o],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Xa(a,this))}),e.once("aborted",()=>{this._beforeError(new Xa({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(R.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&e.headers.location&&QG.has(i)){if(e.resume(),this[ct]&&(this[By](),delete this[ct],this[Nk]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[si]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Ef(this));return}try{let h=function(d){return d.protocol==="unix:"||d.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),l=new ni.URL(u,n),f=l.toString();if(decodeURI(f),!h(n)&&h(l)){this._beforeError(new We("Cannot redirect to UNIX socket",{},this));return}l.hostname!==n.hostname||l.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(l.username=r.username,l.password=r.password),this.redirects.push(f),r.url=l;for(let d of r.hooks.beforeRedirect)await d(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!WG.isResponseOk(s)){this._beforeError(new bf(s));return}e.on("readable",()=>{this[_f]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[yf])if(!a.headersSent){for(let u in e.headers){let l=r.decompress?u!=="content-encoding":!0,f=e.headers[u];l&&a.setHeader(u,f)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;LG.default(e),this[By]=Ik.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var l;e.destroy(),(l=e.res)===null||l===void 0||l.removeAllListeners("end"),u=u instanceof Ik.TimeoutError?new Sf(u,this.timings,this):new We(u.message,u,this),this._beforeError(u)}),this[Nk]=$G.default(e,this,tV),this[ct]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[si],a=this.redirects.length===0?this:e;R.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new xf(u,this))})):(this._unlockWrite(),R.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,UG.default(e)),delete r.url;let s,o=Ly.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let x in a)if(R.default.undefined(a[x]))delete a[x];else if(R.default.null_(a[x]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${x}\` header`);if(o.decompress&&R.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=KG?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let x=await o.cookieJar.getCookieString(o.url.toString());R.default.nonEmptyString(x)&&(o.headers.cookie=x)}for(let x of o.hooks.beforeRequest){let O=await x(o);if(!R.default.undefined(O)){o.request=()=>O;break}}o.body&&this[si]!==o.body&&(this[si]=o.body);let{agent:u,request:l,timeout:f,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let x=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(x!=null&&x.groups){let{socketPath:O,path:B}=x.groups;Object.assign(o,{socketPath:O,path:B,host:""})}}let d=h.protocol==="https:",g;o.http2?g=qG.auto:g=d?BG.request:kk.request;let y=(e=o.request)!==null&&e!==void 0?e:g,v=o.cache?this._createCacheableRequest:y;u&&!o.http2&&(o.agent=u[d?"https":"http"]),o[ct]=y,delete o.request,delete o.timeout;let E=o;if(E.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,E.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,E.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,E.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{E.family=Lk.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(E.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(E.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(E.ca=o.https.certificateAuthority),o.https.certificate&&(E.cert=o.https.certificate),o.https.key&&(E.key=o.https.key),o.https.passphrase&&(E.passphrase=o.https.passphrase),o.https.pfx&&(E.pfx=o.https.pfx));try{let x=await v(h,E);R.default.undefined(x)&&(x=g(h,E)),o.request=l,o.timeout=f,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete E.rejectUnauthorized,o.https.checkServerIdentity&&delete E.checkServerIdentity,o.https.certificateAuthority&&delete E.ca,o.https.certificate&&delete E.cert,o.https.key&&delete E.key,o.https.passphrase&&delete E.passphrase,o.https.pfx&&delete E.pfx),JG(x)?this._onRequest(x):this.writable?(this.once("finish",()=>{this._onResponse(x)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(x)}catch(x){throw x instanceof Fk.CacheError?new wf(x,this):new We(x.message,x,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new We(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[bo])return;let{options:r}=this,n=this.retryCount+1;this[bo]=!0,e instanceof We||(e=new We(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await VG.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:YG.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new We(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,i,n)}catch(u){this._error(new We(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[Hk]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[_f]=!0;let e=this[vf];if(e&&!this[bo]){e.readableLength&&(this[_f]=!1);let r;for(;(r=e.read())!==null;){this[_o]+=r.length,this[qk]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Ja].push(i)}_writeRequest(e,r,n){this[ct].destroyed||(this._progressCallbacks.push(()=>{this[Eo]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[ct].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(ct in this)){e();return}if(this[ct].destroyed){e();return}this[ct].end(n=>{n||(this[vo]=this[Eo],this.emit("uploadProgress",this.uploadProgress),this[ct].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Ja].push(r)}_destroy(e,r){var n;this[bo]=!0,clearTimeout(this[Hk]),ct in this&&(this[By](),!((n=this[vf])===null||n===void 0)&&n.complete||this[ct].destroy()),e!==null&&!R.default.undefined(e)&&!(e instanceof We)&&(e=new We(e.message,e,this)),r(e)}get _isAboutToError(){return this[bo]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[ct])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[jk])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[ct])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[yo]?e=this[_o]/this[yo]:this[yo]===this[_o]?e=1:e=0,{percent:e,transferred:this[_o],total:this[yo]}}get uploadProgress(){let e;return this[vo]?e=this[Eo]/this[vo]:this[vo]===this[Eo]?e=1:e=0,{percent:e,transferred:this[Eo],total:this[vo]}}get timings(){var e;return(e=this[ct])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[Mk]}pipe(e,r){if(this[qk])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof Py.ServerResponse&&this[yf].add(e),super.pipe(e,r)}unpipe(e){return e instanceof Py.ServerResponse&&this[yf].delete(e),super.unpipe(e),this}};_e.default=Cf});var eu=m(wr=>{"use strict";c();var rV=wr&&wr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),nV=wr&&wr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rV(e,t,r)};Object.defineProperty(wr,"__esModule",{value:!0});wr.CancelError=wr.ParseError=void 0;var $k=Qa(),Ny=class extends $k.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};wr.ParseError=Ny;var My=class extends $k.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};wr.CancelError=My;nV(Qa(),wr)});var Gk=m(qy=>{"use strict";c();Object.defineProperty(qy,"__esModule",{value:!0});var Uk=eu(),iV=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new Uk.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new Uk.ParseError(s,t)}};qy.default=iV});var jy=m(oi=>{"use strict";c();var sV=oi&&oi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),oV=oi&&oi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&sV(e,t,r)};Object.defineProperty(oi,"__esModule",{value:!0});var aV=require("events"),uV=En(),cV=$O(),Df=eu(),Vk=Gk(),Wk=Qa(),lV=wy(),fV=Oy(),zk=Ty(),hV=["request","response","redirect","uploadProgress","downloadProgress"];function Yk(t){let e,r,n=new aV.EventEmitter,i=new cV((o,a,u)=>{let l=f=>{let h=new Wk.default(void 0,t);h.retryCount=f,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new Df.CancelError(h))),e=h,h.once("response",async y=>{var v;if(y.retryCount=f,y.request.aborted)return;let E;try{E=await fV.default(h),y.rawBody=E}catch{return}if(h._isAboutToError)return;let x=((v=y.headers["content-encoding"])!==null&&v!==void 0?v:"").toLowerCase(),O=["gzip","deflate","br"].includes(x),{options:B}=h;if(O&&!B.decompress)y.body=E;else try{y.body=Vk.default(y,B.responseType,B.parseJson,B.encoding)}catch(z){if(y.body=E.toString(),zk.isResponseOk(y)){h._beforeError(z);return}}try{for(let[z,H]of B.hooks.afterResponse.entries())y=await H(y,async ie=>{let J=Wk.default.normalizeArguments(void 0,{...ie,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},B);J.hooks.afterResponse=J.hooks.afterResponse.slice(0,z);for(let M of J.hooks.beforeRetry)await M(J);let X=Yk(J);return u(()=>{X.catch(()=>{}),X.cancel()}),X})}catch(z){h._beforeError(new Df.RequestError(z.message,z,h));return}if(r=y,!zk.isResponseOk(y)){h._beforeError(new Df.HTTPError(y));return}h.destroy(),o(h.options.resolveBodyOnly?y.body:y)});let d=y=>{if(i.isCanceled)return;let{options:v}=h;if(y instanceof Df.HTTPError&&!v.throwHttpErrors){let{response:E}=y;o(h.options.resolveBodyOnly?E.body:E);return}a(y)};h.once("error",d);let g=h.options.body;h.once("retry",(y,v)=>{var E,x;if(g===((E=v.request)===null||E===void 0?void 0:E.options.body)&&uV.default.nodeStream((x=v.request)===null||x===void 0?void 0:x.options.body)){d(v);return}l(y)}),lV.default(h,n,hV)};l(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:u}=r.request;return Vk.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}oi.default=Yk;oV(eu(),oi)});var Kk=m(Hy=>{"use strict";c();Object.defineProperty(Hy,"__esModule",{value:!0});var dV=eu();function pV(t,...e){let r=(async()=>{if(t instanceof dV.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Hy.default=pV});var Xk=m($y=>{"use strict";c();Object.defineProperty($y,"__esModule",{value:!0});var Zk=En();function Jk(t){for(let e of Object.values(t))(Zk.default.plainObject(e)||Zk.default.array(e))&&Jk(e);return Object.freeze(t)}$y.default=Jk});var eF=m(Qk=>{"use strict";c();Object.defineProperty(Qk,"__esModule",{value:!0})});var Uy=m(fr=>{"use strict";c();var mV=fr&&fr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),gV=fr&&fr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&mV(e,t,r)};Object.defineProperty(fr,"__esModule",{value:!0});fr.defaultHandler=void 0;var tF=En(),lr=jy(),yV=Kk(),Of=Qa(),_V=Xk(),vV={RequestError:lr.RequestError,CacheError:lr.CacheError,ReadError:lr.ReadError,HTTPError:lr.HTTPError,MaxRedirectsError:lr.MaxRedirectsError,TimeoutError:lr.TimeoutError,ParseError:lr.ParseError,CancelError:lr.CancelError,UnsupportedProtocolError:lr.UnsupportedProtocolError,UploadError:lr.UploadError},EV=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Rf}=Of.default,rF=(...t)=>{let e;for(let r of t)e=Rf(void 0,r,e);return e},bV=t=>t.isStream?new Of.default(void 0,t):lr.default(t),wV=t=>"defaults"in t&&"options"in t.defaults,xV=["get","post","put","patch","head","delete"];fr.defaultHandler=(t,e)=>e(t);var nF=(t,e)=>{if(t)for(let r of t)r(e)},iF=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,u=>(o=s(u),o));if(a!==o&&!i.isStream&&o){let u=a,{then:l,catch:f,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=l,u.catch=f,u.finally=h}return a});let e=(n,i={},s)=>{var o,a;let u=0,l=f=>t.handlers[u++](f,u===t.handlers.length?bV:l);if(tF.default.plainObject(n)){let f={...n,...i};Of.setNonEnumerableProperties([n,i],f),i=f,n=void 0}try{let f;try{nF(t.options.hooks.init,i),nF((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(d){f=d}let h=Rf(n,i,s!=null?s:t.options);if(h[Of.kIsNormalizedAlready]=!0,f)throw new lr.RequestError(f.message,f,h);return l(h)}catch(f){if(i.isStream)throw f;return yV.default(f,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)wV(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==fr.defaultHandler),s.length===0&&s.push(fr.defaultHandler),iF({options:rF(...i),handlers:s,mutableDefaults:Boolean(o)})};let r=async function*(n,i){let s=Rf(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!tF.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,l=0;for(;l<o.requestLimit;){l!==0&&await EV(o.backoff);let f=await e(void 0,void 0,s),h=await o.transform(f),d=[];for(let y of h)if(o.filter(y,a,d)&&(!o.shouldContinue(y,a,d)||(yield y,o.stackAllItems&&a.push(y),d.push(y),--u<=0)))return;let g=o.paginate(f,a,d);if(g===!1)return;g===f.request.options?s=f.request.options:g!==void 0&&(s=Rf(void 0,g,s)),l++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of xV)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,vV),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:_V.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=rF,e};fr.default=iF;gV(eF(),fr)});var aF=m((bn,Tf)=>{"use strict";c();var SV=bn&&bn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),sF=bn&&bn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&SV(e,t,r)};Object.defineProperty(bn,"__esModule",{value:!0});var AV=require("url"),oF=Uy(),CV={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new AV.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[oF.defaultHandler],mutableDefaults:!1},Gy=oF.default(CV);bn.default=Gy;Tf.exports=Gy;Tf.exports.default=Gy;Tf.exports.__esModule=!0;sF(Uy(),bn);sF(jy(),bn)});var hF=m((Cte,fF)=>{c();function hr(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}fF.exports=hr;hr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};hr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};hr.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};hr.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};hr.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};hr.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};hr.prototype.start=hr.prototype.try;hr.prototype.errors=function(){return this._errors};hr.prototype.attempts=function(){return this._attempts};hr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var dF=m(Hi=>{c();var TV=hF();Hi.operation=function(t){var e=Hi.timeouts(t);return new TV(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Hi.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};Hi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Hi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(u){var l=Hi.operation(e),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){u.apply(t,f)})}.bind(t,o),t[s].options=e}}});var mF=m((Rte,pF)=>{c();pF.exports=dF()});var yF=m((Ote,gF)=>{c();var kV=mF();function FV(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=kV.operation(s);function a(f){i(f||new Error("Aborted"))}function u(f,h){if(f.bail){a(f);return}o.retry(f)?s.onRetry&&s.onRetry(f,h):i(o.mainError())}function l(f){var h;try{h=t(a,f)}catch(d){u(d,f);return}Promise.resolve(h).then(n).catch(function(g){u(g,f)})}o.attempt(l)}return new Promise(r)}gF.exports=FV});var Wy=m(Vy=>{"use strict";c();Object.defineProperty(Vy,"__esModule",{value:!0});Vy.default=GV;var $V=UV(require("crypto"));function UV(t){return t&&t.__esModule?t:{default:t}}var Ff=new Uint8Array(256),kf=Ff.length;function GV(){return kf>Ff.length-16&&($V.default.randomFillSync(Ff),kf=0),Ff.slice(kf,kf+=16)}});var _F=m(Pf=>{"use strict";c();Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=void 0;var VV=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Pf.default=VV});var tu=m(If=>{"use strict";c();Object.defineProperty(If,"__esModule",{value:!0});If.default=void 0;var WV=zV(_F());function zV(t){return t&&t.__esModule?t:{default:t}}function YV(t){return typeof t=="string"&&WV.default.test(t)}var KV=YV;If.default=KV});var nu=m(ru=>{"use strict";c();Object.defineProperty(ru,"__esModule",{value:!0});ru.default=void 0;ru.unsafeStringify=vF;var ZV=JV(tu());function JV(t){return t&&t.__esModule?t:{default:t}}var lt=[];for(let t=0;t<256;++t)lt.push((t+256).toString(16).slice(1));function vF(t,e=0){return lt[t[e+0]]+lt[t[e+1]]+lt[t[e+2]]+lt[t[e+3]]+"-"+lt[t[e+4]]+lt[t[e+5]]+"-"+lt[t[e+6]]+lt[t[e+7]]+"-"+lt[t[e+8]]+lt[t[e+9]]+"-"+lt[t[e+10]]+lt[t[e+11]]+lt[t[e+12]]+lt[t[e+13]]+lt[t[e+14]]+lt[t[e+15]]}function XV(t,e=0){let r=vF(t,e);if(!(0,ZV.default)(r))throw TypeError("Stringified UUID is invalid");return r}var QV=XV;ru.default=QV});var bF=m(Bf=>{"use strict";c();Object.defineProperty(Bf,"__esModule",{value:!0});Bf.default=void 0;var eW=rW(Wy()),tW=nu();function rW(t){return t&&t.__esModule?t:{default:t}}var EF,zy,Yy=0,Ky=0;function nW(t,e,r){let n=e&&r||0,i=e||new Array(16);t=t||{};let s=t.node||EF,o=t.clockseq!==void 0?t.clockseq:zy;if(s==null||o==null){let d=t.random||(t.rng||eW.default)();s==null&&(s=EF=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]),o==null&&(o=zy=(d[6]<<8|d[7])&16383)}let a=t.msecs!==void 0?t.msecs:Date.now(),u=t.nsecs!==void 0?t.nsecs:Ky+1,l=a-Yy+(u-Ky)/1e4;if(l<0&&t.clockseq===void 0&&(o=o+1&16383),(l<0||a>Yy)&&t.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Yy=a,Ky=u,zy=o,a+=122192928e5;let f=((a&268435455)*1e4+u)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=f&255;let h=a/4294967296*1e4&268435455;i[n++]=h>>>8&255,i[n++]=h&255,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(let d=0;d<6;++d)i[n+d]=s[d];return e||(0,tW.unsafeStringify)(i)}var iW=nW;Bf.default=iW});var Zy=m(Lf=>{"use strict";c();Object.defineProperty(Lf,"__esModule",{value:!0});Lf.default=void 0;var sW=oW(tu());function oW(t){return t&&t.__esModule?t:{default:t}}function aW(t){if(!(0,sW.default)(t))throw TypeError("Invalid UUID");let e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}var uW=aW;Lf.default=uW});var Jy=m($i=>{"use strict";c();Object.defineProperty($i,"__esModule",{value:!0});$i.URL=$i.DNS=void 0;$i.default=dW;var cW=nu(),lW=fW(Zy());function fW(t){return t&&t.__esModule?t:{default:t}}function hW(t){t=unescape(encodeURIComponent(t));let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}var wF="6ba7b810-9dad-11d1-80b4-00c04fd430c8";$i.DNS=wF;var xF="6ba7b811-9dad-11d1-80b4-00c04fd430c8";$i.URL=xF;function dW(t,e,r){function n(i,s,o,a){var u;if(typeof i=="string"&&(i=hW(i)),typeof s=="string"&&(s=(0,lW.default)(s)),((u=s)===null||u===void 0?void 0:u.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+i.length);if(l.set(s),l.set(i,s.length),l=r(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,o){a=a||0;for(let f=0;f<16;++f)o[a+f]=l[f];return o}return(0,cW.unsafeStringify)(l)}try{n.name=t}catch{}return n.DNS=wF,n.URL=xF,n}});var SF=m(Nf=>{"use strict";c();Object.defineProperty(Nf,"__esModule",{value:!0});Nf.default=void 0;var pW=mW(require("crypto"));function mW(t){return t&&t.__esModule?t:{default:t}}function gW(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),pW.default.createHash("md5").update(t).digest()}var yW=gW;Nf.default=yW});var CF=m(Mf=>{"use strict";c();Object.defineProperty(Mf,"__esModule",{value:!0});Mf.default=void 0;var _W=AF(Jy()),vW=AF(SF());function AF(t){return t&&t.__esModule?t:{default:t}}var EW=(0,_W.default)("v3",48,vW.default),bW=EW;Mf.default=bW});var DF=m(qf=>{"use strict";c();Object.defineProperty(qf,"__esModule",{value:!0});qf.default=void 0;var wW=xW(require("crypto"));function xW(t){return t&&t.__esModule?t:{default:t}}var SW={randomUUID:wW.default.randomUUID};qf.default=SW});var TF=m(jf=>{"use strict";c();Object.defineProperty(jf,"__esModule",{value:!0});jf.default=void 0;var RF=OF(DF()),AW=OF(Wy()),CW=nu();function OF(t){return t&&t.__esModule?t:{default:t}}function DW(t,e,r){if(RF.default.randomUUID&&!e&&!t)return RF.default.randomUUID();t=t||{};let n=t.random||(t.rng||AW.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return(0,CW.unsafeStringify)(n)}var RW=DW;jf.default=RW});var kF=m(Hf=>{"use strict";c();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.default=void 0;var OW=TW(require("crypto"));function TW(t){return t&&t.__esModule?t:{default:t}}function kW(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),OW.default.createHash("sha1").update(t).digest()}var FW=kW;Hf.default=FW});var PF=m($f=>{"use strict";c();Object.defineProperty($f,"__esModule",{value:!0});$f.default=void 0;var PW=FF(Jy()),IW=FF(kF());function FF(t){return t&&t.__esModule?t:{default:t}}var BW=(0,PW.default)("v5",80,IW.default),LW=BW;$f.default=LW});var IF=m(Uf=>{"use strict";c();Object.defineProperty(Uf,"__esModule",{value:!0});Uf.default=void 0;var NW="00000000-0000-0000-0000-000000000000";Uf.default=NW});var BF=m(Gf=>{"use strict";c();Object.defineProperty(Gf,"__esModule",{value:!0});Gf.default=void 0;var MW=qW(tu());function qW(t){return t&&t.__esModule?t:{default:t}}function jW(t){if(!(0,MW.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}var HW=jW;Gf.default=HW});var LF=m(xr=>{"use strict";c();Object.defineProperty(xr,"__esModule",{value:!0});Object.defineProperty(xr,"NIL",{enumerable:!0,get:function(){return WW.default}});Object.defineProperty(xr,"parse",{enumerable:!0,get:function(){return ZW.default}});Object.defineProperty(xr,"stringify",{enumerable:!0,get:function(){return KW.default}});Object.defineProperty(xr,"v1",{enumerable:!0,get:function(){return $W.default}});Object.defineProperty(xr,"v3",{enumerable:!0,get:function(){return UW.default}});Object.defineProperty(xr,"v4",{enumerable:!0,get:function(){return GW.default}});Object.defineProperty(xr,"v5",{enumerable:!0,get:function(){return VW.default}});Object.defineProperty(xr,"validate",{enumerable:!0,get:function(){return YW.default}});Object.defineProperty(xr,"version",{enumerable:!0,get:function(){return zW.default}});var $W=wn(bF()),UW=wn(CF()),GW=wn(TF()),VW=wn(PF()),WW=wn(IF()),zW=wn(BF()),YW=wn(tu()),KW=wn(nu()),ZW=wn(Zy());function wn(t){return t&&t.__esModule?t:{default:t}}});var XF=m(Wr=>{"use strict";c();Object.defineProperty(Wr,"__esModule",{value:!0});function Kz(t){return t&&t.__esModule?t:{default:t}}var YF=Object.defineProperty,WF=Object.getOwnPropertySymbols,Zz=Object.prototype.hasOwnProperty,Jz=Object.prototype.propertyIsEnumerable,zF=(t,e,r)=>e in t?YF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xz=(t,e)=>{for(var r in e||(e={}))Zz.call(e,r)&&zF(t,r,e[r]);if(WF)for(var r of WF(e))Jz.call(e,r)&&zF(t,r,e[r]);return t},Qz=(t,e)=>{for(var r in e)YF(t,r,{get:e[r],enumerable:!0})},eY=(t,e,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(l){i(l)}},o=u=>{try{a(r.throw(u))}catch(l){i(l)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),KF={};Qz(KF,{configDir:()=>JF,darwinConfig:()=>i_,getPathForPlatform:()=>o_,getPlatform:()=>n_,linuxConfig:()=>Zf,winConfig:()=>s_});var tY=require("fs/promises"),rY=require("path"),ZF=Kz(rY);function n_(){return process.platform}function Zf(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return ZF.default.join(process.env.HOME,".config")}function i_(){if(process.env.HOME!==void 0)return ZF.default.join(process.env.HOME,"/Library/Application Support")}function s_(){return process.env.APPDATA}function o_({platform:t}){switch(t){case"linux":return Zf();case"darwin":return i_();case"win32":return s_();default:return Zf()}}function JF(){return eY(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:n_(),n=o_({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield tY.stat.call(void 0,n),n}catch{return}}})}Wr.__spreadValues=Xz;Wr.getPlatform=n_;Wr.linuxConfig=Zf;Wr.darwinConfig=i_;Wr.winConfig=s_;Wr.getPathForPlatform=o_;Wr.configDir=JF;Wr.config_dir_exports=KF});var QF=m(a_=>{"use strict";c();Object.defineProperty(a_,"__esModule",{value:!0});var nY=XF();a_.configDir=nY.configDir});var s5=m((Gre,pY)=>{pY.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var u5=m(Jt=>{"use strict";c();var a5=s5(),Qe=process.env;Object.defineProperty(Jt,"_vendors",{value:a5.map(function(t){return t.constant})});Jt.name=null;Jt.isPR=null;a5.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return o5(n)});if(Jt[t.constant]=r,!!r)switch(Jt.name=t.name,typeof t.pr){case"string":Jt.isPR=!!Qe[t.pr];break;case"object":"env"in t.pr?Jt.isPR=t.pr.env in Qe&&Qe[t.pr.env]!==t.pr.ne:"any"in t.pr?Jt.isPR=t.pr.any.some(function(n){return!!Qe[n]}):Jt.isPR=o5(t.pr);break;default:Jt.isPR=null}});Jt.isCI=!!(Qe.CI!=="false"&&(Qe.BUILD_ID||Qe.BUILD_NUMBER||Qe.CI||Qe.CI_APP_ID||Qe.CI_BUILD_ID||Qe.CI_BUILD_NUMBER||Qe.CI_NAME||Qe.CONTINUOUS_INTEGRATION||Qe.RUN_ID||Jt.name||!1));function o5(t){return typeof t=="string"?!!Qe[t]:"env"in t?Qe[t.env]&&Qe[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Qe[e]}):Object.keys(t).every(function(e){return Qe[e]===t[e]})}});c();c();var k_=me(T_(),1),{program:qY,createCommand:jY,createArgument:HY,createOption:$Y,CommanderError:UY,InvalidArgumentError:GY,InvalidOptionArgumentError:VY,Command:F_,Argument:P_,Option:ts,Help:WY}=k_.default;c();c();c();var Po=require("fs");c();c();c();var pB=me(q_());c();c();function dh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}c();c();function Mo(t){return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mo(t)}c();function ph(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mh(t,e){if(e&&(Mo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ph(t)}c();function fi(t){return fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fi(t)}c();c();function Jr(t,e){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jr(t,e)}function gh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jr(t,e)}c();c();function yh(t){return Function.toString.call(t).indexOf("[native code]")!==-1}c();c();function _h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rs(t,e,r){return _h()?rs=Reflect.construct.bind():rs=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),l=new u;return o&&Jr(l,o.prototype),l},rs.apply(null,arguments)}function qo(t){var e=typeof Map=="function"?new Map:void 0;return qo=function(n){if(n===null||!yh(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return rs(n,arguments,fi(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Jr(i,n)},qo(t)}var Yh=me(rv()),Ru=me(require("path")),Ou=me(g1()),mB=function(t){gh(e,t);function e(r){var n;return dh(this,e),n=mh(this,fi(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(qo(Error));function gB(t,e){try{var r=Ou.default.readJsonSync(Ru.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(n){if(n.code!=="ENOENT")throw n}}function yB(t){try{var e=Ou.default.readJsonSync(Ru.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function _B(t){var e=Ou.default.existsSync(Ru.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function y1(t){var e={current:void 0},r=(0,Yh.sync)(function(n){return[yB(n),gB(n,e),_B(n)].find(function(i){return i})},{cwd:t,type:"directory"});if(e.current===void 0)throw new mB(t);return r===void 0?e.current:r}c();var vB=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,EB=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,bB=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Kh={Space_Separator:vB,ID_Start:EB,ID_Continue:bB},Ue={isSpaceSeparator(t){return typeof t=="string"&&Kh.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Kh.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||Kh.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},Jh,At,Qr,ku,kn,yr,et,ed,Qo,wB=function(e,r){Jh=String(e),At="start",Qr=[],ku=0,kn=1,yr=0,et=void 0,ed=void 0,Qo=void 0;do et=xB(),CB[At]();while(et.type!=="eof");return typeof r=="function"?Xh({"":Qo},"",r):Qo};function Xh(t,e,r){let n=t[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=Xh(n,s,r);o===void 0?delete n[s]:Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=Xh(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,n)}var he,ce,Xo,Xr,de;function xB(){for(he="default",ce="",Xo=!1,Xr=1;;){de=en();let t=v1[he]();if(t)return t}}function en(){if(Jh[ku])return String.fromCodePoint(Jh.codePointAt(ku))}function F(){let t=en();return t===`
57
- `?(kn++,yr=0):t?yr+=t.length:yr++,t&&(ku+=t.length),t}var v1={default(){switch(de){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
58
- `:case"\r":case"\u2028":case"\u2029":F();return;case"/":F(),he="comment";return;case void 0:return F(),Oe("eof")}if(Ue.isSpaceSeparator(de)){F();return}return v1[At]()},comment(){switch(de){case"*":F(),he="multiLineComment";return;case"/":F(),he="singleLineComment";return}throw Te(F())},multiLineComment(){switch(de){case"*":F(),he="multiLineCommentAsterisk";return;case void 0:throw Te(F())}F()},multiLineCommentAsterisk(){switch(de){case"*":F();return;case"/":F(),he="default";return;case void 0:throw Te(F())}F(),he="multiLineComment"},singleLineComment(){switch(de){case`
59
- `:case"\r":case"\u2028":case"\u2029":F(),he="default";return;case void 0:return F(),Oe("eof")}F()},value(){switch(de){case"{":case"[":return Oe("punctuator",F());case"n":return F(),mi("ull"),Oe("null",null);case"t":return F(),mi("rue"),Oe("boolean",!0);case"f":return F(),mi("alse"),Oe("boolean",!1);case"-":case"+":F()==="-"&&(Xr=-1),he="sign";return;case".":ce=F(),he="decimalPointLeading";return;case"0":ce=F(),he="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ce=F(),he="decimalInteger";return;case"I":return F(),mi("nfinity"),Oe("numeric",1/0);case"N":return F(),mi("aN"),Oe("numeric",NaN);case'"':case"'":Xo=F()==='"',ce="",he="string";return}throw Te(F())},identifierNameStartEscape(){if(de!=="u")throw Te(F());F();let t=Qh();switch(t){case"$":case"_":break;default:if(!Ue.isIdStartChar(t))throw _1();break}ce+=t,he="identifierName"},identifierName(){switch(de){case"$":case"_":case"\u200C":case"\u200D":ce+=F();return;case"\\":F(),he="identifierNameEscape";return}if(Ue.isIdContinueChar(de)){ce+=F();return}return Oe("identifier",ce)},identifierNameEscape(){if(de!=="u")throw Te(F());F();let t=Qh();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Ue.isIdContinueChar(t))throw _1();break}ce+=t,he="identifierName"},sign(){switch(de){case".":ce=F(),he="decimalPointLeading";return;case"0":ce=F(),he="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ce=F(),he="decimalInteger";return;case"I":return F(),mi("nfinity"),Oe("numeric",Xr*(1/0));case"N":return F(),mi("aN"),Oe("numeric",NaN)}throw Te(F())},zero(){switch(de){case".":ce+=F(),he="decimalPoint";return;case"e":case"E":ce+=F(),he="decimalExponent";return;case"x":case"X":ce+=F(),he="hexadecimal";return}return Oe("numeric",Xr*0)},decimalInteger(){switch(de){case".":ce+=F(),he="decimalPoint";return;case"e":case"E":ce+=F(),he="decimalExponent";return}if(Ue.isDigit(de)){ce+=F();return}return Oe("numeric",Xr*Number(ce))},decimalPointLeading(){if(Ue.isDigit(de)){ce+=F(),he="decimalFraction";return}throw Te(F())},decimalPoint(){switch(de){case"e":case"E":ce+=F(),he="decimalExponent";return}if(Ue.isDigit(de)){ce+=F(),he="decimalFraction";return}return Oe("numeric",Xr*Number(ce))},decimalFraction(){switch(de){case"e":case"E":ce+=F(),he="decimalExponent";return}if(Ue.isDigit(de)){ce+=F();return}return Oe("numeric",Xr*Number(ce))},decimalExponent(){switch(de){case"+":case"-":ce+=F(),he="decimalExponentSign";return}if(Ue.isDigit(de)){ce+=F(),he="decimalExponentInteger";return}throw Te(F())},decimalExponentSign(){if(Ue.isDigit(de)){ce+=F(),he="decimalExponentInteger";return}throw Te(F())},decimalExponentInteger(){if(Ue.isDigit(de)){ce+=F();return}return Oe("numeric",Xr*Number(ce))},hexadecimal(){if(Ue.isHexDigit(de)){ce+=F(),he="hexadecimalInteger";return}throw Te(F())},hexadecimalInteger(){if(Ue.isHexDigit(de)){ce+=F();return}return Oe("numeric",Xr*Number(ce))},string(){switch(de){case"\\":F(),ce+=SB();return;case'"':if(Xo)return F(),Oe("string",ce);ce+=F();return;case"'":if(!Xo)return F(),Oe("string",ce);ce+=F();return;case`
60
- `:case"\r":throw Te(F());case"\u2028":case"\u2029":DB(de);break;case void 0:throw Te(F())}ce+=F()},start(){switch(de){case"{":case"[":return Oe("punctuator",F())}he="value"},beforePropertyName(){switch(de){case"$":case"_":ce=F(),he="identifierName";return;case"\\":F(),he="identifierNameStartEscape";return;case"}":return Oe("punctuator",F());case'"':case"'":Xo=F()==='"',he="string";return}if(Ue.isIdStartChar(de)){ce+=F(),he="identifierName";return}throw Te(F())},afterPropertyName(){if(de===":")return Oe("punctuator",F());throw Te(F())},beforePropertyValue(){he="value"},afterPropertyValue(){switch(de){case",":case"}":return Oe("punctuator",F())}throw Te(F())},beforeArrayValue(){if(de==="]")return Oe("punctuator",F());he="value"},afterArrayValue(){switch(de){case",":case"]":return Oe("punctuator",F())}throw Te(F())},end(){throw Te(F())}};function Oe(t,e){return{type:t,value:e,line:kn,column:yr}}function mi(t){for(let e of t){if(en()!==e)throw Te(F());F()}}function SB(){switch(en()){case"b":return F(),"\b";case"f":return F(),"\f";case"n":return F(),`
61
- `;case"r":return F(),"\r";case"t":return F()," ";case"v":return F(),"\v";case"0":if(F(),Ue.isDigit(en()))throw Te(F());return"\0";case"x":return F(),AB();case"u":return F(),Qh();case`
62
- `:case"\u2028":case"\u2029":return F(),"";case"\r":return F(),en()===`
63
- `&&F(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Te(F());case void 0:throw Te(F())}return F()}function AB(){let t="",e=en();if(!Ue.isHexDigit(e)||(t+=F(),e=en(),!Ue.isHexDigit(e)))throw Te(F());return t+=F(),String.fromCodePoint(parseInt(t,16))}function Qh(){let t="",e=4;for(;e-- >0;){let r=en();if(!Ue.isHexDigit(r))throw Te(F());t+=F()}return String.fromCodePoint(parseInt(t,16))}var CB={start(){if(et.type==="eof")throw gi();Zh()},beforePropertyName(){switch(et.type){case"identifier":case"string":ed=et.value,At="afterPropertyName";return;case"punctuator":Tu();return;case"eof":throw gi()}},afterPropertyName(){if(et.type==="eof")throw gi();At="beforePropertyValue"},beforePropertyValue(){if(et.type==="eof")throw gi();Zh()},beforeArrayValue(){if(et.type==="eof")throw gi();if(et.type==="punctuator"&&et.value==="]"){Tu();return}Zh()},afterPropertyValue(){if(et.type==="eof")throw gi();switch(et.value){case",":At="beforePropertyName";return;case"}":Tu()}},afterArrayValue(){if(et.type==="eof")throw gi();switch(et.value){case",":At="beforeArrayValue";return;case"]":Tu()}},end(){}};function Zh(){let t;switch(et.type){case"punctuator":switch(et.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=et.value;break}if(Qo===void 0)Qo=t;else{let e=Qr[Qr.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,ed,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")Qr.push(t),Array.isArray(t)?At="beforeArrayValue":At="beforePropertyName";else{let e=Qr[Qr.length-1];e==null?At="end":Array.isArray(e)?At="afterArrayValue":At="afterPropertyValue"}}function Tu(){Qr.pop();let t=Qr[Qr.length-1];t==null?At="end":Array.isArray(t)?At="afterArrayValue":At="afterPropertyValue"}function Te(t){return Fu(t===void 0?`JSON5: invalid end of input at ${kn}:${yr}`:`JSON5: invalid character '${E1(t)}' at ${kn}:${yr}`)}function gi(){return Fu(`JSON5: invalid end of input at ${kn}:${yr}`)}function _1(){return yr-=5,Fu(`JSON5: invalid identifier character at ${kn}:${yr}`)}function DB(t){console.warn(`JSON5: '${E1(t)}' in strings is not valid ECMAScript; consider escaping`)}function E1(t){let e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){let r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function Fu(t){let e=new SyntaxError(t);return e.lineNumber=kn,e.columnNumber=yr,e}var RB=function(e,r,n){let i=[],s="",o,a,u="",l;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,l=r.quote,r=r.replacer),typeof r=="function")a=r;else if(Array.isArray(r)){o=[];for(let v of r){let E;typeof v=="string"?E=v:(typeof v=="number"||v instanceof String||v instanceof Number)&&(E=String(v)),E!==void 0&&o.indexOf(E)<0&&o.push(E)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),u=" ".substr(0,n)):typeof n=="string"&&(u=n.substr(0,10)),f("",{"":e});function f(v,E){let x=E[v];switch(x!=null&&(typeof x.toJSON5=="function"?x=x.toJSON5(v):typeof x.toJSON=="function"&&(x=x.toJSON(v))),a&&(x=a.call(E,v,x)),x instanceof Number?x=Number(x):x instanceof String?x=String(x):x instanceof Boolean&&(x=x.valueOf()),x){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof x=="string")return h(x,!1);if(typeof x=="number")return String(x);if(typeof x=="object")return Array.isArray(x)?y(x):d(x)}function h(v){let E={"'":.1,'"':.2},x={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},O="";for(let z=0;z<v.length;z++){let H=v[z];switch(H){case"'":case'"':E[H]++,O+=H;continue;case"\0":if(Ue.isDigit(v[z+1])){O+="\\x00";continue}}if(x[H]){O+=x[H];continue}if(H<" "){let ie=H.charCodeAt(0).toString(16);O+="\\x"+("00"+ie).substring(ie.length);continue}O+=H}let B=l||Object.keys(E).reduce((z,H)=>E[z]<E[H]?z:H);return O=O.replace(new RegExp(B,"g"),x[B]),B+O+B}function d(v){if(i.indexOf(v)>=0)throw TypeError("Converting circular structure to JSON5");i.push(v);let E=s;s=s+u;let x=o||Object.keys(v),O=[];for(let z of x){let H=f(z,v);if(H!==void 0){let ie=g(z)+":";u!==""&&(ie+=" "),ie+=H,O.push(ie)}}let B;if(O.length===0)B="{}";else{let z;if(u==="")z=O.join(","),B="{"+z+"}";else{let H=`,
64
- `+s;z=O.join(H),B=`{
65
- `+s+z+`,
66
- `+E+"}"}}return i.pop(),s=E,B}function g(v){if(v.length===0)return h(v,!0);let E=String.fromCodePoint(v.codePointAt(0));if(!Ue.isIdStartChar(E))return h(v,!0);for(let x=E.length;x<v.length;x++)if(!Ue.isIdContinueChar(String.fromCodePoint(v.codePointAt(x))))return h(v,!0);return v}function y(v){if(i.indexOf(v)>=0)throw TypeError("Converting circular structure to JSON5");i.push(v);let E=s;s=s+u;let x=[];for(let B=0;B<v.length;B++){let z=f(String(B),v);x.push(z!==void 0?z:"null")}let O;if(x.length===0)O="[]";else if(u===""){let B=x.join(",");O="["+B+"]"}else{let B=`,
67
- `+s,z=x.join(B);O=`[
68
- `+s+z+`,
69
- `+E+"]"}return i.pop(),s=E,O}},OB={parse:wB,stringify:RB},TB=OB,td=TB;c();var rd=me(require("fs")),ea=me(require("path"));function nd({target:t,cwd:e,contentCheck:r}){let n=ea.default.parse(e).root,i=!1,s=e;for(;!i&&s!==n;){if(r)try{let o=rd.default.readFileSync(ea.default.join(s,t)).toString();if(r(o)){i=!0;break}}catch{}else if(rd.default.existsSync(ea.default.join(s,t))){i=!0;break}s=ea.default.dirname(s)}return i?s:null}function kB(t){let e=td.parse(t);return!(e&&"extends"in e)}var id={};function Pu(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,n=t||process.cwd();if(r&&id[n])return id[n];let i=nd({target:"turbo.json",cwd:n,contentCheck:kB});if(!i)try{if(i=y1(n),!i)return null}catch{return null}return r&&(id[n]=i),i}c();var V4=me(require("fs")),W4=me(require("path"));c();function L1(t){return typeof t>"u"||t===null}function FB(t){return typeof t=="object"&&t!==null}function PB(t){return Array.isArray(t)?t:L1(t)?[]:[t]}function IB(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function BB(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function LB(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var NB=L1,MB=FB,qB=PB,jB=BB,HB=LB,$B=IB,Je={isNothing:NB,isObject:MB,toArray:qB,repeat:jB,isNegativeZero:HB,extend:$B};function N1(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
47
+ `.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var kR=m((vX,ia)=>{"use strict";u();var na=require("path"),OR=lm(),TR=t=>{t={cwd:process.cwd(),path:process.env[OR()],execPath:process.execPath,...t};let e,r=na.resolve(t.cwd),n=[];for(;e!==r;)n.push(na.join(r,"node_modules/.bin")),e=r,r=na.resolve(r,"..");let i=na.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(na.delimiter)};ia.exports=TR;ia.exports.default=TR;ia.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=OR({env:e});return t.path=e[r],e[r]=ia.exports(t),e}});var PR=m(Au=>{"use strict";u();Object.defineProperty(Au,"__esModule",{value:!0});Au.SIGNALS=void 0;var F6=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];Au.SIGNALS=F6});var _m=m(ws=>{"use strict";u();Object.defineProperty(ws,"__esModule",{value:!0});ws.SIGRTMAX=ws.getRealtimeSignals=void 0;var q6=function(){let t=LR-IR+1;return Array.from({length:t},B6)};ws.getRealtimeSignals=q6;var B6=function(t,e){return{name:`SIGRT${e+1}`,number:IR+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},IR=34,LR=64;ws.SIGRTMAX=LR});var NR=m(Ru=>{"use strict";u();Object.defineProperty(Ru,"__esModule",{value:!0});Ru.getSignals=void 0;var j6=require("os"),H6=PR(),$6=_m(),U6=function(){let t=(0,$6.getRealtimeSignals)();return[...H6.SIGNALS,...t].map(G6)};Ru.getSignals=U6;var G6=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=j6.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var MR=m(xs=>{"use strict";u();Object.defineProperty(xs,"__esModule",{value:!0});xs.signalsByNumber=xs.signalsByName=void 0;var V6=require("os"),DR=NR(),W6=_m(),z6=function(){return(0,DR.getSignals)().reduce(Y6,{})},Y6=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},K6=z6();xs.signalsByName=K6;var Z6=function(){let t=(0,DR.getSignals)(),e=W6.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>J6(i,t));return Object.assign({},...r)},J6=function(t,e){let r=X6(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:c}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:c}}},X6=function(t,e){let r=e.find(({name:n})=>V6.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},Q6=Z6();xs.signalsByNumber=Q6});var qR=m((SX,FR)=>{"use strict";u();var{signalsByName:e$}=MR(),t$=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",r$=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:l,killed:f,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let d=i===void 0?void 0:e$[i].description,y=n&&n.code,E=`Command ${t$({timedOut:c,timeout:h,errorCode:y,signal:i,signalDescription:d,exitCode:s,isCanceled:l})}: ${o}`,v=Object.prototype.toString.call(n)==="[object Error]",A=v?`${E}
48
+ ${n.message}`:E,P=[A,e,t].filter(Boolean).join(`
49
+ `);return v?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage=A,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(c),n.isCanceled=l,n.killed=f&&!c,n};FR.exports=r$});var jR=m((AX,vm)=>{"use strict";u();var Cu=["stdin","stdout","stderr"],n$=t=>Cu.some(e=>t[e]!==void 0),BR=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Cu.map(n=>t[n]);if(n$(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Cu.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,Cu.length);return Array.from({length:r},(n,i)=>e[i])};vm.exports=BR;vm.exports.node=t=>{let e=BR(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var $R=m((RX,HR)=>{"use strict";u();var i$=require("os"),s$=Wp(),o$=1e3*5,a$=(t,e="SIGTERM",r={})=>{let n=t(e);return c$(t,e,r,n),n},c$=(t,e,r,n)=>{if(!u$(e,r,n))return;let i=f$(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},u$=(t,{forceKillAfterTimeout:e},r)=>l$(t)&&e!==!1&&r,l$=t=>t===i$.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",f$=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return o$;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},h$=(t,e)=>{t.kill()&&(e.isCanceled=!0)},d$=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},p$=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,c)=>{i=setTimeout(()=>{d$(t,r,c)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},m$=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},g$=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=s$(()=>{t.kill()});return n.finally(()=>{i()})};HR.exports={spawnedKill:a$,spawnedCancel:h$,setupTimeout:p$,validateTimeout:m$,setExitHandler:g$}});var GR=m((CX,UR)=>{"use strict";u();var Sr=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Sr.writable=t=>Sr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Sr.readable=t=>Sr(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Sr.duplex=t=>Sr.writable(t)&&Sr.readable(t);Sr.transform=t=>Sr.duplex(t)&&typeof t._transform=="function";UR.exports=Sr});var WR=m((OX,VR)=>{"use strict";u();var{PassThrough:y$}=require("stream");VR.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new y$({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var zR=m((TX,sa)=>{"use strict";u();var{constants:_$}=require("buffer"),v$=require("stream"),{promisify:b$}=require("util"),E$=WR(),w$=b$(v$.pipeline),Ou=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function bm(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=E$(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=_$.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await w$(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Ou)})}),n.getBufferedValue()}sa.exports=bm;sa.exports.buffer=(t,e)=>bm(t,{...e,encoding:"buffer"});sa.exports.array=(t,e)=>bm(t,{...e,array:!0});sa.exports.MaxBufferError=Ou});var KR=m((kX,YR)=>{"use strict";u();var{PassThrough:x$}=require("stream");YR.exports=function(){var t=[],e=new x$({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var QR=m((PX,XR)=>{"use strict";u();var JR=GR(),ZR=zR(),S$=KR(),A$=(t,e)=>{e===void 0||t.stdin===void 0||(JR(e)?e.pipe(t.stdin):t.stdin.end(e))},R$=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=S$();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Em=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},wm=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?ZR(t,{encoding:e,maxBuffer:n}):ZR.buffer(t,{maxBuffer:n})},C$=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=wm(t,{encoding:n,buffer:i,maxBuffer:s}),c=wm(e,{encoding:n,buffer:i,maxBuffer:s}),l=wm(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,c,l])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},Em(t,a),Em(e,c),Em(r,l)])}},O$=({input:t})=>{if(JR(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};XR.exports={handleInput:A$,makeAllStream:R$,getSpawnedResult:C$,validateInputSync:O$}});var tC=m((IX,eC)=>{"use strict";u();var T$=(async()=>{})().constructor.prototype,k$=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(T$,t)]),P$=(t,e)=>{for(let[r,n]of k$){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},I$=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});eC.exports={mergePromise:P$,getSpawnedPromise:I$}});var iC=m((LX,nC)=>{"use strict";u();var rC=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],L$=/^[\w.-]+$/,N$=/"/g,D$=t=>typeof t!="string"||L$.test(t)?t:`"${t.replace(N$,'\\"')}"`,M$=(t,e)=>rC(t,e).join(" "),F$=(t,e)=>rC(t,e).map(r=>D$(r)).join(" "),q$=/ +/g,B$=t=>{let e=[];for(let r of t.trim().split(q$)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};nC.exports={joinCommand:M$,getEscapedCommand:F$,parseCommand:B$}});var fC=m((NX,Ss)=>{"use strict";u();var j$=require("path"),xm=require("child_process"),H$=AR(),$$=CR(),U$=kR(),G$=Up(),Tu=qR(),oC=jR(),{spawnedKill:V$,spawnedCancel:W$,setupTimeout:z$,validateTimeout:Y$,setExitHandler:K$}=$R(),{handleInput:Z$,getSpawnedResult:J$,makeAllStream:X$,validateInputSync:Q$}=QR(),{mergePromise:sC,getSpawnedPromise:eU}=tC(),{joinCommand:aC,parseCommand:cC,getEscapedCommand:uC}=iC(),tU=1e3*1e3*100,rU=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?U$.env({env:s,cwd:n,execPath:i}):s},lC=(t,e,r={})=>{let n=H$._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:tU,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=rU(r),r.stdio=oC(r),process.platform==="win32"&&j$.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},oa=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?$$(e):e,ku=(t,e,r)=>{let n=lC(t,e,r),i=aC(t,e),s=uC(t,e);Y$(n.options);let o;try{o=xm.spawn(n.file,n.args,n.options)}catch(y){let g=new xm.ChildProcess,E=Promise.reject(Tu({error:y,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return sC(g,E)}let a=eU(o),c=z$(o,n.options,a),l=K$(o,n.options,c),f={isCanceled:!1};o.kill=V$.bind(null,o.kill.bind(o)),o.cancel=W$.bind(null,o,f);let d=G$(async()=>{let[{error:y,exitCode:g,signal:E,timedOut:v},A,P,D]=await J$(o,n.options,l),ie=oa(n.options,A),z=oa(n.options,P),ue=oa(n.options,D);if(y||g!==0||E!==null){let K=Tu({error:y,exitCode:g,signal:E,stdout:ie,stderr:z,all:ue,command:i,escapedCommand:s,parsed:n,timedOut:v,isCanceled:f.isCanceled,killed:o.killed});if(!n.options.reject)return K;throw K}return{command:i,escapedCommand:s,exitCode:0,stdout:ie,stderr:z,all:ue,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Z$(o,n.options.input),o.all=X$(o,n.options),sC(o,d)};Ss.exports=ku;Ss.exports.sync=(t,e,r)=>{let n=lC(t,e,r),i=aC(t,e),s=uC(t,e);Q$(n.options);let o;try{o=xm.spawnSync(n.file,n.args,n.options)}catch(l){throw Tu({error:l,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=oa(n.options,o.stdout,o.error),c=oa(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=Tu({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return l;throw l}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Ss.exports.command=(t,e)=>{let[r,...n]=cC(t);return ku(r,n,e)};Ss.exports.commandSync=(t,e)=>{let[r,...n]=cC(t);return ku.sync(r,n,e)};Ss.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=oC.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return ku(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var As=m((BX,pC)=>{"use strict";u();var dC=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);pC.exports=t=>t?Object.keys(t).map(e=>[dC.has(e)?dC.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Mu=m((jX,xC)=>{"use strict";u();var mC=typeof process=="object"&&process?process:{stdout:null,stderr:null},aU=require("events"),gC=require("stream"),yC=require("string_decoder").StringDecoder,zr=Symbol("EOF"),Yr=Symbol("maybeEmitEnd"),kn=Symbol("emittedEnd"),Pu=Symbol("emittingEnd"),aa=Symbol("emittedError"),Iu=Symbol("closed"),_C=Symbol("read"),Lu=Symbol("flush"),vC=Symbol("flushChunk"),At=Symbol("encoding"),Kr=Symbol("decoder"),Nu=Symbol("flowing"),ca=Symbol("paused"),Rs=Symbol("resume"),qe=Symbol("buffer"),Ar=Symbol("pipes"),Ze=Symbol("bufferLength"),Sm=Symbol("bufferPush"),Am=Symbol("bufferShift"),ut=Symbol("objectMode"),lt=Symbol("destroyed"),Rm=Symbol("emitData"),bC=Symbol("emitEnd"),Cm=Symbol("emitEnd2"),Zr=Symbol("async"),ua=t=>Promise.resolve().then(t),EC=global._MP_NO_ITERATOR_SYMBOLS_!=="1",cU=EC&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),uU=EC&&Symbol.iterator||Symbol("iterator not implemented"),lU=t=>t==="end"||t==="finish"||t==="prefinish",fU=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,hU=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Du=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Rs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Om=class extends Du{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};xC.exports=class wC extends gC{constructor(e){super(),this[Nu]=!1,this[ca]=!1,this[Ar]=[],this[qe]=[],this[ut]=e&&e.objectMode||!1,this[ut]?this[At]=null:this[At]=e&&e.encoding||null,this[At]==="buffer"&&(this[At]=null),this[Zr]=e&&!!e.async||!1,this[Kr]=this[At]?new yC(this[At]):null,this[zr]=!1,this[kn]=!1,this[Pu]=!1,this[Iu]=!1,this[aa]=null,this.writable=!0,this.readable=!0,this[Ze]=0,this[lt]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[qe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ar]})}get bufferLength(){return this[Ze]}get encoding(){return this[At]}set encoding(e){if(this[ut])throw new Error("cannot set encoding in objectMode");if(this[At]&&e!==this[At]&&(this[Kr]&&this[Kr].lastNeed||this[Ze]))throw new Error("cannot change encoding");this[At]!==e&&(this[Kr]=e?new yC(e):null,this[qe].length&&(this[qe]=this[qe].map(r=>this[Kr].write(r)))),this[At]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ut]}set objectMode(e){this[ut]=this[ut]||!!e}get async(){return this[Zr]}set async(e){this[Zr]=this[Zr]||!!e}write(e,r,n){if(this[zr])throw new Error("write after end");if(this[lt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Zr]?ua:s=>s();return!this[ut]&&!Buffer.isBuffer(e)&&(hU(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):fU(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ut]?(this.flowing&&this[Ze]!==0&&this[Lu](!0),this.flowing?this.emit("data",e):this[Sm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[At]&&!this[Kr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[At]&&(e=this[Kr].write(e)),this.flowing&&this[Ze]!==0&&this[Lu](!0),this.flowing?this.emit("data",e):this[Sm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[lt])return null;if(this[Ze]===0||e===0||e>this[Ze])return this[Yr](),null;this[ut]&&(e=null),this[qe].length>1&&!this[ut]&&(this.encoding?this[qe]=[this[qe].join("")]:this[qe]=[Buffer.concat(this[qe],this[Ze])]);let r=this[_C](e||null,this[qe][0]);return this[Yr](),r}[_C](e,r){return e===r.length||e===null?this[Am]():(this[qe][0]=r.slice(e),r=r.slice(0,e),this[Ze]-=e),this.emit("data",r),!this[qe].length&&!this[zr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[zr]=!0,this.writable=!1,(this.flowing||!this[ca])&&this[Yr](),this}[Rs](){this[lt]||(this[ca]=!1,this[Nu]=!0,this.emit("resume"),this[qe].length?this[Lu]():this[zr]?this[Yr]():this.emit("drain"))}resume(){return this[Rs]()}pause(){this[Nu]=!1,this[ca]=!0}get destroyed(){return this[lt]}get flowing(){return this[Nu]}get paused(){return this[ca]}[Sm](e){this[ut]?this[Ze]+=1:this[Ze]+=e.length,this[qe].push(e)}[Am](){return this[qe].length&&(this[ut]?this[Ze]-=1:this[Ze]-=this[qe][0].length),this[qe].shift()}[Lu](e){do;while(this[vC](this[Am]()));!e&&!this[qe].length&&!this[zr]&&this.emit("drain")}[vC](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[lt])return;let n=this[kn];return r=r||{},e===mC.stdout||e===mC.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Ar].push(r.proxyErrors?new Om(this,e,r):new Du(this,e,r)),this[Zr]?ua(()=>this[Rs]()):this[Rs]()),e}unpipe(e){let r=this[Ar].find(n=>n.dest===e);r&&(this[Ar].splice(this[Ar].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[Ar].length&&!this.flowing?this[Rs]():e==="readable"&&this[Ze]!==0?super.emit("readable"):lU(e)&&this[kn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[aa]&&(this[Zr]?ua(()=>r.call(this,this[aa])):r.call(this,this[aa])),n}get emittedEnd(){return this[kn]}[Yr](){!this[Pu]&&!this[kn]&&!this[lt]&&this[qe].length===0&&this[zr]&&(this[Pu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Iu]&&this.emit("close"),this[Pu]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==lt&&this[lt])return;if(e==="data")return r?this[Zr]?ua(()=>this[Rm](r)):this[Rm](r):!1;if(e==="end")return this[bC]();if(e==="close"){if(this[Iu]=!0,!this[kn]&&!this[lt])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[aa]=r;let s=super.emit("error",r);return this[Yr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Yr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Yr](),i}[Rm](e){for(let n of this[Ar])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Yr](),r}[bC](){this[kn]||(this[kn]=!0,this.readable=!1,this[Zr]?ua(()=>this[Cm]()):this[Cm]())}[Cm](){if(this[Kr]){let r=this[Kr].end();if(r){for(let n of this[Ar])n.dest.write(r);super.emit("data",r)}}for(let r of this[Ar])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ut]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ut]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ut]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ut]?Promise.reject(new Error("cannot concat in objectMode")):this[At]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(lt,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[cU](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[zr])return Promise.resolve({done:!0});let n=null,i=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),i(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:l,done:!!this[zr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,f)=>{i=f,n=l,this.once(lt,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[uU](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[lt]?(e?this.emit("error",e):this.emit(lt),this):(this[lt]=!0,this[qe].length=0,this[Ze]=0,typeof this.close=="function"&&!this[Iu]&&this.close(),e?this.emit("error",e):this.emit(lt),this)}static isStream(e){return!!e&&(e instanceof wC||e instanceof gC||e instanceof aU&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var AC=m((HX,SC)=>{u();var dU=require("zlib").constants||{ZLIB_VERNUM:4736};SC.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},dU))});var Nm=m(($X,NC)=>{"use strict";u();var RC=typeof process=="object"&&process?process:{stdout:null,stderr:null},pU=require("events"),CC=require("stream"),OC=require("string_decoder").StringDecoder,Jr=Symbol("EOF"),Xr=Symbol("maybeEmitEnd"),Pn=Symbol("emittedEnd"),Fu=Symbol("emittingEnd"),la=Symbol("emittedError"),qu=Symbol("closed"),TC=Symbol("read"),Bu=Symbol("flush"),kC=Symbol("flushChunk"),Rt=Symbol("encoding"),Qr=Symbol("decoder"),ju=Symbol("flowing"),fa=Symbol("paused"),Cs=Symbol("resume"),Je=Symbol("bufferLength"),Tm=Symbol("bufferPush"),km=Symbol("bufferShift"),ft=Symbol("objectMode"),ht=Symbol("destroyed"),Pm=Symbol("emitData"),PC=Symbol("emitEnd"),Im=Symbol("emitEnd2"),en=Symbol("async"),ha=t=>Promise.resolve().then(t),IC=global._MP_NO_ITERATOR_SYMBOLS_!=="1",mU=IC&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),gU=IC&&Symbol.iterator||Symbol("iterator not implemented"),yU=t=>t==="end"||t==="finish"||t==="prefinish",_U=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,vU=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Hu=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Cs](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Lm=class extends Hu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};NC.exports=class LC extends CC{constructor(e){super(),this[ju]=!1,this[fa]=!1,this.pipes=[],this.buffer=[],this[ft]=e&&e.objectMode||!1,this[ft]?this[Rt]=null:this[Rt]=e&&e.encoding||null,this[Rt]==="buffer"&&(this[Rt]=null),this[en]=e&&!!e.async||!1,this[Qr]=this[Rt]?new OC(this[Rt]):null,this[Jr]=!1,this[Pn]=!1,this[Fu]=!1,this[qu]=!1,this[la]=null,this.writable=!0,this.readable=!0,this[Je]=0,this[ht]=!1}get bufferLength(){return this[Je]}get encoding(){return this[Rt]}set encoding(e){if(this[ft])throw new Error("cannot set encoding in objectMode");if(this[Rt]&&e!==this[Rt]&&(this[Qr]&&this[Qr].lastNeed||this[Je]))throw new Error("cannot change encoding");this[Rt]!==e&&(this[Qr]=e?new OC(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Qr].write(r)))),this[Rt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ft]}set objectMode(e){this[ft]=this[ft]||!!e}get async(){return this[en]}set async(e){this[en]=this[en]||!!e}write(e,r,n){if(this[Jr])throw new Error("write after end");if(this[ht])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[en]?ha:s=>s();return!this[ft]&&!Buffer.isBuffer(e)&&(vU(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):_U(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ft]?(this.flowing&&this[Je]!==0&&this[Bu](!0),this.flowing?this.emit("data",e):this[Tm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Rt]&&!this[Qr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Rt]&&(e=this[Qr].write(e)),this.flowing&&this[Je]!==0&&this[Bu](!0),this.flowing?this.emit("data",e):this[Tm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ht])return null;if(this[Je]===0||e===0||e>this[Je])return this[Xr](),null;this[ft]&&(e=null),this.buffer.length>1&&!this[ft]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Je])]);let r=this[TC](e||null,this.buffer[0]);return this[Xr](),r}[TC](e,r){return e===r.length||e===null?this[km]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Je]-=e),this.emit("data",r),!this.buffer.length&&!this[Jr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Jr]=!0,this.writable=!1,(this.flowing||!this[fa])&&this[Xr](),this}[Cs](){this[ht]||(this[fa]=!1,this[ju]=!0,this.emit("resume"),this.buffer.length?this[Bu]():this[Jr]?this[Xr]():this.emit("drain"))}resume(){return this[Cs]()}pause(){this[ju]=!1,this[fa]=!0}get destroyed(){return this[ht]}get flowing(){return this[ju]}get paused(){return this[fa]}[Tm](e){this[ft]?this[Je]+=1:this[Je]+=e.length,this.buffer.push(e)}[km](){return this.buffer.length&&(this[ft]?this[Je]-=1:this[Je]-=this.buffer[0].length),this.buffer.shift()}[Bu](e){do;while(this[kC](this[km]()));!e&&!this.buffer.length&&!this[Jr]&&this.emit("drain")}[kC](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ht])return;let n=this[Pn];return r=r||{},e===RC.stdout||e===RC.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Lm(this,e,r):new Hu(this,e,r)),this[en]?ha(()=>this[Cs]()):this[Cs]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[Cs]():e==="readable"&&this[Je]!==0?super.emit("readable"):yU(e)&&this[Pn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[la]&&(this[en]?ha(()=>r.call(this,this[la])):r.call(this,this[la])),n}get emittedEnd(){return this[Pn]}[Xr](){!this[Fu]&&!this[Pn]&&!this[ht]&&this.buffer.length===0&&this[Jr]&&(this[Fu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[qu]&&this.emit("close"),this[Fu]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ht&&this[ht])return;if(e==="data")return r?this[en]?ha(()=>this[Pm](r)):this[Pm](r):!1;if(e==="end")return this[PC]();if(e==="close"){if(this[qu]=!0,!this[Pn]&&!this[ht])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[la]=r;let s=super.emit("error",r);return this[Xr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Xr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Xr](),i}[Pm](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Xr](),r}[PC](){this[Pn]||(this[Pn]=!0,this.readable=!1,this[en]?ha(()=>this[Im]()):this[Im]())}[Im](){if(this[Qr]){let r=this[Qr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ft]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ft]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ft]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ft]?Promise.reject(new Error("cannot concat in objectMode")):this[Rt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ht,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[mU](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Jr])return Promise.resolve({done:!0});let n=null,i=null,s=l=>{this.removeListener("data",o),this.removeListener("end",a),i(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:l,done:!!this[Jr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((l,f)=>{i=f,n=l,this.once(ht,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[gU](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ht]?(e?this.emit("error",e):this.emit(ht),this):(this[ht]=!0,this.buffer.length=0,this[Je]=0,typeof this.close=="function"&&!this[qu]&&this.close(),e?this.emit("error",e):this.emit(ht),this)}static isStream(e){return!!e&&(e instanceof LC||e instanceof CC||e instanceof pU&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Zm=m(Nt=>{"use strict";u();var Bm=require("assert"),In=require("buffer").Buffer,FC=require("zlib"),hi=Nt.constants=AC(),bU=Nm(),DC=In.concat,di=Symbol("_superWrite"),Ts=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},EU=Symbol("opts"),da=Symbol("flushFlag"),MC=Symbol("finishFlushFlag"),Km=Symbol("fullFlushFlag"),Ae=Symbol("handle"),$u=Symbol("onError"),Os=Symbol("sawError"),Dm=Symbol("level"),Mm=Symbol("strategy"),Fm=Symbol("ended"),UX=Symbol("_defaultFullFlush"),Uu=class extends bU{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Os]=!1,this[Fm]=!1,this[EU]=e,this[da]=e.flush,this[MC]=e.finishFlush;try{this[Ae]=new FC[r](e)}catch(n){throw new Ts(n)}this[$u]=n=>{this[Os]||(this[Os]=!0,this.close(),this.emit("error",n))},this[Ae].on("error",n=>this[$u](new Ts(n))),this.once("end",()=>this.close)}close(){this[Ae]&&(this[Ae].close(),this[Ae]=null,this.emit("close"))}reset(){if(!this[Os])return Bm(this[Ae],"zlib binding closed"),this[Ae].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Km]),this.write(Object.assign(In.alloc(0),{[da]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[MC]),this[Fm]=!0,super.end(null,null,n)}get ended(){return this[Fm]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=In.from(e,r)),this[Os])return;Bm(this[Ae],"zlib binding closed");let i=this[Ae]._handle,s=i.close;i.close=()=>{};let o=this[Ae].close;this[Ae].close=()=>{},In.concat=l=>l;let a;try{let l=typeof e[da]=="number"?e[da]:this[da];a=this[Ae]._processChunk(e,l),In.concat=DC}catch(l){In.concat=DC,this[$u](new Ts(l))}finally{this[Ae]&&(this[Ae]._handle=i,i.close=s,this[Ae].close=o,this[Ae].removeAllListeners("error"))}this[Ae]&&this[Ae].on("error",l=>this[$u](new Ts(l)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[di](In.from(a[0]));for(let l=1;l<a.length;l++)c=this[di](a[l])}else c=this[di](In.from(a));return n&&n(),c}[di](e){return super.write(e)}},tn=class extends Uu{constructor(e,r){e=e||{},e.flush=e.flush||hi.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hi.Z_FINISH,super(e,r),this[Km]=hi.Z_FULL_FLUSH,this[Dm]=e.level,this[Mm]=e.strategy}params(e,r){if(!this[Os]){if(!this[Ae])throw new Error("cannot switch params when binding is closed");if(!this[Ae].params)throw new Error("not supported in this implementation");if(this[Dm]!==e||this[Mm]!==r){this.flush(hi.Z_SYNC_FLUSH),Bm(this[Ae],"zlib binding closed");let n=this[Ae].flush;this[Ae].flush=(i,s)=>{this.flush(i),s()};try{this[Ae].params(e,r)}finally{this[Ae].flush=n}this[Ae]&&(this[Dm]=e,this[Mm]=r)}}}},jm=class extends tn{constructor(e){super(e,"Deflate")}},Hm=class extends tn{constructor(e){super(e,"Inflate")}},qm=Symbol("_portable"),$m=class extends tn{constructor(e){super(e,"Gzip"),this[qm]=e&&!!e.portable}[di](e){return this[qm]?(this[qm]=!1,e[9]=255,super[di](e)):super[di](e)}},Um=class extends tn{constructor(e){super(e,"Gunzip")}},Gm=class extends tn{constructor(e){super(e,"DeflateRaw")}},Vm=class extends tn{constructor(e){super(e,"InflateRaw")}},Wm=class extends tn{constructor(e){super(e,"Unzip")}},Gu=class extends Uu{constructor(e,r){e=e||{},e.flush=e.flush||hi.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hi.BROTLI_OPERATION_FINISH,super(e,r),this[Km]=hi.BROTLI_OPERATION_FLUSH}},zm=class extends Gu{constructor(e){super(e,"BrotliCompress")}},Ym=class extends Gu{constructor(e){super(e,"BrotliDecompress")}};Nt.Deflate=jm;Nt.Inflate=Hm;Nt.Gzip=$m;Nt.Gunzip=Um;Nt.DeflateRaw=Gm;Nt.InflateRaw=Vm;Nt.Unzip=Wm;typeof FC.BrotliCompress=="function"?(Nt.BrotliCompress=zm,Nt.BrotliDecompress=Ym):Nt.BrotliCompress=Nt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ks=m((WX,qC)=>{u();var wU=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;qC.exports=wU!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Vu=m((YX,BC)=>{"use strict";u();var xU=Mu(),Jm=ks(),Xm=Symbol("slurp");BC.exports=class extends xU{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Jm(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Jm(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Xm](r),n&&this[Xm](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Xm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Jm(e[n]):e[n])}}});var Qm=m(Wu=>{"use strict";u();Wu.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Wu.code=new Map(Array.from(Wu.name).map(t=>[t[1],t[0]]))});var UC=m((ZX,$C)=>{"use strict";u();var SU=(t,e)=>{if(Number.isSafeInteger(t))t<0?RU(t,e):AU(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},AU=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},RU=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=jC(i):i===0?e[n-1]=0:(r=!0,e[n-1]=HC(i))}},CU=t=>{let e=t[0],r=e===128?TU(t.slice(1,t.length)):e===255?OU(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},OU=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=jC(s):s===0?o=s:(n=!0,o=HC(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},TU=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},jC=t=>(255^t)&255,HC=t=>(255^t)+1&255;$C.exports={encode:SU,parse:CU}});var Is=m((JX,VC)=>{"use strict";u();var eg=Qm(),Ps=require("path").posix,GC=UC(),tg=Symbol("slurp"),Dt=Symbol("type"),ig=class{constructor(e,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Dt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=pi(e,r,100),this.mode=Ln(e,r+100,8),this.uid=Ln(e,r+108,8),this.gid=Ln(e,r+116,8),this.size=Ln(e,r+124,12),this.mtime=rg(e,r+136,12),this.cksum=Ln(e,r+148,12),this[tg](n),this[tg](i,!0),this[Dt]=pi(e,r+156,1),this[Dt]===""&&(this[Dt]="0"),this[Dt]==="0"&&this.path.slice(-1)==="/"&&(this[Dt]="5"),this[Dt]==="5"&&(this.size=0),this.linkpath=pi(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=pi(e,r+265,32),this.gname=pi(e,r+297,32),this.devmaj=Ln(e,r+329,8),this.devmin=Ln(e,r+337,8),e[r+475]!==0){let o=pi(e,r+345,155);this.path=o+"/"+this.path}else{let o=pi(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=rg(e,r+476,12),this.ctime=rg(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[tg](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=kU(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=mi(e,r,100,s)||this.needPax,this.needPax=Nn(e,r+100,8,this.mode)||this.needPax,this.needPax=Nn(e,r+108,8,this.uid)||this.needPax,this.needPax=Nn(e,r+116,8,this.gid)||this.needPax,this.needPax=Nn(e,r+124,12,this.size)||this.needPax,this.needPax=ng(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Dt].charCodeAt(0),this.needPax=mi(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=mi(e,r+265,32,this.uname)||this.needPax,this.needPax=mi(e,r+297,32,this.gname)||this.needPax,this.needPax=Nn(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Nn(e,r+337,8,this.devmin)||this.needPax,this.needPax=mi(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=mi(e,r+345,155,o)||this.needPax:(this.needPax=mi(e,r+345,130,o)||this.needPax,this.needPax=ng(e,r+476,12,this.atime)||this.needPax,this.needPax=ng(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,Nn(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return eg.name.get(this[Dt])||this[Dt]}get typeKey(){return this[Dt]}set type(e){eg.code.has(e)?this[Dt]=eg.code.get(e):this[Dt]=e}},kU=(t,e)=>{let n=t,i="",s,o=Ps.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Ps.dirname(n),n=Ps.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=Ps.join(Ps.basename(i),n),i=Ps.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},pi=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),rg=(t,e,r)=>PU(Ln(t,e,r)),PU=t=>t===null?null:new Date(t*1e3),Ln=(t,e,r)=>t[e]&128?GC.parse(t.slice(e,e+r)):LU(t,e,r),IU=t=>isNaN(t)?null:t,LU=(t,e,r)=>IU(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),NU={12:8589934591,8:2097151},Nn=(t,e,r,n)=>n===null?!1:n>NU[r]||n<0?(GC.encode(n,t.slice(e,e+r)),!0):(DU(t,e,r,n),!1),DU=(t,e,r,n)=>t.write(MU(n,r),e,r,"ascii"),MU=(t,e)=>FU(Math.floor(t).toString(8),e),FU=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",ng=(t,e,r,n)=>n===null?!1:Nn(t,e,r,n.getTime()/1e3),qU=new Array(156).join("\0"),mi=(t,e,r,n)=>n===null?!1:(t.write(n+qU,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);VC.exports=ig});var zu=m((XX,WC)=>{"use strict";u();var BU=Is(),jU=require("path"),pa=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new BU({path:("PaxHeader/"+jU.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
50
+ `,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};pa.parse=(t,e,r)=>new pa(HU($U(t),e),r);var HU=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,$U=t=>t.replace(/\n$/,"").split(`
51
+ `).reduce(UU,Object.create(null)),UU=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};WC.exports=pa});var Ls=m((QX,zC)=>{u();zC.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Yu=m((eQ,YC)=>{"use strict";u();YC.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var og=m((rQ,KC)=>{"use strict";u();var Ku=["|","<",">","?",":"],sg=Ku.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),GU=new Map(Ku.map((t,e)=>[t,sg[e]])),VU=new Map(sg.map((t,e)=>[t,Ku[e]]));KC.exports={encode:t=>Ku.reduce((e,r)=>e.split(r).join(GU.get(r)),t),decode:t=>sg.reduce((e,r)=>e.split(r).join(VU.get(r)),t)}});var ag=m((nQ,JC)=>{u();var{isAbsolute:WU,parse:ZC}=require("path").win32;JC.exports=t=>{let e="",r=ZC(t);for(;WU(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=ZC(t)}return[e,t]}});var QC=m((iQ,XC)=>{"use strict";u();XC.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var yg=m((aQ,dO)=>{"use strict";u();var oO=Mu(),aO=zu(),cO=Is(),Cr=require("fs"),eO=require("path"),Rr=ks(),zU=Ls(),uO=(t,e)=>e?(t=Rr(t).replace(/^\.(\/|$)/,""),zU(e)+"/"+t):Rr(t),YU=16*1024*1024,tO=Symbol("process"),rO=Symbol("file"),nO=Symbol("directory"),ug=Symbol("symlink"),iO=Symbol("hardlink"),ma=Symbol("header"),Zu=Symbol("read"),lg=Symbol("lstat"),Ju=Symbol("onlstat"),fg=Symbol("onread"),hg=Symbol("onreadlink"),dg=Symbol("openfile"),pg=Symbol("onopenfile"),Dn=Symbol("close"),Xu=Symbol("mode"),mg=Symbol("awaitDrain"),cg=Symbol("ondrain"),Or=Symbol("prefix"),sO=Symbol("hadError"),lO=Yu(),KU=og(),fO=ag(),hO=QC(),Qu=lO(class extends oO{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Rr(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||YU,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Rr(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Rr(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=fO(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=KU.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Rr(r.absolute||eO.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Ju](this.statCache.get(this.absolute)):this[lg]()}emit(e,...r){return e==="error"&&(this[sO]=!0),super.emit(e,...r)}[lg](){Cr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Ju](r)})}[Ju](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=JU(e),this.emit("stat",e),this[tO]()}[tO](){switch(this.type){case"File":return this[rO]();case"Directory":return this[nO]();case"SymbolicLink":return this[ug]();default:return this.end()}}[Xu](e){return hO(e,this.type==="Directory",this.portable)}[Or](e){return uO(e,this.prefix)}[ma](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new cO({path:this[Or](this.path),linkpath:this.type==="Link"?this[Or](this.linkpath):this.linkpath,mode:this[Xu](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new aO({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Or](this.path),linkpath:this.type==="Link"?this[Or](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[nO](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ma](),this.end()}[ug](){Cr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[hg](r)})}[hg](e){this.linkpath=Rr(e),this[ma](),this.end()}[iO](e){this.type="Link",this.linkpath=Rr(eO.relative(this.cwd,e)),this.stat.size=0,this[ma](),this.end()}[rO](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[iO](r)}this.linkCache.set(e,this.absolute)}if(this[ma](),this.stat.size===0)return this.end();this[dg]()}[dg](){Cr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[pg](r)})}[pg](e){if(this.fd=e,this[sO])return this[Dn]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[Zu]()}[Zu](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Cr.read(e,r,n,i,s,(o,a)=>{if(o)return this[Dn](()=>this.emit("error",o));this[fg](a)})}[Dn](e){Cr.close(this.fd,e)}[fg](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Dn](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Dn](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[cg]():this[mg](()=>this[cg]())}[mg](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[cg](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Dn](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[Zu]()}}),gg=class extends Qu{[lg](){this[Ju](Cr.lstatSync(this.absolute))}[ug](){this[hg](Cr.readlinkSync(this.absolute))}[dg](){this[pg](Cr.openSync(this.absolute,"r"))}[Zu](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Cr.readSync(r,n,i,s,o);this[fg](a),e=!1}finally{if(e)try{this[Dn](()=>{})}catch{}}}[mg](e){e()}[Dn](e){Cr.closeSync(this.fd),e()}},ZU=lO(class extends oO{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Rr(e.path),this.mode=this[Xu](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Rr(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=fO(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new cO({path:this[Or](this.path),linkpath:this.type==="Link"?this[Or](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new aO({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Or](this.path),linkpath:this.type==="Link"?this[Or](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Or](e){return uO(e,this.prefix)}[Xu](e){return hO(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Qu.Sync=gg;Qu.Tar=ZU;var JU=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";dO.exports=Qu});var mO=m((cQ,pO)=>{"use strict";u();pO.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var _g=m((uQ,gO)=>{"use strict";u();gO.exports=he;he.Node=gi;he.create=he;function he(t){var e=this;if(e instanceof he||(e=new he),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}he.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};he.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};he.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};he.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)QU(this,arguments[t]);return this.length};he.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)e4(this,arguments[t]);return this.length};he.prototype.pop=function(){if(!!this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};he.prototype.shift=function(){if(!!this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};he.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};he.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};he.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};he.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};he.prototype.map=function(t,e){e=e||this;for(var r=new he,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};he.prototype.mapReverse=function(t,e){e=e||this;for(var r=new he,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};he.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};he.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};he.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};he.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};he.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};he.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};he.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=XU(this,i,r[n]);return s};he.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function XU(t,e,r){var n=e===t.head?new gi(r,null,e,t):new gi(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function QU(t,e){t.tail=new gi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function e4(t,e){t.head=new gi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function gi(t,e,r,n){if(!(this instanceof gi))return new gi(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{mO()(he)}catch{}});var cl=m((fQ,xO)=>{"use strict";u();var ol=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},t4=Mu(),r4=Zm(),n4=Vu(),Cg=yg(),i4=Cg.Sync,s4=Cg.Tar,o4=_g(),yO=Buffer.alloc(1024),rl=Symbol("onStat"),el=Symbol("ended"),Tr=Symbol("queue"),Ns=Symbol("current"),yi=Symbol("process"),tl=Symbol("processing"),_O=Symbol("processJob"),kr=Symbol("jobs"),vg=Symbol("jobDone"),nl=Symbol("addFSEntry"),vO=Symbol("addTarEntry"),xg=Symbol("stat"),Sg=Symbol("readdir"),il=Symbol("onreaddir"),sl=Symbol("pipe"),bO=Symbol("entry"),bg=Symbol("entryOpt"),Ag=Symbol("writeEntryClass"),wO=Symbol("write"),Eg=Symbol("ondrain"),al=require("fs"),EO=require("path"),a4=Yu(),wg=ks(),Og=a4(class extends t4{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=wg(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Ag]=Cg,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new r4.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Eg]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Eg]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Tr]=new o4,this[kr]=0,this.jobs=+e.jobs||4,this[tl]=!1,this[el]=!1}[wO](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[el]=!0,this[yi](),this}write(e){if(this[el])throw new Error("write after end");return e instanceof n4?this[vO](e):this[nl](e),this.flowing}[vO](e){let r=wg(EO.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new ol(e.path,r,!1);n.entry=new s4(e,this[bg](n)),n.entry.on("end",i=>this[vg](n)),this[kr]+=1,this[Tr].push(n)}this[yi]()}[nl](e){let r=wg(EO.resolve(this.cwd,e));this[Tr].push(new ol(e,r)),this[yi]()}[xg](e){e.pending=!0,this[kr]+=1;let r=this.follow?"stat":"lstat";al[r](e.absolute,(n,i)=>{e.pending=!1,this[kr]-=1,n?this.emit("error",n):this[rl](e,i)})}[rl](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[yi]()}[Sg](e){e.pending=!0,this[kr]+=1,al.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[kr]-=1,r)return this.emit("error",r);this[il](e,n)})}[il](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[yi]()}[yi](){if(!this[tl]){this[tl]=!0;for(let e=this[Tr].head;e!==null&&this[kr]<this.jobs;e=e.next)if(this[_O](e.value),e.value.ignore){let r=e.next;this[Tr].removeNode(e),e.next=r}this[tl]=!1,this[el]&&!this[Tr].length&&this[kr]===0&&(this.zip?this.zip.end(yO):(super.write(yO),super.end()))}}get[Ns](){return this[Tr]&&this[Tr].head&&this[Tr].head.value}[vg](e){this[Tr].shift(),this[kr]-=1,this[yi]()}[_O](e){if(!e.pending){if(e.entry){e===this[Ns]&&!e.piped&&this[sl](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[rl](e,this.statCache.get(e.absolute)):this[xg](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[il](e,this.readdirCache.get(e.absolute)):this[Sg](e),!e.readdir))){if(e.entry=this[bO](e),!e.entry){e.ignore=!0;return}e===this[Ns]&&!e.piped&&this[sl](e)}}}[bg](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[bO](e){this[kr]+=1;try{return new this[Ag](e.path,this[bg](e)).on("end",()=>this[vg](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Eg](){this[Ns]&&this[Ns].entry&&this[Ns].entry.resume()}[sl](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[nl](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Rg=class extends Og{constructor(e){super(e),this[Ag]=i4}pause(){}resume(){}[xg](e){let r=this.follow?"statSync":"lstatSync";this[rl](e,al[r](e.absolute))}[Sg](e,r){this[il](e,al.readdirSync(e.absolute))}[sl](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[nl](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[wO](i)})}};Og.Sync=Rg;xO.exports=Og});var $s=m(ya=>{"use strict";u();var c4=Nm(),u4=require("events").EventEmitter,Ct=require("fs"),Pg=Ct.writev;if(!Pg){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Pg=(r,n,i,s)=>{let o=(c,l)=>s(c,l,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var js=Symbol("_autoClose"),lr=Symbol("_close"),ga=Symbol("_ended"),be=Symbol("_fd"),SO=Symbol("_finished"),Fn=Symbol("_flags"),Tg=Symbol("_flush"),Ig=Symbol("_handleChunk"),Lg=Symbol("_makeBuf"),dl=Symbol("_mode"),ul=Symbol("_needDrain"),qs=Symbol("_onerror"),Hs=Symbol("_onopen"),kg=Symbol("_onread"),Ms=Symbol("_onwrite"),qn=Symbol("_open"),rn=Symbol("_path"),_i=Symbol("_pos"),Pr=Symbol("_queue"),Fs=Symbol("_read"),AO=Symbol("_readSize"),Mn=Symbol("_reading"),ll=Symbol("_remain"),RO=Symbol("_size"),fl=Symbol("_write"),Ds=Symbol("_writing"),hl=Symbol("_defaultFlag"),Bs=Symbol("_errored"),pl=class extends c4{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Bs]=!1,this[be]=typeof r.fd=="number"?r.fd:null,this[rn]=e,this[AO]=r.readSize||16*1024*1024,this[Mn]=!1,this[RO]=typeof r.size=="number"?r.size:1/0,this[ll]=this[RO],this[js]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[be]=="number"?this[Fs]():this[qn]()}get fd(){return this[be]}get path(){return this[rn]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[qn](){Ct.open(this[rn],"r",(e,r)=>this[Hs](e,r))}[Hs](e,r){e?this[qs](e):(this[be]=r,this.emit("open",r),this[Fs]())}[Lg](){return Buffer.allocUnsafe(Math.min(this[AO],this[ll]))}[Fs](){if(!this[Mn]){this[Mn]=!0;let e=this[Lg]();if(e.length===0)return process.nextTick(()=>this[kg](null,0,e));Ct.read(this[be],e,0,e.length,null,(r,n,i)=>this[kg](r,n,i))}}[kg](e,r,n){this[Mn]=!1,e?this[qs](e):this[Ig](r,n)&&this[Fs]()}[lr](){if(this[js]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[qs](e){this[Mn]=!0,this[lr](),this.emit("error",e)}[Ig](e,r){let n=!1;return this[ll]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[ll]<=0)&&(n=!1,this[lr](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[be]=="number"&&this[Fs]();break;case"error":return this[Bs]?void 0:(this[Bs]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Ng=class extends pl{[qn](){let e=!0;try{this[Hs](null,Ct.openSync(this[rn],"r")),e=!1}finally{e&&this[lr]()}}[Fs](){let e=!0;try{if(!this[Mn]){this[Mn]=!0;do{let r=this[Lg](),n=r.length===0?0:Ct.readSync(this[be],r,0,r.length,null);if(!this[Ig](n,r))break}while(!0);this[Mn]=!1}e=!1}finally{e&&this[lr]()}}[lr](){if(this[js]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.closeSync(e),this.emit("close")}}},ml=class extends u4{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Bs]=!1,this[Ds]=!1,this[ga]=!1,this[ul]=!1,this[Pr]=[],this[rn]=e,this[be]=typeof r.fd=="number"?r.fd:null,this[dl]=r.mode===void 0?438:r.mode,this[_i]=typeof r.start=="number"?r.start:null,this[js]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[_i]!==null?"r+":"w";this[hl]=r.flags===void 0,this[Fn]=this[hl]?n:r.flags,this[be]===null&&this[qn]()}emit(e,r){if(e==="error"){if(this[Bs])return;this[Bs]=!0}return super.emit(e,r)}get fd(){return this[be]}get path(){return this[rn]}[qs](e){this[lr](),this[Ds]=!0,this.emit("error",e)}[qn](){Ct.open(this[rn],this[Fn],this[dl],(e,r)=>this[Hs](e,r))}[Hs](e,r){this[hl]&&this[Fn]==="r+"&&e&&e.code==="ENOENT"?(this[Fn]="w",this[qn]()):e?this[qs](e):(this[be]=r,this.emit("open",r),this[Tg]())}end(e,r){return e&&this.write(e,r),this[ga]=!0,!this[Ds]&&!this[Pr].length&&typeof this[be]=="number"&&this[Ms](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[ga]?(this.emit("error",new Error("write() after end()")),!1):this[be]===null||this[Ds]||this[Pr].length?(this[Pr].push(e),this[ul]=!0,!1):(this[Ds]=!0,this[fl](e),!0)}[fl](e){Ct.write(this[be],e,0,e.length,this[_i],(r,n)=>this[Ms](r,n))}[Ms](e,r){e?this[qs](e):(this[_i]!==null&&(this[_i]+=r),this[Pr].length?this[Tg]():(this[Ds]=!1,this[ga]&&!this[SO]?(this[SO]=!0,this[lr](),this.emit("finish")):this[ul]&&(this[ul]=!1,this.emit("drain"))))}[Tg](){if(this[Pr].length===0)this[ga]&&this[Ms](null,0);else if(this[Pr].length===1)this[fl](this[Pr].pop());else{let e=this[Pr];this[Pr]=[],Pg(this[be],e,this[_i],(r,n)=>this[Ms](r,n))}}[lr](){if(this[js]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Dg=class extends ml{[qn](){let e;if(this[hl]&&this[Fn]==="r+")try{e=Ct.openSync(this[rn],this[Fn],this[dl])}catch(r){if(r.code==="ENOENT")return this[Fn]="w",this[qn]();throw r}else e=Ct.openSync(this[rn],this[Fn],this[dl]);this[Hs](null,e)}[lr](){if(this[js]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Ct.closeSync(e),this.emit("close")}}[fl](e){let r=!0;try{this[Ms](null,Ct.writeSync(this[be],e,0,e.length,this[_i])),r=!1}finally{if(r)try{this[lr]()}catch{}}}};ya.ReadStream=pl;ya.ReadStreamSync=Ng;ya.WriteStream=ml;ya.WriteStreamSync=Dg});var wl=m((pQ,NO)=>{"use strict";u();var l4=Yu(),f4=Is(),h4=require("events"),d4=_g(),p4=1024*1024,m4=Vu(),CO=zu(),g4=Zm(),{nextTick:y4}=require("process"),Mg=Buffer.from([31,139]),Kt=Symbol("state"),vi=Symbol("writeEntry"),nn=Symbol("readEntry"),Fg=Symbol("nextEntry"),OO=Symbol("processEntry"),Zt=Symbol("extendedHeader"),_a=Symbol("globalExtendedHeader"),Bn=Symbol("meta"),TO=Symbol("emitMeta"),Re=Symbol("buffer"),sn=Symbol("queue"),bi=Symbol("ended"),kO=Symbol("emittedEnd"),Ei=Symbol("emit"),Ot=Symbol("unzip"),gl=Symbol("consumeChunk"),yl=Symbol("consumeChunkSub"),qg=Symbol("consumeBody"),PO=Symbol("consumeMeta"),IO=Symbol("consumeHeader"),_l=Symbol("consuming"),Bg=Symbol("bufferConcat"),jg=Symbol("maybeEnd"),va=Symbol("writing"),jn=Symbol("aborted"),vl=Symbol("onDone"),wi=Symbol("sawValidEntry"),bl=Symbol("sawNullBlock"),El=Symbol("sawEOF"),LO=Symbol("closeStream"),_4=t=>!0;NO.exports=l4(class extends h4{constructor(e){e=e||{},super(e),this.file=e.file||"",this[wi]=null,this.on(vl,r=>{(this[Kt]==="begin"||this[wi]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(vl,e.ondone):this.on(vl,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||p4,this.filter=typeof e.filter=="function"?e.filter:_4,this.writable=!0,this.readable=!1,this[sn]=new d4,this[Re]=null,this[nn]=null,this[vi]=null,this[Kt]="begin",this[Bn]="",this[Zt]=null,this[_a]=null,this[bi]=!1,this[Ot]=null,this[jn]=!1,this[bl]=!1,this[El]=!1,this.on("end",()=>this[LO]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[IO](e,r){this[wi]===null&&(this[wi]=!1);let n;try{n=new f4(e,r,this[Zt],this[_a])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[bl]?(this[El]=!0,this[Kt]==="begin"&&(this[Kt]="header"),this[Ei]("eof")):(this[bl]=!0,this[Ei]("nullBlock"));else if(this[bl]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[vi]=new m4(n,this[Zt],this[_a]);if(!this[wi])if(s.remain){let o=()=>{s.invalid||(this[wi]=!0)};s.on("end",o)}else this[wi]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Ei]("ignoredEntry",s),this[Kt]="ignore",s.resume()):s.size>0&&(this[Bn]="",s.on("data",o=>this[Bn]+=o),this[Kt]="meta"):(this[Zt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Ei]("ignoredEntry",s),this[Kt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Kt]="body":(this[Kt]="header",s.end()),this[nn]?this[sn].push(s):(this[sn].push(s),this[Fg]())))}}}[LO](){y4(()=>this.emit("close"))}[OO](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[nn]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[Fg]()),r=!1)):(this[nn]=null,r=!1),r}[Fg](){do;while(this[OO](this[sn].shift()));if(!this[sn].length){let e=this[nn];!e||e.flowing||e.size===e.remain?this[va]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[qg](e,r){let n=this[vi],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[Kt]="header",this[vi]=null,n.end()),s.length}[PO](e,r){let n=this[vi],i=this[qg](e,r);return this[vi]||this[TO](n),i}[Ei](e,r,n){!this[sn].length&&!this[nn]?this.emit(e,r,n):this[sn].push([e,r,n])}[TO](e){switch(this[Ei]("meta",this[Bn]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Zt]=CO.parse(this[Bn],this[Zt],!1);break;case"GlobalExtendedHeader":this[_a]=CO.parse(this[Bn],this[_a],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Zt]=this[Zt]||Object.create(null),this[Zt].path=this[Bn].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Zt]=this[Zt]||Object.create(null),this[Zt].linkpath=this[Bn].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[jn]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[jn])return;if(this[Ot]===null&&e){if(this[Re]&&(e=Buffer.concat([this[Re],e]),this[Re]=null),e.length<Mg.length)return this[Re]=e,!0;for(let n=0;this[Ot]===null&&n<Mg.length;n++)e[n]!==Mg[n]&&(this[Ot]=!1);if(this[Ot]===null){let n=this[bi];this[bi]=!1,this[Ot]=new g4.Unzip,this[Ot].on("data",s=>this[gl](s)),this[Ot].on("error",s=>this.abort(s)),this[Ot].on("end",s=>{this[bi]=!0,this[gl]()}),this[va]=!0;let i=this[Ot][n?"end":"write"](e);return this[va]=!1,i}}this[va]=!0,this[Ot]?this[Ot].write(e):this[gl](e),this[va]=!1;let r=this[sn].length?!1:this[nn]?this[nn].flowing:!0;return!r&&!this[sn].length&&this[nn].once("drain",n=>this.emit("drain")),r}[Bg](e){e&&!this[jn]&&(this[Re]=this[Re]?Buffer.concat([this[Re],e]):e)}[jg](){if(this[bi]&&!this[kO]&&!this[jn]&&!this[_l]){this[kO]=!0;let e=this[vi];if(e&&e.blockRemain){let r=this[Re]?this[Re].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Re]&&e.write(this[Re]),e.end()}this[Ei](vl)}}[gl](e){if(this[_l])this[Bg](e);else if(!e&&!this[Re])this[jg]();else{if(this[_l]=!0,this[Re]){this[Bg](e);let r=this[Re];this[Re]=null,this[yl](r)}else this[yl](e);for(;this[Re]&&this[Re].length>=512&&!this[jn]&&!this[El];){let r=this[Re];this[Re]=null,this[yl](r)}this[_l]=!1}(!this[Re]||this[bi])&&this[jg]()}[yl](e){let r=0,n=e.length;for(;r+512<=n&&!this[jn]&&!this[El];)switch(this[Kt]){case"begin":case"header":this[IO](e,r),r+=512;break;case"ignore":case"body":r+=this[qg](e,r);break;case"meta":r+=this[PO](e,r);break;default:throw new Error("invalid state: "+this[Kt])}r<n&&(this[Re]?this[Re]=Buffer.concat([e.slice(r),this[Re]]):this[Re]=e.slice(r))}end(e){this[jn]||(this[Ot]?this[Ot].end(e):(this[bi]=!0,this.write(e)))}})});var xl=m((mQ,qO)=>{"use strict";u();var v4=As(),MO=wl(),Us=require("fs"),b4=$s(),DO=require("path"),Hg=Ls();qO.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=v4(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&w4(n,e),n.noResume||E4(n),n.file&&n.sync?x4(n):n.file?S4(n,r):FO(n)};var E4=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},w4=(t,e)=>{let r=new Map(e.map(s=>[Hg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||DO.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(DO.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(Hg(s)):s=>i(Hg(s))},x4=t=>{let e=FO(t),r=t.file,n=!0,i;try{let s=Us.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Us.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=Us.openSync(r,"r");a<s.size;){let l=Us.readSync(i,c,0,o,a);a+=l,e.write(c.slice(0,l))}e.end()}n=!1}finally{if(n&&i)try{Us.closeSync(i)}catch{}}},S4=(t,e)=>{let r=new MO(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),Us.stat(i,(c,l)=>{if(c)a(c);else{let f=new b4.ReadStream(i,{readSize:n,size:l.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},FO=t=>new MO(t)});var GO=m((gQ,UO)=>{"use strict";u();var A4=As(),Sl=cl(),BO=$s(),jO=xl(),HO=require("path");UO.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=A4(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?R4(n,e):n.file?C4(n,e,r):n.sync?O4(n,e):T4(n,e)};var R4=(t,e)=>{let r=new Sl.Sync(t),n=new BO.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),$O(r,e)},C4=(t,e,r)=>{let n=new Sl(t),i=new BO.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return $g(n,e),r?s.then(r,r):s},$O=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?jO({file:HO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},$g=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return jO({file:HO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>$g(t,e));t.add(r)}t.end()},O4=(t,e)=>{let r=new Sl.Sync(t);return $O(r,e),r},T4=(t,e)=>{let r=new Sl(t);return $g(r,e),r}});var Ug=m((yQ,JO)=>{"use strict";u();var k4=As(),VO=cl(),Mt=require("fs"),WO=$s(),zO=xl(),YO=require("path"),KO=Is();JO.exports=(t,e,r)=>{let n=k4(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?P4(n,e):L4(n,e,r)};var P4=(t,e)=>{let r=new VO.Sync(t),n=!0,i,s;try{try{i=Mt.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")i=Mt.openSync(t.file,"w+");else throw c}let o=Mt.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let f=0,h=0;f<512;f+=h){if(h=Mt.readSync(i,a,f,a.length-f,s+f),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let c=new KO(a);if(!c.cksumValid)break;let l=512*Math.ceil(c.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}n=!1,I4(t,r,s,i,e)}finally{if(n)try{Mt.closeSync(i)}catch{}}},I4=(t,e,r,n,i)=>{let s=new WO.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),N4(e,i)},L4=(t,e,r)=>{e=Array.from(e);let n=new VO(t),i=(o,a,c)=>{let l=(g,E)=>{g?Mt.close(o,v=>c(g)):c(null,E)},f=0;if(a===0)return l(null,0);let h=0,d=Buffer.alloc(512),y=(g,E)=>{if(g)return l(g);if(h+=E,h<512&&E)return Mt.read(o,d,h,d.length-h,f+h,y);if(f===0&&d[0]===31&&d[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,f);let v=new KO(d);if(!v.cksumValid)return l(null,f);let A=512*Math.ceil(v.size/512);if(f+A+512>a||(f+=A+512,f>=a))return l(null,f);t.mtimeCache&&t.mtimeCache.set(v.path,v.mtime),h=0,Mt.read(o,d,0,512,f,y)};Mt.read(o,d,0,512,f,y)},s=new Promise((o,a)=>{n.on("error",a);let c="r+",l=(f,h)=>{if(f&&f.code==="ENOENT"&&c==="r+")return c="w+",Mt.open(t.file,c,l);if(f)return a(f);Mt.fstat(h,(d,y)=>{if(d)return Mt.close(h,()=>a(d));i(h,y.size,(g,E)=>{if(g)return a(g);let v=new WO.WriteStream(t.file,{fd:h,start:E});n.pipe(v),v.on("error",a),v.on("close",o),ZO(n,e)})})};Mt.open(t.file,c,l)});return r?s.then(r,r):s},N4=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?zO({file:YO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},ZO=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return zO({file:YO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>ZO(t,e));t.add(r)}t.end()}});var QO=m((_Q,XO)=>{"use strict";u();var D4=As(),M4=Ug();XO.exports=(t,e,r)=>{let n=D4(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),F4(n),M4(n,e,r)};var F4=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var rT=m((vQ,tT)=>{u();var{promisify:eT}=require("util"),Hn=require("fs"),q4=t=>{if(!t)t={mode:511,fs:Hn};else if(typeof t=="object")t={mode:511,fs:Hn,...t};else if(typeof t=="number")t={mode:t,fs:Hn};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Hn};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Hn.mkdir,t.mkdirAsync=eT(t.mkdir),t.stat=t.stat||t.fs.stat||Hn.stat,t.statAsync=eT(t.stat),t.statSync=t.statSync||t.fs.statSync||Hn.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Hn.mkdirSync,t};tT.exports=q4});var iT=m((bQ,nT)=>{u();var B4=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:j4,parse:H4}=require("path"),$4=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=j4(t),B4==="win32"){let e=/[*|"<>?:]/,{root:r}=H4(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};nT.exports=$4});var uT=m((EQ,cT)=>{u();var{dirname:sT}=require("path"),oT=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?oT(t,sT(e),e):void 0),aT=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?aT(t,sT(e),e):void 0}};cT.exports={findMade:oT,findMadeSync:aT}});var Wg=m((wQ,fT)=>{u();var{dirname:lT}=require("path"),Gg=(t,e,r)=>{e.recursive=!1;let n=lT(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return Gg(n,e).then(s=>Gg(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Vg=(t,e,r)=>{let n=lT(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return Vg(t,e,Vg(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};fT.exports={mkdirpManual:Gg,mkdirpManualSync:Vg}});var pT=m((xQ,dT)=>{u();var{dirname:hT}=require("path"),{findMade:U4,findMadeSync:G4}=uT(),{mkdirpManual:V4,mkdirpManualSync:W4}=Wg(),z4=(t,e)=>(e.recursive=!0,hT(t)===t?e.mkdirAsync(t,e):U4(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return V4(t,e);throw i}))),Y4=(t,e)=>{if(e.recursive=!0,hT(t)===t)return e.mkdirSync(t,e);let n=G4(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return W4(t,e);throw i}};dT.exports={mkdirpNative:z4,mkdirpNativeSync:Y4}});var _T=m((SQ,yT)=>{u();var mT=require("fs"),K4=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,zg=K4.replace(/^v/,"").split("."),gT=+zg[0]>10||+zg[0]==10&&+zg[1]>=12,Z4=gT?t=>t.mkdir===mT.mkdir:()=>!1,J4=gT?t=>t.mkdirSync===mT.mkdirSync:()=>!1;yT.exports={useNative:Z4,useNativeSync:J4}});var ST=m((AQ,xT)=>{u();var Gs=rT(),Vs=iT(),{mkdirpNative:vT,mkdirpNativeSync:bT}=pT(),{mkdirpManual:ET,mkdirpManualSync:wT}=Wg(),{useNative:X4,useNativeSync:Q4}=_T(),Ws=(t,e)=>(t=Vs(t),e=Gs(e),X4(e)?vT(t,e):ET(t,e)),e8=(t,e)=>(t=Vs(t),e=Gs(e),Q4(e)?bT(t,e):wT(t,e));Ws.sync=e8;Ws.native=(t,e)=>vT(Vs(t),Gs(e));Ws.manual=(t,e)=>ET(Vs(t),Gs(e));Ws.nativeSync=(t,e)=>bT(Vs(t),Gs(e));Ws.manualSync=(t,e)=>wT(Vs(t),Gs(e));xT.exports=Ws});var PT=m((RQ,kT)=>{"use strict";u();var Jt=require("fs"),xi=require("path"),t8=Jt.lchown?"lchown":"chown",r8=Jt.lchownSync?"lchownSync":"chownSync",RT=Jt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),AT=(t,e,r)=>{try{return Jt[r8](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},n8=(t,e,r)=>{try{return Jt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},i8=RT?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Jt.chown(t,e,r,n)}:(t,e,r,n)=>n,Yg=RT?(t,e,r)=>{try{return AT(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;n8(t,e,r)}}:(t,e,r)=>AT(t,e,r),s8=process.version,CT=(t,e,r)=>Jt.readdir(t,e,r),o8=(t,e)=>Jt.readdirSync(t,e);/^v4\./.test(s8)&&(CT=(t,e,r)=>Jt.readdir(t,r));var Al=(t,e,r,n)=>{Jt[t8](t,e,r,i8(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},OT=(t,e,r,n,i)=>{if(typeof e=="string")return Jt.lstat(xi.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,OT(t,o,r,n,i)});if(e.isDirectory())Kg(xi.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=xi.resolve(t,e.name);Al(o,r,n,i)});else{let s=xi.resolve(t,e.name);Al(s,r,n,i)}},Kg=(t,e,r,n)=>{CT(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return Al(t,e,r,n);let o=s.length,a=null,c=l=>{if(!a){if(l)return n(a=l);if(--o===0)return Al(t,e,r,n)}};s.forEach(l=>OT(t,l,e,r,c))})},a8=(t,e,r,n)=>{if(typeof e=="string")try{let i=Jt.lstatSync(xi.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&TT(xi.resolve(t,e.name),r,n),Yg(xi.resolve(t,e.name),r,n)},TT=(t,e,r)=>{let n;try{n=o8(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Yg(t,e,r);throw i}return n&&n.length&&n.forEach(i=>a8(t,i,e,r)),Yg(t,e,r)};kT.exports=Kg;Kg.sync=TT});var DT=m((CQ,Zg)=>{"use strict";u();var IT=ST(),Xt=require("fs"),Rl=require("path"),LT=PT(),fr=ks(),Cl=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Ol=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Tl=(t,e)=>t.get(fr(e)),ba=(t,e,r)=>t.set(fr(e),r),c8=(t,e)=>{Xt.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new Ol(t,r&&r.code||"ENOTDIR")),e(r)})};Zg.exports=(t,e,r)=>{t=fr(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),l=e.preserve,f=e.unlink,h=e.cache,d=fr(e.cwd),y=(v,A)=>{v?r(v):(ba(h,t,!0),A&&c?LT(A,o,a,P=>y(P)):s?Xt.chmod(t,i,r):r())};if(h&&Tl(h,t)===!0)return y();if(t===d)return c8(t,y);if(l)return IT(t,{mode:i}).then(v=>y(null,v),y);let E=fr(Rl.relative(d,t)).split("/");kl(d,E,i,h,f,d,null,y)};var kl=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),l=fr(Rl.resolve(t+"/"+c));if(Tl(n,l))return kl(l,e,r,n,i,s,o,a);Xt.mkdir(l,r,NT(l,e,r,n,i,s,o,a))},NT=(t,e,r,n,i,s,o,a)=>c=>{c?Xt.lstat(t,(l,f)=>{if(l)l.path=l.path&&fr(l.path),a(l);else if(f.isDirectory())kl(t,e,r,n,i,s,o,a);else if(i)Xt.unlink(t,h=>{if(h)return a(h);Xt.mkdir(t,r,NT(t,e,r,n,i,s,o,a))});else{if(f.isSymbolicLink())return a(new Cl(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,kl(t,e,r,n,i,s,o,a))},u8=t=>{let e=!1,r="ENOTDIR";try{e=Xt.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new Ol(t,r)}};Zg.exports.sync=(t,e)=>{t=fr(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,h=fr(e.cwd),d=v=>{ba(f,t,!0),v&&a&&LT.sync(v,s,o),i&&Xt.chmodSync(t,n)};if(f&&Tl(f,t)===!0)return d();if(t===h)return u8(h),d();if(c)return d(IT.sync(t,n));let g=fr(Rl.relative(h,t)).split("/"),E=null;for(let v=g.shift(),A=h;v&&(A+="/"+v);v=g.shift())if(A=fr(Rl.resolve(A)),!Tl(f,A))try{Xt.mkdirSync(A,n),E=E||A,ba(f,A,!0)}catch{let D=Xt.lstatSync(A);if(D.isDirectory()){ba(f,A,!0);continue}else if(l){Xt.unlinkSync(A),Xt.mkdirSync(A,n),E=E||A,ba(f,A,!0);continue}else if(D.isSymbolicLink())return new Cl(A,A+"/"+g.join("/"))}return d(E)}});var Xg=m((OQ,MT)=>{u();var Jg=Object.create(null),{hasOwnProperty:l8}=Object.prototype;MT.exports=t=>(l8.call(Jg,t)||(Jg[t]=t.normalize("NFKD")),Jg[t])});var jT=m((TQ,BT)=>{u();var FT=require("assert"),f8=Xg(),h8=Ls(),{join:qT}=require("path"),d8=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,p8=d8==="win32";BT.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=qT(h[h.length-1],d)),h.push(d||"/"),h),[]),n=new Set,i=l=>{let f=e.get(l);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(h=>t.get(h)),dirs:[...f.dirs].map(h=>t.get(h))}},s=l=>{let{paths:f,dirs:h}=i(l);return f.every(d=>d[0]===l)&&h.every(d=>d[0]instanceof Set&&d[0].has(l))},o=l=>n.has(l)||!s(l)?!1:(n.add(l),l(()=>a(l)),!0),a=l=>{if(!n.has(l))return!1;let{paths:f,dirs:h}=e.get(l),d=new Set;return f.forEach(y=>{let g=t.get(y);FT.equal(g[0],l),g.length===1?t.delete(y):(g.shift(),typeof g[0]=="function"?d.add(g[0]):g[0].forEach(E=>d.add(E)))}),h.forEach(y=>{let g=t.get(y);FT(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(y):g[0].size===1?(g.shift(),d.add(g[0])):g[0].delete(l)}),n.delete(l),d.forEach(y=>o(y)),!0};return{check:s,reserve:(l,f)=>{l=p8?["win32 parallelization disabled"]:l.map(d=>f8(h8(qT(d))).toLowerCase());let h=new Set(l.map(d=>r(d)).reduce((d,y)=>d.concat(y)));return e.set(f,{dirs:h,paths:l}),l.forEach(d=>{let y=t.get(d);y?y.push(f):t.set(d,[f])}),h.forEach(d=>{let y=t.get(d);y?y[y.length-1]instanceof Set?y[y.length-1].add(f):y.push(new Set([f])):t.set(d,[new Set([f])])}),o(f)}}}});var UT=m((kQ,$T)=>{u();var m8=process.env.__FAKE_PLATFORM__||process.platform,g8=m8==="win32",y8=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:_8,O_TRUNC:v8,O_WRONLY:b8,UV_FS_O_FILEMAP:HT=0}=y8.constants,E8=g8&&!!HT,w8=512*1024,x8=HT|v8|_8|b8;$T.exports=E8?t=>t<w8?x8:"w":()=>"w"});var ay=m((PQ,nk)=>{"use strict";u();var S8=require("assert"),A8=wl(),de=require("fs"),R8=$s(),on=require("path"),ek=DT(),GT=og(),C8=jT(),O8=ag(),Ft=ks(),T8=Ls(),k8=Xg(),VT=Symbol("onEntry"),ty=Symbol("checkFs"),WT=Symbol("checkFs2"),Ll=Symbol("pruneCache"),ry=Symbol("isReusable"),Qt=Symbol("makeFs"),ny=Symbol("file"),iy=Symbol("directory"),Nl=Symbol("link"),zT=Symbol("symlink"),YT=Symbol("hardlink"),KT=Symbol("unsupported"),ZT=Symbol("checkPath"),$n=Symbol("mkdir"),dt=Symbol("onError"),Pl=Symbol("pending"),JT=Symbol("pend"),zs=Symbol("unpend"),Qg=Symbol("ended"),ey=Symbol("maybeClose"),sy=Symbol("skip"),Ea=Symbol("doChown"),wa=Symbol("uid"),xa=Symbol("gid"),Sa=Symbol("checkedCwd"),tk=require("crypto"),rk=UT(),P8=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Aa=P8==="win32",I8=(t,e)=>{if(!Aa)return de.unlink(t,e);let r=t+".DELETE."+tk.randomBytes(16).toString("hex");de.rename(t,r,n=>{if(n)return e(n);de.unlink(r,e)})},L8=t=>{if(!Aa)return de.unlinkSync(t);let e=t+".DELETE."+tk.randomBytes(16).toString("hex");de.renameSync(t,e),de.unlinkSync(e)},XT=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,QT=t=>k8(T8(Ft(t))).toLowerCase(),N8=(t,e)=>{e=QT(e);for(let r of t.keys()){let n=QT(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},D8=t=>{for(let e of t.keys())t.delete(e)},Ra=class extends A8{constructor(e){if(e||(e={}),e.ondone=r=>{this[Qg]=!0,this[ey]()},super(e),this[Sa]=!1,this.reservations=C8(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Pl]=0,this[Qg]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||Aa,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ft(on.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[VT](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[ey](){this[Qg]&&this[Pl]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[ZT](e){if(this.strip){let r=Ft(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=Ft(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ft(e.path),n=r.split("/");if(n.includes("..")||Aa&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=O8(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(on.isAbsolute(e.path)?e.absolute=Ft(on.resolve(e.path)):e.absolute=Ft(on.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Ft(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=on.win32.parse(e.absolute);e.absolute=r+GT.encode(e.absolute.slice(r.length));let{root:n}=on.win32.parse(e.path);e.path=n+GT.encode(e.path.slice(n.length))}return!0}[VT](e){if(!this[ZT](e))return e.resume();switch(S8.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[ty](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[KT](e)}}[dt](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[zs](),r.resume())}[$n](e,r,n){ek(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[Ea](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[wa](e){return XT(this.uid,e.uid,this.processUid)}[xa](e){return XT(this.gid,e.gid,this.processGid)}[ny](e,r){let n=e.mode&4095||this.fmode,i=new R8.WriteStream(e.absolute,{flags:rk(e.size),mode:n,autoClose:!1});i.on("error",c=>{i.fd&&de.close(i.fd,()=>{}),i.write=()=>!0,this[dt](c,e),r()});let s=1,o=c=>{if(c){i.fd&&de.close(i.fd,()=>{}),this[dt](c,e),r();return}--s===0&&de.close(i.fd,l=>{l?this[dt](l,e):this[zs](),r()})};i.on("finish",c=>{let l=e.absolute,f=i.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,d=e.mtime;de.futimes(f,h,d,y=>y?de.utimes(l,h,d,g=>o(g&&y)):o())}if(this[Ea](e)){s++;let h=this[wa](e),d=this[xa](e);de.fchown(f,h,d,y=>y?de.chown(l,h,d,g=>o(g&&y)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[dt](c,e),r()}),e.pipe(a)),a.pipe(i)}[iy](e,r){let n=e.mode&4095||this.dmode;this[$n](e.absolute,n,i=>{if(i){this[dt](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[zs](),e.resume())};e.mtime&&!this.noMtime&&(s++,de.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ea](e)&&(s++,de.chown(e.absolute,this[wa](e),this[xa](e),o)),o()})}[KT](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[zT](e,r){this[Nl](e,e.linkpath,"symlink",r)}[YT](e,r){let n=Ft(on.resolve(this.cwd,e.linkpath));this[Nl](e,n,"link",r)}[JT](){this[Pl]++}[zs](){this[Pl]--,this[ey]()}[sy](e){this[zs](),e.resume()}[ry](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Aa}[ty](e){this[JT]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[WT](e,n))}[Ll](e){e.type==="SymbolicLink"?D8(this.dirCache):e.type!=="Directory"&&N8(this.dirCache,e.absolute)}[WT](e,r){this[Ll](e);let n=a=>{this[Ll](e),r(a)},i=()=>{this[$n](this.cwd,this.dmode,a=>{if(a){this[dt](a,e),n();return}this[Sa]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Ft(on.dirname(e.absolute));if(a!==this.cwd)return this[$n](a,this.dmode,c=>{if(c){this[dt](c,e),n();return}o()})}o()},o=()=>{de.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[sy](e),n();return}if(a||this[ry](e,c))return this[Qt](null,e,n);if(c.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,f=h=>this[Qt](h,e,n);return l?de.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return de.rmdir(e.absolute,l=>this[Qt](l,e,n))}if(e.absolute===this.cwd)return this[Qt](null,e,n);I8(e.absolute,l=>this[Qt](l,e,n))})};this[Sa]?s():i()}[Qt](e,r,n){if(e){this[dt](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[ny](r,n);case"Link":return this[YT](r,n);case"SymbolicLink":return this[zT](r,n);case"Directory":case"GNUDumpDir":return this[iy](r,n)}}[Nl](e,r,n,i){de[n](r,e.absolute,s=>{s?this[dt](s,e):(this[zs](),e.resume()),i()})}},Il=t=>{try{return[null,t()]}catch(e){return[e,null]}},oy=class extends Ra{[Qt](e,r){return super[Qt](e,r,()=>{})}[ty](e){if(this[Ll](e),!this[Sa]){let s=this[$n](this.cwd,this.dmode);if(s)return this[dt](s,e);this[Sa]=!0}if(e.absolute!==this.cwd){let s=Ft(on.dirname(e.absolute));if(s!==this.cwd){let o=this[$n](s,this.dmode);if(o)return this[dt](o,e)}}let[r,n]=Il(()=>de.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[sy](e);if(r||this[ry](e,n))return this[Qt](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?Il(()=>{de.chmodSync(e.absolute,e.mode)}):[];return this[Qt](a,e)}let[s]=Il(()=>de.rmdirSync(e.absolute));this[Qt](s,e)}let[i]=e.absolute===this.cwd?[]:Il(()=>L8(e.absolute));this[Qt](i,e)}[ny](e,r){let n=e.mode&4095||this.fmode,i=a=>{let c;try{de.closeSync(s)}catch(l){c=l}(a||c)&&this[dt](a||c,e),r()},s;try{s=de.openSync(e.absolute,rk(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[dt](a,e)),e.pipe(o)),o.on("data",a=>{try{de.writeSync(s,a,0,a.length)}catch(c){i(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,f=e.mtime;try{de.futimesSync(s,l,f)}catch(h){try{de.utimesSync(e.absolute,l,f)}catch{c=h}}}if(this[Ea](e)){let l=this[wa](e),f=this[xa](e);try{de.fchownSync(s,l,f)}catch(h){try{de.chownSync(e.absolute,l,f)}catch{c=c||h}}}i(c)})}[iy](e,r){let n=e.mode&4095||this.dmode,i=this[$n](e.absolute,n);if(i){this[dt](i,e),r();return}if(e.mtime&&!this.noMtime)try{de.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ea](e))try{de.chownSync(e.absolute,this[wa](e),this[xa](e))}catch{}r(),e.resume()}[$n](e,r){try{return ek.sync(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[Nl](e,r,n,i){try{de[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[dt](s,e)}}};Ra.Sync=oy;nk.exports=Ra});var ck=m((IQ,ak)=>{"use strict";u();var M8=As(),Dl=ay(),sk=require("fs"),ok=$s(),ik=require("path"),cy=Ls();ak.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=M8(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&F8(n,e),n.file&&n.sync?q8(n):n.file?B8(n,r):n.sync?j8(n):H8(n)};var F8=(t,e)=>{let r=new Map(e.map(s=>[cy(s),!0])),n=t.filter,i=(s,o)=>{let a=o||ik.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(ik.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(cy(s)):s=>i(cy(s))},q8=t=>{let e=new Dl.Sync(t),r=t.file,n=sk.statSync(r),i=t.maxReadSize||16*1024*1024;new ok.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},B8=(t,e)=>{let r=new Dl(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),sk.stat(i,(c,l)=>{if(c)a(c);else{let f=new ok.ReadStream(i,{readSize:n,size:l.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},j8=t=>new Dl.Sync(t),H8=t=>new Dl(t)});var uk=m(Ve=>{"use strict";u();Ve.c=Ve.create=GO();Ve.r=Ve.replace=Ug();Ve.t=Ve.list=xl();Ve.u=Ve.update=QO();Ve.x=Ve.extract=ck();Ve.Pack=cl();Ve.Unpack=ay();Ve.Parse=wl();Ve.ReadEntry=Vu();Ve.WriteEntry=yg();Ve.Header=Is();Ve.Pax=zu();Ve.types=Qm()});var cn=m((an,Ml)=>{"use strict";u();Object.defineProperty(an,"__esModule",{value:!0});var lk=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function $8(t){return lk.includes(t)}var U8=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...lk];function G8(t){return U8.includes(t)}var V8=["null","undefined","string","number","bigint","boolean","symbol"];function W8(t){return V8.includes(t)}function Ys(t){return e=>typeof e===t}var{toString:fk}=Object.prototype,Ca=t=>{let e=fk.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&w.domElement(t))return"HTMLElement";if(G8(e))return e},we=t=>e=>Ca(e)===t;function w(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(w.observable(t))return"Observable";if(w.array(t))return"Array";if(w.buffer(t))return"Buffer";let e=Ca(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}w.undefined=Ys("undefined");w.string=Ys("string");var z8=Ys("number");w.number=t=>z8(t)&&!w.nan(t);w.bigint=Ys("bigint");w.function_=Ys("function");w.null_=t=>t===null;w.class_=t=>w.function_(t)&&t.toString().startsWith("class ");w.boolean=t=>t===!0||t===!1;w.symbol=Ys("symbol");w.numericString=t=>w.string(t)&&!w.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));w.array=(t,e)=>Array.isArray(t)?w.function_(e)?t.every(e):!0:!1;w.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};w.blob=t=>we("Blob")(t);w.nullOrUndefined=t=>w.null_(t)||w.undefined(t);w.object=t=>!w.null_(t)&&(typeof t=="object"||w.function_(t));w.iterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};w.asyncIterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};w.generator=t=>{var e,r;return w.iterable(t)&&w.function_((e=t)===null||e===void 0?void 0:e.next)&&w.function_((r=t)===null||r===void 0?void 0:r.throw)};w.asyncGenerator=t=>w.asyncIterable(t)&&w.function_(t.next)&&w.function_(t.throw);w.nativePromise=t=>we("Promise")(t);var Y8=t=>{var e,r;return w.function_((e=t)===null||e===void 0?void 0:e.then)&&w.function_((r=t)===null||r===void 0?void 0:r.catch)};w.promise=t=>w.nativePromise(t)||Y8(t);w.generatorFunction=we("GeneratorFunction");w.asyncGeneratorFunction=t=>Ca(t)==="AsyncGeneratorFunction";w.asyncFunction=t=>Ca(t)==="AsyncFunction";w.boundFunction=t=>w.function_(t)&&!t.hasOwnProperty("prototype");w.regExp=we("RegExp");w.date=we("Date");w.error=we("Error");w.map=t=>we("Map")(t);w.set=t=>we("Set")(t);w.weakMap=t=>we("WeakMap")(t);w.weakSet=t=>we("WeakSet")(t);w.int8Array=we("Int8Array");w.uint8Array=we("Uint8Array");w.uint8ClampedArray=we("Uint8ClampedArray");w.int16Array=we("Int16Array");w.uint16Array=we("Uint16Array");w.int32Array=we("Int32Array");w.uint32Array=we("Uint32Array");w.float32Array=we("Float32Array");w.float64Array=we("Float64Array");w.bigInt64Array=we("BigInt64Array");w.bigUint64Array=we("BigUint64Array");w.arrayBuffer=we("ArrayBuffer");w.sharedArrayBuffer=we("SharedArrayBuffer");w.dataView=we("DataView");w.enumCase=(t,e)=>Object.values(e).includes(t);w.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;w.urlInstance=t=>we("URL")(t);w.urlString=t=>{if(!w.string(t))return!1;try{return new URL(t),!0}catch{return!1}};w.truthy=t=>Boolean(t);w.falsy=t=>!t;w.nan=t=>Number.isNaN(t);w.primitive=t=>w.null_(t)||W8(typeof t);w.integer=t=>Number.isInteger(t);w.safeInteger=t=>Number.isSafeInteger(t);w.plainObject=t=>{if(fk.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};w.typedArray=t=>$8(Ca(t));var K8=t=>w.safeInteger(t)&&t>=0;w.arrayLike=t=>!w.nullOrUndefined(t)&&!w.function_(t)&&K8(t.length);w.inRange=(t,e)=>{if(w.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(w.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var Z8=1,J8=["innerHTML","ownerDocument","style","attributes","nodeValue"];w.domElement=t=>w.object(t)&&t.nodeType===Z8&&w.string(t.nodeName)&&!w.plainObject(t)&&J8.every(e=>e in t);w.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};w.nodeStream=t=>w.object(t)&&w.function_(t.pipe)&&!w.observable(t);w.infinite=t=>t===1/0||t===-1/0;var hk=t=>e=>w.integer(e)&&Math.abs(e%2)===t;w.evenInteger=hk(0);w.oddInteger=hk(1);w.emptyArray=t=>w.array(t)&&t.length===0;w.nonEmptyArray=t=>w.array(t)&&t.length>0;w.emptyString=t=>w.string(t)&&t.length===0;var X8=t=>w.string(t)&&!/\S/.test(t);w.emptyStringOrWhitespace=t=>w.emptyString(t)||X8(t);w.nonEmptyString=t=>w.string(t)&&t.length>0;w.nonEmptyStringAndNotWhitespace=t=>w.string(t)&&!w.emptyStringOrWhitespace(t);w.emptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length===0;w.nonEmptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length>0;w.emptySet=t=>w.set(t)&&t.size===0;w.nonEmptySet=t=>w.set(t)&&t.size>0;w.emptyMap=t=>w.map(t)&&t.size===0;w.nonEmptyMap=t=>w.map(t)&&t.size>0;w.propertyKey=t=>w.any([w.string,w.number,w.symbol],t);w.formData=t=>we("FormData")(t);w.urlSearchParams=t=>we("URLSearchParams")(t);var dk=(t,e,r)=>{if(!w.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};w.any=(t,...e)=>(w.array(t)?t:[t]).some(n=>dk(Array.prototype.some,n,e));w.all=(t,...e)=>dk(Array.prototype.every,t,e);var M=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${w(o)}\``))].join(", ")}`:`received value of type \`${w(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};an.assert={undefined:t=>M(w.undefined(t),"undefined",t),string:t=>M(w.string(t),"string",t),number:t=>M(w.number(t),"number",t),bigint:t=>M(w.bigint(t),"bigint",t),function_:t=>M(w.function_(t),"Function",t),null_:t=>M(w.null_(t),"null",t),class_:t=>M(w.class_(t),"Class",t),boolean:t=>M(w.boolean(t),"boolean",t),symbol:t=>M(w.symbol(t),"symbol",t),numericString:t=>M(w.numericString(t),"string with a number",t),array:(t,e)=>{M(w.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>M(w.buffer(t),"Buffer",t),blob:t=>M(w.blob(t),"Blob",t),nullOrUndefined:t=>M(w.nullOrUndefined(t),"null or undefined",t),object:t=>M(w.object(t),"Object",t),iterable:t=>M(w.iterable(t),"Iterable",t),asyncIterable:t=>M(w.asyncIterable(t),"AsyncIterable",t),generator:t=>M(w.generator(t),"Generator",t),asyncGenerator:t=>M(w.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>M(w.nativePromise(t),"native Promise",t),promise:t=>M(w.promise(t),"Promise",t),generatorFunction:t=>M(w.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>M(w.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>M(w.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>M(w.boundFunction(t),"Function",t),regExp:t=>M(w.regExp(t),"RegExp",t),date:t=>M(w.date(t),"Date",t),error:t=>M(w.error(t),"Error",t),map:t=>M(w.map(t),"Map",t),set:t=>M(w.set(t),"Set",t),weakMap:t=>M(w.weakMap(t),"WeakMap",t),weakSet:t=>M(w.weakSet(t),"WeakSet",t),int8Array:t=>M(w.int8Array(t),"Int8Array",t),uint8Array:t=>M(w.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>M(w.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>M(w.int16Array(t),"Int16Array",t),uint16Array:t=>M(w.uint16Array(t),"Uint16Array",t),int32Array:t=>M(w.int32Array(t),"Int32Array",t),uint32Array:t=>M(w.uint32Array(t),"Uint32Array",t),float32Array:t=>M(w.float32Array(t),"Float32Array",t),float64Array:t=>M(w.float64Array(t),"Float64Array",t),bigInt64Array:t=>M(w.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>M(w.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>M(w.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>M(w.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>M(w.dataView(t),"DataView",t),enumCase:(t,e)=>M(w.enumCase(t,e),"EnumCase",t),urlInstance:t=>M(w.urlInstance(t),"URL",t),urlString:t=>M(w.urlString(t),"string with a URL",t),truthy:t=>M(w.truthy(t),"truthy",t),falsy:t=>M(w.falsy(t),"falsy",t),nan:t=>M(w.nan(t),"NaN",t),primitive:t=>M(w.primitive(t),"primitive",t),integer:t=>M(w.integer(t),"integer",t),safeInteger:t=>M(w.safeInteger(t),"integer",t),plainObject:t=>M(w.plainObject(t),"plain object",t),typedArray:t=>M(w.typedArray(t),"TypedArray",t),arrayLike:t=>M(w.arrayLike(t),"array-like",t),domElement:t=>M(w.domElement(t),"HTMLElement",t),observable:t=>M(w.observable(t),"Observable",t),nodeStream:t=>M(w.nodeStream(t),"Node.js Stream",t),infinite:t=>M(w.infinite(t),"infinite number",t),emptyArray:t=>M(w.emptyArray(t),"empty array",t),nonEmptyArray:t=>M(w.nonEmptyArray(t),"non-empty array",t),emptyString:t=>M(w.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>M(w.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>M(w.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>M(w.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>M(w.emptyObject(t),"empty object",t),nonEmptyObject:t=>M(w.nonEmptyObject(t),"non-empty object",t),emptySet:t=>M(w.emptySet(t),"empty set",t),nonEmptySet:t=>M(w.nonEmptySet(t),"non-empty set",t),emptyMap:t=>M(w.emptyMap(t),"empty map",t),nonEmptyMap:t=>M(w.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>M(w.propertyKey(t),"PropertyKey",t),formData:t=>M(w.formData(t),"FormData",t),urlSearchParams:t=>M(w.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>M(w.evenInteger(t),"even integer",t),oddInteger:t=>M(w.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>M(w.directInstanceOf(t,e),"T",t),inRange:(t,e)=>M(w.inRange(t,e),"in range",t),any:(t,...e)=>M(w.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>M(w.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(w,{class:{value:w.class_},function:{value:w.function_},null:{value:w.null_}});Object.defineProperties(an.assert,{class:{value:an.assert.class_},function:{value:an.assert.function_},null:{value:an.assert.null_}});an.default=w;Ml.exports=w;Ml.exports.default=w;Ml.exports.assert=an.assert});var pk=m((NQ,uy)=>{"use strict";u();var Fl=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Ks=class{static fn(e){return(...r)=>new Ks((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new Fl(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Ks.prototype,Promise.prototype);uy.exports=Ks;uy.exports.CancelError=Fl});var mk=m((fy,hy)=>{"use strict";u();Object.defineProperty(fy,"__esModule",{value:!0});function Q8(t){return t.encrypted}var ly=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),Q8(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};fy.default=ly;hy.exports=ly;hy.exports.default=ly});var gk=m((py,my)=>{"use strict";u();Object.defineProperty(py,"__esModule",{value:!0});var e9=mk(),t9=require("util"),r9=Number(process.versions.node.split(".")[0]),dy=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let c=a.emit.bind(a);a.emit=(l,...f)=>(l==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=c),c(l,...f))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||r9>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,t9.types.isProxy(a))return;let c=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",c),e9.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",c),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};py.default=dy;my.exports=dy;my.exports.default=dy});var xk=m((DQ,_y)=>{"use strict";u();var{V4MAPPED:n9,ADDRCONFIG:i9,ALL:wk,promises:{Resolver:yk},lookup:s9}=require("dns"),{promisify:gy}=require("util"),o9=require("os"),Zs=Symbol("cacheableLookupCreateConnection"),yy=Symbol("cacheableLookupInstance"),_k=Symbol("expires"),a9=typeof wk=="number",vk=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},c9=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},bk=()=>{let t=!1,e=!1;for(let r of Object.values(o9.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},u9=t=>Symbol.iterator in t,Ek={ttl:!0},l9={all:!0},ql=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new yk,lookup:o=s9}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=gy(o),this._resolver instanceof yk?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=gy(this._resolver.resolve4.bind(this._resolver)),this._resolve6=gy(this._resolver.resolve6.bind(this._resolver))),this._iface=bk(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&n9&&(a9&&r.hints&wk||i.length===0)?c9(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&i9){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async l=>{try{return await l}catch(f){if(f.code==="ENODATA"||f.code==="ENOTFOUND")return[];throw f}},[n,i]=await Promise.all([this._resolve4(e,Ek),this._resolve6(e,Ek)].map(l=>r(l))),s=0,o=0,a=0,c=Date.now();for(let l of n)l.family=4,l.expires=c+l.ttl*1e3,s=Math.max(s,l.ttl);for(let l of i)l.family=6,l.expires=c+l.ttl*1e3,o=Math.max(o,l.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[_k]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}u9(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,l9);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[_k];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(vk(e),Zs in e)throw new Error("CacheableLookup has been already installed");e[Zs]=e.createConnection,e[yy]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Zs](r,n))}uninstall(e){if(vk(e),e[Zs]){if(e[yy]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Zs],delete e[Zs],delete e[yy]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=bk(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};_y.exports=ql;_y.exports.default=ql});var Rk=m((MQ,Ak)=>{"use strict";u();var f9="text/plain",h9="us-ascii",Sk=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),d9=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let c=(o.shift()||"").toLowerCase(),f=[...o.map(h=>{let[d,y=""]=h.split("=").map(g=>g.trim());return d==="charset"&&(y=y.toLowerCase(),y===h9)?"":`${d}${y?`=${y}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length!==0||c&&c!==f9)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},p9=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return d9(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];Sk(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])Sk(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};Ak.exports=p9});var Tk=m((FQ,Ok)=>{u();Ok.exports=Ck;function Ck(t,e){if(t&&e)return Ck(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var by=m((qQ,vy)=>{u();var kk=Tk();vy.exports=kk(Bl);vy.exports.strict=kk(Pk);Bl.proto=Bl(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Bl(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Pk(this)},configurable:!0})});function Bl(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Pk(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var Nk=m((BQ,Lk)=>{u();var m9=by(),g9=function(){},y9=function(t){return t.setHeader&&typeof t.abort=="function"},_9=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},Ik=function(t,e,r){if(typeof e=="function")return Ik(t,null,e);e||(e={}),r=m9(r||g9);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,c=function(){t.writable||l()},l=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},h=function(v){r.call(t,v?new Error("exited with error code: "+v):null)},d=function(v){r.call(t,v)},y=function(){process.nextTick(g)},g=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},E=function(){t.req.on("finish",l)};return y9(t)?(t.on("complete",l),t.on("abort",y),t.req?E():t.on("request",E)):o&&!n&&(t.on("end",c),t.on("close",c)),_9(t)&&t.on("exit",h),t.on("end",f),t.on("finish",l),e.error!==!1&&t.on("error",d),t.on("close",y),function(){a=!0,t.removeListener("complete",l),t.removeListener("abort",y),t.removeListener("request",E),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",y)}};Lk.exports=Ik});var Fk=m((jQ,Mk)=>{u();var v9=by(),b9=Nk(),Ey=require("fs"),Oa=function(){},E9=/^v?\.0/.test(process.version),jl=function(t){return typeof t=="function"},w9=function(t){return!E9||!Ey?!1:(t instanceof(Ey.ReadStream||Oa)||t instanceof(Ey.WriteStream||Oa))&&jl(t.close)},x9=function(t){return t.setHeader&&jl(t.abort)},S9=function(t,e,r,n){n=v9(n);var i=!1;t.on("close",function(){i=!0}),b9(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,w9(t))return t.close(Oa);if(x9(t))return t.abort();if(jl(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},Dk=function(t){t()},A9=function(t,e){return t.pipe(e)},R9=function(){var t=Array.prototype.slice.call(arguments),e=jl(t[t.length-1]||Oa)&&t.pop()||Oa;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return S9(i,o,a,function(c){r||(r=c),c&&n.forEach(Dk),!o&&(n.forEach(Dk),e(r))})});return t.reduce(A9)};Mk.exports=R9});var Bk=m((HQ,qk)=>{"use strict";u();var{PassThrough:C9}=require("stream");qk.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new C9({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var jk=m(($Q,Js)=>{"use strict";u();var{constants:O9}=require("buffer"),T9=Fk(),k9=Bk(),Hl=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function $l(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=O9.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=T9(t,k9(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Hl)})}),n.getBufferedValue()}Js.exports=$l;Js.exports.default=$l;Js.exports.buffer=(t,e)=>$l(t,{...e,encoding:"buffer"});Js.exports.array=(t,e)=>$l(t,{...e,array:!0});Js.exports.MaxBufferError=Hl});var $k=m((GQ,Hk)=>{"use strict";u();var P9=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),I9=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),L9=new Set([500,502,503,504]),N9={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},D9={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Si(t){let e=parseInt(t,10);return isFinite(e)?e:0}function M9(t){return t?L9.has(t.status):!0}function wy(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function F9(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(!!e.length)return e.join(", ")}Hk.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=wy(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=wy(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":F9(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&I9.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||P9.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=wy(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)N9[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return Si(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return Si(this._rescc["s-maxage"])}if(this._rescc["max-age"])return Si(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+Si(this._rescc["stale-if-error"]),n=e+Si(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+Si(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+Si(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&M9(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!D9[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Ul=m((VQ,Uk)=>{"use strict";u();Uk.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var Vk=m((WQ,Gk)=>{"use strict";u();var q9=require("stream").Readable,B9=Ul(),xy=class extends q9{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=B9(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};Gk.exports=xy});var zk=m((zQ,Wk)=>{"use strict";u();var j9=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];Wk.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(j9));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var Kk=m((YQ,Yk)=>{"use strict";u();var H9=require("stream").PassThrough,$9=zk(),U9=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new H9;return $9(t,e),t.pipe(e)};Yk.exports=U9});var Zk=m(Sy=>{u();Sy.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]>"u";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};Sy.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var e2=m((ZQ,Qk)=>{"use strict";u();var G9=require("events"),Jk=Zk(),V9=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},Xk=["sqlite","postgres","mysql","mongo","redis","tiered"],Ay=class extends G9{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:Jk.stringify,deserialize:Jk.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=V9(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let c=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),c.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Xk.includes(this.opts.store.opts.dialect)||Xk.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(c=>typeof c=="string"?this.opts.deserialize(c):this.opts.compression?this.opts.deserialize(c):c).then(c=>{if(c!=null)return typeof c.expires=="number"&&Date.now()>c.expires?this.delete(a).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(o).then(a=>{let c=[];for(let l of a)c.push(l.value);return c})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let c of o){if(typeof c=="string"&&(c=this.opts.deserialize(c)),c==null){a.push(void 0);continue}typeof c.expires=="number"&&Date.now()>c.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?c:c.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Qk.exports=Ay});var n2=m((JQ,r2)=>{"use strict";u();var W9=require("events"),Gl=require("url"),z9=Rk(),Y9=jk(),Ry=$k(),t2=Vk(),K9=Ul(),Z9=Kk(),J9=e2(),hr=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new J9({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=Cy(Gl.parse(r)),r={};else if(r instanceof Gl.URL)i=Cy(Gl.parse(r.toString())),r={};else{let[h,...d]=(r.path||"").split("?"),y=d.length>0?`?${d.join("?")}`:"";i=Cy({...r,pathname:h,search:y})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...X9(i)},r.headers=K9(r.headers);let s=new W9,o=z9(Gl.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,c=!1,l=!1,f=h=>{l=!0;let d=!1,y,g=new Promise(v=>{y=()=>{d||(d=!0,v())}}),E=v=>{if(c&&!h.forceRefresh){v.status=v.statusCode;let P=Ry.fromObject(c.cachePolicy).revalidatedPolicy(h,v);if(!P.modified){let D=P.policy.responseHeaders();v=new t2(c.statusCode,D,c.body,c.url),v.cachePolicy=P.policy,v.fromCache=!0}}v.fromCache||(v.cachePolicy=new Ry(h,v,h),v.fromCache=!1);let A;h.cache&&v.cachePolicy.storable()?(A=Z9(v),(async()=>{try{let P=Y9.buffer(v);if(await Promise.race([g,new Promise(ue=>v.once("end",ue))]),d)return;let D=await P,ie={cachePolicy:v.cachePolicy.toObject(),url:v.url,statusCode:v.fromCache?c.statusCode:v.statusCode,body:D},z=h.strictTtl?v.cachePolicy.timeToLive():void 0;h.maxTtl&&(z=z?Math.min(z,h.maxTtl):h.maxTtl),await this.cache.set(a,ie,z)}catch(P){s.emit("error",new hr.CacheError(P))}})()):h.cache&&c&&(async()=>{try{await this.cache.delete(a)}catch(P){s.emit("error",new hr.CacheError(P))}})(),s.emit("response",A||v),typeof n=="function"&&n(A||v)};try{let v=e(h,E);v.once("error",y),v.once("abort",y),s.emit("request",v)}catch(v){s.emit("error",new hr.RequestError(v))}};return(async()=>{let h=async y=>{await Promise.resolve();let g=y.cache?await this.cache.get(a):void 0;if(typeof g>"u")return f(y);let E=Ry.fromObject(g.cachePolicy);if(E.satisfiesWithoutRevalidation(y)&&!y.forceRefresh){let v=E.responseHeaders(),A=new t2(g.statusCode,v,g.body,g.url);A.cachePolicy=E,A.fromCache=!0,s.emit("response",A),typeof n=="function"&&n(A)}else c=g,y.headers=E.revalidationHeaders(y),f(y)},d=y=>s.emit("error",new hr.CacheError(y));this.cache.once("error",d),s.on("response",()=>this.cache.removeListener("error",d));try{await h(r)}catch(y){r.automaticFailover&&!l&&f(r),s.emit("error",new hr.CacheError(y))}})(),s}}};function X9(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function Cy(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}hr.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};hr.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};r2.exports=hr});var s2=m((eee,i2)=>{"use strict";u();var Q9=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];i2.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(Q9)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var a2=m((tee,o2)=>{"use strict";u();var{Transform:eG,PassThrough:tG}=require("stream"),Oy=require("zlib"),rG=s2();o2.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Oy.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new eG({transform(a,c,l){n=!1,l(null,a)},flush(a){a()}}),s=new tG({autoDestroy:!1,destroy(a,c){t.destroy(),c(a)}}),o=r?Oy.createBrotliDecompress():Oy.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),rG(t,s),t.pipe(i).pipe(o).pipe(s),s}});var ky=m((ree,c2)=>{"use strict";u();var Ty=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};c2.exports=Ty});var Iy=m((nee,h2)=>{"use strict";u();var nG=require("events"),iG=require("tls"),sG=require("http2"),oG=ky(),_t=Symbol("currentStreamsCount"),u2=Symbol("request"),er=Symbol("cachedOriginSet"),Xs=Symbol("gracefullyClosing"),aG=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],cG=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},uG=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,Py=(t,e)=>{for(let r of t)r[er].length<e[er].length&&r[er].every(n=>e[er].includes(n))&&r[_t]+e[_t]<=e.remoteSettings.maxConcurrentStreams&&f2(r)},lG=(t,e)=>{for(let r of t)e[er].length<r[er].length&&e[er].every(n=>r[er].includes(n))&&e[_t]+r[_t]<=r.remoteSettings.maxConcurrentStreams&&f2(e)},l2=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Ir.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},f2=t=>{t[Xs]=!0,t[_t]===0&&t.close()},Ir=class extends nG{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new oG({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of aG)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Ir.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:f}of n)f(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let f=this.sessions[o],h=-1,d=-1,y;for(let g of f){let E=g.remoteSettings.maxConcurrentStreams;if(E<h)break;if(g[er].includes(a)){let v=g[_t];if(v>=E||g[Xs]||g.destroyed)continue;y||(h=E),v>d&&(y=g,d=v)}}if(y){if(n.length!==1){for(let{reject:g}of n){let E=new Error(`Expected the length of listeners to be 1, got ${n.length}.
52
+ Please report this to https://github.com/szmarczak/http2-wrapper/`);g(E)}return}n[0].resolve(y);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let c=()=>{o in this.queue&&this.queue[o][a]===l&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},l=()=>{let f=`${a}:${o}`,h=!1;try{let d=sG.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(f),...r});d[_t]=0,d[Xs]=!1;let y=()=>d[_t]<d.remoteSettings.maxConcurrentStreams,g=!0;d.socket.once("session",v=>{this.tlsSessionCache.set(f,v)}),d.once("error",v=>{for(let{reject:A}of n)A(v);this.tlsSessionCache.delete(f)}),d.setTimeout(this.timeout,()=>{d.destroy()}),d.once("close",()=>{if(h){g&&this._freeSessionsCount--,this._sessionsCount--;let v=this.sessions[o];v.splice(v.indexOf(d),1),v.length===0&&delete this.sessions[o]}else{let v=new Error("Session closed without receiving a SETTINGS frame");v.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:A}of n)A(v);c()}this._tryToCreateNewSession(o,a)});let E=()=>{if(!(!(o in this.queue)||!y())){for(let v of d[er])if(v in this.queue[o]){let{listeners:A}=this.queue[o][v];for(;A.length!==0&&y();)A.shift().resolve(d);let P=this.queue[o];if(P[v].listeners.length===0&&(delete P[v],Object.keys(P).length===0)){delete this.queue[o];break}if(!y())break}}};d.on("origin",()=>{d[er]=d.originSet,y()&&(E(),Py(this.sessions[o],d))}),d.once("remoteSettings",()=>{if(d.ref(),d.unref(),this._sessionsCount++,l.destroyed){let v=new Error("Agent has been destroyed");for(let A of n)A.reject(v);d.destroy();return}d[er]=d.originSet;{let v=this.sessions;if(o in v){let A=v[o];A.splice(cG(A,d,uG),0,d)}else v[o]=[d]}this._freeSessionsCount+=1,h=!0,this.emit("session",d),E(),c(),d[_t]===0&&this._freeSessionsCount>this.maxFreeSessions&&d.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),d.on("remoteSettings",()=>{E(),Py(this.sessions[o],d)})}),d[u2]=d.request,d.request=(v,A)=>{if(d[Xs])throw new Error("The session is gracefully closing. No new streams are allowed.");let P=d[u2](v,A);return d.ref(),++d[_t],d[_t]===d.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,P.once("close",()=>{if(g=y(),--d[_t],!d.destroyed&&!d.closed&&(lG(this.sessions[o],d),y()&&!d.closed)){g||(this._freeSessionsCount++,g=!0);let D=d[_t]===0;D&&d.unref(),D&&(this._freeSessionsCount>this.maxFreeSessions||d[Xs])?d.close():(Py(this.sessions[o],d),E())}}),P}}catch(d){for(let y of n)y.reject(d);c()}};l.listeners=n,l.completed=!1,l.destroyed=!1,this.queue[o][a]=l,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(c){o(c)}}}])})}createConnection(e,r){return Ir.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername>"u"&&(r.servername=i),iG.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[_t]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return l2({agent:this,isFree:!0})}get busySessions(){return l2({agent:this,isFree:!1})}};Ir.kCurrentStreamsCount=_t;Ir.kGracefullyClosing=Xs;h2.exports={Agent:Ir,globalAgent:new Ir}});var Ny=m((iee,d2)=>{"use strict";u();var{Readable:fG}=require("stream"),Ly=class extends fG{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};d2.exports=Ly});var Dy=m((see,p2)=>{"use strict";u();p2.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var g2=m((oee,m2)=>{"use strict";u();m2.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var _2=m((aee,y2)=>{"use strict";u();y2.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var b2=m((uee,v2)=>{"use strict";u();var Qs=(t,e,r)=>{v2.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Qs(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Qs(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Qs(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Qs(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Qs(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Qs(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var jy=m((lee,C2)=>{"use strict";u();var hG=require("http2"),{Writable:dG}=require("stream"),{Agent:E2,globalAgent:pG}=Iy(),mG=Ny(),gG=Dy(),yG=g2(),_G=_2(),{ERR_INVALID_ARG_TYPE:My,ERR_INVALID_PROTOCOL:vG,ERR_HTTP_HEADERS_SENT:w2,ERR_INVALID_HTTP_TOKEN:bG,ERR_HTTP_INVALID_HEADER_VALUE:EG,ERR_INVALID_CHAR:wG}=b2(),{HTTP2_HEADER_STATUS:x2,HTTP2_HEADER_METHOD:S2,HTTP2_HEADER_PATH:A2,HTTP2_METHOD_CONNECT:xG}=hG.constants,pt=Symbol("headers"),Fy=Symbol("origin"),qy=Symbol("session"),R2=Symbol("options"),Vl=Symbol("flushedHeaders"),Ta=Symbol("jobs"),SG=/^[\^`\-\w!#$%&*+.|~]+$/,AG=/[^\t\u0020-\u007E\u0080-\u00FF]/,By=class extends dG{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=gG(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[qy]=r.h2session;else if(r.agent===!1)this.agent=new E2({maxFreeSessions:0});else if(typeof r.agent>"u"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new E2({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=pG;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new My("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new vG(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[pt]=Object.create(null),this[Ta]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[c,l]of Object.entries(r.headers))this.setHeader(c,l);r.auth&&!("authorization"in this[pt])&&(this[pt].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[R2]=r,s===443?(this[Fy]=`https://${o}`,":authority"in this[pt]||(this[pt][":authority"]=o)):(this[Fy]=`https://${o}:${s}`,":authority"in this[pt]||(this[pt][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Vl]=!1}get method(){return this[pt][S2]}set method(e){e&&(this[pt][S2]=e.toUpperCase())}get path(){return this[pt][A2]}set path(e){e&&(this[pt][A2]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[Ta].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Ta].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[Vl]||this.destroyed)return;this[Vl]=!0;let e=this.method===xG,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||yG(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,c)=>{let l=new mG(this.socket,n.readableHighWaterMark);this.res=l,l.req=this,l.statusCode=o[x2],l.headers=o,l.rawHeaders=c,l.once("end",()=>{this.aborted?(l.aborted=!0,l.emit("aborted")):(l.complete=!0,l.socket=null,l.connection=null)}),e?(l.upgrade=!0,this.emit("connect",l,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!l._dumped&&!l.push(f)&&n.pause()}),n.once("end",()=>{l.push(null)}),this.emit("response",l)||l._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[x2]}))),n.once("trailers",i((o,a,c)=>{let{res:l}=this;l.trailers=o,l.rawTrailers=c}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[Ta])o();this.emit("socket",this.socket)};if(this[qy])try{r(this[qy].request(this[pt]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[Fy],this[R2],this[pt]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new My("name","string",e);return this[pt][e.toLowerCase()]}get headersSent(){return this[Vl]}removeHeader(e){if(typeof e!="string")throw new My("name","string",e);if(this.headersSent)throw new w2("remove");delete this[pt][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new w2("set");if(typeof e!="string"||!SG.test(e)&&!_G(e))throw new bG("Header name",e);if(typeof r>"u")throw new EG(r,e);if(AG.test(r))throw new wG("header content",e);this[pt][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Ta].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};C2.exports=By});var T2=m((fee,O2)=>{"use strict";u();var RG=require("tls");O2.exports=(t={},e=RG.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await c,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},c=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(l){n(l)}})()})});var P2=m((hee,k2)=>{"use strict";u();var CG=require("net");k2.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),CG.isIP(e)?"":e}});var N2=m((dee,$y)=>{"use strict";u();var I2=require("http"),Hy=require("https"),OG=T2(),TG=ky(),kG=jy(),PG=P2(),IG=Dy(),Wl=new TG({maxSize:100}),ka=new Map,L2=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},LG=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Wl.has(e)){if(ka.has(e))return(await ka.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=OG(t);ka.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(Wl.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=Hy,c=Hy.Agent.prototype.createConnection;n?n.createConnection===c?L2(n,s,t):s.destroy():a.createConnection===c?L2(a,s,t):s.destroy()}return ka.delete(e),o}catch(s){throw ka.delete(e),s}}return Wl.get(e)};$y.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=IG(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||PG(e),e.port=e.port||(n?443:80),e._defaultAgent=n?Hy.globalAgent:I2.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await LG(e)==="h2"?(i&&(e.agent=i.http2),new kG(e,r)):I2.request(e,r)};$y.exports.protocolCache=Wl});var M2=m((pee,D2)=>{"use strict";u();var NG=require("http2"),DG=Iy(),Uy=jy(),MG=Ny(),FG=N2(),qG=(t,e,r)=>new Uy(t,e,r),BG=(t,e,r)=>{let n=new Uy(t,e,r);return n.end(),n};D2.exports={...NG,ClientRequest:Uy,IncomingMessage:MG,...DG,request:qG,get:BG,auto:FG}});var Vy=m(Gy=>{"use strict";u();Object.defineProperty(Gy,"__esModule",{value:!0});var F2=cn();Gy.default=t=>F2.default.nodeStream(t)&&F2.default.function_(t.getBoundary)});var H2=m(Wy=>{"use strict";u();Object.defineProperty(Wy,"__esModule",{value:!0});var B2=require("fs"),j2=require("util"),q2=cn(),jG=Vy(),HG=j2.promisify(B2.stat);Wy.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(q2.default.string(t))return Buffer.byteLength(t);if(q2.default.buffer(t))return t.length;if(jG.default(t))return j2.promisify(t.getLength.bind(t))();if(t instanceof B2.ReadStream){let{size:r}=await HG(t.path);return r===0?void 0:r}}});var Yy=m(zy=>{"use strict";u();Object.defineProperty(zy,"__esModule",{value:!0});function $G(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}zy.default=$G});var $2=m(Ky=>{"use strict";u();Object.defineProperty(Ky,"__esModule",{value:!0});Ky.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var G2=m(Pa=>{"use strict";u();Object.defineProperty(Pa,"__esModule",{value:!0});Pa.TimeoutError=void 0;var UG=require("net"),GG=$2(),U2=Symbol("reentry"),VG=()=>{},zl=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Pa.TimeoutError=zl;Pa.default=(t,e,r)=>{if(U2 in t)return VG;t[U2]=!0;let n=[],{once:i,unhandleAll:s}=GG.default(),o=(h,d,y)=>{var g;let E=setTimeout(d,h,h,y);(g=E.unref)===null||g===void 0||g.call(E);let v=()=>{clearTimeout(E)};return n.push(v),v},{host:a,hostname:c}=r,l=(h,d)=>{t.destroy(new zl(h,d))},f=()=>{for(let h of n)h();s()};if(t.once("error",h=>{if(f(),t.listenerCount("error")===0)throw h}),t.once("close",f),i(t,"response",h=>{i(h,"end",f)}),typeof e.request<"u"&&o(e.request,l,"request"),typeof e.socket<"u"){let h=()=>{l(e.socket,"socket")};t.setTimeout(e.socket,h),n.push(()=>{t.removeListener("timeout",h)})}return i(t,"socket",h=>{var d;let{socketPath:y}=t;if(h.connecting){let g=Boolean(y!=null?y:UG.isIP((d=c!=null?c:a)!==null&&d!==void 0?d:"")!==0);if(typeof e.lookup<"u"&&!g&&typeof h.address().address>"u"){let E=o(e.lookup,l,"lookup");i(h,"lookup",E)}if(typeof e.connect<"u"){let E=()=>o(e.connect,l,"connect");g?i(h,"connect",E()):i(h,"lookup",v=>{v===null&&i(h,"connect",E())})}typeof e.secureConnect<"u"&&r.protocol==="https:"&&i(h,"connect",()=>{let E=o(e.secureConnect,l,"secureConnect");i(h,"secureConnect",E)})}if(typeof e.send<"u"){let g=()=>o(e.send,l,"send");h.connecting?i(h,"connect",()=>{i(t,"upload-complete",g())}):i(t,"upload-complete",g())}}),typeof e.response<"u"&&i(t,"upload-complete",()=>{let h=o(e.response,l,"response");i(t,"response",h)}),f}});var W2=m(Zy=>{"use strict";u();Object.defineProperty(Zy,"__esModule",{value:!0});var V2=cn();Zy.default=t=>{t=t;let e={protocol:t.protocol,hostname:V2.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return V2.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var z2=m(Jy=>{"use strict";u();Object.defineProperty(Jy,"__esModule",{value:!0});var WG=require("url"),zG=["protocol","host","hostname","port","pathname","search"];Jy.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new WG.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of zG)e[s]&&(i[s]=e[s].toString());return i}});var Y2=m(Qy=>{"use strict";u();Object.defineProperty(Qy,"__esModule",{value:!0});var Xy=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Qy.default=Xy});var t0=m(e0=>{"use strict";u();Object.defineProperty(e0,"__esModule",{value:!0});var YG=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};e0.default=YG});var Z2=m(Ai=>{"use strict";u();Object.defineProperty(Ai,"__esModule",{value:!0});Ai.dnsLookupIpVersionToFamily=Ai.isDnsLookupIpVersion=void 0;var K2={auto:0,ipv4:4,ipv6:6};Ai.isDnsLookupIpVersion=t=>t in K2;Ai.dnsLookupIpVersionToFamily=t=>{if(Ai.isDnsLookupIpVersion(t))return K2[t];throw new Error("Invalid DNS lookup IP version")}});var r0=m(Yl=>{"use strict";u();Object.defineProperty(Yl,"__esModule",{value:!0});Yl.isResponseOk=void 0;Yl.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var X2=m(n0=>{"use strict";u();Object.defineProperty(n0,"__esModule",{value:!0});var J2=new Set;n0.default=t=>{J2.has(t)||(J2.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var Q2=m(i0=>{"use strict";u();Object.defineProperty(i0,"__esModule",{value:!0});var Ce=cn(),KG=(t,e)=>{if(Ce.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Ce.assert.any([Ce.default.string,Ce.default.undefined],t.encoding),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.resolveBodyOnly),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.methodRewriting),Ce.assert.any([Ce.default.boolean,Ce.default.undefined],t.isStream),Ce.assert.any([Ce.default.string,Ce.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Ce.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Ce.default.number(r)&&(t.retry.limit=r),Ce.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Ce.default.number))),Ce.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!Ce.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Ce.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Ce.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Ce.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};i0.default=KG});var eP=m(Ia=>{"use strict";u();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.retryAfterStatusCodes=void 0;Ia.retryAfterStatusCodes=new Set([413,429,503]);var ZG=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Ia.default=ZG});var Da=m(pe=>{"use strict";u();Object.defineProperty(pe,"__esModule",{value:!0});pe.UnsupportedProtocolError=pe.ReadError=pe.TimeoutError=pe.UploadError=pe.CacheError=pe.HTTPError=pe.MaxRedirectsError=pe.RequestError=pe.setNonEnumerableProperties=pe.knownHookEvents=pe.withoutBody=pe.kIsNormalizedAlready=void 0;var tP=require("util"),rP=require("stream"),JG=require("fs"),Un=require("url"),nP=require("http"),s0=require("http"),XG=require("https"),QG=gk(),e7=xk(),iP=n2(),t7=a2(),r7=M2(),n7=Ul(),O=cn(),i7=H2(),sP=Vy(),s7=Yy(),oP=G2(),o7=W2(),aP=z2(),a7=Y2(),c7=t0(),cP=Z2(),u7=r0(),Gn=X2(),l7=Q2(),f7=eP(),o0,tt=Symbol("request"),Jl=Symbol("response"),eo=Symbol("responseSize"),to=Symbol("downloadedSize"),ro=Symbol("bodySize"),no=Symbol("uploadedSize"),Kl=Symbol("serverResponsesPiped"),uP=Symbol("unproxyEvents"),lP=Symbol("isFromCache"),a0=Symbol("cancelTimeouts"),fP=Symbol("startedReading"),io=Symbol("stopReading"),Zl=Symbol("triggerRead"),Vn=Symbol("body"),La=Symbol("jobs"),hP=Symbol("originalResponse"),dP=Symbol("retryTimeout");pe.kIsNormalizedAlready=Symbol("isNormalizedAlready");var h7=O.default.string(process.versions.brotli);pe.withoutBody=new Set(["GET","HEAD"]);pe.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function d7(t){for(let e in t){let r=t[e];if(!O.default.string(r)&&!O.default.number(r)&&!O.default.boolean(r)&&!O.default.null_(r)&&!O.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function p7(t){return O.default.object(t)&&!("statusCode"in t)}var c0=new a7.default,m7=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),g7=new Set([300,301,302,303,304,307,308]),y7=["context","body","json","form"];pe.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(!!n)for(let i of y7)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Be=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof sf?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[Jl]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,O.default.string(r.stack)&&O.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
53
+ `).reverse(),c=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
54
+ `).reverse();for(;c.length!==0&&c[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
55
+ `)}${c.reverse().join(`
56
+ `)}`}}};pe.RequestError=Be;var Xl=class extends Be{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};pe.MaxRedirectsError=Xl;var Ql=class extends Be{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};pe.HTTPError=Ql;var ef=class extends Be{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};pe.CacheError=ef;var tf=class extends Be{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};pe.UploadError=tf;var rf=class extends Be{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};pe.TimeoutError=rf;var Na=class extends Be{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};pe.ReadError=Na;var nf=class extends Be{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};pe.UnsupportedProtocolError=nf;var _7=["socket","connect","continue","information","upgrade","timeout"],sf=class extends rP.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[to]=0,this[no]=0,this.requestInitialized=!1,this[Kl]=new Set,this.redirects=[],this[io]=!1,this[Zl]=!1,this[La]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",l=>{l.prependListener("data",i),l.on("data",s),l.prependListener("end",i),l.on("end",s)}),this.on("unpipe",l=>{l.off("data",i),l.off("data",s),l.off("end",i),l.off("end",s)}),this.on("pipe",l=>{l instanceof s0.IncomingMessage&&(this.options.headers={...l.headers,...this.options.headers})});let{json:o,body:a,form:c}=r;if((o||a||c)&&this._lockWrite(),pe.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(l){O.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(l);return}(async()=>{var l;try{this.options.body instanceof JG.ReadStream&&await m7(this.options.body);let{url:f}=this.options;if(!f)throw new TypeError("Missing `url` property");if(this.requestUrl=f.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(l=this[tt])===null||l===void 0||l.destroy();return}for(let h of this[La])h();this[La].length=0,this.requestInitialized=!0}catch(f){if(f instanceof Be){this._beforeError(f);return}this.destroyed||this.destroy(f)}})()}static normalizeArguments(e,r,n){var i,s,o,a,c;let l=r;if(O.default.object(e)&&!O.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),O.default.urlInstance(r.url)&&(r.url=new Un.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),O.assert.any([O.default.string,O.default.undefined],r.method),O.assert.any([O.default.object,O.default.undefined],r.headers),O.assert.any([O.default.string,O.default.urlInstance,O.default.undefined],r.prefixUrl),O.assert.any([O.default.object,O.default.undefined],r.cookieJar),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.searchParams),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.cache),O.assert.any([O.default.object,O.default.number,O.default.undefined],r.timeout),O.assert.any([O.default.object,O.default.undefined],r.context),O.assert.any([O.default.object,O.default.undefined],r.hooks),O.assert.any([O.default.boolean,O.default.undefined],r.decompress),O.assert.any([O.default.boolean,O.default.undefined],r.ignoreInvalidCookies),O.assert.any([O.default.boolean,O.default.undefined],r.followRedirect),O.assert.any([O.default.number,O.default.undefined],r.maxRedirects),O.assert.any([O.default.boolean,O.default.undefined],r.throwHttpErrors),O.assert.any([O.default.boolean,O.default.undefined],r.http2),O.assert.any([O.default.boolean,O.default.undefined],r.allowGetBody),O.assert.any([O.default.string,O.default.undefined],r.localAddress),O.assert.any([cP.isDnsLookupIpVersion,O.default.undefined],r.dnsLookupIpVersion),O.assert.any([O.default.object,O.default.undefined],r.https),O.assert.any([O.default.boolean,O.default.undefined],r.rejectUnauthorized),r.https&&(O.assert.any([O.default.boolean,O.default.undefined],r.https.rejectUnauthorized),O.assert.any([O.default.function_,O.default.undefined],r.https.checkServerIdentity),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificateAuthority),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.key),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificate),O.assert.any([O.default.string,O.default.undefined],r.https.passphrase),O.assert.any([O.default.string,O.default.buffer,O.default.array,O.default.undefined],r.https.pfx)),O.assert.any([O.default.object,O.default.undefined],r.cacheOptions),O.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=n7({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let y;if(O.default.string(r.searchParams)||r.searchParams instanceof Un.URLSearchParams)y=new Un.URLSearchParams(r.searchParams);else{d7(r.searchParams),y=new Un.URLSearchParams;for(let g in r.searchParams){let E=r.searchParams[g];E===null?y.append(g,""):E!==void 0&&y.append(g,E)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((g,E)=>{y.has(E)||y.append(E,g)}),r.searchParams=y}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",O.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),O.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=aP.default(r.prefixUrl+r.url,r)}else(O.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=aP.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:y}=r;Object.defineProperty(r,"prefixUrl",{set:E=>{let v=r.url;if(!v.href.startsWith(E))throw new Error(`Cannot change \`prefixUrl\` from ${y} to ${E}: ${v.href}`);r.url=new Un.URL(E+v.href.slice(y.length)),y=E},get:()=>y});let{protocol:g}=r.url;if(g==="unix:"&&(g="http:",r.url=new Un.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),g!=="http:"&&g!=="https:")throw new nf(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:f}=r;if(f){let{setCookie:y,getCookieString:g}=f;O.assert.function_(y),O.assert.function_(g),y.length===4&&g.length===0&&(y=tP.promisify(y.bind(r.cookieJar)),g=tP.promisify(g.bind(r.cookieJar)),r.cookieJar={setCookie:y,getCookieString:g})}let{cache:h}=r;if(h&&(c0.has(h)||c0.set(h,new iP((y,g)=>{let E=y[tt](y,g);return O.default.promise(E)&&(E.once=(v,A)=>{if(v==="error")E.catch(A);else if(v==="abort")(async()=>{try{(await E).once("abort",A)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${v}`);return E}),E},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)o0||(o0=new e7.default),r.dnsCache=o0;else if(!O.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${O.default(r.dnsCache)}`);O.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let d=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let y of pe.knownHookEvents)if(y in r.hooks)if(O.default.array(r.hooks[y]))r.hooks[y]=[...r.hooks[y]];else throw new TypeError(`Parameter \`${y}\` must be an Array, got ${O.default(r.hooks[y])}`);else r.hooks[y]=[];if(n&&!d)for(let y of pe.knownHookEvents)n.hooks[y].length>0&&(r.hooks[y]=[...n.hooks[y],...r.hooks[y]]);if("family"in r&&Gn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&Gn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Gn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Gn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Gn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Gn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Gn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Gn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let y in r.agent)if(y!=="http"&&y!=="https"&&y!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${y}\``)}return r.maxRedirects=(c=r.maxRedirects)!==null&&c!==void 0?c:0,pe.setNonEnumerableProperties([n,l],r),l7.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!O.default.undefined(e.form),i=!O.default.undefined(e.json),s=!O.default.undefined(e.body),o=n||i||s,a=pe.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(c=>c).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof rP.Readable)&&!O.default.string(e.body)&&!O.default.buffer(e.body)&&!sP.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!O.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let c=!O.default.string(r["content-type"]);s?(sP.default(e.body)&&c&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Vn]=e.body):n?(c&&(r["content-type"]="application/x-www-form-urlencoded"),this[Vn]=new Un.URLSearchParams(e.form).toString()):(c&&(r["content-type"]="application/json"),this[Vn]=e.stringifyJson(e.json));let l=await i7.default(this[Vn],e.headers);O.default.undefined(r["content-length"])&&O.default.undefined(r["transfer-encoding"])&&!a&&!O.default.undefined(l)&&(r["content-length"]=String(l))}}else a?this._lockWrite():this._unlockWrite();this[ro]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[hP]=e,r.decompress&&(e=t7(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:nP.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[lP]=s.isFromCache,this[eo]=Number(e.headers["content-length"])||void 0,this[Jl]=e,e.once("end",()=>{this[eo]=this[to],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Na(a,this))}),e.once("aborted",()=>{this._beforeError(new Na({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(O.default.object(r.cookieJar)&&o){let a=o.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async c=>c.catch(()=>{})));try{await Promise.all(a)}catch(c){this._beforeError(c);return}}if(r.followRedirect&&e.headers.location&&g7.has(i)){if(e.resume(),this[tt]&&(this[a0](),delete this[tt],this[uP]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Vn]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Xl(this));return}try{let h=function(d){return d.protocol==="unix:"||d.hostname==="unix"},c=Buffer.from(e.headers.location,"binary").toString(),l=new Un.URL(c,n),f=l.toString();if(decodeURI(f),!h(n)&&h(l)){this._beforeError(new Be("Cannot redirect to UNIX socket",{},this));return}l.hostname!==n.hostname||l.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(l.username=r.username,l.password=r.password),this.redirects.push(f),r.url=l;for(let d of r.hooks.beforeRedirect)await d(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(c){this._beforeError(c);return}return}if(r.isStream&&r.throwHttpErrors&&!u7.isResponseOk(s)){this._beforeError(new Ql(s));return}e.on("readable",()=>{this[Zl]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Kl])if(!a.headersSent){for(let c in e.headers){let l=r.decompress?c!=="content-encoding":!0,f=e.headers[c];l&&a.setHeader(c,f)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;QG.default(e),this[a0]=oP.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,c=>{this._onResponse(c)}),e.once("error",c=>{var l;e.destroy(),(l=e.res)===null||l===void 0||l.removeAllListeners("end"),c=c instanceof oP.TimeoutError?new rf(c,this.timings,this):new Be(c.message,c,this),this._beforeError(c)}),this[uP]=s7.default(e,this,_7),this[tt]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Vn],a=this.redirects.length===0?this:e;O.default.nodeStream(o)?(o.pipe(a),o.once("error",c=>{this._beforeError(new tf(c,this))})):(this._unlockWrite(),O.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,o7.default(e)),delete r.url;let s,o=c0.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let A in a)if(O.default.undefined(a[A]))delete a[A];else if(O.default.null_(a[A]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${A}\` header`);if(o.decompress&&O.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=h7?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let A=await o.cookieJar.getCookieString(o.url.toString());O.default.nonEmptyString(A)&&(o.headers.cookie=A)}for(let A of o.hooks.beforeRequest){let P=await A(o);if(!O.default.undefined(P)){o.request=()=>P;break}}o.body&&this[Vn]!==o.body&&(this[Vn]=o.body);let{agent:c,request:l,timeout:f,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let A=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(A!=null&&A.groups){let{socketPath:P,path:D}=A.groups;Object.assign(o,{socketPath:P,path:D,host:""})}}let d=h.protocol==="https:",y;o.http2?y=r7.auto:y=d?XG.request:nP.request;let g=(e=o.request)!==null&&e!==void 0?e:y,E=o.cache?this._createCacheableRequest:g;c&&!o.http2&&(o.agent=c[d?"https":"http"]),o[tt]=g,delete o.request,delete o.timeout;let v=o;if(v.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,v.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,v.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,v.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{v.family=cP.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(v.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(v.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(v.ca=o.https.certificateAuthority),o.https.certificate&&(v.cert=o.https.certificate),o.https.key&&(v.key=o.https.key),o.https.passphrase&&(v.passphrase=o.https.passphrase),o.https.pfx&&(v.pfx=o.https.pfx));try{let A=await E(h,v);O.default.undefined(A)&&(A=y(h,v)),o.request=l,o.timeout=f,o.agent=c,o.https&&("rejectUnauthorized"in o.https&&delete v.rejectUnauthorized,o.https.checkServerIdentity&&delete v.checkServerIdentity,o.https.certificateAuthority&&delete v.ca,o.https.certificate&&delete v.cert,o.https.key&&delete v.key,o.https.passphrase&&delete v.passphrase,o.https.pfx&&delete v.pfx),p7(A)?this._onRequest(A):this.writable?(this.once("finish",()=>{this._onResponse(A)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(A)}catch(A){throw A instanceof iP.CacheError?new ef(A,this):new Be(A.message,A,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Be(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[io])return;let{options:r}=this,n=this.retryCount+1;this[io]=!0,e instanceof Be||(e=new Be(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await c7.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:f7.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Be(a.message,a,this));return}if(o){let a=async()=>{try{for(let c of this.options.hooks.beforeRetry)await c(this.options,i,n)}catch(c){this._error(new Be(c.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[dP]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[Zl]=!0;let e=this[Jl];if(e&&!this[io]){e.readableLength&&(this[Zl]=!1);let r;for(;(r=e.read())!==null;){this[to]+=r.length,this[fP]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[La].push(i)}_writeRequest(e,r,n){this[tt].destroyed||(this._progressCallbacks.push(()=>{this[no]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[tt].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(tt in this)){e();return}if(this[tt].destroyed){e();return}this[tt].end(n=>{n||(this[ro]=this[no],this.emit("uploadProgress",this.uploadProgress),this[tt].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[La].push(r)}_destroy(e,r){var n;this[io]=!0,clearTimeout(this[dP]),tt in this&&(this[a0](),!((n=this[Jl])===null||n===void 0)&&n.complete||this[tt].destroy()),e!==null&&!O.default.undefined(e)&&!(e instanceof Be)&&(e=new Be(e.message,e,this)),r(e)}get _isAboutToError(){return this[io]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[tt])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[hP])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[tt])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[eo]?e=this[to]/this[eo]:this[eo]===this[to]?e=1:e=0,{percent:e,transferred:this[to],total:this[eo]}}get uploadProgress(){let e;return this[ro]?e=this[no]/this[ro]:this[ro]===this[no]?e=1:e=0,{percent:e,transferred:this[no],total:this[ro]}}get timings(){var e;return(e=this[tt])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[lP]}pipe(e,r){if(this[fP])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof s0.ServerResponse&&this[Kl].add(e),super.pipe(e,r)}unpipe(e){return e instanceof s0.ServerResponse&&this[Kl].delete(e),super.unpipe(e),this}};pe.default=sf});var Ma=m(dr=>{"use strict";u();var v7=dr&&dr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),b7=dr&&dr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v7(e,t,r)};Object.defineProperty(dr,"__esModule",{value:!0});dr.CancelError=dr.ParseError=void 0;var pP=Da(),u0=class extends pP.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};dr.ParseError=u0;var l0=class extends pP.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};dr.CancelError=l0;b7(Da(),dr)});var gP=m(f0=>{"use strict";u();Object.defineProperty(f0,"__esModule",{value:!0});var mP=Ma(),E7=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new mP.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new mP.ParseError(s,t)}};f0.default=E7});var h0=m(Wn=>{"use strict";u();var w7=Wn&&Wn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),x7=Wn&&Wn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&w7(e,t,r)};Object.defineProperty(Wn,"__esModule",{value:!0});var S7=require("events"),A7=cn(),R7=pk(),of=Ma(),yP=gP(),_P=Da(),C7=Yy(),O7=t0(),vP=r0(),T7=["request","response","redirect","uploadProgress","downloadProgress"];function bP(t){let e,r,n=new S7.EventEmitter,i=new R7((o,a,c)=>{let l=f=>{let h=new _P.default(void 0,t);h.retryCount=f,h._noPipe=!0,c(()=>h.destroy()),c.shouldReject=!1,c(()=>a(new of.CancelError(h))),e=h,h.once("response",async g=>{var E;if(g.retryCount=f,g.request.aborted)return;let v;try{v=await O7.default(h),g.rawBody=v}catch{return}if(h._isAboutToError)return;let A=((E=g.headers["content-encoding"])!==null&&E!==void 0?E:"").toLowerCase(),P=["gzip","deflate","br"].includes(A),{options:D}=h;if(P&&!D.decompress)g.body=v;else try{g.body=yP.default(g,D.responseType,D.parseJson,D.encoding)}catch(ie){if(g.body=v.toString(),vP.isResponseOk(g)){h._beforeError(ie);return}}try{for(let[ie,z]of D.hooks.afterResponse.entries())g=await z(g,async ue=>{let K=_P.default.normalizeArguments(void 0,{...ue,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},D);K.hooks.afterResponse=K.hooks.afterResponse.slice(0,ie);for(let F of K.hooks.beforeRetry)await F(K);let Z=bP(K);return c(()=>{Z.catch(()=>{}),Z.cancel()}),Z})}catch(ie){h._beforeError(new of.RequestError(ie.message,ie,h));return}if(r=g,!vP.isResponseOk(g)){h._beforeError(new of.HTTPError(g));return}h.destroy(),o(h.options.resolveBodyOnly?g.body:g)});let d=g=>{if(i.isCanceled)return;let{options:E}=h;if(g instanceof of.HTTPError&&!E.throwHttpErrors){let{response:v}=g;o(h.options.resolveBodyOnly?v.body:v);return}a(g)};h.once("error",d);let y=h.options.body;h.once("retry",(g,E)=>{var v,A;if(y===((v=E.request)===null||v===void 0?void 0:v.options.body)&&A7.default.nodeStream((A=E.request)===null||A===void 0?void 0:A.options.body)){d(E);return}l(g)}),C7.default(h,n,T7)};l(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:c}=r.request;return yP.default(r,o,c.parseJson,c.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}Wn.default=bP;x7(Ma(),Wn)});var EP=m(d0=>{"use strict";u();Object.defineProperty(d0,"__esModule",{value:!0});var k7=Ma();function P7(t,...e){let r=(async()=>{if(t instanceof k7.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}d0.default=P7});var SP=m(p0=>{"use strict";u();Object.defineProperty(p0,"__esModule",{value:!0});var wP=cn();function xP(t){for(let e of Object.values(t))(wP.default.plainObject(e)||wP.default.array(e))&&xP(e);return Object.freeze(t)}p0.default=xP});var RP=m(AP=>{"use strict";u();Object.defineProperty(AP,"__esModule",{value:!0})});var m0=m(rr=>{"use strict";u();var I7=rr&&rr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),L7=rr&&rr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&I7(e,t,r)};Object.defineProperty(rr,"__esModule",{value:!0});rr.defaultHandler=void 0;var CP=cn(),tr=h0(),N7=EP(),cf=Da(),D7=SP(),M7={RequestError:tr.RequestError,CacheError:tr.CacheError,ReadError:tr.ReadError,HTTPError:tr.HTTPError,MaxRedirectsError:tr.MaxRedirectsError,TimeoutError:tr.TimeoutError,ParseError:tr.ParseError,CancelError:tr.CancelError,UnsupportedProtocolError:tr.UnsupportedProtocolError,UploadError:tr.UploadError},F7=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:af}=cf.default,OP=(...t)=>{let e;for(let r of t)e=af(void 0,r,e);return e},q7=t=>t.isStream?new cf.default(void 0,t):tr.default(t),B7=t=>"defaults"in t&&"options"in t.defaults,j7=["get","post","put","patch","head","delete"];rr.defaultHandler=(t,e)=>e(t);var TP=(t,e)=>{if(t)for(let r of t)r(e)},kP=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,c=>(o=s(c),o));if(a!==o&&!i.isStream&&o){let c=a,{then:l,catch:f,finally:h}=c;Object.setPrototypeOf(c,Object.getPrototypeOf(o)),Object.defineProperties(c,Object.getOwnPropertyDescriptors(o)),c.then=l,c.catch=f,c.finally=h}return a});let e=(n,i={},s)=>{var o,a;let c=0,l=f=>t.handlers[c++](f,c===t.handlers.length?q7:l);if(CP.default.plainObject(n)){let f={...n,...i};cf.setNonEnumerableProperties([n,i],f),i=f,n=void 0}try{let f;try{TP(t.options.hooks.init,i),TP((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(d){f=d}let h=af(n,i,s!=null?s:t.options);if(h[cf.kIsNormalizedAlready]=!0,f)throw new tr.RequestError(f.message,f,h);return l(h)}catch(f){if(i.isStream)throw f;return N7.default(f,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)B7(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==rr.defaultHandler),s.length===0&&s.push(rr.defaultHandler),kP({options:OP(...i),handlers:s,mutableDefaults:Boolean(o)})};let r=async function*(n,i){let s=af(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!CP.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:c}=o,l=0;for(;l<o.requestLimit;){l!==0&&await F7(o.backoff);let f=await e(void 0,void 0,s),h=await o.transform(f),d=[];for(let g of h)if(o.filter(g,a,d)&&(!o.shouldContinue(g,a,d)||(yield g,o.stackAllItems&&a.push(g),d.push(g),--c<=0)))return;let y=o.paginate(f,a,d);if(y===!1)return;y===f.request.options?s=f.request.options:y!==void 0&&(s=af(void 0,y,s)),l++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of j7)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,M7),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:D7.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=OP,e};rr.default=kP;L7(RP(),rr)});var LP=m((un,uf)=>{"use strict";u();var H7=un&&un.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),PP=un&&un.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&H7(e,t,r)};Object.defineProperty(un,"__esModule",{value:!0});var $7=require("url"),IP=m0(),U7={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new $7.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[IP.defaultHandler],mutableDefaults:!1},g0=IP.default(U7);un.default=g0;uf.exports=g0;uf.exports.default=g0;uf.exports.__esModule=!0;PP(m0(),un);PP(h0(),un)});var qP=m((jee,FP)=>{u();function nr(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}FP.exports=nr;nr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};nr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};nr.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};nr.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};nr.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};nr.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};nr.prototype.start=nr.prototype.try;nr.prototype.errors=function(){return this._errors};nr.prototype.attempts=function(){return this._attempts};nr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var BP=m(Ri=>{u();var z7=qP();Ri.operation=function(t){var e=Ri.timeouts(t);return new z7(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Ri.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};Ri.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Ri.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(c){var l=Ri.operation(e),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){c.apply(t,f)})}.bind(t,o),t[s].options=e}}});var HP=m(($ee,jP)=>{u();jP.exports=BP()});var UP=m((Uee,$P)=>{u();var Y7=HP();function K7(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Y7.operation(s);function a(f){i(f||new Error("Aborted"))}function c(f,h){if(f.bail){a(f);return}o.retry(f)?s.onRetry&&s.onRetry(f,h):i(o.mainError())}function l(f){var h;try{h=t(a,f)}catch(d){c(d,f);return}Promise.resolve(h).then(n).catch(function(y){c(y,f)})}o.attempt(l)}return new Promise(r)}$P.exports=K7});var _0=m(y0=>{"use strict";u();Object.defineProperty(y0,"__esModule",{value:!0});y0.default=aV;var sV=oV(require("crypto"));function oV(t){return t&&t.__esModule?t:{default:t}}var ff=new Uint8Array(256),lf=ff.length;function aV(){return lf>ff.length-16&&(sV.default.randomFillSync(ff),lf=0),ff.slice(lf,lf+=16)}});var GP=m(hf=>{"use strict";u();Object.defineProperty(hf,"__esModule",{value:!0});hf.default=void 0;var cV=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;hf.default=cV});var Fa=m(df=>{"use strict";u();Object.defineProperty(df,"__esModule",{value:!0});df.default=void 0;var uV=lV(GP());function lV(t){return t&&t.__esModule?t:{default:t}}function fV(t){return typeof t=="string"&&uV.default.test(t)}var hV=fV;df.default=hV});var Ba=m(qa=>{"use strict";u();Object.defineProperty(qa,"__esModule",{value:!0});qa.default=void 0;qa.unsafeStringify=VP;var dV=pV(Fa());function pV(t){return t&&t.__esModule?t:{default:t}}var rt=[];for(let t=0;t<256;++t)rt.push((t+256).toString(16).slice(1));function VP(t,e=0){return rt[t[e+0]]+rt[t[e+1]]+rt[t[e+2]]+rt[t[e+3]]+"-"+rt[t[e+4]]+rt[t[e+5]]+"-"+rt[t[e+6]]+rt[t[e+7]]+"-"+rt[t[e+8]]+rt[t[e+9]]+"-"+rt[t[e+10]]+rt[t[e+11]]+rt[t[e+12]]+rt[t[e+13]]+rt[t[e+14]]+rt[t[e+15]]}function mV(t,e=0){let r=VP(t,e);if(!(0,dV.default)(r))throw TypeError("Stringified UUID is invalid");return r}var gV=mV;qa.default=gV});var zP=m(pf=>{"use strict";u();Object.defineProperty(pf,"__esModule",{value:!0});pf.default=void 0;var yV=vV(_0()),_V=Ba();function vV(t){return t&&t.__esModule?t:{default:t}}var WP,v0,b0=0,E0=0;function bV(t,e,r){let n=e&&r||0,i=e||new Array(16);t=t||{};let s=t.node||WP,o=t.clockseq!==void 0?t.clockseq:v0;if(s==null||o==null){let d=t.random||(t.rng||yV.default)();s==null&&(s=WP=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]),o==null&&(o=v0=(d[6]<<8|d[7])&16383)}let a=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:E0+1,l=a-b0+(c-E0)/1e4;if(l<0&&t.clockseq===void 0&&(o=o+1&16383),(l<0||a>b0)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b0=a,E0=c,v0=o,a+=122192928e5;let f=((a&268435455)*1e4+c)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=f&255;let h=a/4294967296*1e4&268435455;i[n++]=h>>>8&255,i[n++]=h&255,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(let d=0;d<6;++d)i[n+d]=s[d];return e||(0,_V.unsafeStringify)(i)}var EV=bV;pf.default=EV});var w0=m(mf=>{"use strict";u();Object.defineProperty(mf,"__esModule",{value:!0});mf.default=void 0;var wV=xV(Fa());function xV(t){return t&&t.__esModule?t:{default:t}}function SV(t){if(!(0,wV.default)(t))throw TypeError("Invalid UUID");let e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}var AV=SV;mf.default=AV});var x0=m(Ci=>{"use strict";u();Object.defineProperty(Ci,"__esModule",{value:!0});Ci.URL=Ci.DNS=void 0;Ci.default=kV;var RV=Ba(),CV=OV(w0());function OV(t){return t&&t.__esModule?t:{default:t}}function TV(t){t=unescape(encodeURIComponent(t));let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}var YP="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Ci.DNS=YP;var KP="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Ci.URL=KP;function kV(t,e,r){function n(i,s,o,a){var c;if(typeof i=="string"&&(i=TV(i)),typeof s=="string"&&(s=(0,CV.default)(s)),((c=s)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+i.length);if(l.set(s),l.set(i,s.length),l=r(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,o){a=a||0;for(let f=0;f<16;++f)o[a+f]=l[f];return o}return(0,RV.unsafeStringify)(l)}try{n.name=t}catch{}return n.DNS=YP,n.URL=KP,n}});var ZP=m(gf=>{"use strict";u();Object.defineProperty(gf,"__esModule",{value:!0});gf.default=void 0;var PV=IV(require("crypto"));function IV(t){return t&&t.__esModule?t:{default:t}}function LV(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),PV.default.createHash("md5").update(t).digest()}var NV=LV;gf.default=NV});var XP=m(yf=>{"use strict";u();Object.defineProperty(yf,"__esModule",{value:!0});yf.default=void 0;var DV=JP(x0()),MV=JP(ZP());function JP(t){return t&&t.__esModule?t:{default:t}}var FV=(0,DV.default)("v3",48,MV.default),qV=FV;yf.default=qV});var QP=m(_f=>{"use strict";u();Object.defineProperty(_f,"__esModule",{value:!0});_f.default=void 0;var BV=jV(require("crypto"));function jV(t){return t&&t.__esModule?t:{default:t}}var HV={randomUUID:BV.default.randomUUID};_f.default=HV});var rI=m(vf=>{"use strict";u();Object.defineProperty(vf,"__esModule",{value:!0});vf.default=void 0;var eI=tI(QP()),$V=tI(_0()),UV=Ba();function tI(t){return t&&t.__esModule?t:{default:t}}function GV(t,e,r){if(eI.default.randomUUID&&!e&&!t)return eI.default.randomUUID();t=t||{};let n=t.random||(t.rng||$V.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return(0,UV.unsafeStringify)(n)}var VV=GV;vf.default=VV});var nI=m(bf=>{"use strict";u();Object.defineProperty(bf,"__esModule",{value:!0});bf.default=void 0;var WV=zV(require("crypto"));function zV(t){return t&&t.__esModule?t:{default:t}}function YV(t){return Array.isArray(t)?t=Buffer.from(t):typeof t=="string"&&(t=Buffer.from(t,"utf8")),WV.default.createHash("sha1").update(t).digest()}var KV=YV;bf.default=KV});var sI=m(Ef=>{"use strict";u();Object.defineProperty(Ef,"__esModule",{value:!0});Ef.default=void 0;var ZV=iI(x0()),JV=iI(nI());function iI(t){return t&&t.__esModule?t:{default:t}}var XV=(0,ZV.default)("v5",80,JV.default),QV=XV;Ef.default=QV});var oI=m(wf=>{"use strict";u();Object.defineProperty(wf,"__esModule",{value:!0});wf.default=void 0;var eW="00000000-0000-0000-0000-000000000000";wf.default=eW});var aI=m(xf=>{"use strict";u();Object.defineProperty(xf,"__esModule",{value:!0});xf.default=void 0;var tW=rW(Fa());function rW(t){return t&&t.__esModule?t:{default:t}}function nW(t){if(!(0,tW.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}var iW=nW;xf.default=iW});var cI=m(pr=>{"use strict";u();Object.defineProperty(pr,"__esModule",{value:!0});Object.defineProperty(pr,"NIL",{enumerable:!0,get:function(){return uW.default}});Object.defineProperty(pr,"parse",{enumerable:!0,get:function(){return dW.default}});Object.defineProperty(pr,"stringify",{enumerable:!0,get:function(){return hW.default}});Object.defineProperty(pr,"v1",{enumerable:!0,get:function(){return sW.default}});Object.defineProperty(pr,"v3",{enumerable:!0,get:function(){return oW.default}});Object.defineProperty(pr,"v4",{enumerable:!0,get:function(){return aW.default}});Object.defineProperty(pr,"v5",{enumerable:!0,get:function(){return cW.default}});Object.defineProperty(pr,"validate",{enumerable:!0,get:function(){return fW.default}});Object.defineProperty(pr,"version",{enumerable:!0,get:function(){return lW.default}});var sW=ln(zP()),oW=ln(XP()),aW=ln(rI()),cW=ln(sI()),uW=ln(oI()),lW=ln(aI()),fW=ln(Fa()),hW=ln(Ba()),dW=ln(w0());function ln(t){return t&&t.__esModule?t:{default:t}}});var SI=m(Fr=>{"use strict";u();Object.defineProperty(Fr,"__esModule",{value:!0});function hz(t){return t&&t.__esModule?t:{default:t}}var bI=Object.defineProperty,_I=Object.getOwnPropertySymbols,dz=Object.prototype.hasOwnProperty,pz=Object.prototype.propertyIsEnumerable,vI=(t,e,r)=>e in t?bI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mz=(t,e)=>{for(var r in e||(e={}))dz.call(e,r)&&vI(t,r,e[r]);if(_I)for(var r of _I(e))pz.call(e,r)&&vI(t,r,e[r]);return t},gz=(t,e)=>{for(var r in e)bI(t,r,{get:e[r],enumerable:!0})},yz=(t,e,r)=>new Promise((n,i)=>{var s=c=>{try{a(r.next(c))}catch(l){i(l)}},o=c=>{try{a(r.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,o);a((r=r.apply(t,e)).next())}),EI={};gz(EI,{configDir:()=>xI,darwinConfig:()=>k0,getPathForPlatform:()=>I0,getPlatform:()=>T0,linuxConfig:()=>Tf,winConfig:()=>P0});var _z=require("fs/promises"),vz=require("path"),wI=hz(vz);function T0(){return process.platform}function Tf(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return wI.default.join(process.env.HOME,".config")}function k0(){if(process.env.HOME!==void 0)return wI.default.join(process.env.HOME,"/Library/Application Support")}function P0(){return process.env.APPDATA}function I0({platform:t}){switch(t){case"linux":return Tf();case"darwin":return k0();case"win32":return P0();default:return Tf()}}function xI(){return yz(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:T0(),n=I0({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield _z.stat.call(void 0,n),n}catch{return}}})}Fr.__spreadValues=mz;Fr.getPlatform=T0;Fr.linuxConfig=Tf;Fr.darwinConfig=k0;Fr.winConfig=P0;Fr.getPathForPlatform=I0;Fr.configDir=xI;Fr.config_dir_exports=EI});var AI=m(L0=>{"use strict";u();Object.defineProperty(L0,"__esModule",{value:!0});var bz=SI();L0.configDir=bz.configDir});var PI=m((ire,Pz)=>{Pz.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var NI=m($t=>{"use strict";u();var LI=PI(),We=process.env;Object.defineProperty($t,"_vendors",{value:LI.map(function(t){return t.constant})});$t.name=null;$t.isPR=null;LI.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return II(n)});if($t[t.constant]=r,!!r)switch($t.name=t.name,typeof t.pr){case"string":$t.isPR=!!We[t.pr];break;case"object":"env"in t.pr?$t.isPR=t.pr.env in We&&We[t.pr.env]!==t.pr.ne:"any"in t.pr?$t.isPR=t.pr.any.some(function(n){return!!We[n]}):$t.isPR=II(t.pr);break;default:$t.isPR=null}});$t.isCI=!!(We.CI!=="false"&&(We.BUILD_ID||We.BUILD_NUMBER||We.CI||We.CI_APP_ID||We.CI_BUILD_ID||We.CI_BUILD_NUMBER||We.CI_NAME||We.CONTINUOUS_INTEGRATION||We.RUN_ID||$t.name||!1));function II(t){return typeof t=="string"?!!We[t]:"env"in t?We[t.env]&&We[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!We[e]}):Object.keys(t).every(function(e){return We[e]===t[e]})}});u();u();var s_=le(i_(),1),{program:rY,createCommand:nY,createArgument:iY,createOption:sY,CommanderError:oY,InvalidArgumentError:aY,InvalidOptionArgumentError:cY,Command:o_,Argument:a_,Option:Jn,Help:uY}=s_.default;u();u();u();var yo=require("fs");u();u();u();var $5=le(d_());u();u();function Wf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}u();u();function wo(t){return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wo(t)}u();function zf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yf(t,e){if(e&&(wo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zf(t)}u();function Xn(t){return Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xn(t)}u();u();function $r(t,e){return $r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$r(t,e)}function Kf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$r(t,e)}u();u();function Zf(t){return Function.toString.call(t).indexOf("[native code]")!==-1}u();u();function Jf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ji(t,e,r){return Jf()?ji=Reflect.construct.bind():ji=function(i,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(i,a),l=new c;return o&&$r(l,o.prototype),l},ji.apply(null,arguments)}function xo(t){var e=typeof Map=="function"?new Map:void 0;return xo=function(n){if(n===null||!Zf(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return ji(n,arguments,Xn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$r(i,n)},xo(t)}var Ch=le(k_()),lc=le(require("path")),fc=le(Gb()),U5=function(t){Kf(e,t);function e(r){var n;return Wf(this,e),n=Yf(this,Xn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(xo(Error));function G5(t,e){try{var r=fc.default.readJsonSync(lc.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(n){if(n.code!=="ENOENT")throw n}}function V5(t){try{var e=fc.default.readJsonSync(lc.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function W5(t){var e=fc.default.existsSync(lc.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function Vb(t){var e={current:void 0},r=(0,Ch.sync)(function(n){return[V5(n),G5(n,e),W5(n)].find(function(i){return i})},{cwd:t,type:"directory"});if(e.current===void 0)throw new U5(t);return r===void 0?e.current:r}var Wb=le(require("json5"));u();var Oh=le(require("fs")),Mo=le(require("path"));function Th({target:t,cwd:e,contentCheck:r}){let n=Mo.default.parse(e).root,i=!1,s=e;for(;!i&&s!==n;){if(r)try{let o=Oh.default.readFileSync(Mo.default.join(s,t)).toString();if(r(o)){i=!0;break}}catch{}else if(Oh.default.existsSync(Mo.default.join(s,t))){i=!0;break}s=Mo.default.dirname(s)}return i?s:null}function z5(t){let e=Wb.default.parse(t);return!(e&&"extends"in e)}var kh={};function hc(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,n=t||process.cwd();if(r&&kh[n])return kh[n];let i=Th({target:"turbo.json",cwd:n,contentCheck:z5});if(!i)try{if(i=Vb(n),!i)return null}catch{return null}return r&&(kh[n]=i),i}u();var a6=le(require("fs")),c6=le(require("path"));u();function cE(t){return typeof t>"u"||t===null}function Y5(t){return typeof t=="object"&&t!==null}function K5(t){return Array.isArray(t)?t:cE(t)?[]:[t]}function Z5(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function J5(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function X5(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Q5=cE,eD=Y5,tD=K5,rD=J5,nD=X5,iD=Z5,Ge={isNothing:Q5,isObject:eD,toArray:tD,repeat:rD,isNegativeZero:nD,extend:iD};function uE(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
70
57
 
71
- `+t.mark.snippet),n+" "+r):n}function ra(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=N1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ra.prototype=Object.create(Error.prototype);ra.prototype.constructor=ra;ra.prototype.toString=function(e){return this.name+": "+N1(this,e)};var kt=ra;function sd(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function od(t,e){return Je.repeat(" ",e-t.length)+t}function UB(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,l,f=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)l=sd(t.buffer,n[o-u],i[o-u],t.position-(n[o]-n[o-u]),h),a=Je.repeat(" ",e.indent)+od((t.line-u+1).toString(),f)+" | "+l.str+`
72
- `+a;for(l=sd(t.buffer,n[o],i[o],t.position,h),a+=Je.repeat(" ",e.indent)+od((t.line+1).toString(),f)+" | "+l.str+`
73
- `,a+=Je.repeat("-",e.indent+f+3+l.pos)+`^
74
- `,u=1;u<=e.linesAfter&&!(o+u>=i.length);u++)l=sd(t.buffer,n[o+u],i[o+u],t.position-(n[o]-n[o+u]),h),a+=Je.repeat(" ",e.indent)+od((t.line+u+1).toString(),f)+" | "+l.str+`
75
- `;return a.replace(/\n$/,"")}var GB=UB,VB=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],WB=["scalar","sequence","mapping"];function zB(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function YB(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(VB.indexOf(r)===-1)throw new kt('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=zB(e.styleAliases||null),WB.indexOf(this.kind)===-1)throw new kt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ht=YB;function b1(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function KB(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function ud(t){return this.extend(t)}ud.prototype.extend=function(e){var r=[],n=[];if(e instanceof ht)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new kt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ht))throw new kt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new kt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new kt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof ht))throw new kt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ud.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=b1(i,"implicit"),i.compiledExplicit=b1(i,"explicit"),i.compiledTypeMap=KB(i.compiledImplicit,i.compiledExplicit),i};var ZB=ud,JB=new ht("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),XB=new ht("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),QB=new ht("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),eL=new ZB({explicit:[JB,XB,QB]});function tL(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function rL(){return null}function nL(t){return t===null}var iL=new ht("tag:yaml.org,2002:null",{kind:"scalar",resolve:tL,construct:rL,predicate:nL,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function sL(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function oL(t){return t==="true"||t==="True"||t==="TRUE"}function aL(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var uL=new ht("tag:yaml.org,2002:bool",{kind:"scalar",resolve:sL,construct:oL,predicate:aL,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function cL(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function lL(t){return 48<=t&&t<=55}function fL(t){return 48<=t&&t<=57}function hL(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!cL(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!lL(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!fL(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function dL(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function pL(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Je.isNegativeZero(t)}var mL=new ht("tag:yaml.org,2002:int",{kind:"scalar",resolve:hL,construct:dL,predicate:pL,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),gL=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function yL(t){return!(t===null||!gL.test(t)||t[t.length-1]==="_")}function _L(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var vL=/^[-+]?[0-9]+e/;function EL(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Je.isNegativeZero(t))return"-0.0";return r=t.toString(10),vL.test(r)?r.replace("e",".e"):r}function bL(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Je.isNegativeZero(t))}var wL=new ht("tag:yaml.org,2002:float",{kind:"scalar",resolve:yL,construct:_L,predicate:bL,represent:EL,defaultStyle:"lowercase"}),xL=eL.extend({implicit:[iL,uL,mL,wL]}),SL=xL,M1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),q1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function AL(t){return t===null?!1:M1.exec(t)!==null||q1.exec(t)!==null}function CL(t){var e,r,n,i,s,o,a,u=0,l=null,f,h,d;if(e=M1.exec(t),e===null&&(e=q1.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(f=+e[10],h=+(e[11]||0),l=(f*60+h)*6e4,e[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,o,a,u)),l&&d.setTime(d.getTime()-l),d}function DL(t){return t.toISOString()}var RL=new ht("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:AL,construct:CL,instanceOf:Date,represent:DL});function OL(t){return t==="<<"||t===null}var TL=new ht("tag:yaml.org,2002:merge",{kind:"scalar",resolve:OL}),dd=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
76
- \r`;function kL(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=dd;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function FL(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=dd,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function PL(t){var e="",r=0,n,i,s=t.length,o=dd;for(n=0;n<s;n++)n%3===0&&n&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function IL(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var BL=new ht("tag:yaml.org,2002:binary",{kind:"scalar",resolve:kL,construct:FL,predicate:IL,represent:PL}),LL=Object.prototype.hasOwnProperty,NL=Object.prototype.toString;function ML(t){if(t===null)return!0;var e=[],r,n,i,s,o,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,NL.call(i)!=="[object Object]")return!1;for(s in i)if(LL.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function qL(t){return t!==null?t:[]}var jL=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ML,construct:qL}),HL=Object.prototype.toString;function $L(t){if(t===null)return!0;var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],HL.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function UL(t){if(t===null)return[];var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var GL=new ht("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:$L,construct:UL}),VL=Object.prototype.hasOwnProperty;function WL(t){if(t===null)return!0;var e,r=t;for(e in r)if(VL.call(r,e)&&r[e]!==null)return!1;return!0}function zL(t){return t!==null?t:{}}var YL=new ht("tag:yaml.org,2002:set",{kind:"mapping",resolve:WL,construct:zL}),j1=SL.extend({implicit:[RL,TL],explicit:[BL,jL,GL,YL]}),Pn=Object.prototype.hasOwnProperty,Iu=1,H1=2,$1=3,Bu=4,ad=1,KL=2,w1=3,ZL=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,JL=/[\x85\u2028\u2029]/,XL=/[,\[\]\{\}]/,U1=/^(?:!|!!|![a-z\-]+!)$/i,G1=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x1(t){return Object.prototype.toString.call(t)}function Dr(t){return t===10||t===13}function _i(t){return t===9||t===32}function Ft(t){return t===9||t===32||t===10||t===13}function us(t){return t===44||t===91||t===93||t===123||t===125}function QL(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function e3(t){return t===120?2:t===117?4:t===85?8:0}function t3(t){return 48<=t&&t<=57?t-48:-1}function S1(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
77
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function r3(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var V1=new Array(256),W1=new Array(256);for(yi=0;yi<256;yi++)V1[yi]=S1(yi)?1:0,W1[yi]=S1(yi);var yi;function n3(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||j1,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function z1(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=GB(r),new kt(e,r)}function Q(t,e){throw z1(t,e)}function Lu(t,e){t.onWarning&&t.onWarning.call(null,z1(t,e))}var A1={YAML:function(e,r,n){var i,s,o;e.version!==null&&Q(e,"duplication of %YAML directive"),n.length!==1&&Q(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Q(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&Q(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Lu(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&Q(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],U1.test(i)||Q(e,"ill-formed tag handle (first argument) of the TAG directive"),Pn.call(e.tagMap,i)&&Q(e,'there is a previously declared suffix for "'+i+'" tag handle'),G1.test(s)||Q(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Q(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function Fn(t,e,r,n){var i,s,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||Q(t,"expected valid JSON character");else ZL.test(a)&&Q(t,"the stream contains non-printable characters");t.result+=a}}function C1(t,e,r,n){var i,s,o,a;for(Je.isObject(r)||Q(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Pn.call(e,s)||(e[s]=r[s],n[s]=!0)}function cs(t,e,r,n,i,s,o,a,u){var l,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,f=i.length;l<f;l+=1)Array.isArray(i[l])&&Q(t,"nested arrays are not supported inside keys"),typeof i=="object"&&x1(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&x1(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,f=s.length;l<f;l+=1)C1(t,e,s[l],r);else C1(t,e,s,r);else!t.json&&!Pn.call(r,i)&&Pn.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=u||t.position,Q(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function pd(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Q(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ye(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;_i(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(Dr(i))for(pd(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&Lu(t,"deficient indentation"),n}function qu(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ft(r)))}function md(t,e){e===1?t.result+=" ":e>1&&(t.result+=Je.repeat(`
78
- `,e-1))}function i3(t,e,r){var n,i,s,o,a,u,l,f,h=t.kind,d=t.result,g;if(g=t.input.charCodeAt(t.position),Ft(g)||us(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(i=t.input.charCodeAt(t.position+1),Ft(i)||r&&us(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;g!==0;){if(g===58){if(i=t.input.charCodeAt(t.position+1),Ft(i)||r&&us(i))break}else if(g===35){if(n=t.input.charCodeAt(t.position-1),Ft(n))break}else{if(t.position===t.lineStart&&qu(t)||r&&us(g))break;if(Dr(g))if(u=t.line,l=t.lineStart,f=t.lineIndent,Ye(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=l,t.lineIndent=f;break}}a&&(Fn(t,s,o,!1),md(t,t.line-u),s=o=t.position,a=!1),_i(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return Fn(t,s,o,!1),t.result?!0:(t.kind=h,t.result=d,!1)}function s3(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Fn(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else Dr(r)?(Fn(t,n,i,!0),md(t,Ye(t,!1,e)),n=i=t.position):t.position===t.lineStart&&qu(t)?Q(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Q(t,"unexpected end of the stream within a single quoted scalar")}function o3(t,e){var r,n,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Fn(t,r,t.position,!0),t.position++,!0;if(a===92){if(Fn(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Dr(a))Ye(t,!1,e);else if(a<256&&V1[a])t.result+=W1[a],t.position++;else if((o=e3(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=QL(a))>=0?s=(s<<4)+o:Q(t,"expected hexadecimal character");t.result+=r3(s),t.position++}else Q(t,"unknown escape sequence");r=n=t.position}else Dr(a)?(Fn(t,r,n,!0),md(t,Ye(t,!1,e)),r=n=t.position):t.position===t.lineStart&&qu(t)?Q(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Q(t,"unexpected end of the stream within a double quoted scalar")}function a3(t,e){var r=!0,n,i,s,o=t.tag,a,u=t.anchor,l,f,h,d,g,y=Object.create(null),v,E,x,O;if(O=t.input.charCodeAt(t.position),O===91)f=93,g=!1,a=[];else if(O===123)f=125,g=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),O=t.input.charCodeAt(++t.position);O!==0;){if(Ye(t,!0,e),O=t.input.charCodeAt(t.position),O===f)return t.position++,t.tag=o,t.anchor=u,t.kind=g?"mapping":"sequence",t.result=a,!0;r?O===44&&Q(t,"expected the node content, but found ','"):Q(t,"missed comma between flow collection entries"),E=v=x=null,h=d=!1,O===63&&(l=t.input.charCodeAt(t.position+1),Ft(l)&&(h=d=!0,t.position++,Ye(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,ls(t,e,Iu,!1,!0),E=t.tag,v=t.result,Ye(t,!0,e),O=t.input.charCodeAt(t.position),(d||t.line===n)&&O===58&&(h=!0,O=t.input.charCodeAt(++t.position),Ye(t,!0,e),ls(t,e,Iu,!1,!0),x=t.result),g?cs(t,a,y,E,v,x,n,i,s):h?a.push(cs(t,null,y,E,v,x,n,i,s)):a.push(v),Ye(t,!0,e),O=t.input.charCodeAt(t.position),O===44?(r=!0,O=t.input.charCodeAt(++t.position)):r=!1}Q(t,"unexpected end of the stream within a flow collection")}function u3(t,e){var r,n,i=ad,s=!1,o=!1,a=e,u=0,l=!1,f,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)ad===i?i=h===43?w1:KL:Q(t,"repeat of a chomping mode identifier");else if((f=t3(h))>=0)f===0?Q(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Q(t,"repeat of an indentation width identifier"):(a=e+f-1,o=!0);else break;if(_i(h)){do h=t.input.charCodeAt(++t.position);while(_i(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Dr(h)&&h!==0)}for(;h!==0;){for(pd(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Dr(h)){u++;continue}if(t.lineIndent<a){i===w1?t.result+=Je.repeat(`
79
- `,s?1+u:u):i===ad&&s&&(t.result+=`
80
- `);break}for(n?_i(h)?(l=!0,t.result+=Je.repeat(`
81
- `,s?1+u:u)):l?(l=!1,t.result+=Je.repeat(`
82
- `,u+1)):u===0?s&&(t.result+=" "):t.result+=Je.repeat(`
83
- `,u):t.result+=Je.repeat(`
84
- `,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!Dr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Fn(t,r,t.position,!1)}return!0}function D1(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!Ft(o))));){if(a=!0,t.position++,Ye(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,ls(t,e,$1,!1,!0),s.push(t.result),Ye(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)Q(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function c3(t,e,r){var n,i,s,o,a,u,l=t.tag,f=t.anchor,h={},d=Object.create(null),g=null,y=null,v=null,E=!1,x=!1,O;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),O=t.input.charCodeAt(t.position);O!==0;){if(!E&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(O===63||O===58)&&Ft(n))O===63?(E&&(cs(t,h,d,g,y,null,o,a,u),g=y=v=null),x=!0,E=!0,i=!0):E?(E=!1,i=!0):Q(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,O=n;else{if(o=t.line,a=t.lineStart,u=t.position,!ls(t,r,H1,!1,!0))break;if(t.line===s){for(O=t.input.charCodeAt(t.position);_i(O);)O=t.input.charCodeAt(++t.position);if(O===58)O=t.input.charCodeAt(++t.position),Ft(O)||Q(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&(cs(t,h,d,g,y,null,o,a,u),g=y=v=null),x=!0,E=!1,i=!1,g=t.tag,y=t.result;else if(x)Q(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=f,!0}else if(x)Q(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=f,!0}if((t.line===s||t.lineIndent>e)&&(E&&(o=t.line,a=t.lineStart,u=t.position),ls(t,e,Bu,!0,i)&&(E?y=t.result:v=t.result),E||(cs(t,h,d,g,y,v,o,a,u),g=y=v=null),Ye(t,!0,-1),O=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&O!==0)Q(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&cs(t,h,d,g,y,null,o,a,u),x&&(t.tag=l,t.anchor=f,t.kind="mapping",t.result=h),x}function l3(t){var e,r=!1,n=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Q(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(n=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Q(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ft(o);)o===33&&(n?Q(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),U1.test(i)||Q(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),XL.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!G1.test(s)&&Q(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Q(t,"tag name is malformed: "+s)}return r?t.tag=s:Pn.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:Q(t,'undeclared tag handle "'+i+'"'),!0}function f3(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Q(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ft(r)&&!us(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function h3(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Ft(n)&&!us(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Pn.call(t.anchorMap,r)||Q(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ye(t,!0,-1),!0}function ls(t,e,r,n,i){var s,o,a,u=1,l=!1,f=!1,h,d,g,y,v,E;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Bu===r||$1===r,n&&Ye(t,!0,-1)&&(l=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;l3(t)||f3(t);)Ye(t,!0,-1)?(l=!0,a=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):a=!1;if(a&&(a=l||i),(u===1||Bu===r)&&(Iu===r||H1===r?v=e:v=e+1,E=t.position-t.lineStart,u===1?a&&(D1(t,E)||c3(t,E,v))||a3(t,v)?f=!0:(o&&u3(t,v)||s3(t,v)||o3(t,v)?f=!0:h3(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):i3(t,v,Iu===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(f=a&&D1(t,E))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Q(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,d=t.implicitTypes.length;h<d;h+=1)if(y=t.implicitTypes[h],y.resolve(t.result)){t.result=y.construct(t.result),t.tag=y.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Pn.call(t.typeMap[t.kind||"fallback"],t.tag))y=t.typeMap[t.kind||"fallback"][t.tag];else for(y=null,g=t.typeMap.multi[t.kind||"fallback"],h=0,d=g.length;h<d;h+=1)if(t.tag.slice(0,g[h].tag.length)===g[h].tag){y=g[h];break}y||Q(t,"unknown tag !<"+t.tag+">"),t.result!==null&&y.kind!==t.kind&&Q(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+y.kind+'", not "'+t.kind+'"'),y.resolve(t.result,t.tag)?(t.result=y.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Q(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}function d3(t){var e=t.position,r,n,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(Ye(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Ft(o);)o=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&Q(t,"directive name must not be less than one character in length");o!==0;){for(;_i(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Dr(o));break}if(Dr(o))break;for(r=t.position;o!==0&&!Ft(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}o!==0&&pd(t),Pn.call(A1,n)?A1[n](t,n,i):Lu(t,'unknown document directive "'+n+'"')}if(Ye(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ye(t,!0,-1)):s&&Q(t,"directives end mark is expected"),ls(t,t.lineIndent-1,Bu,!1,!0),Ye(t,!0,-1),t.checkLineBreaks&&JL.test(t.input.slice(e,t.position))&&Lu(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&qu(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ye(t,!0,-1));return}if(t.position<t.length-1)Q(t,"end of the stream or a document separator is expected");else return}function Y1(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
85
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new n3(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,Q(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)d3(r);return r.documents}function p3(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Y1(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function m3(t,e){var r=Y1(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new kt("expected a single document in the stream, but found more")}}var g3=p3,y3=m3,K1={loadAll:g3,load:y3},Z1=Object.prototype.toString,J1=Object.prototype.hasOwnProperty,gd=65279,_3=9,na=10,v3=13,E3=32,b3=33,w3=34,cd=35,x3=37,S3=38,A3=39,C3=42,X1=44,D3=45,Nu=58,R3=61,O3=62,T3=63,k3=64,Q1=91,eb=93,F3=96,tb=123,P3=124,rb=125,dt={};dt[0]="\\0";dt[7]="\\a";dt[8]="\\b";dt[9]="\\t";dt[10]="\\n";dt[11]="\\v";dt[12]="\\f";dt[13]="\\r";dt[27]="\\e";dt[34]='\\"';dt[92]="\\\\";dt[133]="\\N";dt[160]="\\_";dt[8232]="\\L";dt[8233]="\\P";var I3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],B3=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function L3(t,e){var r,n,i,s,o,a,u;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&J1.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function N3(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new kt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Je.repeat("0",n-e.length)+e}var M3=1,ia=2;function q3(t){this.schema=t.schema||j1,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Je.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=L3(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?ia:M3,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function R1(t,e){for(var r=Je.repeat(" ",e),n=0,i=-1,s="",o,a=t.length;n<a;)i=t.indexOf(`
58
+ `+t.mark.snippet),n+" "+r):n}function qo(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=uE(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}qo.prototype=Object.create(Error.prototype);qo.prototype.constructor=qo;qo.prototype.toString=function(e){return this.name+": "+uE(this,e)};var wt=qo;function Ph(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function Ih(t,e){return Ge.repeat(" ",e-t.length)+t}function sD(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,l,f=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+f+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)l=Ph(t.buffer,n[o-c],i[o-c],t.position-(n[o]-n[o-c]),h),a=Ge.repeat(" ",e.indent)+Ih((t.line-c+1).toString(),f)+" | "+l.str+`
59
+ `+a;for(l=Ph(t.buffer,n[o],i[o],t.position,h),a+=Ge.repeat(" ",e.indent)+Ih((t.line+1).toString(),f)+" | "+l.str+`
60
+ `,a+=Ge.repeat("-",e.indent+f+3+l.pos)+`^
61
+ `,c=1;c<=e.linesAfter&&!(o+c>=i.length);c++)l=Ph(t.buffer,n[o+c],i[o+c],t.position-(n[o]-n[o+c]),h),a+=Ge.repeat(" ",e.indent)+Ih((t.line+c+1).toString(),f)+" | "+l.str+`
62
+ `;return a.replace(/\n$/,"")}var oD=sD,aD=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],cD=["scalar","sequence","mapping"];function uD(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function lD(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(aD.indexOf(r)===-1)throw new wt('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=uD(e.styleAliases||null),cD.indexOf(this.kind)===-1)throw new wt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var it=lD;function zb(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function fD(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function Nh(t){return this.extend(t)}Nh.prototype.extend=function(e){var r=[],n=[];if(e instanceof it)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new wt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof it))throw new wt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new wt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new wt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof it))throw new wt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Nh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=zb(i,"implicit"),i.compiledExplicit=zb(i,"explicit"),i.compiledTypeMap=fD(i.compiledImplicit,i.compiledExplicit),i};var hD=Nh,dD=new it("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),pD=new it("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),mD=new it("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),gD=new hD({explicit:[dD,pD,mD]});function yD(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function _D(){return null}function vD(t){return t===null}var bD=new it("tag:yaml.org,2002:null",{kind:"scalar",resolve:yD,construct:_D,predicate:vD,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function ED(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function wD(t){return t==="true"||t==="True"||t==="TRUE"}function xD(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var SD=new it("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ED,construct:wD,predicate:xD,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function AD(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function RD(t){return 48<=t&&t<=55}function CD(t){return 48<=t&&t<=57}function OD(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!AD(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!RD(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!CD(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function TD(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function kD(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Ge.isNegativeZero(t)}var PD=new it("tag:yaml.org,2002:int",{kind:"scalar",resolve:OD,construct:TD,predicate:kD,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ID=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function LD(t){return!(t===null||!ID.test(t)||t[t.length-1]==="_")}function ND(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var DD=/^[-+]?[0-9]+e/;function MD(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ge.isNegativeZero(t))return"-0.0";return r=t.toString(10),DD.test(r)?r.replace("e",".e"):r}function FD(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ge.isNegativeZero(t))}var qD=new it("tag:yaml.org,2002:float",{kind:"scalar",resolve:LD,construct:ND,predicate:FD,represent:MD,defaultStyle:"lowercase"}),BD=gD.extend({implicit:[bD,SD,PD,qD]}),jD=BD,lE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),fE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function HD(t){return t===null?!1:lE.exec(t)!==null||fE.exec(t)!==null}function $D(t){var e,r,n,i,s,o,a,c=0,l=null,f,h,d;if(e=lE.exec(t),e===null&&(e=fE.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(f=+e[10],h=+(e[11]||0),l=(f*60+h)*6e4,e[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,i,s,o,a,c)),l&&d.setTime(d.getTime()-l),d}function UD(t){return t.toISOString()}var GD=new it("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:HD,construct:$D,instanceOf:Date,represent:UD});function VD(t){return t==="<<"||t===null}var WD=new it("tag:yaml.org,2002:merge",{kind:"scalar",resolve:VD}),Bh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
63
+ \r`;function zD(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=Bh;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function YD(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=Bh,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function KD(t){var e="",r=0,n,i,s=t.length,o=Bh;for(n=0;n<s;n++)n%3===0&&n&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function ZD(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var JD=new it("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zD,construct:YD,predicate:ZD,represent:KD}),XD=Object.prototype.hasOwnProperty,QD=Object.prototype.toString;function eM(t){if(t===null)return!0;var e=[],r,n,i,s,o,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,QD.call(i)!=="[object Object]")return!1;for(s in i)if(XD.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function tM(t){return t!==null?t:[]}var rM=new it("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eM,construct:tM}),nM=Object.prototype.toString;function iM(t){if(t===null)return!0;var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],nM.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function sM(t){if(t===null)return[];var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var oM=new it("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:iM,construct:sM}),aM=Object.prototype.hasOwnProperty;function cM(t){if(t===null)return!0;var e,r=t;for(e in r)if(aM.call(r,e)&&r[e]!==null)return!1;return!0}function uM(t){return t!==null?t:{}}var lM=new it("tag:yaml.org,2002:set",{kind:"mapping",resolve:cM,construct:uM}),hE=jD.extend({implicit:[GD,WD],explicit:[JD,rM,oM,lM]}),vn=Object.prototype.hasOwnProperty,dc=1,dE=2,pE=3,pc=4,Lh=1,fM=2,Yb=3,hM=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,dM=/[\x85\u2028\u2029]/,pM=/[,\[\]\{\}]/,mE=/^(?:!|!!|![a-z\-]+!)$/i,gE=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Kb(t){return Object.prototype.toString.call(t)}function _r(t){return t===10||t===13}function ni(t){return t===9||t===32}function xt(t){return t===9||t===32||t===10||t===13}function Wi(t){return t===44||t===91||t===93||t===123||t===125}function mM(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function gM(t){return t===120?2:t===117?4:t===85?8:0}function yM(t){return 48<=t&&t<=57?t-48:-1}function Zb(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
64
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function _M(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var yE=new Array(256),_E=new Array(256);for(ri=0;ri<256;ri++)yE[ri]=Zb(ri)?1:0,_E[ri]=Zb(ri);var ri;function vM(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||hE,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function vE(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=oD(r),new wt(e,r)}function J(t,e){throw vE(t,e)}function mc(t,e){t.onWarning&&t.onWarning.call(null,vE(t,e))}var Jb={YAML:function(e,r,n){var i,s,o;e.version!==null&&J(e,"duplication of %YAML directive"),n.length!==1&&J(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&J(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&J(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&mc(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&J(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],mE.test(i)||J(e,"ill-formed tag handle (first argument) of the TAG directive"),vn.call(e.tagMap,i)&&J(e,'there is a previously declared suffix for "'+i+'" tag handle'),gE.test(s)||J(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{J(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function _n(t,e,r,n){var i,s,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||J(t,"expected valid JSON character");else hM.test(a)&&J(t,"the stream contains non-printable characters");t.result+=a}}function Xb(t,e,r,n){var i,s,o,a;for(Ge.isObject(r)||J(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],vn.call(e,s)||(e[s]=r[s],n[s]=!0)}function zi(t,e,r,n,i,s,o,a,c){var l,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,f=i.length;l<f;l+=1)Array.isArray(i[l])&&J(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Kb(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&Kb(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,f=s.length;l<f;l+=1)Xb(t,e,s[l],r);else Xb(t,e,s,r);else!t.json&&!vn.call(r,i)&&vn.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,J(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function jh(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):J(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function He(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;ni(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(_r(i))for(jh(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&mc(t,"deficient indentation"),n}function _c(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||xt(r)))}function Hh(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ge.repeat(`
65
+ `,e-1))}function bM(t,e,r){var n,i,s,o,a,c,l,f,h=t.kind,d=t.result,y;if(y=t.input.charCodeAt(t.position),xt(y)||Wi(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96||(y===63||y===45)&&(i=t.input.charCodeAt(t.position+1),xt(i)||r&&Wi(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;y!==0;){if(y===58){if(i=t.input.charCodeAt(t.position+1),xt(i)||r&&Wi(i))break}else if(y===35){if(n=t.input.charCodeAt(t.position-1),xt(n))break}else{if(t.position===t.lineStart&&_c(t)||r&&Wi(y))break;if(_r(y))if(c=t.line,l=t.lineStart,f=t.lineIndent,He(t,!1,-1),t.lineIndent>=e){a=!0,y=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=l,t.lineIndent=f;break}}a&&(_n(t,s,o,!1),Hh(t,t.line-c),s=o=t.position,a=!1),ni(y)||(o=t.position+1),y=t.input.charCodeAt(++t.position)}return _n(t,s,o,!1),t.result?!0:(t.kind=h,t.result=d,!1)}function EM(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(_n(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else _r(r)?(_n(t,n,i,!0),Hh(t,He(t,!1,e)),n=i=t.position):t.position===t.lineStart&&_c(t)?J(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);J(t,"unexpected end of the stream within a single quoted scalar")}function wM(t,e){var r,n,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return _n(t,r,t.position,!0),t.position++,!0;if(a===92){if(_n(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),_r(a))He(t,!1,e);else if(a<256&&yE[a])t.result+=_E[a],t.position++;else if((o=gM(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=mM(a))>=0?s=(s<<4)+o:J(t,"expected hexadecimal character");t.result+=_M(s),t.position++}else J(t,"unknown escape sequence");r=n=t.position}else _r(a)?(_n(t,r,n,!0),Hh(t,He(t,!1,e)),r=n=t.position):t.position===t.lineStart&&_c(t)?J(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}J(t,"unexpected end of the stream within a double quoted scalar")}function xM(t,e){var r=!0,n,i,s,o=t.tag,a,c=t.anchor,l,f,h,d,y,g=Object.create(null),E,v,A,P;if(P=t.input.charCodeAt(t.position),P===91)f=93,y=!1,a=[];else if(P===123)f=125,y=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),P=t.input.charCodeAt(++t.position);P!==0;){if(He(t,!0,e),P=t.input.charCodeAt(t.position),P===f)return t.position++,t.tag=o,t.anchor=c,t.kind=y?"mapping":"sequence",t.result=a,!0;r?P===44&&J(t,"expected the node content, but found ','"):J(t,"missed comma between flow collection entries"),v=E=A=null,h=d=!1,P===63&&(l=t.input.charCodeAt(t.position+1),xt(l)&&(h=d=!0,t.position++,He(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,Yi(t,e,dc,!1,!0),v=t.tag,E=t.result,He(t,!0,e),P=t.input.charCodeAt(t.position),(d||t.line===n)&&P===58&&(h=!0,P=t.input.charCodeAt(++t.position),He(t,!0,e),Yi(t,e,dc,!1,!0),A=t.result),y?zi(t,a,g,v,E,A,n,i,s):h?a.push(zi(t,null,g,v,E,A,n,i,s)):a.push(E),He(t,!0,e),P=t.input.charCodeAt(t.position),P===44?(r=!0,P=t.input.charCodeAt(++t.position)):r=!1}J(t,"unexpected end of the stream within a flow collection")}function SM(t,e){var r,n,i=Lh,s=!1,o=!1,a=e,c=0,l=!1,f,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Lh===i?i=h===43?Yb:fM:J(t,"repeat of a chomping mode identifier");else if((f=yM(h))>=0)f===0?J(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?J(t,"repeat of an indentation width identifier"):(a=e+f-1,o=!0);else break;if(ni(h)){do h=t.input.charCodeAt(++t.position);while(ni(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!_r(h)&&h!==0)}for(;h!==0;){for(jh(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),_r(h)){c++;continue}if(t.lineIndent<a){i===Yb?t.result+=Ge.repeat(`
66
+ `,s?1+c:c):i===Lh&&s&&(t.result+=`
67
+ `);break}for(n?ni(h)?(l=!0,t.result+=Ge.repeat(`
68
+ `,s?1+c:c)):l?(l=!1,t.result+=Ge.repeat(`
69
+ `,c+1)):c===0?s&&(t.result+=" "):t.result+=Ge.repeat(`
70
+ `,c):t.result+=Ge.repeat(`
71
+ `,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!_r(h)&&h!==0;)h=t.input.charCodeAt(++t.position);_n(t,r,t.position,!1)}return!0}function Qb(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!xt(o))));){if(a=!0,t.position++,He(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Yi(t,e,pE,!1,!0),s.push(t.result),He(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)J(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function AM(t,e,r){var n,i,s,o,a,c,l=t.tag,f=t.anchor,h={},d=Object.create(null),y=null,g=null,E=null,v=!1,A=!1,P;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),P=t.input.charCodeAt(t.position);P!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(P===63||P===58)&&xt(n))P===63?(v&&(zi(t,h,d,y,g,null,o,a,c),y=g=E=null),A=!0,v=!0,i=!0):v?(v=!1,i=!0):J(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,P=n;else{if(o=t.line,a=t.lineStart,c=t.position,!Yi(t,r,dE,!1,!0))break;if(t.line===s){for(P=t.input.charCodeAt(t.position);ni(P);)P=t.input.charCodeAt(++t.position);if(P===58)P=t.input.charCodeAt(++t.position),xt(P)||J(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(zi(t,h,d,y,g,null,o,a,c),y=g=E=null),A=!0,v=!1,i=!1,y=t.tag,g=t.result;else if(A)J(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=f,!0}else if(A)J(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=f,!0}if((t.line===s||t.lineIndent>e)&&(v&&(o=t.line,a=t.lineStart,c=t.position),Yi(t,e,pc,!0,i)&&(v?g=t.result:E=t.result),v||(zi(t,h,d,y,g,E,o,a,c),y=g=E=null),He(t,!0,-1),P=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&P!==0)J(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&zi(t,h,d,y,g,null,o,a,c),A&&(t.tag=l,t.anchor=f,t.kind="mapping",t.result=h),A}function RM(t){var e,r=!1,n=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&J(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(n=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):J(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!xt(o);)o===33&&(n?J(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),mE.test(i)||J(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),pM.test(s)&&J(t,"tag suffix cannot contain flow indicator characters")}s&&!gE.test(s)&&J(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{J(t,"tag name is malformed: "+s)}return r?t.tag=s:vn.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:J(t,'undeclared tag handle "'+i+'"'),!0}function CM(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&J(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!xt(r)&&!Wi(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&J(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function OM(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!xt(n)&&!Wi(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&J(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),vn.call(t.anchorMap,r)||J(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],He(t,!0,-1),!0}function Yi(t,e,r,n,i){var s,o,a,c=1,l=!1,f=!1,h,d,y,g,E,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=pc===r||pE===r,n&&He(t,!0,-1)&&(l=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;RM(t)||CM(t);)He(t,!0,-1)?(l=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||pc===r)&&(dc===r||dE===r?E=e:E=e+1,v=t.position-t.lineStart,c===1?a&&(Qb(t,v)||AM(t,v,E))||xM(t,E)?f=!0:(o&&SM(t,E)||EM(t,E)||wM(t,E)?f=!0:OM(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&J(t,"alias node should not have any properties")):bM(t,E,dc===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):c===0&&(f=a&&Qb(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&J(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,d=t.implicitTypes.length;h<d;h+=1)if(g=t.implicitTypes[h],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(vn.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,y=t.typeMap.multi[t.kind||"fallback"],h=0,d=y.length;h<d;h+=1)if(t.tag.slice(0,y[h].tag.length)===y[h].tag){g=y[h];break}g||J(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&J(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):J(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}function TM(t){var e=t.position,r,n,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(He(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!xt(o);)o=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&J(t,"directive name must not be less than one character in length");o!==0;){for(;ni(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!_r(o));break}if(_r(o))break;for(r=t.position;o!==0&&!xt(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}o!==0&&jh(t),vn.call(Jb,n)?Jb[n](t,n,i):mc(t,'unknown document directive "'+n+'"')}if(He(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,He(t,!0,-1)):s&&J(t,"directives end mark is expected"),Yi(t,t.lineIndent-1,pc,!1,!0),He(t,!0,-1),t.checkLineBreaks&&dM.test(t.input.slice(e,t.position))&&mc(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&_c(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,He(t,!0,-1));return}if(t.position<t.length-1)J(t,"end of the stream or a document separator is expected");else return}function bE(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
72
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new vM(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,J(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)TM(r);return r.documents}function kM(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=bE(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function PM(t,e){var r=bE(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new wt("expected a single document in the stream, but found more")}}var IM=kM,LM=PM,EE={loadAll:IM,load:LM},wE=Object.prototype.toString,xE=Object.prototype.hasOwnProperty,$h=65279,NM=9,Bo=10,DM=13,MM=32,FM=33,qM=34,Dh=35,BM=37,jM=38,HM=39,$M=42,SE=44,UM=45,gc=58,GM=61,VM=62,WM=63,zM=64,AE=91,RE=93,YM=96,CE=123,KM=124,OE=125,st={};st[0]="\\0";st[7]="\\a";st[8]="\\b";st[9]="\\t";st[10]="\\n";st[11]="\\v";st[12]="\\f";st[13]="\\r";st[27]="\\e";st[34]='\\"';st[92]="\\\\";st[133]="\\N";st[160]="\\_";st[8232]="\\L";st[8233]="\\P";var ZM=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],JM=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function XM(t,e){var r,n,i,s,o,a,c;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&xE.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function QM(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new wt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ge.repeat("0",n-e.length)+e}var eF=1,jo=2;function tF(t){this.schema=t.schema||hE,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Ge.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=XM(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?jo:eF,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function eE(t,e){for(var r=Ge.repeat(" ",e),n=0,i=-1,s="",o,a=t.length;n<a;)i=t.indexOf(`
86
73
  `,n),i===-1?(o=t.slice(n),n=a):(o=t.slice(n,i+1),n=i+1),o.length&&o!==`
87
- `&&(s+=r),s+=o;return s}function ld(t,e){return`
88
- `+Je.repeat(" ",t.indent*e)}function j3(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function Mu(t){return t===E3||t===_3}function sa(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==gd||65536<=t&&t<=1114111}function O1(t){return sa(t)&&t!==gd&&t!==v3&&t!==na}function T1(t,e,r){var n=O1(t),i=n&&!Mu(t);return(r?n:n&&t!==X1&&t!==Q1&&t!==eb&&t!==tb&&t!==rb)&&t!==cd&&!(e===Nu&&!i)||O1(e)&&!Mu(e)&&t===cd||e===Nu&&i}function H3(t){return sa(t)&&t!==gd&&!Mu(t)&&t!==D3&&t!==T3&&t!==Nu&&t!==X1&&t!==Q1&&t!==eb&&t!==tb&&t!==rb&&t!==cd&&t!==S3&&t!==C3&&t!==b3&&t!==P3&&t!==R3&&t!==O3&&t!==A3&&t!==w3&&t!==x3&&t!==k3&&t!==F3}function $3(t){return!Mu(t)&&t!==Nu}function ta(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function nb(t){var e=/^\n* /;return e.test(t)}var ib=1,fd=2,sb=3,ob=4,as=5;function U3(t,e,r,n,i,s,o,a){var u,l=0,f=null,h=!1,d=!1,g=n!==-1,y=-1,v=H3(ta(t,0))&&$3(ta(t,t.length-1));if(e||o)for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=ta(t,u),!sa(l))return as;v=v&&T1(l,f,a),f=l}else{for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=ta(t,u),l===na)h=!0,g&&(d=d||u-y-1>n&&t[y+1]!==" ",y=u);else if(!sa(l))return as;v=v&&T1(l,f,a),f=l}d=d||g&&u-y-1>n&&t[y+1]!==" "}return!h&&!d?v&&!o&&!i(t)?ib:s===ia?as:fd:r>9&&nb(t)?as:o?s===ia?as:fd:d?ob:sb}function G3(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===ia?'""':"''";if(!t.noCompatMode&&(I3.indexOf(e)!==-1||B3.test(e)))return t.quotingType===ia?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&r>=t.flowLevel;function u(l){return j3(t,l)}switch(U3(e,a,t.indent,o,u,t.quotingType,t.forceQuotes&&!n,i)){case ib:return e;case fd:return"'"+e.replace(/'/g,"''")+"'";case sb:return"|"+k1(e,t.indent)+F1(R1(e,s));case ob:return">"+k1(e,t.indent)+F1(R1(V3(e,o),s));case as:return'"'+W3(e)+'"';default:throw new kt("impossible error: invalid scalar style")}}()}function k1(t,e){var r=nb(t)?String(e):"",n=t[t.length-1]===`
74
+ `&&(s+=r),s+=o;return s}function Mh(t,e){return`
75
+ `+Ge.repeat(" ",t.indent*e)}function rF(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function yc(t){return t===MM||t===NM}function Ho(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==$h||65536<=t&&t<=1114111}function tE(t){return Ho(t)&&t!==$h&&t!==DM&&t!==Bo}function rE(t,e,r){var n=tE(t),i=n&&!yc(t);return(r?n:n&&t!==SE&&t!==AE&&t!==RE&&t!==CE&&t!==OE)&&t!==Dh&&!(e===gc&&!i)||tE(e)&&!yc(e)&&t===Dh||e===gc&&i}function nF(t){return Ho(t)&&t!==$h&&!yc(t)&&t!==UM&&t!==WM&&t!==gc&&t!==SE&&t!==AE&&t!==RE&&t!==CE&&t!==OE&&t!==Dh&&t!==jM&&t!==$M&&t!==FM&&t!==KM&&t!==GM&&t!==VM&&t!==HM&&t!==qM&&t!==BM&&t!==zM&&t!==YM}function iF(t){return!yc(t)&&t!==gc}function Fo(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function TE(t){var e=/^\n* /;return e.test(t)}var kE=1,Fh=2,PE=3,IE=4,Vi=5;function sF(t,e,r,n,i,s,o,a){var c,l=0,f=null,h=!1,d=!1,y=n!==-1,g=-1,E=nF(Fo(t,0))&&iF(Fo(t,t.length-1));if(e||o)for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=Fo(t,c),!Ho(l))return Vi;E=E&&rE(l,f,a),f=l}else{for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=Fo(t,c),l===Bo)h=!0,y&&(d=d||c-g-1>n&&t[g+1]!==" ",g=c);else if(!Ho(l))return Vi;E=E&&rE(l,f,a),f=l}d=d||y&&c-g-1>n&&t[g+1]!==" "}return!h&&!d?E&&!o&&!i(t)?kE:s===jo?Vi:Fh:r>9&&TE(t)?Vi:o?s===jo?Vi:Fh:d?IE:PE}function oF(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===jo?'""':"''";if(!t.noCompatMode&&(ZM.indexOf(e)!==-1||JM.test(e)))return t.quotingType===jo?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&r>=t.flowLevel;function c(l){return rF(t,l)}switch(sF(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!n,i)){case kE:return e;case Fh:return"'"+e.replace(/'/g,"''")+"'";case PE:return"|"+nE(e,t.indent)+iE(eE(e,s));case IE:return">"+nE(e,t.indent)+iE(eE(aF(e,o),s));case Vi:return'"'+cF(e)+'"';default:throw new wt("impossible error: invalid scalar style")}}()}function nE(t,e){var r=TE(t)?String(e):"",n=t[t.length-1]===`
89
76
  `,i=n&&(t[t.length-2]===`
90
77
  `||t===`
91
78
  `),s=i?"+":n?"":"-";return r+s+`
92
- `}function F1(t){return t[t.length-1]===`
93
- `?t.slice(0,-1):t}function V3(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=t.indexOf(`
94
- `);return l=l!==-1?l:t.length,r.lastIndex=l,P1(t.slice(0,l),e)}(),i=t[0]===`
95
- `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
96
- `:"")+P1(u,e),i=s}return n}function P1(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(t);)a=n.index,a-i>e&&(s=o>i?o:a,u+=`
97
- `+t.slice(i,s),i=s+1),o=a;return u+=`
98
- `,t.length-i>e&&o>i?u+=t.slice(i,o)+`
99
- `+t.slice(o+1):u+=t.slice(i),u.slice(1)}function W3(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=ta(t,i),n=dt[r],!n&&sa(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||N3(r);return e}function z3(t,e,r){var n="",i=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(tn(t,e,a,!1,!1)||typeof a>"u"&&tn(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function I1(t,e,r,n){var i="",s=t.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(tn(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&tn(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=ld(t,e)),t.dump&&na===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function Y3(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,a,u,l,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),t.condenseFlow&&(f+='"'),u=s[o],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),tn(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),tn(t,e,l,!1,!1)&&(f+=t.dump,n+=f));t.tag=i,t.dump="{"+n+"}"}function K3(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),a,u,l,f,h,d;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new kt("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)d="",(!n||i!=="")&&(d+=ld(t,e)),l=o[a],f=r[l],t.replacer&&(f=t.replacer.call(r,l,f)),tn(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&na===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=ld(t,e)),tn(t,e+1,f,!0,h)&&(t.dump&&na===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=s,t.dump=i||"{}"}function B1(t,e,r){var n,i,s,o,a,u;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(u=t.styleMap[a.tag]||a.defaultStyle,Z1.call(a.represent)==="[object Function]")n=a.represent(e,u);else if(J1.call(a.represent,u))n=a.represent[u](e,u);else throw new kt("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function tn(t,e,r,n,i,s,o){t.tag=null,t.dump=r,B1(t,r,!1)||B1(t,r,!0);var a=Z1.call(t.dump),u=n,l;n&&(n=t.flowLevel<0||t.flowLevel>e);var f=a==="[object Object]"||a==="[object Array]",h,d;if(f&&(h=t.duplicates.indexOf(r),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(f&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(K3(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(Y3(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?I1(t,e-1,t.dump,i):I1(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(z3(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&G3(t,t.dump,e,s,u);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new kt("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function Z3(t,e){var r=[],n=[],i,s;for(hd(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function hd(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)hd(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)hd(t[n[i]],e,r)}function J3(t,e){e=e||{};var r=new q3(e);r.noRefs||Z3(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),tn(r,0,n,!0,!0)?r.dump+`
100
- `:""}var X3=J3,Q3={dump:X3};function yd(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var wZ=K1.load,xZ=K1.loadAll,SZ=Q3.dump;var AZ=yd("safeLoad","load"),CZ=yd("safeLoadAll","loadAll"),DZ=yd("safeDump","dump");var z4=me(zx());var De={};k5(De,{bold:()=>j4,dimmed:()=>$4,error:()=>hC,grey:()=>U4,info:()=>q4,item:()=>G4,log:()=>Un,turboBlue:()=>Bs,turboGradient:()=>M4,turboLoader:()=>lC,turboRed:()=>uC,underline:()=>H4,warn:()=>fC,yellow:()=>cC});c();var $n=me(ha()),iC=me(kA()),sC=me(nC()),oC="#0099F7",aC="#F11712",N4="#FFFF00",M4=(0,sC.default)(oC,aC),Bs=$n.default.hex(oC),uC=$n.default.hex(aC),cC=$n.default.hex(N4),lC=t=>(0,iC.default)({text:t,spinner:{frames:[" ",Bs("> "),Bs(">> "),Bs(">>>")]}}),q4=(...t)=>{Un(Bs.bold(">>>"),...t)},j4=(...t)=>{Un($n.default.bold(...t))},H4=(...t)=>{Un($n.default.underline(...t))},$4=(...t)=>{Un($n.default.dim(...t))},U4=(...t)=>{Un($n.default.grey(...t))},G4=(...t)=>{Un(Bs.bold(" \u2022"),...t)},Un=(...t)=>{console.log(...t)},fC=(...t)=>{console.error(cC.bold(">>>"),...t)},hC=(...t)=>{console.error(uC.bold(">>>"),...t)};c();var jj=me(require("os")),Hj=me(qD());c();c();var $j=me(require("path"));var Uj=me(ha());c();var uF=require("stream"),cF=require("util"),DV=require("path"),RV=require("os"),lF=require("fs"),OV=me(NO());var xte=(0,cF.promisify)(uF.Stream.pipeline);c();c();var qV=me(require("path")),jV=me(yF()),HV=me(ha());c();c();var n5=me($c());c();var $r=me(LF(),1),vre=$r.default.v1,Ere=$r.default.v3,wo=$r.default.v4,bre=$r.default.v5,wre=$r.default.NIL,xre=$r.default.version,Sre=$r.default.validate,Are=$r.default.stringify,Cre=$r.default.parse;c();var ve;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ve||(ve={}));var Qy;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Qy||(Qy={}));var V=ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ai=t=>{switch(typeof t){case"undefined":return V.undefined;case"string":return V.string;case"number":return isNaN(t)?V.nan:V.number;case"boolean":return V.boolean;case"function":return V.function;case"bigint":return V.bigint;case"symbol":return V.symbol;case"object":return Array.isArray(t)?V.array:t===null?V.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?V.promise:typeof Map<"u"&&t instanceof Map?V.map:typeof Set<"u"&&t instanceof Set?V.set:typeof Date<"u"&&t instanceof Date?V.date:V.object;default:return V.unknown}},L=ve.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),JW=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Yt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,u=0;for(;u<o.path.length;){let l=o.path[u];u===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(o))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,ve.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Yt.create=t=>new Yt(t);var iu=(t,e)=>{let r;switch(t.code){case L.invalid_type:t.received===V.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case L.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,ve.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:r=`Unrecognized key(s) in object: ${ve.joinValues(t.keys,", ")}`;break;case L.invalid_union:r="Invalid input";break;case L.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ve.joinValues(t.options)}`;break;case L.invalid_enum_value:r=`Invalid enum value. Expected ${ve.joinValues(t.options)}, received '${t.received}'`;break;case L.invalid_arguments:r="Invalid function arguments";break;case L.invalid_return_type:r="Invalid function return type";break;case L.invalid_date:r="Invalid date";break;case L.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:ve.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case L.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case L.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case L.custom:r="Invalid input";break;case L.invalid_intersection_types:r="Intersection results could not be merged";break;case L.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case L.not_finite:r="Number must be finite";break;default:r=e.defaultError,ve.assertNever(t)}return{message:r}},qF=iu;function XW(t){qF=t}function Wf(){return qF}var zf=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},a="",u=n.filter(l=>!!l).slice().reverse();for(let l of u)a=l(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}},QW=[];function W(t,e){let r=zf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Wf(),iu].filter(n=>!!n)});t.common.issues.push(r)}var ot=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return ue;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return ot.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return ue;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},ue=Object.freeze({status:"aborted"}),jF=t=>({status:"dirty",value:t}),Rt=t=>({status:"valid",value:t}),e_=t=>t.status==="aborted",t_=t=>t.status==="dirty",su=t=>t.status==="valid",Yf=t=>typeof Promise<"u"&&t instanceof Promise,ee;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(ee||(ee={}));var dr=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},NF=(t,e)=>{if(su(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Yt(t.common.issues);return this._error=r,this._error}}};function le(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:n!=null?n:a.defaultError}:{message:r!=null?r:a.defaultError},description:i}}var fe=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return ai(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ot,ctx:{common:e.parent.common,data:e.data,parsedType:ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Yf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ai(e)},s=this._parseSync({data:e,path:i.path,parent:i});return NF(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ai(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Yf(i)?i:Promise.resolve(i));return NF(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:L.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Zt({schema:this,typeName:ne.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Sr.create(this,this._def)}nullable(){return Cn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Kt.create(this,this._def)}promise(){return li.create(this,this._def)}or(e){return Wi.create([this,e],this._def)}and(e){return zi.create(this,e,this._def)}transform(e){return new Zt({...le(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Xi({...le(this._def),innerType:this,defaultValue:r,typeName:ne.ZodDefault})}brand(){return new Kf({typeName:ne.ZodBranded,type:this,...le(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Ro({...le(this._def),innerType:this,catchValue:r,typeName:ne.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Qi.create(this,e)}readonly(){return To.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},ez=/^c[^\s-]{8,}$/i,tz=/^[a-z][a-z0-9]*$/,rz=/^[0-9A-HJKMNP-TV-Z]{26}$/,nz=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,iz=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Xy,oz=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,az=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,uz=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function cz(t,e){return!!((e==="v4"||!e)&&oz.test(t)||(e==="v6"||!e)&&az.test(t))}var zt=class extends fe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==V.string){let s=this._getOrReturnCtx(e);return W(s,{code:L.invalid_type,expected:V.string,received:s.parsedType}),ue}let n=new ot,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),W(i,{code:L.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),W(i,{code:L.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?W(i,{code:L.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&W(i,{code:L.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")iz.test(e.data)||(i=this._getOrReturnCtx(e,i),W(i,{validation:"email",code:L.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")Xy||(Xy=new RegExp(sz,"u")),Xy.test(e.data)||(i=this._getOrReturnCtx(e,i),W(i,{validation:"emoji",code:L.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")nz.test(e.data)||(i=this._getOrReturnCtx(e,i),W(i,{validation:"uuid",code:L.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")ez.test(e.data)||(i=this._getOrReturnCtx(e,i),W(i,{validation:"cuid",code:L.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")tz.test(e.data)||(i=this._getOrReturnCtx(e,i),W(i,{validation:"cuid2",code:L.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")rz.test(e.data)||(i=this._getOrReturnCtx(e,i),W(i,{validation:"ulid",code:L.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),W(i,{validation:"url",code:L.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),W(i,{validation:"regex",code:L.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),W(i,{code:L.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),W(i,{code:L.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),W(i,{code:L.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?uz(s).test(e.data)||(i=this._getOrReturnCtx(e,i),W(i,{code:L.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?cz(e.data,s.version)||(i=this._getOrReturnCtx(e,i),W(i,{validation:"ip",code:L.invalid_string,message:s.message}),n.dirty()):ve.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:L.invalid_string,...ee.errToObj(n)})}_addCheck(e){return new zt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ee.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ee.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ee.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ee.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ee.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ee.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ee.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ee.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...ee.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...ee.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...ee.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...ee.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...ee.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...ee.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...ee.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...ee.errToObj(r)})}nonempty(e){return this.min(1,ee.errToObj(e))}trim(){return new zt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};zt.create=t=>{var e;return new zt({checks:[],typeName:ne.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...le(t)})};function lz(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var Ur=class extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==V.number){let s=this._getOrReturnCtx(e);return W(s,{code:L.invalid_type,expected:V.number,received:s.parsedType}),ue}let n,i=new ot;for(let s of this._def.checks)s.kind==="int"?ve.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),W(n,{code:L.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),W(n,{code:L.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),W(n,{code:L.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?lz(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),W(n,{code:L.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),W(n,{code:L.not_finite,message:s.message}),i.dirty()):ve.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ee.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ee.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ee.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ee.toString(r))}setLimit(e,r,n,i){return new Ur({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ee.toString(i)}]})}_addCheck(e){return new Ur({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ee.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ee.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ee.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ee.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ee.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ee.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:ee.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ee.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ee.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&ve.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Ur.create=t=>new Ur({checks:[],typeName:ne.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...le(t)});var Gr=class extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==V.bigint){let s=this._getOrReturnCtx(e);return W(s,{code:L.invalid_type,expected:V.bigint,received:s.parsedType}),ue}let n,i=new ot;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),W(n,{code:L.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),W(n,{code:L.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),W(n,{code:L.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ve.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,ee.toString(r))}gt(e,r){return this.setLimit("min",e,!1,ee.toString(r))}lte(e,r){return this.setLimit("max",e,!0,ee.toString(r))}lt(e,r){return this.setLimit("max",e,!1,ee.toString(r))}setLimit(e,r,n,i){return new Gr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:ee.toString(i)}]})}_addCheck(e){return new Gr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ee.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ee.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ee.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ee.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:ee.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Gr.create=t=>{var e;return new Gr({checks:[],typeName:ne.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...le(t)})};var Ui=class extends fe{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==V.boolean){let n=this._getOrReturnCtx(e);return W(n,{code:L.invalid_type,expected:V.boolean,received:n.parsedType}),ue}return Rt(e.data)}};Ui.create=t=>new Ui({typeName:ne.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...le(t)});var Sn=class extends fe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==V.date){let s=this._getOrReturnCtx(e);return W(s,{code:L.invalid_type,expected:V.date,received:s.parsedType}),ue}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return W(s,{code:L.invalid_date}),ue}let n=new ot,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),W(i,{code:L.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),W(i,{code:L.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):ve.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Sn({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:ee.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:ee.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Sn.create=t=>new Sn({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ne.ZodDate,...le(t)});var So=class extends fe{_parse(e){if(this._getType(e)!==V.symbol){let n=this._getOrReturnCtx(e);return W(n,{code:L.invalid_type,expected:V.symbol,received:n.parsedType}),ue}return Rt(e.data)}};So.create=t=>new So({typeName:ne.ZodSymbol,...le(t)});var Gi=class extends fe{_parse(e){if(this._getType(e)!==V.undefined){let n=this._getOrReturnCtx(e);return W(n,{code:L.invalid_type,expected:V.undefined,received:n.parsedType}),ue}return Rt(e.data)}};Gi.create=t=>new Gi({typeName:ne.ZodUndefined,...le(t)});var Vi=class extends fe{_parse(e){if(this._getType(e)!==V.null){let n=this._getOrReturnCtx(e);return W(n,{code:L.invalid_type,expected:V.null,received:n.parsedType}),ue}return Rt(e.data)}};Vi.create=t=>new Vi({typeName:ne.ZodNull,...le(t)});var ci=class extends fe{constructor(){super(...arguments),this._any=!0}_parse(e){return Rt(e.data)}};ci.create=t=>new ci({typeName:ne.ZodAny,...le(t)});var xn=class extends fe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Rt(e.data)}};xn.create=t=>new xn({typeName:ne.ZodUnknown,...le(t)});var Ar=class extends fe{_parse(e){let r=this._getOrReturnCtx(e);return W(r,{code:L.invalid_type,expected:V.never,received:r.parsedType}),ue}};Ar.create=t=>new Ar({typeName:ne.ZodNever,...le(t)});var Ao=class extends fe{_parse(e){if(this._getType(e)!==V.undefined){let n=this._getOrReturnCtx(e);return W(n,{code:L.invalid_type,expected:V.void,received:n.parsedType}),ue}return Rt(e.data)}};Ao.create=t=>new Ao({typeName:ne.ZodVoid,...le(t)});var Kt=class extends fe{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==V.array)return W(r,{code:L.invalid_type,expected:V.array,received:r.parsedType}),ue;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(W(r,{code:o?L.too_big:L.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(W(r,{code:L.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(W(r,{code:L.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new dr(r,o,r.path,a)))).then(o=>ot.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new dr(r,o,r.path,a)));return ot.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new Kt({...this._def,minLength:{value:e,message:ee.toString(r)}})}max(e,r){return new Kt({...this._def,maxLength:{value:e,message:ee.toString(r)}})}length(e,r){return new Kt({...this._def,exactLength:{value:e,message:ee.toString(r)}})}nonempty(e){return this.min(1,e)}};Kt.create=(t,e)=>new Kt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...le(e)});function xo(t){if(t instanceof Pe){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=Sr.create(xo(n))}return new Pe({...t._def,shape:()=>e})}else return t instanceof Kt?new Kt({...t._def,type:xo(t.element)}):t instanceof Sr?Sr.create(xo(t.unwrap())):t instanceof Cn?Cn.create(xo(t.unwrap())):t instanceof pr?pr.create(t.items.map(e=>xo(e))):t}var Pe=class extends fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=ve.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==V.object){let l=this._getOrReturnCtx(e);return W(l,{code:L.invalid_type,expected:V.object,received:l.parsedType}),ue}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ar&&this._def.unknownKeys==="strip"))for(let l in i.data)o.includes(l)||a.push(l);let u=[];for(let l of o){let f=s[l],h=i.data[l];u.push({key:{status:"valid",value:l},value:f._parse(new dr(i,h,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Ar){let l=this._def.unknownKeys;if(l==="passthrough")for(let f of a)u.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(l==="strict")a.length>0&&(W(i,{code:L.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let f of a){let h=i.data[f];u.push({key:{status:"valid",value:f},value:l._parse(new dr(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let f of u){let h=await f.key;l.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return l}).then(l=>ot.mergeObjectSync(n,l)):ot.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(e){return ee.errToObj,new Pe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let u=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=ee.errToObj(e).message)!==null&&a!==void 0?a:u}:{message:u}}}:{}})}strip(){return new Pe({...this._def,unknownKeys:"strip"})}passthrough(){return new Pe({...this._def,unknownKeys:"passthrough"})}extend(e){return new Pe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Pe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ne.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Pe({...this._def,catchall:e})}pick(e){let r={};return ve.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Pe({...this._def,shape:()=>r})}omit(e){let r={};return ve.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new Pe({...this._def,shape:()=>r})}deepPartial(){return xo(this)}partial(e){let r={};return ve.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new Pe({...this._def,shape:()=>r})}required(e){let r={};return ve.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Sr;)s=s._def.innerType;r[n]=s}}),new Pe({...this._def,shape:()=>r})}keyof(){return HF(ve.objectKeys(this.shape))}};Pe.create=(t,e)=>new Pe({shape:()=>t,unknownKeys:"strip",catchall:Ar.create(),typeName:ne.ZodObject,...le(e)});Pe.strictCreate=(t,e)=>new Pe({shape:()=>t,unknownKeys:"strict",catchall:Ar.create(),typeName:ne.ZodObject,...le(e)});Pe.lazycreate=(t,e)=>new Pe({shape:t,unknownKeys:"strip",catchall:Ar.create(),typeName:ne.ZodObject,...le(e)});var Wi=class extends fe{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Yt(a.ctx.common.issues));return W(r,{code:L.invalid_union,unionErrors:o}),ue}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let u of n){let l={...r,common:{...r.common,issues:[]},parent:null},f=u._parseSync({data:r.data,path:r.path,parent:l});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(u=>new Yt(u));return W(r,{code:L.invalid_union,unionErrors:a}),ue}}get options(){return this._def.options}};Wi.create=(t,e)=>new Wi({options:t,typeName:ne.ZodUnion,...le(e)});var Vf=t=>t instanceof Ki?Vf(t.schema):t instanceof Zt?Vf(t.innerType()):t instanceof Zi?[t.value]:t instanceof Vr?t.options:t instanceof Ji?Object.keys(t.enum):t instanceof Xi?Vf(t._def.innerType):t instanceof Gi?[void 0]:t instanceof Vi?[null]:null,Co=class extends fe{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==V.object)return W(r,{code:L.invalid_type,expected:V.object,received:r.parsedType}),ue;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(W(r,{code:L.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ue)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=Vf(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new Co({typeName:ne.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...le(n)})}};function r_(t,e){let r=ai(t),n=ai(e);if(t===e)return{valid:!0,data:t};if(r===V.object&&n===V.object){let i=ve.objectKeys(e),s=ve.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let u=r_(t[a],e[a]);if(!u.valid)return{valid:!1};o[a]=u.data}return{valid:!0,data:o}}else if(r===V.array&&n===V.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],u=r_(o,a);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return r===V.date&&n===V.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var zi=class extends fe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(e_(s)||e_(o))return ue;let a=r_(s.value,o.value);return a.valid?((t_(s)||t_(o))&&r.dirty(),{status:r.value,value:a.data}):(W(n,{code:L.invalid_intersection_types}),ue)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};zi.create=(t,e,r)=>new zi({left:t,right:e,typeName:ne.ZodIntersection,...le(r)});var pr=class extends fe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==V.array)return W(n,{code:L.invalid_type,expected:V.array,received:n.parsedType}),ue;if(n.data.length<this._def.items.length)return W(n,{code:L.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ue;!this._def.rest&&n.data.length>this._def.items.length&&(W(n,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new dr(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>ot.mergeArray(r,o)):ot.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new pr({...this._def,rest:e})}};pr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pr({items:t,typeName:ne.ZodTuple,rest:null,...le(e)})};var Yi=class extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==V.object)return W(n,{code:L.invalid_type,expected:V.object,received:n.parsedType}),ue;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new dr(n,a,n.path,a)),value:o._parse(new dr(n,n.data[a],n.path,a))});return n.common.async?ot.mergeObjectAsync(r,i):ot.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof fe?new Yi({keyType:e,valueType:r,typeName:ne.ZodRecord,...le(n)}):new Yi({keyType:zt.create(),valueType:e,typeName:ne.ZodRecord,...le(r)})}},Do=class extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==V.map)return W(n,{code:L.invalid_type,expected:V.map,received:n.parsedType}),ue;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,u],l)=>({key:i._parse(new dr(n,a,n.path,[l,"key"])),value:s._parse(new dr(n,u,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of o){let l=await u.key,f=await u.value;if(l.status==="aborted"||f.status==="aborted")return ue;(l.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(l.value,f.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of o){let l=u.key,f=u.value;if(l.status==="aborted"||f.status==="aborted")return ue;(l.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(l.value,f.value)}return{status:r.value,value:a}}}};Do.create=(t,e,r)=>new Do({valueType:e,keyType:t,typeName:ne.ZodMap,...le(r)});var An=class extends fe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==V.set)return W(n,{code:L.invalid_type,expected:V.set,received:n.parsedType}),ue;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(W(n,{code:L.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(W(n,{code:L.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(u){let l=new Set;for(let f of u){if(f.status==="aborted")return ue;f.status==="dirty"&&r.dirty(),l.add(f.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((u,l)=>s._parse(new dr(n,u,n.path,l)));return n.common.async?Promise.all(a).then(u=>o(u)):o(a)}min(e,r){return new An({...this._def,minSize:{value:e,message:ee.toString(r)}})}max(e,r){return new An({...this._def,maxSize:{value:e,message:ee.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};An.create=(t,e)=>new An({valueType:t,minSize:null,maxSize:null,typeName:ne.ZodSet,...le(e)});var ui=class extends fe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==V.function)return W(r,{code:L.invalid_type,expected:V.function,received:r.parsedType}),ue;function n(a,u){return zf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Wf(),iu].filter(l=>!!l),issueData:{code:L.invalid_arguments,argumentsError:u}})}function i(a,u){return zf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Wf(),iu].filter(l=>!!l),issueData:{code:L.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof li){let a=this;return Rt(async function(...u){let l=new Yt([]),f=await a._def.args.parseAsync(u,s).catch(g=>{throw l.addIssue(n(u,g)),l}),h=await Reflect.apply(o,this,f);return await a._def.returns._def.type.parseAsync(h,s).catch(g=>{throw l.addIssue(i(h,g)),l})})}else{let a=this;return Rt(function(...u){let l=a._def.args.safeParse(u,s);if(!l.success)throw new Yt([n(u,l.error)]);let f=Reflect.apply(o,this,l.data),h=a._def.returns.safeParse(f,s);if(!h.success)throw new Yt([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ui({...this._def,args:pr.create(e).rest(xn.create())})}returns(e){return new ui({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new ui({args:e||pr.create([]).rest(xn.create()),returns:r||xn.create(),typeName:ne.ZodFunction,...le(n)})}},Ki=class extends fe{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ki.create=(t,e)=>new Ki({getter:t,typeName:ne.ZodLazy,...le(e)});var Zi=class extends fe{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return W(r,{received:r.data,code:L.invalid_literal,expected:this._def.value}),ue}return{status:"valid",value:e.data}}get value(){return this._def.value}};Zi.create=(t,e)=>new Zi({value:t,typeName:ne.ZodLiteral,...le(e)});function HF(t,e){return new Vr({values:t,typeName:ne.ZodEnum,...le(e)})}var Vr=class extends fe{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return W(r,{expected:ve.joinValues(n),received:r.parsedType,code:L.invalid_type}),ue}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return W(r,{received:r.data,code:L.invalid_enum_value,options:n}),ue}return Rt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return Vr.create(e)}exclude(e){return Vr.create(this.options.filter(r=>!e.includes(r)))}};Vr.create=HF;var Ji=class extends fe{_parse(e){let r=ve.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==V.string&&n.parsedType!==V.number){let i=ve.objectValues(r);return W(n,{expected:ve.joinValues(i),received:n.parsedType,code:L.invalid_type}),ue}if(r.indexOf(e.data)===-1){let i=ve.objectValues(r);return W(n,{received:n.data,code:L.invalid_enum_value,options:i}),ue}return Rt(e.data)}get enum(){return this._def.values}};Ji.create=(t,e)=>new Ji({values:t,typeName:ne.ZodNativeEnum,...le(e)});var li=class extends fe{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==V.promise&&r.common.async===!1)return W(r,{code:L.invalid_type,expected:V.promise,received:r.parsedType}),ue;let n=r.parsedType===V.promise?r.data:Promise.resolve(r.data);return Rt(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};li.create=(t,e)=>new li({type:t,typeName:ne.ZodPromise,...le(e)});var Zt=class extends fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{W(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=a=>{let u=i.refinement(a,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ue:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?ue:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!su(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>su(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);ve.assertNever(i)}};Zt.create=(t,e,r)=>new Zt({schema:t,typeName:ne.ZodEffects,effect:e,...le(r)});Zt.createWithPreprocess=(t,e,r)=>new Zt({schema:e,effect:{type:"preprocess",transform:t},typeName:ne.ZodEffects,...le(r)});var Sr=class extends fe{_parse(e){return this._getType(e)===V.undefined?Rt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Sr.create=(t,e)=>new Sr({innerType:t,typeName:ne.ZodOptional,...le(e)});var Cn=class extends fe{_parse(e){return this._getType(e)===V.null?Rt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Cn.create=(t,e)=>new Cn({innerType:t,typeName:ne.ZodNullable,...le(e)});var Xi=class extends fe{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===V.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Xi.create=(t,e)=>new Xi({innerType:t,typeName:ne.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...le(e)});var Ro=class extends fe{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Yf(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Yt(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Yt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Ro.create=(t,e)=>new Ro({innerType:t,typeName:ne.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...le(e)});var Oo=class extends fe{_parse(e){if(this._getType(e)!==V.nan){let n=this._getOrReturnCtx(e);return W(n,{code:L.invalid_type,expected:V.nan,received:n.parsedType}),ue}return{status:"valid",value:e.data}}};Oo.create=t=>new Oo({typeName:ne.ZodNaN,...le(t)});var fz=Symbol("zod_brand"),Kf=class extends fe{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Qi=class extends fe{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ue:s.status==="dirty"?(r.dirty(),jF(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ue:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Qi({in:e,out:r,typeName:ne.ZodPipeline})}},To=class extends fe{_parse(e){let r=this._def.innerType._parse(e);return su(r)&&(r.value=Object.freeze(r.value)),r}};To.create=(t,e)=>new To({innerType:t,typeName:ne.ZodReadonly,...le(e)});var $F=(t,e={},r)=>t?ci.create().superRefine((n,i)=>{var s,o;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,u=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...l,fatal:u})}}):ci.create(),hz={object:Pe.lazycreate},ne;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ne||(ne={}));var dz=(t,e={message:`Input not instance of ${t.name}`})=>$F(r=>r instanceof t,e),UF=zt.create,GF=Ur.create,pz=Oo.create,mz=Gr.create,VF=Ui.create,gz=Sn.create,yz=So.create,_z=Gi.create,vz=Vi.create,Ez=ci.create,bz=xn.create,wz=Ar.create,xz=Ao.create,Sz=Kt.create,Az=Pe.create,Cz=Pe.strictCreate,Dz=Wi.create,Rz=Co.create,Oz=zi.create,Tz=pr.create,kz=Yi.create,Fz=Do.create,Pz=An.create,Iz=ui.create,Bz=Ki.create,Lz=Zi.create,Nz=Vr.create,Mz=Ji.create,qz=li.create,MF=Zt.create,jz=Sr.create,Hz=Cn.create,$z=Zt.createWithPreprocess,Uz=Qi.create,Gz=()=>UF().optional(),Vz=()=>GF().optional(),Wz=()=>VF().optional(),zz={string:t=>zt.create({...t,coerce:!0}),number:t=>Ur.create({...t,coerce:!0}),boolean:t=>Ui.create({...t,coerce:!0}),bigint:t=>Gr.create({...t,coerce:!0}),date:t=>Sn.create({...t,coerce:!0})},Yz=ue,ko=Object.freeze({__proto__:null,defaultErrorMap:iu,setErrorMap:XW,getErrorMap:Wf,makeIssue:zf,EMPTY_PATH:QW,addIssueToContext:W,ParseStatus:ot,INVALID:ue,DIRTY:jF,OK:Rt,isAborted:e_,isDirty:t_,isValid:su,isAsync:Yf,get util(){return ve},get objectUtil(){return Qy},ZodParsedType:V,getParsedType:ai,ZodType:fe,ZodString:zt,ZodNumber:Ur,ZodBigInt:Gr,ZodBoolean:Ui,ZodDate:Sn,ZodSymbol:So,ZodUndefined:Gi,ZodNull:Vi,ZodAny:ci,ZodUnknown:xn,ZodNever:Ar,ZodVoid:Ao,ZodArray:Kt,ZodObject:Pe,ZodUnion:Wi,ZodDiscriminatedUnion:Co,ZodIntersection:zi,ZodTuple:pr,ZodRecord:Yi,ZodMap:Do,ZodSet:An,ZodFunction:ui,ZodLazy:Ki,ZodLiteral:Zi,ZodEnum:Vr,ZodNativeEnum:Ji,ZodPromise:li,ZodEffects:Zt,ZodTransformer:Zt,ZodOptional:Sr,ZodNullable:Cn,ZodDefault:Xi,ZodCatch:Ro,ZodNaN:Oo,BRAND:fz,ZodBranded:Kf,ZodPipeline:Qi,ZodReadonly:To,custom:$F,Schema:fe,ZodSchema:fe,late:hz,get ZodFirstPartyTypeKind(){return ne},coerce:zz,any:Ez,array:Sz,bigint:mz,boolean:VF,date:gz,discriminatedUnion:Rz,effect:MF,enum:Nz,function:Iz,instanceof:dz,intersection:Oz,lazy:Bz,literal:Lz,map:Fz,nan:pz,nativeEnum:Mz,never:wz,null:vz,nullable:Hz,number:GF,object:Az,oboolean:Wz,onumber:Vz,optional:jz,ostring:Gz,pipeline:Uz,preprocess:$z,promise:qz,record:kz,set:Pz,strictObject:Cz,string:UF,symbol:yz,transformer:MF,tuple:Tz,undefined:_z,union:Dz,unknown:bz,void:xz,NEVER:Yz,ZodIssueCode:L,quotelessJson:JW,ZodError:Yt});c();var u_=me(require("os")),e5=me(require("crypto")),t5=me(require("path")),r5=me(QF());function iY(t){let e=process.version,r=u_.default.type(),n=u_.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function sY(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,r5.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return t5.default.join(t,"turborepo","telemetry.json")}function oY({input:t,salt:e}){return e5.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var Fo={buildUserAgent:iY,oneWayHashWithSalt:oY,defaultConfigPath:sY};var aY="TURBO_TELEMETRY_DEBUG",uY="TURBO_TELEMETRY_DISABLED",cY="TURBO_TELEMETRY_MESSAGE_DISABLED",lY="DO_NOT_TRACK",fY=ko.object({telemetry_enabled:ko.boolean(),telemetry_id:ko.string(),telemetry_salt:ko.string(),telemetry_alerted:ko.string().optional()}),Mt=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,Po.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=Mt.validateConfig(n);return new Mt({configPath:e,config:i})}catch{return Mt.tryRemove({configPath:e})?Mt.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await Fo.defaultConfigPath();return Mt.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return fY.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=wo(),n=wo(),i=Fo.oneWayHashWithSalt({input:r,salt:n}),s=new Mt({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,Po.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,Po.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[lY]||"0",r=process.env[uY]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[cY]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(De.log(),De.bold("Attention:"),De.grey("Turborepo now collects completely anonymous telemetry regarding usage."),De.grey("This information is used to shape the Turborepo roadmap and prioritize features."),De.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),De.underline(n5.default.grey("https://turbo.build/repo/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return Fo.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[aY]||"0";return e==="1"||e.toLowerCase()==="true"}};c();c();var i5=me(aF());var hY=20,dY="/api/turborepo/v1/events",es=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=hY;this.timeout=250;this.sessionId=wo();this.eventBatches=[];this.events=[];let s=new URL(dY,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(i5.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":Fo.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:wo(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return Mt.isDebug()&&(De.log(),De.bold("[telemetry event]"),De.dimmed(JSON.stringify(s,null,2)),De.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var ou=class extends es{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};c();var c5=me(u5());var mY=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],au=class extends es{trackCI(){var e;return this.track({key:"ci",value:(e=c5.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:mY.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var gY={"create-turbo":ou,"turbo-ignore":au},yY="https://telemetry.vercel.com";async function c_({packageInfo:t,opts:e}){let r=gY[t.name],n=await Mt.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:yY,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}c();var uu=me($c());var l5="status",_Y=["enable","disable",l5];function vY(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();De.log(`Status: ${e?uu.default.bold(uu.default.green("Enabled")):uu.default.bold(uu.default.red("Disabled"))}`),De.log(),e?De.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):De.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),De.log("Learn more: https://turbo.build/repo/docs/telemetry")}function EY(t,e){if(!e.telemetry){De.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),De.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),De.bold("Success!")),De.log(),vY(e)}function l_(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new P_("[action]","Action to perform").choices(_Y).default(l5)).action(EY)}var Jf={name:"turbo-ignore",version:"2.0.2",description:"",homepage:"https://turbo.build/repo",keywords:[],author:"Jared Palmer",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turbo/issues"},files:["dist"],bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src __tests__","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@types/jest":"^27.4.0","@types/node":"^18.17.2",commander:"^11.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^5.12.1",typescript:"5.3.3"}};c();var b5=require("child_process"),w5=me(require("path")),x5=require("fs");c();var f5=require("child_process");c();var f_="\u226B ";function je(...t){console.log(f_,...t)}function Dn(...t){console.error(f_,...t)}function h_(...t){console.warn(f_,...t)}function d_(...t){console.log(...t)}function wY(t){try{return(0,f5.execSync)(`git cat-file -t ${t}`,{stdio:"ignore"}),!0}catch{return!1}}function p_(t){return t.fallback?(je(`Falling back to ref ${t.fallback}`),{ref:t.fallback,type:"customFallback"}):null}function h5(t){let{workspace:e}=t;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?wY(process.env.VERCEL_GIT_PREVIOUS_SHA)?(je(`Found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(je(`Previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""} is unreachable.`),p_(t)):(je(`No previous deployments found for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),p_(t)):t.fallback?p_(t):{ref:"HEAD^",type:"headRelative"}}c();function d5(t){return t.task?(je(`Using "${t.task}" as the task from the arguments`),`"${t.task}"`):(je('Using "build" as the task as it was unspecified'),"build")}c();var p5=me(require("fs")),m5=me(require("path"));function g5(t){let{directory:e=process.cwd(),workspace:r}=t;if(r)return je(`Using "${r}" as workspace from arguments`),r;let n=m5.default.join(e,"package.json");try{let i=p5.default.readFileSync(n,"utf8"),s=JSON.parse(i);return s.name?(je(`Inferred "${s.name}" as workspace from "package.json"`),s.name):(Dn(`"${n}" is missing the "name" field (required).`),null)}catch{return Dn(`"${n}" could not be found. turbo-ignore inferencing failed`),null}}c();var m_={MISSING_LOCKFILE:{regex:[/reading (?:yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/i],message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:[/run failed: We did not detect an in-use package manager for your project/i],message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:[/failed to resolve packages to run: commit HEAD\^ does not exist/i],message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},INVALID_COMPARISON:{regex:[/commit \S+ does not exist/i,/unknown revision/i,/invalid symmetric difference expression/i],message:"turbo-ignore could not complete - a ref or SHA is invalid. It could have been removed from the branch history via a force push, or this could be a shallow clone with insufficient history"}};function y5({err:t}){let e=Object.keys(m_).find(r=>{let{regex:n}=m_[r];return n.some(i=>i.test(t))});return e?{level:"warn",message:m_[e].message,code:e}:{level:"error",message:t,code:"UNKNOWN_ERROR"}}c();var _5=require("child_process"),xY=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],SY=["[vercel deploy]","[vercel build]"];function AY({workspace:t}){return[`[vercel skip ${t}]`]}function CY({workspace:t}){return[`[vercel deploy ${t}]`,`[vercel build ${t}]`]}var DY=/\[vercel only .+\]/;function RY({workspace:t}){return[`[vercel only ${t}]`]}function OY(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,_5.execSync)("git show -s --format=%B").toString()}function v5({workspace:t}){var u;let e=OY(),r=l=>e.includes(l),n=(u=DY.exec(e))==null?void 0:u[0];if(n)return RY({workspace:t}).find(l=>l===n)?{result:"deploy",scope:"workspace",reason:`Found commit message: ${n}`}:{result:"skip",scope:"workspace",reason:`Found commit message: ${n}`};let i=CY({workspace:t}).find(r),s=AY({workspace:t}).find(r);if(i&&s)return{result:"conflict",scope:"workspace",reason:`Conflicting commit messages found: ${i} and ${s}`};if(i)return{result:"deploy",scope:"workspace",reason:`Found commit message: ${i}`};if(s)return{result:"skip",scope:"workspace",reason:`Found commit message: ${s}`};let o=SY.find(r),a=xY.find(r);return o&&a?{result:"conflict",scope:"global",reason:`Conflicting commit messages found: ${o} and ${a}`}:o?{result:"deploy",scope:"global",reason:`Found commit message: ${o}`}:a?{result:"skip",scope:"global",reason:`Found commit message: ${a}`}:{result:"continue",scope:"global",reason:"No deploy or skip string found in commit message."}}function TY(t){var e,r,n,i;(e=t.telemetry)==null||e.trackOptionTask(t.task),(r=t.telemetry)==null||r.trackOptionFallback(t.fallback),(n=t.telemetry)==null||n.trackOptionDirectory(t.directory),(i=t.telemetry)==null||i.trackOptionMaxBuffer(t.maxBuffer)}function E5(){return d_("\u23ED Ignoring the change"),process.exit(0)}function zr(){return d_("\u2713 Proceeding with deployment"),process.exit(1)}function S5(t,e){var f,h;(f=e.telemetry)==null||f.trackCommandStatus({command:"ignore",status:"start"}),(h=e.telemetry)==null||h.trackArgumentWorkspace(t!==void 0),TY(e);let r={workspace:t,...e};if(je(`Using Turborepo to determine if this project is affected by the commit...
101
- `),e.directory){let d=w5.default.resolve(e.directory);(0,x5.existsSync)(d)?r.directory=d:(h_(`Directory "${e.directory}" does not exist, using current directory`),r.directory=process.cwd())}else r.directory=process.cwd();if(process.env.TURBO_FORCE==="true")return je("`TURBO_FORCE` detected"),zr();let n=Pu(r.directory);if(!n)return Dn("Monorepo root not found. turbo-ignore inferencing failed"),zr();let i=g5(r);if(!i)return zr();let s=d5(r),o=v5({workspace:i});if(o.result==="skip")return je(o.reason),E5();if(o.result==="deploy")return je(o.reason),zr();o.result==="conflict"&&je(o.reason);let a=h5({workspace:i,fallback:r.fallback});if(!a)return zr();let u=`npx turbo run ${s} --filter="${i}...[${a.ref}]" --dry=json`;je(`Analyzing results of \`${u}\``);let l={cwd:n};e.maxBuffer&&(l.maxBuffer=e.maxBuffer),(0,b5.exec)(u,l,(d,g)=>{var y,v;if(d){let{level:E,code:x,message:O}=y5({err:d.message});return E==="warn"?((y=e.telemetry)==null||y.trackCommandWarning(O),h_(O)):Dn(`${x}: ${d.message}`),zr()}try{let E=JSON.parse(g);if(E===null)return Dn(`Failed to parse JSON output from \`${u}\`.`),zr();let{packages:x}=E;return x?x.length>0?(x.length===1?je(`This commit affects "${i}"`):je(`This commit affects "${i}" and ${x.length-1} ${x.length-1===1?"dependency":"dependencies"} (${x.slice(1).join(", ")})`),zr()):(je("This project and its dependencies are not affected"),E5()):(je("Detected single package repo"),zr())}catch(E){return Dn(`Failed to parse JSON output from \`${u}\`.`),Dn(E),zr()}finally{(v=e.telemetry)==null||v.trackCommandStatus({command:"ignore",status:"end"})}})}var Xf,g_=new F_;g_.name(Jf.name).description("Only proceed with deployment if the workspace or any of its dependencies have changed").hook("preAction",async(t,e)=>{let{telemetry:r}=await c_({packageInfo:{name:"turbo-ignore",version:Jf.version}});e.addOption(new ts("--telemetry").default(r).hideHelp()),Xf=r}).hook("postAction",async()=>{await(Xf==null?void 0:Xf.close())}).argument("[workspace]",'The workspace being deployed. If [workspace] is not provided, it will be inferred from the "name" field of the "package.json" located at the current working directory.').addOption(new ts("-t, --task <name>","The task to execute").default("build")).addOption(new ts("-f, --fallback <ref>","On Vercel, if no previously deployed SHA is available to compare against, fallback to comparing against the provided ref")).addOption(new ts("-d, --directory <path>","The directory to run in (default: cwd)")).addOption(new ts("-b, --max-buffer <number>","maxBuffer for the child process in KB (default: 1024 KB)").argParser(t=>parseInt(t,10)*1024)).version(Jf.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1).action(S5);l_(g_);g_.parse();
79
+ `}function iE(t){return t[t.length-1]===`
80
+ `?t.slice(0,-1):t}function aF(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=t.indexOf(`
81
+ `);return l=l!==-1?l:t.length,r.lastIndex=l,sE(t.slice(0,l),e)}(),i=t[0]===`
82
+ `||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
83
+ `:"")+sE(c,e),i=s}return n}function sE(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(t);)a=n.index,a-i>e&&(s=o>i?o:a,c+=`
84
+ `+t.slice(i,s),i=s+1),o=a;return c+=`
85
+ `,t.length-i>e&&o>i?c+=t.slice(i,o)+`
86
+ `+t.slice(o+1):c+=t.slice(i),c.slice(1)}function cF(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Fo(t,i),n=st[r],!n&&Ho(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||QM(r);return e}function uF(t,e,r){var n="",i=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Ur(t,e,a,!1,!1)||typeof a>"u"&&Ur(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function oE(t,e,r,n){var i="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(Ur(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Ur(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Mh(t,e)),t.dump&&Bo===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function lF(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,a,c,l,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),t.condenseFlow&&(f+='"'),c=s[o],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Ur(t,e,c,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ur(t,e,l,!1,!1)&&(f+=t.dump,n+=f));t.tag=i,t.dump="{"+n+"}"}function fF(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),a,c,l,f,h,d;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new wt("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)d="",(!n||i!=="")&&(d+=Mh(t,e)),l=o[a],f=r[l],t.replacer&&(f=t.replacer.call(r,l,f)),Ur(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&Bo===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=Mh(t,e)),Ur(t,e+1,f,!0,h)&&(t.dump&&Bo===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=s,t.dump=i||"{}"}function aE(t,e,r){var n,i,s,o,a,c;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,wE.call(a.represent)==="[object Function]")n=a.represent(e,c);else if(xE.call(a.represent,c))n=a.represent[c](e,c);else throw new wt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=n}return!0}return!1}function Ur(t,e,r,n,i,s,o){t.tag=null,t.dump=r,aE(t,r,!1)||aE(t,r,!0);var a=wE.call(t.dump),c=n,l;n&&(n=t.flowLevel<0||t.flowLevel>e);var f=a==="[object Object]"||a==="[object Array]",h,d;if(f&&(h=t.duplicates.indexOf(r),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(f&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(fF(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(lF(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?oE(t,e-1,t.dump,i):oE(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(uF(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&oF(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new wt("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function hF(t,e){var r=[],n=[],i,s;for(qh(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function qh(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)qh(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)qh(t[n[i]],e,r)}function dF(t,e){e=e||{};var r=new tF(e);r.noRefs||hF(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Ur(r,0,n,!0,!0)?r.dump+`
87
+ `:""}var pF=dF,mF={dump:pF};function Uh(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var FK=EE.load,qK=EE.loadAll,BK=mF.dump;var jK=Uh("safeLoad","load"),HK=Uh("safeLoadAll","loadAll"),$K=Uh("safeDump","dump");var u6=le(v1()),l6=le(require("json5"));var Se={};sL(Se,{bold:()=>r6,dimmed:()=>i6,error:()=>qA,grey:()=>s6,info:()=>t6,item:()=>o6,log:()=>Tn,turboBlue:()=>vs,turboGradient:()=>e6,turboLoader:()=>MA,turboRed:()=>NA,underline:()=>n6,warn:()=>FA,yellow:()=>DA});u();var On=le(Yo()),kA=le(nA()),PA=le(TA()),IA="#0099F7",LA="#F11712",QH="#FFFF00",e6=(0,PA.default)(IA,LA),vs=On.default.hex(IA),NA=On.default.hex(LA),DA=On.default.hex(QH),MA=t=>(0,kA.default)({text:t,spinner:{frames:[" ",vs("> "),vs(">> "),vs(">>>")]}}),t6=(...t)=>{Tn(vs.bold(">>>"),...t)},r6=(...t)=>{Tn(On.default.bold(...t))},n6=(...t)=>{Tn(On.default.underline(...t))},i6=(...t)=>{Tn(On.default.dim(...t))},s6=(...t)=>{Tn(On.default.grey(...t))},o6=(...t)=>{Tn(vs.bold(" \u2022"),...t)},Tn=(...t)=>{console.log(...t)},FA=(...t)=>{console.error(DA.bold(">>>"),...t)},qA=(...t)=>{console.error(NA.bold(">>>"),...t)};u();var nU=le(require("os")),iU=le(fC());u();u();var sU=le(require("path"));var oU=le(Yo());u();var NP=require("stream"),DP=require("util"),G7=require("path"),V7=require("os"),MP=require("fs"),W7=le(uk());var Fee=(0,DP.promisify)(NP.Stream.pipeline);u();u();var rV=le(require("path")),nV=le(UP()),iV=le(Yo());u();u();var TI=le(Eu());u();var Lr=le(cI(),1),Lte=Lr.default.v1,Nte=Lr.default.v3,so=Lr.default.v4,Dte=Lr.default.v5,Mte=Lr.default.NIL,Fte=Lr.default.version,qte=Lr.default.validate,Bte=Lr.default.stringify,jte=Lr.default.parse;u();var me;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(me||(me={}));var A0;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(A0||(A0={}));var U=me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),zn=t=>{switch(typeof t){case"undefined":return U.undefined;case"string":return U.string;case"number":return isNaN(t)?U.nan:U.number;case"boolean":return U.boolean;case"function":return U.function;case"bigint":return U.bigint;case"symbol":return U.symbol;case"object":return Array.isArray(t)?U.array:t===null?U.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?U.promise:typeof Map<"u"&&t instanceof Map?U.map:typeof Set<"u"&&t instanceof Set?U.set:typeof Date<"u"&&t instanceof Date?U.date:U.object;default:return U.unknown}},N=me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),pW=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Bt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let l=o.path[c];c===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(o))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Bt.create=t=>new Bt(t);var ja=(t,e)=>{let r;switch(t.code){case N.invalid_type:t.received===U.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case N.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,me.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:r=`Unrecognized key(s) in object: ${me.joinValues(t.keys,", ")}`;break;case N.invalid_union:r="Invalid input";break;case N.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${me.joinValues(t.options)}`;break;case N.invalid_enum_value:r=`Invalid enum value. Expected ${me.joinValues(t.options)}, received '${t.received}'`;break;case N.invalid_arguments:r="Invalid function arguments";break;case N.invalid_return_type:r="Invalid function return type";break;case N.invalid_date:r="Invalid date";break;case N.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:me.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case N.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case N.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case N.custom:r="Invalid input";break;case N.invalid_intersection_types:r="Intersection results could not be merged";break;case N.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case N.not_finite:r="Number must be finite";break;default:r=e.defaultError,me.assertNever(t)}return{message:r}},fI=ja;function mW(t){fI=t}function Af(){return fI}var Rf=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},a="",c=n.filter(l=>!!l).slice().reverse();for(let l of c)a=l(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}},gW=[];function G(t,e){let r=Rf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Af(),ja].filter(n=>!!n)});t.common.issues.push(r)}var Xe=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return oe;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return Xe.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return oe;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},oe=Object.freeze({status:"aborted"}),hI=t=>({status:"dirty",value:t}),vt=t=>({status:"valid",value:t}),R0=t=>t.status==="aborted",C0=t=>t.status==="dirty",Ha=t=>t.status==="valid",Cf=t=>typeof Promise<"u"&&t instanceof Promise,X;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(X||(X={}));var ir=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},uI=(t,e)=>{if(Ha(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Bt(t.common.issues);return this._error=r,this._error}}};function ae(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:n!=null?n:a.defaultError}:{message:r!=null?r:a.defaultError},description:i}}var ce=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return zn(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:zn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Xe,ctx:{common:e.parent.common,data:e.data,parsedType:zn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Cf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:zn(e)},s=this._parseSync({data:e,path:i.path,parent:i});return uI(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:zn(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(Cf(i)?i:Promise.resolve(i));return uI(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:N.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Ht({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return mr.create(this,this._def)}nullable(){return pn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Zn.create(this,this._def)}or(e){return Pi.create([this,e],this._def)}and(e){return Ii.create(this,e,this._def)}transform(e){return new Ht({...ae(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Fi({...ae(this._def),innerType:this,defaultValue:r,typeName:te.ZodDefault})}brand(){return new Of({typeName:te.ZodBranded,type:this,...ae(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new fo({...ae(this._def),innerType:this,catchValue:r,typeName:te.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return qi.create(this,e)}readonly(){return po.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},yW=/^c[^\s-]{8,}$/i,_W=/^[a-z][a-z0-9]*$/,vW=/^[0-9A-HJKMNP-TV-Z]{26}$/,bW=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,EW=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wW="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",S0,xW=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,SW=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,AW=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function RW(t,e){return!!((e==="v4"||!e)&&xW.test(t)||(e==="v6"||!e)&&SW.test(t))}var qt=class extends ce{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==U.string){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.string,received:s.parsedType}),oe}let n=new Xe,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?G(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&G(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")EW.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")S0||(S0=new RegExp(wW,"u")),S0.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")bW.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")yW.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")_W.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")vW.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),G(i,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?AW(s).test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?RW(e.data,s.version)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):me.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:N.invalid_string,...X.errToObj(n)})}_addCheck(e){return new qt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...X.errToObj(e)})}url(e){return this._addCheck({kind:"url",...X.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...X.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...X.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...X.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...X.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...X.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...X.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...X.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...X.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...X.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...X.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...X.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...X.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...X.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...X.errToObj(r)})}nonempty(e){return this.min(1,X.errToObj(e))}trim(){return new qt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};qt.create=t=>{var e;return new qt({checks:[],typeName:te.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ae(t)})};function CW(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var Nr=class extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==U.number){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.number,received:s.parsedType}),oe}let n,i=new Xe;for(let s of this._def.checks)s.kind==="int"?me.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),G(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?CW(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_finite,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Nr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Nr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:X.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:X.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:X.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:X.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&me.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Nr.create=t=>new Nr({checks:[],typeName:te.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...ae(t)});var Dr=class extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==U.bigint){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.bigint,received:s.parsedType}),oe}let n,i=new Xe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Dr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Dr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Dr.create=t=>{var e;return new Dr({checks:[],typeName:te.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ae(t)})};var Oi=class extends ce{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==U.boolean){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.boolean,received:n.parsedType}),oe}return vt(e.data)}};Oi.create=t=>new Oi({typeName:te.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...ae(t)});var hn=class extends ce{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==U.date){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.date,received:s.parsedType}),oe}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_date}),oe}let n=new Xe,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):me.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new hn({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:X.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:X.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};hn.create=t=>new hn({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:te.ZodDate,...ae(t)});var ao=class extends ce{_parse(e){if(this._getType(e)!==U.symbol){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.symbol,received:n.parsedType}),oe}return vt(e.data)}};ao.create=t=>new ao({typeName:te.ZodSymbol,...ae(t)});var Ti=class extends ce{_parse(e){if(this._getType(e)!==U.undefined){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.undefined,received:n.parsedType}),oe}return vt(e.data)}};Ti.create=t=>new Ti({typeName:te.ZodUndefined,...ae(t)});var ki=class extends ce{_parse(e){if(this._getType(e)!==U.null){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.null,received:n.parsedType}),oe}return vt(e.data)}};ki.create=t=>new ki({typeName:te.ZodNull,...ae(t)});var Kn=class extends ce{constructor(){super(...arguments),this._any=!0}_parse(e){return vt(e.data)}};Kn.create=t=>new Kn({typeName:te.ZodAny,...ae(t)});var fn=class extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(e){return vt(e.data)}};fn.create=t=>new fn({typeName:te.ZodUnknown,...ae(t)});var gr=class extends ce{_parse(e){let r=this._getOrReturnCtx(e);return G(r,{code:N.invalid_type,expected:U.never,received:r.parsedType}),oe}};gr.create=t=>new gr({typeName:te.ZodNever,...ae(t)});var co=class extends ce{_parse(e){if(this._getType(e)!==U.undefined){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.void,received:n.parsedType}),oe}return vt(e.data)}};co.create=t=>new co({typeName:te.ZodVoid,...ae(t)});var jt=class extends ce{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==U.array)return G(r,{code:N.invalid_type,expected:U.array,received:r.parsedType}),oe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(G(r,{code:o?N.too_big:N.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(G(r,{code:N.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(G(r,{code:N.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new ir(r,o,r.path,a)))).then(o=>Xe.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new ir(r,o,r.path,a)));return Xe.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new jt({...this._def,minLength:{value:e,message:X.toString(r)}})}max(e,r){return new jt({...this._def,maxLength:{value:e,message:X.toString(r)}})}length(e,r){return new jt({...this._def,exactLength:{value:e,message:X.toString(r)}})}nonempty(e){return this.min(1,e)}};jt.create=(t,e)=>new jt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...ae(e)});function oo(t){if(t instanceof Oe){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=mr.create(oo(n))}return new Oe({...t._def,shape:()=>e})}else return t instanceof jt?new jt({...t._def,type:oo(t.element)}):t instanceof mr?mr.create(oo(t.unwrap())):t instanceof pn?pn.create(oo(t.unwrap())):t instanceof sr?sr.create(t.items.map(e=>oo(e))):t}var Oe=class extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=me.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==U.object){let l=this._getOrReturnCtx(e);return G(l,{code:N.invalid_type,expected:U.object,received:l.parsedType}),oe}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof gr&&this._def.unknownKeys==="strip"))for(let l in i.data)o.includes(l)||a.push(l);let c=[];for(let l of o){let f=s[l],h=i.data[l];c.push({key:{status:"valid",value:l},value:f._parse(new ir(i,h,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof gr){let l=this._def.unknownKeys;if(l==="passthrough")for(let f of a)c.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(l==="strict")a.length>0&&(G(i,{code:N.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let f of a){let h=i.data[f];c.push({key:{status:"valid",value:f},value:l._parse(new ir(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let f of c){let h=await f.key;l.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return l}).then(l=>Xe.mergeObjectSync(n,l)):Xe.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return X.errToObj,new Oe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let c=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=X.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Oe({...this._def,unknownKeys:"strip"})}passthrough(){return new Oe({...this._def,unknownKeys:"passthrough"})}extend(e){return new Oe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Oe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Oe({...this._def,catchall:e})}pick(e){let r={};return me.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}omit(e){let r={};return me.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}deepPartial(){return oo(this)}partial(e){let r={};return me.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new Oe({...this._def,shape:()=>r})}required(e){let r={};return me.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof mr;)s=s._def.innerType;r[n]=s}}),new Oe({...this._def,shape:()=>r})}keyof(){return dI(me.objectKeys(this.shape))}};Oe.create=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strip",catchall:gr.create(),typeName:te.ZodObject,...ae(e)});Oe.strictCreate=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strict",catchall:gr.create(),typeName:te.ZodObject,...ae(e)});Oe.lazycreate=(t,e)=>new Oe({shape:t,unknownKeys:"strip",catchall:gr.create(),typeName:te.ZodObject,...ae(e)});var Pi=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Bt(a.ctx.common.issues));return G(r,{code:N.invalid_union,unionErrors:o}),oe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let l={...r,common:{...r.common,issues:[]},parent:null},f=c._parseSync({data:r.data,path:r.path,parent:l});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new Bt(c));return G(r,{code:N.invalid_union,unionErrors:a}),oe}}get options(){return this._def.options}};Pi.create=(t,e)=>new Pi({options:t,typeName:te.ZodUnion,...ae(e)});var Sf=t=>t instanceof Ni?Sf(t.schema):t instanceof Ht?Sf(t.innerType()):t instanceof Di?[t.value]:t instanceof Mr?t.options:t instanceof Mi?Object.keys(t.enum):t instanceof Fi?Sf(t._def.innerType):t instanceof Ti?[void 0]:t instanceof ki?[null]:null,uo=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.object)return G(r,{code:N.invalid_type,expected:U.object,received:r.parsedType}),oe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(G(r,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=Sf(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new uo({typeName:te.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...ae(n)})}};function O0(t,e){let r=zn(t),n=zn(e);if(t===e)return{valid:!0,data:t};if(r===U.object&&n===U.object){let i=me.objectKeys(e),s=me.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=O0(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===U.array&&n===U.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=O0(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===U.date&&n===U.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Ii=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(R0(s)||R0(o))return oe;let a=O0(s.value,o.value);return a.valid?((C0(s)||C0(o))&&r.dirty(),{status:r.value,value:a.data}):(G(n,{code:N.invalid_intersection_types}),oe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Ii.create=(t,e,r)=>new Ii({left:t,right:e,typeName:te.ZodIntersection,...ae(r)});var sr=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.array)return G(n,{code:N.invalid_type,expected:U.array,received:n.parsedType}),oe;if(n.data.length<this._def.items.length)return G(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),oe;!this._def.rest&&n.data.length>this._def.items.length&&(G(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ir(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Xe.mergeArray(r,o)):Xe.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new sr({...this._def,rest:e})}};sr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new sr({items:t,typeName:te.ZodTuple,rest:null,...ae(e)})};var Li=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.object)return G(n,{code:N.invalid_type,expected:U.object,received:n.parsedType}),oe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new ir(n,a,n.path,a)),value:o._parse(new ir(n,n.data[a],n.path,a))});return n.common.async?Xe.mergeObjectAsync(r,i):Xe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof ce?new Li({keyType:e,valueType:r,typeName:te.ZodRecord,...ae(n)}):new Li({keyType:qt.create(),valueType:e,typeName:te.ZodRecord,...ae(r)})}},lo=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.map)return G(n,{code:N.invalid_type,expected:U.map,received:n.parsedType}),oe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],l)=>({key:i._parse(new ir(n,a,n.path,[l,"key"])),value:s._parse(new ir(n,c,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let l=await c.key,f=await c.value;if(l.status==="aborted"||f.status==="aborted")return oe;(l.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(l.value,f.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let l=c.key,f=c.value;if(l.status==="aborted"||f.status==="aborted")return oe;(l.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(l.value,f.value)}return{status:r.value,value:a}}}};lo.create=(t,e,r)=>new lo({valueType:e,keyType:t,typeName:te.ZodMap,...ae(r)});var dn=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.set)return G(n,{code:N.invalid_type,expected:U.set,received:n.parsedType}),oe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(G(n,{code:N.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(G(n,{code:N.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let l=new Set;for(let f of c){if(f.status==="aborted")return oe;f.status==="dirty"&&r.dirty(),l.add(f.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((c,l)=>s._parse(new ir(n,c,n.path,l)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new dn({...this._def,minSize:{value:e,message:X.toString(r)}})}max(e,r){return new dn({...this._def,maxSize:{value:e,message:X.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};dn.create=(t,e)=>new dn({valueType:t,minSize:null,maxSize:null,typeName:te.ZodSet,...ae(e)});var Yn=class extends ce{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.function)return G(r,{code:N.invalid_type,expected:U.function,received:r.parsedType}),oe;function n(a,c){return Rf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Af(),ja].filter(l=>!!l),issueData:{code:N.invalid_arguments,argumentsError:c}})}function i(a,c){return Rf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Af(),ja].filter(l=>!!l),issueData:{code:N.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Zn){let a=this;return vt(async function(...c){let l=new Bt([]),f=await a._def.args.parseAsync(c,s).catch(y=>{throw l.addIssue(n(c,y)),l}),h=await Reflect.apply(o,this,f);return await a._def.returns._def.type.parseAsync(h,s).catch(y=>{throw l.addIssue(i(h,y)),l})})}else{let a=this;return vt(function(...c){let l=a._def.args.safeParse(c,s);if(!l.success)throw new Bt([n(c,l.error)]);let f=Reflect.apply(o,this,l.data),h=a._def.returns.safeParse(f,s);if(!h.success)throw new Bt([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Yn({...this._def,args:sr.create(e).rest(fn.create())})}returns(e){return new Yn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new Yn({args:e||sr.create([]).rest(fn.create()),returns:r||fn.create(),typeName:te.ZodFunction,...ae(n)})}},Ni=class extends ce{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ni.create=(t,e)=>new Ni({getter:t,typeName:te.ZodLazy,...ae(e)});var Di=class extends ce{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return G(r,{received:r.data,code:N.invalid_literal,expected:this._def.value}),oe}return{status:"valid",value:e.data}}get value(){return this._def.value}};Di.create=(t,e)=>new Di({value:t,typeName:te.ZodLiteral,...ae(e)});function dI(t,e){return new Mr({values:t,typeName:te.ZodEnum,...ae(e)})}var Mr=class extends ce{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return G(r,{expected:me.joinValues(n),received:r.parsedType,code:N.invalid_type}),oe}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return G(r,{received:r.data,code:N.invalid_enum_value,options:n}),oe}return vt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return Mr.create(e)}exclude(e){return Mr.create(this.options.filter(r=>!e.includes(r)))}};Mr.create=dI;var Mi=class extends ce{_parse(e){let r=me.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==U.string&&n.parsedType!==U.number){let i=me.objectValues(r);return G(n,{expected:me.joinValues(i),received:n.parsedType,code:N.invalid_type}),oe}if(r.indexOf(e.data)===-1){let i=me.objectValues(r);return G(n,{received:n.data,code:N.invalid_enum_value,options:i}),oe}return vt(e.data)}get enum(){return this._def.values}};Mi.create=(t,e)=>new Mi({values:t,typeName:te.ZodNativeEnum,...ae(e)});var Zn=class extends ce{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.promise&&r.common.async===!1)return G(r,{code:N.invalid_type,expected:U.promise,received:r.parsedType}),oe;let n=r.parsedType===U.promise?r.data:Promise.resolve(r.data);return vt(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Zn.create=(t,e)=>new Zn({type:t,typeName:te.ZodPromise,...ae(e)});var Ht=class extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{G(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?oe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?oe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ha(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ha(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);me.assertNever(i)}};Ht.create=(t,e,r)=>new Ht({schema:t,typeName:te.ZodEffects,effect:e,...ae(r)});Ht.createWithPreprocess=(t,e,r)=>new Ht({schema:e,effect:{type:"preprocess",transform:t},typeName:te.ZodEffects,...ae(r)});var mr=class extends ce{_parse(e){return this._getType(e)===U.undefined?vt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};mr.create=(t,e)=>new mr({innerType:t,typeName:te.ZodOptional,...ae(e)});var pn=class extends ce{_parse(e){return this._getType(e)===U.null?vt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pn.create=(t,e)=>new pn({innerType:t,typeName:te.ZodNullable,...ae(e)});var Fi=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===U.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Fi.create=(t,e)=>new Fi({innerType:t,typeName:te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ae(e)});var fo=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Cf(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fo.create=(t,e)=>new fo({innerType:t,typeName:te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ae(e)});var ho=class extends ce{_parse(e){if(this._getType(e)!==U.nan){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.nan,received:n.parsedType}),oe}return{status:"valid",value:e.data}}};ho.create=t=>new ho({typeName:te.ZodNaN,...ae(t)});var OW=Symbol("zod_brand"),Of=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},qi=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?oe:s.status==="dirty"?(r.dirty(),hI(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?oe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new qi({in:e,out:r,typeName:te.ZodPipeline})}},po=class extends ce{_parse(e){let r=this._def.innerType._parse(e);return Ha(r)&&(r.value=Object.freeze(r.value)),r}};po.create=(t,e)=>new po({innerType:t,typeName:te.ZodReadonly,...ae(e)});var pI=(t,e={},r)=>t?Kn.create().superRefine((n,i)=>{var s,o;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...l,fatal:c})}}):Kn.create(),TW={object:Oe.lazycreate},te;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(te||(te={}));var kW=(t,e={message:`Input not instance of ${t.name}`})=>pI(r=>r instanceof t,e),mI=qt.create,gI=Nr.create,PW=ho.create,IW=Dr.create,yI=Oi.create,LW=hn.create,NW=ao.create,DW=Ti.create,MW=ki.create,FW=Kn.create,qW=fn.create,BW=gr.create,jW=co.create,HW=jt.create,$W=Oe.create,UW=Oe.strictCreate,GW=Pi.create,VW=uo.create,WW=Ii.create,zW=sr.create,YW=Li.create,KW=lo.create,ZW=dn.create,JW=Yn.create,XW=Ni.create,QW=Di.create,ez=Mr.create,tz=Mi.create,rz=Zn.create,lI=Ht.create,nz=mr.create,iz=pn.create,sz=Ht.createWithPreprocess,oz=qi.create,az=()=>mI().optional(),cz=()=>gI().optional(),uz=()=>yI().optional(),lz={string:t=>qt.create({...t,coerce:!0}),number:t=>Nr.create({...t,coerce:!0}),boolean:t=>Oi.create({...t,coerce:!0}),bigint:t=>Dr.create({...t,coerce:!0}),date:t=>hn.create({...t,coerce:!0})},fz=oe,mo=Object.freeze({__proto__:null,defaultErrorMap:ja,setErrorMap:mW,getErrorMap:Af,makeIssue:Rf,EMPTY_PATH:gW,addIssueToContext:G,ParseStatus:Xe,INVALID:oe,DIRTY:hI,OK:vt,isAborted:R0,isDirty:C0,isValid:Ha,isAsync:Cf,get util(){return me},get objectUtil(){return A0},ZodParsedType:U,getParsedType:zn,ZodType:ce,ZodString:qt,ZodNumber:Nr,ZodBigInt:Dr,ZodBoolean:Oi,ZodDate:hn,ZodSymbol:ao,ZodUndefined:Ti,ZodNull:ki,ZodAny:Kn,ZodUnknown:fn,ZodNever:gr,ZodVoid:co,ZodArray:jt,ZodObject:Oe,ZodUnion:Pi,ZodDiscriminatedUnion:uo,ZodIntersection:Ii,ZodTuple:sr,ZodRecord:Li,ZodMap:lo,ZodSet:dn,ZodFunction:Yn,ZodLazy:Ni,ZodLiteral:Di,ZodEnum:Mr,ZodNativeEnum:Mi,ZodPromise:Zn,ZodEffects:Ht,ZodTransformer:Ht,ZodOptional:mr,ZodNullable:pn,ZodDefault:Fi,ZodCatch:fo,ZodNaN:ho,BRAND:OW,ZodBranded:Of,ZodPipeline:qi,ZodReadonly:po,custom:pI,Schema:ce,ZodSchema:ce,late:TW,get ZodFirstPartyTypeKind(){return te},coerce:lz,any:FW,array:HW,bigint:IW,boolean:yI,date:LW,discriminatedUnion:VW,effect:lI,enum:ez,function:JW,instanceof:kW,intersection:WW,lazy:XW,literal:QW,map:KW,nan:PW,nativeEnum:tz,never:BW,null:MW,nullable:iz,number:gI,object:$W,oboolean:uz,onumber:cz,optional:nz,ostring:az,pipeline:oz,preprocess:sz,promise:rz,record:YW,set:ZW,strictObject:UW,string:mI,symbol:NW,transformer:lI,tuple:zW,undefined:DW,union:GW,unknown:qW,void:jW,NEVER:fz,ZodIssueCode:N,quotelessJson:pW,ZodError:Bt});u();var N0=le(require("os")),RI=le(require("crypto")),CI=le(require("path")),OI=le(AI());function Ez(t){let e=process.version,r=N0.default.type(),n=N0.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function wz(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,OI.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return CI.default.join(t,"turborepo","telemetry.json")}function xz({input:t,salt:e}){return RI.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var go={buildUserAgent:Ez,oneWayHashWithSalt:xz,defaultConfigPath:wz};var Sz="TURBO_TELEMETRY_DEBUG",Az="TURBO_TELEMETRY_DISABLED",Rz="TURBO_TELEMETRY_MESSAGE_DISABLED",Cz="DO_NOT_TRACK",Oz=mo.object({telemetry_enabled:mo.boolean(),telemetry_id:mo.string(),telemetry_salt:mo.string(),telemetry_alerted:mo.string().optional()}),Tt=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,yo.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=Tt.validateConfig(n);return new Tt({configPath:e,config:i})}catch{return Tt.tryRemove({configPath:e})?Tt.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await go.defaultConfigPath();return Tt.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return Oz.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=so(),n=so(),i=go.oneWayHashWithSalt({input:r,salt:n}),s=new Tt({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,yo.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,yo.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[Cz]||"0",r=process.env[Az]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[Rz]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(Se.log(),Se.bold("Attention:"),Se.grey("Turborepo now collects completely anonymous telemetry regarding usage."),Se.grey("This information is used to shape the Turborepo roadmap and prioritize features."),Se.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),Se.underline(TI.default.grey("https://turbo.build/repo/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return go.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[Sz]||"0";return e==="1"||e.toLowerCase()==="true"}};u();u();var kI=le(LP());var Tz=20,kz="/api/turborepo/v1/events",Bi=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=Tz;this.timeout=250;this.sessionId=so();this.eventBatches=[];this.events=[];let s=new URL(kz,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(kI.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":go.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:so(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return Tt.isDebug()&&(Se.log(),Se.bold("[telemetry event]"),Se.dimmed(JSON.stringify(s,null,2)),Se.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var $a=class extends Bi{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};u();var DI=le(NI());var Iz=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],Ua=class extends Bi{trackCI(){var e;return this.track({key:"ci",value:(e=DI.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:Iz.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var Lz={"create-turbo":$a,"turbo-ignore":Ua},Nz="https://telemetry.vercel.com";async function D0({packageInfo:t,opts:e}){let r=Lz[t.name],n=await Tt.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:Nz,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}u();var Ga=le(Eu());var MI="status",Dz=["enable","disable",MI];function Mz(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();Se.log(`Status: ${e?Ga.default.bold(Ga.default.green("Enabled")):Ga.default.bold(Ga.default.red("Disabled"))}`),Se.log(),e?Se.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):Se.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),Se.log("Learn more: https://turbo.build/repo/docs/telemetry")}function Fz(t,e){if(!e.telemetry){Se.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),Se.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),Se.bold("Success!")),Se.log(),Mz(e)}function M0(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new a_("[action]","Action to perform").choices(Dz).default(MI)).action(Fz)}var kf={name:"turbo-ignore",version:"2.0.3",description:"",homepage:"https://turbo.build/repo",keywords:[],author:"Jared Palmer",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turbo/issues"},files:["dist"],bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src __tests__","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{json5:"^2.2.3"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@types/jest":"^27.4.0","@types/node":"^18.17.2",commander:"^11.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^5.12.1",typescript:"5.3.3"}};u();var KI=require("child_process"),ZI=le(require("path")),JI=require("fs");u();var FI=require("child_process");u();var F0="\u226B ";function xe(...t){console.log(F0,...t)}function or(...t){console.error(F0,...t)}function q0(...t){console.warn(F0,...t)}function B0(...t){console.log(...t)}function Bz(t){try{return(0,FI.execSync)(`git cat-file -t ${t}`,{stdio:"ignore"}),!0}catch{return!1}}function j0(t){return t.fallback?(xe(`Falling back to ref ${t.fallback}`),{ref:t.fallback,type:"customFallback"}):null}function qI(t){let{workspace:e}=t;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?Bz(process.env.VERCEL_GIT_PREVIOUS_SHA)?(xe(`Found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(xe(`Previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""} is unreachable.`),j0(t)):(xe(`No previous deployments found for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),j0(t)):t.fallback?j0(t):{ref:"HEAD^",type:"headRelative"}}u();function BI(t){return t.task?(xe(`Using "${t.task}" as the task from the arguments`),`"${t.task}"`):(xe('Using "build" as the task as it was unspecified'),"build")}u();var jI=le(require("fs")),HI=le(require("path"));function $I(t){let{directory:e=process.cwd(),workspace:r}=t;if(r)return xe(`Using "${r}" as workspace from arguments`),r;let n=HI.default.join(e,"package.json");try{let i=jI.default.readFileSync(n,"utf8"),s=JSON.parse(i);return s.name?(xe(`Inferred "${s.name}" as workspace from "package.json"`),s.name):(or(`"${n}" is missing the "name" field (required).`),null)}catch{return or(`"${n}" could not be found. turbo-ignore inferencing failed`),null}}u();var H0=le(require("fs")),$0=le(require("path")),UI=require("json5");function GI(t,e){var s,o;let{turboVersion:r}=t;if(r)return xe(`Using turbo version "${r}" from arguments`),r;let n=$0.default.join(e,"package.json");try{let a=H0.default.readFileSync(n,"utf8"),c=JSON.parse(a),l=(s=c.dependencies)==null?void 0:s.turbo,f=(o=c.devDependencies)==null?void 0:o.turbo;if(r=l||f,r!==void 0)return xe(`Inferred turbo version "${r}" from "package.json"`),r}catch{return or(`"${n}" could not be read. turbo-ignore turbo version inference failed`),null}let i=$0.default.join(e,"turbo.json");try{let a=H0.default.readFileSync(i,"utf8"),c=(0,UI.parse)(a);return"tasks"in c?(xe('Inferred turbo version ^2 based on "tasks" in "turbo.json"'),"^2"):"pipeline"in c?(xe('Inferred turbo version ^1 based on "pipeline" in "turbo.json"'),"^1"):null}catch{return or(`"${i}" could not be read. turbo-ignore turbo version inference failed`),null}}u();var U0={MISSING_LOCKFILE:{regex:[/reading (?:yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/i],message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:[/run failed: We did not detect an in-use package manager for your project/i],message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:[/failed to resolve packages to run: commit HEAD\^ does not exist/i],message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},INVALID_COMPARISON:{regex:[/commit \S+ does not exist/i,/unknown revision/i,/invalid symmetric difference expression/i],message:"turbo-ignore could not complete - a ref or SHA is invalid. It could have been removed from the branch history via a force push, or this could be a shallow clone with insufficient history"}};function VI({err:t}){let e=Object.keys(U0).find(r=>{let{regex:n}=U0[r];return n.some(i=>i.test(t))});return e?{level:"warn",message:U0[e].message,code:e}:{level:"error",message:t,code:"UNKNOWN_ERROR"}}u();var WI=require("child_process"),jz=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],Hz=["[vercel deploy]","[vercel build]"];function $z({workspace:t}){return[`[vercel skip ${t}]`]}function Uz({workspace:t}){return[`[vercel deploy ${t}]`,`[vercel build ${t}]`]}var Gz=/\[vercel only .+\]/;function Vz({workspace:t}){return[`[vercel only ${t}]`]}function Wz(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,WI.execSync)("git show -s --format=%B").toString()}function zI({workspace:t}){var c;let e=Wz(),r=l=>e.includes(l),n=(c=Gz.exec(e))==null?void 0:c[0];if(n)return Vz({workspace:t}).find(l=>l===n)?{result:"deploy",scope:"workspace",reason:`Found commit message: ${n}`}:{result:"skip",scope:"workspace",reason:`Found commit message: ${n}`};let i=Uz({workspace:t}).find(r),s=$z({workspace:t}).find(r);if(i&&s)return{result:"conflict",scope:"workspace",reason:`Conflicting commit messages found: ${i} and ${s}`};if(i)return{result:"deploy",scope:"workspace",reason:`Found commit message: ${i}`};if(s)return{result:"skip",scope:"workspace",reason:`Found commit message: ${s}`};let o=Hz.find(r),a=jz.find(r);return o&&a?{result:"conflict",scope:"global",reason:`Conflicting commit messages found: ${o} and ${a}`}:o?{result:"deploy",scope:"global",reason:`Found commit message: ${o}`}:a?{result:"skip",scope:"global",reason:`Found commit message: ${a}`}:{result:"continue",scope:"global",reason:"No deploy or skip string found in commit message."}}function zz(t){var e,r,n,i;(e=t.telemetry)==null||e.trackOptionTask(t.task),(r=t.telemetry)==null||r.trackOptionFallback(t.fallback),(n=t.telemetry)==null||n.trackOptionDirectory(t.directory),(i=t.telemetry)==null||i.trackOptionMaxBuffer(t.maxBuffer)}function YI(){return B0("\u23ED Ignoring the change"),process.exit(0)}function qr(){return B0("\u2713 Proceeding with deployment"),process.exit(1)}function XI(t,e){var d,y;(d=e.telemetry)==null||d.trackCommandStatus({command:"ignore",status:"start"}),(y=e.telemetry)==null||y.trackArgumentWorkspace(t!==void 0),zz(e);let r={workspace:t,...e};if(xe(`Using Turborepo to determine if this project is affected by the commit...
88
+ `),e.directory){let g=ZI.default.resolve(e.directory);(0,JI.existsSync)(g)?r.directory=g:(q0(`Directory "${e.directory}" does not exist, using current directory`),r.directory=process.cwd())}else r.directory=process.cwd();if(process.env.TURBO_FORCE==="true")return xe("`TURBO_FORCE` detected"),qr();let n=hc(r.directory);if(!n)return or("Monorepo root not found. turbo-ignore inferencing failed"),qr();let i=$I(r);if(!i)return qr();let s=GI(r,n),o=BI(r),a=zI({workspace:i});if(a.result==="skip")return xe(a.reason),YI();if(a.result==="deploy")return xe(a.reason),qr();a.result==="conflict"&&xe(a.reason);let c=qI({workspace:i,fallback:r.fallback});if(!c)return qr();let f=`npx -y ${s?`turbo@${s}`:"turbo"} run ${o} --filter="${i}...[${c.ref}]" --dry=json`;xe(`Analyzing results of \`${f}\``);let h={cwd:n};e.maxBuffer&&(h.maxBuffer=e.maxBuffer),(0,KI.exec)(f,h,(g,E)=>{var v,A;if(g){let{level:P,code:D,message:ie}=VI({err:g.message});return P==="warn"?((v=e.telemetry)==null||v.trackCommandWarning(ie),q0(ie)):or(`${D}: ${g.message}`),qr()}try{let P=JSON.parse(E);if(P===null)return or(`Failed to parse JSON output from \`${f}\`.`),qr();let{packages:D}=P;return D?D.length>0?(D.length===1?xe(`This commit affects "${i}"`):xe(`This commit affects "${i}" and ${D.length-1} ${D.length-1===1?"dependency":"dependencies"} (${D.slice(1).join(", ")})`),qr()):(xe("This project and its dependencies are not affected"),YI()):(xe("Detected single package repo"),qr())}catch(P){return or(`Failed to parse JSON output from \`${f}\`.`),or(P),qr()}finally{(A=e.telemetry)==null||A.trackCommandStatus({command:"ignore",status:"end"})}})}var Pf,G0=new o_;G0.name(kf.name).description("Only proceed with deployment if the workspace or any of its dependencies have changed").hook("preAction",async(t,e)=>{let{telemetry:r}=await D0({packageInfo:{name:"turbo-ignore",version:kf.version}});e.addOption(new Jn("--telemetry").default(r).hideHelp()),Pf=r}).hook("postAction",async()=>{await(Pf==null?void 0:Pf.close())}).argument("[workspace]",'The workspace being deployed. If [workspace] is not provided, it will be inferred from the "name" field of the "package.json" located at the current working directory.').addOption(new Jn("-t, --task <name>","The task to execute").default("build")).addOption(new Jn("-f, --fallback <ref>","On Vercel, if no previously deployed SHA is available to compare against, fallback to comparing against the provided ref")).addOption(new Jn("-d, --directory <path>","The directory to run in (default: cwd)")).addOption(new Jn("--turbo-version <version>","Explicitly set which version of turbo to invoke")).addOption(new Jn("-b, --max-buffer <number>","maxBuffer for the child process in KB (default: 1024 KB)").argParser(t=>parseInt(t,10)*1024)).version(kf.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1).action(XI);M0(G0);G0.parse();
102
89
  /*!
103
90
  * fill-range <https://github.com/jonschlinkert/fill-range>
104
91
  *