factoriomod-debug 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -2
- package/dist/{chunk-RGWVOEC5.js → chunk-USWMQ2GW.js} +8 -6
- package/dist/fmtk-cli.js +61 -61
- package/dist/fmtk-vscode.js +1 -1
- package/package.json +10 -10
package/dist/fmtk-cli.js
CHANGED
|
@@ -3,119 +3,119 @@
|
|
|
3
3
|
import {createRequire} from 'module'
|
|
4
4
|
const require = createRequire(import.meta.url)
|
|
5
5
|
|
|
6
|
-
import{A as Nn,B as Wa,C as
|
|
7
|
-
`)}displayWidth(e){return
|
|
6
|
+
import{A as Nn,B as Wa,C as ob,D as Er,E as $a,F as ab,G as lb,I as ub,K as cb,L as fb,a as Jy,b as Xy,c as eb,d as Ua,e as tb,f as zs,g as Ze,h as zt,i as Sr,j as Ws,k as Ie,l as nb,m as vR,n as Mn,q as SR,r as za,s as qe,t as qf,u as Mf,v as Di,w as rb,x as ib,y as sb,z as $s}from"./chunk-USWMQ2GW.js";import{a as N,b as _R,c as x,d as Zy,e as Qe,f as DR,h as Pf,j as _i}from"./chunk-ZLQDNPPN.js";var Hs=x(Bf=>{"use strict";var Ha=class extends Error{constructor(e,n,r){super(r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=e,this.nestedError=void 0}},Nf=class extends Ha{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Bf.CommanderError=Ha;Bf.InvalidArgumentError=Nf});var Ga=x(Uf=>{"use strict";var{InvalidArgumentError:ER}=Hs(),jf=class{constructor(e,n){switch(this.description=n||"",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,n){return n===this.defaultValue||!Array.isArray(n)?[e]:n.concat(e)}default(e,n){return this.defaultValue=e,this.defaultValueDescription=n,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(n,r)=>{if(!this.argChoices.includes(n))throw new ER(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,r):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function kR(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Uf.Argument=jf;Uf.humanReadableArgName=kR});var $f=x(Wf=>{"use strict";var{humanReadableArgName:TR}=Ga(),zf=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let n=e.commands.filter(i=>!i._hidden),r=e._getHelpCommand();return r&&!r._hidden&&n.push(r),this.sortSubcommands&&n.sort((i,s)=>i.name().localeCompare(s.name())),n}compareOptions(e,n){let r=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return r(e).localeCompare(r(n))}visibleOptions(e){let n=e.options.filter(i=>!i.hidden),r=e._getHelpOption();if(r&&!r.hidden){let i=r.short&&e._findOption(r.short),s=r.long&&e._findOption(r.long);!i&&!s?n.push(r):r.long&&!s?n.push(e.createOption(r.long,r.description)):r.short&&!i&&n.push(e.createOption(r.short,r.description))}return this.sortOptions&&n.sort(this.compareOptions),n}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let n=[];for(let r=e.parent;r;r=r.parent){let i=r.options.filter(s=>!s.hidden);n.push(...i)}return this.sortOptions&&n.sort(this.compareOptions),n}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(n=>{n.description=n.description||e._argsDescription[n.name()]||""}),e.registeredArguments.find(n=>n.description)?e.registeredArguments:[]}subcommandTerm(e){let n=e.registeredArguments.map(r=>TR(r)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(n?" "+n:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,n){return n.visibleCommands(e).reduce((r,i)=>Math.max(r,this.displayWidth(n.styleSubcommandTerm(n.subcommandTerm(i)))),0)}longestOptionTermLength(e,n){return n.visibleOptions(e).reduce((r,i)=>Math.max(r,this.displayWidth(n.styleOptionTerm(n.optionTerm(i)))),0)}longestGlobalOptionTermLength(e,n){return n.visibleGlobalOptions(e).reduce((r,i)=>Math.max(r,this.displayWidth(n.styleOptionTerm(n.optionTerm(i)))),0)}longestArgumentTermLength(e,n){return n.visibleArguments(e).reduce((r,i)=>Math.max(r,this.displayWidth(n.styleArgumentTerm(n.argumentTerm(i)))),0)}commandUsage(e){let n=e._name;e._aliases[0]&&(n=n+"|"+e._aliases[0]);let r="";for(let i=e.parent;i;i=i.parent)r=i.name()+" "+r;return r+n+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let n=[];if(e.argChoices&&n.push(`choices: ${e.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&n.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&n.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&n.push(`env: ${e.envVar}`),n.length>0){let r=`(${n.join(", ")})`;return e.description?`${e.description} ${r}`:r}return e.description}argumentDescription(e){let n=[];if(e.argChoices&&n.push(`choices: ${e.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),e.defaultValue!==void 0&&n.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),n.length>0){let r=`(${n.join(", ")})`;return e.description?`${e.description} ${r}`:r}return e.description}formatItemList(e,n,r){return n.length===0?[]:[r.styleTitle(e),...n,""]}groupItems(e,n,r){let i=new Map;return e.forEach(s=>{let o=r(s);i.has(o)||i.set(o,[])}),n.forEach(s=>{let o=r(s);i.has(o)||i.set(o,[]),i.get(o).push(s)}),i}formatHelp(e,n){let r=n.padWidth(e,n),i=n.helpWidth??80;function s(f,h){return n.formatItem(f,r,h,n)}let o=[`${n.styleTitle("Usage:")} ${n.styleUsage(n.commandUsage(e))}`,""],a=n.commandDescription(e);a.length>0&&(o=o.concat([n.boxWrap(n.styleCommandDescription(a),i),""]));let l=n.visibleArguments(e).map(f=>s(n.styleArgumentTerm(n.argumentTerm(f)),n.styleArgumentDescription(n.argumentDescription(f))));if(o=o.concat(this.formatItemList("Arguments:",l,n)),this.groupItems(e.options,n.visibleOptions(e),f=>f.helpGroupHeading??"Options:").forEach((f,h)=>{let p=f.map(b=>s(n.styleOptionTerm(n.optionTerm(b)),n.styleOptionDescription(n.optionDescription(b))));o=o.concat(this.formatItemList(h,p,n))}),n.showGlobalOptions){let f=n.visibleGlobalOptions(e).map(h=>s(n.styleOptionTerm(n.optionTerm(h)),n.styleOptionDescription(n.optionDescription(h))));o=o.concat(this.formatItemList("Global Options:",f,n))}return this.groupItems(e.commands,n.visibleCommands(e),f=>f.helpGroup()||"Commands:").forEach((f,h)=>{let p=f.map(b=>s(n.styleSubcommandTerm(n.subcommandTerm(b)),n.styleSubcommandDescription(n.subcommandDescription(b))));o=o.concat(this.formatItemList(h,p,n))}),o.join(`
|
|
7
|
+
`)}displayWidth(e){return hb(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n==="[command]"?this.styleSubcommandText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleCommandText(n)).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleSubcommandText(n)).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,n){return Math.max(n.longestOptionTermLength(e,n),n.longestGlobalOptionTermLength(e,n),n.longestSubcommandTermLength(e,n),n.longestArgumentTermLength(e,n))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,n,r,i){let o=" ".repeat(2);if(!r)return o+e;let a=e.padEnd(n+e.length-i.displayWidth(e)),l=2,c=(this.helpWidth??80)-n-l-2,f;return c<this.minWidthToWrap||i.preformatted(r)?f=r:f=i.boxWrap(r,c).replace(/\n/g,`
|
|
8
8
|
`+" ".repeat(n+l)),o+a+" ".repeat(l)+f.replace(/\n/g,`
|
|
9
9
|
${o}`)}boxWrap(e,n){if(n<this.minWidthToWrap)return e;let r=e.split(/\r\n|\n/),i=/[\s]*[^\s]+/g,s=[];return r.forEach(o=>{let a=o.match(i);if(a===null){s.push("");return}let l=[a.shift()],u=this.displayWidth(l[0]);a.forEach(c=>{let f=this.displayWidth(c);if(u+f<=n){l.push(c),u+=f;return}s.push(l.join(""));let h=c.trimStart();l=[h],u=this.displayWidth(h)}),s.push(l.join(""))}),s.join(`
|
|
10
|
-
`)}};function
|
|
10
|
+
`)}};function hb(t){let e=/\x1b\[\d*(;\d*)*m/g;return t.replace(e,"")}Wf.Help=zf;Wf.stripColor=hb});var Yf=x(Vf=>{"use strict";var{InvalidArgumentError:AR}=Hs(),Hf=class{constructor(e,n){this.flags=e,this.description=n||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let r=CR(e);this.short=r.shortFlag,this.long=r.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,this.helpGroupHeading=void 0}default(e,n){return this.defaultValue=e,this.defaultValueDescription=n,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let n=e;return typeof e=="string"&&(n={[e]:!0}),this.implied=Object.assign(this.implied||{},n),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,n){return n===this.defaultValue||!Array.isArray(n)?[e]:n.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(n,r)=>{if(!this.argChoices.includes(n))throw new AR(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,r):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?pb(this.name().replace(/^no-/,"")):pb(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Gf=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,r)=>{this.positiveOptions.has(r)&&this.dualOptions.add(r)})}valueFromOption(e,n){let r=n.attributeName();if(!this.dualOptions.has(r))return!0;let i=this.negativeOptions.get(r).presetArg,s=i!==void 0?i:!1;return n.negate===(s===e)}};function pb(t){return t.split("-").reduce((e,n)=>e+n[0].toUpperCase()+n.slice(1))}function CR(t){let e,n,r=/^-[^-]$/,i=/^--[^-]/,s=t.split(/[ |,]+/).concat("guard");if(r.test(s[0])&&(e=s.shift()),i.test(s[0])&&(n=s.shift()),!e&&r.test(s[0])&&(e=s.shift()),!e&&i.test(s[0])&&(e=n,n=s.shift()),s[0].startsWith("-")){let o=s[0],a=`option creation failed due to '${o}' in option flags '${t}'`;throw/^-[^-][^-]/.test(o)?new Error(`${a}
|
|
11
11
|
- a short flag is a single dash and a single character
|
|
12
12
|
- either use a single dash and a single character (for a short flag)
|
|
13
13
|
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):r.test(o)?new Error(`${a}
|
|
14
14
|
- too many short flags`):i.test(o)?new Error(`${a}
|
|
15
15
|
- too many long flags`):new Error(`${a}
|
|
16
|
-
- unrecognised flag format`)}if(e===void 0&&n===void 0)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,longFlag:n}}Vf.Option=Hf;Vf.DualOptions=Gf});var
|
|
16
|
+
- unrecognised flag format`)}if(e===void 0&&n===void 0)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,longFlag:n}}Vf.Option=Hf;Vf.DualOptions=Gf});var mb=x(db=>{"use strict";function FR(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let n=[];for(let r=0;r<=t.length;r++)n[r]=[r];for(let r=0;r<=e.length;r++)n[0][r]=r;for(let r=1;r<=e.length;r++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[r-1]?s=0:s=1,n[i][r]=Math.min(n[i-1][r]+1,n[i][r-1]+1,n[i-1][r-1]+s),i>1&&r>1&&t[i-1]===e[r-2]&&t[i-2]===e[r-1]&&(n[i][r]=Math.min(n[i][r],n[i-2][r-2]+1))}return n[t.length][e.length]}function RR(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let n=t.startsWith("--");n&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let r=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=FR(t,o),l=Math.max(t.length,o.length);(l-a)/l>s&&(a<i?(i=a,r=[o]):a===i&&r.push(o))}),r.sort((o,a)=>o.localeCompare(a)),n&&(r=r.map(o=>`--${o}`)),r.length>1?`
|
|
17
17
|
(Did you mean one of ${r.join(", ")}?)`:r.length===1?`
|
|
18
|
-
(Did you mean ${r[0]}?)`:""}
|
|
19
|
-
- specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=e._name),(n.noHelp||n.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,n){return new
|
|
20
|
-
Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(n):this._lifeCycleHooks[e]=[n],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(e,n,r){this._exitCallback&&this._exitCallback(new Qf(e,n,r)),fe.exit(e)}action(e){let n=r=>{let i=this.registeredArguments.length,s=r.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=n,this}createOption(e,n){return new
|
|
21
|
-
- already used by option '${n.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let n=i=>[i.name()].concat(i.aliases()),r=n(e).find(i=>this._findCommand(i));if(r){let i=n(this._findCommand(r)).join("|"),s=n(e).join("|");throw new Error(`cannot add command '${s}' as already have command '${i}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let n=e.name(),r=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(r,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(r,e.defaultValue,"default");let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(r);s!==null&&e.parseArg?s=this._callParseArg(e,s,l,o):s!==null&&e.variadic&&(s=e._concatValue(s,l)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(r,s,a)};return this.on("option:"+n,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+n,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,n,r,i,s){if(typeof n=="object"&&n instanceof
|
|
18
|
+
(Did you mean ${r[0]}?)`:""}db.suggestSimilar=RR});var wb=x(Xf=>{"use strict";var OR=N("node:events").EventEmitter,Kf=N("node:child_process"),vn=N("node:path"),Va=N("node:fs"),fe=N("node:process"),{Argument:IR,humanReadableArgName:LR}=Ga(),{CommanderError:Qf}=Hs(),{Help:PR,stripColor:qR}=$f(),{Option:gb,DualOptions:MR}=Yf(),{suggestSimilar:yb}=mb(),Zf=class t extends OR{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,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._savedState=null,this._outputConfiguration={writeOut:n=>fe.stdout.write(n),writeErr:n=>fe.stderr.write(n),outputError:(n,r)=>r(n),getOutHelpWidth:()=>fe.stdout.isTTY?fe.stdout.columns:void 0,getErrHelpWidth:()=>fe.stderr.isTTY?fe.stderr.columns:void 0,getOutHasColors:()=>Jf()??(fe.stdout.isTTY&&fe.stdout.hasColors?.()),getErrHasColors:()=>Jf()??(fe.stderr.isTTY&&fe.stderr.hasColors?.()),stripColor:n=>qR(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,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}_getCommandAndAncestors(){let e=[];for(let n=this;n;n=n.parent)e.push(n);return e}command(e,n,r){let i=n,s=r;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return i&&(l.description(i),l._executableHandler=!0),s.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(s.noHelp||s.hidden),l._executableFile=s.executableFile||null,a&&l.arguments(a),this._registerCommand(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new t(e)}createHelp(){return Object.assign(new PR,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(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,n){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
19
|
+
- specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=e._name),(n.noHelp||n.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,n){return new IR(e,n)}argument(e,n,r,i){let s=this.createArgument(e,n);return typeof r=="function"?s.default(i).argParser(r):s.default(r),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(n=>{this.argument(n)}),this}addArgument(e){let n=this.registeredArguments.slice(-1)[0];if(n&&n.variadic)throw new Error(`only the last argument can be variadic '${n.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.registeredArguments.push(e),this}helpCommand(e,n){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let r=e??"help [command]",[,i,s]=r.match(/([^ ]+) *(.*)/),o=n??"display help for command",a=this.createCommand(i);return a.helpOption(!1),s&&a.arguments(s),o&&a.description(o),this._addImplicitHelpCommand=!0,this._helpCommand=a,(e||n)&&this._initCommandGroup(a),this}addHelpCommand(e,n){return typeof e!="object"?(this.helpCommand(e,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,n){let r=["preSubcommand","preAction","postAction"];if(!r.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
20
|
+
Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(n):this._lifeCycleHooks[e]=[n],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(e,n,r){this._exitCallback&&this._exitCallback(new Qf(e,n,r)),fe.exit(e)}action(e){let n=r=>{let i=this.registeredArguments.length,s=r.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=n,this}createOption(e,n){return new gb(e,n)}_callParseArg(e,n,r,i){try{return e.parseArg(n,r)}catch(s){if(s.code==="commander.invalidArgument"){let o=`${i} ${s.message}`;this.error(o,{exitCode:s.exitCode,code:s.code})}throw s}}_registerOption(e){let n=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(n){let r=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${r}'
|
|
21
|
+
- already used by option '${n.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let n=i=>[i.name()].concat(i.aliases()),r=n(e).find(i=>this._findCommand(i));if(r){let i=n(this._findCommand(r)).join("|"),s=n(e).join("|");throw new Error(`cannot add command '${s}' as already have command '${i}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let n=e.name(),r=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(r,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(r,e.defaultValue,"default");let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(r);s!==null&&e.parseArg?s=this._callParseArg(e,s,l,o):s!==null&&e.variadic&&(s=e._concatValue(s,l)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(r,s,a)};return this.on("option:"+n,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+n,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,n,r,i,s){if(typeof n=="object"&&n instanceof gb)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(n,r);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,u)=>{let c=a.exec(l);return c?c[0]:u},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,n,r,i){return this._optionEx({},e,n,r,i)}requiredOption(e,n,r,i){return this._optionEx({mandatory:!0},e,n,r,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){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,n){return this.setOptionValueWithSource(e,n,void 0)}setOptionValueWithSource(e,n,r){return this._storeOptionsAsProperties?this[e]=n:this._optionValues[e]=n,this._optionValueSources[e]=r,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let n;return this._getCommandAndAncestors().forEach(r=>{r.getOptionValueSource(e)!==void 0&&(n=r.getOptionValueSource(e))}),n}_prepareUserArgs(e,n){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(n=n||{},e===void 0&&n.from===void 0){fe.versions?.electron&&(n.from="electron");let i=fe.execArgv??[];(i.includes("-e")||i.includes("--eval")||i.includes("-p")||i.includes("--print"))&&(n.from="eval")}e===void 0&&(e=fe.argv),this.rawArgs=e.slice();let r;switch(n.from){case void 0:case"node":this._scriptPath=e[1],r=e.slice(2);break;case"electron":fe.defaultApp?(this._scriptPath=e[1],r=e.slice(2)):r=e.slice(1);break;case"user":r=e.slice(0);break;case"eval":r=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${n.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(e,n){this._prepareForParse();let r=this._prepareUserArgs(e,n);return this._parseCommand([],r),this}async parseAsync(e,n){this._prepareForParse();let r=this._prepareUserArgs(e,n);return await this._parseCommand([],r),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
22
22
|
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,n,r){if(Va.existsSync(e))return;let i=n?`searched for local subcommand relative to directory '${n}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",s=`'${e}' does not exist
|
|
23
23
|
- if '${r}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
24
24
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
25
|
-
- ${i}`;throw new Error(s)}_executeSubCommand(e,n){n=n.slice();let r=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(c,f){let h=vn.resolve(c,f);if(Va.existsSync(h))return h;if(i.includes(vn.extname(f)))return;let p=i.find(b=>Va.existsSync(`${h}${b}`));if(p)return`${h}${p}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=Va.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=vn.resolve(vn.dirname(c),a)}if(a){let c=s(a,o);if(!c&&!e._executableFile&&this._scriptPath){let f=vn.basename(this._scriptPath,vn.extname(this._scriptPath));f!==this._name&&(c=s(a,`${f}-${e._name}`))}o=c||o}r=i.includes(vn.extname(o));let l;fe.platform!=="win32"?r?(n.unshift(o),n=
|
|
25
|
+
- ${i}`;throw new Error(s)}_executeSubCommand(e,n){n=n.slice();let r=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(c,f){let h=vn.resolve(c,f);if(Va.existsSync(h))return h;if(i.includes(vn.extname(f)))return;let p=i.find(b=>Va.existsSync(`${h}${b}`));if(p)return`${h}${p}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=Va.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=vn.resolve(vn.dirname(c),a)}if(a){let c=s(a,o);if(!c&&!e._executableFile&&this._scriptPath){let f=vn.basename(this._scriptPath,vn.extname(this._scriptPath));f!==this._name&&(c=s(a,`${f}-${e._name}`))}o=c||o}r=i.includes(vn.extname(o));let l;fe.platform!=="win32"?r?(n.unshift(o),n=bb(fe.execArgv).concat(n),l=Kf.spawn(fe.argv[0],n,{stdio:"inherit"})):l=Kf.spawn(o,n,{stdio:"inherit"}):(this._checkForMissingExecutable(o,a,e._name),n.unshift(o),n=bb(fe.execArgv).concat(n),l=Kf.spawn(fe.execPath,n,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{fe.on(f,()=>{l.killed===!1&&l.exitCode===null&&l.kill(f)})});let u=this._exitCallback;l.on("close",c=>{c=c??1,u?u(new Qf(c,"commander.executeSubCommandAsync","(close)")):fe.exit(c)}),l.on("error",c=>{if(c.code==="ENOENT")this._checkForMissingExecutable(o,a,e._name);else if(c.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)fe.exit(1);else{let f=new Qf(1,"commander.executeSubCommandAsync","(error)");f.nestedError=c,u(f)}}),this.runningCommand=l}_dispatchSubcommand(e,n,r){let i=this._findCommand(e);i||this.help({error:!0}),i._prepareForParse();let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,n.concat(r));else return i._parseCommand(n,r)}),s}_dispatchHelpCommand(e){e||this.help();let n=this._findCommand(e);return n&&!n._executableHandler&&n.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,n)=>{e.required&&this.args[n]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(r,i,s)=>{let o=i;if(i!==null&&r.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${r.name()}'.`;o=this._callParseArg(r,i,s,a)}return o};this._checkNumberOfArguments();let n=[];this.registeredArguments.forEach((r,i)=>{let s=r.defaultValue;r.variadic?i<this.args.length?(s=this.args.slice(i),r.parseArg&&(s=s.reduce((o,a)=>e(r,a,o),r.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],r.parseArg&&(s=e(r,s,r.defaultValue))),n[i]=s}),this.processedArgs=n}_chainOrCall(e,n){return e&&e.then&&typeof e.then=="function"?e.then(()=>n()):n()}_chainOrCallHooks(e,n){let r=e,i=[];return this._getCommandAndAncestors().reverse().filter(s=>s._lifeCycleHooks[n]!==void 0).forEach(s=>{s._lifeCycleHooks[n].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),n==="postAction"&&i.reverse(),i.forEach(s=>{r=this._chainOrCall(r,()=>s.callback(s.hookedCommand,this))}),r}_chainOrCallSubCommandHook(e,n,r){let i=e;return this._lifeCycleHooks[r]!==void 0&&this._lifeCycleHooks[r].forEach(s=>{i=this._chainOrCall(i,()=>s(this,n))}),i}_parseCommand(e,n){let r=this.parseOptions(n);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(r.operands),n=r.unknown,this.args=e.concat(n),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),n);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(n),this._dispatchSubcommand(this._defaultCommandName,e,n);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{r.unknown.length>0&&this.unknownOption(r.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,n)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,n);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,n);this.listenerCount("command:*")?this.emit("command:*",e,n):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(n=>n._name===e||n._aliases.includes(e))}_findOption(e){return this.options.find(n=>n.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(n=>{n.mandatory&&e.getOptionValue(n.attributeName())===void 0&&e.missingMandatoryOptionValue(n)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(r=>{let i=r.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(r=>r.conflictsWith.length>0).forEach(r=>{let i=e.find(s=>r.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(r,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let n=[],r=[],i=n,s=e.slice();function o(u){return u.length>1&&u[0]==="-"}let a=u=>/^-\d*\.?\d+(e[+-]?\d+)?$/.test(u)?!this._getCommandAndAncestors().some(c=>c.options.map(f=>f.short).some(f=>/^-\d$/.test(f))):!1,l=null;for(;s.length;){let u=s.shift();if(u==="--"){i===r&&i.push(u),i.push(...s);break}if(l&&(!o(u)||a(u))){this.emit(`option:${l.name()}`,u);continue}if(l=null,o(u)){let c=this._findOption(u);if(c){if(c.required){let f=s.shift();f===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,f)}else if(c.optional){let f=null;s.length>0&&(!o(s[0])||a(s[0]))&&(f=s.shift()),this.emit(`option:${c.name()}`,f)}else this.emit(`option:${c.name()}`);l=c.variadic?c:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let c=this._findOption(`-${u[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,u.slice(2)):(this.emit(`option:${c.name()}`),s.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let c=u.indexOf("="),f=this._findOption(u.slice(0,c));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,u.slice(c+1));continue}}if(i===n&&o(u)&&!(this.commands.length===0&&a(u))&&(i=r),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&r.length===0){if(this._findCommand(u)){n.push(u),s.length>0&&r.push(...s);break}else if(this._getHelpCommand()&&u===this._getHelpCommand().name()){n.push(u),s.length>0&&n.push(...s);break}else if(this._defaultCommandName){r.push(u),s.length>0&&r.push(...s);break}}if(this._passThroughOptions){i.push(u),s.length>0&&i.push(...s);break}i.push(u)}return{operands:n,unknown:r}}opts(){if(this._storeOptionsAsProperties){let e={},n=this.options.length;for(let r=0;r<n;r++){let i=this.options[r].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,n)=>Object.assign(e,n.opts()),{})}error(e,n){this._outputConfiguration.outputError(`${e}
|
|
26
26
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
27
27
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
28
|
-
`),this.outputHelp({error:!0}));let r=n||{},i=r.exitCode||1,s=r.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in fe.env){let n=e.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,fe.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new
|
|
29
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,n){return e===void 0&&n===void 0?this._description:(this._description=e,n&&(this._argsDescription=n),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),e===n._name)throw new Error("Command alias can't be the same as its name");let r=this.parent?._findCommand(e);if(r){let i=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${i}'`)}return n._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(n=>this.alias(n)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(r=>
|
|
28
|
+
`),this.outputHelp({error:!0}));let r=n||{},i=r.exitCode||1,s=r.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in fe.env){let n=e.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,fe.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new MR(this.options),n=r=>this.getOptionValue(r)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(r));this.options.filter(r=>r.implied!==void 0&&n(r.attributeName())&&e.valueFromOption(this.getOptionValue(r.attributeName()),r)).forEach(r=>{Object.keys(r.implied).filter(i=>!n(i)).forEach(i=>{this.setOptionValueWithSource(i,r.implied[i],"implied")})})}missingArgument(e){let n=`error: missing required argument '${e}'`;this.error(n,{code:"commander.missingArgument"})}optionMissingArgument(e){let n=`error: option '${e.flags}' argument missing`;this.error(n,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let n=`error: required option '${e.flags}' not specified`;this.error(n,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,n){let r=o=>{let a=o.attributeName(),l=this.getOptionValue(a),u=this.options.find(f=>f.negate&&a===f.attributeName()),c=this.options.find(f=>!f.negate&&a===f.attributeName());return u&&(u.presetArg===void 0&&l===!1||u.presetArg!==void 0&&l===u.presetArg)?u:c||o},i=o=>{let a=r(o),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(n)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let n="";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);n=yb(e,i)}let r=`error: unknown option '${e}'${n}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let n=this.registeredArguments.length,r=n===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${n} argument${r} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],n="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),n=yb(e,i)}let r=`error: unknown command '${e}'${n}`;this.error(r,{code:"commander.unknownCommand"})}version(e,n,r){if(e===void 0)return this._version;this._version=e,n=n||"-V, --version",r=r||"output the version number";let i=this.createOption(n,r);return this._versionOptionName=i.attributeName(),this._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
29
|
+
`),this._exit(0,"commander.version",e)}),this}description(e,n){return e===void 0&&n===void 0?this._description:(this._description=e,n&&(this._argsDescription=n),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),e===n._name)throw new Error("Command alias can't be the same as its name");let r=this.parent?._findCommand(e);if(r){let i=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${i}'`)}return n._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(n=>this.alias(n)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(r=>LR(r));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?n:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}helpGroup(e){return e===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=e,this)}commandsGroup(e){return e===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=e,this)}optionsGroup(e){return e===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=vn.basename(e,vn.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let n=this.createHelp(),r=this._getOutputContext(e);n.prepareContext({error:r.error,helpWidth:r.helpWidth,outputHasColors:r.hasColors});let i=n.formatHelp(this,n);return r.hasColors?i:this._outputConfiguration.stripColor(i)}_getOutputContext(e){e=e||{};let n=!!e.error,r,i,s;return n?(r=a=>this._outputConfiguration.writeErr(a),i=this._outputConfiguration.getErrHasColors(),s=this._outputConfiguration.getErrHelpWidth()):(r=a=>this._outputConfiguration.writeOut(a),i=this._outputConfiguration.getOutHasColors(),s=this._outputConfiguration.getOutHelpWidth()),{error:n,write:a=>(i||(a=this._outputConfiguration.stripColor(a)),r(a)),hasColors:i,helpWidth:s}}outputHelp(e){let n;typeof e=="function"&&(n=e,e=void 0);let r=this._getOutputContext(e),i={error:r.error,write:r.write,command:this};this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let s=this.helpInformation({error:r.error});if(n&&(s=n(s),typeof s!="string"&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(s),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",i))}helpOption(e,n){return typeof e=="boolean"?(e?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??"-h, --help",n??"display help for command"),(e||n)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let n=Number(fe.exitCode??0);n===0&&e&&typeof e!="function"&&e.error&&(n=1),this._exit(n,"commander.help","(outputHelp)")}addHelpText(e,n){let r=["beforeAll","before","after","afterAll"];if(!r.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
30
30
|
Expecting one of '${r.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let o;typeof n=="function"?o=n({error:s.error,command:s.command}):o=n,o&&s.write(`${o}
|
|
31
|
-
`)}),this}_outputHelpIfRequested(e){let n=this._getHelpOption();n&&e.find(i=>n.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function wb(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let n,r="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?n=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=s[1],/^\d+$/.test(s[3])?i=s[3]:r=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=s[1],r=s[3],i=s[4]),n&&i!=="0"?`${n}=${r}:${parseInt(i)+1}`:e})}function Jf(){if(fe.env.NO_COLOR||fe.env.FORCE_COLOR==="0"||fe.env.FORCE_COLOR==="false")return!1;if(fe.env.FORCE_COLOR||fe.env.CLICOLOR_FORCE!==void 0)return!0}Xf.Command=Zf;Xf.useColor=Jf});var Sb=x(Et=>{"use strict";var{Argument:_b}=Ga(),{Command:eh}=xb(),{CommanderError:LR,InvalidArgumentError:Db}=$s(),{Help:PR}=$f(),{Option:vb}=Yf();Et.program=new eh;Et.createCommand=t=>new eh(t);Et.createOption=(t,e)=>new vb(t,e);Et.createArgument=(t,e)=>new _b(t,e);Et.Command=eh;Et.Option=vb;Et.Argument=_b;Et.Help=PR;Et.CommanderError=LR;Et.InvalidArgumentError=Db;Et.InvalidOptionArgumentError=Db});var Rb=x((NV,Fb)=>{"use strict";var jR=N("node:tty"),UR=jR?.WriteStream?.prototype?.hasColors?.()??!1,Q=(t,e)=>{if(!UR)return i=>i;let n=`\x1B[${t}m`,r=`\x1B[${e}m`;return i=>{let s=i+"",o=s.indexOf(r);if(o===-1)return n+s+r;let a=n,l=0;for(;o!==-1;)a+=s.slice(l,o)+n,l=o+r.length,o=s.indexOf(r,l);return a+=s.slice(l)+r,a}},K={};K.reset=Q(0,0);K.bold=Q(1,22);K.dim=Q(2,22);K.italic=Q(3,23);K.underline=Q(4,24);K.overline=Q(53,55);K.inverse=Q(7,27);K.hidden=Q(8,28);K.strikethrough=Q(9,29);K.black=Q(30,39);K.red=Q(31,39);K.green=Q(32,39);K.yellow=Q(33,39);K.blue=Q(34,39);K.magenta=Q(35,39);K.cyan=Q(36,39);K.white=Q(37,39);K.gray=Q(90,39);K.bgBlack=Q(40,49);K.bgRed=Q(41,49);K.bgGreen=Q(42,49);K.bgYellow=Q(43,49);K.bgBlue=Q(44,49);K.bgMagenta=Q(45,49);K.bgCyan=Q(46,49);K.bgWhite=Q(47,49);K.bgGray=Q(100,49);K.redBright=Q(91,39);K.greenBright=Q(92,39);K.yellowBright=Q(93,39);K.blueBright=Q(94,39);K.magentaBright=Q(95,39);K.cyanBright=Q(96,39);K.whiteBright=Q(97,39);K.bgRedBright=Q(101,49);K.bgGreenBright=Q(102,49);K.bgYellowBright=Q(103,49);K.bgBlueBright=Q(104,49);K.bgMagentaBright=Q(105,49);K.bgCyanBright=Q(106,49);K.bgWhiteBright=Q(107,49);Fb.exports=K});var Nb=x((iY,Mb)=>{"use strict";Mb.exports=KR;function YR(t){let e={defaultWidth:0,output:process.stdout,tty:N("tty")};return t?(Object.keys(e).forEach(function(n){t[n]||(t[n]=e[n])}),t):e}function KR(t){let e=YR(t);if(e.output.getWindowSize)return e.output.getWindowSize()[0]||e.defaultWidth;if(e.tty.getWindowSize)return e.tty.getWindowSize()[1]||e.defaultWidth;if(e.output.columns)return e.output.columns;if(process.env.CLI_WIDTH){let n=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(n)&&n!==0)return n}return e.defaultWidth}});var jb=x((sY,Bb)=>{"use strict";Bb.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 ih=x((oY,Ub)=>{"use strict";var QR=jb();Ub.exports=t=>typeof t=="string"?t.replace(QR(),""):t});var Wb=x((aY,sh)=>{"use strict";var zb=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);sh.exports=zb;sh.exports.default=zb});var Hb=x((lY,$b)=>{"use strict";$b.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Vb=x((uY,oh)=>{"use strict";var ZR=ih(),JR=Wb(),XR=Hb(),Gb=t=>{if(typeof t!="string"||t.length===0||(t=ZR(t),t.length===0))return 0;t=t.replace(XR()," ");let e=0;for(let n=0;n<t.length;n++){let r=t.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,e+=JR(r)?2:1)}return e};oh.exports=Gb;oh.exports.default=Gb});var Kb=x((cY,Yb)=>{"use strict";Yb.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 ah=x((fY,Zb)=>{"use strict";var Qs=Kb(),Qb={};for(let t of Object.keys(Qs))Qb[Qs[t]]=t;var U={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"]}};Zb.exports=U;for(let t of Object.keys(U)){if(!("channels"in U[t]))throw new Error("missing channels property: "+t);if(!("labels"in U[t]))throw new Error("missing channel labels property: "+t);if(U[t].labels.length!==U[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=U[t];delete U[t].channels,delete U[t].labels,Object.defineProperty(U[t],"channels",{value:e}),Object.defineProperty(U[t],"labels",{value:n})}U.rgb.hsl=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=s-i,a,l;s===i?a=0:e===s?a=(n-r)/o:n===s?a=2+(r-e)/o:r===s&&(a=4+(e-n)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};U.rgb.hsv=function(t){let e,n,r,i,s,o=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(o,a,l),c=u-Math.min(o,a,l),f=function(h){return(u-h)/6/c+1/2};return c===0?(i=0,s=0):(s=c/u,e=f(o),n=f(a),r=f(l),o===u?i=r-n:a===u?i=1/3+e-r:l===u&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};U.rgb.hwb=function(t){let e=t[0],n=t[1],r=t[2],i=U.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,s*100,r*100]};U.rgb.cmyk=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r),s=(1-e-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,a=(1-r-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function eO(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}U.rgb.keyword=function(t){let e=Qb[t];if(e)return e;let n=1/0,r;for(let i of Object.keys(Qs)){let s=Qs[i],o=eO(t,s);o<n&&(n=o,r=i)}return r};U.keyword.rgb=function(t){return Qs[t]};U.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=e*.4124+n*.3576+r*.1805,s=e*.2126+n*.7152+r*.0722,o=e*.0193+n*.1192+r*.9505;return[i*100,s*100,o*100]};U.rgb.lab=function(t){let e=U.rgb.xyz(t),n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*r-16,o=500*(n-r),a=200*(r-i);return[s,o,a]};U.hsl.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i,s,o;if(n===0)return o=r*255,[o,o,o];r<.5?i=r*(1+n):i=r+n-r*n;let a=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)s=e+1/3*-(u-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,l[u]=o*255;return l};U.hsl.hsv=function(t){let e=t[0],n=t[1]/100,r=t[2]/100,i=n,s=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=s<=1?s:2-s;let o=(r+n)/2,a=r===0?2*i/(s+i):2*n/(r+n);return[e,a*100,o*100]};U.hsv.rgb=function(t){let e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,i){case 0:return[r,l,o];case 1:return[a,r,o];case 2:return[o,r,l];case 3:return[o,a,r];case 4:return[l,o,r];case 5:return[r,o,a]}};U.hsv.hsl=function(t){let e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01),s,o;o=(2-n)*r;let a=(2-n)*i;return s=n*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};U.hwb.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i=n+r,s;i>1&&(n/=i,r/=i);let o=Math.floor(6*e),a=1-r;s=6*e-o,(o&1)!==0&&(s=1-s);let l=n+s*(a-n),u,c,f;switch(o){default:case 6:case 0:u=a,c=l,f=n;break;case 1:u=l,c=a,f=n;break;case 2:u=n,c=a,f=l;break;case 3:u=n,c=l,f=a;break;case 4:u=l,c=n,f=a;break;case 5:u=a,c=n,f=l;break}return[u*255,c*255,f*255]};U.cmyk.rgb=function(t){let e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),a=1-Math.min(1,r*(1-i)+i);return[s*255,o*255,a*255]};U.xyz.rgb=function(t){let e=t[0]/100,n=t[1]/100,r=t[2]/100,i,s,o;return i=e*3.2406+n*-1.5372+r*-.4986,s=e*-.9689+n*1.8758+r*.0415,o=e*.0557+n*-.204+r*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]};U.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let i=116*n-16,s=500*(e-n),o=200*(n-r);return[i,s,o]};U.lab.xyz=function(t){let e=t[0],n=t[1],r=t[2],i,s,o;s=(e+16)/116,i=n/500+s,o=s-r/200;let a=s**3,l=i**3,u=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};U.lab.lch=function(t){let e=t[0],n=t[1],r=t[2],i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(n*n+r*r);return[e,o,i]};U.lch.lab=function(t){let e=t[0],n=t[1],i=t[2]/360*2*Math.PI,s=n*Math.cos(i),o=n*Math.sin(i);return[e,s,o]};U.rgb.ansi16=function(t,e=null){let[n,r,i]=t,s=e===null?U.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(r/255)<<1|Math.round(n/255));return s===2&&(o+=60),o};U.hsv.ansi16=function(t){return U.rgb.ansi16(U.hsv.rgb(t),t[2])};U.rgb.ansi256=function(t){let e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};U.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 n=(~~(t>50)+1)*.5,r=(e&1)*n*255,i=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[r,i,s]};U.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,n=Math.floor(t/36)/5*255,r=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[n,r,i]};U.rgb.hex=function(t){let n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};U.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 n=e[0];e[0].length===3&&(n=n.split("").map(a=>a+a).join(""));let r=parseInt(n,16),i=r>>16&255,s=r>>8&255,o=r&255;return[i,s,o]};U.rgb.hcg=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),s=Math.min(Math.min(e,n),r),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===e?l=(n-r)/o%6:i===n?l=2+(r-e)/o:l=4+(e-n)/o,l/=6,l%=1,[l*360,o*100,a*100]};U.hsl.hcg=function(t){let e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],r*100,i*100]};U.hsv.hcg=function(t){let e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],r*100,i*100]};U.hcg.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};U.hcg.hsv=function(t){let e=t[1]/100,n=t[2]/100,r=e+n*(1-e),i=0;return r>0&&(i=e/r),[t[0],i*100,r*100]};U.hcg.hsl=function(t){let e=t[1]/100,r=t[2]/100*(1-e)+.5*e,i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],i*100,r*100]};U.hcg.hwb=function(t){let e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};U.hwb.hcg=function(t){let e=t[1]/100,r=1-t[2]/100,i=r-e,s=0;return i<1&&(s=(r-i)/(1-i)),[t[0],i*100,s*100]};U.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};U.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};U.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};U.gray.hsl=function(t){return[0,0,t[0]]};U.gray.hsv=U.gray.hsl;U.gray.hwb=function(t){return[0,100,t[0]]};U.gray.cmyk=function(t){return[0,0,0,t[0]]};U.gray.lab=function(t){return[t[0],0,0]};U.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r};U.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Xb=x((hY,Jb)=>{"use strict";var el=ah();function tO(){let t={},e=Object.keys(el);for(let n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}function nO(t){let e=tO(),n=[t];for(e[t].distance=0;n.length;){let r=n.pop(),i=Object.keys(el[r]);for(let s=i.length,o=0;o<s;o++){let a=i[o],l=e[a];l.distance===-1&&(l.distance=e[r].distance+1,l.parent=r,n.unshift(a))}}return e}function rO(t,e){return function(n){return e(t(n))}}function iO(t,e){let n=[e[t].parent,t],r=el[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),r=rO(el[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}Jb.exports=function(t){let e=nO(t),n={},r=Object.keys(e);for(let i=r.length,s=0;s<i;s++){let o=r[s];e[o].parent!==null&&(n[o]=iO(o,e))}return n}});var tw=x((pY,ew)=>{"use strict";var lh=ah(),sO=Xb(),Di={},oO=Object.keys(lh);function aO(t){let e=function(...n){let r=n[0];return r==null?r:(r.length>1&&(n=r),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function lO(t){let e=function(...n){let r=n[0];if(r==null)return r;r.length>1&&(n=r);let i=t(n);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}oO.forEach(t=>{Di[t]={},Object.defineProperty(Di[t],"channels",{value:lh[t].channels}),Object.defineProperty(Di[t],"labels",{value:lh[t].labels});let e=sO(t);Object.keys(e).forEach(r=>{let i=e[r];Di[t][r]=lO(i),Di[t][r].raw=aO(i)})});ew.exports=Di});var aw=x((dY,ow)=>{"use strict";var nw=(t,e)=>(...n)=>`\x1B[${t(...n)+e}m`,rw=(t,e)=>(...n)=>{let r=t(...n);return`\x1B[${38+e};5;${r}m`},iw=(t,e)=>(...n)=>{let r=t(...n);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`},tl=t=>t,sw=(t,e,n)=>[t,e,n],vi=(t,e,n)=>{Object.defineProperty(t,e,{get:()=>{let r=n();return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},uh,Si=(t,e,n,r)=>{uh===void 0&&(uh=tw());let i=r?10:0,s={};for(let[o,a]of Object.entries(uh)){let l=o==="ansi16"?"ansi":o;o===e?s[l]=t(n,i):typeof a=="object"&&(s[l]=t(a[e],i))}return s};function uO(){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[n,r]of Object.entries(e)){for(let[i,s]of Object.entries(r))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,n,{value:r,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",vi(e.color,"ansi",()=>Si(nw,"ansi16",tl,!1)),vi(e.color,"ansi256",()=>Si(rw,"ansi256",tl,!1)),vi(e.color,"ansi16m",()=>Si(iw,"rgb",sw,!1)),vi(e.bgColor,"ansi",()=>Si(nw,"ansi16",tl,!0)),vi(e.bgColor,"ansi256",()=>Si(rw,"ansi256",tl,!0)),vi(e.bgColor,"ansi16m",()=>Si(iw,"rgb",sw,!0)),e}Object.defineProperty(ow,"exports",{enumerable:!0,get:uO})});var cw=x((mY,uw)=>{"use strict";var Zs=Vb(),cO=ih(),fO=aw(),fh=new Set(["\x1B","\x9B"]),hO=39,lw=t=>`${fh.values().next().value}[${t}m`,pO=t=>t.split(" ").map(e=>Zs(e)),ch=(t,e,n)=>{let r=[...e],i=!1,s=Zs(cO(t[t.length-1]));for(let[o,a]of r.entries()){let l=Zs(a);if(s+l<=n?t[t.length-1]+=a:(t.push(a),s=0),fh.has(a))i=!0;else if(i&&a==="m"){i=!1;continue}i||(s+=l,s===n&&o<r.length-1&&(t.push(""),s=0))}!s&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},dO=t=>{let e=t.split(" "),n=e.length;for(;n>0&&!(Zs(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")},mO=(t,e,n={})=>{if(n.trim!==!1&&t.trim()==="")return"";let r="",i="",s,o=pO(t),a=[""];for(let[l,u]of t.split(" ").entries()){n.trim!==!1&&(a[a.length-1]=a[a.length-1].trimLeft());let c=Zs(a[a.length-1]);if(l!==0&&(c>=e&&(n.wordWrap===!1||n.trim===!1)&&(a.push(""),c=0),(c>0||n.trim===!1)&&(a[a.length-1]+=" ",c++)),n.hard&&o[l]>e){let f=e-c,h=1+Math.floor((o[l]-f-1)/e);Math.floor((o[l]-1)/e)<h&&a.push(""),ch(a,u,e);continue}if(c+o[l]>e&&c>0&&o[l]>0){if(n.wordWrap===!1&&c<e){ch(a,u,e);continue}a.push("")}if(c+o[l]>e&&n.wordWrap===!1){ch(a,u,e);continue}a[a.length-1]+=u}n.trim!==!1&&(a=a.map(dO)),r=a.join(`
|
|
32
|
-
`);for(let[l,u]of[...r].entries()){if(i+=u,
|
|
33
|
-
`?i+=
|
|
34
|
-
`&&(i+=
|
|
31
|
+
`)}),this}_outputHelpIfRequested(e){let n=this._getHelpOption();n&&e.find(i=>n.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function bb(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let n,r="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?n=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=s[1],/^\d+$/.test(s[3])?i=s[3]:r=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=s[1],r=s[3],i=s[4]),n&&i!=="0"?`${n}=${r}:${parseInt(i)+1}`:e})}function Jf(){if(fe.env.NO_COLOR||fe.env.FORCE_COLOR==="0"||fe.env.FORCE_COLOR==="false")return!1;if(fe.env.FORCE_COLOR||fe.env.CLICOLOR_FORCE!==void 0)return!0}Xf.Command=Zf;Xf.useColor=Jf});var vb=x(Et=>{"use strict";var{Argument:xb}=Ga(),{Command:eh}=wb(),{CommanderError:NR,InvalidArgumentError:_b}=Hs(),{Help:BR}=$f(),{Option:Db}=Yf();Et.program=new eh;Et.createCommand=t=>new eh(t);Et.createOption=(t,e)=>new Db(t,e);Et.createArgument=(t,e)=>new xb(t,e);Et.Command=eh;Et.Option=Db;Et.Argument=xb;Et.Help=BR;Et.CommanderError=NR;Et.InvalidArgumentError=_b;Et.InvalidOptionArgumentError=_b});var Fb=x((WV,Cb)=>{"use strict";var $R=N("node:tty"),HR=$R?.WriteStream?.prototype?.hasColors?.()??!1,Q=(t,e)=>{if(!HR)return i=>i;let n=`\x1B[${t}m`,r=`\x1B[${e}m`;return i=>{let s=i+"",o=s.indexOf(r);if(o===-1)return n+s+r;let a=n,l=0;for(;o!==-1;)a+=s.slice(l,o)+n,l=o+r.length,o=s.indexOf(r,l);return a+=s.slice(l)+r,a}},K={};K.reset=Q(0,0);K.bold=Q(1,22);K.dim=Q(2,22);K.italic=Q(3,23);K.underline=Q(4,24);K.overline=Q(53,55);K.inverse=Q(7,27);K.hidden=Q(8,28);K.strikethrough=Q(9,29);K.black=Q(30,39);K.red=Q(31,39);K.green=Q(32,39);K.yellow=Q(33,39);K.blue=Q(34,39);K.magenta=Q(35,39);K.cyan=Q(36,39);K.white=Q(37,39);K.gray=Q(90,39);K.bgBlack=Q(40,49);K.bgRed=Q(41,49);K.bgGreen=Q(42,49);K.bgYellow=Q(43,49);K.bgBlue=Q(44,49);K.bgMagenta=Q(45,49);K.bgCyan=Q(46,49);K.bgWhite=Q(47,49);K.bgGray=Q(100,49);K.redBright=Q(91,39);K.greenBright=Q(92,39);K.yellowBright=Q(93,39);K.blueBright=Q(94,39);K.magentaBright=Q(95,39);K.cyanBright=Q(96,39);K.whiteBright=Q(97,39);K.bgRedBright=Q(101,49);K.bgGreenBright=Q(102,49);K.bgYellowBright=Q(103,49);K.bgBlueBright=Q(104,49);K.bgMagentaBright=Q(105,49);K.bgCyanBright=Q(106,49);K.bgWhiteBright=Q(107,49);Cb.exports=K});var Mb=x((uY,qb)=>{"use strict";qb.exports=XR;function JR(t){let e={defaultWidth:0,output:process.stdout,tty:N("tty")};return t?(Object.keys(e).forEach(function(n){t[n]||(t[n]=e[n])}),t):e}function XR(t){let e=JR(t);if(e.output.getWindowSize)return e.output.getWindowSize()[0]||e.defaultWidth;if(e.tty.getWindowSize)return e.tty.getWindowSize()[1]||e.defaultWidth;if(e.output.columns)return e.output.columns;if(process.env.CLI_WIDTH){let n=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(n)&&n!==0)return n}return e.defaultWidth}});var Bb=x((cY,Nb)=>{"use strict";Nb.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 Ub=x((fY,jb)=>{"use strict";var eO=Bb();jb.exports=t=>typeof t=="string"?t.replace(eO(),""):t});var Wb=x((hY,ih)=>{"use strict";var zb=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);ih.exports=zb;ih.exports.default=zb});var Hb=x((pY,$b)=>{"use strict";$b.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Vb=x((dY,sh)=>{"use strict";var tO=Ub(),nO=Wb(),rO=Hb(),Gb=t=>{if(typeof t!="string"||t.length===0||(t=tO(t),t.length===0))return 0;t=t.replace(rO()," ");let e=0;for(let n=0;n<t.length;n++){let r=t.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,e+=nO(r)?2:1)}return e};sh.exports=Gb;sh.exports.default=Gb});var Kb=x((mY,Yb)=>{"use strict";Yb.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 Zb=x((gY,Qb)=>{"use strict";var iO=Kb();Qb.exports=t=>typeof t=="string"?t.replace(iO(),""):t});var Xb=x((yY,Jb)=>{"use strict";Jb.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 oh=x((bY,tw)=>{"use strict";var Qs=Xb(),ew={};for(let t of Object.keys(Qs))ew[Qs[t]]=t;var U={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"]}};tw.exports=U;for(let t of Object.keys(U)){if(!("channels"in U[t]))throw new Error("missing channels property: "+t);if(!("labels"in U[t]))throw new Error("missing channel labels property: "+t);if(U[t].labels.length!==U[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=U[t];delete U[t].channels,delete U[t].labels,Object.defineProperty(U[t],"channels",{value:e}),Object.defineProperty(U[t],"labels",{value:n})}U.rgb.hsl=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=s-i,a,l;s===i?a=0:e===s?a=(n-r)/o:n===s?a=2+(r-e)/o:r===s&&(a=4+(e-n)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?l=0:u<=.5?l=o/(s+i):l=o/(2-s-i),[a,l*100,u*100]};U.rgb.hsv=function(t){let e,n,r,i,s,o=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(o,a,l),c=u-Math.min(o,a,l),f=function(h){return(u-h)/6/c+1/2};return c===0?(i=0,s=0):(s=c/u,e=f(o),n=f(a),r=f(l),o===u?i=r-n:a===u?i=1/3+e-r:l===u&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};U.rgb.hwb=function(t){let e=t[0],n=t[1],r=t[2],i=U.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,s*100,r*100]};U.rgb.cmyk=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r),s=(1-e-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,a=(1-r-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function sO(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}U.rgb.keyword=function(t){let e=ew[t];if(e)return e;let n=1/0,r;for(let i of Object.keys(Qs)){let s=Qs[i],o=sO(t,s);o<n&&(n=o,r=i)}return r};U.keyword.rgb=function(t){return Qs[t]};U.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=e*.4124+n*.3576+r*.1805,s=e*.2126+n*.7152+r*.0722,o=e*.0193+n*.1192+r*.9505;return[i*100,s*100,o*100]};U.rgb.lab=function(t){let e=U.rgb.xyz(t),n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*r-16,o=500*(n-r),a=200*(r-i);return[s,o,a]};U.hsl.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i,s,o;if(n===0)return o=r*255,[o,o,o];r<.5?i=r*(1+n):i=r+n-r*n;let a=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)s=e+1/3*-(u-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,l[u]=o*255;return l};U.hsl.hsv=function(t){let e=t[0],n=t[1]/100,r=t[2]/100,i=n,s=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=s<=1?s:2-s;let o=(r+n)/2,a=r===0?2*i/(s+i):2*n/(r+n);return[e,a*100,o*100]};U.hsv.rgb=function(t){let e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,i){case 0:return[r,l,o];case 1:return[a,r,o];case 2:return[o,r,l];case 3:return[o,a,r];case 4:return[l,o,r];case 5:return[r,o,a]}};U.hsv.hsl=function(t){let e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01),s,o;o=(2-n)*r;let a=(2-n)*i;return s=n*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};U.hwb.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i=n+r,s;i>1&&(n/=i,r/=i);let o=Math.floor(6*e),a=1-r;s=6*e-o,(o&1)!==0&&(s=1-s);let l=n+s*(a-n),u,c,f;switch(o){default:case 6:case 0:u=a,c=l,f=n;break;case 1:u=l,c=a,f=n;break;case 2:u=n,c=a,f=l;break;case 3:u=n,c=l,f=a;break;case 4:u=l,c=n,f=a;break;case 5:u=a,c=n,f=l;break}return[u*255,c*255,f*255]};U.cmyk.rgb=function(t){let e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),a=1-Math.min(1,r*(1-i)+i);return[s*255,o*255,a*255]};U.xyz.rgb=function(t){let e=t[0]/100,n=t[1]/100,r=t[2]/100,i,s,o;return i=e*3.2406+n*-1.5372+r*-.4986,s=e*-.9689+n*1.8758+r*.0415,o=e*.0557+n*-.204+r*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]};U.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let i=116*n-16,s=500*(e-n),o=200*(n-r);return[i,s,o]};U.lab.xyz=function(t){let e=t[0],n=t[1],r=t[2],i,s,o;s=(e+16)/116,i=n/500+s,o=s-r/200;let a=s**3,l=i**3,u=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};U.lab.lch=function(t){let e=t[0],n=t[1],r=t[2],i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(n*n+r*r);return[e,o,i]};U.lch.lab=function(t){let e=t[0],n=t[1],i=t[2]/360*2*Math.PI,s=n*Math.cos(i),o=n*Math.sin(i);return[e,s,o]};U.rgb.ansi16=function(t,e=null){let[n,r,i]=t,s=e===null?U.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(r/255)<<1|Math.round(n/255));return s===2&&(o+=60),o};U.hsv.ansi16=function(t){return U.rgb.ansi16(U.hsv.rgb(t),t[2])};U.rgb.ansi256=function(t){let e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};U.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 n=(~~(t>50)+1)*.5,r=(e&1)*n*255,i=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[r,i,s]};U.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,n=Math.floor(t/36)/5*255,r=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[n,r,i]};U.rgb.hex=function(t){let n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};U.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 n=e[0];e[0].length===3&&(n=n.split("").map(a=>a+a).join(""));let r=parseInt(n,16),i=r>>16&255,s=r>>8&255,o=r&255;return[i,s,o]};U.rgb.hcg=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),s=Math.min(Math.min(e,n),r),o=i-s,a,l;return o<1?a=s/(1-o):a=0,o<=0?l=0:i===e?l=(n-r)/o%6:i===n?l=2+(r-e)/o:l=4+(e-n)/o,l/=6,l%=1,[l*360,o*100,a*100]};U.hsl.hcg=function(t){let e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],r*100,i*100]};U.hsv.hcg=function(t){let e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],r*100,i*100]};U.hcg.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,l=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};U.hcg.hsv=function(t){let e=t[1]/100,n=t[2]/100,r=e+n*(1-e),i=0;return r>0&&(i=e/r),[t[0],i*100,r*100]};U.hcg.hsl=function(t){let e=t[1]/100,r=t[2]/100*(1-e)+.5*e,i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],i*100,r*100]};U.hcg.hwb=function(t){let e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};U.hwb.hcg=function(t){let e=t[1]/100,r=1-t[2]/100,i=r-e,s=0;return i<1&&(s=(r-i)/(1-i)),[t[0],i*100,s*100]};U.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};U.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};U.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};U.gray.hsl=function(t){return[0,0,t[0]]};U.gray.hsv=U.gray.hsl;U.gray.hwb=function(t){return[0,100,t[0]]};U.gray.cmyk=function(t){return[0,0,0,t[0]]};U.gray.lab=function(t){return[t[0],0,0]};U.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r};U.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var rw=x((wY,nw)=>{"use strict";var el=oh();function oO(){let t={},e=Object.keys(el);for(let n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}function aO(t){let e=oO(),n=[t];for(e[t].distance=0;n.length;){let r=n.pop(),i=Object.keys(el[r]);for(let s=i.length,o=0;o<s;o++){let a=i[o],l=e[a];l.distance===-1&&(l.distance=e[r].distance+1,l.parent=r,n.unshift(a))}}return e}function lO(t,e){return function(n){return e(t(n))}}function uO(t,e){let n=[e[t].parent,t],r=el[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),r=lO(el[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}nw.exports=function(t){let e=aO(t),n={},r=Object.keys(e);for(let i=r.length,s=0;s<i;s++){let o=r[s];e[o].parent!==null&&(n[o]=uO(o,e))}return n}});var sw=x((xY,iw)=>{"use strict";var ah=oh(),cO=rw(),vi={},fO=Object.keys(ah);function hO(t){let e=function(...n){let r=n[0];return r==null?r:(r.length>1&&(n=r),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function pO(t){let e=function(...n){let r=n[0];if(r==null)return r;r.length>1&&(n=r);let i=t(n);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}fO.forEach(t=>{vi[t]={},Object.defineProperty(vi[t],"channels",{value:ah[t].channels}),Object.defineProperty(vi[t],"labels",{value:ah[t].labels});let e=cO(t);Object.keys(e).forEach(r=>{let i=e[r];vi[t][r]=pO(i),vi[t][r].raw=hO(i)})});iw.exports=vi});var fw=x((_Y,cw)=>{"use strict";var ow=(t,e)=>(...n)=>`\x1B[${t(...n)+e}m`,aw=(t,e)=>(...n)=>{let r=t(...n);return`\x1B[${38+e};5;${r}m`},lw=(t,e)=>(...n)=>{let r=t(...n);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`},tl=t=>t,uw=(t,e,n)=>[t,e,n],Si=(t,e,n)=>{Object.defineProperty(t,e,{get:()=>{let r=n();return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},lh,Ei=(t,e,n,r)=>{lh===void 0&&(lh=sw());let i=r?10:0,s={};for(let[o,a]of Object.entries(lh)){let l=o==="ansi16"?"ansi":o;o===e?s[l]=t(n,i):typeof a=="object"&&(s[l]=t(a[e],i))}return s};function dO(){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[n,r]of Object.entries(e)){for(let[i,s]of Object.entries(r))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,n,{value:r,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Si(e.color,"ansi",()=>Ei(ow,"ansi16",tl,!1)),Si(e.color,"ansi256",()=>Ei(aw,"ansi256",tl,!1)),Si(e.color,"ansi16m",()=>Ei(lw,"rgb",uw,!1)),Si(e.bgColor,"ansi",()=>Ei(ow,"ansi16",tl,!0)),Si(e.bgColor,"ansi256",()=>Ei(aw,"ansi256",tl,!0)),Si(e.bgColor,"ansi16m",()=>Ei(lw,"rgb",uw,!0)),e}Object.defineProperty(cw,"exports",{enumerable:!0,get:dO})});var dw=x((DY,pw)=>{"use strict";var Zs=Vb(),mO=Zb(),gO=fw(),ch=new Set(["\x1B","\x9B"]),yO=39,hw=t=>`${ch.values().next().value}[${t}m`,bO=t=>t.split(" ").map(e=>Zs(e)),uh=(t,e,n)=>{let r=[...e],i=!1,s=Zs(mO(t[t.length-1]));for(let[o,a]of r.entries()){let l=Zs(a);if(s+l<=n?t[t.length-1]+=a:(t.push(a),s=0),ch.has(a))i=!0;else if(i&&a==="m"){i=!1;continue}i||(s+=l,s===n&&o<r.length-1&&(t.push(""),s=0))}!s&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},wO=t=>{let e=t.split(" "),n=e.length;for(;n>0&&!(Zs(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")},xO=(t,e,n={})=>{if(n.trim!==!1&&t.trim()==="")return"";let r="",i="",s,o=bO(t),a=[""];for(let[l,u]of t.split(" ").entries()){n.trim!==!1&&(a[a.length-1]=a[a.length-1].trimLeft());let c=Zs(a[a.length-1]);if(l!==0&&(c>=e&&(n.wordWrap===!1||n.trim===!1)&&(a.push(""),c=0),(c>0||n.trim===!1)&&(a[a.length-1]+=" ",c++)),n.hard&&o[l]>e){let f=e-c,h=1+Math.floor((o[l]-f-1)/e);Math.floor((o[l]-1)/e)<h&&a.push(""),uh(a,u,e);continue}if(c+o[l]>e&&c>0&&o[l]>0){if(n.wordWrap===!1&&c<e){uh(a,u,e);continue}a.push("")}if(c+o[l]>e&&n.wordWrap===!1){uh(a,u,e);continue}a[a.length-1]+=u}n.trim!==!1&&(a=a.map(wO)),r=a.join(`
|
|
32
|
+
`);for(let[l,u]of[...r].entries()){if(i+=u,ch.has(u)){let f=parseFloat(/\d[^m]*/.exec(r.slice(l,l+4)));s=f===yO?null:f}let c=gO.codes.get(Number(s));s&&c&&(r[l+1]===`
|
|
33
|
+
`?i+=hw(c):u===`
|
|
34
|
+
`&&(i+=hw(s)))}return i};pw.exports=(t,e,n)=>String(t).normalize().replace(/\r\n/g,`
|
|
35
35
|
`).split(`
|
|
36
|
-
`).map(r=>
|
|
37
|
-
`)});var dw=x((_Y,pw)=>{"use strict";var gO=N("stream"),ph=class extends gO{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,n){return this._dest?this._dest[e]:this._src?this._src[e]:n}#n(e,...n){typeof this._dest?.[e]=="function"&&this._dest[e](...n),typeof this._src?.[e]=="function"&&this._src[e](...n)}get isTTY(){return this.#e!==null?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,n){return this._dest=e,super.pipe(e,n)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.slice(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#n("destroy",...e)}destroySoon(...e){return this.#n("destroySoon",...e)}close(...e){return this.#n("close",...e)}};pw.exports=ph});var _h=x((TY,xh)=>{"use strict";var ae=xh.exports;xh.exports.default=ae;var me="\x1B[",Js="\x1B]",Ei="\x07",sl=";",gw=process.env.TERM_PROGRAM==="Apple_Terminal";ae.cursorTo=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?me+(t+1)+"G":me+(e+1)+";"+(t+1)+"H"};ae.cursorMove=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let n="";return t<0?n+=me+-t+"D":t>0&&(n+=me+t+"C"),e<0?n+=me+-e+"A":e>0&&(n+=me+e+"B"),n};ae.cursorUp=(t=1)=>me+t+"A";ae.cursorDown=(t=1)=>me+t+"B";ae.cursorForward=(t=1)=>me+t+"C";ae.cursorBackward=(t=1)=>me+t+"D";ae.cursorLeft=me+"G";ae.cursorSavePosition=gw?"\x1B7":me+"s";ae.cursorRestorePosition=gw?"\x1B8":me+"u";ae.cursorGetPosition=me+"6n";ae.cursorNextLine=me+"E";ae.cursorPrevLine=me+"F";ae.cursorHide=me+"?25l";ae.cursorShow=me+"?25h";ae.eraseLines=t=>{let e="";for(let n=0;n<t;n++)e+=ae.eraseLine+(n<t-1?ae.cursorUp():"");return t&&(e+=ae.cursorLeft),e};ae.eraseEndLine=me+"K";ae.eraseStartLine=me+"1K";ae.eraseLine=me+"2K";ae.eraseDown=me+"J";ae.eraseUp=me+"1J";ae.eraseScreen=me+"2J";ae.scrollUp=me+"S";ae.scrollDown=me+"T";ae.clearScreen="\x1Bc";ae.clearTerminal=process.platform==="win32"?`${ae.eraseScreen}${me}0f`:`${ae.eraseScreen}${me}3J${me}H`;ae.beep=Ei;ae.link=(t,e)=>[Js,"8",sl,sl,e,Ei,t,Js,"8",sl,sl,Ei].join("");ae.image=(t,e={})=>{let n=`${Js}1337;File=inline=1`;return e.width&&(n+=`;width=${e.width}`),e.height&&(n+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+t.toString("base64")+Ei};ae.iTerm={setCwd:(t=process.cwd())=>`${Js}50;CurrentDir=${t}${Ei}`,annotation:(t,e={})=>{let n=`${Js}1337;`,r=typeof e.x<"u",i=typeof e.y<"u";if((r||i)&&!(r&&i&&typeof e.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replace(/\|/g,""),n+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?n+=(r?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):n+=t,n+Ei}}});var H0=x((Ste,$0)=>{"use strict";var Al=Object.prototype.hasOwnProperty,W0=Object.prototype.toString,M0=Object.defineProperty,N0=Object.getOwnPropertyDescriptor,B0=function(e){return typeof Array.isArray=="function"?Array.isArray(e):W0.call(e)==="[object Array]"},j0=function(e){if(!e||W0.call(e)!=="[object Object]")return!1;var n=Al.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Al.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var i;for(i in e);return typeof i>"u"||Al.call(e,i)},U0=function(e,n){M0&&n.name==="__proto__"?M0(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},z0=function(e,n){if(n==="__proto__")if(Al.call(e,n)){if(N0)return N0(e,n).value}else return;return e[n]};$0.exports=function t(){var e,n,r,i,s,o,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(e=arguments[l],e!=null)for(n in e)r=z0(a,n),i=z0(e,n),a!==i&&(c&&i&&(j0(i)||(s=B0(i)))?(s?(s=!1,o=r&&B0(r)?r:[]):o=r&&j0(r)?r:{},U0(a,{name:n,newValue:t(c,o,i)})):typeof i<"u"&&U0(a,{name:n,newValue:i}));return a}});var Il=x(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.thenable=Re.typedArray=Re.stringArray=Re.array=Re.func=Re.error=Re.number=Re.string=Re.boolean=void 0;function RL(t){return t===!0||t===!1}Re.boolean=RL;function X0(t){return typeof t=="string"||t instanceof String}Re.string=X0;function OL(t){return typeof t=="number"||t instanceof Number}Re.number=OL;function IL(t){return t instanceof Error}Re.error=IL;function ex(t){return typeof t=="function"}Re.func=ex;function tx(t){return Array.isArray(t)}Re.array=tx;function LL(t){return tx(t)&&t.every(e=>X0(e))}Re.stringArray=LL;function PL(t,e){return Array.isArray(t)&&t.every(e)}Re.typedArray=PL;function qL(t){return t&&ex(t.then)}Re.thenable=qL});var fp=x(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.generateUuid=At.parse=At.isUUID=At.v4=At.empty=void 0;var fo=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},ho=class t extends fo{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return t._oneOf(t._chars)}constructor(){super([t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))}};ho._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];ho._timeHighBits=["8","9","a","b"];At.empty=new fo("00000000-0000-0000-0000-000000000000");function nx(){return new ho}At.v4=nx;var ML=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function rx(t){return ML.test(t)}At.isUUID=rx;function NL(t){if(!rx(t))throw new Error("invalid uuid");return new fo(t)}At.parse=NL;function BL(){return nx().asHex()}At.generateUuid=BL});var ix=x(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.attachPartialResult=Kn.ProgressFeature=Kn.attachWorkDone=void 0;var Yn=Ie(),jL=fp(),Mr=class t{constructor(e,n){this._connection=e,this._token=n,t.Instances.set(this._token,this)}begin(e,n,r,i){let s={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Yn.WorkDoneProgress.type,this._token,s)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(Yn.WorkDoneProgress.type,this._token,r)}done(){t.Instances.delete(this._token),this._connection.sendProgress(Yn.WorkDoneProgress.type,this._token,{kind:"end"})}};Mr.Instances=new Map;var Ll=class extends Mr{constructor(e,n){super(e,n),this._source=new Yn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},po=class{constructor(){}begin(){}report(){}done(){}},Pl=class extends po{constructor(){super(),this._source=new Yn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function UL(t,e){if(e===void 0||e.workDoneToken===void 0)return new po;let n=e.workDoneToken;return delete e.workDoneToken,new Mr(t,n)}Kn.attachWorkDone=UL;var zL=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Yn.WorkDoneProgressCancelNotification.type,n=>{let r=Mr.Instances.get(n.token);(r instanceof Ll||r instanceof Pl)&&r.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new po:new Mr(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,jL.generateUuid)();return this.connection.sendRequest(Yn.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Ll(this.connection,e))}else return Promise.resolve(new Pl)}};Kn.ProgressFeature=zL;var hp;(function(t){t.type=new Yn.ProgressType})(hp||(hp={}));var pp=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(hp.type,this._token,e)}};function WL(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new pp(t,n)}Kn.attachPartialResult=WL});var sx=x(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.ConfigurationFeature=void 0;var $L=Ie(),HL=Il(),GL=t=>class extends t{getConfiguration(e){return e?HL.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest($L.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(e)?r:r[0]:Array.isArray(e)?[]:null)}};ql.ConfigurationFeature=GL});var ox=x(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.WorkspaceFoldersFeature=void 0;var Ml=Ie(),VL=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Ml.Emitter,this.connection.onNotification(Ml.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Ml.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Ml.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Nl.WorkspaceFoldersFeature=VL});var ax=x(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.CallHierarchyFeature=void 0;var dp=Ie(),YL=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(dp.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=dp.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=dp.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bl.CallHierarchyFeature=YL});var gp=x(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.SemanticTokensBuilder=Qn.SemanticTokensDiff=Qn.SemanticTokensFeature=void 0;var jl=Ie(),KL=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(jl.SemanticTokensRefreshRequest.type),on:e=>{let n=jl.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=jl.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=jl.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Qn.SemanticTokensFeature=KL;var Ul=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<e&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<e){let i=e-1,s=n-1;for(;i>=r&&s>=r&&this.originalSequence[i]===this.modifiedSequence[s];)i--,s--;(i<r||s<r)&&(i++,s++);let o=i-r+1,a=this.modifiedSequence.slice(r,s+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:o-1}]:[{start:r,deleteCount:o,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<e?[{start:r,deleteCount:e-r}]:[]}};Qn.SemanticTokensDiff=Ul;var mp=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,s){let o=e,a=n;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Ul(this._prevData,this._data).computeDiff()}:this.build()}};Qn.SemanticTokensBuilder=mp});var lx=x(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.ShowDocumentFeature=void 0;var QL=Ie(),ZL=t=>class extends t{showDocument(e){return this.connection.sendRequest(QL.ShowDocumentRequest.type,e)}};zl.ShowDocumentFeature=ZL});var ux=x(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.FileOperationsFeature=void 0;var Li=Ie(),JL=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(Li.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(Li.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(Li.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(Li.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(Li.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(Li.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};Wl.FileOperationsFeature=JL});var cx=x($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.LinkedEditingRangeFeature=void 0;var XL=Ie(),e3=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(XL.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};$l.LinkedEditingRangeFeature=e3});var fx=x(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.TypeHierarchyFeature=void 0;var yp=Ie(),t3=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(yp.TypeHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=yp.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:e=>{let n=yp.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Hl.TypeHierarchyFeature=t3});var px=x(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.InlineValueFeature=void 0;var hx=Ie(),n3=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(hx.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(hx.InlineValueRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};Gl.InlineValueFeature=n3});var mx=x(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.FoldingRangeFeature=void 0;var dx=Ie(),r3=t=>class extends t{get foldingRange(){return{refresh:()=>this.connection.sendRequest(dx.FoldingRangeRefreshRequest.type),on:e=>{let n=dx.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Vl.FoldingRangeFeature=r3});var gx=x(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.InlayHintFeature=void 0;var bp=Ie(),i3=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(bp.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(bp.InlayHintRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(bp.InlayHintResolveRequest.type,(n,r)=>e(n,r))}}};Yl.InlayHintFeature=i3});var yx=x(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.DiagnosticFeature=void 0;var mo=Ie(),s3=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(mo.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(mo.DocumentDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(mo.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(mo.WorkspaceDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(mo.WorkspaceDiagnosticRequest.partialResult,n)))}}};Kl.DiagnosticFeature=s3});var xp=x(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.TextDocuments=void 0;var Nr=Ie(),wp=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new Nr.Emitter,this._onDidOpen=new Nr.Emitter,this._onDidClose=new Nr.Emitter,this._onDidSave=new Nr.Emitter,this._onWillSave=new Nr.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=Nr.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(r=>{let i=r.textDocument,s=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,s);let o=Object.freeze({document:s});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)})),n.push(e.onDidChangeTextDocument(r=>{let i=r.textDocument,s=r.contentChanges;if(s.length===0)return;let{version:o}=i;if(o==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,s,o),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(e.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(e.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((r,i)=>{let s=this._syncedDocuments.get(r.textDocument.uri);return s!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:s,reason:r.reason}),i):[]})),n.push(e.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),Nr.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ql.TextDocuments=wp});var Dp=x(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.NotebookDocuments=Pi.NotebookSyncFeature=void 0;var Ct=Ie(),bx=xp(),o3=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(Ct.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(Ct.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(Ct.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(Ct.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};Pi.NotebookSyncFeature=o3;var Zl=class t{onDidOpenTextDocument(e){return this.openHandler=e,Ct.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,Ct.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,Ct.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return t.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return t.NULL_DISPOSE}onDidSaveTextDocument(){return t.NULL_DISPOSE}};Zl.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var _p=class{constructor(e){e instanceof bx.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new bx.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new Ct.Emitter,this._onDidChange=new Ct.Emitter,this._onDidSave=new Ct.Emitter,this._onDidClose=new Ct.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new Zl,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(e.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let s of i.cellTextDocuments)n.openTextDocument({textDocument:s});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(e.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);if(s===void 0)return;s.version=i.notebookDocument.version;let o=s.metadata,a=!1,l=i.change;l.metadata!==void 0&&(a=!0,s.metadata=l.metadata);let u=[],c=[],f=[],h=[];if(l.cells!==void 0){let g=l.cells;if(g.structure!==void 0){let m=g.structure.array;if(s.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),g.structure.didOpen!==void 0)for(let d of g.structure.didOpen)n.openTextDocument({textDocument:d}),u.push(d.uri);if(g.structure.didClose)for(let d of g.structure.didClose)n.closeTextDocument({textDocument:d}),c.push(d.uri)}if(g.data!==void 0){let m=new Map(g.data.map(d=>[d.document,d]));for(let d=0;d<=s.cells.length;d++){let w=m.get(s.cells[d].document);if(w!==void 0){let T=s.cells.splice(d,1,w);if(f.push({old:T[0],new:w}),m.delete(w.document),m.size===0)break}}}if(g.textContent!==void 0)for(let m of g.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),h.push(m.document.uri)}this.updateCellMap(s);let p={notebookDocument:s};a&&(p.metadata={old:o,new:s.metadata});let b=[];for(let g of u)b.push(this.getNotebookCell(g));let y=[];for(let g of c)y.push(this.getNotebookCell(g));let k=[];for(let g of h)k.push(this.getNotebookCell(g));(b.length>0||y.length>0||f.length>0||k.length>0)&&(p.cells={added:b,removed:y,changed:{data:f,textContent:k}}),(p.metadata!==void 0||p.cells!==void 0)&&this._onDidChange.fire(p)})),r.push(e.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);s!==void 0&&this._onDidSave.fire(s)})),r.push(e.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);if(s!==void 0){this._onDidClose.fire(s);for(let o of i.cellTextDocuments)n.closeTextDocument({textDocument:o});this.notebookDocuments.delete(i.notebookDocument.uri);for(let o of s.cells)this.notebookCellMap.delete(o.document)}})),Ct.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};Pi.NotebookDocuments=_p});var wx=x(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.MonikerFeature=void 0;var a3=Ie(),l3=t=>class extends t{get moniker(){return{on:e=>{let n=a3.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jl.MonikerFeature=l3});var Ap=x(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.createConnection=ue.combineFeatures=ue.combineNotebooksFeatures=ue.combineLanguagesFeatures=ue.combineWorkspaceFeatures=ue.combineWindowFeatures=ue.combineClientFeatures=ue.combineTracerFeatures=ue.combineTelemetryFeatures=ue.combineConsoleFeatures=ue._NotebooksImpl=ue._LanguagesImpl=ue.BulkUnregistration=ue.BulkRegistration=ue.ErrorMessageTracker=void 0;var q=Ie(),Ft=Il(),Sp=fp(),G=ix(),u3=sx(),c3=ox(),f3=ax(),h3=gp(),p3=lx(),d3=ux(),m3=cx(),g3=fx(),y3=px(),b3=mx(),w3=gx(),x3=yx(),_3=Dp(),D3=wx();function vp(t){if(t!==null)return t}var Ep=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};ue.ErrorMessageTracker=Ep;var Xl=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(q.MessageType.Error,e)}warn(e){this.send(q.MessageType.Warning,e)}info(e){this.send(q.MessageType.Info,e)}log(e){this.send(q.MessageType.Log,e)}debug(e){this.send(q.MessageType.Debug,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(q.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,q.RAL)().console.error("Sending log message failed")})}},kp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:q.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(vp)}showWarningMessage(e,...n){let r={type:q.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(vp)}showInformationMessage(e,...n){let r={type:q.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(vp)}},xx=(0,p3.ShowDocumentFeature)((0,G.ProgressFeature)(kp)),_x;(function(t){function e(){return new eu}t.create=e})(_x||(ue.BulkRegistration=_x={}));var eu=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=Ft.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Sp.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Dx;(function(t){function e(){return new go(void 0,[])}t.create=e})(Dx||(ue.BulkUnregistration=Dx={}));var go=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(q.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=Ft.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(q.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},s=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},tu=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof eu?this.registerMany(e):e instanceof go?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=Ft.string(n)?n:n.method,s=Sp.generateUuid(),o={registrations:[{id:s,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(q.RegistrationRequest.type,o).then(a=>(e.add({id:s,method:i}),e),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(e,n){let r=Ft.string(e)?e:e.method,i=Sp.generateUuid(),s={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(q.RegistrationRequest.type,s).then(o=>q.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),o=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(o)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(q.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(q.RegistrationRequest.type,n).then(()=>new go(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Tp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(q.ApplyWorkspaceEditRequest.type,r)}},vx=(0,d3.FileOperationsFeature)((0,c3.WorkspaceFoldersFeature)((0,u3.ConfigurationFeature)(Tp))),nu=class{constructor(){this._trace=q.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==q.Trace.Off&&this.connection.sendNotification(q.LogTraceNotification.type,{message:e,verbose:this._trace===q.Trace.Verbose?n:void 0}).catch(()=>{})}},ru=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(q.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},iu=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,G.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,G.attachPartialResult)(this.connection,n)}};ue._LanguagesImpl=iu;var Sx=(0,b3.FoldingRangeFeature)((0,D3.MonikerFeature)((0,x3.DiagnosticFeature)((0,w3.InlayHintFeature)((0,y3.InlineValueFeature)((0,g3.TypeHierarchyFeature)((0,m3.LinkedEditingRangeFeature)((0,h3.SemanticTokensFeature)((0,f3.CallHierarchyFeature)(iu))))))))),su=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,G.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,G.attachPartialResult)(this.connection,n)}};ue._NotebooksImpl=su;var Ex=(0,_3.NotebookSyncFeature)(su);function kx(t,e){return function(n){return e(t(n))}}ue.combineConsoleFeatures=kx;function Tx(t,e){return function(n){return e(t(n))}}ue.combineTelemetryFeatures=Tx;function Ax(t,e){return function(n){return e(t(n))}}ue.combineTracerFeatures=Ax;function Cx(t,e){return function(n){return e(t(n))}}ue.combineClientFeatures=Cx;function Fx(t,e){return function(n){return e(t(n))}}ue.combineWindowFeatures=Fx;function Rx(t,e){return function(n){return e(t(n))}}ue.combineWorkspaceFeatures=Rx;function Ox(t,e){return function(n){return e(t(n))}}ue.combineLanguagesFeatures=Ox;function Ix(t,e){return function(n){return e(t(n))}}ue.combineNotebooksFeatures=Ix;function v3(t,e){function n(i,s,o){return i&&s?o(i,s):i||s}return{__brand:"features",console:n(t.console,e.console,kx),tracer:n(t.tracer,e.tracer,Ax),telemetry:n(t.telemetry,e.telemetry,Tx),client:n(t.client,e.client,Cx),window:n(t.window,e.window,Fx),workspace:n(t.workspace,e.workspace,Rx),languages:n(t.languages,e.languages,Ox),notebooks:n(t.notebooks,e.notebooks,Ix)}}ue.combineFeatures=v3;function S3(t,e,n){let r=n&&n.console?new(n.console(Xl)):new Xl,i=t(r);r.rawAttach(i);let s=n&&n.tracer?new(n.tracer(nu)):new nu,o=n&&n.telemetry?new(n.telemetry(ru)):new ru,a=n&&n.client?new(n.client(tu)):new tu,l=n&&n.window?new(n.window(xx)):new xx,u=n&&n.workspace?new(n.workspace(vx)):new vx,c=n&&n.languages?new(n.languages(Sx)):new Sx,f=n&&n.notebooks?new(n.notebooks(Ex)):new Ex,h=[r,s,o,a,l,u,c,f];function p(m){return m instanceof Promise?m:Ft.thenable(m)?new Promise((d,w)=>{m.then(T=>d(T),T=>w(T))}):Promise.resolve(m)}let b,y,k,g={listen:()=>i.listen(),sendRequest:(m,...d)=>i.sendRequest(Ft.string(m)?m:m.method,...d),onRequest:(m,d)=>i.onRequest(m,d),sendNotification:(m,d)=>{let w=Ft.string(m)?m:m.method;return i.sendNotification(w,d)},onNotification:(m,d)=>i.onNotification(m,d),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(y=m,{dispose:()=>{y=void 0}}),onInitialized:m=>i.onNotification(q.InitializedNotification.type,m),onShutdown:m=>(b=m,{dispose:()=>{b=void 0}}),onExit:m=>(k=m,{dispose:()=>{k=void 0}}),get console(){return r},get telemetry(){return o},get tracer(){return s},get client(){return a},get window(){return l},get workspace(){return u},get languages(){return c},get notebooks(){return f},onDidChangeConfiguration:m=>i.onNotification(q.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(q.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(q.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(q.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(q.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(q.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(q.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(q.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(q.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(q.HoverRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onCompletion:m=>i.onRequest(q.CompletionRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCompletionResolve:m=>i.onRequest(q.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(q.SignatureHelpRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onDeclaration:m=>i.onRequest(q.DeclarationRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDefinition:m=>i.onRequest(q.DefinitionRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onTypeDefinition:m=>i.onRequest(q.TypeDefinitionRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onImplementation:m=>i.onRequest(q.ImplementationRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onReferences:m=>i.onRequest(q.ReferencesRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentHighlight:m=>i.onRequest(q.DocumentHighlightRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentSymbol:m=>i.onRequest(q.DocumentSymbolRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onWorkspaceSymbol:m=>i.onRequest(q.WorkspaceSymbolRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onWorkspaceSymbolResolve:m=>i.onRequest(q.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(q.CodeActionRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCodeActionResolve:m=>i.onRequest(q.CodeActionResolveRequest.type,(d,w)=>m(d,w)),onCodeLens:m=>i.onRequest(q.CodeLensRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCodeLensResolve:m=>i.onRequest(q.CodeLensResolveRequest.type,(d,w)=>m(d,w)),onDocumentFormatting:m=>i.onRequest(q.DocumentFormattingRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onDocumentRangeFormatting:m=>i.onRequest(q.DocumentRangeFormattingRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(q.DocumentOnTypeFormattingRequest.type,(d,w)=>m(d,w)),onRenameRequest:m=>i.onRequest(q.RenameRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onPrepareRename:m=>i.onRequest(q.PrepareRenameRequest.type,(d,w)=>m(d,w)),onDocumentLinks:m=>i.onRequest(q.DocumentLinkRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentLinkResolve:m=>i.onRequest(q.DocumentLinkResolveRequest.type,(d,w)=>m(d,w)),onDocumentColor:m=>i.onRequest(q.DocumentColorRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onColorPresentation:m=>i.onRequest(q.ColorPresentationRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onFoldingRanges:m=>i.onRequest(q.FoldingRangeRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onSelectionRanges:m=>i.onRequest(q.SelectionRangeRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onExecuteCommand:m=>i.onRequest(q.ExecuteCommandRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),dispose:()=>i.dispose()};for(let m of h)m.attach(g);return i.onRequest(q.InitializeRequest.type,m=>{e.initialize(m),Ft.string(m.trace)&&(s.trace=q.Trace.fromString(m.trace));for(let d of h)d.initialize(m.capabilities);if(y){let d=y(m,new q.CancellationTokenSource().token,(0,G.attachWorkDone)(i,m),void 0);return p(d).then(w=>{if(w instanceof q.ResponseError)return w;let T=w;T||(T={capabilities:{}});let v=T.capabilities;v||(v={},T.capabilities=v),v.textDocumentSync===void 0||v.textDocumentSync===null?v.textDocumentSync=Ft.number(g.__textDocumentSync)?g.__textDocumentSync:q.TextDocumentSyncKind.None:!Ft.number(v.textDocumentSync)&&!Ft.number(v.textDocumentSync.change)&&(v.textDocumentSync.change=Ft.number(g.__textDocumentSync)?g.__textDocumentSync:q.TextDocumentSyncKind.None);for(let S of h)S.fillServerCapabilities(v);return T})}else{let d={capabilities:{textDocumentSync:q.TextDocumentSyncKind.None}};for(let w of h)w.fillServerCapabilities(d.capabilities);return d}}),i.onRequest(q.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,b)return b(new q.CancellationTokenSource().token)}),i.onNotification(q.ExitNotification.type,()=>{try{k&&k()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(q.SetTraceNotification.type,m=>{s.trace=q.Trace.fromString(m.value)}),g}ue.createConnection=S3});var Lx=x(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.resolveModulePath=pt.FileSystem=pt.resolveGlobalYarnPath=pt.resolveGlobalNodePath=pt.resolve=pt.uriToFilePath=void 0;var E3=N("url"),$t=N("path"),Cp=N("fs"),Ip=N("child_process");function k3(t){let e=E3.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var r=0,i=n.length;r<i;r++)n[r]=decodeURIComponent(n[r]);if(process.platform==="win32"&&n.length>1){let s=n[0],o=n[1];s.length===0&&o.length>1&&o[1]===":"&&n.shift()}return $t.normalize(n.join("/"))}pt.uriToFilePath=k3;function Fp(){return process.platform==="win32"}function ou(t,e,n,r){let i="NODE_PATH",s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((o,a)=>{let l=process.env,u=Object.create(null);Object.keys(l).forEach(c=>u[c]=l[c]),e&&Cp.existsSync(e)&&(u[i]?u[i]=e+$t.delimiter+u[i]:u[i]=e,r&&r(`NODE_PATH value is: ${u[i]}`)),u.ELECTRON_RUN_AS_NODE="1";try{let c=(0,Ip.fork)("",[],{cwd:n,env:u,execArgv:["-e",s]});if(c.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}c.on("error",h=>{a(h)}),c.on("message",h=>{h.c==="r"&&(c.send({c:"e"}),h.s?o(h.r):a(new Error(`Failed to resolve module: ${t}`)))});let f={c:"rs",a:t};c.send(f)}catch(c){a(c)}})}pt.resolve=ou;function Rp(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(s=>n[s]=process.env[s]),n.NO_UPDATE_NOTIFIER="true";let r={encoding:"utf8",env:n};Fp()&&(e="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let s=(0,Ip.spawnSync)(e,["config","get","prefix"],r).stdout;if(!s){t&&t("'npm config get prefix' didn't return a value.");return}let o=s.trim();return t&&t(`'npm config get prefix' value is: ${o}`),o.length>0?Fp()?$t.join(o,"node_modules"):$t.join(o,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}pt.resolveGlobalNodePath=Rp;function T3(t){let e="yarn",n={encoding:"utf8"};Fp()&&(e="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=(0,Ip.spawnSync)(e,["global","dir","--json"],n),s=i.stdout;if(!s){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let o=s.trim().split(/\r?\n/);for(let a of o)try{let l=JSON.parse(a);if(l.type==="log")return $t.join(l.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",r)}}pt.resolveGlobalYarnPath=T3;var Op;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!Cp.existsSync(__filename.toUpperCase())||!Cp.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function r(i,s){return n()?$t.normalize(s).indexOf($t.normalize(i))===0:$t.normalize(s).toLowerCase().indexOf($t.normalize(i).toLowerCase())===0}t.isParent=r})(Op||(pt.FileSystem=Op={}));function A3(t,e,n,r){return n?($t.isAbsolute(n)||(n=$t.join(t,n)),ou(e,n,n,r).then(i=>Op.isParent(n,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>ou(e,Rp(r),t,r))):ou(e,Rp(r),t,r)}pt.resolveModulePath=A3});var Px=x(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.InlineCompletionFeature=void 0;var C3=Ie(),F3=t=>class extends t{get inlineCompletion(){return{on:e=>this.connection.onRequest(C3.InlineCompletionRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};au.InlineCompletionFeature=F3});var Nx=x(Xe=>{"use strict";var R3=Xe&&Xe.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Mx=Xe&&Xe.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&R3(e,t,n)};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.ProposedFeatures=Xe.NotebookDocuments=Xe.TextDocuments=Xe.SemanticTokensBuilder=void 0;var O3=gp();Object.defineProperty(Xe,"SemanticTokensBuilder",{enumerable:!0,get:function(){return O3.SemanticTokensBuilder}});var I3=Px();Mx(Ie(),Xe);var L3=xp();Object.defineProperty(Xe,"TextDocuments",{enumerable:!0,get:function(){return L3.TextDocuments}});var P3=Dp();Object.defineProperty(Xe,"NotebookDocuments",{enumerable:!0,get:function(){return P3.NotebookDocuments}});Mx(Ap(),Xe);var qx;(function(t){t.all={__brand:"features",languages:I3.InlineCompletionFeature}})(qx||(Xe.ProposedFeatures=qx={}))});var $x=x(Rt=>{"use strict";var q3=Rt&&Rt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),zx=Rt&&Rt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&q3(e,t,n)};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createConnection=Rt.Files=void 0;var Bx=N("node:util"),Lp=Il(),M3=Ap(),yo=Lx(),Br=rb();zx(rb(),Rt);zx(Nx(),Rt);var jx;(function(t){t.uriToFilePath=yo.uriToFilePath,t.resolveGlobalNodePath=yo.resolveGlobalNodePath,t.resolveGlobalYarnPath=yo.resolveGlobalYarnPath,t.resolve=yo.resolve,t.resolveModulePath=yo.resolveModulePath})(jx||(Rt.Files=jx={}));var Ux;function lu(){if(Ux!==void 0)try{Ux.end()}catch{}}var qi=!1,Wx;function N3(){let t="--clientProcessId";function e(n){try{let r=parseInt(n);isNaN(r)||(Wx=setInterval(()=>{try{process.kill(r,0)}catch{lu(),process.exit(qi?0:1)}},3e3))}catch{}}for(let n=2;n<process.argv.length;n++){let r=process.argv[n];if(r===t&&n+1<process.argv.length){e(process.argv[n+1]);return}else{let i=r.split("=");i[0]===t&&e(i[1])}}}N3();var B3={initialize:t=>{let e=t.processId;Lp.number(e)&&Wx===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(qi?0:1)}},3e3)},get shutdownReceived(){return qi},set shutdownReceived(t){qi=t},exit:t=>{lu(),process.exit(t)}};function j3(t,e,n,r){let i,s,o,a;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),Br.ConnectionStrategy.is(t)||Br.ConnectionOptions.is(t)?a=t:(s=t,o=e,a=n),U3(s,o,a,i)}Rt.createConnection=j3;function U3(t,e,n,r){let i=!1;if(!t&&!e&&process.argv.length>2){let l,u,c=process.argv.slice(2);for(let f=0;f<c.length;f++){let h=c[f];if(h==="--node-ipc"){t=new Br.IPCMessageReader(process),e=new Br.IPCMessageWriter(process);break}else if(h==="--stdio"){i=!0,t=process.stdin,e=process.stdout;break}else if(h==="--socket"){l=parseInt(c[f+1]);break}else if(h==="--pipe"){u=c[f+1];break}else{var s=h.split("=");if(s[0]==="--socket"){l=parseInt(s[1]);break}else if(s[0]==="--pipe"){u=s[1];break}}}if(l){let f=(0,Br.createServerSocketTransport)(l);t=f[0],e=f[1]}else if(u){let f=(0,Br.createServerPipeTransport)(u);t=f[0],e=f[1]}}var o="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+o);if(!e)throw new Error("Connection output stream is not set. "+o);if(Lp.func(t.read)&&Lp.func(t.on)){let l=t;l.on("end",()=>{lu(),process.exit(qi?0:1)}),l.on("close",()=>{lu(),process.exit(qi?0:1)})}let a=l=>{let u=(0,Br.createProtocolConnection)(t,e,l,n);return i&&z3(l),u};return(0,M3.createConnection)(a,B3,r)}function z3(t){function e(r){return r.map(i=>typeof i=="string"?i:(0,Bx.inspect)(i)).join(" ")}let n=new Map;console.assert=function(i,...s){if(!i)if(s.length===0)t.error("Assertion failed");else{let[o,...a]=s;t.error(`Assertion failed: ${o} ${e(a)}`)}},console.count=function(i="default"){let s=String(i),o=n.get(s)??0;o+=1,n.set(s,o),t.log(`${s}: ${s}`)},console.countReset=function(i){i===void 0?n.clear():n.delete(String(i))},console.debug=function(...i){t.log(e(i))},console.dir=function(i,s){t.log((0,Bx.inspect)(i,s))},console.log=function(...i){t.log(e(i))},console.error=function(...i){t.error(e(i))},console.trace=function(...i){let s=new Error().stack.replace(/(.+\n){2}/,""),o="Trace";i.length!==0&&(o+=`: ${e(i)}`),t.log(`${o}
|
|
38
|
-
${s}`)},console.warn=function(...i){t.warn(e(i))}}});var
|
|
39
|
-
`,n);n=i===-1?t.length:i}else if(r!==-1&&t[n]==="/"&&t[n+1]==="*"){let i=t.indexOf("*/",n);i!==-1?(n=i+2,r=t.indexOf("*/",n)):(e+=t[n],n++)}else e+=t[n],n++;return e}function
|
|
36
|
+
`).map(r=>xO(r,e,n)).join(`
|
|
37
|
+
`)});var bw=x((AY,yw)=>{"use strict";var _O=N("stream"),hh=class extends _O{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,n){return this._dest?this._dest[e]:this._src?this._src[e]:n}#n(e,...n){typeof this._dest?.[e]=="function"&&this._dest[e](...n),typeof this._src?.[e]=="function"&&this._src[e](...n)}get isTTY(){return this.#e!==null?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,n){return this._dest=e,super.pipe(e,n)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.slice(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#n("destroy",...e)}destroySoon(...e){return this.#n("destroySoon",...e)}close(...e){return this.#n("close",...e)}};yw.exports=hh});var xh=x((LY,wh)=>{"use strict";var ae=wh.exports;wh.exports.default=ae;var me="\x1B[",Js="\x1B]",ki="\x07",sl=";",xw=process.env.TERM_PROGRAM==="Apple_Terminal";ae.cursorTo=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?me+(t+1)+"G":me+(e+1)+";"+(t+1)+"H"};ae.cursorMove=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let n="";return t<0?n+=me+-t+"D":t>0&&(n+=me+t+"C"),e<0?n+=me+-e+"A":e>0&&(n+=me+e+"B"),n};ae.cursorUp=(t=1)=>me+t+"A";ae.cursorDown=(t=1)=>me+t+"B";ae.cursorForward=(t=1)=>me+t+"C";ae.cursorBackward=(t=1)=>me+t+"D";ae.cursorLeft=me+"G";ae.cursorSavePosition=xw?"\x1B7":me+"s";ae.cursorRestorePosition=xw?"\x1B8":me+"u";ae.cursorGetPosition=me+"6n";ae.cursorNextLine=me+"E";ae.cursorPrevLine=me+"F";ae.cursorHide=me+"?25l";ae.cursorShow=me+"?25h";ae.eraseLines=t=>{let e="";for(let n=0;n<t;n++)e+=ae.eraseLine+(n<t-1?ae.cursorUp():"");return t&&(e+=ae.cursorLeft),e};ae.eraseEndLine=me+"K";ae.eraseStartLine=me+"1K";ae.eraseLine=me+"2K";ae.eraseDown=me+"J";ae.eraseUp=me+"1J";ae.eraseScreen=me+"2J";ae.scrollUp=me+"S";ae.scrollDown=me+"T";ae.clearScreen="\x1Bc";ae.clearTerminal=process.platform==="win32"?`${ae.eraseScreen}${me}0f`:`${ae.eraseScreen}${me}3J${me}H`;ae.beep=ki;ae.link=(t,e)=>[Js,"8",sl,sl,e,ki,t,Js,"8",sl,sl,ki].join("");ae.image=(t,e={})=>{let n=`${Js}1337;File=inline=1`;return e.width&&(n+=`;width=${e.width}`),e.height&&(n+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+t.toString("base64")+ki};ae.iTerm={setCwd:(t=process.cwd())=>`${Js}50;CurrentDir=${t}${ki}`,annotation:(t,e={})=>{let n=`${Js}1337;`,r=typeof e.x<"u",i=typeof e.y<"u";if((r||i)&&!(r&&i&&typeof e.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replace(/\|/g,""),n+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?n+=(r?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):n+=t,n+ki}}});var K0=x((Rte,Y0)=>{"use strict";var Al=Object.prototype.hasOwnProperty,V0=Object.prototype.toString,U0=Object.defineProperty,z0=Object.getOwnPropertyDescriptor,W0=function(e){return typeof Array.isArray=="function"?Array.isArray(e):V0.call(e)==="[object Array]"},$0=function(e){if(!e||V0.call(e)!=="[object Object]")return!1;var n=Al.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Al.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var i;for(i in e);return typeof i>"u"||Al.call(e,i)},H0=function(e,n){U0&&n.name==="__proto__"?U0(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},G0=function(e,n){if(n==="__proto__")if(Al.call(e,n)){if(z0)return z0(e,n).value}else return;return e[n]};Y0.exports=function t(){var e,n,r,i,s,o,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(e=arguments[l],e!=null)for(n in e)r=G0(a,n),i=G0(e,n),a!==i&&(c&&i&&($0(i)||(s=W0(i)))?(s?(s=!1,o=r&&W0(r)?r:[]):o=r&&$0(r)?r:{},H0(a,{name:n,newValue:t(c,o,i)})):typeof i<"u"&&H0(a,{name:n,newValue:i}));return a}});var Il=x(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.thenable=Re.typedArray=Re.stringArray=Re.array=Re.func=Re.error=Re.number=Re.string=Re.boolean=void 0;function qL(t){return t===!0||t===!1}Re.boolean=qL;function rx(t){return typeof t=="string"||t instanceof String}Re.string=rx;function ML(t){return typeof t=="number"||t instanceof Number}Re.number=ML;function NL(t){return t instanceof Error}Re.error=NL;function ix(t){return typeof t=="function"}Re.func=ix;function sx(t){return Array.isArray(t)}Re.array=sx;function BL(t){return sx(t)&&t.every(e=>rx(e))}Re.stringArray=BL;function jL(t,e){return Array.isArray(t)&&t.every(e)}Re.typedArray=jL;function UL(t){return t&&ix(t.then)}Re.thenable=UL});var cp=x(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.generateUuid=At.parse=At.isUUID=At.v4=At.empty=void 0;var fo=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},ho=class t extends fo{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return t._oneOf(t._chars)}constructor(){super([t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))}};ho._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];ho._timeHighBits=["8","9","a","b"];At.empty=new fo("00000000-0000-0000-0000-000000000000");function ox(){return new ho}At.v4=ox;var zL=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ax(t){return zL.test(t)}At.isUUID=ax;function WL(t){if(!ax(t))throw new Error("invalid uuid");return new fo(t)}At.parse=WL;function $L(){return ox().asHex()}At.generateUuid=$L});var lx=x(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.attachPartialResult=Kn.ProgressFeature=Kn.attachWorkDone=void 0;var Yn=Ie(),HL=cp(),Nr=class t{constructor(e,n){this._connection=e,this._token=n,t.Instances.set(this._token,this)}begin(e,n,r,i){let s={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Yn.WorkDoneProgress.type,this._token,s)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(Yn.WorkDoneProgress.type,this._token,r)}done(){t.Instances.delete(this._token),this._connection.sendProgress(Yn.WorkDoneProgress.type,this._token,{kind:"end"})}};Nr.Instances=new Map;var Ll=class extends Nr{constructor(e,n){super(e,n),this._source=new Yn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},po=class{constructor(){}begin(){}report(){}done(){}},Pl=class extends po{constructor(){super(),this._source=new Yn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function GL(t,e){if(e===void 0||e.workDoneToken===void 0)return new po;let n=e.workDoneToken;return delete e.workDoneToken,new Nr(t,n)}Kn.attachWorkDone=GL;var VL=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Yn.WorkDoneProgressCancelNotification.type,n=>{let r=Nr.Instances.get(n.token);(r instanceof Ll||r instanceof Pl)&&r.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new po:new Nr(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,HL.generateUuid)();return this.connection.sendRequest(Yn.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Ll(this.connection,e))}else return Promise.resolve(new Pl)}};Kn.ProgressFeature=VL;var fp;(function(t){t.type=new Yn.ProgressType})(fp||(fp={}));var hp=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(fp.type,this._token,e)}};function YL(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new hp(t,n)}Kn.attachPartialResult=YL});var ux=x(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.ConfigurationFeature=void 0;var KL=Ie(),QL=Il(),ZL=t=>class extends t{getConfiguration(e){return e?QL.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(KL.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(e)?r:r[0]:Array.isArray(e)?[]:null)}};ql.ConfigurationFeature=ZL});var cx=x(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.WorkspaceFoldersFeature=void 0;var Ml=Ie(),JL=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Ml.Emitter,this.connection.onNotification(Ml.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Ml.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Ml.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Nl.WorkspaceFoldersFeature=JL});var fx=x(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.CallHierarchyFeature=void 0;var pp=Ie(),XL=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(pp.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=pp.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=pp.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bl.CallHierarchyFeature=XL});var mp=x(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.SemanticTokensBuilder=Qn.SemanticTokensDiff=Qn.SemanticTokensFeature=void 0;var jl=Ie(),e3=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(jl.SemanticTokensRefreshRequest.type),on:e=>{let n=jl.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=jl.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=jl.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Qn.SemanticTokensFeature=e3;var Ul=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<e&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<e){let i=e-1,s=n-1;for(;i>=r&&s>=r&&this.originalSequence[i]===this.modifiedSequence[s];)i--,s--;(i<r||s<r)&&(i++,s++);let o=i-r+1,a=this.modifiedSequence.slice(r,s+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:o-1}]:[{start:r,deleteCount:o,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<e?[{start:r,deleteCount:e-r}]:[]}};Qn.SemanticTokensDiff=Ul;var dp=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,s){let o=e,a=n;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Ul(this._prevData,this._data).computeDiff()}:this.build()}};Qn.SemanticTokensBuilder=dp});var hx=x(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.ShowDocumentFeature=void 0;var t3=Ie(),n3=t=>class extends t{showDocument(e){return this.connection.sendRequest(t3.ShowDocumentRequest.type,e)}};zl.ShowDocumentFeature=n3});var px=x(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.FileOperationsFeature=void 0;var Pi=Ie(),r3=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(Pi.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(Pi.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(Pi.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(Pi.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(Pi.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(Pi.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};Wl.FileOperationsFeature=r3});var dx=x($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.LinkedEditingRangeFeature=void 0;var i3=Ie(),s3=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(i3.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};$l.LinkedEditingRangeFeature=s3});var mx=x(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.TypeHierarchyFeature=void 0;var gp=Ie(),o3=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(gp.TypeHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=gp.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:e=>{let n=gp.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Hl.TypeHierarchyFeature=o3});var yx=x(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.InlineValueFeature=void 0;var gx=Ie(),a3=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(gx.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(gx.InlineValueRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};Gl.InlineValueFeature=a3});var wx=x(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.FoldingRangeFeature=void 0;var bx=Ie(),l3=t=>class extends t{get foldingRange(){return{refresh:()=>this.connection.sendRequest(bx.FoldingRangeRefreshRequest.type),on:e=>{let n=bx.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Vl.FoldingRangeFeature=l3});var xx=x(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.InlayHintFeature=void 0;var yp=Ie(),u3=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(yp.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(yp.InlayHintRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(yp.InlayHintResolveRequest.type,(n,r)=>e(n,r))}}};Yl.InlayHintFeature=u3});var _x=x(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.DiagnosticFeature=void 0;var mo=Ie(),c3=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(mo.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(mo.DocumentDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(mo.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(mo.WorkspaceDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(mo.WorkspaceDiagnosticRequest.partialResult,n)))}}};Kl.DiagnosticFeature=c3});var wp=x(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.TextDocuments=void 0;var Br=Ie(),bp=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new Br.Emitter,this._onDidOpen=new Br.Emitter,this._onDidClose=new Br.Emitter,this._onDidSave=new Br.Emitter,this._onWillSave=new Br.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=Br.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(r=>{let i=r.textDocument,s=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,s);let o=Object.freeze({document:s});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)})),n.push(e.onDidChangeTextDocument(r=>{let i=r.textDocument,s=r.contentChanges;if(s.length===0)return;let{version:o}=i;if(o==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,s,o),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(e.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(e.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((r,i)=>{let s=this._syncedDocuments.get(r.textDocument.uri);return s!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:s,reason:r.reason}),i):[]})),n.push(e.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),Br.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ql.TextDocuments=bp});var _p=x(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.NotebookDocuments=qi.NotebookSyncFeature=void 0;var Ct=Ie(),Dx=wp(),f3=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(Ct.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(Ct.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(Ct.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(Ct.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};qi.NotebookSyncFeature=f3;var Zl=class t{onDidOpenTextDocument(e){return this.openHandler=e,Ct.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,Ct.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,Ct.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return t.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return t.NULL_DISPOSE}onDidSaveTextDocument(){return t.NULL_DISPOSE}};Zl.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var xp=class{constructor(e){e instanceof Dx.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new Dx.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new Ct.Emitter,this._onDidChange=new Ct.Emitter,this._onDidSave=new Ct.Emitter,this._onDidClose=new Ct.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new Zl,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(e.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let s of i.cellTextDocuments)n.openTextDocument({textDocument:s});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(e.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);if(s===void 0)return;s.version=i.notebookDocument.version;let o=s.metadata,a=!1,l=i.change;l.metadata!==void 0&&(a=!0,s.metadata=l.metadata);let u=[],c=[],f=[],h=[];if(l.cells!==void 0){let g=l.cells;if(g.structure!==void 0){let m=g.structure.array;if(s.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),g.structure.didOpen!==void 0)for(let d of g.structure.didOpen)n.openTextDocument({textDocument:d}),u.push(d.uri);if(g.structure.didClose)for(let d of g.structure.didClose)n.closeTextDocument({textDocument:d}),c.push(d.uri)}if(g.data!==void 0){let m=new Map(g.data.map(d=>[d.document,d]));for(let d=0;d<=s.cells.length;d++){let w=m.get(s.cells[d].document);if(w!==void 0){let T=s.cells.splice(d,1,w);if(f.push({old:T[0],new:w}),m.delete(w.document),m.size===0)break}}}if(g.textContent!==void 0)for(let m of g.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),h.push(m.document.uri)}this.updateCellMap(s);let p={notebookDocument:s};a&&(p.metadata={old:o,new:s.metadata});let b=[];for(let g of u)b.push(this.getNotebookCell(g));let y=[];for(let g of c)y.push(this.getNotebookCell(g));let k=[];for(let g of h)k.push(this.getNotebookCell(g));(b.length>0||y.length>0||f.length>0||k.length>0)&&(p.cells={added:b,removed:y,changed:{data:f,textContent:k}}),(p.metadata!==void 0||p.cells!==void 0)&&this._onDidChange.fire(p)})),r.push(e.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);s!==void 0&&this._onDidSave.fire(s)})),r.push(e.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let s=this.notebookDocuments.get(i.notebookDocument.uri);if(s!==void 0){this._onDidClose.fire(s);for(let o of i.cellTextDocuments)n.closeTextDocument({textDocument:o});this.notebookDocuments.delete(i.notebookDocument.uri);for(let o of s.cells)this.notebookCellMap.delete(o.document)}})),Ct.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};qi.NotebookDocuments=xp});var vx=x(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.MonikerFeature=void 0;var h3=Ie(),p3=t=>class extends t{get moniker(){return{on:e=>{let n=h3.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jl.MonikerFeature=p3});var Tp=x(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.createConnection=ue.combineFeatures=ue.combineNotebooksFeatures=ue.combineLanguagesFeatures=ue.combineWorkspaceFeatures=ue.combineWindowFeatures=ue.combineClientFeatures=ue.combineTracerFeatures=ue.combineTelemetryFeatures=ue.combineConsoleFeatures=ue._NotebooksImpl=ue._LanguagesImpl=ue.BulkUnregistration=ue.BulkRegistration=ue.ErrorMessageTracker=void 0;var q=Ie(),Ft=Il(),vp=cp(),G=lx(),d3=ux(),m3=cx(),g3=fx(),y3=mp(),b3=hx(),w3=px(),x3=dx(),_3=mx(),D3=yx(),v3=wx(),S3=xx(),E3=_x(),k3=_p(),T3=vx();function Dp(t){if(t!==null)return t}var Sp=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};ue.ErrorMessageTracker=Sp;var Xl=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(q.MessageType.Error,e)}warn(e){this.send(q.MessageType.Warning,e)}info(e){this.send(q.MessageType.Info,e)}log(e){this.send(q.MessageType.Log,e)}debug(e){this.send(q.MessageType.Debug,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(q.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,q.RAL)().console.error("Sending log message failed")})}},Ep=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:q.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(Dp)}showWarningMessage(e,...n){let r={type:q.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(Dp)}showInformationMessage(e,...n){let r={type:q.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(Dp)}},Sx=(0,b3.ShowDocumentFeature)((0,G.ProgressFeature)(Ep)),Ex;(function(t){function e(){return new eu}t.create=e})(Ex||(ue.BulkRegistration=Ex={}));var eu=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=Ft.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=vp.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},kx;(function(t){function e(){return new go(void 0,[])}t.create=e})(kx||(ue.BulkUnregistration=kx={}));var go=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(q.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=Ft.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(q.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},s=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},tu=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof eu?this.registerMany(e):e instanceof go?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=Ft.string(n)?n:n.method,s=vp.generateUuid(),o={registrations:[{id:s,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(q.RegistrationRequest.type,o).then(a=>(e.add({id:s,method:i}),e),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(e,n){let r=Ft.string(e)?e:e.method,i=vp.generateUuid(),s={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(q.RegistrationRequest.type,s).then(o=>q.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),o=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(o)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(q.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(q.RegistrationRequest.type,n).then(()=>new go(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},kp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(q.ApplyWorkspaceEditRequest.type,r)}},Tx=(0,w3.FileOperationsFeature)((0,m3.WorkspaceFoldersFeature)((0,d3.ConfigurationFeature)(kp))),nu=class{constructor(){this._trace=q.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==q.Trace.Off&&this.connection.sendNotification(q.LogTraceNotification.type,{message:e,verbose:this._trace===q.Trace.Verbose?n:void 0}).catch(()=>{})}},ru=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(q.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},iu=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,G.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,G.attachPartialResult)(this.connection,n)}};ue._LanguagesImpl=iu;var Ax=(0,v3.FoldingRangeFeature)((0,T3.MonikerFeature)((0,E3.DiagnosticFeature)((0,S3.InlayHintFeature)((0,D3.InlineValueFeature)((0,_3.TypeHierarchyFeature)((0,x3.LinkedEditingRangeFeature)((0,y3.SemanticTokensFeature)((0,g3.CallHierarchyFeature)(iu))))))))),su=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,G.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,G.attachPartialResult)(this.connection,n)}};ue._NotebooksImpl=su;var Cx=(0,k3.NotebookSyncFeature)(su);function Fx(t,e){return function(n){return e(t(n))}}ue.combineConsoleFeatures=Fx;function Rx(t,e){return function(n){return e(t(n))}}ue.combineTelemetryFeatures=Rx;function Ox(t,e){return function(n){return e(t(n))}}ue.combineTracerFeatures=Ox;function Ix(t,e){return function(n){return e(t(n))}}ue.combineClientFeatures=Ix;function Lx(t,e){return function(n){return e(t(n))}}ue.combineWindowFeatures=Lx;function Px(t,e){return function(n){return e(t(n))}}ue.combineWorkspaceFeatures=Px;function qx(t,e){return function(n){return e(t(n))}}ue.combineLanguagesFeatures=qx;function Mx(t,e){return function(n){return e(t(n))}}ue.combineNotebooksFeatures=Mx;function A3(t,e){function n(i,s,o){return i&&s?o(i,s):i||s}return{__brand:"features",console:n(t.console,e.console,Fx),tracer:n(t.tracer,e.tracer,Ox),telemetry:n(t.telemetry,e.telemetry,Rx),client:n(t.client,e.client,Ix),window:n(t.window,e.window,Lx),workspace:n(t.workspace,e.workspace,Px),languages:n(t.languages,e.languages,qx),notebooks:n(t.notebooks,e.notebooks,Mx)}}ue.combineFeatures=A3;function C3(t,e,n){let r=n&&n.console?new(n.console(Xl)):new Xl,i=t(r);r.rawAttach(i);let s=n&&n.tracer?new(n.tracer(nu)):new nu,o=n&&n.telemetry?new(n.telemetry(ru)):new ru,a=n&&n.client?new(n.client(tu)):new tu,l=n&&n.window?new(n.window(Sx)):new Sx,u=n&&n.workspace?new(n.workspace(Tx)):new Tx,c=n&&n.languages?new(n.languages(Ax)):new Ax,f=n&&n.notebooks?new(n.notebooks(Cx)):new Cx,h=[r,s,o,a,l,u,c,f];function p(m){return m instanceof Promise?m:Ft.thenable(m)?new Promise((d,w)=>{m.then(T=>d(T),T=>w(T))}):Promise.resolve(m)}let b,y,k,g={listen:()=>i.listen(),sendRequest:(m,...d)=>i.sendRequest(Ft.string(m)?m:m.method,...d),onRequest:(m,d)=>i.onRequest(m,d),sendNotification:(m,d)=>{let w=Ft.string(m)?m:m.method;return i.sendNotification(w,d)},onNotification:(m,d)=>i.onNotification(m,d),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(y=m,{dispose:()=>{y=void 0}}),onInitialized:m=>i.onNotification(q.InitializedNotification.type,m),onShutdown:m=>(b=m,{dispose:()=>{b=void 0}}),onExit:m=>(k=m,{dispose:()=>{k=void 0}}),get console(){return r},get telemetry(){return o},get tracer(){return s},get client(){return a},get window(){return l},get workspace(){return u},get languages(){return c},get notebooks(){return f},onDidChangeConfiguration:m=>i.onNotification(q.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(q.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(q.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(q.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(q.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(q.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(q.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(q.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(q.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(q.HoverRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onCompletion:m=>i.onRequest(q.CompletionRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCompletionResolve:m=>i.onRequest(q.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(q.SignatureHelpRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onDeclaration:m=>i.onRequest(q.DeclarationRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDefinition:m=>i.onRequest(q.DefinitionRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onTypeDefinition:m=>i.onRequest(q.TypeDefinitionRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onImplementation:m=>i.onRequest(q.ImplementationRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onReferences:m=>i.onRequest(q.ReferencesRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentHighlight:m=>i.onRequest(q.DocumentHighlightRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentSymbol:m=>i.onRequest(q.DocumentSymbolRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onWorkspaceSymbol:m=>i.onRequest(q.WorkspaceSymbolRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onWorkspaceSymbolResolve:m=>i.onRequest(q.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(q.CodeActionRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCodeActionResolve:m=>i.onRequest(q.CodeActionResolveRequest.type,(d,w)=>m(d,w)),onCodeLens:m=>i.onRequest(q.CodeLensRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCodeLensResolve:m=>i.onRequest(q.CodeLensResolveRequest.type,(d,w)=>m(d,w)),onDocumentFormatting:m=>i.onRequest(q.DocumentFormattingRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onDocumentRangeFormatting:m=>i.onRequest(q.DocumentRangeFormattingRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(q.DocumentOnTypeFormattingRequest.type,(d,w)=>m(d,w)),onRenameRequest:m=>i.onRequest(q.RenameRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),onPrepareRename:m=>i.onRequest(q.PrepareRenameRequest.type,(d,w)=>m(d,w)),onDocumentLinks:m=>i.onRequest(q.DocumentLinkRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentLinkResolve:m=>i.onRequest(q.DocumentLinkResolveRequest.type,(d,w)=>m(d,w)),onDocumentColor:m=>i.onRequest(q.DocumentColorRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onColorPresentation:m=>i.onRequest(q.ColorPresentationRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onFoldingRanges:m=>i.onRequest(q.FoldingRangeRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onSelectionRanges:m=>i.onRequest(q.SelectionRangeRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onExecuteCommand:m=>i.onRequest(q.ExecuteCommandRequest.type,(d,w)=>m(d,w,(0,G.attachWorkDone)(i,d),void 0)),dispose:()=>i.dispose()};for(let m of h)m.attach(g);return i.onRequest(q.InitializeRequest.type,m=>{e.initialize(m),Ft.string(m.trace)&&(s.trace=q.Trace.fromString(m.trace));for(let d of h)d.initialize(m.capabilities);if(y){let d=y(m,new q.CancellationTokenSource().token,(0,G.attachWorkDone)(i,m),void 0);return p(d).then(w=>{if(w instanceof q.ResponseError)return w;let T=w;T||(T={capabilities:{}});let D=T.capabilities;D||(D={},T.capabilities=D),D.textDocumentSync===void 0||D.textDocumentSync===null?D.textDocumentSync=Ft.number(g.__textDocumentSync)?g.__textDocumentSync:q.TextDocumentSyncKind.None:!Ft.number(D.textDocumentSync)&&!Ft.number(D.textDocumentSync.change)&&(D.textDocumentSync.change=Ft.number(g.__textDocumentSync)?g.__textDocumentSync:q.TextDocumentSyncKind.None);for(let S of h)S.fillServerCapabilities(D);return T})}else{let d={capabilities:{textDocumentSync:q.TextDocumentSyncKind.None}};for(let w of h)w.fillServerCapabilities(d.capabilities);return d}}),i.onRequest(q.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,b)return b(new q.CancellationTokenSource().token)}),i.onNotification(q.ExitNotification.type,()=>{try{k&&k()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(q.SetTraceNotification.type,m=>{s.trace=q.Trace.fromString(m.value)}),g}ue.createConnection=C3});var Nx=x(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.resolveModulePath=pt.FileSystem=pt.resolveGlobalYarnPath=pt.resolveGlobalNodePath=pt.resolve=pt.uriToFilePath=void 0;var F3=N("url"),$t=N("path"),Ap=N("fs"),Op=N("child_process");function R3(t){let e=F3.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var r=0,i=n.length;r<i;r++)n[r]=decodeURIComponent(n[r]);if(process.platform==="win32"&&n.length>1){let s=n[0],o=n[1];s.length===0&&o.length>1&&o[1]===":"&&n.shift()}return $t.normalize(n.join("/"))}pt.uriToFilePath=R3;function Cp(){return process.platform==="win32"}function ou(t,e,n,r){let i="NODE_PATH",s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((o,a)=>{let l=process.env,u=Object.create(null);Object.keys(l).forEach(c=>u[c]=l[c]),e&&Ap.existsSync(e)&&(u[i]?u[i]=e+$t.delimiter+u[i]:u[i]=e,r&&r(`NODE_PATH value is: ${u[i]}`)),u.ELECTRON_RUN_AS_NODE="1";try{let c=(0,Op.fork)("",[],{cwd:n,env:u,execArgv:["-e",s]});if(c.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}c.on("error",h=>{a(h)}),c.on("message",h=>{h.c==="r"&&(c.send({c:"e"}),h.s?o(h.r):a(new Error(`Failed to resolve module: ${t}`)))});let f={c:"rs",a:t};c.send(f)}catch(c){a(c)}})}pt.resolve=ou;function Fp(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(s=>n[s]=process.env[s]),n.NO_UPDATE_NOTIFIER="true";let r={encoding:"utf8",env:n};Cp()&&(e="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let s=(0,Op.spawnSync)(e,["config","get","prefix"],r).stdout;if(!s){t&&t("'npm config get prefix' didn't return a value.");return}let o=s.trim();return t&&t(`'npm config get prefix' value is: ${o}`),o.length>0?Cp()?$t.join(o,"node_modules"):$t.join(o,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}pt.resolveGlobalNodePath=Fp;function O3(t){let e="yarn",n={encoding:"utf8"};Cp()&&(e="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=(0,Op.spawnSync)(e,["global","dir","--json"],n),s=i.stdout;if(!s){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let o=s.trim().split(/\r?\n/);for(let a of o)try{let l=JSON.parse(a);if(l.type==="log")return $t.join(l.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",r)}}pt.resolveGlobalYarnPath=O3;var Rp;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!Ap.existsSync(__filename.toUpperCase())||!Ap.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function r(i,s){return n()?$t.normalize(s).indexOf($t.normalize(i))===0:$t.normalize(s).toLowerCase().indexOf($t.normalize(i).toLowerCase())===0}t.isParent=r})(Rp||(pt.FileSystem=Rp={}));function I3(t,e,n,r){return n?($t.isAbsolute(n)||(n=$t.join(t,n)),ou(e,n,n,r).then(i=>Rp.isParent(n,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>ou(e,Fp(r),t,r))):ou(e,Fp(r),t,r)}pt.resolveModulePath=I3});var Bx=x(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.InlineCompletionFeature=void 0;var L3=Ie(),P3=t=>class extends t{get inlineCompletion(){return{on:e=>this.connection.onRequest(L3.InlineCompletionRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};au.InlineCompletionFeature=P3});var zx=x(Xe=>{"use strict";var q3=Xe&&Xe.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Ux=Xe&&Xe.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&q3(e,t,n)};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.ProposedFeatures=Xe.NotebookDocuments=Xe.TextDocuments=Xe.SemanticTokensBuilder=void 0;var M3=mp();Object.defineProperty(Xe,"SemanticTokensBuilder",{enumerable:!0,get:function(){return M3.SemanticTokensBuilder}});var N3=Bx();Ux(Ie(),Xe);var B3=wp();Object.defineProperty(Xe,"TextDocuments",{enumerable:!0,get:function(){return B3.TextDocuments}});var j3=_p();Object.defineProperty(Xe,"NotebookDocuments",{enumerable:!0,get:function(){return j3.NotebookDocuments}});Ux(Tp(),Xe);var jx;(function(t){t.all={__brand:"features",languages:N3.InlineCompletionFeature}})(jx||(Xe.ProposedFeatures=jx={}))});var Yx=x(Rt=>{"use strict";var U3=Rt&&Rt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Gx=Rt&&Rt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&U3(e,t,n)};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createConnection=Rt.Files=void 0;var Wx=N("node:util"),Ip=Il(),z3=Tp(),yo=Nx(),jr=nb();Gx(nb(),Rt);Gx(zx(),Rt);var $x;(function(t){t.uriToFilePath=yo.uriToFilePath,t.resolveGlobalNodePath=yo.resolveGlobalNodePath,t.resolveGlobalYarnPath=yo.resolveGlobalYarnPath,t.resolve=yo.resolve,t.resolveModulePath=yo.resolveModulePath})($x||(Rt.Files=$x={}));var Hx;function lu(){if(Hx!==void 0)try{Hx.end()}catch{}}var Mi=!1,Vx;function W3(){let t="--clientProcessId";function e(n){try{let r=parseInt(n);isNaN(r)||(Vx=setInterval(()=>{try{process.kill(r,0)}catch{lu(),process.exit(Mi?0:1)}},3e3))}catch{}}for(let n=2;n<process.argv.length;n++){let r=process.argv[n];if(r===t&&n+1<process.argv.length){e(process.argv[n+1]);return}else{let i=r.split("=");i[0]===t&&e(i[1])}}}W3();var $3={initialize:t=>{let e=t.processId;Ip.number(e)&&Vx===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(Mi?0:1)}},3e3)},get shutdownReceived(){return Mi},set shutdownReceived(t){Mi=t},exit:t=>{lu(),process.exit(t)}};function H3(t,e,n,r){let i,s,o,a;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),jr.ConnectionStrategy.is(t)||jr.ConnectionOptions.is(t)?a=t:(s=t,o=e,a=n),G3(s,o,a,i)}Rt.createConnection=H3;function G3(t,e,n,r){let i=!1;if(!t&&!e&&process.argv.length>2){let l,u,c=process.argv.slice(2);for(let f=0;f<c.length;f++){let h=c[f];if(h==="--node-ipc"){t=new jr.IPCMessageReader(process),e=new jr.IPCMessageWriter(process);break}else if(h==="--stdio"){i=!0,t=process.stdin,e=process.stdout;break}else if(h==="--socket"){l=parseInt(c[f+1]);break}else if(h==="--pipe"){u=c[f+1];break}else{var s=h.split("=");if(s[0]==="--socket"){l=parseInt(s[1]);break}else if(s[0]==="--pipe"){u=s[1];break}}}if(l){let f=(0,jr.createServerSocketTransport)(l);t=f[0],e=f[1]}else if(u){let f=(0,jr.createServerPipeTransport)(u);t=f[0],e=f[1]}}var o="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+o);if(!e)throw new Error("Connection output stream is not set. "+o);if(Ip.func(t.read)&&Ip.func(t.on)){let l=t;l.on("end",()=>{lu(),process.exit(Mi?0:1)}),l.on("close",()=>{lu(),process.exit(Mi?0:1)})}let a=l=>{let u=(0,jr.createProtocolConnection)(t,e,l,n);return i&&V3(l),u};return(0,z3.createConnection)(a,$3,r)}function V3(t){function e(r){return r.map(i=>typeof i=="string"?i:(0,Wx.inspect)(i)).join(" ")}let n=new Map;console.assert=function(i,...s){if(!i)if(s.length===0)t.error("Assertion failed");else{let[o,...a]=s;t.error(`Assertion failed: ${o} ${e(a)}`)}},console.count=function(i="default"){let s=String(i),o=n.get(s)??0;o+=1,n.set(s,o),t.log(`${s}: ${s}`)},console.countReset=function(i){i===void 0?n.clear():n.delete(String(i))},console.debug=function(...i){t.log(e(i))},console.dir=function(i,s){t.log((0,Wx.inspect)(i,s))},console.log=function(...i){t.log(e(i))},console.error=function(...i){t.error(e(i))},console.trace=function(...i){let s=new Error().stack.replace(/(.+\n){2}/,""),o="Trace";i.length!==0&&(o+=`: ${e(i)}`),t.log(`${o}
|
|
38
|
+
${s}`)},console.warn=function(...i){t.warn(e(i))}}});var Ni=x((Xne,Kx)=>{"use strict";Kx.exports=Yx()});var c_=x(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.readdirGlob=zr.ReaddirGlob=void 0;var jp=N("fs"),rP=N("events"),Bp=Mn(),iP=N("path");function sP(t,e){return new Promise((n,r)=>{jp.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?r(i):n([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":n([]);break;case"ELOOP":default:r(i);break}else n(s)})})}function l_(t,e){return new Promise(n=>{(e?jp.stat:jp.lstat)(t,(i,s)=>{if(i)switch(i.code){case"ENOENT":n(e?l_(t,!1):null);break;default:n(null);break}else n(s)})})}async function*u_(t,e,n,r,i,s){var o;let a=await sP(e+t,s);for(let l of a){let u=l.name,c=t+"/"+u,f=c.slice(1),h=e+"/"+f,p=l;(r||n)&&(p=(o=await l_(h,n))!==null&&o!==void 0?o:p),p.isDirectory()?i(f)||(yield{relative:f,absolute:h,stat:p},yield*u_(c,e,n,r,i,!1)):yield{relative:f,absolute:h,stat:p}}}async function*oP(t,e,n,r){yield*u_("",t,e,n,r,!0)}function aP(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var _o=class extends rP.EventEmitter{constructor(e,n,r){if(super(),typeof n=="function"&&(r=n,n=void 0),this.options=aP(n||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new Bp.Minimatch(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new Bp.Minimatch(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new Bp.Minimatch(s,{dot:!0}))}if(this.iterator=oP((0,iP.resolve)(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r){let i=r,s=[];this.on("match",o=>s.push(this.options.absolute?o.absolute:o.relative)),this.on("error",o=>i(o)),this.on("end",()=>i(null,s))}setTimeout(()=>this._next())}_shouldSkipDirectory(e){return this.skipMatchers.some(n=>n.match(e))}_fileMatches(e,n){let r=e+(n?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(r)))&&!this.ignoreMatchers.some(i=>i.match(r))&&(!this.options.nodir||!n)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let n=e.value.stat.isDirectory();if(this._fileMatches(e.value.relative,n)){let r=e.value.relative,i=e.value.absolute;this.options.mark&&n&&(r+="/",i+="/"),this.options.stat?this.emit("match",{relative:r,absolute:i,stat:e.value.stat}):this.emit("match",{relative:r,absolute:i})}this._next()}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};zr.ReaddirGlob=_o;var lP=(t,e,n)=>new _o(t,e,n);zr.readdirGlob=lP;zr.readdirGlob.ReaddirGlob=_o});var h_=x((Dre,f_)=>{"use strict";var uP=c_();f_.exports=uP.readdirGlob});var cD={};Zy(cD,{all:()=>Kp,allLimit:()=>Qp,allSeries:()=>Zp,any:()=>id,anyLimit:()=>sd,anySeries:()=>od,apply:()=>b_,applyEach:()=>S_,applyEachSeries:()=>E_,asyncify:()=>mu,auto:()=>ud,autoInject:()=>k_,cargo:()=>T_,cargoQueue:()=>A_,compose:()=>C_,concat:()=>Wp,concatLimit:()=>So,concatSeries:()=>$p,constant:()=>F_,default:()=>dq,detect:()=>Hp,detectLimit:()=>Gp,detectSeries:()=>Vp,dir:()=>O_,doDuring:()=>gu,doUntil:()=>I_,doWhilst:()=>gu,during:()=>_u,each:()=>Yp,eachLimit:()=>yu,eachOf:()=>Ot,eachOfLimit:()=>vo,eachOfSeries:()=>en,eachSeries:()=>bu,ensureAsync:()=>hd,every:()=>Kp,everyLimit:()=>Qp,everySeries:()=>Zp,filter:()=>Jp,filterLimit:()=>Xp,filterSeries:()=>ed,find:()=>Hp,findLimit:()=>Gp,findSeries:()=>Vp,flatMap:()=>Wp,flatMapLimit:()=>So,flatMapSeries:()=>$p,foldl:()=>Wi,foldr:()=>nd,forEach:()=>Yp,forEachLimit:()=>yu,forEachOf:()=>Ot,forEachOfLimit:()=>vo,forEachOfSeries:()=>en,forEachSeries:()=>bu,forever:()=>P_,groupBy:()=>q_,groupByLimit:()=>ku,groupBySeries:()=>M_,inject:()=>Wi,log:()=>N_,map:()=>Su,mapLimit:()=>To,mapSeries:()=>ld,mapValues:()=>B_,mapValuesLimit:()=>Tu,mapValuesSeries:()=>j_,memoize:()=>U_,nextTick:()=>z_,parallel:()=>W_,parallelLimit:()=>$_,priorityQueue:()=>H_,queue:()=>dd,race:()=>G_,reduce:()=>Wi,reduceRight:()=>nd,reflect:()=>wu,reflectAll:()=>V_,reject:()=>Y_,rejectLimit:()=>K_,rejectSeries:()=>Q_,retry:()=>xu,retryable:()=>X_,select:()=>Jp,selectLimit:()=>Xp,selectSeries:()=>ed,seq:()=>fd,series:()=>eD,setImmediate:()=>Zn,some:()=>id,someLimit:()=>sd,someSeries:()=>od,sortBy:()=>tD,timeout:()=>nD,times:()=>rD,timesLimit:()=>Au,timesSeries:()=>iD,transform:()=>sD,tryEach:()=>oD,unmemoize:()=>aD,until:()=>lD,waterfall:()=>uD,whilst:()=>_u,wrapSync:()=>mu});function b_(t,...e){return(...n)=>t(...e,...n)}function Eo(t){return function(...e){var n=e.pop();return t.call(this,e,n)}}function __(t){setTimeout(t,0)}function D_(t){return(e,...n)=>t(()=>e(...n))}function mu(t){return ko(t)?function(...e){let n=e.pop(),r=t.apply(this,e);return p_(r,n)}:Eo(function(e,n){var r;try{r=t.apply(this,e)}catch(i){return n(i)}if(r&&typeof r.then=="function")return p_(r,n);n(null,r)})}function p_(t,e){return t.then(n=>{d_(e,null,n)},n=>{d_(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function d_(t,e,n){try{t(e,n)}catch(r){Zn(i=>{throw i},r)}}function ko(t){return t[Symbol.toStringTag]==="AsyncFunction"}function fP(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function hP(t){return typeof t[Symbol.asyncIterator]=="function"}function ee(t){if(typeof t!="function")throw new Error("expected a function");return ko(t)?mu(t):t}function X(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...r){return typeof r[e-1]=="function"?t.apply(this,r):new Promise((i,s)=>{r[e-1]=(o,...a)=>{if(o)return s(o);i(a.length>1?a:a[0])},t.apply(this,r)})}return n}function v_(t){return function(n,...r){return X(function(s){var o=this;return t(n,(a,l)=>{ee(a).apply(o,r.concat(l))},s)})}}function ad(t,e,n,r){e=e||[];var i=[],s=0,o=ee(n);return t(e,(a,l,u)=>{var c=s++;o(a,(f,h)=>{i[c]=h,u(f)})},a=>{r(a,i)})}function Du(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Jn(t){function e(...n){if(t!==null){var r=t;t=null,r.apply(this,n)}}return Object.assign(e,t),e}function pP(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function dP(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function mP(t){var e=-1;return function(){var r=t.next();return r.done?null:(e++,{value:r.value,key:e})}}function gP(t){var e=t?Object.keys(t):[],n=-1,r=e.length;return function i(){var s=e[++n];return s==="__proto__"?i():n<r?{value:t[s],key:s}:null}}function yP(t){if(Du(t))return dP(t);var e=pP(t);return e?mP(e):gP(t)}function Xn(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}function m_(t,e,n,r){let i=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||i||(o=!0,t.next().then(({value:h,done:p})=>{if(!(s||i)){if(o=!1,p){i=!0,a<=0&&r(null);return}a++,n(h,l,c),l++,u()}}).catch(f))}function c(h,p){if(a-=1,!s){if(h)return f(h);if(h===!1){i=!0,s=!0;return}if(p===vu||i&&a<=0)return i=!0,r(null);u()}}function f(h){s||(o=!1,i=!0,r(h))}u()}function bP(t,e,n,r){return Ht(e)(t,ee(n),r)}function wP(t,e,n){n=Jn(n);var r=0,i=0,{length:s}=t,o=!1;s===0&&n(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?n(l):(++i===s||u===vu)&&n(null))}for(;r<s;r++)e(t[r],r,Xn(a))}function xP(t,e,n){return vo(t,1/0,e,n)}function _P(t,e,n){var r=Du(t)?wP:xP;return r(t,ee(e),n)}function DP(t,e,n){return ad(Ot,t,e,n)}function vP(t,e,n){return vo(t,1,e,n)}function SP(t,e,n){return ad(en,t,e,n)}function $i(){let t,e;function n(r,...i){if(r)return e(r);t(i.length>1?i:i[0])}return n[Hi]=new Promise((r,i)=>{t=r,e=i}),n}function ud(t,e,n){typeof e!="number"&&(n=e,e=null),n=Jn(n||$i());var r=Object.keys(t).length;if(!r)return n(null);e||(e=r);var i={},s=0,o=!1,a=!1,l=Object.create(null),u=[],c=[],f={};Object.keys(t).forEach(d=>{var w=t[d];if(!Array.isArray(w)){h(d,[w]),c.push(d);return}var T=w.slice(0,w.length-1),D=T.length;if(D===0){h(d,w),c.push(d);return}f[d]=D,T.forEach(S=>{if(!t[S])throw new Error("async.auto task `"+d+"` has a non-existent dependency `"+S+"` in "+T.join(", "));b(S,()=>{D--,D===0&&h(d,w)})})}),g(),p();function h(d,w){u.push(()=>k(d,w))}function p(){if(!o){if(u.length===0&&s===0)return n(null,i);for(;u.length&&s<e;){var d=u.shift();d()}}}function b(d,w){var T=l[d];T||(T=l[d]=[]),T.push(w)}function y(d){var w=l[d]||[];w.forEach(T=>T()),p()}function k(d,w){if(!a){var T=Xn((S,...M)=>{if(s--,S===!1){o=!0;return}if(M.length<2&&([M]=M),S){var A={};if(Object.keys(i).forEach(F=>{A[F]=i[F]}),A[d]=M,a=!0,l=Object.create(null),o)return;n(S,A)}else i[d]=M,y(d)});s++;var D=ee(w[w.length-1]);w.length>1?D(i,T):D(T)}}function g(){for(var d,w=0;c.length;)d=c.pop(),w++,m(d).forEach(T=>{--f[T]===0&&c.push(T)});if(w!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function m(d){var w=[];return Object.keys(t).forEach(T=>{let D=t[T];Array.isArray(D)&&D.indexOf(d)>=0&&w.push(T)}),w}return n[Hi]}function CP(t){let e="",n=0,r=t.indexOf("*/");for(;n<t.length;)if(t[n]==="/"&&t[n+1]==="/"){let i=t.indexOf(`
|
|
39
|
+
`,n);n=i===-1?t.length:i}else if(r!==-1&&t[n]==="/"&&t[n+1]==="*"){let i=t.indexOf("*/",n);i!==-1?(n=i+2,r=t.indexOf("*/",n)):(e+=t[n],n++)}else e+=t[n],n++;return e}function FP(t){let e=CP(t.toString()),n=e.match(EP);if(n||(n=e.match(kP)),!n)throw new Error(`could not parse args in autoInject
|
|
40
40
|
Source:
|
|
41
|
-
`+e);let[,r]=n;return r.replace(/\s/g,"").split(DP).map(i=>i.replace(vP,"").trim())}function D_(t,e){var n={};return Object.keys(t).forEach(r=>{var i=t[r],s,o=ko(i),a=!o&&i.length===1||o&&i.length===0;if(Array.isArray(i))s=[...i],i=s.pop(),n[r]=s.concat(s.length>0?l:i);else if(a)n[r]=i;else{if(s=EP(i),i.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),n[r]=s.concat(l)}function l(u,c){var f=s.map(h=>u[h]);f.push(c),ee(i)(...f)}}),cd(n,e)}function h_(t,e){t.length=1,t.head=t.tail=e}function fd(t,e,n){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var r=ee(t),i=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(m,d){o[m].push(d)}function l(m,d){let w=(...T)=>{u(m,w),d(...T)};o[m].push(w)}function u(m,d){if(!m)return Object.keys(o).forEach(w=>o[w]=[]);if(!d)return o[m]=[];o[m]=o[m].filter(w=>w!==d)}function c(m,...d){o[m].forEach(w=>w(...d))}var f=!1;function h(m,d,w,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");g.started=!0;var v,S;function M(F,...I){if(F)return w?S(F):v();if(I.length<=1)return v(I[0]);v(I)}var A=g._createTaskItem(m,w?M:T||M);if(d?g._tasks.unshift(A):g._tasks.push(A),f||(f=!0,Zn(()=>{f=!1,g.process()})),w||!T)return new Promise((F,I)=>{v=F,S=I})}function p(m){return function(d,...w){i-=1;for(var T=0,v=m.length;T<v;T++){var S=m[T],M=s.indexOf(S);M===0?s.shift():M>0&&s.splice(M,1),S.callback(d,...w),d!=null&&c("error",d,S.data)}i<=g.concurrency-g.buffer&&c("unsaturated"),g.idle()&&c("drain"),g.process()}}function b(m){return m.length===0&&g.idle()?(Zn(()=>c("drain")),!0):!1}let y=m=>d=>{if(!d)return new Promise((w,T)=>{l(m,(v,S)=>{if(v)return T(v);w(S)})});u(m),a(m,d)};var k=!1,g={_tasks:new Wp,_createTaskItem(m,d){return{data:m,callback:d}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:e,payload:n,buffer:e/4,started:!1,paused:!1,push(m,d){return Array.isArray(m)?b(m)?void 0:m.map(w=>h(w,!1,!1,d)):h(m,!1,!1,d)},pushAsync(m,d){return Array.isArray(m)?b(m)?void 0:m.map(w=>h(w,!1,!0,d)):h(m,!1,!0,d)},kill(){u(),g._tasks.empty()},unshift(m,d){return Array.isArray(m)?b(m)?void 0:m.map(w=>h(w,!0,!1,d)):h(m,!0,!1,d)},unshiftAsync(m,d){return Array.isArray(m)?b(m)?void 0:m.map(w=>h(w,!0,!0,d)):h(m,!0,!0,d)},remove(m){g._tasks.remove(m)},process(){if(!k){for(k=!0;!g.paused&&i<g.concurrency&&g._tasks.length;){var m=[],d=[],w=g._tasks.length;g.payload&&(w=Math.min(w,g.payload));for(var T=0;T<w;T++){var v=g._tasks.shift();m.push(v),s.push(v),d.push(v.data)}i+=1,g._tasks.length===0&&c("empty"),i===g.concurrency&&c("saturated");var S=Xn(p(m));r(d,S)}k=!1}},length(){return g._tasks.length},running(){return i},workersList(){return s},idle(){return g._tasks.length+i===0},pause(){g.paused=!0},resume(){g.paused!==!1&&(g.paused=!1,Zn(g.process))}};return Object.defineProperties(g,{saturated:{writable:!1,value:y("saturated")},unsaturated:{writable:!1,value:y("unsaturated")},empty:{writable:!1,value:y("empty")},drain:{writable:!1,value:y("drain")},error:{writable:!1,value:y("error")}}),g}function v_(t,e){return fd(t,1,e)}function S_(t,e,n){return fd(t,e,n)}function kP(t,e,n,r){r=Jn(r);var i=ee(n);return en(t,(s,o,a)=>{i(e,s,(l,u)=>{e=u,a(l)})},s=>r(s,e))}function hd(...t){var e=t.map(ee);return function(...n){var r=this,i=n[n.length-1];return typeof i=="function"?n.pop():i=Wi(),zi(e,n,(s,o,a)=>{o.apply(r,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>i(s,...o)),i[$i]}}function E_(...t){return hd(...t.reverse())}function TP(t,e,n,r){return ld(Ht(e),t,n,r)}function AP(t,e,n,r){var i=ee(n);return To(t,e,(s,o)=>{i(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return r(s,a)})}function CP(t,e,n){return So(t,1/0,e,n)}function FP(t,e,n){return So(t,1,e,n)}function k_(...t){return function(...e){var n=e.pop();return n(null,...t)}}function En(t,e){return(n,r,i,s)=>{var o=!1,a;let l=ee(i);n(r,(u,c,f)=>{l(u,(h,p)=>{if(h||h===!1)return f(h);if(t(p)&&!a)return o=!0,a=e(!0,u),f(null,vu);f()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function RP(t,e,n){return En(r=>r,(r,i)=>i)(Ot,t,e,n)}function OP(t,e,n,r){return En(i=>i,(i,s)=>s)(Ht(e),t,n,r)}function IP(t,e,n){return En(r=>r,(r,i)=>i)(Ht(1),t,e,n)}function T_(t){return(e,...n)=>ee(e)(...n,(r,...i)=>{typeof console=="object"&&(r?console.error&&console.error(r):console[t]&&i.forEach(s=>console[t](s)))})}function LP(t,e,n){n=Xn(n);var r=ee(t),i=ee(e),s;function o(l,...u){if(l)return n(l);l!==!1&&(s=u,i(...u,a))}function a(l,u){if(l)return n(l);if(l!==!1){if(!u)return n(null,...s);r(o)}}return a(null,!0)}function C_(t,e,n){let r=ee(e);return gu(t,(...i)=>{let s=i.pop();r(...i,(o,a)=>s(o,!a))},n)}function F_(t){return(e,n,r)=>t(e,r)}function PP(t,e,n){return Ot(t,F_(ee(e)),n)}function qP(t,e,n,r){return Ht(e)(t,F_(ee(n)),r)}function MP(t,e,n){return yu(t,1,e,n)}function pd(t){return ko(t)?t:function(...e){var n=e.pop(),r=!0;e.push((...i)=>{r?Zn(()=>n(...i)):n(...i)}),t.apply(this,e),r=!1}}function NP(t,e,n){return En(r=>!r,r=>!r)(Ot,t,e,n)}function BP(t,e,n,r){return En(i=>!i,i=>!i)(Ht(e),t,n,r)}function jP(t,e,n){return En(r=>!r,r=>!r)(en,t,e,n)}function UP(t,e,n,r){var i=new Array(e.length);t(e,(s,o,a)=>{n(s,(l,u)=>{i[o]=!!u,a(l)})},s=>{if(s)return r(s);for(var o=[],a=0;a<e.length;a++)i[a]&&o.push(e[a]);r(null,o)})}function zP(t,e,n,r){var i=[];t(e,(s,o,a)=>{n(s,(l,u)=>{if(l)return a(l);u&&i.push({index:o,value:s}),a(l)})},s=>{if(s)return r(s);r(null,i.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Eu(t,e,n,r){var i=Du(e)?UP:zP;return i(t,e,ee(n),r)}function WP(t,e,n){return Eu(Ot,t,e,n)}function $P(t,e,n,r){return Eu(Ht(e),t,n,r)}function HP(t,e,n){return Eu(en,t,e,n)}function GP(t,e){var n=Xn(e),r=ee(pd(t));function i(s){if(s)return n(s);s!==!1&&r(i)}return i()}function VP(t,e,n,r){var i=ee(n);return To(t,e,(s,o)=>{i(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:c}=o[u],{val:f}=o[u];l.call(a,c)?a[c].push(f):a[c]=[f]}return r(s,a)})}function O_(t,e,n){return ku(t,1/0,e,n)}function I_(t,e,n){return ku(t,1,e,n)}function YP(t,e,n,r){r=Jn(r);var i={},s=ee(n);return Ht(e)(t,(o,a,l)=>{s(o,a,(u,c)=>{if(u)return l(u);i[a]=c,l(u)})},o=>r(o,i))}function P_(t,e,n){return Tu(t,1/0,e,n)}function q_(t,e,n){return Tu(t,1,e,n)}function M_(t,e=n=>n){var n=Object.create(null),r=Object.create(null),i=ee(t),s=Eo((o,a)=>{var l=e(...o);l in n?Zn(()=>a(null,...n[l])):l in r?r[l].push(a):(r[l]=[a],i(...o,(u,...c)=>{u||(n[l]=c);var f=r[l];delete r[l];for(var h=0,p=f.length;h<p;h++)f[h](u,...c)}))});return s.memo=n,s.unmemoized=t,s}function B_(t,e){return dd(Ot,t,e)}function j_(t,e,n){return dd(Ht(e),t,n)}function md(t,e){var n=ee(t);return fd((r,i)=>{n(r[0],i)},e,1)}function KP(t){return(t<<1)+1}function p_(t){return(t+1>>1)-1}function zp(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function U_(t,e){var n=md(t,e),{push:r,pushAsync:i}=n;n._tasks=new nd,n._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return n.push=function(o,a=0,l){return r(s(o,a),l)},n.pushAsync=function(o,a=0,l){return i(s(o,a),l)},delete n.unshift,delete n.unshiftAsync,n}function QP(t,e){if(e=Jn(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var n=0,r=t.length;n<r;n++)ee(t[n])(e)}function rd(t,e,n,r){var i=[...t].reverse();return zi(i,e,n,r)}function wu(t){var e=ee(t);return Eo(function(r,i){return r.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}i(null,a)}),e.apply(this,r)})}function W_(t){var e;return Array.isArray(t)?e=t.map(wu):(e={},Object.keys(t).forEach(n=>{e[n]=wu.call(this,t[n])})),e}function gd(t,e,n,r){let i=ee(n);return Eu(t,e,(s,o)=>{i(s,(a,l)=>{o(a,!l)})},r)}function ZP(t,e,n){return gd(Ot,t,e,n)}function JP(t,e,n,r){return gd(Ht(e),t,n,r)}function XP(t,e,n){return gd(en,t,e,n)}function V_(t){return function(){return t}}function xu(t,e,n){var r={times:id,intervalFunc:V_(Y_)};if(arguments.length<3&&typeof t=="function"?(n=e||Wi(),e=t):(eq(r,t),n=n||Wi()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var i=ee(e),s=1;function o(){i((a,...l)=>{a!==!1&&(a&&s++<r.times&&(typeof r.errorFilter!="function"||r.errorFilter(a))?setTimeout(o,r.intervalFunc(s-1)):n(a,...l))})}return o(),n[$i]}function eq(t,e){if(typeof e=="object")t.times=+e.times||id,t.intervalFunc=typeof e.interval=="function"?e.interval:V_(+e.interval||Y_),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||id;else throw new Error("Invalid arguments for async.retry")}function K_(t,e){e||(e=t,t=null);let n=t&&t.arity||e.length;ko(e)&&(n+=1);var r=ee(e);return Eo((i,s)=>{(i.length<n-1||s==null)&&(i.push(s),s=Wi());function o(a){r(...i,a)}return t?xu(t,o,s):xu(o,s),s[$i]})}function Q_(t,e){return dd(en,t,e)}function tq(t,e,n){return En(Boolean,r=>r)(Ot,t,e,n)}function nq(t,e,n,r){return En(Boolean,i=>i)(Ht(e),t,n,r)}function rq(t,e,n){return En(Boolean,r=>r)(en,t,e,n)}function iq(t,e,n){var r=ee(e);return Su(t,(s,o)=>{r(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return n(s);n(null,o.sort(i).map(a=>a.value))});function i(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function J_(t,e,n){var r=ee(t);return Eo((i,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",c=new Error('Callback function "'+u+'" timed out.');c.code="ETIMEDOUT",n&&(c.info=n),o=!0,s(c)}i.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),r(...i)})}function sq(t){for(var e=Array(t);t--;)e[t]=t;return e}function Au(t,e,n,r){var i=ee(n);return To(sq(t),e,i,r)}function X_(t,e,n){return Au(t,1/0,e,n)}function eD(t,e,n){return Au(t,1,e,n)}function tD(t,e,n,r){arguments.length<=3&&typeof e=="function"&&(r=n,n=e,e=Array.isArray(t)?[]:{}),r=Jn(r||Wi());var i=ee(n);return Ot(t,(s,o,a)=>{i(e,s,o,a)},s=>r(s,e)),r[$i]}function oq(t,e){var n=null,r;return bu(t,(i,s)=>{ee(i)((o,...a)=>{if(o===!1)return s(o);a.length<2?[r]=a:r=a,n=o,s(o?null:{})})},()=>e(n,r))}function rD(t){return(...e)=>(t.unmemoized||t)(...e)}function aq(t,e,n){n=Xn(n);var r=ee(e),i=ee(t),s=[];function o(l,...u){if(l)return n(l);s=u,l!==!1&&i(a)}function a(l,u){if(l)return n(l);if(l!==!1){if(!u)return n(null,...s);r(o)}}return i(a)}function iD(t,e,n){let r=ee(t);return _u(i=>r((s,o)=>i(s,!o)),e,n)}function lq(t,e){if(e=Jn(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var n=0;function r(s){var o=ee(t[n++]);o(...s,Xn(i))}function i(s,...o){if(s!==!1){if(s||n===t.length)return e(s,...o);r(o)}}r([])}var sP,m_,g_,Do,Zn,vu,Ht,vo,Ot,Su,x_,en,ud,__,$i,xP,_P,DP,vP,Wp,zi,To,So,$p,Hp,Gp,Vp,Yp,A_,gu,Kp,yu,bu,Qp,Zp,Jp,Xp,ed,td,R_,ku,L_,Tu,du,N_,dd,nd,z_,$_,H_,G_,id,Y_,sd,od,ad,Z_,nD,_u,sD,uq,aD=yR(()=>{"use strict";sP=typeof queueMicrotask=="function"&&queueMicrotask,m_=typeof setImmediate=="function"&&setImmediate,g_=typeof process=="object"&&typeof process.nextTick=="function";sP?Do=queueMicrotask:m_?Do=setImmediate:g_?Do=process.nextTick:Do=y_;Zn=b_(Do);vu={};Ht=t=>(e,n,r)=>{if(r=Jn(r),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return r(null);if(oP(e))return f_(e,t,n,r);if(aP(e))return f_(e[Symbol.asyncIterator](),t,n,r);var i=hP(e),s=!1,o=!1,a=0,l=!1;function u(f,h){if(!o)if(a-=1,f)s=!0,r(f);else if(f===!1)s=!0,o=!0;else{if(h===vu||s&&a<=0)return s=!0,r(null);l||c()}}function c(){for(l=!0;a<t&&!s;){var f=i();if(f===null){s=!0,a<=0&&r(null);return}a+=1,n(f.value,f.key,Xn(u))}l=!1}c()};vo=X(pP,4);Ot=X(gP,3);Su=X(yP,3),x_=w_(Su);en=X(bP,3);ud=X(wP,3),__=w_(ud),$i=Symbol("promiseCallback");xP=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,_P=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,DP=/,/,vP=/(=.+)?(\s*)$/;Wp=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,n){n.prev=e,n.next=e.next,e.next?e.next.prev=n:this.tail=n,e.next=n,this.length+=1}insertBefore(e,n){n.prev=e.prev,n.next=e,e.prev?e.prev.next=n:this.head=n,e.prev=n,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):h_(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):h_(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var n=this.head;n;){var{next:r}=n;e(n)&&this.removeLink(n),n=r}return this}};zi=X(kP,4);To=X(TP,4);So=X(AP,4);$p=X(CP,3);Hp=X(FP,3);Gp=X(RP,3);Vp=X(OP,4);Yp=X(IP,3);A_=T_("dir");gu=X(LP,3);Kp=X(PP,3);yu=X(qP,4);bu=X(MP,3);Qp=X(NP,3);Zp=X(BP,4);Jp=X(jP,3);Xp=X(WP,3);ed=X($P,4);td=X(HP,3);R_=X(GP,2);ku=X(VP,4);L_=T_("log");Tu=X(YP,4);g_?du=process.nextTick:m_?du=setImmediate:du=y_;N_=b_(du),dd=X((t,e,n)=>{var r=Du(e)?[]:{};t(e,(i,s,o)=>{ee(i)((a,...l)=>{l.length<2&&([l]=l),r[s]=l,o(a)})},i=>n(i,r))},3);nd=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let n;for(;e>0&&zp(this.heap[e],this.heap[n=p_(e)]);){let r=this.heap[e];this.heap[e]=this.heap[n],this.heap[n]=r,e=n}}percDown(e){let n;for(;(n=KP(e))<this.heap.length&&(n+1<this.heap.length&&zp(this.heap[n+1],this.heap[n])&&(n=n+1),!zp(this.heap[e],this.heap[n]));){let r=this.heap[e];this.heap[e]=this.heap[n],this.heap[n]=r,e=n}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let n=0;for(let r=0;r<this.heap.length;r++)e(this.heap[r])||(this.heap[n]=this.heap[r],n++);this.heap.splice(n);for(let r=p_(this.heap.length-1);r>=0;r--)this.percDown(r);return this}};z_=X(QP,2);$_=X(ZP,3);H_=X(JP,4);G_=X(XP,3);id=5,Y_=0;sd=X(tq,3);od=X(nq,4);ad=X(rq,3);Z_=X(iq,3);nD=X(oq);_u=X(aq,3);sD=X(lq),uq={apply:d_,applyEach:x_,applyEachSeries:__,asyncify:mu,auto:cd,autoInject:D_,cargo:v_,cargoQueue:S_,compose:E_,concat:$p,concatLimit:So,concatSeries:Hp,constant:k_,detect:Gp,detectLimit:Vp,detectSeries:Yp,dir:A_,doUntil:C_,doWhilst:gu,each:Kp,eachLimit:yu,eachOf:Ot,eachOfLimit:vo,eachOfSeries:en,eachSeries:bu,ensureAsync:pd,every:Qp,everyLimit:Zp,everySeries:Jp,filter:Xp,filterLimit:ed,filterSeries:td,forever:R_,groupBy:O_,groupByLimit:ku,groupBySeries:I_,log:L_,map:Su,mapLimit:To,mapSeries:ud,mapValues:P_,mapValuesLimit:Tu,mapValuesSeries:q_,memoize:M_,nextTick:N_,parallel:B_,parallelLimit:j_,priorityQueue:U_,queue:md,race:z_,reduce:zi,reduceRight:rd,reflect:wu,reflectAll:W_,reject:$_,rejectLimit:H_,rejectSeries:G_,retry:xu,retryable:K_,seq:hd,series:Q_,setImmediate:Zn,some:sd,someLimit:od,someSeries:ad,sortBy:Z_,timeout:J_,times:X_,timesLimit:Au,timesSeries:eD,transform:tD,tryEach:nD,unmemoize:rD,until:iD,waterfall:sD,whilst:_u,all:Qp,allLimit:Zp,allSeries:Jp,any:sd,anyLimit:od,anySeries:ad,find:Gp,findLimit:Vp,findSeries:Yp,flatMap:$p,flatMapLimit:So,flatMapSeries:Hp,forEach:Kp,forEachSeries:bu,forEachLimit:yu,forEachOf:Ot,forEachOfSeries:en,forEachOfLimit:vo,inject:zi,foldl:zi,foldr:rd,select:Xp,selectLimit:ed,selectSeries:td,wrapSync:mu,during:_u,doDuring:gu}});var uD=x((gre,lD)=>{"use strict";var er=N("constants"),cq=process.cwd,Cu=null,fq=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Cu||(Cu=cq.call(process)),Cu};try{process.cwd()}catch{}typeof process.chdir=="function"&&(yd=process.chdir,process.chdir=function(t){Cu=null,yd.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,yd));var yd;lD.exports=hq;function hq(t){er.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=r(t.chmod),t.fchmod=r(t.fchmod),t.lchmod=r(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=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,f,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,f,h,p){p&&process.nextTick(p)},t.lchownSync=function(){}),fq==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function f(h,p,b){var y=Date.now(),k=0;c(h,p,function g(m){if(m&&(m.code==="EACCES"||m.code==="EPERM"||m.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){t.stat(p,function(d,w){d&&d.code==="ENOENT"?c(h,p,g):b(m)})},k),k<100&&(k+=10);return}b&&b(m)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function f(h,p,b,y,k,g){var m;if(g&&typeof g=="function"){var d=0;m=function(w,T,v){if(w&&w.code==="EAGAIN"&&d<10)return d++,c.call(t,h,p,b,y,k,m);g.apply(this,arguments)}}return c.call(t,h,p,b,y,k,m)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(f,h,p,b,y){for(var k=0;;)try{return c.call(t,f,h,p,b,y)}catch(g){if(g.code==="EAGAIN"&&k<10){k++;continue}throw g}}}(t.readSync);function e(c){c.lchmod=function(f,h,p){c.open(f,er.O_WRONLY|er.O_SYMLINK,h,function(b,y){if(b){p&&p(b);return}c.fchmod(y,h,function(k){c.close(y,function(g){p&&p(k||g)})})})},c.lchmodSync=function(f,h){var p=c.openSync(f,er.O_WRONLY|er.O_SYMLINK,h),b=!0,y;try{y=c.fchmodSync(p,h),b=!1}finally{if(b)try{c.closeSync(p)}catch{}else c.closeSync(p)}return y}}function n(c){er.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,h,p,b){c.open(f,er.O_SYMLINK,function(y,k){if(y){b&&b(y);return}c.futimes(k,h,p,function(g){c.close(k,function(m){b&&b(g||m)})})})},c.lutimesSync=function(f,h,p){var b=c.openSync(f,er.O_SYMLINK),y,k=!0;try{y=c.futimesSync(b,h,p),k=!1}finally{if(k)try{c.closeSync(b)}catch{}else c.closeSync(b)}return y}):c.futimes&&(c.lutimes=function(f,h,p,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function r(c){return c&&function(f,h,p){return c.call(t,f,h,function(b){u(b)&&(b=null),p&&p.apply(this,arguments)})}}function i(c){return c&&function(f,h){try{return c.call(t,f,h)}catch(p){if(!u(p))throw p}}}function s(c){return c&&function(f,h,p,b){return c.call(t,f,h,p,function(y){u(y)&&(y=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(f,h,p){try{return c.call(t,f,h,p)}catch(b){if(!u(b))throw b}}}function a(c){return c&&function(f,h,p){typeof h=="function"&&(p=h,h=null);function b(y,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),p&&p.apply(this,arguments)}return h?c.call(t,f,h,b):c.call(t,f,b)}}function l(c){return c&&function(f,h){var p=h?c.call(t,f,h):c.call(t,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function u(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var hD=x((yre,fD)=>{"use strict";var cD=N("stream").Stream;fD.exports=pq;function pq(t){return{ReadStream:e,WriteStream:n};function e(r,i){if(!(this instanceof e))return new e(r,i);cD.call(this);var s=this;this.path=r,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,l=o.length;a<l;a++){var u=o[a];this[u]=i[u]}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(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);cD.call(this),this.path=r,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 l=s[o];this[l]=i[l]}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 dD=x((bre,pD)=>{"use strict";pD.exports=mq;var dq=Object.getPrototypeOf||function(t){return t.__proto__};function mq(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:dq(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var _d=x((wre,xd)=>{"use strict";var Ee=N("fs"),gq=uD(),yq=hD(),bq=dD(),Fu=N("util"),He,Ou;typeof Symbol=="function"&&typeof Symbol.for=="function"?(He=Symbol.for("graceful-fs.queue"),Ou=Symbol.for("graceful-fs.previous")):(He="___graceful-fs.queue",Ou="___graceful-fs.previous");function wq(){}function yD(t,e){Object.defineProperty(t,He,{get:function(){return e}})}var zr=wq;Fu.debuglog?zr=Fu.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(zr=function(){var t=Fu.format.apply(Fu,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
42
|
-
GFS4: `),console.error(t)});Ee[He]||(mD=global[He]||[],yD(Ee,mD),Ee.close=function(t){function e(n,r){return t.call(Ee,n,function(i){i||gD(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(e,Ou,{value:t}),e}(Ee.close),Ee.closeSync=function(t){function e(n){t.apply(Ee,arguments),gD()}return Object.defineProperty(e,Ou,{value:t}),e}(Ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){zr(Ee[He]),N("assert").equal(Ee[He].length,0)}));var mD;global[He]||yD(global,Ee[He]);xd.exports=bd(bq(Ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ee.__patched&&(xd.exports=bd(Ee),Ee.__patched=!0);function bd(t){gq(t),t.gracefulify=bd,t.createReadStream=T,t.createWriteStream=v;var e=t.readFile;t.readFile=n;function n(A,F,I){return typeof F=="function"&&(I=F,F=null),B(A,F,I);function B(O,R,L,$){return e(O,R,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Hi([B,[O,R,L],z,$||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var r=t.writeFile;t.writeFile=i;function i(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,de){return r(R,L,$,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Hi([O,[R,L,$,z],se,de||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,de){return s(R,L,$,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Hi([O,[R,L,$,z],se,de||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(A,F,I,B){return typeof I=="function"&&(B=I,I=0),O(A,F,I,B);function O(R,L,$,z,de){return a(R,L,$,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Hi([O,[R,L,$,z],se,de||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(A,F,I){typeof F=="function"&&(I=F,F=null);var B=c.test(process.version)?function(L,$,z,de){return u(L,O(L,$,z,de))}:function(L,$,z,de){return u(L,$,O(L,$,z,de))};return B(A,F,I);function O(R,L,$,z){return function(de,se){de&&(de.code==="EMFILE"||de.code==="ENFILE")?Hi([B,[R,L,$],de,z||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof $=="function"&&$.call(this,de,se))}}}if(process.version.substr(0,4)==="v0.8"){var h=yq(t);g=h.ReadStream,d=h.WriteStream}var p=t.ReadStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=m);var b=t.WriteStream;b&&(d.prototype=Object.create(b.prototype),d.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(A){g=A},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return d},set:function(A){d=A},enumerable:!0,configurable:!0});var y=g;Object.defineProperty(t,"FileReadStream",{get:function(){return y},set:function(A){y=A},enumerable:!0,configurable:!0});var k=d;Object.defineProperty(t,"FileWriteStream",{get:function(){return k},set:function(A){k=A},enumerable:!0,configurable:!0});function g(A,F){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function m(){var A=this;M(A.path,A.flags,A.mode,function(F,I){F?(A.autoClose&&A.destroy(),A.emit("error",F)):(A.fd=I,A.emit("open",I),A.read())})}function d(A,F){return this instanceof d?(b.apply(this,arguments),this):d.apply(Object.create(d.prototype),arguments)}function w(){var A=this;M(A.path,A.flags,A.mode,function(F,I){F?(A.destroy(),A.emit("error",F)):(A.fd=I,A.emit("open",I))})}function T(A,F){return new t.ReadStream(A,F)}function v(A,F){return new t.WriteStream(A,F)}var S=t.open;t.open=M;function M(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,de){return S(R,L,$,function(se,D){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Hi([O,[R,L,$,z],se,de||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}return t}function Hi(t){zr("ENQUEUE",t[0].name,t[1]),Ee[He].push(t),wd()}var Ru;function gD(){for(var t=Date.now(),e=0;e<Ee[He].length;++e)Ee[He][e].length>2&&(Ee[He][e][3]=t,Ee[He][e][4]=t);wd()}function wd(){if(clearTimeout(Ru),Ru=void 0,Ee[He].length!==0){var t=Ee[He].shift(),e=t[0],n=t[1],r=t[2],i=t[3],s=t[4];if(i===void 0)zr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-i>=6e4){zr("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,r)}else{var a=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);a>=u?(zr("RETRY",e.name,n),e.apply(null,n.concat([i]))):Ee[He].push(t)}Ru===void 0&&(Ru=setTimeout(wd,0))}}});var Iu=x((xre,bD)=>{"use strict";var tn=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";tn.writable=t=>tn(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";tn.readable=t=>tn(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";tn.duplex=t=>tn.writable(t)&&tn.readable(t);tn.transform=t=>tn.duplex(t)&&typeof t._transform=="function";bD.exports=tn});var Ao=x((_re,Dd)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Dd.exports={nextTick:xq}:Dd.exports=process;function xq(t,e,n,r){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,o;switch(i){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,n)});case 4:return process.nextTick(function(){t.call(null,e,n,r)});default:for(s=new Array(i-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var xD=x((Dre,wD)=>{"use strict";var _q={}.toString;wD.exports=Array.isArray||function(t){return _q.call(t)=="[object Array]"}});var vd=x((vre,_D)=>{"use strict";_D.exports=N("stream")});var Pu=x((Sd,vD)=>{"use strict";var Lu=N("buffer"),nn=Lu.Buffer;function DD(t,e){for(var n in t)e[n]=t[n]}nn.from&&nn.alloc&&nn.allocUnsafe&&nn.allocUnsafeSlow?vD.exports=Lu:(DD(Lu,Sd),Sd.Buffer=Wr);function Wr(t,e,n){return nn(t,e,n)}Wr.prototype=Object.create(nn.prototype);DD(nn,Wr);Wr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nn(t,e,n)};Wr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var r=nn(t);return e!==void 0?typeof n=="string"?r.fill(e,n):r.fill(e):r.fill(0),r};Wr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nn(t)};Wr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Lu.SlowBuffer(t)}});var Gi=x(tt=>{"use strict";function Dq(t){return Array.isArray?Array.isArray(t):qu(t)==="[object Array]"}tt.isArray=Dq;function vq(t){return typeof t=="boolean"}tt.isBoolean=vq;function Sq(t){return t===null}tt.isNull=Sq;function Eq(t){return t==null}tt.isNullOrUndefined=Eq;function kq(t){return typeof t=="number"}tt.isNumber=kq;function Tq(t){return typeof t=="string"}tt.isString=Tq;function Aq(t){return typeof t=="symbol"}tt.isSymbol=Aq;function Cq(t){return t===void 0}tt.isUndefined=Cq;function Fq(t){return qu(t)==="[object RegExp]"}tt.isRegExp=Fq;function Rq(t){return typeof t=="object"&&t!==null}tt.isObject=Rq;function Oq(t){return qu(t)==="[object Date]"}tt.isDate=Oq;function Iq(t){return qu(t)==="[object Error]"||t instanceof Error}tt.isError=Iq;function Lq(t){return typeof t=="function"}tt.isFunction=Lq;function Pq(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}tt.isPrimitive=Pq;tt.isBuffer=N("buffer").Buffer.isBuffer;function qu(t){return Object.prototype.toString.call(t)}});var SD=x((Ere,Ed)=>{"use strict";typeof Object.create=="function"?Ed.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ed.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}});var Vi=x((kre,Td)=>{"use strict";try{if(kd=N("util"),typeof kd.inherits!="function")throw"";Td.exports=kd.inherits}catch{Td.exports=SD()}var kd});var kD=x((Tre,Ad)=>{"use strict";function qq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var ED=Pu().Buffer,Co=N("util");function Mq(t,e,n){t.copy(e,n)}Ad.exports=function(){function t(){qq(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length},t.prototype.unshift=function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length},t.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(n){if(this.length===0)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=n+r.data;return i},t.prototype.concat=function(n){if(this.length===0)return ED.alloc(0);for(var r=ED.allocUnsafe(n>>>0),i=this.head,s=0;i;)Mq(i.data,r,s),s+=i.data.length,i=i.next;return r},t}();Co&&Co.inspect&&Co.inspect.custom&&(Ad.exports.prototype[Co.inspect.custom]=function(){var t=Co.inspect({length:this.length});return this.constructor.name+" "+t})});var Cd=x((Are,TD)=>{"use strict";var Mu=Ao();function Nq(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Mu.nextTick(Nu,this,t)):Mu.nextTick(Nu,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,Mu.nextTick(Nu,n,s)):Mu.nextTick(Nu,n,s):e&&e(s)}),this)}function Bq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Nu(t,e){t.emit("error",e)}TD.exports={destroy:Nq,undestroy:Bq}});var CD=x((Cre,AD)=>{"use strict";AD.exports=N("util").deprecate});var Rd=x((Fre,MD)=>{"use strict";var $r=Ao();MD.exports=Oe;function RD(t){var e=this;this.next=null,this.entry=null,this.finish=function(){rM(e,t)}}var jq=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:$r.nextTick,Yi;Oe.WritableState=Ro;var OD=Object.create(Gi());OD.inherits=Vi();var Uq={deprecate:CD()},ID=vd(),ju=Pu().Buffer,zq=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Wq(t){return ju.from(t)}function $q(t){return ju.isBuffer(t)||t instanceof zq}var LD=Cd();OD.inherits(Oe,ID);function Hq(){}function Ro(t,e){Yi=Yi||Hr(),t=t||{};var n=e instanceof Yi;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,i=t.writableHighWaterMark,s=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){Jq(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new RD(this)}Ro.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(Ro.prototype,"buffer",{get:Uq.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Bu;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Bu=Function.prototype[Symbol.hasInstance],Object.defineProperty(Oe,Symbol.hasInstance,{value:function(t){return Bu.call(this,t)?!0:this!==Oe?!1:t&&t._writableState instanceof Ro}})):Bu=function(t){return t instanceof this};function Oe(t){if(Yi=Yi||Hr(),!Bu.call(Oe,this)&&!(this instanceof Yi))return new Oe(t);this._writableState=new Ro(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),ID.call(this)}Oe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Gq(t,e){var n=new Error("write after end");t.emit("error",n),$r.nextTick(e,n)}function Vq(t,e,n,r){var i=!0,s=!1;return n===null?s=new TypeError("May not write null values to stream"):typeof n!="string"&&n!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),$r.nextTick(r,s),i=!1),i}Oe.prototype.write=function(t,e,n){var r=this._writableState,i=!1,s=!r.objectMode&&$q(t);return s&&!ju.isBuffer(t)&&(t=Wq(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=r.defaultEncoding),typeof n!="function"&&(n=Hq),r.ended?Gq(this,n):(s||Vq(this,r,t,n))&&(r.pendingcb++,i=Kq(this,r,s,t,e,n)),i};Oe.prototype.cork=function(){var t=this._writableState;t.corked++};Oe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&PD(this,t))};Oe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function Yq(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ju.from(e,n)),e}Object.defineProperty(Oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kq(t,e,n,r,i,s){if(!n){var o=Yq(e,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=e.objectMode?1:r.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Fd(t,e,!1,a,r,i,s);return l}function Fd(t,e,n,r,i,s,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function Qq(t,e,n,r,i){--e.pendingcb,n?($r.nextTick(i,r),$r.nextTick(Fo,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),Fo(t,e))}function Zq(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Jq(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(Zq(n),e)Qq(t,n,r,e,i);else{var s=qD(n);!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&PD(t,n),r?jq(FD,t,n,s,i):FD(t,n,s,i)}}function FD(t,e,n,r){n||Xq(t,e),e.pendingcb--,r(),Fo(t,e)}function Xq(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function PD(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var o=0,a=!0;n;)i[o]=n,n.isBuf||(a=!1),n=n.next,o+=1;i.allBuffers=a,Fd(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new RD(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,c=n.callback,f=e.objectMode?1:l.length;if(Fd(t,e,!1,f,l,u,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}Oe.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))};Oe.prototype._writev=null;Oe.prototype.end=function(t,e,n){var r=this._writableState;typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||nM(this,r,n)};function qD(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function eM(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),Fo(t,e)})}function tM(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,$r.nextTick(eM,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Fo(t,e){var n=qD(e);return n&&(tM(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),n}function nM(t,e,n){e.ending=!0,Fo(t,e),n&&(e.finished?$r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function rM(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}Object.defineProperty(Oe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Oe.prototype.destroy=LD.destroy;Oe.prototype._undestroy=LD.undestroy;Oe.prototype._destroy=function(t,e){this.end(),e(t)}});var Hr=x((Rre,UD)=>{"use strict";var ND=Ao(),iM=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};UD.exports=kn;var BD=Object.create(Gi());BD.inherits=Vi();var jD=Ld(),Id=Rd();BD.inherits(kn,jD);for(Od=iM(Id.prototype),Uu=0;Uu<Od.length;Uu++)zu=Od[Uu],kn.prototype[zu]||(kn.prototype[zu]=Id.prototype[zu]);var Od,zu,Uu;function kn(t){if(!(this instanceof kn))return new kn(t);jD.call(this,t),Id.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",sM)}Object.defineProperty(kn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function sM(){this.allowHalfOpen||this._writableState.ended||ND.nextTick(oM,this)}function oM(t){t.end()}Object.defineProperty(kn.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});kn.prototype._destroy=function(t,e){this.push(null),this.end(),ND.nextTick(e,t)}});var Ld=x((Ire,XD)=>{"use strict";var Qi=Ao();XD.exports=we;var aM=xD(),Oo;we.ReadableState=YD;var Ore=N("events").EventEmitter,HD=function(t,e){return t.listeners(e).length},Bd=vd(),Io=Pu().Buffer,lM=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function uM(t){return Io.from(t)}function cM(t){return Io.isBuffer(t)||t instanceof lM}var GD=Object.create(Gi());GD.inherits=Vi();var Pd=N("util"),he=void 0;Pd&&Pd.debuglog?he=Pd.debuglog("stream"):he=function(){};var fM=kD(),VD=Cd(),Ki;GD.inherits(we,Bd);var qd=["error","close","destroy","pause","resume"];function hM(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):aM(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function YD(t,e){Oo=Oo||Hr(),t=t||{};var n=e instanceof Oo;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=t.readableHighWaterMark,s=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new fM,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ki||(Ki=N("string_decoder").StringDecoder),this.decoder=new Ki(t.encoding),this.encoding=t.encoding)}function we(t){if(Oo=Oo||Hr(),!(this instanceof we))return new we(t);this._readableState=new YD(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Bd.call(this)}Object.defineProperty(we.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});we.prototype.destroy=VD.destroy;we.prototype._undestroy=VD.undestroy;we.prototype._destroy=function(t,e){this.push(null),e(t)};we.prototype.push=function(t,e){var n=this._readableState,r;return n.objectMode?r=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=Io.from(t,e),e=""),r=!0),KD(this,t,e,!1,r)};we.prototype.unshift=function(t){return KD(this,t,null,!0,!1)};function KD(t,e,n,r,i){var s=t._readableState;if(e===null)s.reading=!1,gM(t,s);else{var o;i||(o=pM(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Io.prototype&&(e=uM(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):Md(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||e.length!==0?Md(t,s,e,!1):QD(t,s)):Md(t,s,e,!1))):r||(s.reading=!1)}return dM(s)}function Md(t,e,n,r){e.flowing&&e.length===0&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Wu(t)),QD(t,e)}function pM(t,e){var n;return!cM(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}function dM(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}we.prototype.isPaused=function(){return this._readableState.flowing===!1};we.prototype.setEncoding=function(t){return Ki||(Ki=N("string_decoder").StringDecoder),this._readableState.decoder=new Ki(t),this._readableState.encoding=t,this};var zD=8388608;function mM(t){return t>=zD?t=zD:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function WD(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=mM(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}we.prototype.read=function(t){he("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return he("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Nd(this):Wu(this),null;if(t=WD(t,e),t===0&&e.ended)return e.length===0&&Nd(this),null;var r=e.needReadable;he("need readable",r),(e.length===0||e.length-t<e.highWaterMark)&&(r=!0,he("length less than watermark",r)),e.ended||e.reading?(r=!1,he("reading or ended",r)):r&&(he("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=WD(n,e)));var i;return t>0?i=ZD(t,e):i=null,i===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Nd(this)),i!==null&&this.emit("data",i),i};function gM(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,Wu(t)}}function Wu(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(he("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Qi.nextTick($D,t):$D(t))}function $D(t){he("emit readable"),t.emit("readable"),jd(t)}function QD(t,e){e.readingMore||(e.readingMore=!0,Qi.nextTick(yM,t,e))}function yM(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(he("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}we.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};we.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t);break}r.pipesCount+=1,he("pipe count=%d opts=%j",r.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:k;r.endEmitted?Qi.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(g,m){he("onunpipe"),g===n&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){he("onend"),t.end()}var l=bM(n);t.on("drain",l);var u=!1;function c(){he("cleanup"),t.removeListener("close",b),t.removeListener("finish",y),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",k),n.removeListener("data",h),u=!0,r.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var f=!1;n.on("data",h);function h(g){he("ondata"),f=!1;var m=t.write(g);m===!1&&!f&&((r.pipesCount===1&&r.pipes===t||r.pipesCount>1&&JD(r.pipes,t)!==-1)&&!u&&(he("false write response, pause",r.awaitDrain),r.awaitDrain++,f=!0),n.pause())}function p(g){he("onerror",g),k(),t.removeListener("error",p),HD(t,"error")===0&&t.emit("error",g)}hM(t,"error",p);function b(){t.removeListener("finish",y),k()}t.once("close",b);function y(){he("onfinish"),t.removeListener("close",b),k()}t.once("finish",y);function k(){he("unpipe"),n.unpipe(t)}return t.emit("pipe",n),r.flowing||(he("pipe resume"),n.resume()),t};function bM(t){return function(){var e=t._readableState;he("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&HD(t,"data")&&(e.flowing=!0,jd(t))}}we.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=JD(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};we.prototype.on=function(t,e){var n=Bd.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var r=this._readableState;!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Wu(this):Qi.nextTick(wM,this))}return n};we.prototype.addListener=we.prototype.on;function wM(t){he("readable nexttick read 0"),t.read(0)}we.prototype.resume=function(){var t=this._readableState;return t.flowing||(he("resume"),t.flowing=!0,xM(this,t)),this};function xM(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Qi.nextTick(_M,t,e))}function _M(t,e){e.reading||(he("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),jd(t),e.flowing&&!e.reading&&t.read(0)}we.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function jd(t){var e=t._readableState;for(he("flow",e.flowing);e.flowing&&t.read()!==null;);}we.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;t.on("end",function(){if(he("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(he("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var a=e.push(o);a||(r=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(o){return function(){return t[o].apply(t,arguments)}}(i));for(var s=0;s<qd.length;s++)t.on(qd[s],this.emit.bind(this,qd[s]));return this._read=function(o){he("wrapped _read",o),r&&(r=!1,t.resume())},this};Object.defineProperty(we.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});we._fromList=ZD;function ZD(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.head.data:n=e.buffer.concat(e.length),e.buffer.clear()):n=DM(t,e.buffer,e.decoder),n}function DM(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?r=e.shift():r=n?vM(t,e):SM(t,e),r}function vM(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var s=n.data,o=t>s.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),t-=o,t===0){o===s.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(o));break}++r}return e.length-=r,i}function SM(t,e){var n=Io.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function Nd(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Qi.nextTick(EM,e,t))}function EM(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function JD(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}});var Ud=x((Lre,nv)=>{"use strict";nv.exports=Tn;var $u=Hr(),tv=Object.create(Gi());tv.inherits=Vi();tv.inherits(Tn,$u);function kM(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,e!=null&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Tn(t){if(!(this instanceof Tn))return new Tn(t);$u.call(this,t),this._transformState={afterTransform:kM.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",TM)}function TM(){var t=this;typeof this._flush=="function"?this._flush(function(e,n){ev(t,e,n)}):ev(this,null,null)}Tn.prototype.push=function(t,e){return this._transformState.needTransform=!1,$u.prototype.push.call(this,t,e)};Tn.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")};Tn.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Tn.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Tn.prototype._destroy=function(t,e){var n=this;$u.prototype._destroy.call(this,t,function(r){e(r),n.emit("close")})};function ev(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var ov=x((Pre,sv)=>{"use strict";sv.exports=Lo;var rv=Ud(),iv=Object.create(Gi());iv.inherits=Vi();iv.inherits(Lo,rv);function Lo(t){if(!(this instanceof Lo))return new Lo(t);rv.call(this,t)}Lo.prototype._transform=function(t,e,n){n(null,t)}});var av=x((Ge,Hu)=>{"use strict";var rn=N("stream");process.env.READABLE_STREAM==="disable"&&rn?(Hu.exports=rn,Ge=Hu.exports=rn.Readable,Ge.Readable=rn.Readable,Ge.Writable=rn.Writable,Ge.Duplex=rn.Duplex,Ge.Transform=rn.Transform,Ge.PassThrough=rn.PassThrough,Ge.Stream=rn):(Ge=Hu.exports=Ld(),Ge.Stream=rn||Ge,Ge.Readable=Ge,Ge.Writable=Rd(),Ge.Duplex=Hr(),Ge.Transform=Ud(),Ge.PassThrough=ov())});var uv=x((qre,lv)=>{"use strict";lv.exports=av().PassThrough});var pv=x((Mre,hv)=>{"use strict";var cv=N("util"),Yu=uv();hv.exports={Readable:Gu,Writable:Vu};cv.inherits(Gu,Yu);cv.inherits(Vu,Yu);function fv(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function Gu(t,e){if(!(this instanceof Gu))return new Gu(t,e);Yu.call(this,e),fv(this,"_read",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),n.pipe(this)}),this.emit("readable")}function Vu(t,e){if(!(this instanceof Vu))return new Vu(t,e);Yu.call(this,e),fv(this,"_write",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),this.pipe(n)}),this.emit("writable")}});var zd=x((Nre,dv)=>{"use strict";dv.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var n=t.length;if(n<=1)return t;var r="";if(n>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),r+s.join("/")}});var Wd=x((Bre,mv)=>{"use strict";function AM(t){return t}mv.exports=AM});var yv=x((jre,gv)=>{"use strict";function CM(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}gv.exports=CM});var xv=x((Ure,wv)=>{"use strict";var FM=yv(),bv=Math.max;function RM(t,e,n){return e=bv(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=bv(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),FM(t,this,a)}}wv.exports=RM});var Dv=x((zre,_v)=>{"use strict";function OM(t){return function(){return t}}_v.exports=OM});var $d=x((Wre,vv)=>{"use strict";var IM=typeof global=="object"&&global&&global.Object===Object&&global;vv.exports=IM});var Zi=x(($re,Sv)=>{"use strict";var LM=$d(),PM=typeof self=="object"&&self&&self.Object===Object&&self,qM=LM||PM||Function("return this")();Sv.exports=qM});var Ku=x((Hre,Ev)=>{"use strict";var MM=Zi(),NM=MM.Symbol;Ev.exports=NM});var Cv=x((Gre,Av)=>{"use strict";var kv=Ku(),Tv=Object.prototype,BM=Tv.hasOwnProperty,jM=Tv.toString,Po=kv?kv.toStringTag:void 0;function UM(t){var e=BM.call(t,Po),n=t[Po];try{t[Po]=void 0;var r=!0}catch{}var i=jM.call(t);return r&&(e?t[Po]=n:delete t[Po]),i}Av.exports=UM});var Rv=x((Vre,Fv)=>{"use strict";var zM=Object.prototype,WM=zM.toString;function $M(t){return WM.call(t)}Fv.exports=$M});var qo=x((Yre,Lv)=>{"use strict";var Ov=Ku(),HM=Cv(),GM=Rv(),VM="[object Null]",YM="[object Undefined]",Iv=Ov?Ov.toStringTag:void 0;function KM(t){return t==null?t===void 0?YM:VM:Iv&&Iv in Object(t)?HM(t):GM(t)}Lv.exports=KM});var Mo=x((Kre,Pv)=>{"use strict";function QM(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Pv.exports=QM});var Hd=x((Qre,qv)=>{"use strict";var ZM=qo(),JM=Mo(),XM="[object AsyncFunction]",eN="[object Function]",tN="[object GeneratorFunction]",nN="[object Proxy]";function rN(t){if(!JM(t))return!1;var e=ZM(t);return e==eN||e==tN||e==XM||e==nN}qv.exports=rN});var Nv=x((Zre,Mv)=>{"use strict";var iN=Zi(),sN=iN["__core-js_shared__"];Mv.exports=sN});var Uv=x((Jre,jv)=>{"use strict";var Gd=Nv(),Bv=function(){var t=/[^.]+$/.exec(Gd&&Gd.keys&&Gd.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function oN(t){return!!Bv&&Bv in t}jv.exports=oN});var Wv=x((Xre,zv)=>{"use strict";var aN=Function.prototype,lN=aN.toString;function uN(t){if(t!=null){try{return lN.call(t)}catch{}try{return t+""}catch{}}return""}zv.exports=uN});var Hv=x((eie,$v)=>{"use strict";var cN=Hd(),fN=Uv(),hN=Mo(),pN=Wv(),dN=/[\\^$.*+?()[\]{}|]/g,mN=/^\[object .+?Constructor\]$/,gN=Function.prototype,yN=Object.prototype,bN=gN.toString,wN=yN.hasOwnProperty,xN=RegExp("^"+bN.call(wN).replace(dN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _N(t){if(!hN(t)||fN(t))return!1;var e=cN(t)?xN:mN;return e.test(pN(t))}$v.exports=_N});var Vv=x((tie,Gv)=>{"use strict";function DN(t,e){return t?.[e]}Gv.exports=DN});var No=x((nie,Yv)=>{"use strict";var vN=Hv(),SN=Vv();function EN(t,e){var n=SN(t,e);return vN(n)?n:void 0}Yv.exports=EN});var Qv=x((rie,Kv)=>{"use strict";var kN=No(),TN=function(){try{var t=kN(Object,"defineProperty");return t({},"",{}),t}catch{}}();Kv.exports=TN});var Xv=x((iie,Jv)=>{"use strict";var AN=Dv(),Zv=Qv(),CN=Wd(),FN=Zv?function(t,e){return Zv(t,"toString",{configurable:!0,enumerable:!1,value:AN(e),writable:!0})}:CN;Jv.exports=FN});var t1=x((sie,e1)=>{"use strict";var RN=800,ON=16,IN=Date.now;function LN(t){var e=0,n=0;return function(){var r=IN(),i=ON-(r-n);if(n=r,i>0){if(++e>=RN)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}e1.exports=LN});var r1=x((oie,n1)=>{"use strict";var PN=Xv(),qN=t1(),MN=qN(PN);n1.exports=MN});var Qu=x((aie,i1)=>{"use strict";var NN=Wd(),BN=xv(),jN=r1();function UN(t,e){return jN(BN(t,e,NN),t+"")}i1.exports=UN});var Zu=x((lie,s1)=>{"use strict";function zN(t,e){return t===e||t!==t&&e!==e}s1.exports=zN});var Vd=x((uie,o1)=>{"use strict";var WN=9007199254740991;function $N(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=WN}o1.exports=$N});var Ju=x((cie,a1)=>{"use strict";var HN=Hd(),GN=Vd();function VN(t){return t!=null&&GN(t.length)&&!HN(t)}a1.exports=VN});var Yd=x((fie,l1)=>{"use strict";var YN=9007199254740991,KN=/^(?:0|[1-9]\d*)$/;function QN(t,e){var n=typeof t;return e=e??YN,!!e&&(n=="number"||n!="symbol"&&KN.test(t))&&t>-1&&t%1==0&&t<e}l1.exports=QN});var c1=x((hie,u1)=>{"use strict";var ZN=Zu(),JN=Ju(),XN=Yd(),eB=Mo();function tB(t,e,n){if(!eB(n))return!1;var r=typeof e;return(r=="number"?JN(n)&&XN(e,n.length):r=="string"&&e in n)?ZN(n[e],t):!1}u1.exports=tB});var h1=x((pie,f1)=>{"use strict";function nB(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}f1.exports=nB});var Ji=x((die,p1)=>{"use strict";function rB(t){return t!=null&&typeof t=="object"}p1.exports=rB});var m1=x((mie,d1)=>{"use strict";var iB=qo(),sB=Ji(),oB="[object Arguments]";function aB(t){return sB(t)&&iB(t)==oB}d1.exports=aB});var Kd=x((gie,b1)=>{"use strict";var g1=m1(),lB=Ji(),y1=Object.prototype,uB=y1.hasOwnProperty,cB=y1.propertyIsEnumerable,fB=g1(function(){return arguments}())?g1:function(t){return lB(t)&&uB.call(t,"callee")&&!cB.call(t,"callee")};b1.exports=fB});var Qd=x((yie,w1)=>{"use strict";var hB=Array.isArray;w1.exports=hB});var _1=x((bie,x1)=>{"use strict";function pB(){return!1}x1.exports=pB});var E1=x((Bo,Xi)=>{"use strict";var dB=Zi(),mB=_1(),S1=typeof Bo=="object"&&Bo&&!Bo.nodeType&&Bo,D1=S1&&typeof Xi=="object"&&Xi&&!Xi.nodeType&&Xi,gB=D1&&D1.exports===S1,v1=gB?dB.Buffer:void 0,yB=v1?v1.isBuffer:void 0,bB=yB||mB;Xi.exports=bB});var T1=x((wie,k1)=>{"use strict";var wB=qo(),xB=Vd(),_B=Ji(),DB="[object Arguments]",vB="[object Array]",SB="[object Boolean]",EB="[object Date]",kB="[object Error]",TB="[object Function]",AB="[object Map]",CB="[object Number]",FB="[object Object]",RB="[object RegExp]",OB="[object Set]",IB="[object String]",LB="[object WeakMap]",PB="[object ArrayBuffer]",qB="[object DataView]",MB="[object Float32Array]",NB="[object Float64Array]",BB="[object Int8Array]",jB="[object Int16Array]",UB="[object Int32Array]",zB="[object Uint8Array]",WB="[object Uint8ClampedArray]",$B="[object Uint16Array]",HB="[object Uint32Array]",xe={};xe[MB]=xe[NB]=xe[BB]=xe[jB]=xe[UB]=xe[zB]=xe[WB]=xe[$B]=xe[HB]=!0;xe[DB]=xe[vB]=xe[PB]=xe[SB]=xe[qB]=xe[EB]=xe[kB]=xe[TB]=xe[AB]=xe[CB]=xe[FB]=xe[RB]=xe[OB]=xe[IB]=xe[LB]=!1;function GB(t){return _B(t)&&xB(t.length)&&!!xe[wB(t)]}k1.exports=GB});var Zd=x((xie,A1)=>{"use strict";function VB(t){return function(e){return t(e)}}A1.exports=VB});var F1=x((jo,es)=>{"use strict";var YB=$d(),C1=typeof jo=="object"&&jo&&!jo.nodeType&&jo,Uo=C1&&typeof es=="object"&&es&&!es.nodeType&&es,KB=Uo&&Uo.exports===C1,Jd=KB&&YB.process,QB=function(){try{var t=Uo&&Uo.require&&Uo.require("util").types;return t||Jd&&Jd.binding&&Jd.binding("util")}catch{}}();es.exports=QB});var L1=x((_ie,I1)=>{"use strict";var ZB=T1(),JB=Zd(),R1=F1(),O1=R1&&R1.isTypedArray,XB=O1?JB(O1):ZB;I1.exports=XB});var q1=x((Die,P1)=>{"use strict";var e5=h1(),t5=Kd(),n5=Qd(),r5=E1(),i5=Yd(),s5=L1(),o5=Object.prototype,a5=o5.hasOwnProperty;function l5(t,e){var n=n5(t),r=!n&&t5(t),i=!n&&!r&&r5(t),s=!n&&!r&&!i&&s5(t),o=n||r||i||s,a=o?e5(t.length,String):[],l=a.length;for(var u in t)(e||a5.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||i5(u,l)))&&a.push(u);return a}P1.exports=l5});var N1=x((vie,M1)=>{"use strict";var u5=Object.prototype;function c5(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||u5;return t===n}M1.exports=c5});var j1=x((Sie,B1)=>{"use strict";function f5(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}B1.exports=f5});var z1=x((Eie,U1)=>{"use strict";var h5=Mo(),p5=N1(),d5=j1(),m5=Object.prototype,g5=m5.hasOwnProperty;function y5(t){if(!h5(t))return d5(t);var e=p5(t),n=[];for(var r in t)r=="constructor"&&(e||!g5.call(t,r))||n.push(r);return n}U1.exports=y5});var $1=x((kie,W1)=>{"use strict";var b5=q1(),w5=z1(),x5=Ju();function _5(t){return x5(t)?b5(t,!0):w5(t)}W1.exports=_5});var V1=x((Tie,G1)=>{"use strict";var D5=Qu(),v5=Zu(),S5=c1(),E5=$1(),H1=Object.prototype,k5=H1.hasOwnProperty,T5=D5(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&S5(e[0],e[1],i)&&(r=1);++n<r;)for(var s=e[n],o=E5(s),a=-1,l=o.length;++a<l;){var u=o[a],c=t[u];(c===void 0||v5(c,H1[u])&&!k5.call(t,u))&&(t[u]=s[u])}return t});G1.exports=T5});var Se=x((Aie,Y1)=>{"use strict";var Xd=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let n="";for(let r=0;r<e.length;r++)n+=` ${e[r].stack}
|
|
43
|
-
`;super(n),this.name="AggregateError",this.errors=e}};Y1.exports={AggregateError:Xd,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,n){return t.slice(e,n)},Error,FunctionPrototypeCall(t,e,...n){return t.call(e,...n)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,n){return Object.defineProperty(t,e,n)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,n){return t.then(e,n)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,n){return t.slice(e,n)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,n){return t.set(e,n)},Boolean,Uint8Array}});var em=x((Cie,K1)=>{"use strict";K1.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[n,r]){let i=e.shift();return r==="f"?i.toFixed(6):r==="j"?JSON.stringify(i):r==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var nt=x((Fie,J1)=>{"use strict";var{format:A5,inspect:Xu}=em(),{AggregateError:C5}=Se(),F5=globalThis.AggregateError||C5,R5=Symbol("kIsNodeError"),O5=["string","function","number","object","Function","Object","boolean","bigint","symbol"],I5=/^([A-Z][a-z0-9]*)+$/,L5="__node_internal_",ec={};function Gr(t,e){if(!t)throw new ec.ERR_INTERNAL_ASSERTION(e)}function Q1(t){let e="",n=t.length,r=t[0]==="-"?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function P5(t,e,n){if(typeof e=="function")return Gr(e.length<=n.length,`Code: ${t}; The provided arguments length (${n.length}) does not match the required ones (${e.length}).`),e(...n);let r=(e.match(/%[dfijoOs]/g)||[]).length;return Gr(r===n.length,`Code: ${t}; The provided arguments length (${n.length}) does not match the required ones (${r}).`),n.length===0?e:A5(e,...n)}function Ve(t,e,n){n||(n=Error);class r extends n{constructor(...s){super(P5(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=t,r.prototype[R5]=!0,ec[t]=r}function Z1(t){let e=L5+t.name;return Object.defineProperty(t,"name",{value:e}),t}function q5(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let n=new F5([e,t],e.message);return n.code=e.code,n}return t||e}var tm=class extends Error{constructor(e="The operation was aborted",n=void 0){if(n!==void 0&&typeof n!="object")throw new ec.ERR_INVALID_ARG_TYPE("options","Object",n);super(e,n),this.code="ABORT_ERR",this.name="AbortError"}};Ve("ERR_ASSERTION","%s",Error);Ve("ERR_INVALID_ARG_TYPE",(t,e,n)=>{Gr(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let r="The ";t.endsWith(" argument")?r+=`${t} `:r+=`"${t}" ${t.includes(".")?"property":"argument"} `,r+="must be ";let i=[],s=[],o=[];for(let l of e)Gr(typeof l=="string","All expected entries have to be of type string"),O5.includes(l)?i.push(l.toLowerCase()):I5.test(l)?s.push(l):(Gr(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();r+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(r+=" or ")}if(s.length>0){switch(s.length){case 1:r+=`an instance of ${s[0]}`;break;case 2:r+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();r+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(r+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(r+="an "),r+=`${o[0]}`;break;case 2:r+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();r+=`one of ${o.join(", ")}, or ${l}`}}if(n==null)r+=`. Received ${n}`;else if(typeof n=="function"&&n.name)r+=`. Received function ${n.name}`;else if(typeof n=="object"){var a;if((a=n.constructor)!==null&&a!==void 0&&a.name)r+=`. Received an instance of ${n.constructor.name}`;else{let l=Xu(n,{depth:-1});r+=`. Received ${l}`}}else{let l=Xu(n,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),r+=`. Received type ${typeof n} (${l})`}return r},TypeError);Ve("ERR_INVALID_ARG_VALUE",(t,e,n="is invalid")=>{let r=Xu(e);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${n}. Received ${r}`},TypeError);Ve("ERR_INVALID_RETURN_VALUE",(t,e,n)=>{var r;let i=n!=null&&(r=n.constructor)!==null&&r!==void 0&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);Ve("ERR_MISSING_ARGS",(...t)=>{Gr(t.length>0,"At least one arg needs to be specified");let e,n=t.length;switch(t=(Array.isArray(t)?t:[t]).map(r=>`"${r}"`).join(" or "),n){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}break}return`${e} must be specified`},TypeError);Ve("ERR_OUT_OF_RANGE",(t,e,n)=>{Gr(e,'Missing "range" argument');let r;if(Number.isInteger(n)&&Math.abs(n)>2**32)r=Q1(String(n));else if(typeof n=="bigint"){r=String(n);let i=BigInt(2)**BigInt(32);(n>i||n<-i)&&(r=Q1(r)),r+="n"}else r=Xu(n);return`The value of "${t}" is out of range. It must be ${e}. Received ${r}`},RangeError);Ve("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Ve("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Ve("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Ve("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Ve("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Ve("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ve("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Ve("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Ve("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Ve("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Ve("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);J1.exports={AbortError:tm,aggregateTwoErrors:Z1(q5),hideStackFrames:Z1,codes:ec}});var lS=x(($o,Wo)=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});var iS=new WeakMap,nm=new WeakMap;function _e(t){let e=iS.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function X1(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function ts(t,e){iS.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let n=Object.keys(e);for(let r=0;r<n.length;++r){let i=n[r];i in this||Object.defineProperty(this,i,sS(i))}}ts.prototype={get type(){return _e(this).event.type},get target(){return _e(this).eventTarget},get currentTarget(){return _e(this).currentTarget},composedPath(){let t=_e(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return _e(this).eventPhase},stopPropagation(){let t=_e(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=_e(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!_e(this).event.bubbles},get cancelable(){return!!_e(this).event.cancelable},preventDefault(){X1(_e(this))},get defaultPrevented(){return _e(this).canceled},get composed(){return!!_e(this).event.composed},get timeStamp(){return _e(this).timeStamp},get srcElement(){return _e(this).eventTarget},get cancelBubble(){return _e(this).stopped},set cancelBubble(t){if(!t)return;let e=_e(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!_e(this).canceled},set returnValue(t){t||X1(_e(this))},initEvent(){}};Object.defineProperty(ts.prototype,"constructor",{value:ts,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(ts.prototype,window.Event.prototype),nm.set(window.Event.prototype,ts));function sS(t){return{get(){return _e(this).event[t]},set(e){_e(this).event[t]=e},configurable:!0,enumerable:!0}}function M5(t){return{value(){let e=_e(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function N5(t,e){let n=Object.keys(e);if(n.length===0)return t;function r(i,s){t.call(this,i,s)}r.prototype=Object.create(t.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let i=0;i<n.length;++i){let s=n[i];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(r.prototype,s,a?M5(s):sS(s))}}return r}function oS(t){if(t==null||t===Object.prototype)return ts;let e=nm.get(t);return e==null&&(e=N5(oS(Object.getPrototypeOf(t)),t),nm.set(t,e)),e}function B5(t,e){let n=oS(Object.getPrototypeOf(e));return new n(t,e)}function j5(t){return _e(t).immediateStopped}function U5(t,e){_e(t).eventPhase=e}function z5(t,e){_e(t).currentTarget=e}function eS(t,e){_e(t).passiveListener=e}var aS=new WeakMap,tS=1,nS=2,tc=3;function nc(t){return t!==null&&typeof t=="object"}function zo(t){let e=aS.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function W5(t){return{get(){let n=zo(this).get(t);for(;n!=null;){if(n.listenerType===tc)return n.listener;n=n.next}return null},set(e){typeof e!="function"&&!nc(e)&&(e=null);let n=zo(this),r=null,i=n.get(t);for(;i!=null;)i.listenerType===tc?r!==null?r.next=i.next:i.next!==null?n.set(t,i.next):n.delete(t):r=i,i=i.next;if(e!==null){let s={listener:e,listenerType:tc,passive:!1,once:!1,next:null};r===null?n.set(t,s):r.next=s}},configurable:!0,enumerable:!0}}function rm(t,e){Object.defineProperty(t,`on${e}`,W5(e))}function rS(t){function e(){Gt.call(this)}e.prototype=Object.create(Gt.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let n=0;n<t.length;++n)rm(e.prototype,t[n]);return e}function Gt(){if(this instanceof Gt){aS.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return rS(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return rS(t)}throw new TypeError("Cannot call a class as a function")}Gt.prototype={addEventListener(t,e,n){if(e==null)return;if(typeof e!="function"&&!nc(e))throw new TypeError("'listener' should be a function or an object.");let r=zo(this),i=nc(n),o=(i?!!n.capture:!!n)?tS:nS,a={listener:e,listenerType:o,passive:i&&!!n.passive,once:i&&!!n.once,next:null},l=r.get(t);if(l===void 0){r.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,n){if(e==null)return;let r=zo(this),s=(nc(n)?!!n.capture:!!n)?tS:nS,o=null,a=r.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?r.set(t,a.next):r.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=zo(this),n=t.type,r=e.get(n);if(r==null)return!0;let i=B5(this,t),s=null;for(;r!=null;){if(r.once?s!==null?s.next=r.next:r.next!==null?e.set(n,r.next):e.delete(n):s=r,eS(i,r.passive?r.listener:null),typeof r.listener=="function")try{r.listener.call(this,i)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else r.listenerType!==tc&&typeof r.listener.handleEvent=="function"&&r.listener.handleEvent(i);if(j5(i))break;r=r.next}return eS(i,null),U5(i,0),z5(i,null),!i.defaultPrevented}};Object.defineProperty(Gt.prototype,"constructor",{value:Gt,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(Gt.prototype,window.EventTarget.prototype);$o.defineEventAttribute=rm;$o.EventTarget=Gt;$o.default=Gt;Wo.exports=Gt;Wo.exports.EventTarget=Wo.exports.default=Gt;Wo.exports.defineEventAttribute=rm});var ns=x((Go,Ho)=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});var im=lS(),tr=class extends im.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=rc.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};im.defineEventAttribute(tr.prototype,"abort");function $5(){let t=Object.create(tr.prototype);return im.EventTarget.call(t),rc.set(t,!1),t}function H5(t){rc.get(t)===!1&&(rc.set(t,!0),t.dispatchEvent({type:"abort"}))}var rc=new WeakMap;Object.defineProperties(tr.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(tr.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var nr=class{constructor(){cS.set(this,$5())}get signal(){return uS(this)}abort(){H5(uS(this))}},cS=new WeakMap;function uS(t){let e=cS.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(nr.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(nr.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Go.AbortController=nr;Go.AbortSignal=tr;Go.default=nr;Ho.exports=nr;Ho.exports.AbortController=Ho.exports.default=nr;Ho.exports.AbortSignal=tr});var lt=x((Rie,om)=>{"use strict";var G5=N("buffer"),{format:V5,inspect:Y5}=em(),{codes:{ERR_INVALID_ARG_TYPE:sm}}=nt(),{kResistStopPropagation:K5,AggregateError:Q5,SymbolDispose:Z5}=Se(),J5=globalThis.AbortSignal||ns().AbortSignal,X5=globalThis.AbortController||ns().AbortController,e6=Object.getPrototypeOf(async function(){}).constructor,fS=globalThis.Blob||G5.Blob,t6=typeof fS<"u"?function(e){return e instanceof fS}:function(e){return!1},hS=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new sm(e,"AbortSignal",t)},n6=(t,e)=>{if(typeof t!="function")throw new sm(e,"Function",t)};om.exports={AggregateError:Q5,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...n){e||(e=!0,t.apply(this,n))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}},promisify(t){return new Promise((e,n)=>{t((r,...i)=>r?n(r):e(...i))})},debuglog(){return function(){}},format:V5,inspect:Y5,types:{isAsyncFunction(t){return t instanceof e6},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:t6,deprecate(t,e){return t},addAbortListener:N("events").addAbortListener||function(e,n){if(e===void 0)throw new sm("signal","AbortSignal",e);hS(e,"signal"),n6(n,"listener");let r;return e.aborted?queueMicrotask(()=>n()):(e.addEventListener("abort",n,{__proto__:null,once:!0,[K5]:!0}),r=()=>{e.removeEventListener("abort",n)}),{__proto__:null,[Z5](){var i;(i=r)===null||i===void 0||i()}}},AbortSignalAny:J5.any||function(e){if(e.length===1)return e[0];let n=new X5,r=()=>n.abort();return e.forEach(i=>{hS(i,"signals"),i.addEventListener("abort",r,{once:!0})}),n.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",r))},{once:!0}),n.signal}};om.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var is=x((Oie,DS)=>{"use strict";var{ArrayIsArray:lm,ArrayPrototypeIncludes:gS,ArrayPrototypeJoin:yS,ArrayPrototypeMap:r6,NumberIsInteger:um,NumberIsNaN:i6,NumberMAX_SAFE_INTEGER:s6,NumberMIN_SAFE_INTEGER:o6,NumberParseInt:a6,ObjectPrototypeHasOwnProperty:l6,RegExpPrototypeExec:bS,String:u6,StringPrototypeToUpperCase:c6,StringPrototypeTrim:f6}=Se(),{hideStackFrames:It,codes:{ERR_SOCKET_BAD_PORT:h6,ERR_INVALID_ARG_TYPE:rt,ERR_INVALID_ARG_VALUE:rs,ERR_OUT_OF_RANGE:Vr,ERR_UNKNOWN_SIGNAL:pS}}=nt(),{normalizeEncoding:p6}=lt(),{isAsyncFunction:d6,isArrayBufferView:m6}=lt().types,dS={};function g6(t){return t===(t|0)}function y6(t){return t===t>>>0}var b6=/^[0-7]+$/,w6="must be a 32-bit unsigned integer or an octal string";function x6(t,e,n){if(typeof t>"u"&&(t=n),typeof t=="string"){if(bS(b6,t)===null)throw new rs(e,t,w6);t=a6(t,8)}return wS(t,e),t}var _6=It((t,e,n=o6,r=s6)=>{if(typeof t!="number")throw new rt(e,"number",t);if(!um(t))throw new Vr(e,"an integer",t);if(t<n||t>r)throw new Vr(e,`>= ${n} && <= ${r}`,t)}),D6=It((t,e,n=-2147483648,r=2147483647)=>{if(typeof t!="number")throw new rt(e,"number",t);if(!um(t))throw new Vr(e,"an integer",t);if(t<n||t>r)throw new Vr(e,`>= ${n} && <= ${r}`,t)}),wS=It((t,e,n=!1)=>{if(typeof t!="number")throw new rt(e,"number",t);if(!um(t))throw new Vr(e,"an integer",t);let r=n?1:0,i=4294967295;if(t<r||t>i)throw new Vr(e,`>= ${r} && <= ${i}`,t)});function cm(t,e){if(typeof t!="string")throw new rt(e,"string",t)}function v6(t,e,n=void 0,r){if(typeof t!="number")throw new rt(e,"number",t);if(n!=null&&t<n||r!=null&&t>r||(n!=null||r!=null)&&i6(t))throw new Vr(e,`${n!=null?`>= ${n}`:""}${n!=null&&r!=null?" && ":""}${r!=null?`<= ${r}`:""}`,t)}var S6=It((t,e,n)=>{if(!gS(n,t)){let i="must be one of: "+yS(r6(n,s=>typeof s=="string"?`'${s}'`:u6(s)),", ");throw new rs(e,t,i)}});function xS(t,e){if(typeof t!="boolean")throw new rt(e,"boolean",t)}function am(t,e,n){return t==null||!l6(t,e)?n:t[e]}var E6=It((t,e,n=null)=>{let r=am(n,"allowArray",!1),i=am(n,"allowFunction",!1);if(!am(n,"nullable",!1)&&t===null||!r&&lm(t)||typeof t!="object"&&(!i||typeof t!="function"))throw new rt(e,"Object",t)}),k6=It((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new rt(e,"a dictionary",t)}),ic=It((t,e,n=0)=>{if(!lm(t))throw new rt(e,"Array",t);if(t.length<n){let r=`must be longer than ${n}`;throw new rs(e,t,r)}});function T6(t,e){ic(t,e);for(let n=0;n<t.length;n++)cm(t[n],`${e}[${n}]`)}function A6(t,e){ic(t,e);for(let n=0;n<t.length;n++)xS(t[n],`${e}[${n}]`)}function C6(t,e){ic(t,e);for(let n=0;n<t.length;n++){let r=t[n],i=`${e}[${n}]`;if(r==null)throw new rt(i,"AbortSignal",r);_S(r,i)}}function F6(t,e="signal"){if(cm(t,e),dS[t]===void 0)throw dS[c6(t)]!==void 0?new pS(t+" (signals must use all capital letters)"):new pS(t)}var R6=It((t,e="buffer")=>{if(!m6(t))throw new rt(e,["Buffer","TypedArray","DataView"],t)});function O6(t,e){let n=p6(e),r=t.length;if(n==="hex"&&r%2!==0)throw new rs("encoding",e,`is invalid for data of length ${r}`)}function I6(t,e="Port",n=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&f6(t).length===0||+t!==+t>>>0||t>65535||t===0&&!n)throw new h6(e,t,n);return t|0}var _S=It((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new rt(e,"AbortSignal",t)}),L6=It((t,e)=>{if(typeof t!="function")throw new rt(e,"Function",t)}),P6=It((t,e)=>{if(typeof t!="function"||d6(t))throw new rt(e,"Function",t)}),q6=It((t,e)=>{if(t!==void 0)throw new rt(e,"undefined",t)});function M6(t,e,n){if(!gS(n,t))throw new rt(e,`('${yS(n,"|")}')`,t)}var N6=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function mS(t,e){if(typeof t>"u"||!bS(N6,t))throw new rs(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function B6(t){if(typeof t=="string")return mS(t,"hints"),t;if(lm(t)){let e=t.length,n="";if(e===0)return n;for(let r=0;r<e;r++){let i=t[r];mS(i,"hints"),n+=i,r!==e-1&&(n+=", ")}return n}throw new rs("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}DS.exports={isInt32:g6,isUint32:y6,parseFileMode:x6,validateArray:ic,validateStringArray:T6,validateBooleanArray:A6,validateAbortSignalArray:C6,validateBoolean:xS,validateBuffer:R6,validateDictionary:k6,validateEncoding:O6,validateFunction:L6,validateInt32:D6,validateInteger:_6,validateNumber:v6,validateObject:E6,validateOneOf:S6,validatePlainFunction:P6,validatePort:I6,validateSignalName:F6,validateString:cm,validateUint32:wS,validateUndefined:q6,validateUnion:M6,validateAbortSignal:_S,validateLinkHeaderValue:B6}});var rr=x((Iie,vS)=>{"use strict";vS.exports=global.process});var on=x((Lie,NS)=>{"use strict";var{SymbolAsyncIterator:SS,SymbolIterator:ES,SymbolFor:Yr}=Se(),kS=Yr("nodejs.stream.destroyed"),TS=Yr("nodejs.stream.errored"),fm=Yr("nodejs.stream.readable"),hm=Yr("nodejs.stream.writable"),AS=Yr("nodejs.stream.disturbed"),j6=Yr("nodejs.webstream.isClosedPromise"),U6=Yr("nodejs.webstream.controllerErrorFunction");function sc(t,e=!1){var n;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((n=t._readableState)===null||n===void 0?void 0:n.readable)!==!1)&&(!t._writableState||t._readableState))}function oc(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function z6(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function sn(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function CS(t){return!!(t&&!sn(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function FS(t){return!!(t&&!sn(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function RS(t){return!!(t&&!sn(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function W6(t){return CS(t)||FS(t)||RS(t)}function $6(t,e){return t==null?!1:e===!0?typeof t[SS]=="function":e===!1?typeof t[ES]=="function":typeof t[SS]=="function"||typeof t[ES]=="function"}function ac(t){if(!sn(t))return null;let e=t._writableState,n=t._readableState,r=e||n;return!!(t.destroyed||t[kS]||r!=null&&r.destroyed)}function OS(t){if(!oc(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function H6(t,e){if(!oc(t))return null;if(t.writableFinished===!0)return!0;let n=t._writableState;return n!=null&&n.errored?!1:typeof n?.finished!="boolean"?null:!!(n.finished||e===!1&&n.ended===!0&&n.length===0)}function G6(t){if(!sc(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function IS(t,e){if(!sc(t))return null;let n=t._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted!="boolean"?null:!!(n.endEmitted||e===!1&&n.ended===!0&&n.length===0)}function LS(t){return t&&t[fm]!=null?t[fm]:typeof t?.readable!="boolean"?null:ac(t)?!1:sc(t)&&t.readable&&!IS(t)}function PS(t){return t&&t[hm]!=null?t[hm]:typeof t?.writable!="boolean"?null:ac(t)?!1:oc(t)&&t.writable&&!OS(t)}function V6(t,e){return sn(t)?ac(t)?!0:!(e?.readable!==!1&&LS(t)||e?.writable!==!1&&PS(t)):null}function Y6(t){var e,n;return sn(t)?t.writableErrored?t.writableErrored:(e=(n=t._writableState)===null||n===void 0?void 0:n.errored)!==null&&e!==void 0?e:null:null}function K6(t){var e,n;return sn(t)?t.readableErrored?t.readableErrored:(e=(n=t._readableState)===null||n===void 0?void 0:n.errored)!==null&&e!==void 0?e:null:null}function Q6(t){if(!sn(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,n=t._readableState;return typeof e?.closed=="boolean"||typeof n?.closed=="boolean"?e?.closed||n?.closed:typeof t._closed=="boolean"&&qS(t)?t._closed:null}function qS(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function MS(t){return typeof t._sent100=="boolean"&&qS(t)}function Z6(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function J6(t){if(!sn(t))return null;let e=t._writableState,n=t._readableState,r=e||n;return!r&&MS(t)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function X6(t){var e;return!!(t&&((e=t[AS])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function e4(t){var e,n,r,i,s,o,a,l,u,c;return!!(t&&((e=(n=(r=(i=(s=(o=t[TS])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&i!==void 0?i:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&r!==void 0?r:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&n!==void 0?n:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((c=t._writableState)===null||c===void 0)&&c.errored))}NS.exports={isDestroyed:ac,kIsDestroyed:kS,isDisturbed:X6,kIsDisturbed:AS,isErrored:e4,kIsErrored:TS,isReadable:LS,kIsReadable:fm,kIsClosedPromise:j6,kControllerErrorFunction:U6,kIsWritable:hm,isClosed:Q6,isDuplexNodeStream:z6,isFinished:V6,isIterable:$6,isReadableNodeStream:sc,isReadableStream:CS,isReadableEnded:G6,isReadableFinished:IS,isReadableErrored:K6,isNodeStream:sn,isWebStream:W6,isWritable:PS,isWritableNodeStream:oc,isWritableStream:FS,isWritableEnded:OS,isWritableFinished:H6,isWritableErrored:Y6,isServerRequest:Z6,isServerResponse:MS,willEmitClose:J6,isTransformStream:RS}});var An=x((Pie,ym)=>{"use strict";var ir=rr(),{AbortError:VS,codes:t4}=nt(),{ERR_INVALID_ARG_TYPE:n4,ERR_STREAM_PREMATURE_CLOSE:BS}=t4,{kEmptyObject:dm,once:mm}=lt(),{validateAbortSignal:r4,validateFunction:i4,validateObject:s4,validateBoolean:o4}=is(),{Promise:a4,PromisePrototypeThen:l4,SymbolDispose:YS}=Se(),{isClosed:u4,isReadable:jS,isReadableNodeStream:pm,isReadableStream:c4,isReadableFinished:US,isReadableErrored:zS,isWritable:WS,isWritableNodeStream:$S,isWritableStream:f4,isWritableFinished:HS,isWritableErrored:GS,isNodeStream:h4,willEmitClose:p4,kIsClosedPromise:d4}=on(),ss;function m4(t){return t.setHeader&&typeof t.abort=="function"}var gm=()=>{};function KS(t,e,n){var r,i;if(arguments.length===2?(n=e,e=dm):e==null?e=dm:s4(e,"options"),i4(n,"callback"),r4(e.signal,"options.signal"),n=mm(n),c4(t)||f4(t))return g4(t,e,n);if(!h4(t))throw new n4("stream",["ReadableStream","WritableStream","Stream"],t);let s=(r=e.readable)!==null&&r!==void 0?r:pm(t),o=(i=e.writable)!==null&&i!==void 0?i:$S(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},c=p4(t)&&pm(t)===s&&$S(t)===o,f=HS(t,!1),h=()=>{f=!0,t.destroyed&&(c=!1),!(c&&(!t.readable||s))&&(!s||p)&&n.call(t)},p=US(t,!1),b=()=>{p=!0,t.destroyed&&(c=!1),!(c&&(!t.writable||o))&&(!o||f)&&n.call(t)},y=T=>{n.call(t,T)},k=u4(t),g=()=>{k=!0;let T=GS(t)||zS(t);if(T&&typeof T!="boolean")return n.call(t,T);if(s&&!p&&pm(t,!0)&&!US(t,!1))return n.call(t,new BS);if(o&&!f&&!HS(t,!1))return n.call(t,new BS);n.call(t)},m=()=>{k=!0;let T=GS(t)||zS(t);if(T&&typeof T!="boolean")return n.call(t,T);n.call(t)},d=()=>{t.req.on("finish",h)};m4(t)?(t.on("complete",h),c||t.on("abort",g),t.req?d():t.on("request",d)):o&&!a&&(t.on("end",u),t.on("close",u)),!c&&typeof t.aborted=="boolean"&&t.on("aborted",g),t.on("end",b),t.on("finish",h),e.error!==!1&&t.on("error",y),t.on("close",g),k?ir.nextTick(g):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?c||ir.nextTick(m):(!s&&(!c||jS(t))&&(f||WS(t)===!1)||!o&&(!c||WS(t))&&(p||jS(t)===!1)||l&&t.req&&t.aborted)&&ir.nextTick(m);let w=()=>{n=gm,t.removeListener("aborted",g),t.removeListener("complete",h),t.removeListener("abort",g),t.removeListener("request",d),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",b),t.removeListener("error",y),t.removeListener("close",g)};if(e.signal&&!k){let T=()=>{let v=n;w(),v.call(t,new VS(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)ir.nextTick(T);else{ss=ss||lt().addAbortListener;let v=ss(e.signal,T),S=n;n=mm((...M)=>{v[YS](),S.apply(t,M)})}}return w}function g4(t,e,n){let r=!1,i=gm;if(e.signal)if(i=()=>{r=!0,n.call(t,new VS(void 0,{cause:e.signal.reason}))},e.signal.aborted)ir.nextTick(i);else{ss=ss||lt().addAbortListener;let o=ss(e.signal,i),a=n;n=mm((...l)=>{o[YS](),a.apply(t,l)})}let s=(...o)=>{r||ir.nextTick(()=>n.apply(t,o))};return l4(t[d4].promise,s,s),gm}function y4(t,e){var n;let r=!1;return e===null&&(e=dm),(n=e)!==null&&n!==void 0&&n.cleanup&&(o4(e.cleanup,"cleanup"),r=e.cleanup),new a4((i,s)=>{let o=KS(t,e,a=>{r&&o(),a?s(a):i()})})}ym.exports=KS;ym.exports.finished=y4});var Kr=x((qie,rE)=>{"use strict";var an=rr(),{aggregateTwoErrors:b4,codes:{ERR_MULTIPLE_CALLBACK:w4},AbortError:x4}=nt(),{Symbol:JS}=Se(),{kIsDestroyed:_4,isDestroyed:D4,isFinished:v4,isServerRequest:S4}=on(),XS=JS("kDestroy"),bm=JS("kConstruct");function eE(t,e,n){t&&(t.stack,e&&!e.errored&&(e.errored=t),n&&!n.errored&&(n.errored=t))}function E4(t,e){let n=this._readableState,r=this._writableState,i=r||n;return r!=null&&r.destroyed||n!=null&&n.destroyed?(typeof e=="function"&&e(),this):(eE(t,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?QS(this,t,e):this.once(XS,function(s){QS(this,b4(s,t),e)}),this)}function QS(t,e,n){let r=!1;function i(s){if(r)return;r=!0;let o=t._readableState,a=t._writableState;eE(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof n=="function"&&n(s),s?an.nextTick(k4,t,s):an.nextTick(tE,t)}try{t._destroy(e||null,i)}catch(s){i(s)}}function k4(t,e){wm(t,e),tE(t)}function tE(t){let e=t._readableState,n=t._writableState;n&&(n.closeEmitted=!0),e&&(e.closeEmitted=!0),(n!=null&&n.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function wm(t,e){let n=t._readableState,r=t._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),t.emit("error",e))}function T4(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function xm(t,e,n){let r=t._readableState,i=t._writableState;if(i!=null&&i.destroyed||r!=null&&r.destroyed)return this;r!=null&&r.autoDestroy||i!=null&&i.autoDestroy?t.destroy(e):e&&(e.stack,i&&!i.errored&&(i.errored=e),r&&!r.errored&&(r.errored=e),n?an.nextTick(wm,t,e):wm(t,e))}function A4(t,e){if(typeof t._construct!="function")return;let n=t._readableState,r=t._writableState;n&&(n.constructed=!1),r&&(r.constructed=!1),t.once(bm,e),!(t.listenerCount(bm)>1)&&an.nextTick(C4,t)}function C4(t){let e=!1;function n(r){if(e){xm(t,r??new w4);return}e=!0;let i=t._readableState,s=t._writableState,o=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(XS,r):r?xm(t,r,!0):an.nextTick(F4,t)}try{t._construct(r=>{an.nextTick(n,r)})}catch(r){an.nextTick(n,r)}}function F4(t){t.emit(bm)}function ZS(t){return t?.setHeader&&typeof t.abort=="function"}function nE(t){t.emit("close")}function R4(t,e){t.emit("error",e),an.nextTick(nE,t)}function O4(t,e){!t||D4(t)||(!e&&!v4(t)&&(e=new x4),S4(t)?(t.socket=null,t.destroy(e)):ZS(t)?t.abort():ZS(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?an.nextTick(R4,t,e):an.nextTick(nE,t),t.destroyed||(t[_4]=!0))}rE.exports={construct:A4,destroyer:O4,destroy:E4,undestroy:T4,errorOrDestroy:xm}});var cc=x((Mie,sE)=>{"use strict";var{ArrayIsArray:I4,ObjectSetPrototypeOf:iE}=Se(),{EventEmitter:lc}=N("events");function uc(t){lc.call(this,t)}iE(uc.prototype,lc.prototype);iE(uc,lc);uc.prototype.pipe=function(t,e){let n=this;function r(c){t.writable&&t.write(c)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(n.on("end",o),n.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(c){u(),lc.listenerCount(this,"error")===0&&this.emit("error",c)}_m(n,"error",l),_m(t,"error",l);function u(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",o),n.removeListener("close",a),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t};function _m(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):I4(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}sE.exports={Stream:uc,prependListener:_m}});var Vo=x((Nie,fc)=>{"use strict";var{SymbolDispose:L4}=Se(),{AbortError:oE,codes:P4}=nt(),{isNodeStream:aE,isWebStream:q4,kControllerErrorFunction:M4}=on(),N4=An(),{ERR_INVALID_ARG_TYPE:lE}=P4,Dm,B4=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new lE(e,"AbortSignal",t)};fc.exports.addAbortSignal=function(e,n){if(B4(e,"signal"),!aE(n)&&!q4(n))throw new lE("stream",["ReadableStream","WritableStream","Stream"],n);return fc.exports.addAbortSignalNoValidate(e,n)};fc.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let n=aE(e)?()=>{e.destroy(new oE(void 0,{cause:t.reason}))}:()=>{e[M4](new oE(void 0,{cause:t.reason}))};if(t.aborted)n();else{Dm=Dm||lt().addAbortListener;let r=Dm(t,n);N4(e,r[L4])}return e}});var fE=x((jie,cE)=>{"use strict";var{StringPrototypeSlice:uE,SymbolIterator:j4,TypedArrayPrototypeSet:hc,Uint8Array:U4}=Se(),{Buffer:vm}=N("buffer"),{inspect:z4}=lt();cE.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let n={data:e,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}unshift(e){let n={data:e,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let n=this.head,r=""+n.data;for(;(n=n.next)!==null;)r+=e+n.data;return r}concat(e){if(this.length===0)return vm.alloc(0);let n=vm.allocUnsafe(e>>>0),r=this.head,i=0;for(;r;)hc(n,r.data,i),i+=r.data.length,r=r.next;return n}consume(e,n){let r=this.head.data;if(e<r.length){let i=r.slice(0,e);return this.head.data=r.slice(e),i}return e===r.length?this.shift():n?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[j4](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let n="",r=this.head,i=0;do{let s=r.data;if(e>s.length)n+=s,e-=s.length;else{e===s.length?(n+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(n+=uE(s,0,e),this.head=r,r.data=uE(s,e));break}++i}while((r=r.next)!==null);return this.length-=i,n}_getBuffer(e){let n=vm.allocUnsafe(e),r=e,i=this.head,s=0;do{let o=i.data;if(e>o.length)hc(n,o,r-e),e-=o.length;else{e===o.length?(hc(n,o,r-e),++s,i.next?this.head=i.next:this.head=this.tail=null):(hc(n,new U4(o.buffer,o.byteOffset,e),r-e),this.head=i,i.data=o.slice(e));break}++s}while((i=i.next)!==null);return this.length-=s,n}[Symbol.for("nodejs.util.inspect.custom")](e,n){return z4(this,{...n,depth:0,customInspect:!1})}}});var Yo=x((Uie,mE)=>{"use strict";var{MathFloor:W4,NumberIsInteger:$4}=Se(),{validateInteger:H4}=is(),{ERR_INVALID_ARG_VALUE:G4}=nt().codes,hE=16*1024,pE=16;function V4(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function dE(t){return t?pE:hE}function Y4(t,e){H4(e,"value",0),t?pE=e:hE=e}function K4(t,e,n,r){let i=V4(e,r,n);if(i!=null){if(!$4(i)||i<0){let s=r?`options.${n}`:"options.highWaterMark";throw new G4(s,i)}return W4(i)}return dE(t.objectMode)}mE.exports={getHighWaterMark:K4,getDefaultHighWaterMark:dE,setDefaultHighWaterMark:Y4}});var Sm=x((zie,wE)=>{"use strict";var gE=rr(),{PromisePrototypeThen:Q4,SymbolAsyncIterator:yE,SymbolIterator:bE}=Se(),{Buffer:Z4}=N("buffer"),{ERR_INVALID_ARG_TYPE:J4,ERR_STREAM_NULL_VALUES:X4}=nt().codes;function e8(t,e,n){let r;if(typeof e=="string"||e instanceof Z4)return new t({objectMode:!0,...n,read(){this.push(e),this.push(null)}});let i;if(e&&e[yE])i=!0,r=e[yE]();else if(e&&e[bE])i=!1,r=e[bE]();else throw new J4("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...n}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,c){Q4(a(u),()=>gE.nextTick(c,u),f=>gE.nextTick(c,f||u))};async function a(u){let c=u!=null,f=typeof r.throw=="function";if(c&&f){let{value:h,done:p}=await r.throw(u);if(await h,p)return}if(typeof r.return=="function"){let{value:h}=await r.return();await h}}async function l(){for(;;){try{let{value:u,done:c}=i?await r.next():r.next();if(c)s.push(null);else{let f=u&&typeof u.then=="function"?await u:u;if(f===null)throw o=!1,new X4;if(s.push(f))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}wE.exports=e8});var Qo=x((Wie,ME)=>{"use strict";var Vt=rr(),{ArrayPrototypeIndexOf:t8,NumberIsInteger:n8,NumberIsNaN:r8,NumberParseInt:i8,ObjectDefineProperties:Om,ObjectKeys:s8,ObjectSetPrototypeOf:DE,Promise:vE,SafeSet:o8,SymbolAsyncDispose:a8,SymbolAsyncIterator:l8,Symbol:u8}=Se();ME.exports=J;J.ReadableState=gc;var{EventEmitter:c8}=N("events"),{Stream:sr,prependListener:f8}=cc(),{Buffer:Em}=N("buffer"),{addAbortSignal:h8}=Vo(),SE=An(),re=lt().debuglog("stream",t=>{re=t}),p8=fE(),ls=Kr(),{getHighWaterMark:d8,getDefaultHighWaterMark:m8}=Yo(),{aggregateTwoErrors:xE,codes:{ERR_INVALID_ARG_TYPE:g8,ERR_METHOD_NOT_IMPLEMENTED:y8,ERR_OUT_OF_RANGE:b8,ERR_STREAM_PUSH_AFTER_EOF:w8,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:x8},AbortError:_8}=nt(),{validateObject:D8}=is(),Qr=u8("kPaused"),{StringDecoder:EE}=N("string_decoder"),v8=Sm();DE(J.prototype,sr.prototype);DE(J,sr);var km=()=>{},{errorOrDestroy:os}=ls,as=1,S8=2,kE=4,Ko=8,TE=16,pc=32,dc=64,AE=128,E8=256,k8=512,T8=1024,Fm=2048,Rm=4096,A8=8192,C8=16384,F8=32768,CE=65536,R8=1<<17,O8=1<<18;function Le(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}Om(gc.prototype,{objectMode:Le(as),ended:Le(S8),endEmitted:Le(kE),reading:Le(Ko),constructed:Le(TE),sync:Le(pc),needReadable:Le(dc),emittedReadable:Le(AE),readableListening:Le(E8),resumeScheduled:Le(k8),errorEmitted:Le(T8),emitClose:Le(Fm),autoDestroy:Le(Rm),destroyed:Le(A8),closed:Le(C8),closeEmitted:Le(F8),multiAwaitDrain:Le(CE),readingMore:Le(R8),dataEmitted:Le(O8)});function gc(t,e,n){typeof n!="boolean"&&(n=e instanceof ln()),this.state=Fm|Rm|TE|pc,t&&t.objectMode&&(this.state|=as),n&&t&&t.readableObjectMode&&(this.state|=as),this.highWaterMark=t?d8(this,t,"readableHighWaterMark",n):m8(!1),this.buffer=new p8,this.length=0,this.pipes=[],this.flowing=null,this[Qr]=null,t&&t.emitClose===!1&&(this.state&=~Fm),t&&t.autoDestroy===!1&&(this.state&=~Rm),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new EE(t.encoding),this.encoding=t.encoding)}function J(t){if(!(this instanceof J))return new J(t);let e=this instanceof ln();this._readableState=new gc(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&h8(t.signal,this)),sr.call(this,t),ls.construct(this,()=>{this._readableState.needReadable&&mc(this,this._readableState)})}J.prototype.destroy=ls.destroy;J.prototype._undestroy=ls.undestroy;J.prototype._destroy=function(t,e){e(t)};J.prototype[c8.captureRejectionSymbol]=function(t){this.destroy(t)};J.prototype[a8]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new _8,this.destroy(t)),new vE((e,n)=>SE(this,r=>r&&r!==t?n(r):e(null)))};J.prototype.push=function(t,e){return FE(this,t,e,!1)};J.prototype.unshift=function(t,e){return FE(this,t,e,!0)};function FE(t,e,n,r){re("readableAddChunk",e);let i=t._readableState,s;if((i.state&as)===0&&(typeof e=="string"?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?e=Em.from(e,n).toString(i.encoding):(e=Em.from(e,n),n=""))):e instanceof Em?n="":sr._isUint8Array(e)?(e=sr._uint8ArrayToBuffer(e),n=""):e!=null&&(s=new g8("chunk",["string","Buffer","Uint8Array"],e))),s)os(t,s);else if(e===null)i.state&=~Ko,P8(t,i);else if((i.state&as)!==0||e&&e.length>0)if(r)if((i.state&kE)!==0)os(t,new x8);else{if(i.destroyed||i.errored)return!1;Tm(t,i,e,!0)}else if(i.ended)os(t,new w8);else{if(i.destroyed||i.errored)return!1;i.state&=~Ko,i.decoder&&!n?(e=i.decoder.write(e),i.objectMode||e.length!==0?Tm(t,i,e,!1):mc(t,i)):Tm(t,i,e,!1)}else r||(i.state&=~Ko,mc(t,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function Tm(t,e,n,r){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&CE)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),(e.state&dc)!==0&&yc(t)),mc(t,e)}J.prototype.isPaused=function(){let t=this._readableState;return t[Qr]===!0||t.flowing===!1};J.prototype.setEncoding=function(t){let e=new EE(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r="";for(let i of n)r+=e.write(i);return n.clear(),r!==""&&n.push(r),this._readableState.length=r.length,this};var I8=1073741824;function L8(t){if(t>I8)throw new b8("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function _E(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&as)!==0?1:r8(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}J.prototype.read=function(t){re("read",t),t===void 0?t=NaN:n8(t)||(t=i8(t,10));let e=this._readableState,n=t;if(t>e.highWaterMark&&(e.highWaterMark=L8(t)),t!==0&&(e.state&=~AE),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return re("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Am(this):yc(this),null;if(t=_E(t,e),t===0&&e.ended)return e.length===0&&Am(this),null;let r=(e.state&dc)!==0;if(re("need readable",r),(e.length===0||e.length-t<e.highWaterMark)&&(r=!0,re("length less than watermark",r)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)r=!1,re("reading, ended or constructing",r);else if(r){re("do read"),e.state|=Ko|pc,e.length===0&&(e.state|=dc);try{this._read(e.highWaterMark)}catch(s){os(this,s)}e.state&=~pc,e.reading||(t=_E(n,e))}let i;return t>0?i=PE(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Am(this)),i!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",i)),i};function P8(t,e){if(re("onEofChunk"),!e.ended){if(e.decoder){let n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?yc(t):(e.needReadable=!1,e.emittedReadable=!0,RE(t))}}function yc(t){let e=t._readableState;re("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(re("emitReadable",e.flowing),e.emittedReadable=!0,Vt.nextTick(RE,t))}function RE(t){let e=t._readableState;re("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,IE(t)}function mc(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Vt.nextTick(q8,t,e))}function q8(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let n=e.length;if(re("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}J.prototype._read=function(t){throw new y8("_read()")};J.prototype.pipe=function(t,e){let n=this,r=this._readableState;r.pipes.length===1&&(r.multiAwaitDrain||(r.multiAwaitDrain=!0,r.awaitDrainWriters=new o8(r.awaitDrainWriters?[r.awaitDrainWriters]:[]))),r.pipes.push(t),re("pipe count=%d opts=%j",r.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Vt.stdout&&t!==Vt.stderr?a:k;r.endEmitted?Vt.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(g,m){re("onunpipe"),g===n&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){re("onend"),t.end()}let l,u=!1;function c(){re("cleanup"),t.removeListener("close",b),t.removeListener("finish",y),l&&t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",k),n.removeListener("data",h),u=!0,l&&r.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function f(){u||(r.pipes.length===1&&r.pipes[0]===t?(re("false write response, pause",0),r.awaitDrainWriters=t,r.multiAwaitDrain=!1):r.pipes.length>1&&r.pipes.includes(t)&&(re("false write response, pause",r.awaitDrainWriters.size),r.awaitDrainWriters.add(t)),n.pause()),l||(l=M8(n,t),t.on("drain",l))}n.on("data",h);function h(g){re("ondata");let m=t.write(g);re("dest.write",m),m===!1&&f()}function p(g){if(re("onerror",g),k(),t.removeListener("error",p),t.listenerCount("error")===0){let m=t._writableState||t._readableState;m&&!m.errorEmitted?os(t,g):t.emit("error",g)}}f8(t,"error",p);function b(){t.removeListener("finish",y),k()}t.once("close",b);function y(){re("onfinish"),t.removeListener("close",b),k()}t.once("finish",y);function k(){re("unpipe"),n.unpipe(t)}return t.emit("pipe",n),t.writableNeedDrain===!0?f():r.flowing||(re("pipe resume"),n.resume()),t};function M8(t,e){return function(){let r=t._readableState;r.awaitDrainWriters===e?(re("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(re("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),(!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}J.prototype.unpipe=function(t){let e=this._readableState,n={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let i=e.pipes;e.pipes=[],this.pause();for(let s=0;s<i.length;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}let r=t8(e.pipes,t);return r===-1?this:(e.pipes.splice(r,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,n),this)};J.prototype.on=function(t,e){let n=sr.prototype.on.call(this,t,e),r=this._readableState;return t==="data"?(r.readableListening=this.listenerCount("readable")>0,r.flowing!==!1&&this.resume()):t==="readable"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,re("on readable",r.length,r.reading),r.length?yc(this):r.reading||Vt.nextTick(N8,this)),n};J.prototype.addListener=J.prototype.on;J.prototype.removeListener=function(t,e){let n=sr.prototype.removeListener.call(this,t,e);return t==="readable"&&Vt.nextTick(OE,this),n};J.prototype.off=J.prototype.removeListener;J.prototype.removeAllListeners=function(t){let e=sr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Vt.nextTick(OE,this),e};function OE(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Qr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function N8(t){re("readable nexttick read 0"),t.read(0)}J.prototype.resume=function(){let t=this._readableState;return t.flowing||(re("resume"),t.flowing=!t.readableListening,B8(this,t)),t[Qr]=!1,this};function B8(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Vt.nextTick(j8,t,e))}function j8(t,e){re("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),IE(t),e.flowing&&!e.reading&&t.read(0)}J.prototype.pause=function(){return re("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(re("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Qr]=!0,this};function IE(t){let e=t._readableState;for(re("flow",e.flowing);e.flowing&&t.read()!==null;);}J.prototype.wrap=function(t){let e=!1;t.on("data",r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",r=>{os(this,r)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let n=s8(t);for(let r=1;r<n.length;r++){let i=n[r];this[i]===void 0&&typeof t[i]=="function"&&(this[i]=t[i].bind(t))}return this};J.prototype[l8]=function(){return LE(this)};J.prototype.iterator=function(t){return t!==void 0&&D8(t,"options"),LE(this,t)};function LE(t,e){typeof t.read!="function"&&(t=J.wrap(t,{objectMode:!0}));let n=U8(t,e);return n.stream=t,n}async function*U8(t,e){let n=km;function r(o){this===t?(n(),n=km):n=o}t.on("readable",r);let i,s=SE(t,{writable:!1},o=>{i=o?xE(i,o):null,n(),n=km});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(i)throw i;if(i===null)return;await new vE(r)}}}catch(o){throw i=xE(i,o),i}finally{(i||e?.destroyOnReturn!==!1)&&(i===void 0||t._readableState.autoDestroy)?ls.destroyer(t,null):(t.off("readable",r),s())}}Om(J.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Om(gc.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Qr]!==!1},set(t){this[Qr]=!!t}}});J._fromList=PE;function PE(t,e){if(e.length===0)return null;let n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function Am(t){let e=t._readableState;re("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Vt.nextTick(z8,e,t))}function z8(t,e){if(re("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Vt.nextTick(W8,e);else if(t.autoDestroy){let n=e._writableState;(!n||n.autoDestroy&&(n.finished||n.writable===!1))&&e.destroy()}}}function W8(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}J.from=function(t,e){return v8(J,t,e)};var Cm;function qE(){return Cm===void 0&&(Cm={}),Cm}J.fromWeb=function(t,e){return qE().newStreamReadableFromReadableStream(t,e)};J.toWeb=function(t,e){return qE().newReadableStreamFromStreamReadable(t,e)};J.wrap=function(t,e){var n,r;return new J({objectMode:(n=(r=t.readableObjectMode)!==null&&r!==void 0?r:t.objectMode)!==null&&n!==void 0?n:!0,...e,destroy(i,s){ls.destroyer(t,i),s(i)}}).wrap(t)}});var Dc=x(($ie,KE)=>{"use strict";var Zr=rr(),{ArrayPrototypeSlice:jE,Error:$8,FunctionPrototypeSymbolHasInstance:UE,ObjectDefineProperty:zE,ObjectDefineProperties:H8,ObjectSetPrototypeOf:WE,StringPrototypeToLowerCase:G8,Symbol:V8,SymbolHasInstance:Y8}=Se();KE.exports=ke;ke.WritableState=Xo;var{EventEmitter:K8}=N("events"),Zo=cc().Stream,{Buffer:bc}=N("buffer"),_c=Kr(),{addAbortSignal:Q8}=Vo(),{getHighWaterMark:Z8,getDefaultHighWaterMark:J8}=Yo(),{ERR_INVALID_ARG_TYPE:X8,ERR_METHOD_NOT_IMPLEMENTED:ej,ERR_MULTIPLE_CALLBACK:$E,ERR_STREAM_CANNOT_PIPE:tj,ERR_STREAM_DESTROYED:Jo,ERR_STREAM_ALREADY_FINISHED:nj,ERR_STREAM_NULL_VALUES:rj,ERR_STREAM_WRITE_AFTER_END:ij,ERR_UNKNOWN_ENCODING:HE}=nt().codes,{errorOrDestroy:us}=_c;WE(ke.prototype,Zo.prototype);WE(ke,Zo);function Pm(){}var cs=V8("kOnFinished");function Xo(t,e,n){typeof n!="boolean"&&(n=e instanceof ln()),this.objectMode=!!(t&&t.objectMode),n&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?Z8(this,t,"writableHighWaterMark",n):J8(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(t&&t.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=oj.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,xc(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[cs]=[]}function xc(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Xo.prototype.getBuffer=function(){return jE(this.buffered,this.bufferedIndex)};zE(Xo.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ke(t){let e=this instanceof ln();if(!e&&!UE(ke,this))return new ke(t);this._writableState=new Xo(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&Q8(t.signal,this)),Zo.call(this,t),_c.construct(this,()=>{let n=this._writableState;n.writing||Mm(this,n),Nm(this,n)})}zE(ke,Y8,{__proto__:null,value:function(t){return UE(this,t)?!0:this!==ke?!1:t&&t._writableState instanceof Xo}});ke.prototype.pipe=function(){us(this,new tj)};function GE(t,e,n,r){let i=t._writableState;if(typeof n=="function")r=n,n=i.defaultEncoding;else{if(!n)n=i.defaultEncoding;else if(n!=="buffer"&&!bc.isEncoding(n))throw new HE(n);typeof r!="function"&&(r=Pm)}if(e===null)throw new rj;if(!i.objectMode)if(typeof e=="string")i.decodeStrings!==!1&&(e=bc.from(e,n),n="buffer");else if(e instanceof bc)n="buffer";else if(Zo._isUint8Array(e))e=Zo._uint8ArrayToBuffer(e),n="buffer";else throw new X8("chunk",["string","Buffer","Uint8Array"],e);let s;return i.ending?s=new ij:i.destroyed&&(s=new Jo("write")),s?(Zr.nextTick(r,s),us(t,s,!0),s):(i.pendingcb++,sj(t,i,e,n,r))}ke.prototype.write=function(t,e,n){return GE(this,t,e,n)===!0};ke.prototype.cork=function(){this._writableState.corked++};ke.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||Mm(this,t))};ke.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=G8(e)),!bc.isEncoding(e))throw new HE(e);return this._writableState.defaultEncoding=e,this};function sj(t,e,n,r,i){let s=e.objectMode?1:n.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:n,encoding:r,callback:i}),e.allBuffers&&r!=="buffer"&&(e.allBuffers=!1),e.allNoop&&i!==Pm&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(n,r,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function NE(t,e,n,r,i,s,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Jo("write")):n?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function BE(t,e,n,r){--e.pendingcb,r(n),qm(e),us(t,n)}function oj(t,e){let n=t._writableState,r=n.sync,i=n.writecb;if(typeof i!="function"){us(t,new $E);return}n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,e?(e.stack,n.errored||(n.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),r?Zr.nextTick(BE,t,n,e,i):BE(t,n,e,i)):(n.buffered.length>n.bufferedIndex&&Mm(t,n),r?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:t,state:n},Zr.nextTick(aj,n.afterWriteTickInfo)):VE(t,n,1,i))}function aj({stream:t,state:e,count:n,cb:r}){return e.afterWriteTickInfo=null,VE(t,e,n,r)}function VE(t,e,n,r){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));n-- >0;)e.pendingcb--,r();e.destroyed&&qm(e),Nm(t,e)}function qm(t){if(t.writing)return;for(let i=t.bufferedIndex;i<t.buffered.length;++i){var e;let{chunk:s,callback:o}=t.buffered[i],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Jo("write"))}let n=t[cs].splice(0);for(let i=0;i<n.length;i++){var r;n[i]((r=t.errored)!==null&&r!==void 0?r:new Jo("end"))}xc(t)}function Mm(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:n,bufferedIndex:r,objectMode:i}=e,s=n.length-r;if(!s)return;let o=r;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?Pm:u=>{for(let c=o;c<n.length;++c)n[c].callback(u)},l=e.allNoop&&o===0?n:jE(n,o);l.allBuffers=e.allBuffers,NE(t,e,!0,e.length,l,"",a),xc(e)}else{do{let{chunk:a,encoding:l,callback:u}=n[o];n[o++]=null;let c=i?1:a.length;NE(t,e,!1,c,a,l,u)}while(o<n.length&&!e.writing);o===n.length?xc(e):o>256?(n.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}ke.prototype._write=function(t,e,n){if(this._writev)this._writev([{chunk:t,encoding:e}],n);else throw new ej("_write()")};ke.prototype._writev=null;ke.prototype.end=function(t,e,n){let r=this._writableState;typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null);let i;if(t!=null){let s=GE(this,t,e);s instanceof $8&&(i=s)}return r.corked&&(r.corked=1,this.uncork()),i||(!r.errored&&!r.ending?(r.ending=!0,Nm(this,r,!0),r.ended=!0):r.finished?i=new nj("end"):r.destroyed&&(i=new Jo("end"))),typeof n=="function"&&(i||r.finished?Zr.nextTick(n,i):r[cs].push(n)),this};function wc(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function lj(t,e){let n=!1;function r(i){if(n){us(t,i??$E());return}if(n=!0,e.pendingcb--,i){let s=e[cs].splice(0);for(let o=0;o<s.length;o++)s[o](i);us(t,i,e.sync)}else wc(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,Zr.nextTick(Lm,t,e))}e.sync=!0,e.pendingcb++;try{t._final(r)}catch(i){r(i)}e.sync=!1}function uj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,lj(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Nm(t,e,n){wc(e)&&(uj(t,e),e.pendingcb===0&&(n?(e.pendingcb++,Zr.nextTick((r,i)=>{wc(i)?Lm(r,i):i.pendingcb--},t,e)):wc(e)&&(e.pendingcb++,Lm(t,e))))}function Lm(t,e){e.pendingcb--,e.finished=!0;let n=e[cs].splice(0);for(let r=0;r<n.length;r++)n[r]();if(t.emit("finish"),e.autoDestroy){let r=t._readableState;(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))&&t.destroy()}}H8(ke.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var cj=_c.destroy;ke.prototype.destroy=function(t,e){let n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[cs].length)&&Zr.nextTick(qm,n),cj.call(this,t,e),this};ke.prototype._undestroy=_c.undestroy;ke.prototype._destroy=function(t,e){e(t)};ke.prototype[K8.captureRejectionSymbol]=function(t){this.destroy(t)};var Im;function YE(){return Im===void 0&&(Im={}),Im}ke.fromWeb=function(t,e){return YE().newStreamWritableFromWritableStream(t,e)};ke.toWeb=function(t){return YE().newWritableStreamFromStreamWritable(t)}});var ck=x((Hie,uk)=>{"use strict";var Bm=rr(),fj=N("buffer"),{isReadable:hj,isWritable:pj,isIterable:QE,isNodeStream:dj,isReadableNodeStream:ZE,isWritableNodeStream:JE,isDuplexNodeStream:mj,isReadableStream:XE,isWritableStream:ek}=on(),tk=An(),{AbortError:ak,codes:{ERR_INVALID_ARG_TYPE:gj,ERR_INVALID_RETURN_VALUE:nk}}=nt(),{destroyer:hs}=Kr(),yj=ln(),lk=Qo(),bj=Dc(),{createDeferredPromise:rk}=lt(),ik=Sm(),sk=globalThis.Blob||fj.Blob,wj=typeof sk<"u"?function(e){return e instanceof sk}:function(e){return!1},xj=globalThis.AbortController||ns().AbortController,{FunctionPrototypeCall:ok}=Se(),or=class extends yj{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};uk.exports=function t(e,n){if(mj(e))return e;if(ZE(e))return fs({readable:e});if(JE(e))return fs({writable:e});if(dj(e))return fs({writable:!1,readable:!1});if(XE(e))return fs({readable:lk.fromWeb(e)});if(ek(e))return fs({writable:bj.fromWeb(e)});if(typeof e=="function"){let{value:i,write:s,final:o,destroy:a}=_j(e);if(QE(i))return ik(or,i,{objectMode:!0,write:s,final:o,destroy:a});let l=i?.then;if(typeof l=="function"){let u,c=ok(l,i,f=>{if(f!=null)throw new nk("nully","body",f)},f=>{hs(u,f)});return u=new or({objectMode:!0,readable:!1,write:s,final(f){o(async()=>{try{await c,Bm.nextTick(f,null)}catch(h){Bm.nextTick(f,h)}})},destroy:a})}throw new nk("Iterable, AsyncIterable or AsyncFunction",n,i)}if(wj(e))return t(e.arrayBuffer());if(QE(e))return ik(or,e,{objectMode:!0,writable:!1});if(XE(e?.readable)&&ek(e?.writable))return or.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let i=e!=null&&e.readable?ZE(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?JE(e?.writable)?e?.writable:t(e.writable):void 0;return fs({readable:i,writable:s})}let r=e?.then;if(typeof r=="function"){let i;return ok(r,e,s=>{s!=null&&i.push(s),i.push(null)},s=>{hs(i,s)}),i=new or({objectMode:!0,writable:!1,read(){}})}throw new gj(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function _j(t){let{promise:e,resolve:n}=rk(),r=new xj,i=r.signal;return{value:t(async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(Bm.nextTick(u),l)return;if(i.aborted)throw new ak(void 0,{cause:i.reason});({promise:e,resolve:n}=rk()),yield a}}(),{signal:i}),write(o,a,l){let u=n;n=null,u({chunk:o,done:!1,cb:l})},final(o){let a=n;n=null,a({done:!0,cb:o})},destroy(o,a){r.abort(),a(o)}}}function fs(t){let e=t.readable&&typeof t.readable.read!="function"?lk.wrap(t.readable):t.readable,n=t.writable,r=!!hj(e),i=!!pj(n),s,o,a,l,u;function c(f){let h=l;l=null,h?h(f):f&&u.destroy(f)}return u=new or({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(tk(n,f=>{i=!1,f&&hs(e,f),c(f)}),u._write=function(f,h,p){n.write(f,h)?p():s=p},u._final=function(f){n.end(),o=f},n.on("drain",function(){if(s){let f=s;s=null,f()}}),n.on("finish",function(){if(o){let f=o;o=null,f()}})),r&&(tk(e,f=>{r=!1,f&&hs(e,f),c(f)}),e.on("readable",function(){if(a){let f=a;a=null,f()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let f=e.read();if(f===null){a=u._read;return}if(!u.push(f))return}}),u._destroy=function(f,h){!f&&l!==null&&(f=new ak),a=null,s=null,o=null,l===null?h(f):(l=h,hs(n,f),hs(e,f))},u}});var ln=x((Gie,pk)=>{"use strict";var{ObjectDefineProperties:Dj,ObjectGetOwnPropertyDescriptor:Cn,ObjectKeys:vj,ObjectSetPrototypeOf:fk}=Se();pk.exports=Yt;var zm=Qo(),Lt=Dc();fk(Yt.prototype,zm.prototype);fk(Yt,zm);{let t=vj(Lt.prototype);for(let e=0;e<t.length;e++){let n=t[e];Yt.prototype[n]||(Yt.prototype[n]=Lt.prototype[n])}}function Yt(t){if(!(this instanceof Yt))return new Yt(t);zm.call(this,t),Lt.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}Dj(Yt.prototype,{writable:{__proto__:null,...Cn(Lt.prototype,"writable")},writableHighWaterMark:{__proto__:null,...Cn(Lt.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...Cn(Lt.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...Cn(Lt.prototype,"writableBuffer")},writableLength:{__proto__:null,...Cn(Lt.prototype,"writableLength")},writableFinished:{__proto__:null,...Cn(Lt.prototype,"writableFinished")},writableCorked:{__proto__:null,...Cn(Lt.prototype,"writableCorked")},writableEnded:{__proto__:null,...Cn(Lt.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...Cn(Lt.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var jm;function hk(){return jm===void 0&&(jm={}),jm}Yt.fromWeb=function(t,e){return hk().newStreamDuplexFromReadableWritablePair(t,e)};Yt.toWeb=function(t){return hk().newReadableWritablePairFromDuplex(t)};var Um;Yt.from=function(t){return Um||(Um=ck()),Um(t,"body")}});var Hm=x((Vie,mk)=>{"use strict";var{ObjectSetPrototypeOf:dk,Symbol:Sj}=Se();mk.exports=Fn;var{ERR_METHOD_NOT_IMPLEMENTED:Ej}=nt().codes,$m=ln(),{getHighWaterMark:kj}=Yo();dk(Fn.prototype,$m.prototype);dk(Fn,$m);var ea=Sj("kCallback");function Fn(t){if(!(this instanceof Fn))return new Fn(t);let e=t?kj(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),$m.call(this,t),this._readableState.sync=!1,this[ea]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Tj)}function Wm(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,n)=>{if(e){t?t(e):this.destroy(e);return}n!=null&&this.push(n),this.push(null),t&&t()}):(this.push(null),t&&t())}function Tj(){this._final!==Wm&&Wm.call(this)}Fn.prototype._final=Wm;Fn.prototype._transform=function(t,e,n){throw new Ej("_transform()")};Fn.prototype._write=function(t,e,n){let r=this._readableState,i=this._writableState,s=r.length;this._transform(t,e,(o,a)=>{if(o){n(o);return}a!=null&&this.push(a),i.ended||s===r.length||r.length<r.highWaterMark?n():this[ea]=n})};Fn.prototype._read=function(){if(this[ea]){let t=this[ea];this[ea]=null,t()}}});var Vm=x((Yie,yk)=>{"use strict";var{ObjectSetPrototypeOf:gk}=Se();yk.exports=ps;var Gm=Hm();gk(ps.prototype,Gm.prototype);gk(ps,Gm);function ps(t){if(!(this instanceof ps))return new ps(t);Gm.call(this,t)}ps.prototype._transform=function(t,e,n){n(null,t)}});var kc=x((Kie,Dk)=>{"use strict";var ta=rr(),{ArrayIsArray:Aj,Promise:Cj,SymbolAsyncIterator:Fj,SymbolDispose:Rj}=Se(),Ec=An(),{once:Oj}=lt(),Ij=Kr(),bk=ln(),{aggregateTwoErrors:Lj,codes:{ERR_INVALID_ARG_TYPE:ng,ERR_INVALID_RETURN_VALUE:Ym,ERR_MISSING_ARGS:Pj,ERR_STREAM_DESTROYED:qj,ERR_STREAM_PREMATURE_CLOSE:Mj},AbortError:Nj}=nt(),{validateFunction:Bj,validateAbortSignal:jj}=is(),{isIterable:Jr,isReadable:Km,isReadableNodeStream:Sc,isNodeStream:wk,isTransformStream:ds,isWebStream:Uj,isReadableStream:Qm,isReadableFinished:zj}=on(),Wj=globalThis.AbortController||ns().AbortController,Zm,Jm,Xm;function xk(t,e,n){let r=!1;t.on("close",()=>{r=!0});let i=Ec(t,{readable:e,writable:n},s=>{r=!s});return{destroy:s=>{r||(r=!0,Ij.destroyer(t,s||new qj("pipe")))},cleanup:i}}function $j(t){return Bj(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function eg(t){if(Jr(t))return t;if(Sc(t))return Hj(t);throw new ng("val",["Readable","Iterable","AsyncIterable"],t)}async function*Hj(t){Jm||(Jm=Qo()),yield*Jm.prototype[Fj].call(t)}async function vc(t,e,n,{end:r}){let i,s=null,o=u=>{if(u&&(i=u),s){let c=s;s=null,c()}},a=()=>new Cj((u,c)=>{i?c(i):s=()=>{i?c(i):u()}});e.on("drain",o);let l=Ec(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();r&&(e.end(),await a()),n()}catch(u){n(i!==u?Lj(i,u):u)}finally{l(),e.off("drain",o)}}async function tg(t,e,n,{end:r}){ds(e)&&(e=e.writable);let i=e.getWriter();try{for await(let s of t)await i.ready,i.write(s).catch(()=>{});await i.ready,r&&await i.close(),n()}catch(s){try{await i.abort(s),n(s)}catch(o){n(o)}}}function Gj(...t){return _k(t,Oj($j(t)))}function _k(t,e,n){if(t.length===1&&Aj(t[0])&&(t=t[0]),t.length<2)throw new Pj("streams");let r=new Wj,i=r.signal,s=n?.signal,o=[];jj(s,"options.signal");function a(){b(new Nj)}Xm=Xm||lt().addAbortListener;let l;s&&(l=Xm(s,a));let u,c,f=[],h=0;function p(d){b(d,--h===0)}function b(d,w){var T;if(d&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=d),!(!u&&!w)){for(;f.length;)f.shift()(u);(T=l)===null||T===void 0||T[Rj](),r.abort(),w&&(u||o.forEach(v=>v()),ta.nextTick(e,u,c))}}let y;for(let d=0;d<t.length;d++){let w=t[d],T=d<t.length-1,v=d>0,S=T||n?.end!==!1,M=d===t.length-1;if(wk(w)){let A=function(F){F&&F.name!=="AbortError"&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(F)};var m=A;if(S){let{destroy:F,cleanup:I}=xk(w,T,v);f.push(F),Km(w)&&M&&o.push(I)}w.on("error",A),Km(w)&&M&&o.push(()=>{w.removeListener("error",A)})}if(d===0)if(typeof w=="function"){if(y=w({signal:i}),!Jr(y))throw new Ym("Iterable, AsyncIterable or Stream","source",y)}else Jr(w)||Sc(w)||ds(w)?y=w:y=bk.from(w);else if(typeof w=="function"){if(ds(y)){var k;y=eg((k=y)===null||k===void 0?void 0:k.readable)}else y=eg(y);if(y=w(y,{signal:i}),T){if(!Jr(y,!0))throw new Ym("AsyncIterable",`transform[${d-1}]`,y)}else{var g;Zm||(Zm=Vm());let A=new Zm({objectMode:!0}),F=(g=y)===null||g===void 0?void 0:g.then;if(typeof F=="function")h++,F.call(y,O=>{c=O,O!=null&&A.write(O),S&&A.end(),ta.nextTick(p)},O=>{A.destroy(O),ta.nextTick(p,O)});else if(Jr(y,!0))h++,vc(y,A,p,{end:S});else if(Qm(y)||ds(y)){let O=y.readable||y;h++,vc(O,A,p,{end:S})}else throw new Ym("AsyncIterable or Promise","destination",y);y=A;let{destroy:I,cleanup:B}=xk(y,!1,!0);f.push(I),M&&o.push(B)}}else if(wk(w)){if(Sc(y)){h+=2;let A=Vj(y,w,p,{end:S});Km(w)&&M&&o.push(A)}else if(ds(y)||Qm(y)){let A=y.readable||y;h++,vc(A,w,p,{end:S})}else if(Jr(y))h++,vc(y,w,p,{end:S});else throw new ng("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=w}else if(Uj(w)){if(Sc(y))h++,tg(eg(y),w,p,{end:S});else if(Qm(y)||Jr(y))h++,tg(y,w,p,{end:S});else if(ds(y))h++,tg(y.readable,w,p,{end:S});else throw new ng("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=w}else y=bk.from(w)}return(i!=null&&i.aborted||s!=null&&s.aborted)&&ta.nextTick(a),y}function Vj(t,e,n,{end:r}){let i=!1;if(e.on("close",()=>{i||n(new Mj)}),t.pipe(e,{end:!1}),r){let o=function(){i=!0,e.end()};var s=o;zj(t)?ta.nextTick(o):t.once("end",o)}else n();return Ec(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",n).once("error",n):n(o)}),Ec(e,{readable:!1,writable:!0},n)}Dk.exports={pipelineImpl:_k,pipeline:Gj}});var ig=x((Qie,Ak)=>{"use strict";var{pipeline:Yj}=kc(),Tc=ln(),{destroyer:Kj}=Kr(),{isNodeStream:Ac,isReadable:vk,isWritable:Sk,isWebStream:rg,isTransformStream:Xr,isWritableStream:Ek,isReadableStream:kk}=on(),{AbortError:Qj,codes:{ERR_INVALID_ARG_VALUE:Tk,ERR_MISSING_ARGS:Zj}}=nt(),Jj=An();Ak.exports=function(...e){if(e.length===0)throw new Zj("streams");if(e.length===1)return Tc.from(e[0]);let n=[...e];if(typeof e[0]=="function"&&(e[0]=Tc.from(e[0])),typeof e[e.length-1]=="function"){let p=e.length-1;e[p]=Tc.from(e[p])}for(let p=0;p<e.length;++p)if(!(!Ac(e[p])&&!rg(e[p]))){if(p<e.length-1&&!(vk(e[p])||kk(e[p])||Xr(e[p])))throw new Tk(`streams[${p}]`,n[p],"must be readable");if(p>0&&!(Sk(e[p])||Ek(e[p])||Xr(e[p])))throw new Tk(`streams[${p}]`,n[p],"must be writable")}let r,i,s,o,a;function l(p){let b=o;o=null,b?b(p):p?a.destroy(p):!h&&!f&&a.destroy()}let u=e[0],c=Yj(e,l),f=!!(Sk(u)||Ek(u)||Xr(u)),h=!!(vk(c)||kk(c)||Xr(c));if(a=new Tc({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(c!=null&&c.readableObjectMode),writable:f,readable:h}),f){if(Ac(u))a._write=function(b,y,k){u.write(b,y)?k():r=k},a._final=function(b){u.end(),i=b},u.on("drain",function(){if(r){let b=r;r=null,b()}});else if(rg(u)){let y=(Xr(u)?u.writable:u).getWriter();a._write=async function(k,g,m){try{await y.ready,y.write(k).catch(()=>{}),m()}catch(d){m(d)}},a._final=async function(k){try{await y.ready,y.close().catch(()=>{}),i=k}catch(g){k(g)}}}let p=Xr(c)?c.readable:c;Jj(p,()=>{if(i){let b=i;i=null,b()}})}if(h){if(Ac(c))c.on("readable",function(){if(s){let p=s;s=null,p()}}),c.on("end",function(){a.push(null)}),a._read=function(){for(;;){let p=c.read();if(p===null){s=a._read;return}if(!a.push(p))return}};else if(rg(c)){let b=(Xr(c)?c.readable:c).getReader();a._read=async function(){for(;;)try{let{value:y,done:k}=await b.read();if(!a.push(y))return;if(k){a.push(null);return}}catch{return}}}}return a._destroy=function(p,b){!p&&o!==null&&(p=new Qj),s=null,r=null,i=null,o===null?b(p):(o=b,Ac(c)&&Kj(c,p))},a}});var Nk=x((Zie,ag)=>{"use strict";var Xj=globalThis.AbortController||ns().AbortController,{codes:{ERR_INVALID_ARG_VALUE:e9,ERR_INVALID_ARG_TYPE:na,ERR_MISSING_ARGS:t9,ERR_OUT_OF_RANGE:n9},AbortError:un}=nt(),{validateAbortSignal:ei,validateInteger:Ck,validateObject:ti}=is(),r9=Se().Symbol("kWeak"),i9=Se().Symbol("kResistStopPropagation"),{finished:s9}=An(),o9=ig(),{addAbortSignalNoValidate:a9}=Vo(),{isWritable:l9,isNodeStream:u9}=on(),{deprecate:c9}=lt(),{ArrayPrototypePush:f9,Boolean:h9,MathFloor:Fk,Number:p9,NumberIsNaN:d9,Promise:Rk,PromiseReject:Ok,PromiseResolve:m9,PromisePrototypeThen:Ik,Symbol:Pk}=Se(),Cc=Pk("kEmpty"),Lk=Pk("kEof");function g9(t,e){if(e!=null&&ti(e,"options"),e?.signal!=null&&ei(e.signal,"options.signal"),u9(t)&&!l9(t))throw new e9("stream",t,"must be writable");let n=o9(this,t);return e!=null&&e.signal&&a9(e.signal,n),n}function Fc(t,e){if(typeof t!="function")throw new na("fn",["Function","AsyncFunction"],t);e!=null&&ti(e,"options"),e?.signal!=null&&ei(e.signal,"options.signal");let n=1;e?.concurrency!=null&&(n=Fk(e.concurrency));let r=n-1;return e?.highWaterMark!=null&&(r=Fk(e.highWaterMark)),Ck(n,"options.concurrency",1),Ck(r,"options.highWaterMark",0),r+=n,async function*(){let s=lt().AbortSignalAny([e?.signal].filter(h9)),o=this,a=[],l={signal:s},u,c,f=!1,h=0;function p(){f=!0,b()}function b(){h-=1,y()}function y(){c&&!f&&h<n&&a.length<r&&(c(),c=null)}async function k(){try{for await(let g of o){if(f)return;if(s.aborted)throw new un;try{if(g=t(g,l),g===Cc)continue;g=m9(g)}catch(m){g=Ok(m)}h+=1,Ik(g,b,p),a.push(g),u&&(u(),u=null),!f&&(a.length>=r||h>=n)&&await new Rk(m=>{c=m})}a.push(Lk)}catch(g){let m=Ok(g);Ik(m,b,p),a.push(m)}finally{f=!0,u&&(u(),u=null)}}k();try{for(;;){for(;a.length>0;){let g=await a[0];if(g===Lk)return;if(s.aborted)throw new un;g!==Cc&&(yield g),a.shift(),y()}await new Rk(g=>{u=g})}}finally{f=!0,c&&(c(),c=null)}}.call(this)}function y9(t=void 0){return t!=null&&ti(t,"options"),t?.signal!=null&&ei(t.signal,"options.signal"),async function*(){let n=0;for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new un({cause:t.signal.reason});yield[n++,i]}}.call(this)}async function qk(t,e=void 0){for await(let n of og.call(this,t,e))return!0;return!1}async function b9(t,e=void 0){if(typeof t!="function")throw new na("fn",["Function","AsyncFunction"],t);return!await qk.call(this,async(...n)=>!await t(...n),e)}async function w9(t,e){for await(let n of og.call(this,t,e))return n}async function x9(t,e){if(typeof t!="function")throw new na("fn",["Function","AsyncFunction"],t);async function n(r,i){return await t(r,i),Cc}for await(let r of Fc.call(this,n,e));}function og(t,e){if(typeof t!="function")throw new na("fn",["Function","AsyncFunction"],t);async function n(r,i){return await t(r,i)?r:Cc}return Fc.call(this,n,e)}var sg=class extends t9{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function _9(t,e,n){var r;if(typeof t!="function")throw new na("reducer",["Function","AsyncFunction"],t);n!=null&&ti(n,"options"),n?.signal!=null&&ei(n.signal,"options.signal");let i=arguments.length>1;if(n!=null&&(r=n.signal)!==null&&r!==void 0&&r.aborted){let u=new un(void 0,{cause:n.signal.reason});throw this.once("error",()=>{}),await s9(this.destroy(u)),u}let s=new Xj,o=s.signal;if(n!=null&&n.signal){let u={once:!0,[r9]:this,[i9]:!0};n.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new un;i?e=await t(e,u,{signal:o}):(e=u,i=!0)}if(!a&&!i)throw new sg}finally{s.abort()}return e}async function D9(t){t!=null&&ti(t,"options"),t?.signal!=null&&ei(t.signal,"options.signal");let e=[];for await(let r of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new un(void 0,{cause:t.signal.reason});f9(e,r)}return e}function v9(t,e){let n=Fc.call(this,t,e);return async function*(){for await(let i of n)yield*i}.call(this)}function Mk(t){if(t=p9(t),d9(t))return 0;if(t<0)throw new n9("number",">= 0",t);return t}function S9(t,e=void 0){return e!=null&&ti(e,"options"),e?.signal!=null&&ei(e.signal,"options.signal"),t=Mk(t),async function*(){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new un;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new un;t--<=0&&(yield s)}}.call(this)}function E9(t,e=void 0){return e!=null&&ti(e,"options"),e?.signal!=null&&ei(e.signal,"options.signal"),t=Mk(t),async function*(){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new un;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new un;if(t-- >0&&(yield s),t<=0)return}}.call(this)}ag.exports.streamReturningOperators={asIndexedPairs:c9(y9,"readable.asIndexedPairs will be removed in a future version."),drop:S9,filter:og,flatMap:v9,map:Fc,take:E9,compose:g9};ag.exports.promiseReturningOperators={every:b9,forEach:x9,reduce:_9,toArray:D9,some:qk,find:w9}});var lg=x((Jie,Bk)=>{"use strict";var{ArrayPrototypePop:k9,Promise:T9}=Se(),{isIterable:A9,isNodeStream:C9,isWebStream:F9}=on(),{pipelineImpl:R9}=kc(),{finished:O9}=An();ug();function I9(...t){return new T9((e,n)=>{let r,i,s=t[t.length-1];if(s&&typeof s=="object"&&!C9(s)&&!A9(s)&&!F9(s)){let o=k9(t);r=o.signal,i=o.end}R9(t,(o,a)=>{o?n(o):e(a)},{signal:r,end:i})})}Bk.exports={finished:O9,pipeline:I9}});var ug=x((Xie,Yk)=>{"use strict";var{Buffer:L9}=N("buffer"),{ObjectDefineProperty:Rn,ObjectKeys:zk,ReflectApply:Wk}=Se(),{promisify:{custom:$k}}=lt(),{streamReturningOperators:jk,promiseReturningOperators:Uk}=Nk(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Hk}}=nt(),P9=ig(),{setDefaultHighWaterMark:q9,getDefaultHighWaterMark:M9}=Yo(),{pipeline:Gk}=kc(),{destroyer:N9}=Kr(),Vk=An(),cg=lg(),ra=on(),De=Yk.exports=cc().Stream;De.isDestroyed=ra.isDestroyed;De.isDisturbed=ra.isDisturbed;De.isErrored=ra.isErrored;De.isReadable=ra.isReadable;De.isWritable=ra.isWritable;De.Readable=Qo();for(let t of zk(jk)){let n=function(...r){if(new.target)throw Hk();return De.Readable.from(Wk(e,this,r))},e=jk[t];Rn(n,"name",{__proto__:null,value:e.name}),Rn(n,"length",{__proto__:null,value:e.length}),Rn(De.Readable.prototype,t,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let t of zk(Uk)){let n=function(...r){if(new.target)throw Hk();return Wk(e,this,r)},e=Uk[t];Rn(n,"name",{__proto__:null,value:e.name}),Rn(n,"length",{__proto__:null,value:e.length}),Rn(De.Readable.prototype,t,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}De.Writable=Dc();De.Duplex=ln();De.Transform=Hm();De.PassThrough=Vm();De.pipeline=Gk;var{addAbortSignal:B9}=Vo();De.addAbortSignal=B9;De.finished=Vk;De.destroy=N9;De.compose=P9;De.setDefaultHighWaterMark=q9;De.getDefaultHighWaterMark=M9;Rn(De,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return cg}});Rn(Gk,$k,{__proto__:null,enumerable:!0,get(){return cg.pipeline}});Rn(Vk,$k,{__proto__:null,enumerable:!0,get(){return cg.finished}});De.Stream=De;De._isUint8Array=function(e){return e instanceof Uint8Array};De._uint8ArrayToBuffer=function(e){return L9.from(e.buffer,e.byteOffset,e.byteLength)}});var ni=x((ese,ne)=>{"use strict";var Pe=N("stream");if(Pe&&process.env.READABLE_STREAM==="disable"){let t=Pe.promises;ne.exports._uint8ArrayToBuffer=Pe._uint8ArrayToBuffer,ne.exports._isUint8Array=Pe._isUint8Array,ne.exports.isDisturbed=Pe.isDisturbed,ne.exports.isErrored=Pe.isErrored,ne.exports.isReadable=Pe.isReadable,ne.exports.Readable=Pe.Readable,ne.exports.Writable=Pe.Writable,ne.exports.Duplex=Pe.Duplex,ne.exports.Transform=Pe.Transform,ne.exports.PassThrough=Pe.PassThrough,ne.exports.addAbortSignal=Pe.addAbortSignal,ne.exports.finished=Pe.finished,ne.exports.destroy=Pe.destroy,ne.exports.pipeline=Pe.pipeline,ne.exports.compose=Pe.compose,Object.defineProperty(Pe,"promises",{configurable:!0,enumerable:!0,get(){return t}}),ne.exports.Stream=Pe.Stream}else{let t=ug(),e=lg(),n=t.Readable.destroy;ne.exports=t.Readable,ne.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,ne.exports._isUint8Array=t._isUint8Array,ne.exports.isDisturbed=t.isDisturbed,ne.exports.isErrored=t.isErrored,ne.exports.isReadable=t.isReadable,ne.exports.Readable=t.Readable,ne.exports.Writable=t.Writable,ne.exports.Duplex=t.Duplex,ne.exports.Transform=t.Transform,ne.exports.PassThrough=t.PassThrough,ne.exports.addAbortSignal=t.addAbortSignal,ne.exports.finished=t.finished,ne.exports.destroy=t.destroy,ne.exports.destroy=n,ne.exports.pipeline=t.pipeline,ne.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),ne.exports.Stream=t.Stream}ne.exports.default=ne.exports});var Qk=x((tse,Kk)=>{"use strict";function j9(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}Kk.exports=j9});var eT=x((nse,Xk)=>{"use strict";var Zk=Ku(),U9=Kd(),z9=Qd(),Jk=Zk?Zk.isConcatSpreadable:void 0;function W9(t){return z9(t)||U9(t)||!!(Jk&&t&&t[Jk])}Xk.exports=W9});var Rc=x((rse,nT)=>{"use strict";var $9=Qk(),H9=eT();function tT(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=H9),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?tT(a,e-1,n,r,i):$9(i,a):r||(i[i.length]=a)}return i}nT.exports=tT});var iT=x((ise,rT)=>{"use strict";var G9=Rc();function V9(t){var e=t==null?0:t.length;return e?G9(t,1):[]}rT.exports=V9});var ia=x((sse,sT)=>{"use strict";var Y9=No(),K9=Y9(Object,"create");sT.exports=K9});var lT=x((ose,aT)=>{"use strict";var oT=ia();function Q9(){this.__data__=oT?oT(null):{},this.size=0}aT.exports=Q9});var cT=x((ase,uT)=>{"use strict";function Z9(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}uT.exports=Z9});var hT=x((lse,fT)=>{"use strict";var J9=ia(),X9="__lodash_hash_undefined__",e7=Object.prototype,t7=e7.hasOwnProperty;function n7(t){var e=this.__data__;if(J9){var n=e[t];return n===X9?void 0:n}return t7.call(e,t)?e[t]:void 0}fT.exports=n7});var dT=x((use,pT)=>{"use strict";var r7=ia(),i7=Object.prototype,s7=i7.hasOwnProperty;function o7(t){var e=this.__data__;return r7?e[t]!==void 0:s7.call(e,t)}pT.exports=o7});var gT=x((cse,mT)=>{"use strict";var a7=ia(),l7="__lodash_hash_undefined__";function u7(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=a7&&e===void 0?l7:e,this}mT.exports=u7});var bT=x((fse,yT)=>{"use strict";var c7=lT(),f7=cT(),h7=hT(),p7=dT(),d7=gT();function ms(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ms.prototype.clear=c7;ms.prototype.delete=f7;ms.prototype.get=h7;ms.prototype.has=p7;ms.prototype.set=d7;yT.exports=ms});var xT=x((hse,wT)=>{"use strict";function m7(){this.__data__=[],this.size=0}wT.exports=m7});var sa=x((pse,_T)=>{"use strict";var g7=Zu();function y7(t,e){for(var n=t.length;n--;)if(g7(t[n][0],e))return n;return-1}_T.exports=y7});var vT=x((dse,DT)=>{"use strict";var b7=sa(),w7=Array.prototype,x7=w7.splice;function _7(t){var e=this.__data__,n=b7(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():x7.call(e,n,1),--this.size,!0}DT.exports=_7});var ET=x((mse,ST)=>{"use strict";var D7=sa();function v7(t){var e=this.__data__,n=D7(e,t);return n<0?void 0:e[n][1]}ST.exports=v7});var TT=x((gse,kT)=>{"use strict";var S7=sa();function E7(t){return S7(this.__data__,t)>-1}kT.exports=E7});var CT=x((yse,AT)=>{"use strict";var k7=sa();function T7(t,e){var n=this.__data__,r=k7(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}AT.exports=T7});var RT=x((bse,FT)=>{"use strict";var A7=xT(),C7=vT(),F7=ET(),R7=TT(),O7=CT();function gs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}gs.prototype.clear=A7;gs.prototype.delete=C7;gs.prototype.get=F7;gs.prototype.has=R7;gs.prototype.set=O7;FT.exports=gs});var IT=x((wse,OT)=>{"use strict";var I7=No(),L7=Zi(),P7=I7(L7,"Map");OT.exports=P7});var qT=x((xse,PT)=>{"use strict";var LT=bT(),q7=RT(),M7=IT();function N7(){this.size=0,this.__data__={hash:new LT,map:new(M7||q7),string:new LT}}PT.exports=N7});var NT=x((_se,MT)=>{"use strict";function B7(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}MT.exports=B7});var oa=x((Dse,BT)=>{"use strict";var j7=NT();function U7(t,e){var n=t.__data__;return j7(e)?n[typeof e=="string"?"string":"hash"]:n.map}BT.exports=U7});var UT=x((vse,jT)=>{"use strict";var z7=oa();function W7(t){var e=z7(this,t).delete(t);return this.size-=e?1:0,e}jT.exports=W7});var WT=x((Sse,zT)=>{"use strict";var $7=oa();function H7(t){return $7(this,t).get(t)}zT.exports=H7});var HT=x((Ese,$T)=>{"use strict";var G7=oa();function V7(t){return G7(this,t).has(t)}$T.exports=V7});var VT=x((kse,GT)=>{"use strict";var Y7=oa();function K7(t,e){var n=Y7(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}GT.exports=K7});var KT=x((Tse,YT)=>{"use strict";var Q7=qT(),Z7=UT(),J7=WT(),X7=HT(),eU=VT();function ys(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ys.prototype.clear=Q7;ys.prototype.delete=Z7;ys.prototype.get=J7;ys.prototype.has=X7;ys.prototype.set=eU;YT.exports=ys});var ZT=x((Ase,QT)=>{"use strict";var tU="__lodash_hash_undefined__";function nU(t){return this.__data__.set(t,tU),this}QT.exports=nU});var XT=x((Cse,JT)=>{"use strict";function rU(t){return this.__data__.has(t)}JT.exports=rU});var fg=x((Fse,e2)=>{"use strict";var iU=KT(),sU=ZT(),oU=XT();function Oc(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new iU;++e<n;)this.add(t[e])}Oc.prototype.add=Oc.prototype.push=sU;Oc.prototype.has=oU;e2.exports=Oc});var n2=x((Rse,t2)=>{"use strict";function aU(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}t2.exports=aU});var i2=x((Ose,r2)=>{"use strict";function lU(t){return t!==t}r2.exports=lU});var o2=x((Ise,s2)=>{"use strict";function uU(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}s2.exports=uU});var l2=x((Lse,a2)=>{"use strict";var cU=n2(),fU=i2(),hU=o2();function pU(t,e,n){return e===e?hU(t,e,n):cU(t,fU,n)}a2.exports=pU});var hg=x((Pse,u2)=>{"use strict";var dU=l2();function mU(t,e){var n=t==null?0:t.length;return!!n&&dU(t,e,0)>-1}u2.exports=mU});var pg=x((qse,c2)=>{"use strict";function gU(t,e,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}c2.exports=gU});var h2=x((Mse,f2)=>{"use strict";function yU(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}f2.exports=yU});var dg=x((Nse,p2)=>{"use strict";function bU(t,e){return t.has(e)}p2.exports=bU});var m2=x((Bse,d2)=>{"use strict";var wU=fg(),xU=hg(),_U=pg(),DU=h2(),vU=Zd(),SU=dg(),EU=200;function kU(t,e,n,r){var i=-1,s=xU,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;n&&(e=DU(e,vU(n))),r?(s=_U,o=!1):e.length>=EU&&(s=SU,o=!1,e=new wU(e));e:for(;++i<a;){var c=t[i],f=n==null?c:n(c);if(c=r||c!==0?c:0,o&&f===f){for(var h=u;h--;)if(e[h]===f)continue e;l.push(c)}else s(e,f,r)||l.push(c)}return l}d2.exports=kU});var mg=x((jse,g2)=>{"use strict";var TU=Ju(),AU=Ji();function CU(t){return AU(t)&&TU(t)}g2.exports=CU});var w2=x((Use,b2)=>{"use strict";var FU=m2(),RU=Rc(),OU=Qu(),y2=mg(),IU=OU(function(t,e){return y2(t)?FU(t,RU(e,1,y2,!0)):[]});b2.exports=IU});var _2=x((zse,x2)=>{"use strict";var LU=No(),PU=Zi(),qU=LU(PU,"Set");x2.exports=qU});var v2=x((Wse,D2)=>{"use strict";function MU(){}D2.exports=MU});var gg=x(($se,S2)=>{"use strict";function NU(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}S2.exports=NU});var k2=x((Hse,E2)=>{"use strict";var yg=_2(),BU=v2(),jU=gg(),UU=1/0,zU=yg&&1/jU(new yg([,-0]))[1]==UU?function(t){return new yg(t)}:BU;E2.exports=zU});var A2=x((Gse,T2)=>{"use strict";var WU=fg(),$U=hg(),HU=pg(),GU=dg(),VU=k2(),YU=gg(),KU=200;function QU(t,e,n){var r=-1,i=$U,s=t.length,o=!0,a=[],l=a;if(n)o=!1,i=HU;else if(s>=KU){var u=e?null:VU(t);if(u)return YU(u);o=!1,i=GU,l=new WU}else l=e?[]:a;e:for(;++r<s;){var c=t[r],f=e?e(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;e&&l.push(f),a.push(c)}else i(l,f,n)||(l!==a&&l.push(f),a.push(c))}return a}T2.exports=QU});var F2=x((Vse,C2)=>{"use strict";var ZU=Rc(),JU=Qu(),XU=A2(),ez=mg(),tz=JU(function(t){return XU(ZU(t,1,ez,!0))});C2.exports=tz});var O2=x((Yse,R2)=>{"use strict";function nz(t,e){return function(n){return t(e(n))}}R2.exports=nz});var L2=x((Kse,I2)=>{"use strict";var rz=O2(),iz=rz(Object.getPrototypeOf,Object);I2.exports=iz});var M2=x((Qse,q2)=>{"use strict";var sz=qo(),oz=L2(),az=Ji(),lz="[object Object]",uz=Function.prototype,cz=Object.prototype,P2=uz.toString,fz=cz.hasOwnProperty,hz=P2.call(Object);function pz(t){if(!az(t)||sz(t)!=lz)return!1;var e=oz(t);if(e===null)return!0;var n=fz.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&P2.call(n)==hz}q2.exports=pz});var z2=x(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.LRUCache=void 0;var bs=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,B2=new Set,bg=typeof process=="object"&&process?process:{},j2=(t,e,n,r)=>{typeof bg.emitWarning=="function"?bg.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)},Ic=globalThis.AbortController,N2=globalThis.AbortSignal;if(typeof Ic>"u"){N2=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},Ic=class{constructor(){e()}signal=new N2;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let t=bg.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,j2("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var dz=t=>!B2.has(t),Xse=Symbol("type"),ar=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),U2=t=>ar(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ws:null:null,ws=class extends Array{constructor(e){super(e),this.fill(0)}},wg=class t{heap;length;static#e=!1;static create(e){let n=U2(e);if(!n)return[];t.#e=!0;let r=new t(e,n);return t.#e=!1,r}constructor(e,n){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},xg=class t{#e;#t;#n;#r;#o;#h;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#l;#u;#s;#y;#b;#d;#p;#v;#g;#S;#E;#x;#_;#D;#m;static unsafeExposeInternals(e){return{starts:e.#E,ttls:e.#x,sizes:e.#S,keyMap:e.#l,keyList:e.#u,valList:e.#s,next:e.#y,prev:e.#b,get head(){return e.#d},get tail(){return e.#p},free:e.#v,isBackgroundFetch:n=>e.#c(n),backgroundFetch:(n,r,i,s)=>e.#N(n,r,i,s),moveToTail:n=>e.#j(n),indexes:n=>e.#T(n),rindexes:n=>e.#A(n),isStale:n=>e.#w(n)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#o}get memoMethod(){return this.#h}get dispose(){return this.#n}get disposeAfter(){return this.#r}constructor(e){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:b=0,sizeCalculation:y,fetchMethod:k,memoMethod:g,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:d,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:T,ignoreFetchAbort:v}=e;if(n!==0&&!ar(n))throw new TypeError("max option must be a nonnegative integer");let S=n?U2(n):Array;if(!S)throw new Error("invalid max value: "+n);if(this.#e=n,this.#t=p,this.maxEntrySize=b||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#h=g,k!==void 0&&typeof k!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=k,this.#D=!!k,this.#l=new Map,this.#u=new Array(n).fill(void 0),this.#s=new Array(n).fill(void 0),this.#y=new S(n),this.#b=new S(n),this.#d=0,this.#p=0,this.#v=wg.create(n),this.#a=0,this.#f=0,typeof u=="function"&&(this.#n=u),typeof c=="function"?(this.#r=c,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#_=!!this.#n,this.#m=!!this.#r,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!v,this.maxEntrySize!==0){if(this.#t!==0&&!ar(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!ar(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!d,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ar(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!ar(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#C()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let M="LRU_CACHE_UNBOUNDED";dz(M)&&(B2.add(M),j2("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",M,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#C(){let e=new ws(this.#e),n=new ws(this.#e);this.#x=e,this.#E=n,this.#O=(s,o,a=bs.now())=>{if(n[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#R(this.#u[s],"expire")},o+1);l.unref&&l.unref()}},this.#k=s=>{n[s]=e[s]!==0?bs.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=n[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=r||i();let u=s.now-l;s.remainingTTL=a-u}};let r=0,i=()=>{let s=bs.now();if(this.ttlResolution>0){r=s;let o=setTimeout(()=>r=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=n[o];if(!a||!l)return 1/0;let u=(r||i())-l;return a-u},this.#w=s=>{let o=n[s],a=e[s];return!!a&&!!o&&(r||i())-o>a}}#k=()=>{};#i=()=>{};#O=()=>{};#w=()=>!1;#F(){let e=new ws(this.#e);this.#f=0,this.#S=e,this.#I=n=>{this.#f-=e[n],e[n]=0},this.#P=(n,r,i,s)=>{if(this.#c(r))return 0;if(!ar(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(r,n),!ar(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#L=(n,r,i)=>{if(e[n]=r,this.#t){let s=this.#t-e[n];for(;this.#f>s;)this.#M(!0)}this.#f+=e[n],i&&(i.entrySize=r,i.totalCalculatedSize=this.#f)}}#I=e=>{};#L=(e,n,r)=>{};#P=(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#T({allowStale:e=this.allowStale}={}){if(this.#a)for(let n=this.#p;!(!this.#q(n)||((e||!this.#w(n))&&(yield n),n===this.#d));)n=this.#b[n]}*#A({allowStale:e=this.allowStale}={}){if(this.#a)for(let n=this.#d;!(!this.#q(n)||((e||!this.#w(n))&&(yield n),n===this.#p));)n=this.#y[n]}#q(e){return e!==void 0&&this.#l.get(this.#u[e])===e}*entries(){for(let e of this.#T())this.#s[e]!==void 0&&this.#u[e]!==void 0&&!this.#c(this.#s[e])&&(yield[this.#u[e],this.#s[e]])}*rentries(){for(let e of this.#A())this.#s[e]!==void 0&&this.#u[e]!==void 0&&!this.#c(this.#s[e])&&(yield[this.#u[e],this.#s[e]])}*keys(){for(let e of this.#T()){let n=this.#u[e];n!==void 0&&!this.#c(this.#s[e])&&(yield n)}}*rkeys(){for(let e of this.#A()){let n=this.#u[e];n!==void 0&&!this.#c(this.#s[e])&&(yield n)}}*values(){for(let e of this.#T())this.#s[e]!==void 0&&!this.#c(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#A())this.#s[e]!==void 0&&!this.#c(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,n={}){for(let r of this.#T()){let i=this.#s[r],s=this.#c(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.#u[r],this))return this.get(this.#u[r],n)}}forEach(e,n=this){for(let r of this.#T()){let i=this.#s[r],s=this.#c(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(n,s,this.#u[r],this)}}rforEach(e,n=this){for(let r of this.#A()){let i=this.#s[r],s=this.#c(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(n,s,this.#u[r],this)}}purgeStale(){let e=!1;for(let n of this.#A({allowStale:!0}))this.#w(n)&&(this.#R(this.#u[n],"expire"),e=!0);return e}info(e){let n=this.#l.get(e);if(n===void 0)return;let r=this.#s[n],i=this.#c(r)?r.__staleWhileFetching:r;if(i===void 0)return;let s={value:i};if(this.#x&&this.#E){let o=this.#x[n],a=this.#E[n];if(o&&a){let l=o-(bs.now()-a);s.ttl=l,s.start=Date.now()}}return this.#S&&(s.size=this.#S[n]),s}dump(){let e=[];for(let n of this.#T({allowStale:!0})){let r=this.#u[n],i=this.#s[n],s=this.#c(i)?i.__staleWhileFetching:i;if(s===void 0||r===void 0)continue;let o={value:s};if(this.#x&&this.#E){o.ttl=this.#x[n];let a=bs.now()-this.#E[n];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[n]),e.unshift([r,o])}return e}load(e){this.clear();for(let[n,r]of e){if(r.start){let i=Date.now()-r.start;r.start=bs.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){if(n===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=r,{noUpdateTTL:u=this.noUpdateTTL}=r,c=this.#P(e,n,r.size||0,a);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#R(e,"set"),this;let f=this.#a===0?void 0:this.#l.get(e);if(f===void 0)f=this.#a===0?this.#p:this.#v.length!==0?this.#v.pop():this.#a===this.#e?this.#M(!1):this.#a,this.#u[f]=e,this.#s[f]=n,this.#l.set(e,f),this.#y[this.#p]=f,this.#b[f]=this.#p,this.#p=f,this.#a++,this.#L(f,c,l),l&&(l.set="add"),u=!1;else{this.#j(f);let h=this.#s[f];if(n!==h){if(this.#D&&this.#c(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!o&&(this.#_&&this.#n?.(p,e,"set"),this.#m&&this.#g?.push([p,e,"set"]))}else o||(this.#_&&this.#n?.(h,e,"set"),this.#m&&this.#g?.push([h,e,"set"]));if(this.#I(f),this.#L(f,c,l),this.#s[f]=n,l){l.set="replace";let p=h&&this.#c(h)?h.__staleWhileFetching:h;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#x&&this.#C(),this.#x&&(u||this.#O(f,i,s),l&&this.#i(l,f)),!o&&this.#m&&this.#g){let h=this.#g,p;for(;p=h?.shift();)this.#r?.(...p)}return this}pop(){try{for(;this.#a;){let e=this.#s[this.#d];if(this.#M(!0),this.#c(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#m&&this.#g){let e=this.#g,n;for(;n=e?.shift();)this.#r?.(...n)}}}#M(e){let n=this.#d,r=this.#u[n],i=this.#s[n];return this.#D&&this.#c(i)?i.__abortController.abort(new Error("evicted")):(this.#_||this.#m)&&(this.#_&&this.#n?.(i,r,"evict"),this.#m&&this.#g?.push([i,r,"evict"])),this.#I(n),e&&(this.#u[n]=void 0,this.#s[n]=void 0,this.#v.push(n)),this.#a===1?(this.#d=this.#p=0,this.#v.length=0):this.#d=this.#y[n],this.#l.delete(r),this.#a--,n}has(e,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#c(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))i&&(i.has="stale",this.#i(i,s));else return r&&this.#k(s),i&&(i.has="hit",this.#i(i,s)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){let{allowStale:r=this.allowStale}=n,i=this.#l.get(e);if(i===void 0||!r&&this.#w(i))return;let s=this.#s[i];return this.#c(s)?s.__staleWhileFetching:s}#N(e,n,r,i){let s=n===void 0?void 0:this.#s[n];if(this.#c(s))return s;let o=new Ic,{signal:a}=r;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:r,context:i},u=(y,k=!1)=>{let{aborted:g}=o.signal,m=r.ignoreFetchAbort&&y!==void 0;if(r.status&&(g&&!k?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,m&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),g&&!m&&!k)return f(o.signal.reason);let d=p;return this.#s[n]===p&&(y===void 0?d.__staleWhileFetching?this.#s[n]=d.__staleWhileFetching:this.#R(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,y,l.options))),y},c=y=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=y),f(y)),f=y=>{let{aborted:k}=o.signal,g=k&&r.allowStaleOnFetchAbort,m=g||r.allowStaleOnFetchRejection,d=m||r.noDeleteOnFetchRejection,w=p;if(this.#s[n]===p&&(!d||w.__staleWhileFetching===void 0?this.#R(e,"fetch"):g||(this.#s[n]=w.__staleWhileFetching)),m)return r.status&&w.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),w.__staleWhileFetching;if(w.__returned===w)throw y},h=(y,k)=>{let g=this.#o?.(e,s,l);g&&g instanceof Promise&&g.then(m=>y(m===void 0?void 0:m),k),o.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(y(void 0),r.allowStaleOnFetchAbort&&(y=m=>u(m,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(u,c),b=Object.assign(p,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return n===void 0?(this.set(e,b,{...l.options,status:void 0}),n=this.#l.get(e)):this.#s[n]=b,b}#c(e){if(!this.#D)return!1;let n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ic}async fetch(e,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:y,forceRefresh:k=!1,status:g,signal:m}=n;if(!this.#D)return g&&(g.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:g});let d={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:b,ignoreFetchAbort:p,status:g,signal:m},w=this.#l.get(e);if(w===void 0){g&&(g.fetch="miss");let T=this.#N(e,w,d,y);return T.__returned=T}else{let T=this.#s[w];if(this.#c(T)){let F=r&&T.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",F&&(g.returnedStale=!0)),F?T.__staleWhileFetching:T.__returned=T}let v=this.#w(w);if(!k&&!v)return g&&(g.fetch="hit"),this.#j(w),i&&this.#k(w),g&&this.#i(g,w),T;let S=this.#N(e,w,d,y),A=S.__staleWhileFetching!==void 0&&r;return g&&(g.fetch=v?"stale":"refresh",A&&v&&(g.returnedStale=!0)),A?S.__staleWhileFetching:S.__returned=S}}async forceFetch(e,n={}){let r=await this.fetch(e,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,n={}){let r=this.#h;if(!r)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=n,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=r(e,a,{options:o,context:i});return this.set(e,l,o),l}get(e,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=n,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#c(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&r&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),r?l.__staleWhileFetching:void 0):(s||this.#R(e,"expire"),o&&r&&(o.returnedStale=!0),r?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#j(a),i&&this.#k(a),l))}else o&&(o.get="miss")}#B(e,n){this.#b[n]=e,this.#y[e]=n}#j(e){e!==this.#p&&(e===this.#d?this.#d=this.#y[e]:this.#B(this.#b[e],this.#y[e]),this.#B(this.#p,e),this.#p=e)}delete(e){return this.#R(e,"delete")}#R(e,n){let r=!1;if(this.#a!==0){let i=this.#l.get(e);if(i!==void 0)if(r=!0,this.#a===1)this.#U(n);else{this.#I(i);let s=this.#s[i];if(this.#c(s)?s.__abortController.abort(new Error("deleted")):(this.#_||this.#m)&&(this.#_&&this.#n?.(s,e,n),this.#m&&this.#g?.push([s,e,n])),this.#l.delete(e),this.#u[i]=void 0,this.#s[i]=void 0,i===this.#p)this.#p=this.#b[i];else if(i===this.#d)this.#d=this.#y[i];else{let o=this.#b[i];this.#y[o]=this.#y[i];let a=this.#y[i];this.#b[a]=this.#b[i]}this.#a--,this.#v.push(i)}}if(this.#m&&this.#g?.length){let i=this.#g,s;for(;s=i?.shift();)this.#r?.(...s)}return r}clear(){return this.#U("delete")}#U(e){for(let n of this.#A({allowStale:!0})){let r=this.#s[n];if(this.#c(r))r.__abortController.abort(new Error("deleted"));else{let i=this.#u[n];this.#_&&this.#n?.(r,i,e),this.#m&&this.#g?.push([r,i,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#u.fill(void 0),this.#x&&this.#E&&(this.#x.fill(0),this.#E.fill(0)),this.#S&&this.#S.fill(0),this.#d=0,this.#p=0,this.#v.length=0,this.#f=0,this.#a=0,this.#m&&this.#g){let n=this.#g,r;for(;r=n?.shift();)this.#r?.(...r)}}};Lc.LRUCache=xg});var Ag=x(ct=>{"use strict";var mz=ct&&ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ct,"__esModule",{value:!0});ct.Minipass=ct.isWritable=ct.isReadable=ct.isStream=void 0;var W2=typeof process=="object"&&process?process:{stdout:null,stderr:null},Tg=N("node:events"),V2=mz(N("node:stream")),gz=N("node:string_decoder"),yz=t=>!!t&&typeof t=="object"&&(t instanceof Uc||t instanceof V2.default||(0,ct.isReadable)(t)||(0,ct.isWritable)(t));ct.isStream=yz;var bz=t=>!!t&&typeof t=="object"&&t instanceof Tg.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==V2.default.Writable.prototype.pipe;ct.isReadable=bz;var wz=t=>!!t&&typeof t=="object"&&t instanceof Tg.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";ct.isWritable=wz;var On=Symbol("EOF"),In=Symbol("maybeEmitEnd"),lr=Symbol("emittedEnd"),Pc=Symbol("emittingEnd"),aa=Symbol("emittedError"),qc=Symbol("closed"),$2=Symbol("read"),Mc=Symbol("flush"),H2=Symbol("flushChunk"),Kt=Symbol("encoding"),xs=Symbol("decoder"),Be=Symbol("flowing"),la=Symbol("paused"),_s=Symbol("resume"),je=Symbol("buffer"),ut=Symbol("pipes"),Ue=Symbol("bufferLength"),_g=Symbol("bufferPush"),Nc=Symbol("bufferShift"),it=Symbol("objectMode"),Fe=Symbol("destroyed"),Dg=Symbol("error"),vg=Symbol("emitData"),G2=Symbol("emitEnd"),Sg=Symbol("emitEnd2"),cn=Symbol("async"),Eg=Symbol("abort"),Bc=Symbol("aborted"),ua=Symbol("signal"),ri=Symbol("dataListeners"),xt=Symbol("discarded"),ca=t=>Promise.resolve().then(t),xz=t=>t(),_z=t=>t==="end"||t==="finish"||t==="prefinish",Dz=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,vz=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),jc=class{src;dest;opts;ondrain;constructor(e,n,r){this.src=e,this.dest=n,this.opts=r,this.ondrain=()=>e[_s](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},kg=class extends jc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,n,r){super(e,n,r),this.proxyErrors=i=>n.emit("error",i),e.on("error",this.proxyErrors)}},Sz=t=>!!t.objectMode,Ez=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",Uc=class extends Tg.EventEmitter{[Be]=!1;[la]=!1;[ut]=[];[je]=[];[it];[Kt];[cn];[xs];[On]=!1;[lr]=!1;[Pc]=!1;[qc]=!1;[aa]=null;[Ue]=0;[Fe]=!1;[ua];[Bc]=!1;[ri]=0;[xt]=!1;writable=!0;readable=!0;constructor(...e){let n=e[0]||{};if(super(),n.objectMode&&typeof n.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");Sz(n)?(this[it]=!0,this[Kt]=null):Ez(n)?(this[Kt]=n.encoding,this[it]=!1):(this[it]=!1,this[Kt]=null),this[cn]=!!n.async,this[xs]=this[Kt]?new gz.StringDecoder(this[Kt]):null,n&&n.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[je]}),n&&n.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ut]});let{signal:r}=n;r&&(this[ua]=r,r.aborted?this[Eg]():r.addEventListener("abort",()=>this[Eg]()))}get bufferLength(){return this[Ue]}get encoding(){return this[Kt]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[it]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[cn]}set async(e){this[cn]=this[cn]||!!e}[Eg](){this[Bc]=!0,this.emit("abort",this[ua]?.reason),this.destroy(this[ua]?.reason)}get aborted(){return this[Bc]}set aborted(e){}write(e,n,r){if(this[Bc])return!1;if(this[On])throw new Error("write after end");if(this[Fe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof n=="function"&&(r=n,n="utf8"),n||(n="utf8");let i=this[cn]?ca:xz;if(!this[it]&&!Buffer.isBuffer(e)){if(vz(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(Dz(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[it]?(this[Be]&&this[Ue]!==0&&this[Mc](!0),this[Be]?this.emit("data",e):this[_g](e),this[Ue]!==0&&this.emit("readable"),r&&i(r),this[Be]):e.length?(typeof e=="string"&&!(n===this[Kt]&&!this[xs]?.lastNeed)&&(e=Buffer.from(e,n)),Buffer.isBuffer(e)&&this[Kt]&&(e=this[xs].write(e)),this[Be]&&this[Ue]!==0&&this[Mc](!0),this[Be]?this.emit("data",e):this[_g](e),this[Ue]!==0&&this.emit("readable"),r&&i(r),this[Be]):(this[Ue]!==0&&this.emit("readable"),r&&i(r),this[Be])}read(e){if(this[Fe])return null;if(this[xt]=!1,this[Ue]===0||e===0||e&&e>this[Ue])return this[In](),null;this[it]&&(e=null),this[je].length>1&&!this[it]&&(this[je]=[this[Kt]?this[je].join(""):Buffer.concat(this[je],this[Ue])]);let n=this[$2](e||null,this[je][0]);return this[In](),n}[$2](e,n){if(this[it])this[Nc]();else{let r=n;e===r.length||e===null?this[Nc]():typeof r=="string"?(this[je][0]=r.slice(e),n=r.slice(0,e),this[Ue]-=e):(this[je][0]=r.subarray(e),n=r.subarray(0,e),this[Ue]-=e)}return this.emit("data",n),!this[je].length&&!this[On]&&this.emit("drain"),n}end(e,n,r){return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n="utf8"),e!==void 0&&this.write(e,n),r&&this.once("end",r),this[On]=!0,this.writable=!1,(this[Be]||!this[la])&&this[In](),this}[_s](){this[Fe]||(!this[ri]&&!this[ut].length&&(this[xt]=!0),this[la]=!1,this[Be]=!0,this.emit("resume"),this[je].length?this[Mc]():this[On]?this[In]():this.emit("drain"))}resume(){return this[_s]()}pause(){this[Be]=!1,this[la]=!0,this[xt]=!1}get destroyed(){return this[Fe]}get flowing(){return this[Be]}get paused(){return this[la]}[_g](e){this[it]?this[Ue]+=1:this[Ue]+=e.length,this[je].push(e)}[Nc](){return this[it]?this[Ue]-=1:this[Ue]-=this[je][0].length,this[je].shift()}[Mc](e=!1){do;while(this[H2](this[Nc]())&&this[je].length);!e&&!this[je].length&&!this[On]&&this.emit("drain")}[H2](e){return this.emit("data",e),this[Be]}pipe(e,n){if(this[Fe])return e;this[xt]=!1;let r=this[lr];return n=n||{},e===W2.stdout||e===W2.stderr?n.end=!1:n.end=n.end!==!1,n.proxyErrors=!!n.proxyErrors,r?n.end&&e.end():(this[ut].push(n.proxyErrors?new kg(this,e,n):new jc(this,e,n)),this[cn]?ca(()=>this[_s]()):this[_s]()),e}unpipe(e){let n=this[ut].find(r=>r.dest===e);n&&(this[ut].length===1?(this[Be]&&this[ri]===0&&(this[Be]=!1),this[ut]=[]):this[ut].splice(this[ut].indexOf(n),1),n.unpipe())}addListener(e,n){return this.on(e,n)}on(e,n){let r=super.on(e,n);if(e==="data")this[xt]=!1,this[ri]++,!this[ut].length&&!this[Be]&&this[_s]();else if(e==="readable"&&this[Ue]!==0)super.emit("readable");else if(_z(e)&&this[lr])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[aa]){let i=n;this[cn]?ca(()=>i.call(this,this[aa])):i.call(this,this[aa])}return r}removeListener(e,n){return this.off(e,n)}off(e,n){let r=super.off(e,n);return e==="data"&&(this[ri]=this.listeners("data").length,this[ri]===0&&!this[xt]&&!this[ut].length&&(this[Be]=!1)),r}removeAllListeners(e){let n=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[ri]=0,!this[xt]&&!this[ut].length&&(this[Be]=!1)),n}get emittedEnd(){return this[lr]}[In](){!this[Pc]&&!this[lr]&&!this[Fe]&&this[je].length===0&&this[On]&&(this[Pc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[qc]&&this.emit("close"),this[Pc]=!1)}emit(e,...n){let r=n[0];if(e!=="error"&&e!=="close"&&e!==Fe&&this[Fe])return!1;if(e==="data")return!this[it]&&!r?!1:this[cn]?(ca(()=>this[vg](r)),!0):this[vg](r);if(e==="end")return this[G2]();if(e==="close"){if(this[qc]=!0,!this[lr]&&!this[Fe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[aa]=r,super.emit(Dg,r);let s=!this[ua]||this.listeners("error").length?super.emit("error",r):!1;return this[In](),s}else if(e==="resume"){let s=super.emit("resume");return this[In](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...n);return this[In](),i}[vg](e){for(let r of this[ut])r.dest.write(e)===!1&&this.pause();let n=this[xt]?!1:super.emit("data",e);return this[In](),n}[G2](){return this[lr]?!1:(this[lr]=!0,this.readable=!1,this[cn]?(ca(()=>this[Sg]()),!0):this[Sg]())}[Sg](){if(this[xs]){let n=this[xs].end();if(n){for(let r of this[ut])r.dest.write(n);this[xt]||super.emit("data",n)}}for(let n of this[ut])n.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[it]||(e.dataLength=0);let n=this.promise();return this.on("data",r=>{e.push(r),this[it]||(e.dataLength+=r.length)}),await n,e}async concat(){if(this[it])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Kt]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,n)=>{this.on(Fe,()=>n(new Error("stream destroyed"))),this.on("error",r=>n(r)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[xt]=!1;let e=!1,n=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return n();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[On])return n();let s,o,a=f=>{this.off("data",l),this.off("end",u),this.off(Fe,c),n(),o(f)},l=f=>{this.off("error",a),this.off("end",u),this.off(Fe,c),this.pause(),s({value:f,done:!!this[On]})},u=()=>{this.off("error",a),this.off("data",l),this.off(Fe,c),n(),s({done:!0,value:void 0})},c=()=>a(new Error("stream destroyed"));return new Promise((f,h)=>{o=h,s=f,this.once(Fe,c),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:n,return:n,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[xt]=!1;let e=!1,n=()=>(this.pause(),this.off(Dg,n),this.off(Fe,n),this.off("end",n),e=!0,{done:!0,value:void 0}),r=()=>{if(e)return n();let i=this.read();return i===null?n():{done:!1,value:i}};return this.once("end",n),this.once(Dg,n),this.once(Fe,n),{next:r,throw:n,return:n,[Symbol.iterator](){return this}}}destroy(e){if(this[Fe])return e?this.emit("error",e):this.emit(Fe),this;this[Fe]=!0,this[xt]=!0,this[je].length=0,this[Ue]=0;let n=this;return typeof n.close=="function"&&!this[qc]&&n.close(),e?this.emit("error",e):this.emit(Fe),this}static get isStream(){return ct.isStream}};ct.Minipass=Uc});var lA=x(pe=>{"use strict";var kz=pe&&pe.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Tz=pe&&pe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Az=pe&&pe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&kz(e,t,n);return Tz(e,t),e};Object.defineProperty(pe,"__esModule",{value:!0});pe.PathScurry=pe.Path=pe.PathScurryDarwin=pe.PathScurryPosix=pe.PathScurryWin32=pe.PathScurryBase=pe.PathPosix=pe.PathWin32=pe.PathBase=pe.ChildrenCache=pe.ResolveCache=void 0;var X2=z2(),Gc=N("node:path"),Cz=N("node:url"),ha=N("fs"),Fz=Az(N("node:fs")),Rz=ha.realpathSync.native,zc=N("node:fs/promises"),Y2=Ag(),pa={lstatSync:ha.lstatSync,readdir:ha.readdir,readdirSync:ha.readdirSync,readlinkSync:ha.readlinkSync,realpathSync:Rz,promises:{lstat:zc.lstat,readdir:zc.readdir,readlink:zc.readlink,realpath:zc.realpath}},eA=t=>!t||t===pa||t===Fz?pa:{...pa,...t,promises:{...pa.promises,...t.promises||{}}},tA=/^\\\\\?\\([a-z]:)\\?$/i,Oz=t=>t.replace(/\//g,"\\").replace(tA,"$1\\"),Iz=/[\\\/]/,qt=0,nA=1,rA=2,fn=4,iA=6,sA=8,ii=10,oA=12,Pt=15,fa=~Pt,Cg=16,K2=32,da=64,Qt=128,Wc=256,Hc=512,Q2=da|Qt|Hc,Lz=1023,Fg=t=>t.isFile()?sA:t.isDirectory()?fn:t.isSymbolicLink()?ii:t.isCharacterDevice()?rA:t.isBlockDevice()?iA:t.isSocket()?oA:t.isFIFO()?nA:qt,Z2=new Map,ma=t=>{let e=Z2.get(t);if(e)return e;let n=t.normalize("NFKD");return Z2.set(t,n),n},J2=new Map,$c=t=>{let e=J2.get(t);if(e)return e;let n=ma(t.toLowerCase());return J2.set(t,n),n},ga=class extends X2.LRUCache{constructor(){super({max:256})}};pe.ResolveCache=ga;var Vc=class extends X2.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:n=>n.length+1})}};pe.ChildrenCache=Vc;var aA=Symbol("PathScurry setAsCwd"),Ye=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#n;get mode(){return this.#n}#r;get nlink(){return this.#r}#o;get uid(){return this.#o}#h;get gid(){return this.#h}#a;get rdev(){return this.#a}#f;get blksize(){return this.#f}#l;get ino(){return this.#l}#u;get size(){return this.#u}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#b;get mtimeMs(){return this.#b}#d;get ctimeMs(){return this.#d}#p;get birthtimeMs(){return this.#p}#v;get atime(){return this.#v}#g;get mtime(){return this.#g}#S;get ctime(){return this.#S}#E;get birthtime(){return this.#E}#x;#_;#D;#m;#C;#k;#i;#O;#w;#F;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,n=qt,r,i,s,o,a){this.name=e,this.#x=s?$c(e):ma(e),this.#i=n&Lz,this.nocase=s,this.roots=i,this.root=r||this,this.#O=o,this.#D=a.fullpath,this.#C=a.relative,this.#k=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=eA(a.fs)}depth(){return this.#_!==void 0?this.#_:this.parent?this.#_=this.parent.depth()+1:this.#_=0}childrenCache(){return this.#O}resolve(e){if(!e)return this;let n=this.getRootString(e),i=e.substring(n.length).split(this.splitSep);return n?this.getRoot(n).#I(i):this.#I(i)}#I(e){let n=this;for(let r of e)n=n.child(r);return n}children(){let e=this.#O.get(this);if(e)return e;let n=Object.assign([],{provisional:0});return this.#O.set(this,n),this.#i&=~Cg,n}child(e,n){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let r=this.children(),i=this.nocase?$c(e):ma(e);for(let l of r)if(l.#x===i)return l;let s=this.parent?this.sep:"",o=this.#D?this.#D+s+e:void 0,a=this.newChild(e,qt,{...n,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Qt),r.push(a),a}relative(){if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let e=this.name,n=this.parent;if(!n)return this.#C=this.name;let r=n.relative();return r+(!r||!n.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#k!==void 0)return this.#k;let e=this.name,n=this.parent;if(!n)return this.#k=this.fullpathPosix();let r=n.relativePosix();return r+(!r||!n.parent?"":"/")+e}fullpath(){if(this.#D!==void 0)return this.#D;let e=this.name,n=this.parent;if(!n)return this.#D=this.name;let i=n.fullpath()+(n.parent?this.sep:"")+e;return this.#D=i}fullpathPosix(){if(this.#m!==void 0)return this.#m;if(this.sep==="/")return this.#m=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#m=`//?/${i}`:this.#m=i}let e=this.parent,n=e.fullpathPosix(),r=n+(!n||!e.parent?"":"/")+this.name;return this.#m=r}isUnknown(){return(this.#i&Pt)===qt}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&Pt)===sA}isDirectory(){return(this.#i&Pt)===fn}isCharacterDevice(){return(this.#i&Pt)===rA}isBlockDevice(){return(this.#i&Pt)===iA}isFIFO(){return(this.#i&Pt)===nA}isSocket(){return(this.#i&Pt)===oA}isSymbolicLink(){return(this.#i&ii)===ii}lstatCached(){return this.#i&K2?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#F}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&Pt;return!(e!==qt&&e!==ii||this.#i&Wc||this.#i&Qt)}calledReaddir(){return!!(this.#i&Cg)}isENOENT(){return!!(this.#i&Qt)}isNamed(e){return this.nocase?this.#x===$c(e):this.#x===ma(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let n=await this.#e.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(n);if(r)return this.#w=r}catch(n){this.#c(n.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let n=this.#e.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(n);if(r)return this.#w=r}catch(n){this.#c(n.code);return}}#L(e){this.#i|=Cg;for(let n=e.provisional;n<e.length;n++){let r=e[n];r&&r.#P()}}#P(){this.#i&Qt||(this.#i=(this.#i|Qt)&fa,this.#T())}#T(){let e=this.children();e.provisional=0;for(let n of e)n.#P()}#A(){this.#i|=Hc,this.#q()}#q(){if(this.#i&da)return;let e=this.#i;(e&Pt)===fn&&(e&=fa),this.#i=e|da,this.#T()}#M(e=""){e==="ENOTDIR"||e==="EPERM"?this.#q():e==="ENOENT"?this.#P():this.children().provisional=0}#N(e=""){e==="ENOTDIR"?this.parent.#q():e==="ENOENT"&&this.#P()}#c(e=""){let n=this.#i;n|=Wc,e==="ENOENT"&&(n|=Qt),(e==="EINVAL"||e==="UNKNOWN")&&(n&=fa),this.#i=n,e==="ENOTDIR"&&this.parent&&this.parent.#q()}#B(e,n){return this.#R(e,n)||this.#j(e,n)}#j(e,n){let r=Fg(e),i=this.newChild(e.name,r,{parent:this}),s=i.#i&Pt;return s!==fn&&s!==ii&&s!==qt&&(i.#i|=da),n.unshift(i),n.provisional++,i}#R(e,n){for(let r=n.provisional;r<n.length;r++){let i=n[r];if((this.nocase?$c(e.name):ma(e.name))===i.#x)return this.#U(e,i,r,n)}}#U(e,n,r,i){let s=n.name;return n.#i=n.#i&fa|Fg(e),s!==e.name&&(n.name=e.name),r!==i.provisional&&(r===i.length-1?i.pop():i.splice(r,1),i.unshift(n)),i.provisional++,n}async lstat(){if((this.#i&Qt)===0)try{return this.#H(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#N(e.code)}}lstatSync(){if((this.#i&Qt)===0)try{return this.#H(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#N(e.code)}}#H(e){let{atime:n,atimeMs:r,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:c,gid:f,ino:h,mode:p,mtime:b,mtimeMs:y,nlink:k,rdev:g,size:m,uid:d}=e;this.#v=n,this.#y=r,this.#E=i,this.#p=s,this.#f=o,this.#s=a,this.#S=l,this.#d=u,this.#t=c,this.#h=f,this.#l=h,this.#n=p,this.#g=b,this.#b=y,this.#r=k,this.#a=g,this.#u=m,this.#o=d;let w=Fg(e);this.#i=this.#i&fa|w|K2,w!==qt&&w!==fn&&w!==ii&&(this.#i|=da)}#W=[];#$=!1;#G(e){this.#$=!1;let n=this.#W.slice();this.#W.length=0,n.forEach(r=>r(null,e))}readdirCB(e,n=!1){if(!this.canReaddir()){n?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let s=r.slice(0,r.provisional);n?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#W.push(e),this.#$)return;this.#$=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#M(s.code),r.provisional=0;else{for(let a of o)this.#B(a,r);this.#L(r)}this.#G(r.slice(0,r.provisional))})}#z;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let n=this.fullpath();if(this.#z)await this.#z;else{let r=()=>{};this.#z=new Promise(i=>r=i);try{for(let i of await this.#e.promises.readdir(n,{withFileTypes:!0}))this.#B(i,e);this.#L(e)}catch(i){this.#M(i.code),e.provisional=0}this.#z=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let n=this.fullpath();try{for(let r of this.#e.readdirSync(n,{withFileTypes:!0}))this.#B(r,e);this.#L(e)}catch(r){this.#M(r.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&Q2)return!1;let e=Pt&this.#i;return e===qt||e===fn||e===ii}shouldWalk(e,n){return(this.#i&fn)===fn&&!(this.#i&Q2)&&!e.has(this)&&(!n||n(this))}async realpath(){if(this.#F)return this.#F;if(!((Hc|Wc|Qt)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#F=this.resolve(e)}catch{this.#A()}}realpathSync(){if(this.#F)return this.#F;if(!((Hc|Wc|Qt)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#F=this.resolve(e)}catch{this.#A()}}[aA](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let n=new Set([]),r=[],i=this;for(;i&&i.parent;)n.add(i),i.#C=r.join(this.sep),i.#k=r.join("/"),i=i.parent,r.push("..");for(i=e;i&&i.parent&&!n.has(i);)i.#C=void 0,i.#k=void 0,i=i.parent}};pe.PathBase=Ye;var ya=class t extends Ye{sep="\\";splitSep=Iz;constructor(e,n=qt,r,i,s,o,a){super(e,n,r,i,s,o,a)}newChild(e,n=qt,r={}){return new t(e,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return Gc.win32.parse(e).root}getRoot(e){if(e=Oz(e.toUpperCase()),e===this.root.name)return this.root;for(let[n,r]of Object.entries(this.roots))if(this.sameRoot(e,n))return this.roots[e]=r;return this.roots[e]=new xa(e,this).root}sameRoot(e,n=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(tA,"$1\\"),e===n}};pe.PathWin32=ya;var ba=class t extends Ye{splitSep="/";sep="/";constructor(e,n=qt,r,i,s,o,a){super(e,n,r,i,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,n=qt,r={}){return new t(e,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}};pe.PathPosix=ba;var wa=class{root;rootPath;roots;cwd;#e;#t;#n;nocase;#r;constructor(e=process.cwd(),n,r,{nocase:i,childrenCacheSize:s=16*1024,fs:o=pa}={}){this.#r=eA(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,Cz.fileURLToPath)(e));let a=n.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new ga,this.#t=new ga,this.#n=new Vc(s);let l=a.substring(this.rootPath.length).split(r);if(l.length===1&&!l[0]&&l.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let u=this.root,c=l.length-1,f=n.sep,h=this.rootPath,p=!1;for(let b of l){let y=c--;u=u.child(b,{relative:new Array(y).fill("..").join(f),relativePosix:new Array(y).fill("..").join("/"),fullpath:h+=(p?"":f)+b}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let n="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(n=n?`${o}/${n}`:o,this.isAbsolute(o)))break}let r=this.#e.get(n);if(r!==void 0)return r;let i=this.cwd.resolve(n).fullpath();return this.#e.set(n,i),i}resolvePosix(...e){let n="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(n=n?`${o}/${n}`:o,this.isAbsolute(o)))break}let r=this.#t.get(n);if(r!==void 0)return r;let i=this.cwd.resolve(n).fullpathPosix();return this.#t.set(n,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,n={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r}=n;if(e.canReaddir()){let i=await e.readdir();return r?i:i.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,n={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0}=n;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e.withFileTypes,e=this.cwd);let r=await e.readlink();return n?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e.withFileTypes,e=this.cwd);let r=e.readlinkSync();return n?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e.withFileTypes,e=this.cwd);let r=await e.realpath();return n?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e.withFileTypes,e=this.cwd);let r=e.realpathSync();return n?r:r?.fullpath()}async walk(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n,a=[];(!s||s(e))&&a.push(r?e:e.fullpath());let l=new Set,u=(f,h)=>{l.add(f),f.readdirCB((p,b)=>{if(p)return h(p);let y=b.length;if(!y)return h();let k=()=>{--y===0&&h()};for(let g of b)(!s||s(g))&&a.push(r?g:g.fullpath()),i&&g.isSymbolicLink()?g.realpath().then(m=>m?.isUnknown()?m.lstat():m).then(m=>m?.shouldWalk(l,o)?u(m,k):k()):g.shouldWalk(l,o)?u(g,k):k()},!0)},c=e;return new Promise((f,h)=>{u(c,p=>{if(p)return h(p);f(a)})})}walkSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n,a=[];(!s||s(e))&&a.push(r?e:e.fullpath());let l=new Set([e]);for(let u of l){let c=u.readdirSync();for(let f of c){(!s||s(f))&&a.push(r?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(i&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,n={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd),this.stream(e,n)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n;(!s||s(e))&&(yield r?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let c of u){(!s||s(c))&&(yield r?c:c.fullpath());let f=c;if(c.isSymbolicLink()){if(!(i&&(f=c.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(a,o)&&a.add(f)}}}stream(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n,a=new Y2.Minipass({objectMode:!0});(!s||s(e))&&a.write(r?e:e.fullpath());let l=new Set,u=[e],c=0,f=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){c===0&&a.end();return}c++,l.add(p);let b=(k,g,m=!1)=>{if(k)return a.emit("error",k);if(i&&!m){let d=[];for(let w of g)w.isSymbolicLink()&&d.push(w.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(d.length){Promise.all(d).then(()=>b(null,g,!0));return}}for(let d of g)d&&(!s||s(d))&&(a.write(r?d:d.fullpath())||(h=!0));c--;for(let d of g){let w=d.realpathCached()||d;w.shouldWalk(l,o)&&u.push(w)}h&&!a.flowing?a.once("drain",f):y||f()},y=!0;p.readdirCB(b,!0),y=!1}};return f(),a}streamSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n,a=new Y2.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(r?e:e.fullpath());let u=[e],c=0,f=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){c===0&&a.end();return}c++,l.add(p);let b=p.readdirSync();for(let y of b)(!s||s(y))&&(a.write(r?y:y.fullpath())||(h=!0));c--;for(let y of b){let k=y;if(y.isSymbolicLink()){if(!(i&&(k=y.realpathSync())))continue;k.isUnknown()&&k.lstatSync()}k.shouldWalk(l,o)&&u.push(k)}}h&&!a.flowing&&a.once("drain",f)};return f(),a}chdir(e=this.cwd){let n=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[aA](n)}};pe.PathScurryBase=wa;var xa=class extends wa{sep="\\";constructor(e=process.cwd(),n={}){let{nocase:r=!0}=n;super(e,Gc.win32,"\\",{...n,nocase:r}),this.nocase=r;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return Gc.win32.parse(e).root.toUpperCase()}newRoot(e){return new ya(this.rootPath,fn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};pe.PathScurryWin32=xa;var _a=class extends wa{sep="/";constructor(e=process.cwd(),n={}){let{nocase:r=!1}=n;super(e,Gc.posix,"/",{...n,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new ba(this.rootPath,fn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};pe.PathScurryPosix=_a;var Yc=class extends _a{constructor(e=process.cwd(),n={}){let{nocase:r=!0}=n;super(e,{...n,nocase:r})}};pe.PathScurryDarwin=Yc;pe.Path=process.platform==="win32"?ya:ba;pe.PathScurry=process.platform==="win32"?xa:process.platform==="darwin"?Yc:_a});var Og=x(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.Pattern=void 0;var Pz=Mn(),qz=t=>t.length>=1,Mz=t=>t.length>=1,Rg=class t{#e;#t;#n;length;#r;#o;#h;#a;#f;#l;#u=!0;constructor(e,n,r,i){if(!qz(e))throw new TypeError("empty pattern list");if(!Mz(n))throw new TypeError("empty glob list");if(n.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=n,this.#n=r,this.#r=i,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[c,f,h,p,...b]=this.#t;u[0]===""&&(u.shift(),b.shift());let y=[s,o,a,l,""].join("/"),k=[c,f,h,p,""].join("/");this.#e=[y,...u],this.#t=[k,...b],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#t;o[0]===""&&(o.shift(),l.shift());let u=s+"/",c=a+"/";this.#e=[u,...o],this.#t=[c,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===Pz.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#h=this.#h||(this.#n===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#t,this.#n+1,this.#r),this.#o.#l=this.#l,this.#o.#f=this.#f,this.#o.#a=this.#a,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#f!==void 0?this.#f:this.#f=this.#r==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#r==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};Kc.Pattern=Rg});var Lg=x(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.Ignore=void 0;var uA=Mn(),Nz=Og(),Bz=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ig=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:n,nocase:r,noext:i,noglobstar:s,platform:o=Bz}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:n,nocase:r,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let n=new uA.Minimatch(e,this.mmopts);for(let r=0;r<n.set.length;r++){let i=n.set[r],s=n.globParts[r];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new Nz.Pattern(i,s,0,this.platform),a=new uA.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let n=e.fullpath(),r=`${n}/`,i=e.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(n)||o.match(r))return!0;return!1}childrenIgnored(e){let n=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(r))return!0;for(let i of this.absoluteChildren)if(i.match(n))return!0;return!1}};Qc.Ignore=Ig});var fA=x(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.Processor=hn.SubWalks=hn.MatchRecord=hn.HasWalkedCache=void 0;var cA=Mn(),Zc=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,n){return this.store.get(e.fullpath())?.has(n.globString())}storeWalked(e,n){let r=e.fullpath(),i=this.store.get(r);i?i.add(n.globString()):this.store.set(r,new Set([n.globString()]))}};hn.HasWalkedCache=Zc;var Jc=class{store=new Map;add(e,n,r){let i=(n?2:0)|(r?1:0),s=this.store.get(e);this.store.set(e,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([e,n])=>[e,!!(n&2),!!(n&1)])}};hn.MatchRecord=Jc;var Xc=class{store=new Map;add(e,n){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(i=>i.globString()===n.globString())||r.push(n):this.store.set(e,[n])}get(e){let n=this.store.get(e);if(!n)throw new Error("attempting to walk unknown path");return n}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};hn.SubWalks=Xc;var Pg=class t{hasWalkedCache;matches=new Jc;subwalks=new Xc;patterns;follow;dot;opts;constructor(e,n){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=n?n.copy():new Zc}processPatterns(e,n){this.patterns=n;let r=n.map(i=>[e,i]);for(let[i,s]of r){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let f=s.rest();if(f)s=f;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let l,u,c=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(l),s=u,c=!0;if(l=s.pattern(),u=s.rest(),c){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(i.resolve(l),a,f);continue}else if(l===cA.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let f=u?.pattern(),h=u?.rest();if(!u||(f===""||f===".")&&!h)this.matches.add(i,a,f===""||f===".");else if(f===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,a,!0)}}else l instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,n){let r=this.subwalks.get(e),i=this.child();for(let s of n)for(let o of r){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===cA.GLOBSTAR?i.testGlobstar(s,o,u,a):l instanceof RegExp?i.testRegExp(s,l,u,a):i.testString(s,l,u,a)}return i}testGlobstar(e,n,r,i){if((this.dot||!e.name.startsWith("."))&&(n.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,n):e.isSymbolicLink()&&(r&&n.checkFollowGlobstar()?this.subwalks.add(e,r):n.markFollowGlobstar()&&this.subwalks.add(e,n)))),r){let s=r.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,r.rest(),i);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,r)}else s instanceof RegExp&&this.testRegExp(e,s,r.rest(),i)}}testRegExp(e,n,r,i){n.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}testString(e,n,r,i){e.isNamed(n)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}};hn.Processor=Pg});var dA=x(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.GlobStream=ur.GlobWalker=ur.GlobUtil=void 0;var jz=Ag(),hA=Lg(),pA=fA(),Uz=(t,e)=>typeof t=="string"?new hA.Ignore([t],e):Array.isArray(t)?new hA.Ignore(t,e):t,Da=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#n;signal;maxDepth;includeChildMatches;constructor(e,n,r){if(this.patterns=e,this.path=n,this.opts=r,this.#n=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#t=Uz(r.ignore??[],r),!this.includeChildMatches&&typeof this.#t.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#o(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,n){if(n&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,n)}matchCheckTest(e,n){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!n||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#r(e)?e:void 0}matchCheckSync(e,n){if(n&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,n)}matchFinish(e,n){if(this.#r(e))return;if(!this.includeChildMatches&&this.#t?.add){let s=`${e.relativePosix()}/**`;this.#t.add(s)}let r=this.opts.absolute===void 0?n:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+i:"."+i)}}async match(e,n,r){let i=await this.matchCheck(e,r);i&&this.matchFinish(i,n)}matchSync(e,n,r){let i=this.matchCheckSync(e,r);i&&this.matchFinish(i,n)}walkCB(e,n,r){this.signal?.aborted&&r(),this.walkCB2(e,n,new pA.Processor(this.opts),r)}walkCB2(e,n,r,i){if(this.#o(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,n,r,i));return}r.processPatterns(e,n);let s=1,o=()=>{--s===0&&i()};for(let[a,l,u]of r.matches.entries())this.#r(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,r,o):a.readdirCB((u,c)=>this.walkCB3(a,c,r,o),!0)}o()}walkCB3(e,n,r,i){r=r.filterEntries(e,n);let s=1,o=()=>{--s===0&&i()};for(let[a,l,u]of r.matches.entries())this.#r(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of r.subwalks.entries())s++,this.walkCB2(a,l,r.child(),o);o()}walkCBSync(e,n,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,n,new pA.Processor(this.opts),r)}walkCB2Sync(e,n,r,i){if(this.#o(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,n,r,i));return}r.processPatterns(e,n);let s=1,o=()=>{--s===0&&i()};for(let[a,l,u]of r.matches.entries())this.#r(a)||this.matchSync(a,l,u);for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,r,o)}o()}walkCB3Sync(e,n,r,i){r=r.filterEntries(e,n);let s=1,o=()=>{--s===0&&i()};for(let[a,l,u]of r.matches.entries())this.#r(a)||this.matchSync(a,l,u);for(let[a,l]of r.subwalks.entries())s++,this.walkCB2Sync(a,l,r.child(),o);o()}};ur.GlobUtil=Da;var qg=class extends Da{matches=new Set;constructor(e,n,r){super(e,n,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,n)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?n(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};ur.GlobWalker=qg;var Mg=class extends Da{results;constructor(e,n,r){super(e,n,r),this.results=new jz.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};ur.GlobStream=Mg});var Bg=x(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.Glob=void 0;var zz=Mn(),Wz=N("node:url"),ef=lA(),$z=Og(),tf=dA(),Hz=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ng=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,n){if(!n)throw new TypeError("glob options required");if(this.withFileTypes=!!n.withFileTypes,this.signal=n.signal,this.follow=!!n.follow,this.dot=!!n.dot,this.dotRelative=!!n.dotRelative,this.nodir=!!n.nodir,this.mark=!!n.mark,n.cwd?(n.cwd instanceof URL||n.cwd.startsWith("file://"))&&(n.cwd=(0,Wz.fileURLToPath)(n.cwd)):this.cwd="",this.cwd=n.cwd||"",this.root=n.root,this.magicalBraces=!!n.magicalBraces,this.nobrace=!!n.nobrace,this.noext=!!n.noext,this.realpath=!!n.realpath,this.absolute=n.absolute,this.includeChildMatches=n.includeChildMatches!==!1,this.noglobstar=!!n.noglobstar,this.matchBase=!!n.matchBase,this.maxDepth=typeof n.maxDepth=="number"?n.maxDepth:1/0,this.stat=!!n.stat,this.ignore=n.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(n.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=n.platform||Hz,this.opts={...n,platform:this.platform},n.scurry){if(this.scurry=n.scurry,n.nocase!==void 0&&n.nocase!==n.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=n.platform==="win32"?ef.PathScurryWin32:n.platform==="darwin"?ef.PathScurryDarwin:n.platform?ef.PathScurryPosix:ef.PathScurry;this.scurry=new l(this.cwd,{nocase:n.nocase,fs:n.fs})}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",i={...n,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new zz.Minimatch(l,i)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let c=a[u];if(!c)throw new Error("invalid pattern object");return new $z.Pattern(l,c,0,this.platform)})}async walk(){return[...await new tf.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new tf.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new tf.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new tf.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};nf.Glob=Ng});var jg=x(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.hasMagic=void 0;var Gz=Mn(),Vz=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let n of t)if(new Gz.Minimatch(n,e).hasMagic())return!0;return!1};rf.hasMagic=Vz});var bA=x(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.glob=ie.sync=ie.iterate=ie.iterateSync=ie.stream=ie.streamSync=ie.Ignore=ie.hasMagic=ie.Glob=ie.unescape=ie.escape=void 0;ie.globStreamSync=va;ie.globStream=Ug;ie.globSync=zg;ie.globIterateSync=Sa;ie.globIterate=Wg;var mA=Mn(),si=Bg(),Yz=jg(),yA=Mn();Object.defineProperty(ie,"escape",{enumerable:!0,get:function(){return yA.escape}});Object.defineProperty(ie,"unescape",{enumerable:!0,get:function(){return yA.unescape}});var Kz=Bg();Object.defineProperty(ie,"Glob",{enumerable:!0,get:function(){return Kz.Glob}});var Qz=jg();Object.defineProperty(ie,"hasMagic",{enumerable:!0,get:function(){return Qz.hasMagic}});var Zz=Lg();Object.defineProperty(ie,"Ignore",{enumerable:!0,get:function(){return Zz.Ignore}});function va(t,e={}){return new si.Glob(t,e).streamSync()}function Ug(t,e={}){return new si.Glob(t,e).stream()}function zg(t,e={}){return new si.Glob(t,e).walkSync()}async function gA(t,e={}){return new si.Glob(t,e).walk()}function Sa(t,e={}){return new si.Glob(t,e).iterateSync()}function Wg(t,e={}){return new si.Glob(t,e).iterate()}ie.streamSync=va;ie.stream=Object.assign(Ug,{sync:va});ie.iterateSync=Sa;ie.iterate=Object.assign(Wg,{sync:Sa});ie.sync=Object.assign(zg,{stream:va,iterate:Sa});ie.glob=Object.assign(gA,{glob:gA,globSync:zg,sync:ie.sync,globStream:Ug,stream:ie.stream,globStreamSync:va,streamSync:ie.streamSync,globIterate:Wg,iterate:ie.iterate,globIterateSync:Sa,iterateSync:ie.iterateSync,Glob:si.Glob,hasMagic:Yz.hasMagic,escape:mA.escape,unescape:mA.unescape});ie.glob.glob=ie.glob});var DA=x((coe,_A)=>{"use strict";var xA=_d(),Ds=N("path"),$g=iT(),Jz=w2(),Xz=F2(),eW=M2(),tW=bA(),oi=_A.exports={},wA=/[\/\\]/g,nW=function(t,e){var n=[];return $g(t).forEach(function(r){var i=r.indexOf("!")===0;i&&(r=r.slice(1));var s=e(r);i?n=Jz(n,s):n=Xz(n,s)}),n};oi.exists=function(){var t=Ds.join.apply(Ds,arguments);return xA.existsSync(t)};oi.expand=function(...t){var e=eW(t[0])?t.shift():{},n=Array.isArray(t[0])?t[0]:t;if(n.length===0)return[];var r=nW(n,function(i){return tW.sync(i,e)});return e.filter&&(r=r.filter(function(i){i=Ds.join(e.cwd||"",i);try{return typeof e.filter=="function"?e.filter(i):xA.statSync(i)[e.filter]()}catch{return!1}})),r};oi.expandMapping=function(t,e,n){n=Object.assign({rename:function(s,o){return Ds.join(s||"",o)}},n);var r=[],i={};return oi.expand(n,t).forEach(function(s){var o=s;n.flatten&&(o=Ds.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var a=n.rename(e,o,n);n.cwd&&(s=Ds.join(n.cwd,s)),a=a.replace(wA,"/"),s=s.replace(wA,"/"),i[a]?i[a].src.push(s):(r.push({src:[s],dest:a}),i[a]=r[r.length-1])}),r};oi.normalizeFilesArray=function(t){var e=[];return t.forEach(function(n){var r;("src"in n||"dest"in n)&&e.push(n)}),e.length===0?[]:(e=_(e).chain().forEach(function(n){!("src"in n)||!n.src||(Array.isArray(n.src)?n.src=$g(n.src):n.src=[n.src])}).map(function(n){var r=Object.assign({},n);if(delete r.src,delete r.dest,n.expand)return oi.expandMapping(n.src,n.dest,r).map(function(s){var o=Object.assign({},n);return o.orig=Object.assign({},n),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var i=Object.assign({},n);return i.orig=Object.assign({},n),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=n.src,o=Array.isArray(o)?$g(o):[o],s.result=oi.expand(r,o)),s.result}}),"dest"in i&&(i.dest=n.dest),i}).flatten().value(),e)}});var vs=x((hoe,EA)=>{"use strict";var Hg=_d(),vA=N("path"),rW=Iu(),iW=pv(),SA=zd(),sW=V1(),foe=N("stream").Stream,oW=ni().PassThrough,_t=EA.exports={};_t.file=DA();_t.collectStream=function(t,e){var n=[],r=0;t.on("error",e),t.on("data",function(i){n.push(i),r+=i.length}),t.on("end",function(){var i=Buffer.alloc(r),s=0;n.forEach(function(o){o.copy(i,s),s+=o.length}),e(null,i)})};_t.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};_t.defaults=function(t,e,n){var r=arguments;return r[0]=r[0]||{},sW(...r)};_t.isStream=function(t){return rW(t)};_t.lazyReadStream=function(t){return new iW.Readable(function(){return Hg.createReadStream(t)})};_t.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):_t.isStream(t)?t.pipe(new oW):t};_t.sanitizePath=function(t){return SA(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};_t.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};_t.unixifyPath=function(t){return SA(t,!1).replace(/^\w+:/,"")};_t.walkdir=function(t,e,n){var r=[];typeof e=="function"&&(n=e,e=t),Hg.readdir(t,function(i,s){var o=0,a,l;if(i)return n(i);(function u(){if(a=s[o++],!a)return n(null,r);l=vA.join(t,a),Hg.stat(l,function(c,f){r.push({path:l,relative:vA.relative(e,l).replace(/\\/g,"/"),stats:f}),f&&f.isDirectory()?_t.walkdir(l,e,function(h,p){if(h)return n(h);p.forEach(function(b){r.push(b)}),u()}):u()})})()})}});var CA=x((TA,AA)=>{"use strict";var aW=N("util"),lW={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function kA(t,e){Error.captureStackTrace(this,this.constructor),this.message=lW[t]||t,this.code=t,this.data=e}aW.inherits(kA,Error);TA=AA.exports=kA});var LA=x((poe,IA)=>{"use strict";var Yg=N("fs"),RA=l_(),FA=(aD(),bR(oD)),Gg=N("path"),pn=vs(),uW=N("util").inherits,Ae=CA(),OA=ni().Transform,Vg=process.platform==="win32",ce=function(t,e){if(!(this instanceof ce))return new ce(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=pn.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),OA.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=FA.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=FA.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};uW(ce,OA);ce.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};ce.prototype._append=function(t,e){e=e||{};var n={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,n.data=e,this._entriesCount++,e.stats&&e.stats instanceof Yg.Stats?(n=this._updateQueueTaskWithStats(n,e.stats),n&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(n))):this._statQueue.push(n)};ce.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};ce.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};ce.prototype._moduleAppend=function(t,e,n){if(this._state.aborted){n();return}this._module.append(t,e,function(r){if(this._task=null,this._state.aborted){this._shutdown();return}if(r){this.emit("error",r),setImmediate(n);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}.bind(this))};ce.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new Ae("NOENDMETHOD"))};ce.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};ce.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};ce.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};ce.prototype._normalizeEntryData=function(t,e){t=pn.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var n=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=pn.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(n=!0,t.type="directory"):n&&(t.name+="/")),typeof t.mode=="number"?Vg?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Vg?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Vg&&n&&(t.mode=493)):t.mode===null&&(t.mode=n?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=pn.dateify(t.date),t};ce.prototype._onModuleError=function(t){this.emit("error",t)};ce.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};ce.prototype._onQueueTask=function(t,e){var n=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}this._task=t,this._moduleAppend(t.source,t.data,n)};ce.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}Yg.lstat(t.filepath,function(n,r){if(this._state.aborted){setImmediate(e);return}if(n){this._entriesCount--,this.emit("warning",n),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,r),t&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(t)),setImmediate(e)}.bind(this))};ce.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};ce.prototype._transform=function(t,e,n){t&&(this._pointer+=t.length),n(null,t)};ce.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=pn.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=pn.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=pn.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var n=Yg.readlinkSync(t.filepath),r=Gg.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Gg.relative(r,Gg.resolve(r,n)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new Ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new Ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new Ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};ce.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};ce.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new Ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new Ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=pn.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(pn.isStream(t))e.sourceType="stream";else return this.emit("error",new Ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};ce.prototype.directory=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new Ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var r=!1;typeof n=="function"?(r=n,n={}):typeof n!="object"&&(n={});var i={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var c=!1,f=Object.assign({},n);f.name=u.relative,f.prefix=e,f.stats=u.stat,f.callback=l.resume.bind(l);try{if(r){if(f=r(f),f===!1)c=!0;else if(typeof f!="object")throw new Ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(c){l.resume();return}this._append(u.absolute,f)}var l=RA(t,i);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};ce.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new Ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new Ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};ce.prototype.glob=function(t,e,n){this._pending++,e=pn.defaults(e,{stat:!0,pattern:t});function r(){this._pending--,this._maybeFinalize()}function i(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},n);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=RA(e.cwd||".",e);return o.on("error",i.bind(this)),o.on("match",s.bind(this)),o.on("end",r.bind(this)),this};ce.prototype.finalize=function(){if(this._state.aborted){var t=new Ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new Ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var n=this;return new Promise(function(r,i){var s;n._module.on("end",function(){s||r()}),n._module.on("error",function(o){s=!0,i(o)})})};ce.prototype.setFormat=function(t){return this._format?(this.emit("error",new Ae("FORMATSET")),this):(this._format=t,this)};ce.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new Ae("ABORTED")),this):this._state.module?(this.emit("error",new Ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};ce.prototype.symlink=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new Ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new Ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new Ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var r={};return r.type="symlink",r.name=t.replace(/\\/g,"/"),r.linkname=e.replace(/\\/g,"/"),r.sourceType="buffer",typeof n=="number"&&(r.mode=n),this._entriesCount++,this._queue.push({data:r,source:Buffer.concat([])}),this};ce.prototype.pointer=function(){return this._pointer};ce.prototype.use=function(t){return this._streams.push(t),this};IA.exports=ce});var of=x((doe,PA)=>{"use strict";var sf=PA.exports=function(){};sf.prototype.getName=function(){};sf.prototype.getSize=function(){};sf.prototype.getLastModifiedDate=function(){};sf.prototype.isDirectory=function(){}});var af=x((moe,qA)=>{"use strict";var Mt=qA.exports={};Mt.dateToDos=function(t,e){e=e||!1;var n=e?t.getFullYear():t.getUTCFullYear();if(n<1980)return 2162688;if(n>=2044)return 2141175677;var r={year:n,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return r.year-1980<<25|r.month+1<<21|r.date<<16|r.hours<<11|r.minutes<<5|r.seconds/2};Mt.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};Mt.fromDosTime=function(t){return Mt.dosToDate(t.readUInt32LE(0))};Mt.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};Mt.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};Mt.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};Mt.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};Mt.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};Mt.toDosTime=function(t){return Mt.getLongBytes(Mt.dateToDos(t))}});var Kg=x((goe,zA)=>{"use strict";var MA=af(),NA=8,BA=1,cW=4,fW=2,jA=64,UA=2048,Ke=zA.exports=function(){return this instanceof Ke?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ke};Ke.prototype.encode=function(){return MA.getShortBytes((this.descriptor?NA:0)|(this.utf8?UA:0)|(this.encryption?BA:0)|(this.strongEncryption?jA:0))};Ke.prototype.parse=function(t,e){var n=MA.getShortBytesValue(t,e),r=new Ke;return r.useDataDescriptor((n&NA)!==0),r.useUTF8ForNames((n&UA)!==0),r.useStrongEncryption((n&jA)!==0),r.useEncryption((n&BA)!==0),r.setSlidingDictionarySize((n&fW)!==0?8192:4096),r.setNumberOfShannonFanoTrees((n&cW)!==0?3:2),r};Ke.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ke.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ke.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ke.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ke.prototype.useDataDescriptor=function(t){this.descriptor=t};Ke.prototype.usesDataDescriptor=function(){return this.descriptor};Ke.prototype.useEncryption=function(t){this.encryption=t};Ke.prototype.usesEncryption=function(){return this.encryption};Ke.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ke.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ke.prototype.useUTF8ForNames=function(t){this.utf8=t};Ke.prototype.usesUTF8ForNames=function(){return this.utf8}});var $A=x((yoe,WA)=>{"use strict";WA.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Qg=x((boe,HA)=>{"use strict";HA.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Zg=x((woe,QA)=>{"use strict";var hW=N("util").inherits,pW=zd(),VA=of(),YA=Kg(),GA=$A(),ft=Qg(),KA=af(),te=QA.exports=function(t){if(!(this instanceof te))return new te(t);VA.call(this),this.platform=ft.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new YA,this.crc=0,this.time=-1,this.minver=ft.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};hW(te,VA);te.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};te.prototype.getComment=function(){return this.comment!==null?this.comment:""};te.prototype.getCompressedSize=function(){return this.csize};te.prototype.getCrc=function(){return this.crc};te.prototype.getExternalAttributes=function(){return this.exattr};te.prototype.getExtra=function(){return this.extra!==null?this.extra:ft.EMPTY};te.prototype.getGeneralPurposeBit=function(){return this.gpb};te.prototype.getInternalAttributes=function(){return this.inattr};te.prototype.getLastModifiedDate=function(){return this.getTime()};te.prototype.getLocalFileDataExtra=function(){return this.getExtra()};te.prototype.getMethod=function(){return this.method};te.prototype.getName=function(){return this.name};te.prototype.getPlatform=function(){return this.platform};te.prototype.getSize=function(){return this.size};te.prototype.getTime=function(){return this.time!==-1?KA.dosToDate(this.time):-1};te.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};te.prototype.getUnixMode=function(){return this.platform!==ft.PLATFORM_UNIX?0:this.getExternalAttributes()>>ft.SHORT_SHIFT&ft.SHORT_MASK};te.prototype.getVersionNeededToExtract=function(){return this.minver};te.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};te.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};te.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};te.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};te.prototype.setExtra=function(t){this.extra=t};te.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof YA))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};te.prototype.setInternalAttributes=function(t){this.inattr=t};te.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};te.prototype.setName=function(t,e=!1){t=pW(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};te.prototype.setPlatform=function(t){this.platform=t};te.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};te.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=KA.dateToDos(t,e)};te.prototype.setUnixMode=function(t){t|=this.isDirectory()?ft.S_IFDIR:ft.S_IFREG;var e=0;e|=t<<ft.SHORT_SHIFT|(this.isDirectory()?ft.S_DOS_D:ft.S_DOS_A),this.setExternalAttributes(e),this.mode=t&ft.MODE_MASK,this.platform=ft.PLATFORM_UNIX};te.prototype.setVersionNeededToExtract=function(t){this.minver=t};te.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};te.prototype.isUnixSymlink=function(){return(this.getUnixMode()&GA.FILE_TYPE_FLAG)===GA.LINK_FLAG};te.prototype.isZip64=function(){return this.csize>ft.ZIP64_MAGIC||this.size>ft.ZIP64_MAGIC}});var Jg=x((_oe,ZA)=>{"use strict";var xoe=N("stream").Stream,dW=ni().PassThrough,mW=Iu(),gW=ZA.exports={};gW.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(mW(t)&&!t._readableState){var e=new dW;return t.pipe(e),e}return t}});var ey=x((Doe,JA)=>{"use strict";var yW=N("util").inherits,bW=Iu(),Xg=ni().Transform,wW=of(),xW=Jg(),Dt=JA.exports=function(t){if(!(this instanceof Dt))return new Dt(t);Xg.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};yW(Dt,Xg);Dt.prototype._appendBuffer=function(t,e,n){};Dt.prototype._appendStream=function(t,e,n){};Dt.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};Dt.prototype._finish=function(t){};Dt.prototype._normalizeEntry=function(t){};Dt.prototype._transform=function(t,e,n){n(null,t)};Dt.prototype.entry=function(t,e,n){if(e=e||null,typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),!(t instanceof wW)){n(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){n(new Error("unacceptable entry after finish"));return}if(this._archive.processing){n(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=xW.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,n);else if(bW(e))this._appendStream(t,e,n);else{this._archive.processing=!1,n(new Error("input source must be valid Stream or Buffer instance"));return}return this};Dt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Dt.prototype.getBytesWritten=function(){return this.offset};Dt.prototype.write=function(t,e){return t&&(this.offset+=t.length),Xg.prototype.write.call(this,t,e)}});var lf=x(ty=>{"use strict";var XA;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof ty=="object"?t(ty):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(XA={}):t(XA={})})(function(t){t.version="1.2.2";function e(){for(var S=0,M=new Array(256),A=0;A!=256;++A)S=A,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,M[A]=S;return typeof Int32Array<"u"?new Int32Array(M):M}var n=e();function r(S){var M=0,A=0,F=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(F=0;F!=256;++F)I[F]=S[F];for(F=0;F!=256;++F)for(A=S[F],M=256+F;M<4096;M+=256)A=I[M]=A>>>8^S[A&255];var B=[];for(F=1;F!=16;++F)B[F-1]=typeof Int32Array<"u"?I.subarray(F*256,F*256+256):I.slice(F*256,F*256+256);return B}var i=r(n),s=i[0],o=i[1],a=i[2],l=i[3],u=i[4],c=i[5],f=i[6],h=i[7],p=i[8],b=i[9],y=i[10],k=i[11],g=i[12],m=i[13],d=i[14];function w(S,M){for(var A=M^-1,F=0,I=S.length;F<I;)A=A>>>8^n[(A^S.charCodeAt(F++))&255];return~A}function T(S,M){for(var A=M^-1,F=S.length-15,I=0;I<F;)A=d[S[I++]^A&255]^m[S[I++]^A>>8&255]^g[S[I++]^A>>16&255]^k[S[I++]^A>>>24]^y[S[I++]]^b[S[I++]]^p[S[I++]]^h[S[I++]]^f[S[I++]]^c[S[I++]]^u[S[I++]]^l[S[I++]]^a[S[I++]]^o[S[I++]]^s[S[I++]]^n[S[I++]];for(F+=15;I<F;)A=A>>>8^n[(A^S[I++])&255];return~A}function v(S,M){for(var A=M^-1,F=0,I=S.length,B=0,O=0;F<I;)B=S.charCodeAt(F++),B<128?A=A>>>8^n[(A^B)&255]:B<2048?(A=A>>>8^n[(A^(192|B>>6&31))&255],A=A>>>8^n[(A^(128|B&63))&255]):B>=55296&&B<57344?(B=(B&1023)+64,O=S.charCodeAt(F++)&1023,A=A>>>8^n[(A^(240|B>>8&7))&255],A=A>>>8^n[(A^(128|B>>2&63))&255],A=A>>>8^n[(A^(128|O>>6&15|(B&3)<<4))&255],A=A>>>8^n[(A^(128|O&63))&255]):(A=A>>>8^n[(A^(224|B>>12&15))&255],A=A>>>8^n[(A^(128|B>>6&63))&255],A=A>>>8^n[(A^(128|B&63))&255]);return~A}t.table=n,t.bstr=w,t.buf=T,t.str=v})});var tC=x((Soe,eC)=>{"use strict";var{Transform:_W}=ni(),DW=lf(),ny=class extends _W{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,n,r){e&&(this.checksum=DW.buf(e,this.checksum)>>>0,this.rawSize+=e.length),r(null,e)}digest(e){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),e?n.toString(e):n}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};eC.exports=ny});var rC=x((Eoe,nC)=>{"use strict";var{DeflateRaw:vW}=N("zlib"),SW=lf(),ry=class extends vW{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,n){return e&&(this.compressedSize+=e.length),super.push(e,n)}_transform(e,n,r){e&&(this.checksum=SW.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,n,r)}digest(e){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),e?n.toString(e):n}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};nC.exports=ry});var iy=x((koe,iC)=>{"use strict";iC.exports={CRC32Stream:tC(),DeflateCRC32Stream:rC()}});var aC=x((Foe,oC)=>{"use strict";var EW=N("util").inherits,kW=lf(),{CRC32Stream:TW}=iy(),{DeflateCRC32Stream:AW}=iy(),sC=ey(),Toe=Zg(),Aoe=Kg(),Z=Qg(),Coe=Jg(),W=af(),ze=oC.exports=function(t){if(!(this instanceof ze))return new ze(t);t=this.options=this._defaults(t),sC.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};EW(ze,sC);ze.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};ze.prototype._appendBuffer=function(t,e,n){e.length===0&&t.setMethod(Z.METHOD_STORED);var r=t.getMethod();if(r===Z.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(kW.buf(e)>>>0)),this._writeLocalFileHeader(t),r===Z.METHOD_STORED){this.write(e),this._afterAppend(t),n(null,t);return}else if(r===Z.METHOD_DEFLATED){this._smartStream(t,n).end(e);return}else{n(new Error("compression method "+r+" not implemented"));return}};ze.prototype._appendStream=function(t,e,n){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var r=this._smartStream(t,n);e.once("error",function(i){r.emit("error",i),r.end()}),e.pipe(r)};ze.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=Z.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};ze.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};ze.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(Z.METHOD_DEFLATED),t.getMethod()===Z.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};ze.prototype._smartStream=function(t,e){var n=t.getMethod()===Z.METHOD_DEFLATED,r=n?new AW(this.options.zlib):new TW,i=null;function s(){var o=r.digest().readUInt32BE(0);t.setCrc(o),t.setSize(r.size()),t.setCompressedSize(r.size(!0)),this._afterAppend(t),e(i,t)}return r.once("end",s.bind(this)),r.once("error",function(o){i=o}),r.pipe(this,{end:!1}),r};ze.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(t=Z.ZIP64_MAGIC_SHORT,e=Z.ZIP64_MAGIC,n=Z.ZIP64_MAGIC),this.write(W.getLongBytes(Z.SIG_EOCD)),this.write(Z.SHORT_ZERO),this.write(Z.SHORT_ZERO),this.write(W.getShortBytes(t)),this.write(W.getShortBytes(t)),this.write(W.getLongBytes(e)),this.write(W.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(W.getShortBytes(i)),this.write(r)};ze.prototype._writeCentralDirectoryZip64=function(){this.write(W.getLongBytes(Z.SIG_ZIP64_EOCD)),this.write(W.getEightBytes(44)),this.write(W.getShortBytes(Z.MIN_VERSION_ZIP64)),this.write(W.getShortBytes(Z.MIN_VERSION_ZIP64)),this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO),this.write(W.getEightBytes(this._entries.length)),this.write(W.getEightBytes(this._entries.length)),this.write(W.getEightBytes(this._archive.centralLength)),this.write(W.getEightBytes(this._archive.centralOffset)),this.write(W.getLongBytes(Z.SIG_ZIP64_EOCD_LOC)),this.write(Z.LONG_ZERO),this.write(W.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(W.getLongBytes(1))};ze.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t._offsets.file,i=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||r>Z.ZIP64_MAGIC){i=Z.ZIP64_MAGIC,s=Z.ZIP64_MAGIC,r=Z.ZIP64_MAGIC,t.setVersionNeededToExtract(Z.MIN_VERSION_ZIP64);var o=Buffer.concat([W.getShortBytes(Z.ZIP64_EXTRA_ID),W.getShortBytes(24),W.getEightBytes(t.getSize()),W.getEightBytes(t.getCompressedSize()),W.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(W.getLongBytes(Z.SIG_CFH)),this.write(W.getShortBytes(t.getPlatform()<<8|Z.VERSION_MADEBY)),this.write(W.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(W.getShortBytes(n)),this.write(W.getLongBytes(t.getTimeDos())),this.write(W.getLongBytes(t.getCrc())),this.write(W.getLongBytes(s)),this.write(W.getLongBytes(i));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(W.getShortBytes(a.length)),this.write(W.getShortBytes(u.length)),this.write(W.getShortBytes(l.length)),this.write(Z.SHORT_ZERO),this.write(W.getShortBytes(t.getInternalAttributes())),this.write(W.getLongBytes(t.getExternalAttributes())),this.write(W.getLongBytes(r)),this.write(a),this.write(u),this.write(l)};ze.prototype._writeDataDescriptor=function(t){this.write(W.getLongBytes(Z.SIG_DD)),this.write(W.getLongBytes(t.getCrc())),t.isZip64()?(this.write(W.getEightBytes(t.getCompressedSize())),this.write(W.getEightBytes(t.getSize()))):(this.write(W.getLongBytes(t.getCompressedSize())),this.write(W.getLongBytes(t.getSize())))};ze.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(r=Buffer.from(r)),t._offsets.file=this.offset,this.write(W.getLongBytes(Z.SIG_LFH)),this.write(W.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(W.getShortBytes(n)),this.write(W.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO)):(this.write(W.getLongBytes(t.getCrc())),this.write(W.getLongBytes(t.getCompressedSize())),this.write(W.getLongBytes(t.getSize()))),this.write(W.getShortBytes(r.length)),this.write(W.getShortBytes(i.length)),this.write(r),this.write(i),t._offsets.contents=this.offset};ze.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};ze.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>Z.ZIP64_MAGIC_SHORT||this._archive.centralLength>Z.ZIP64_MAGIC||this._archive.centralOffset>Z.ZIP64_MAGIC};ze.prototype.setComment=function(t){this._archive.comment=t}});var sy=x((Roe,lC)=>{"use strict";lC.exports={ArchiveEntry:of(),ZipArchiveEntry:Zg(),ArchiveOutputStream:ey(),ZipArchiveOutputStream:aC()}});var cC=x((Ooe,uC)=>{"use strict";var CW=N("util").inherits,ay=sy().ZipArchiveOutputStream,FW=sy().ZipArchiveEntry,oy=vs(),Ss=uC.exports=function(t){if(!(this instanceof Ss))return new Ss(t);t=this.options=t||{},t.zlib=t.zlib||{},ay.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};CW(Ss,ay);Ss.prototype._normalizeFileData=function(t){t=oy.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",n=t.type==="symlink";return t.name&&(t.name=oy.sanitizePath(t.name),!n&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||n)&&(t.store=!0),t.date=oy.dateify(t.date),t};Ss.prototype.entry=function(t,e,n){if(typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){n(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){n(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){n(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var r=new FW(e.name);return r.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&r.setName(e.name,!0),e.store&&r.setMethod(0),e.comment.length>0&&r.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),r.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),ay.prototype.entry.call(this,r,t,n)};Ss.prototype.finalize=function(){this.finish()}});var hC=x((Ioe,fC)=>{"use strict";var RW=cC(),OW=vs(),cr=function(t){if(!(this instanceof cr))return new cr(t);t=this.options=OW.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new RW(t)};cr.prototype.append=function(t,e,n){this.engine.entry(t,e,n)};cr.prototype.finalize=function(){this.engine.finalize()};cr.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};cr.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};cr.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};fC.exports=cr});var dC=x((Poe,pC)=>{"use strict";pC.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var ly=x((Moe,gC)=>{"use strict";var mC=dC();gC.exports=class{constructor(e){this.hwm=e||16,this.head=new mC(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let n=this.head;this.head=n.next=new mC(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let n=this.tail.next;return this.tail.next=null,this.tail=n,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var Es=x((Noe,yC)=>{"use strict";function IW(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function LW(t){return Buffer.isEncoding(t)}function PW(t,e,n){return Buffer.alloc(t,e,n)}function qW(t){return Buffer.allocUnsafe(t)}function MW(t){return Buffer.allocUnsafeSlow(t)}function NW(t,e){return Buffer.byteLength(t,e)}function BW(t,e){return Buffer.compare(t,e)}function jW(t,e){return Buffer.concat(t,e)}function UW(t,e,n,r,i){return ye(t).copy(e,n,r,i)}function zW(t,e){return ye(t).equals(e)}function WW(t,e,n,r,i){return ye(t).fill(e,n,r,i)}function $W(t,e,n){return Buffer.from(t,e,n)}function HW(t,e,n,r){return ye(t).includes(e,n,r)}function GW(t,e,n,r){return ye(t).indexOf(e,n,r)}function VW(t,e,n,r){return ye(t).lastIndexOf(e,n,r)}function YW(t){return ye(t).swap16()}function KW(t){return ye(t).swap32()}function QW(t){return ye(t).swap64()}function ye(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function ZW(t,e,n,r){return ye(t).toString(e,n,r)}function JW(t,e,n,r,i){return ye(t).write(e,n,r,i)}function XW(t,e,n){return ye(t).writeDoubleLE(e,n)}function e$(t,e,n){return ye(t).writeFloatLE(e,n)}function t$(t,e,n){return ye(t).writeUInt32LE(e,n)}function n$(t,e,n){return ye(t).writeInt32LE(e,n)}function r$(t,e){return ye(t).readDoubleLE(e)}function i$(t,e){return ye(t).readFloatLE(e)}function s$(t,e){return ye(t).readUInt32LE(e)}function o$(t,e){return ye(t).readInt32LE(e)}function a$(t,e,n){return ye(t).writeDoubleBE(e,n)}function l$(t,e,n){return ye(t).writeFloatBE(e,n)}function u$(t,e,n){return ye(t).writeUInt32BE(e,n)}function c$(t,e,n){return ye(t).writeInt32BE(e,n)}function f$(t,e){return ye(t).readDoubleBE(e)}function h$(t,e){return ye(t).readFloatBE(e)}function p$(t,e){return ye(t).readUInt32BE(e)}function d$(t,e){return ye(t).readInt32BE(e)}yC.exports={isBuffer:IW,isEncoding:LW,alloc:PW,allocUnsafe:qW,allocUnsafeSlow:MW,byteLength:NW,compare:BW,concat:jW,copy:UW,equals:zW,fill:WW,from:$W,includes:HW,indexOf:GW,lastIndexOf:VW,swap16:YW,swap32:KW,swap64:QW,toBuffer:ye,toString:ZW,write:JW,writeDoubleLE:XW,writeFloatLE:e$,writeUInt32LE:t$,writeInt32LE:n$,readDoubleLE:r$,readFloatLE:i$,readUInt32LE:s$,readInt32LE:o$,writeDoubleBE:a$,writeFloatBE:l$,writeUInt32BE:u$,writeInt32BE:c$,readDoubleBE:f$,readFloatBE:h$,readUInt32BE:p$,readInt32BE:d$}});var wC=x((joe,bC)=>{"use strict";var m$=Es();bC.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return m$.toString(e,this.encoding)}flush(){return""}}});var _C=x((zoe,xC)=>{"use strict";var g$=Es();xC.exports=class{constructor(){this.codePoint=0,this.bytesSeen=0,this.bytesNeeded=0,this.lowerBoundary=128,this.upperBoundary=191}get remaining(){return this.bytesSeen}decode(e){if(this.bytesNeeded===0){let r=!0;for(let i=Math.max(0,e.byteLength-4),s=e.byteLength;i<s&&r;i++)r=e[i]<=127;if(r)return g$.toString(e,"utf8")}let n="";for(let r=0,i=e.byteLength;r<i;r++){let s=e[r];if(this.bytesNeeded===0){s<=127?n+=String.fromCharCode(s):(this.bytesSeen=1,s>=194&&s<=223?(this.bytesNeeded=2,this.codePoint=s&31):s>=224&&s<=239?(s===224?this.lowerBoundary=160:s===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.codePoint=s&15):s>=240&&s<=244?(s===240&&(this.lowerBoundary=144),s===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.codePoint=s&7):n+="\uFFFD");continue}if(s<this.lowerBoundary||s>this.upperBoundary){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,n+="\uFFFD";continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|s&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(n+=String.fromCodePoint(this.codePoint),this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0)}return n}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,e}}});var vC=x(($oe,DC)=>{"use strict";var y$=wC(),b$=_C();DC.exports=class{constructor(e="utf8"){switch(this.encoding=w$(e),this.encoding){case"utf8":this.decoder=new b$;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new y$(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let n="";return e&&(n=this.push(e)),n+=this.decoder.flush(),n}};function w$(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var Sy=x((Hoe,GC)=>{"use strict";var{EventEmitter:x$}=N("events"),df=new Error("Stream was destroyed"),uy=new Error("Premature close"),CC=ly(),_$=vC(),cy=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,Te=(1<<29)-1,dn=1,yy=2,ai=4,Ea=8,FC=Te^dn,D$=Te^yy,Fa=16,ks=32,Cs=64,hr=128,Ra=256,by=512,li=1024,fy=2048,wy=4096,xy=8192,Zt=16384,fr=32768,mf=65536,ui=131072,RC=Ra|by,v$=Fa|mf,S$=Cs|Fa,E$=wy|hr,_y=Ra|ui,k$=Te^Fa,T$=Te^Cs,A$=Te^(Cs|mf),SC=Te^mf,C$=Te^Ra,F$=Te^(hr|xy),R$=Te^li,EC=Te^RC,OC=Te^fr,O$=Te^ks,IC=Te^ui,I$=Te^_y,Ln=1<<18,As=2<<18,Oa=4<<18,ci=8<<18,Ia=16<<18,pr=32<<18,hy=64<<18,Ts=128<<18,Dy=256<<18,fi=512<<18,gf=1024<<18,L$=Te^(Ln|Dy),LC=Te^Oa,P$=Te^(Ln|fi),q$=Te^Ia,M$=Te^ci,PC=Te^Ts,N$=Te^As,qC=Te^gf,ka=Fa|Ln,MC=Te^ka,vy=Zt|pr,mn=ai|Ea|yy,vt=mn|dn,NC=mn|vy,B$=LC&T$,yf=Ts|fr,j$=yf&MC,BC=vt|j$,U$=vt|li|Zt,kC=vt|Zt|hr,z$=vt|li|hr,W$=vt|wy|hr|xy,$$=vt|Fa|li|Zt|mf|ui,H$=mn|li|Zt,G$=ks|vt|fr|Cs,V$=fr|dn,Y$=vt|fi|pr,K$=ci|Ia,jC=ci|Ln,Q$=ci|Ia|vt|Ln,TC=vt|Ln|ci|gf,Z$=Oa|Ln,J$=Ln|Dy,X$=vt|fi|jC|pr,eH=Ia|mn|fi|pr,tH=As|vt|Ts|Oa,nH=fi|pr|mn,uf=Symbol.asyncIterator||Symbol("asyncIterator"),cf=class{constructor(e,{highWaterMark:n=16384,map:r=null,mapWritable:i,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new CC,this.highWaterMark=n,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||HC,this.map=i||r,this.afterWrite=sH.bind(this),this.afterUpdateNextTick=lH.bind(this)}get ended(){return(this.stream._duplexState&pr)!==0}push(e){return(this.stream._duplexState&nH)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=ci,!0):(this.stream._duplexState|=K$,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=M$),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|fi)&LC}autoBatch(e,n){let r=[],i=this.stream;for(r.push(e);(i._duplexState&TC)===jC;)r.push(i._writableState.shift());if((i._duplexState&vt)!==0)return n(null);i._writev(r,n)}update(){let e=this.stream;e._duplexState|=As;do{for(;(e._duplexState&TC)===ci;){let n=this.shift();e._duplexState|=J$,e._write(n,this.afterWrite)}(e._duplexState&Z$)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=N$}updateNonPrimary(){let e=this.stream;if((e._duplexState&X$)===fi){e._duplexState=e._duplexState|Ln,e._final(iH.bind(this));return}if((e._duplexState&mn)===ai){(e._duplexState&yf)===0&&(e._duplexState|=ka,e._destroy(UC.bind(this)));return}(e._duplexState&BC)===dn&&(e._duplexState=(e._duplexState|ka)&FC,e._open(zC.bind(this)))}continueUpdate(){return(this.stream._duplexState&Ts)===0?!1:(this.stream._duplexState&=PC,!0)}updateCallback(){(this.stream._duplexState&tH)===Oa?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&Ts)===0&&(this.stream._duplexState|=Ts,(this.stream._duplexState&As)===0&&cy(this.afterUpdateNextTick))}},py=class{constructor(e,{highWaterMark:n=16384,map:r=null,mapReadable:i,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new CC,this.highWaterMark=n===0?1:n,this.buffered=0,this.readAhead=n>0,this.error=null,this.pipeline=null,this.byteLength=o||s||HC,this.map=i||r,this.pipeTo=null,this.afterRead=oH.bind(this),this.afterUpdateNextTick=aH.bind(this)}get ended(){return(this.stream._duplexState&Zt)!==0}pipe(e,n){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof n!="function"&&(n=null),this.stream._duplexState|=by,this.pipeTo=e,this.pipeline=new my(this.stream,e,n),n&&this.stream.on("error",AC),Ca(e))e._writableState.pipeline=this.pipeline,n&&e.on("error",AC),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let r=this.pipeline.done.bind(this.pipeline,e),i=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",r),e.on("close",i),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",rH.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let n=this.stream;return e===null?(this.highWaterMark=0,n._duplexState=(n._duplexState|li)&A$,!1):this.map!==null&&(e=this.map(e),e===null)?(n._duplexState&=SC,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),n._duplexState=(n._duplexState|hr)&SC,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=F$),e}unshift(e){let n=[this.map!==null?this.map(e):e];for(;this.buffered>0;)n.push(this.shift());for(let r=0;r<n.length-1;r++){let i=n[r];this.buffered+=this.byteLength(i),this.queue.push(i)}this.push(n[n.length-1])}read(){let e=this.stream;if((e._duplexState&kC)===hr){let n=this.shift();return this.pipeTo!==null&&this.pipeTo.write(n)===!1&&(e._duplexState&=EC),(e._duplexState&fy)!==0&&e.emit("data",n),n}return this.readAhead===!1&&(e._duplexState|=ui,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&kC)===hr&&(e._duplexState&RC)!==0;){let n=this.shift();this.pipeTo!==null&&this.pipeTo.write(n)===!1&&(e._duplexState&=EC),(e._duplexState&fy)!==0&&e.emit("data",n)}}update(){let e=this.stream;e._duplexState|=ks;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&$$)===ui;)e._duplexState|=v$,e._read(this.afterRead),this.drain();(e._duplexState&W$)===E$&&(e._duplexState|=xy,e.emit("readable")),(e._duplexState&S$)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=O$}updateNonPrimary(){let e=this.stream;if((e._duplexState&z$)===li&&(e._duplexState=(e._duplexState|Zt)&R$,e.emit("end"),(e._duplexState&NC)===vy&&(e._duplexState|=ai),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&mn)===ai){(e._duplexState&yf)===0&&(e._duplexState|=ka,e._destroy(UC.bind(this)));return}(e._duplexState&BC)===dn&&(e._duplexState=(e._duplexState|ka)&FC,e._open(zC.bind(this)))}continueUpdate(){return(this.stream._duplexState&fr)===0?!1:(this.stream._duplexState&=OC,!0)}updateCallback(){(this.stream._duplexState&G$)===Cs?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&V$)===0&&(this.stream._duplexState|=fr,(this.stream._duplexState&ks)===0&&cy(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&fr)===0&&(this.stream._duplexState|=fr,(this.stream._duplexState&ks)===0&&cy(this.afterUpdateNextTick))}},dy=class{constructor(e){this.data=null,this.afterTransform=cH.bind(e),this.afterFinal=null}},my=class{constructor(e,n,r){this.from=e,this.to=n,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,n){if(n&&(this.error=n),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Zt)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Zt)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function rH(){this.stream._duplexState|=by,this.updateCallback()}function iH(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&mn)===0&&(e._duplexState|=pr,e.emit("finish")),(e._duplexState&NC)===vy&&(e._duplexState|=ai),e._duplexState&=P$,(e._duplexState&As)===0?this.update():this.updateNextTick()}function UC(t){let e=this.stream;!t&&this.error!==df&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Ea,e.emit("close");let n=e._readableState,r=e._writableState;if(n!==null&&n.pipeline!==null&&n.pipeline.done(e,t),r!==null){for(;r.drains!==null&&r.drains.length>0;)r.drains.shift().resolve(!1);r.pipeline!==null&&r.pipeline.done(e,t)}}function sH(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=L$,this.drains!==null&&uH(this.drains),(e._duplexState&Q$)===Ia&&(e._duplexState&=q$,(e._duplexState&hy)===hy&&e.emit("drain")),this.updateCallback()}function oH(t){t&&this.stream.destroy(t),this.stream._duplexState&=k$,this.readAhead===!1&&(this.stream._duplexState&Ra)===0&&(this.stream._duplexState&=IC),this.updateCallback()}function aH(){(this.stream._duplexState&ks)===0&&(this.stream._duplexState&=OC,this.update())}function lH(){(this.stream._duplexState&As)===0&&(this.stream._duplexState&=PC,this.update())}function uH(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function zC(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ai)===0&&((e._duplexState&U$)===0&&(e._duplexState|=Cs),(e._duplexState&Y$)===0&&(e._duplexState|=Oa),e.emit("open")),e._duplexState&=MC,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function cH(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function fH(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=fy|_y,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=wy,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=hy,this._writableState.updateNextTick())}var Ta=class extends x${constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",_H.bind(this))),this.on("newListener",fH)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&Ea)!==0}get destroying(){return(this._duplexState&mn)!==0}destroy(e){(this._duplexState&mn)===0&&(e||(e=df),this._duplexState=(this._duplexState|ai)&B$,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=yy,this._predestroy(),this._duplexState&=D$,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},ff=class t extends Ta{constructor(e){super(e),this._duplexState|=dn|pr|ui,this._readableState=new py(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=IC),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let n=new _$(e),r=this._readableState.map||dH;return this._readableState.map=i,this;function i(s){let o=n.push(s);return o===""&&(s.byteLength!==0||n.remaining>0)?null:r(o)}}_read(e){e(null)}pipe(e,n){return this._readableState.updateNextTick(),this._readableState.pipe(e,n),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=_y,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?I$:C$,this}static _fromAsyncIterator(e,n){let r,i=new t({...n,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){r=e.return()},destroy(o){if(!r)return o(null);r.then(o.bind(null,null)).catch(o)}});return i;function s(o){o.done?i.push(null):i.push(o.value)}}static from(e,n){if(bH(e))return e;if(e[uf])return this._fromAsyncIterator(e[uf](),n);Array.isArray(e)||(e=e===void 0?[]:[e]);let r=0;return new t({...n,read(i){this.push(r===e.length?null:e[r++]),i(null)}})}static isBackpressured(e){return(e._duplexState&H$)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Ra)===0}[uf](){let e=this,n=null,r=null,i=null;return this.on("error",u=>{n=u}),this.on("readable",s),this.on("close",o),{[uf](){return this},next(){return new Promise(function(u,c){r=u,i=c;let f=e.read();f!==null?a(f):(e._duplexState&Ea)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){r!==null&&a(e.read())}function o(){r!==null&&a(null)}function a(u){i!==null&&(n?i(n):u===null&&(e._duplexState&Zt)===0?i(df):r({value:u,done:u===null}),i=r=null)}function l(u){return e.destroy(u),new Promise((c,f)=>{if(e._duplexState&Ea)return c({value:void 0,done:!0});e.once("close",function(){u?f(u):c({value:void 0,done:!0})})})}}},hf=class extends Ta{constructor(e){super(e),this._duplexState|=dn|Zt,this._writableState=new cf(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=gf}uncork(){this._duplexState&=qC,this._writableState.updateNextTick()}_writev(e,n){n(null)}_write(e,n){this._writableState.autoBatch(e,n)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&eH)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let n=e._writableState,i=(DH(e)?Math.min(1,n.queue.length):n.queue.length)+(e._duplexState&Dy?1:0);return i===0?Promise.resolve(!0):(n.drains===null&&(n.drains=[]),new Promise(s=>{n.drains.push({writes:i,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Aa=class extends ff{constructor(e){super(e),this._duplexState=dn|this._duplexState&ui,this._writableState=new cf(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=gf}uncork(){this._duplexState&=qC,this._writableState.updateNextTick()}_writev(e,n){n(null)}_write(e,n){this._writableState.autoBatch(e,n)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},pf=class extends Aa{constructor(e){super(e),this._transformState=new dy(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,n){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let n=this._transformState.data;this._transformState.data=null,e(null),this._transform(n,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,n){n(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(hH.bind(this))}},gy=class extends pf{};function hH(t,e){let n=this._transformState.afterFinal;if(t)return n(t);e!=null&&this.push(e),this.push(null),n(null)}function pH(...t){return new Promise((e,n)=>WC(...t,r=>{if(r)return n(r);e()}))}function WC(t,...e){let n=Array.isArray(t)?[...t,...e]:[t,...e],r=n.length&&typeof n[n.length-1]=="function"?n.pop():null;if(n.length<2)throw new Error("Pipeline requires at least 2 streams");let i=n[0],s=null,o=null;for(let u=1;u<n.length;u++)s=n[u],Ca(i)?i.pipe(s,l):(a(i,!0,u>1,l),i.pipe(s)),i=s;if(r){let u=!1,c=Ca(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",f=>{o===null&&(o=f)}),s.on("finish",()=>{u=!0,c||r(o)}),c&&s.on("close",()=>r(o||(u?null:uy)))}return s;function a(u,c,f,h){u.on("error",h),u.on("close",p);function p(){if(c&&u._readableState&&!u._readableState.ended||f&&u._writableState&&!u._writableState.ended)return h(uy)}}function l(u){if(!(!u||o)){o=u;for(let c of n)c.destroy(u)}}}function dH(t){return t}function $C(t){return!!t._readableState||!!t._writableState}function Ca(t){return typeof t._duplexState=="number"&&$C(t)}function mH(t){return!!t._readableState&&t._readableState.ended}function gH(t){return!!t._writableState&&t._writableState.ended}function yH(t,e={}){let n=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&n===df?null:n}function bH(t){return Ca(t)&&t.readable}function wH(t){return(t._duplexState&dn)!==dn||(t._duplexState&yf)!==0}function xH(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function HC(t){return xH(t)?t.byteLength:1024}function AC(){}function _H(){this.destroy(new Error("Stream aborted."))}function DH(t){return t._writev!==hf.prototype._writev&&t._writev!==Aa.prototype._writev}GC.exports={pipeline:WC,pipelinePromise:pH,isStream:$C,isStreamx:Ca,isEnded:mH,isFinished:gH,isDisturbed:wH,getStreamError:yH,Stream:Ta,Writable:hf,Readable:ff,Duplex:Aa,Transform:pf,PassThrough:gy}});var Ty=x(Rs=>{"use strict";var le=Es(),vH="0000000000000000000",SH="7777777777777777777",bf=48,VC=le.from([117,115,116,97,114,0]),EH=le.from([bf,bf]),kH=le.from([117,115,116,97,114,32]),TH=le.from([32,0]),AH=4095,La=257,ky=263;Rs.decodeLongPath=function(e,n){return Fs(e,0,e.length,n)};Rs.encodePax=function(e){let n="";e.name&&(n+=Ey(" path="+e.name+`
|
|
44
|
-
`)),e.linkname&&(n+=
|
|
45
|
-
`));let r=e.pax;if(r)for(let i in r)n+=
|
|
46
|
-
`);return le.from(n)};Rs.decodePax=function(e){let n={};for(;e.length;){let r=0;for(;r<e.length&&e[r]!==32;)r++;let i=parseInt(le.toString(e.subarray(0,r)),10);if(!i)return n;let s=le.toString(e.subarray(r+1,i-1)),o=s.indexOf("=");if(o===-1)return n;n[s.slice(0,o)]=s.slice(o+1),e=e.subarray(i)}return n};Rs.encode=function(e){let n=le.alloc(512),r=e.name,i="";if(e.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),le.byteLength(r)!==r.length)return null;for(;le.byteLength(r)>100;){let s=r.indexOf("/");if(s===-1)return null;i+=i?"/"+r.slice(0,s):r.slice(0,s),r=r.slice(s+1)}return le.byteLength(r)>100||le.byteLength(i)>155||e.linkname&&le.byteLength(e.linkname)>100?null:(le.write(n,r),le.write(n,mr(e.mode&AH,6),100),le.write(n,mr(e.uid,6),108),le.write(n,mr(e.gid,6),116),PH(e.size,n,124),le.write(n,mr(e.mtime.getTime()/1e3|0,11),136),n[156]=bf+IH(e.type),e.linkname&&le.write(n,e.linkname,157),le.copy(VC,n,La),le.copy(EH,n,ky),e.uname&&le.write(n,e.uname,265),e.gname&&le.write(n,e.gname,297),le.write(n,mr(e.devmajor||0,6),329),le.write(n,mr(e.devminor||0,6),337),i&&le.write(n,i,345),le.write(n,mr(KC(n),6),148),n)};Rs.decode=function(e,n,r){let i=e[156]===0?0:e[156]-bf,s=Fs(e,0,100,n),o=dr(e,100,8),a=dr(e,108,8),l=dr(e,116,8),u=dr(e,124,12),c=dr(e,136,12),f=OH(i),h=e[157]===0?null:Fs(e,157,100,n),p=Fs(e,265,32),b=Fs(e,297,32),y=dr(e,329,8),k=dr(e,337,8),g=KC(e);if(g===8*32)return null;if(g!==dr(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(CH(e))e[345]&&(s=Fs(e,345,155,n)+"/"+s);else if(!FH(e)){if(!r)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*c),type:f,linkname:h,uname:p,gname:b,devmajor:y,devminor:k,pax:null}};function CH(t){return le.equals(VC,t.subarray(La,La+6))}function FH(t){return le.equals(kH,t.subarray(La,La+6))&&le.equals(TH,t.subarray(ky,ky+2))}function RH(t,e,n){return typeof t!="number"?n:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function OH(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function IH(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function YC(t,e,n,r){for(;n<r;n++)if(t[n]===e)return n;return r}function KC(t){let e=256;for(let n=0;n<148;n++)e+=t[n];for(let n=156;n<512;n++)e+=t[n];return e}function mr(t,e){return t=t.toString(8),t.length>e?SH.slice(0,e)+" ":vH.slice(0,e-t.length)+t+" "}function LH(t,e,n){e[n]=128;for(let r=11;r>0;r--)e[n+r]=t&255,t=Math.floor(t/256)}function PH(t,e,n){t.toString(8).length>11?LH(t,e,n):le.write(e,mr(t,11),n)}function qH(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let n=[],r;for(r=t.length-1;r>0;r--){let o=t[r];e?n.push(o):n.push(255-o)}let i=0,s=n.length;for(r=0;r<s;r++)i+=n[r]*Math.pow(256,r);return e?i:-1*i}function dr(t,e,n){if(t=t.subarray(e,e+n),e=0,t[e]&128)return qH(t);{for(;e<t.length&&t[e]===32;)e++;let r=RH(YC(t,32,e,t.length),t.length,t.length);for(;e<r&&t[e]===0;)e++;return r===e?0:parseInt(le.toString(t.subarray(e,r)),8)}}function Fs(t,e,n,r){return le.toString(t.subarray(e,YC(t,0,e,e+n)),r)}function Ey(t){let e=le.byteLength(t),n=Math.floor(Math.log(e)/Math.log(10))+1;return e+n>=Math.pow(10,n)&&n++,e+n+t}});var eF=x((Voe,XC)=>{"use strict";var{Writable:MH,Readable:NH,getStreamError:QC}=Sy(),BH=ly(),ZC=Es(),Os=Ty(),jH=ZC.alloc(0),Cy=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new BH,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return jH;let n=this._next(e);if(e===n.byteLength)return n;let r=[n];for(;(e-=n.byteLength)>0;)n=this._next(e),r.push(n);return ZC.concat(r)}_next(e){let n=this.queue.peek(),r=n.byteLength-this._offset;if(e>=r){let i=this._offset?n.subarray(this._offset,n.byteLength):n;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,i}return this.buffered-=e,this.shifted+=e,n.subarray(this._offset,this._offset+=e)}},Fy=class extends NH{constructor(e,n,r){super(),this.header=n,this.offset=r,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(QC(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=JC(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Ry=class extends MH{constructor(e){super(e),e||(e={}),this._buffer=new Cy,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=Ay,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=Os.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=Os.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Os.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Os.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Os.decodePax(e):Object.assign({},this._paxGlobal,Os.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=JC(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(n){return this._continueWrite(n),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let n=this._stream.push(e);return this._missing===0?(this._stream.push(null),n&&this._stream._detach(),n&&this._locked===!1):n}_createStream(){return new Fy(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let n=this._callback;this._callback=Ay,n(e)}_write(e,n){this._callback=n,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(QC(this)),e(null)}[Symbol.asyncIterator](){let e=null,n=null,r=null,i=null,s=null,o=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",c),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return f(null)},throw(h){return f(h)}};function a(h){if(!s)return;let p=s;s=null,p(h)}function l(h,p){if(e)return p(e);if(i){h({value:i,done:!1}),i=null;return}n=h,r=p,a(null),o._finished&&n&&(n({value:void 0,done:!0}),n=r=null)}function u(h,p,b){s=b,p.on("error",Ay),n?(n({value:p,done:!1}),n=r=null):i=p}function c(){a(e),n&&(e?r(e):n({value:void 0,done:!0}),n=r=null)}function f(h){return o.destroy(h),a(h),new Promise((p,b)=>{if(o.destroyed)return p({value:void 0,done:!0});o.once("close",function(){h?b(h):p({value:void 0,done:!0})})})}}};XC.exports=function(e){return new Ry(e)};function Ay(){}function JC(t){return t&=511,t&&512-t}});var nF=x((Yoe,Oy)=>{"use strict";var tF={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{Oy.exports=N("fs").constants||tF}catch{Oy.exports=tF}});var aF=x((Koe,oF)=>{"use strict";var{Readable:UH,Writable:zH,getStreamError:rF}=Sy(),hi=Es(),Is=nF(),wf=Ty(),WH=493,$H=420,iF=hi.alloc(1024),Ly=class extends zH{constructor(e,n,r){super({mapWritable:GH,eagerOpen:!0}),this.written=0,this.header=n,this._callback=r,this._linkname=null,this._isLinkname=n.type==="symlink"&&!n.linkname,this._isVoid=n.type!=="file"&&n.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let n=this._callback;this._callback=null,n(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,n){if(this._isLinkname)return this._linkname=this._linkname?hi.concat([this._linkname,e]):e,n(null);if(this._isVoid)return e.byteLength>0?n(new Error("No body allowed for this entry")):n();if(this.written+=e.byteLength,this._pack.push(e))return n();this._pack._drain=n}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?hi.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),sF(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return rF(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},Py=class extends UH{constructor(e){super(e),this._drain=Iy,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,n,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof n=="function"&&(r=n,n=null),r||(r=Iy),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=HH(e.mode)),e.mode||(e.mode=e.type==="directory"?WH:$H),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof n=="string"&&(n=hi.from(n));let i=new Ly(this,e,r);return hi.isBuffer(n)?(e.size=n.byteLength,i.write(n),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(iF),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let n=wf.encode(e);if(n){this.push(n);return}}this._encodePax(e)}_encodePax(e){let n=wf.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:n.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(wf.encode(r)),this.push(n),sF(this,n.byteLength),r.size=e.size,r.type=e.type,this.push(wf.encode(r))}_doDrain(){let e=this._drain;this._drain=Iy,e()}_predestroy(){let e=rF(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let n=this._pending.shift();n.destroy(e),n._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};oF.exports=function(e){return new Py(e)};function HH(t){switch(t&Is.S_IFMT){case Is.S_IFBLK:return"block-device";case Is.S_IFCHR:return"character-device";case Is.S_IFDIR:return"directory";case Is.S_IFIFO:return"fifo";case Is.S_IFLNK:return"symlink"}return"file"}function Iy(){}function sF(t,e){e&=511,e&&t.push(iF.subarray(0,512-e))}function GH(t){return hi.isBuffer(t)?t:hi.from(t)}});var lF=x(qy=>{"use strict";qy.extract=eF();qy.pack=aF()});var fF=x((Zoe,cF)=>{"use strict";var VH=N("zlib"),YH=lF(),uF=vs(),Pn=function(t){if(!(this instanceof Pn))return new Pn(t);t=this.options=uF.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=YH.pack(t),this.compressor=!1,t.gzip&&(this.compressor=VH.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Pn.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Pn.prototype.append=function(t,e,n){var r=this;e.mtime=e.date;function i(o,a){if(o){n(o);return}r.engine.entry(e,a,function(l){n(l,e)})}if(e.sourceType==="buffer")i(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=r.engine.entry(e,function(o){n(o,e)});t.pipe(s)}else e.sourceType==="stream"&&uF.collectStream(t,i)};Pn.prototype.finalize=function(){this.engine.finalize()};Pn.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Pn.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Pn.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};cF.exports=Pn});var dF=x((Joe,pF)=>{"use strict";function KH(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var QH=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function hF(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function ZH(t){let e=hF(4);return e.writeInt32BE(t,0),e}function My(t,e){t=hF(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let n=~~e^-1;for(var r=0;r<t.length;r++)n=QH[(n^t[r])&255]^n>>>8;return n^-1}function Ny(){return ZH(My.apply(null,arguments))}Ny.signed=function(){return My.apply(null,arguments)};Ny.unsigned=function(){return My.apply(null,arguments)>>>0};var JH=Ny,XH=KH(JH);pF.exports=XH});var bF=x((Xoe,yF)=>{"use strict";var eG=N("util").inherits,mF=ni().Transform,tG=dF(),gF=vs(),gr=function(t){if(!(this instanceof gr))return new gr(t);t=this.options=gF.defaults(t,{}),mF.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};eG(gr,mF);gr.prototype._transform=function(t,e,n){n(null,t)};gr.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};gr.prototype.append=function(t,e,n){var r=this;e.crc32=0;function i(s,o){if(s){n(s);return}e.size=o.length||0,e.crc32=tG.unsigned(o),r.files.push(e),n(null,e)}e.sourceType==="buffer"?i(null,t):e.sourceType==="stream"&&gF.collectStream(t,i)};gr.prototype.finalize=function(){this._writeStringified(),this.end()};yF.exports=gr});var xF=x((eae,wF)=>{"use strict";var nG=LA(),Pa={},yr=function(t,e){return yr.create(t,e)};yr.create=function(t,e){if(Pa[t]){var n=new nG(t,e);return n.setFormat(t),n.setModule(new Pa[t](e)),n}else throw new Error("create("+t+"): format not registered")};yr.registerFormat=function(t,e){if(Pa[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Pa[t]=e};yr.isRegisteredFormat=function(t){return!!Pa[t]};yr.registerFormat("zip",hC());yr.registerFormat("tar",fF());yr.registerFormat("json",bF());wF.exports=yr});var Eb=Qe(Sb(),1),{program:ge,createCommand:yV,createArgument:bV,createOption:wV,CommanderError:xV,InvalidArgumentError:_V,InvalidOptionArgumentError:DV,Command:vV,Argument:SV,Option:EV,Help:kV}=Eb.default;var kb=t=>t.name==="backspace";var Ya=t=>t.name==="enter"||t.name==="return";var Ka=class extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}},Qa=class extends Error{name="CancelPromptError";message="Prompt was canceled"},Hs=class extends Error{name="ExitPromptError"},Za=class extends Error{name="HookError"},Ja=class extends Error{name="ValidationError"};import{AsyncResource as BR}from"node:async_hooks";import{AsyncLocalStorage as qR,AsyncResource as MR}from"node:async_hooks";var Tb=new qR;function NR(t){return{rl:t,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function Ab(t,e){let n=NR(t);return Tb.run(n,()=>{function r(i){n.handleChange=()=>{n.index=0,i()},n.handleChange()}return e(r)})}function kr(){let t=Tb.getStore();if(!t)throw new Za("[Inquirer] Hook functions can only be called from within a prompt");return t}function th(){return kr().rl}function nh(t){let e=(...n)=>{let r=kr(),i=!1,s=r.handleChange;r.handleChange=()=>{i=!0};let o=t(...n);return i&&s(),r.handleChange=s,o};return MR.bind(e)}function Gs(t){let e=kr(),{index:n}=e,r={get(){return e.hooks[n]},set(s){e.hooks[n]=s},initialized:n in e.hooks},i=t(r);return e.index++,i}function Cb(){kr().handleChange()}var Tr={queue(t){let e=kr(),{index:n}=e;e.hooksEffect.push(()=>{e.hooksCleanup[n]?.();let r=t(th());if(r!=null&&typeof r!="function")throw new Ja("useEffect return value must be a cleanup function or nothing.");e.hooksCleanup[n]=r})},run(){let t=kr();nh(()=>{t.hooksEffect.forEach(e=>{e()}),t.hooksEffect.length=0})()},clearAll(){let t=kr();t.hooksCleanup.forEach(e=>{e?.()}),t.hooksEffect.length=0,t.hooksCleanup.length=0}};function st(t){return Gs(e=>{let n=BR.bind(function(s){e.get()!==s&&(e.set(s),Cb())});if(e.initialized)return[e.get(),n];let r=typeof t=="function"?t():t;return e.set(r),[r,n]})}function Vs(t,e){Gs(n=>{let r=n.get();(!Array.isArray(r)||e.some((s,o)=>!Object.is(s,r[o])))&&Tr.queue(t),n.set(e)})}var kt=Qe(Rb(),1);import Jt from"node:process";function zR(){return Jt.platform!=="win32"?Jt.env.TERM!=="linux":!!Jt.env.WT_SESSION||!!Jt.env.TERMINUS_SUBLIME||Jt.env.ConEmuTask==="{cmd::Cmder}"||Jt.env.TERM_PROGRAM==="Terminus-Sublime"||Jt.env.TERM_PROGRAM==="vscode"||Jt.env.TERM==="xterm-256color"||Jt.env.TERM==="alacritty"||Jt.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Ob={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Ib={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},WR={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},$R={...Ob,...Ib},HR={...Ob,...WR},GR=zR(),VR=GR?$R:HR,rh=VR,jV=Object.entries(Ib);var Lb={prefix:{idle:kt.default.blue("?"),done:kt.default.green(rh.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(t=>kt.default.yellow(t))},style:{answer:kt.default.cyan,message:kt.default.bold,error:t=>kt.default.red(`> ${t}`),defaultAnswer:t=>kt.default.dim(`(${t})`),help:kt.default.dim,highlight:kt.default.cyan,key:t=>kt.default.cyan(kt.default.bold(`<${t}>`))}};function Pb(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function qb(...t){let e={};for(let n of t)for(let[r,i]of Object.entries(n)){let s=e[r];e[r]=Pb(s)&&Pb(i)?qb(s,i):i}return e}function Ar(...t){let e=[Lb,...t.filter(n=>n!=null)];return qb(...e)}function Ys({status:t="idle",theme:e}){let[n,r]=st(!1),[i,s]=st(0),{prefix:o,spinner:a}=Ar(e);return Vs(()=>{if(t==="loading"){let u,c=-1,f=setTimeout(()=>{r(!0),u=setInterval(()=>{c=c+1,s(c%a.frames.length)},a.interval)},300);return()=>{clearTimeout(f),clearInterval(u)}}else r(!1)},[t]),n?a.frames[i]:typeof o=="string"?o:o[t==="loading"?"idle":t]??o.idle}function Xa(t){return st({current:t})[0]}function Ks(t){let e=Xa(t);e.current=t,Vs(n=>{let r=!1,i=nh((s,o)=>{r||e.current(o,n)});return n.input.on("keypress",i),()=>{r=!0,n.input.removeListener("keypress",i)}},[])}var fw=Qe(Nb(),1),hw=Qe(cw(),1);function nl(t,e){return t.split(`
|
|
47
|
-
`).flatMap(n=>(0,
|
|
41
|
+
`+e);let[,r]=n;return r.replace(/\s/g,"").split(TP).map(i=>i.replace(AP,"").trim())}function k_(t,e){var n={};return Object.keys(t).forEach(r=>{var i=t[r],s,o=ko(i),a=!o&&i.length===1||o&&i.length===0;if(Array.isArray(i))s=[...i],i=s.pop(),n[r]=s.concat(s.length>0?l:i);else if(a)n[r]=i;else{if(s=FP(i),i.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),n[r]=s.concat(l)}function l(u,c){var f=s.map(h=>u[h]);f.push(c),ee(i)(...f)}}),ud(n,e)}function g_(t,e){t.length=1,t.head=t.tail=e}function cd(t,e,n){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var r=ee(t),i=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(m,d){o[m].push(d)}function l(m,d){let w=(...T)=>{u(m,w),d(...T)};o[m].push(w)}function u(m,d){if(!m)return Object.keys(o).forEach(w=>o[w]=[]);if(!d)return o[m]=[];o[m]=o[m].filter(w=>w!==d)}function c(m,...d){o[m].forEach(w=>w(...d))}var f=!1;function h(m,d,w,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");g.started=!0;var D,S;function M(F,...I){if(F)return w?S(F):D();if(I.length<=1)return D(I[0]);D(I)}var A=g._createTaskItem(m,w?M:T||M);if(d?g._tasks.unshift(A):g._tasks.push(A),f||(f=!0,Zn(()=>{f=!1,g.process()})),w||!T)return new Promise((F,I)=>{D=F,S=I})}function p(m){return function(d,...w){i-=1;for(var T=0,D=m.length;T<D;T++){var S=m[T],M=s.indexOf(S);M===0?s.shift():M>0&&s.splice(M,1),S.callback(d,...w),d!=null&&c("error",d,S.data)}i<=g.concurrency-g.buffer&&c("unsaturated"),g.idle()&&c("drain"),g.process()}}function b(m){return m.length===0&&g.idle()?(Zn(()=>c("drain")),!0):!1}let y=m=>d=>{if(!d)return new Promise((w,T)=>{l(m,(D,S)=>{if(D)return T(D);w(S)})});u(m),a(m,d)};var k=!1,g={_tasks:new zp,_createTaskItem(m,d){return{data:m,callback:d}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:e,payload:n,buffer:e/4,started:!1,paused:!1,push(m,d){return Array.isArray(m)?b(m)?void 0:m.map(w=>h(w,!1,!1,d)):h(m,!1,!1,d)},pushAsync(m,d){return Array.isArray(m)?b(m)?void 0:m.map(w=>h(w,!1,!0,d)):h(m,!1,!0,d)},kill(){u(),g._tasks.empty()},unshift(m,d){return Array.isArray(m)?b(m)?void 0:m.map(w=>h(w,!0,!1,d)):h(m,!0,!1,d)},unshiftAsync(m,d){return Array.isArray(m)?b(m)?void 0:m.map(w=>h(w,!0,!0,d)):h(m,!0,!0,d)},remove(m){g._tasks.remove(m)},process(){if(!k){for(k=!0;!g.paused&&i<g.concurrency&&g._tasks.length;){var m=[],d=[],w=g._tasks.length;g.payload&&(w=Math.min(w,g.payload));for(var T=0;T<w;T++){var D=g._tasks.shift();m.push(D),s.push(D),d.push(D.data)}i+=1,g._tasks.length===0&&c("empty"),i===g.concurrency&&c("saturated");var S=Xn(p(m));r(d,S)}k=!1}},length(){return g._tasks.length},running(){return i},workersList(){return s},idle(){return g._tasks.length+i===0},pause(){g.paused=!0},resume(){g.paused!==!1&&(g.paused=!1,Zn(g.process))}};return Object.defineProperties(g,{saturated:{writable:!1,value:y("saturated")},unsaturated:{writable:!1,value:y("unsaturated")},empty:{writable:!1,value:y("empty")},drain:{writable:!1,value:y("drain")},error:{writable:!1,value:y("error")}}),g}function T_(t,e){return cd(t,1,e)}function A_(t,e,n){return cd(t,e,n)}function RP(t,e,n,r){r=Jn(r);var i=ee(n);return en(t,(s,o,a)=>{i(e,s,(l,u)=>{e=u,a(l)})},s=>r(s,e))}function fd(...t){var e=t.map(ee);return function(...n){var r=this,i=n[n.length-1];return typeof i=="function"?n.pop():i=$i(),Wi(e,n,(s,o,a)=>{o.apply(r,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>i(s,...o)),i[Hi]}}function C_(...t){return fd(...t.reverse())}function OP(t,e,n,r){return ad(Ht(e),t,n,r)}function IP(t,e,n,r){var i=ee(n);return To(t,e,(s,o)=>{i(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return r(s,a)})}function LP(t,e,n){return So(t,1/0,e,n)}function PP(t,e,n){return So(t,1,e,n)}function F_(...t){return function(...e){var n=e.pop();return n(null,...t)}}function En(t,e){return(n,r,i,s)=>{var o=!1,a;let l=ee(i);n(r,(u,c,f)=>{l(u,(h,p)=>{if(h||h===!1)return f(h);if(t(p)&&!a)return o=!0,a=e(!0,u),f(null,vu);f()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function qP(t,e,n){return En(r=>r,(r,i)=>i)(Ot,t,e,n)}function MP(t,e,n,r){return En(i=>i,(i,s)=>s)(Ht(e),t,n,r)}function NP(t,e,n){return En(r=>r,(r,i)=>i)(Ht(1),t,e,n)}function R_(t){return(e,...n)=>ee(e)(...n,(r,...i)=>{typeof console=="object"&&(r?console.error&&console.error(r):console[t]&&i.forEach(s=>console[t](s)))})}function BP(t,e,n){n=Xn(n);var r=ee(t),i=ee(e),s;function o(l,...u){if(l)return n(l);l!==!1&&(s=u,i(...u,a))}function a(l,u){if(l)return n(l);if(l!==!1){if(!u)return n(null,...s);r(o)}}return a(null,!0)}function I_(t,e,n){let r=ee(e);return gu(t,(...i)=>{let s=i.pop();r(...i,(o,a)=>s(o,!a))},n)}function L_(t){return(e,n,r)=>t(e,r)}function jP(t,e,n){return Ot(t,L_(ee(e)),n)}function UP(t,e,n,r){return Ht(e)(t,L_(ee(n)),r)}function zP(t,e,n){return yu(t,1,e,n)}function hd(t){return ko(t)?t:function(...e){var n=e.pop(),r=!0;e.push((...i)=>{r?Zn(()=>n(...i)):n(...i)}),t.apply(this,e),r=!1}}function WP(t,e,n){return En(r=>!r,r=>!r)(Ot,t,e,n)}function $P(t,e,n,r){return En(i=>!i,i=>!i)(Ht(e),t,n,r)}function HP(t,e,n){return En(r=>!r,r=>!r)(en,t,e,n)}function GP(t,e,n,r){var i=new Array(e.length);t(e,(s,o,a)=>{n(s,(l,u)=>{i[o]=!!u,a(l)})},s=>{if(s)return r(s);for(var o=[],a=0;a<e.length;a++)i[a]&&o.push(e[a]);r(null,o)})}function VP(t,e,n,r){var i=[];t(e,(s,o,a)=>{n(s,(l,u)=>{if(l)return a(l);u&&i.push({index:o,value:s}),a(l)})},s=>{if(s)return r(s);r(null,i.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Eu(t,e,n,r){var i=Du(e)?GP:VP;return i(t,e,ee(n),r)}function YP(t,e,n){return Eu(Ot,t,e,n)}function KP(t,e,n,r){return Eu(Ht(e),t,n,r)}function QP(t,e,n){return Eu(en,t,e,n)}function ZP(t,e){var n=Xn(e),r=ee(hd(t));function i(s){if(s)return n(s);s!==!1&&r(i)}return i()}function JP(t,e,n,r){var i=ee(n);return To(t,e,(s,o)=>{i(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:c}=o[u],{val:f}=o[u];l.call(a,c)?a[c].push(f):a[c]=[f]}return r(s,a)})}function q_(t,e,n){return ku(t,1/0,e,n)}function M_(t,e,n){return ku(t,1,e,n)}function XP(t,e,n,r){r=Jn(r);var i={},s=ee(n);return Ht(e)(t,(o,a,l)=>{s(o,a,(u,c)=>{if(u)return l(u);i[a]=c,l(u)})},o=>r(o,i))}function B_(t,e,n){return Tu(t,1/0,e,n)}function j_(t,e,n){return Tu(t,1,e,n)}function U_(t,e=n=>n){var n=Object.create(null),r=Object.create(null),i=ee(t),s=Eo((o,a)=>{var l=e(...o);l in n?Zn(()=>a(null,...n[l])):l in r?r[l].push(a):(r[l]=[a],i(...o,(u,...c)=>{u||(n[l]=c);var f=r[l];delete r[l];for(var h=0,p=f.length;h<p;h++)f[h](u,...c)}))});return s.memo=n,s.unmemoized=t,s}function W_(t,e){return pd(Ot,t,e)}function $_(t,e,n){return pd(Ht(e),t,n)}function dd(t,e){var n=ee(t);return cd((r,i)=>{n(r[0],i)},e,1)}function eq(t){return(t<<1)+1}function y_(t){return(t+1>>1)-1}function Up(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function H_(t,e){var n=dd(t,e),{push:r,pushAsync:i}=n;n._tasks=new td,n._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return n.push=function(o,a=0,l){return r(s(o,a),l)},n.pushAsync=function(o,a=0,l){return i(s(o,a),l)},delete n.unshift,delete n.unshiftAsync,n}function tq(t,e){if(e=Jn(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var n=0,r=t.length;n<r;n++)ee(t[n])(e)}function nd(t,e,n,r){var i=[...t].reverse();return Wi(i,e,n,r)}function wu(t){var e=ee(t);return Eo(function(r,i){return r.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}i(null,a)}),e.apply(this,r)})}function V_(t){var e;return Array.isArray(t)?e=t.map(wu):(e={},Object.keys(t).forEach(n=>{e[n]=wu.call(this,t[n])})),e}function md(t,e,n,r){let i=ee(n);return Eu(t,e,(s,o)=>{i(s,(a,l)=>{o(a,!l)})},r)}function nq(t,e,n){return md(Ot,t,e,n)}function rq(t,e,n,r){return md(Ht(e),t,n,r)}function iq(t,e,n){return md(en,t,e,n)}function Z_(t){return function(){return t}}function xu(t,e,n){var r={times:rd,intervalFunc:Z_(J_)};if(arguments.length<3&&typeof t=="function"?(n=e||$i(),e=t):(sq(r,t),n=n||$i()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var i=ee(e),s=1;function o(){i((a,...l)=>{a!==!1&&(a&&s++<r.times&&(typeof r.errorFilter!="function"||r.errorFilter(a))?setTimeout(o,r.intervalFunc(s-1)):n(a,...l))})}return o(),n[Hi]}function sq(t,e){if(typeof e=="object")t.times=+e.times||rd,t.intervalFunc=typeof e.interval=="function"?e.interval:Z_(+e.interval||J_),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||rd;else throw new Error("Invalid arguments for async.retry")}function X_(t,e){e||(e=t,t=null);let n=t&&t.arity||e.length;ko(e)&&(n+=1);var r=ee(e);return Eo((i,s)=>{(i.length<n-1||s==null)&&(i.push(s),s=$i());function o(a){r(...i,a)}return t?xu(t,o,s):xu(o,s),s[Hi]})}function eD(t,e){return pd(en,t,e)}function oq(t,e,n){return En(Boolean,r=>r)(Ot,t,e,n)}function aq(t,e,n,r){return En(Boolean,i=>i)(Ht(e),t,n,r)}function lq(t,e,n){return En(Boolean,r=>r)(en,t,e,n)}function uq(t,e,n){var r=ee(e);return Su(t,(s,o)=>{r(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return n(s);n(null,o.sort(i).map(a=>a.value))});function i(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function nD(t,e,n){var r=ee(t);return Eo((i,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",c=new Error('Callback function "'+u+'" timed out.');c.code="ETIMEDOUT",n&&(c.info=n),o=!0,s(c)}i.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),r(...i)})}function cq(t){for(var e=Array(t);t--;)e[t]=t;return e}function Au(t,e,n,r){var i=ee(n);return To(cq(t),e,i,r)}function rD(t,e,n){return Au(t,1/0,e,n)}function iD(t,e,n){return Au(t,1,e,n)}function sD(t,e,n,r){arguments.length<=3&&typeof e=="function"&&(r=n,n=e,e=Array.isArray(t)?[]:{}),r=Jn(r||$i());var i=ee(n);return Ot(t,(s,o,a)=>{i(e,s,o,a)},s=>r(s,e)),r[Hi]}function fq(t,e){var n=null,r;return bu(t,(i,s)=>{ee(i)((o,...a)=>{if(o===!1)return s(o);a.length<2?[r]=a:r=a,n=o,s(o?null:{})})},()=>e(n,r))}function aD(t){return(...e)=>(t.unmemoized||t)(...e)}function hq(t,e,n){n=Xn(n);var r=ee(e),i=ee(t),s=[];function o(l,...u){if(l)return n(l);s=u,l!==!1&&i(a)}function a(l,u){if(l)return n(l);if(l!==!1){if(!u)return n(null,...s);r(o)}}return i(a)}function lD(t,e,n){let r=ee(t);return _u(i=>r((s,o)=>i(s,!o)),e,n)}function pq(t,e){if(e=Jn(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var n=0;function r(s){var o=ee(t[n++]);o(...s,Xn(i))}function i(s,...o){if(s!==!1){if(s||n===t.length)return e(s,...o);r(o)}}r([])}var cP,w_,x_,Do,Zn,vu,Ht,vo,Ot,Su,S_,en,ld,E_,Hi,EP,kP,TP,AP,zp,Wi,To,So,Wp,$p,Hp,Gp,Vp,O_,gu,Yp,yu,bu,Kp,Qp,Zp,Jp,Xp,ed,P_,ku,N_,Tu,du,z_,pd,td,G_,Y_,K_,Q_,rd,J_,id,sd,od,tD,oD,_u,uD,dq,fD=_R(()=>{"use strict";cP=typeof queueMicrotask=="function"&&queueMicrotask,w_=typeof setImmediate=="function"&&setImmediate,x_=typeof process=="object"&&typeof process.nextTick=="function";cP?Do=queueMicrotask:w_?Do=setImmediate:x_?Do=process.nextTick:Do=__;Zn=D_(Do);vu={};Ht=t=>(e,n,r)=>{if(r=Jn(r),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return r(null);if(fP(e))return m_(e,t,n,r);if(hP(e))return m_(e[Symbol.asyncIterator](),t,n,r);var i=yP(e),s=!1,o=!1,a=0,l=!1;function u(f,h){if(!o)if(a-=1,f)s=!0,r(f);else if(f===!1)s=!0,o=!0;else{if(h===vu||s&&a<=0)return s=!0,r(null);l||c()}}function c(){for(l=!0;a<t&&!s;){var f=i();if(f===null){s=!0,a<=0&&r(null);return}a+=1,n(f.value,f.key,Xn(u))}l=!1}c()};vo=X(bP,4);Ot=X(_P,3);Su=X(DP,3),S_=v_(Su);en=X(vP,3);ld=X(SP,3),E_=v_(ld),Hi=Symbol("promiseCallback");EP=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,kP=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,TP=/,/,AP=/(=.+)?(\s*)$/;zp=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,n){n.prev=e,n.next=e.next,e.next?e.next.prev=n:this.tail=n,e.next=n,this.length+=1}insertBefore(e,n){n.prev=e.prev,n.next=e,e.prev?e.prev.next=n:this.head=n,e.prev=n,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):g_(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):g_(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var n=this.head;n;){var{next:r}=n;e(n)&&this.removeLink(n),n=r}return this}};Wi=X(RP,4);To=X(OP,4);So=X(IP,4);Wp=X(LP,3);$p=X(PP,3);Hp=X(qP,3);Gp=X(MP,4);Vp=X(NP,3);O_=R_("dir");gu=X(BP,3);Yp=X(jP,3);yu=X(UP,4);bu=X(zP,3);Kp=X(WP,3);Qp=X($P,4);Zp=X(HP,3);Jp=X(YP,3);Xp=X(KP,4);ed=X(QP,3);P_=X(ZP,2);ku=X(JP,4);N_=R_("log");Tu=X(XP,4);x_?du=process.nextTick:w_?du=setImmediate:du=__;z_=D_(du),pd=X((t,e,n)=>{var r=Du(e)?[]:{};t(e,(i,s,o)=>{ee(i)((a,...l)=>{l.length<2&&([l]=l),r[s]=l,o(a)})},i=>n(i,r))},3);td=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let n;for(;e>0&&Up(this.heap[e],this.heap[n=y_(e)]);){let r=this.heap[e];this.heap[e]=this.heap[n],this.heap[n]=r,e=n}}percDown(e){let n;for(;(n=eq(e))<this.heap.length&&(n+1<this.heap.length&&Up(this.heap[n+1],this.heap[n])&&(n=n+1),!Up(this.heap[e],this.heap[n]));){let r=this.heap[e];this.heap[e]=this.heap[n],this.heap[n]=r,e=n}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let n=0;for(let r=0;r<this.heap.length;r++)e(this.heap[r])||(this.heap[n]=this.heap[r],n++);this.heap.splice(n);for(let r=y_(this.heap.length-1);r>=0;r--)this.percDown(r);return this}};G_=X(tq,2);Y_=X(nq,3);K_=X(rq,4);Q_=X(iq,3);rd=5,J_=0;id=X(oq,3);sd=X(aq,4);od=X(lq,3);tD=X(uq,3);oD=X(fq);_u=X(hq,3);uD=X(pq),dq={apply:b_,applyEach:S_,applyEachSeries:E_,asyncify:mu,auto:ud,autoInject:k_,cargo:T_,cargoQueue:A_,compose:C_,concat:Wp,concatLimit:So,concatSeries:$p,constant:F_,detect:Hp,detectLimit:Gp,detectSeries:Vp,dir:O_,doUntil:I_,doWhilst:gu,each:Yp,eachLimit:yu,eachOf:Ot,eachOfLimit:vo,eachOfSeries:en,eachSeries:bu,ensureAsync:hd,every:Kp,everyLimit:Qp,everySeries:Zp,filter:Jp,filterLimit:Xp,filterSeries:ed,forever:P_,groupBy:q_,groupByLimit:ku,groupBySeries:M_,log:N_,map:Su,mapLimit:To,mapSeries:ld,mapValues:B_,mapValuesLimit:Tu,mapValuesSeries:j_,memoize:U_,nextTick:z_,parallel:W_,parallelLimit:$_,priorityQueue:H_,queue:dd,race:G_,reduce:Wi,reduceRight:nd,reflect:wu,reflectAll:V_,reject:Y_,rejectLimit:K_,rejectSeries:Q_,retry:xu,retryable:X_,seq:fd,series:eD,setImmediate:Zn,some:id,someLimit:sd,someSeries:od,sortBy:tD,timeout:nD,times:rD,timesLimit:Au,timesSeries:iD,transform:sD,tryEach:oD,unmemoize:aD,until:lD,waterfall:uD,whilst:_u,all:Kp,allLimit:Qp,allSeries:Zp,any:id,anyLimit:sd,anySeries:od,find:Hp,findLimit:Gp,findSeries:Vp,flatMap:Wp,flatMapLimit:So,flatMapSeries:$p,forEach:Yp,forEachSeries:bu,forEachLimit:yu,forEachOf:Ot,forEachOfSeries:en,forEachOfLimit:vo,inject:Wi,foldl:Wi,foldr:nd,select:Jp,selectLimit:Xp,selectSeries:ed,wrapSync:mu,during:_u,doDuring:gu}});var pD=x((vre,hD)=>{"use strict";var er=N("constants"),mq=process.cwd,Cu=null,gq=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Cu||(Cu=mq.call(process)),Cu};try{process.cwd()}catch{}typeof process.chdir=="function"&&(gd=process.chdir,process.chdir=function(t){Cu=null,gd.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,gd));var gd;hD.exports=yq;function yq(t){er.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=r(t.chmod),t.fchmod=r(t.fchmod),t.lchmod=r(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=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,f,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,f,h,p){p&&process.nextTick(p)},t.lchownSync=function(){}),gq==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function f(h,p,b){var y=Date.now(),k=0;c(h,p,function g(m){if(m&&(m.code==="EACCES"||m.code==="EPERM"||m.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){t.stat(p,function(d,w){d&&d.code==="ENOENT"?c(h,p,g):b(m)})},k),k<100&&(k+=10);return}b&&b(m)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function f(h,p,b,y,k,g){var m;if(g&&typeof g=="function"){var d=0;m=function(w,T,D){if(w&&w.code==="EAGAIN"&&d<10)return d++,c.call(t,h,p,b,y,k,m);g.apply(this,arguments)}}return c.call(t,h,p,b,y,k,m)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(f,h,p,b,y){for(var k=0;;)try{return c.call(t,f,h,p,b,y)}catch(g){if(g.code==="EAGAIN"&&k<10){k++;continue}throw g}}}(t.readSync);function e(c){c.lchmod=function(f,h,p){c.open(f,er.O_WRONLY|er.O_SYMLINK,h,function(b,y){if(b){p&&p(b);return}c.fchmod(y,h,function(k){c.close(y,function(g){p&&p(k||g)})})})},c.lchmodSync=function(f,h){var p=c.openSync(f,er.O_WRONLY|er.O_SYMLINK,h),b=!0,y;try{y=c.fchmodSync(p,h),b=!1}finally{if(b)try{c.closeSync(p)}catch{}else c.closeSync(p)}return y}}function n(c){er.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,h,p,b){c.open(f,er.O_SYMLINK,function(y,k){if(y){b&&b(y);return}c.futimes(k,h,p,function(g){c.close(k,function(m){b&&b(g||m)})})})},c.lutimesSync=function(f,h,p){var b=c.openSync(f,er.O_SYMLINK),y,k=!0;try{y=c.futimesSync(b,h,p),k=!1}finally{if(k)try{c.closeSync(b)}catch{}else c.closeSync(b)}return y}):c.futimes&&(c.lutimes=function(f,h,p,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function r(c){return c&&function(f,h,p){return c.call(t,f,h,function(b){u(b)&&(b=null),p&&p.apply(this,arguments)})}}function i(c){return c&&function(f,h){try{return c.call(t,f,h)}catch(p){if(!u(p))throw p}}}function s(c){return c&&function(f,h,p,b){return c.call(t,f,h,p,function(y){u(y)&&(y=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(f,h,p){try{return c.call(t,f,h,p)}catch(b){if(!u(b))throw b}}}function a(c){return c&&function(f,h,p){typeof h=="function"&&(p=h,h=null);function b(y,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),p&&p.apply(this,arguments)}return h?c.call(t,f,h,b):c.call(t,f,b)}}function l(c){return c&&function(f,h){var p=h?c.call(t,f,h):c.call(t,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function u(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var gD=x((Sre,mD)=>{"use strict";var dD=N("stream").Stream;mD.exports=bq;function bq(t){return{ReadStream:e,WriteStream:n};function e(r,i){if(!(this instanceof e))return new e(r,i);dD.call(this);var s=this;this.path=r,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,l=o.length;a<l;a++){var u=o[a];this[u]=i[u]}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(c,f){if(c){s.emit("error",c),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);dD.call(this),this.path=r,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 l=s[o];this[l]=i[l]}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 bD=x((Ere,yD)=>{"use strict";yD.exports=xq;var wq=Object.getPrototypeOf||function(t){return t.__proto__};function xq(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:wq(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var xd=x((kre,wd)=>{"use strict";var Ee=N("fs"),_q=pD(),Dq=gD(),vq=bD(),Fu=N("util"),He,Ou;typeof Symbol=="function"&&typeof Symbol.for=="function"?(He=Symbol.for("graceful-fs.queue"),Ou=Symbol.for("graceful-fs.previous")):(He="___graceful-fs.queue",Ou="___graceful-fs.previous");function Sq(){}function _D(t,e){Object.defineProperty(t,He,{get:function(){return e}})}var Wr=Sq;Fu.debuglog?Wr=Fu.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Wr=function(){var t=Fu.format.apply(Fu,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
42
|
+
GFS4: `),console.error(t)});Ee[He]||(wD=global[He]||[],_D(Ee,wD),Ee.close=function(t){function e(n,r){return t.call(Ee,n,function(i){i||xD(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(e,Ou,{value:t}),e}(Ee.close),Ee.closeSync=function(t){function e(n){t.apply(Ee,arguments),xD()}return Object.defineProperty(e,Ou,{value:t}),e}(Ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Wr(Ee[He]),N("assert").equal(Ee[He].length,0)}));var wD;global[He]||_D(global,Ee[He]);wd.exports=yd(vq(Ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ee.__patched&&(wd.exports=yd(Ee),Ee.__patched=!0);function yd(t){_q(t),t.gracefulify=yd,t.createReadStream=T,t.createWriteStream=D;var e=t.readFile;t.readFile=n;function n(A,F,I){return typeof F=="function"&&(I=F,F=null),B(A,F,I);function B(O,R,L,$){return e(O,R,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Gi([B,[O,R,L],z,$||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var r=t.writeFile;t.writeFile=i;function i(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,de){return r(R,L,$,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Gi([O,[R,L,$,z],se,de||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,de){return s(R,L,$,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Gi([O,[R,L,$,z],se,de||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(A,F,I,B){return typeof I=="function"&&(B=I,I=0),O(A,F,I,B);function O(R,L,$,z,de){return a(R,L,$,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Gi([O,[R,L,$,z],se,de||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(A,F,I){typeof F=="function"&&(I=F,F=null);var B=c.test(process.version)?function(L,$,z,de){return u(L,O(L,$,z,de))}:function(L,$,z,de){return u(L,$,O(L,$,z,de))};return B(A,F,I);function O(R,L,$,z){return function(de,se){de&&(de.code==="EMFILE"||de.code==="ENFILE")?Gi([B,[R,L,$],de,z||Date.now(),Date.now()]):(se&&se.sort&&se.sort(),typeof $=="function"&&$.call(this,de,se))}}}if(process.version.substr(0,4)==="v0.8"){var h=Dq(t);g=h.ReadStream,d=h.WriteStream}var p=t.ReadStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=m);var b=t.WriteStream;b&&(d.prototype=Object.create(b.prototype),d.prototype.open=w),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(A){g=A},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return d},set:function(A){d=A},enumerable:!0,configurable:!0});var y=g;Object.defineProperty(t,"FileReadStream",{get:function(){return y},set:function(A){y=A},enumerable:!0,configurable:!0});var k=d;Object.defineProperty(t,"FileWriteStream",{get:function(){return k},set:function(A){k=A},enumerable:!0,configurable:!0});function g(A,F){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function m(){var A=this;M(A.path,A.flags,A.mode,function(F,I){F?(A.autoClose&&A.destroy(),A.emit("error",F)):(A.fd=I,A.emit("open",I),A.read())})}function d(A,F){return this instanceof d?(b.apply(this,arguments),this):d.apply(Object.create(d.prototype),arguments)}function w(){var A=this;M(A.path,A.flags,A.mode,function(F,I){F?(A.destroy(),A.emit("error",F)):(A.fd=I,A.emit("open",I))})}function T(A,F){return new t.ReadStream(A,F)}function D(A,F){return new t.WriteStream(A,F)}var S=t.open;t.open=M;function M(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,de){return S(R,L,$,function(se,v){se&&(se.code==="EMFILE"||se.code==="ENFILE")?Gi([O,[R,L,$,z],se,de||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}return t}function Gi(t){Wr("ENQUEUE",t[0].name,t[1]),Ee[He].push(t),bd()}var Ru;function xD(){for(var t=Date.now(),e=0;e<Ee[He].length;++e)Ee[He][e].length>2&&(Ee[He][e][3]=t,Ee[He][e][4]=t);bd()}function bd(){if(clearTimeout(Ru),Ru=void 0,Ee[He].length!==0){var t=Ee[He].shift(),e=t[0],n=t[1],r=t[2],i=t[3],s=t[4];if(i===void 0)Wr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-i>=6e4){Wr("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,r)}else{var a=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);a>=u?(Wr("RETRY",e.name,n),e.apply(null,n.concat([i]))):Ee[He].push(t)}Ru===void 0&&(Ru=setTimeout(bd,0))}}});var Iu=x((Tre,DD)=>{"use strict";var tn=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";tn.writable=t=>tn(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";tn.readable=t=>tn(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";tn.duplex=t=>tn.writable(t)&&tn.readable(t);tn.transform=t=>tn.duplex(t)&&typeof t._transform=="function";DD.exports=tn});var Ao=x((Are,_d)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?_d.exports={nextTick:Eq}:_d.exports=process;function Eq(t,e,n,r){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,o;switch(i){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,n)});case 4:return process.nextTick(function(){t.call(null,e,n,r)});default:for(s=new Array(i-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var SD=x((Cre,vD)=>{"use strict";var kq={}.toString;vD.exports=Array.isArray||function(t){return kq.call(t)=="[object Array]"}});var Dd=x((Fre,ED)=>{"use strict";ED.exports=N("stream")});var Pu=x((vd,TD)=>{"use strict";var Lu=N("buffer"),nn=Lu.Buffer;function kD(t,e){for(var n in t)e[n]=t[n]}nn.from&&nn.alloc&&nn.allocUnsafe&&nn.allocUnsafeSlow?TD.exports=Lu:(kD(Lu,vd),vd.Buffer=$r);function $r(t,e,n){return nn(t,e,n)}$r.prototype=Object.create(nn.prototype);kD(nn,$r);$r.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nn(t,e,n)};$r.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var r=nn(t);return e!==void 0?typeof n=="string"?r.fill(e,n):r.fill(e):r.fill(0),r};$r.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nn(t)};$r.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Lu.SlowBuffer(t)}});var Vi=x(tt=>{"use strict";function Tq(t){return Array.isArray?Array.isArray(t):qu(t)==="[object Array]"}tt.isArray=Tq;function Aq(t){return typeof t=="boolean"}tt.isBoolean=Aq;function Cq(t){return t===null}tt.isNull=Cq;function Fq(t){return t==null}tt.isNullOrUndefined=Fq;function Rq(t){return typeof t=="number"}tt.isNumber=Rq;function Oq(t){return typeof t=="string"}tt.isString=Oq;function Iq(t){return typeof t=="symbol"}tt.isSymbol=Iq;function Lq(t){return t===void 0}tt.isUndefined=Lq;function Pq(t){return qu(t)==="[object RegExp]"}tt.isRegExp=Pq;function qq(t){return typeof t=="object"&&t!==null}tt.isObject=qq;function Mq(t){return qu(t)==="[object Date]"}tt.isDate=Mq;function Nq(t){return qu(t)==="[object Error]"||t instanceof Error}tt.isError=Nq;function Bq(t){return typeof t=="function"}tt.isFunction=Bq;function jq(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}tt.isPrimitive=jq;tt.isBuffer=N("buffer").Buffer.isBuffer;function qu(t){return Object.prototype.toString.call(t)}});var AD=x((Ore,Sd)=>{"use strict";typeof Object.create=="function"?Sd.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Sd.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}});var Yi=x((Ire,kd)=>{"use strict";try{if(Ed=N("util"),typeof Ed.inherits!="function")throw"";kd.exports=Ed.inherits}catch{kd.exports=AD()}var Ed});var FD=x((Lre,Td)=>{"use strict";function Uq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var CD=Pu().Buffer,Co=N("util");function zq(t,e,n){t.copy(e,n)}Td.exports=function(){function t(){Uq(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length},t.prototype.unshift=function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length},t.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(n){if(this.length===0)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=n+r.data;return i},t.prototype.concat=function(n){if(this.length===0)return CD.alloc(0);for(var r=CD.allocUnsafe(n>>>0),i=this.head,s=0;i;)zq(i.data,r,s),s+=i.data.length,i=i.next;return r},t}();Co&&Co.inspect&&Co.inspect.custom&&(Td.exports.prototype[Co.inspect.custom]=function(){var t=Co.inspect({length:this.length});return this.constructor.name+" "+t})});var Ad=x((Pre,RD)=>{"use strict";var Mu=Ao();function Wq(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Mu.nextTick(Nu,this,t)):Mu.nextTick(Nu,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,Mu.nextTick(Nu,n,s)):Mu.nextTick(Nu,n,s):e&&e(s)}),this)}function $q(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Nu(t,e){t.emit("error",e)}RD.exports={destroy:Wq,undestroy:$q}});var ID=x((qre,OD)=>{"use strict";OD.exports=N("util").deprecate});var Fd=x((Mre,UD)=>{"use strict";var Hr=Ao();UD.exports=Oe;function PD(t){var e=this;this.next=null,this.entry=null,this.finish=function(){lM(e,t)}}var Hq=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Hr.nextTick,Ki;Oe.WritableState=Ro;var qD=Object.create(Vi());qD.inherits=Yi();var Gq={deprecate:ID()},MD=Dd(),ju=Pu().Buffer,Vq=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Yq(t){return ju.from(t)}function Kq(t){return ju.isBuffer(t)||t instanceof Vq}var ND=Ad();qD.inherits(Oe,MD);function Qq(){}function Ro(t,e){Ki=Ki||Gr(),t=t||{};var n=e instanceof Ki;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,i=t.writableHighWaterMark,s=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){rM(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new PD(this)}Ro.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(Ro.prototype,"buffer",{get:Gq.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Bu;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Bu=Function.prototype[Symbol.hasInstance],Object.defineProperty(Oe,Symbol.hasInstance,{value:function(t){return Bu.call(this,t)?!0:this!==Oe?!1:t&&t._writableState instanceof Ro}})):Bu=function(t){return t instanceof this};function Oe(t){if(Ki=Ki||Gr(),!Bu.call(Oe,this)&&!(this instanceof Ki))return new Oe(t);this._writableState=new Ro(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),MD.call(this)}Oe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Zq(t,e){var n=new Error("write after end");t.emit("error",n),Hr.nextTick(e,n)}function Jq(t,e,n,r){var i=!0,s=!1;return n===null?s=new TypeError("May not write null values to stream"):typeof n!="string"&&n!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),Hr.nextTick(r,s),i=!1),i}Oe.prototype.write=function(t,e,n){var r=this._writableState,i=!1,s=!r.objectMode&&Kq(t);return s&&!ju.isBuffer(t)&&(t=Yq(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=r.defaultEncoding),typeof n!="function"&&(n=Qq),r.ended?Zq(this,n):(s||Jq(this,r,t,n))&&(r.pendingcb++,i=eM(this,r,s,t,e,n)),i};Oe.prototype.cork=function(){var t=this._writableState;t.corked++};Oe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&BD(this,t))};Oe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function Xq(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ju.from(e,n)),e}Object.defineProperty(Oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function eM(t,e,n,r,i,s){if(!n){var o=Xq(e,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=e.objectMode?1:r.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Cd(t,e,!1,a,r,i,s);return l}function Cd(t,e,n,r,i,s,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function tM(t,e,n,r,i){--e.pendingcb,n?(Hr.nextTick(i,r),Hr.nextTick(Fo,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),Fo(t,e))}function nM(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function rM(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(nM(n),e)tM(t,n,r,e,i);else{var s=jD(n);!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&BD(t,n),r?Hq(LD,t,n,s,i):LD(t,n,s,i)}}function LD(t,e,n,r){n||iM(t,e),e.pendingcb--,r(),Fo(t,e)}function iM(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function BD(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var o=0,a=!0;n;)i[o]=n,n.isBuf||(a=!1),n=n.next,o+=1;i.allBuffers=a,Cd(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new PD(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,c=n.callback,f=e.objectMode?1:l.length;if(Cd(t,e,!1,f,l,u,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}Oe.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))};Oe.prototype._writev=null;Oe.prototype.end=function(t,e,n){var r=this._writableState;typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||aM(this,r,n)};function jD(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function sM(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),Fo(t,e)})}function oM(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Hr.nextTick(sM,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Fo(t,e){var n=jD(e);return n&&(oM(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),n}function aM(t,e,n){e.ending=!0,Fo(t,e),n&&(e.finished?Hr.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function lM(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}Object.defineProperty(Oe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Oe.prototype.destroy=ND.destroy;Oe.prototype._undestroy=ND.undestroy;Oe.prototype._destroy=function(t,e){this.end(),e(t)}});var Gr=x((Nre,HD)=>{"use strict";var zD=Ao(),uM=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};HD.exports=kn;var WD=Object.create(Vi());WD.inherits=Yi();var $D=Id(),Od=Fd();WD.inherits(kn,$D);for(Rd=uM(Od.prototype),Uu=0;Uu<Rd.length;Uu++)zu=Rd[Uu],kn.prototype[zu]||(kn.prototype[zu]=Od.prototype[zu]);var Rd,zu,Uu;function kn(t){if(!(this instanceof kn))return new kn(t);$D.call(this,t),Od.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",cM)}Object.defineProperty(kn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cM(){this.allowHalfOpen||this._writableState.ended||zD.nextTick(fM,this)}function fM(t){t.end()}Object.defineProperty(kn.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});kn.prototype._destroy=function(t,e){this.push(null),this.end(),zD.nextTick(e,t)}});var Id=x((jre,rv)=>{"use strict";var Zi=Ao();rv.exports=we;var hM=SD(),Oo;we.ReadableState=JD;var Bre=N("events").EventEmitter,KD=function(t,e){return t.listeners(e).length},Nd=Dd(),Io=Pu().Buffer,pM=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function dM(t){return Io.from(t)}function mM(t){return Io.isBuffer(t)||t instanceof pM}var QD=Object.create(Vi());QD.inherits=Yi();var Ld=N("util"),he=void 0;Ld&&Ld.debuglog?he=Ld.debuglog("stream"):he=function(){};var gM=FD(),ZD=Ad(),Qi;QD.inherits(we,Nd);var Pd=["error","close","destroy","pause","resume"];function yM(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):hM(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function JD(t,e){Oo=Oo||Gr(),t=t||{};var n=e instanceof Oo;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=t.readableHighWaterMark,s=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new gM,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Qi||(Qi=N("string_decoder").StringDecoder),this.decoder=new Qi(t.encoding),this.encoding=t.encoding)}function we(t){if(Oo=Oo||Gr(),!(this instanceof we))return new we(t);this._readableState=new JD(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Nd.call(this)}Object.defineProperty(we.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});we.prototype.destroy=ZD.destroy;we.prototype._undestroy=ZD.undestroy;we.prototype._destroy=function(t,e){this.push(null),e(t)};we.prototype.push=function(t,e){var n=this._readableState,r;return n.objectMode?r=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=Io.from(t,e),e=""),r=!0),XD(this,t,e,!1,r)};we.prototype.unshift=function(t){return XD(this,t,null,!0,!1)};function XD(t,e,n,r,i){var s=t._readableState;if(e===null)s.reading=!1,_M(t,s);else{var o;i||(o=bM(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Io.prototype&&(e=dM(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):qd(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||e.length!==0?qd(t,s,e,!1):ev(t,s)):qd(t,s,e,!1))):r||(s.reading=!1)}return wM(s)}function qd(t,e,n,r){e.flowing&&e.length===0&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Wu(t)),ev(t,e)}function bM(t,e){var n;return!mM(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}function wM(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}we.prototype.isPaused=function(){return this._readableState.flowing===!1};we.prototype.setEncoding=function(t){return Qi||(Qi=N("string_decoder").StringDecoder),this._readableState.decoder=new Qi(t),this._readableState.encoding=t,this};var GD=8388608;function xM(t){return t>=GD?t=GD:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function VD(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=xM(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}we.prototype.read=function(t){he("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return he("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Md(this):Wu(this),null;if(t=VD(t,e),t===0&&e.ended)return e.length===0&&Md(this),null;var r=e.needReadable;he("need readable",r),(e.length===0||e.length-t<e.highWaterMark)&&(r=!0,he("length less than watermark",r)),e.ended||e.reading?(r=!1,he("reading or ended",r)):r&&(he("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=VD(n,e)));var i;return t>0?i=tv(t,e):i=null,i===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Md(this)),i!==null&&this.emit("data",i),i};function _M(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,Wu(t)}}function Wu(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(he("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Zi.nextTick(YD,t):YD(t))}function YD(t){he("emit readable"),t.emit("readable"),Bd(t)}function ev(t,e){e.readingMore||(e.readingMore=!0,Zi.nextTick(DM,t,e))}function DM(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(he("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}we.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};we.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t);break}r.pipesCount+=1,he("pipe count=%d opts=%j",r.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=i?a:k;r.endEmitted?Zi.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(g,m){he("onunpipe"),g===n&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){he("onend"),t.end()}var l=vM(n);t.on("drain",l);var u=!1;function c(){he("cleanup"),t.removeListener("close",b),t.removeListener("finish",y),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",k),n.removeListener("data",h),u=!0,r.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var f=!1;n.on("data",h);function h(g){he("ondata"),f=!1;var m=t.write(g);m===!1&&!f&&((r.pipesCount===1&&r.pipes===t||r.pipesCount>1&&nv(r.pipes,t)!==-1)&&!u&&(he("false write response, pause",r.awaitDrain),r.awaitDrain++,f=!0),n.pause())}function p(g){he("onerror",g),k(),t.removeListener("error",p),KD(t,"error")===0&&t.emit("error",g)}yM(t,"error",p);function b(){t.removeListener("finish",y),k()}t.once("close",b);function y(){he("onfinish"),t.removeListener("close",b),k()}t.once("finish",y);function k(){he("unpipe"),n.unpipe(t)}return t.emit("pipe",n),r.flowing||(he("pipe resume"),n.resume()),t};function vM(t){return function(){var e=t._readableState;he("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&KD(t,"data")&&(e.flowing=!0,Bd(t))}}we.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=nv(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};we.prototype.on=function(t,e){var n=Nd.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var r=this._readableState;!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Wu(this):Zi.nextTick(SM,this))}return n};we.prototype.addListener=we.prototype.on;function SM(t){he("readable nexttick read 0"),t.read(0)}we.prototype.resume=function(){var t=this._readableState;return t.flowing||(he("resume"),t.flowing=!0,EM(this,t)),this};function EM(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Zi.nextTick(kM,t,e))}function kM(t,e){e.reading||(he("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Bd(t),e.flowing&&!e.reading&&t.read(0)}we.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Bd(t){var e=t._readableState;for(he("flow",e.flowing);e.flowing&&t.read()!==null;);}we.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;t.on("end",function(){if(he("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(he("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var a=e.push(o);a||(r=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(o){return function(){return t[o].apply(t,arguments)}}(i));for(var s=0;s<Pd.length;s++)t.on(Pd[s],this.emit.bind(this,Pd[s]));return this._read=function(o){he("wrapped _read",o),r&&(r=!1,t.resume())},this};Object.defineProperty(we.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});we._fromList=tv;function tv(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.head.data:n=e.buffer.concat(e.length),e.buffer.clear()):n=TM(t,e.buffer,e.decoder),n}function TM(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?r=e.shift():r=n?AM(t,e):CM(t,e),r}function AM(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var s=n.data,o=t>s.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),t-=o,t===0){o===s.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=s.slice(o));break}++r}return e.length-=r,i}function CM(t,e){var n=Io.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function Md(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Zi.nextTick(FM,e,t))}function FM(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function nv(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}});var jd=x((Ure,ov)=>{"use strict";ov.exports=Tn;var $u=Gr(),sv=Object.create(Vi());sv.inherits=Yi();sv.inherits(Tn,$u);function RM(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,e!=null&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Tn(t){if(!(this instanceof Tn))return new Tn(t);$u.call(this,t),this._transformState={afterTransform:RM.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",OM)}function OM(){var t=this;typeof this._flush=="function"?this._flush(function(e,n){iv(t,e,n)}):iv(this,null,null)}Tn.prototype.push=function(t,e){return this._transformState.needTransform=!1,$u.prototype.push.call(this,t,e)};Tn.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")};Tn.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Tn.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Tn.prototype._destroy=function(t,e){var n=this;$u.prototype._destroy.call(this,t,function(r){e(r),n.emit("close")})};function iv(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var cv=x((zre,uv)=>{"use strict";uv.exports=Lo;var av=jd(),lv=Object.create(Vi());lv.inherits=Yi();lv.inherits(Lo,av);function Lo(t){if(!(this instanceof Lo))return new Lo(t);av.call(this,t)}Lo.prototype._transform=function(t,e,n){n(null,t)}});var fv=x((Ge,Hu)=>{"use strict";var rn=N("stream");process.env.READABLE_STREAM==="disable"&&rn?(Hu.exports=rn,Ge=Hu.exports=rn.Readable,Ge.Readable=rn.Readable,Ge.Writable=rn.Writable,Ge.Duplex=rn.Duplex,Ge.Transform=rn.Transform,Ge.PassThrough=rn.PassThrough,Ge.Stream=rn):(Ge=Hu.exports=Id(),Ge.Stream=rn||Ge,Ge.Readable=Ge,Ge.Writable=Fd(),Ge.Duplex=Gr(),Ge.Transform=jd(),Ge.PassThrough=cv())});var pv=x((Wre,hv)=>{"use strict";hv.exports=fv().PassThrough});var yv=x(($re,gv)=>{"use strict";var dv=N("util"),Yu=pv();gv.exports={Readable:Gu,Writable:Vu};dv.inherits(Gu,Yu);dv.inherits(Vu,Yu);function mv(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function Gu(t,e){if(!(this instanceof Gu))return new Gu(t,e);Yu.call(this,e),mv(this,"_read",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),n.pipe(this)}),this.emit("readable")}function Vu(t,e){if(!(this instanceof Vu))return new Vu(t,e);Yu.call(this,e),mv(this,"_write",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),this.pipe(n)}),this.emit("writable")}});var Ud=x((Hre,bv)=>{"use strict";bv.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var n=t.length;if(n<=1)return t;var r="";if(n>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),r+s.join("/")}});var zd=x((Gre,wv)=>{"use strict";function IM(t){return t}wv.exports=IM});var _v=x((Vre,xv)=>{"use strict";function LM(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}xv.exports=LM});var Sv=x((Yre,vv)=>{"use strict";var PM=_v(),Dv=Math.max;function qM(t,e,n){return e=Dv(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Dv(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),PM(t,this,a)}}vv.exports=qM});var kv=x((Kre,Ev)=>{"use strict";function MM(t){return function(){return t}}Ev.exports=MM});var Wd=x((Qre,Tv)=>{"use strict";var NM=typeof global=="object"&&global&&global.Object===Object&&global;Tv.exports=NM});var Ji=x((Zre,Av)=>{"use strict";var BM=Wd(),jM=typeof self=="object"&&self&&self.Object===Object&&self,UM=BM||jM||Function("return this")();Av.exports=UM});var Ku=x((Jre,Cv)=>{"use strict";var zM=Ji(),WM=zM.Symbol;Cv.exports=WM});var Iv=x((Xre,Ov)=>{"use strict";var Fv=Ku(),Rv=Object.prototype,$M=Rv.hasOwnProperty,HM=Rv.toString,Po=Fv?Fv.toStringTag:void 0;function GM(t){var e=$M.call(t,Po),n=t[Po];try{t[Po]=void 0;var r=!0}catch{}var i=HM.call(t);return r&&(e?t[Po]=n:delete t[Po]),i}Ov.exports=GM});var Pv=x((eie,Lv)=>{"use strict";var VM=Object.prototype,YM=VM.toString;function KM(t){return YM.call(t)}Lv.exports=KM});var qo=x((tie,Nv)=>{"use strict";var qv=Ku(),QM=Iv(),ZM=Pv(),JM="[object Null]",XM="[object Undefined]",Mv=qv?qv.toStringTag:void 0;function eN(t){return t==null?t===void 0?XM:JM:Mv&&Mv in Object(t)?QM(t):ZM(t)}Nv.exports=eN});var Mo=x((nie,Bv)=>{"use strict";function tN(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Bv.exports=tN});var $d=x((rie,jv)=>{"use strict";var nN=qo(),rN=Mo(),iN="[object AsyncFunction]",sN="[object Function]",oN="[object GeneratorFunction]",aN="[object Proxy]";function lN(t){if(!rN(t))return!1;var e=nN(t);return e==sN||e==oN||e==iN||e==aN}jv.exports=lN});var zv=x((iie,Uv)=>{"use strict";var uN=Ji(),cN=uN["__core-js_shared__"];Uv.exports=cN});var Hv=x((sie,$v)=>{"use strict";var Hd=zv(),Wv=function(){var t=/[^.]+$/.exec(Hd&&Hd.keys&&Hd.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function fN(t){return!!Wv&&Wv in t}$v.exports=fN});var Vv=x((oie,Gv)=>{"use strict";var hN=Function.prototype,pN=hN.toString;function dN(t){if(t!=null){try{return pN.call(t)}catch{}try{return t+""}catch{}}return""}Gv.exports=dN});var Kv=x((aie,Yv)=>{"use strict";var mN=$d(),gN=Hv(),yN=Mo(),bN=Vv(),wN=/[\\^$.*+?()[\]{}|]/g,xN=/^\[object .+?Constructor\]$/,_N=Function.prototype,DN=Object.prototype,vN=_N.toString,SN=DN.hasOwnProperty,EN=RegExp("^"+vN.call(SN).replace(wN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kN(t){if(!yN(t)||gN(t))return!1;var e=mN(t)?EN:xN;return e.test(bN(t))}Yv.exports=kN});var Zv=x((lie,Qv)=>{"use strict";function TN(t,e){return t?.[e]}Qv.exports=TN});var No=x((uie,Jv)=>{"use strict";var AN=Kv(),CN=Zv();function FN(t,e){var n=CN(t,e);return AN(n)?n:void 0}Jv.exports=FN});var e1=x((cie,Xv)=>{"use strict";var RN=No(),ON=function(){try{var t=RN(Object,"defineProperty");return t({},"",{}),t}catch{}}();Xv.exports=ON});var r1=x((fie,n1)=>{"use strict";var IN=kv(),t1=e1(),LN=zd(),PN=t1?function(t,e){return t1(t,"toString",{configurable:!0,enumerable:!1,value:IN(e),writable:!0})}:LN;n1.exports=PN});var s1=x((hie,i1)=>{"use strict";var qN=800,MN=16,NN=Date.now;function BN(t){var e=0,n=0;return function(){var r=NN(),i=MN-(r-n);if(n=r,i>0){if(++e>=qN)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}i1.exports=BN});var a1=x((pie,o1)=>{"use strict";var jN=r1(),UN=s1(),zN=UN(jN);o1.exports=zN});var Qu=x((die,l1)=>{"use strict";var WN=zd(),$N=Sv(),HN=a1();function GN(t,e){return HN($N(t,e,WN),t+"")}l1.exports=GN});var Zu=x((mie,u1)=>{"use strict";function VN(t,e){return t===e||t!==t&&e!==e}u1.exports=VN});var Gd=x((gie,c1)=>{"use strict";var YN=9007199254740991;function KN(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=YN}c1.exports=KN});var Ju=x((yie,f1)=>{"use strict";var QN=$d(),ZN=Gd();function JN(t){return t!=null&&ZN(t.length)&&!QN(t)}f1.exports=JN});var Vd=x((bie,h1)=>{"use strict";var XN=9007199254740991,eB=/^(?:0|[1-9]\d*)$/;function tB(t,e){var n=typeof t;return e=e??XN,!!e&&(n=="number"||n!="symbol"&&eB.test(t))&&t>-1&&t%1==0&&t<e}h1.exports=tB});var d1=x((wie,p1)=>{"use strict";var nB=Zu(),rB=Ju(),iB=Vd(),sB=Mo();function oB(t,e,n){if(!sB(n))return!1;var r=typeof e;return(r=="number"?rB(n)&&iB(e,n.length):r=="string"&&e in n)?nB(n[e],t):!1}p1.exports=oB});var g1=x((xie,m1)=>{"use strict";function aB(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}m1.exports=aB});var Xi=x((_ie,y1)=>{"use strict";function lB(t){return t!=null&&typeof t=="object"}y1.exports=lB});var w1=x((Die,b1)=>{"use strict";var uB=qo(),cB=Xi(),fB="[object Arguments]";function hB(t){return cB(t)&&uB(t)==fB}b1.exports=hB});var Yd=x((vie,D1)=>{"use strict";var x1=w1(),pB=Xi(),_1=Object.prototype,dB=_1.hasOwnProperty,mB=_1.propertyIsEnumerable,gB=x1(function(){return arguments}())?x1:function(t){return pB(t)&&dB.call(t,"callee")&&!mB.call(t,"callee")};D1.exports=gB});var Kd=x((Sie,v1)=>{"use strict";var yB=Array.isArray;v1.exports=yB});var E1=x((Eie,S1)=>{"use strict";function bB(){return!1}S1.exports=bB});var C1=x((Bo,es)=>{"use strict";var wB=Ji(),xB=E1(),A1=typeof Bo=="object"&&Bo&&!Bo.nodeType&&Bo,k1=A1&&typeof es=="object"&&es&&!es.nodeType&&es,_B=k1&&k1.exports===A1,T1=_B?wB.Buffer:void 0,DB=T1?T1.isBuffer:void 0,vB=DB||xB;es.exports=vB});var R1=x((kie,F1)=>{"use strict";var SB=qo(),EB=Gd(),kB=Xi(),TB="[object Arguments]",AB="[object Array]",CB="[object Boolean]",FB="[object Date]",RB="[object Error]",OB="[object Function]",IB="[object Map]",LB="[object Number]",PB="[object Object]",qB="[object RegExp]",MB="[object Set]",NB="[object String]",BB="[object WeakMap]",jB="[object ArrayBuffer]",UB="[object DataView]",zB="[object Float32Array]",WB="[object Float64Array]",$B="[object Int8Array]",HB="[object Int16Array]",GB="[object Int32Array]",VB="[object Uint8Array]",YB="[object Uint8ClampedArray]",KB="[object Uint16Array]",QB="[object Uint32Array]",xe={};xe[zB]=xe[WB]=xe[$B]=xe[HB]=xe[GB]=xe[VB]=xe[YB]=xe[KB]=xe[QB]=!0;xe[TB]=xe[AB]=xe[jB]=xe[CB]=xe[UB]=xe[FB]=xe[RB]=xe[OB]=xe[IB]=xe[LB]=xe[PB]=xe[qB]=xe[MB]=xe[NB]=xe[BB]=!1;function ZB(t){return kB(t)&&EB(t.length)&&!!xe[SB(t)]}F1.exports=ZB});var Qd=x((Tie,O1)=>{"use strict";function JB(t){return function(e){return t(e)}}O1.exports=JB});var L1=x((jo,ts)=>{"use strict";var XB=Wd(),I1=typeof jo=="object"&&jo&&!jo.nodeType&&jo,Uo=I1&&typeof ts=="object"&&ts&&!ts.nodeType&&ts,e5=Uo&&Uo.exports===I1,Zd=e5&&XB.process,t5=function(){try{var t=Uo&&Uo.require&&Uo.require("util").types;return t||Zd&&Zd.binding&&Zd.binding("util")}catch{}}();ts.exports=t5});var N1=x((Aie,M1)=>{"use strict";var n5=R1(),r5=Qd(),P1=L1(),q1=P1&&P1.isTypedArray,i5=q1?r5(q1):n5;M1.exports=i5});var j1=x((Cie,B1)=>{"use strict";var s5=g1(),o5=Yd(),a5=Kd(),l5=C1(),u5=Vd(),c5=N1(),f5=Object.prototype,h5=f5.hasOwnProperty;function p5(t,e){var n=a5(t),r=!n&&o5(t),i=!n&&!r&&l5(t),s=!n&&!r&&!i&&c5(t),o=n||r||i||s,a=o?s5(t.length,String):[],l=a.length;for(var u in t)(e||h5.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||u5(u,l)))&&a.push(u);return a}B1.exports=p5});var z1=x((Fie,U1)=>{"use strict";var d5=Object.prototype;function m5(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||d5;return t===n}U1.exports=m5});var $1=x((Rie,W1)=>{"use strict";function g5(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}W1.exports=g5});var G1=x((Oie,H1)=>{"use strict";var y5=Mo(),b5=z1(),w5=$1(),x5=Object.prototype,_5=x5.hasOwnProperty;function D5(t){if(!y5(t))return w5(t);var e=b5(t),n=[];for(var r in t)r=="constructor"&&(e||!_5.call(t,r))||n.push(r);return n}H1.exports=D5});var Y1=x((Iie,V1)=>{"use strict";var v5=j1(),S5=G1(),E5=Ju();function k5(t){return E5(t)?v5(t,!0):S5(t)}V1.exports=k5});var Z1=x((Lie,Q1)=>{"use strict";var T5=Qu(),A5=Zu(),C5=d1(),F5=Y1(),K1=Object.prototype,R5=K1.hasOwnProperty,O5=T5(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&C5(e[0],e[1],i)&&(r=1);++n<r;)for(var s=e[n],o=F5(s),a=-1,l=o.length;++a<l;){var u=o[a],c=t[u];(c===void 0||A5(c,K1[u])&&!R5.call(t,u))&&(t[u]=s[u])}return t});Q1.exports=O5});var Se=x((Pie,J1)=>{"use strict";var Jd=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let n="";for(let r=0;r<e.length;r++)n+=` ${e[r].stack}
|
|
43
|
+
`;super(n),this.name="AggregateError",this.errors=e}};J1.exports={AggregateError:Jd,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,n){return t.slice(e,n)},Error,FunctionPrototypeCall(t,e,...n){return t.call(e,...n)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,n){return Object.defineProperty(t,e,n)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,n){return t.then(e,n)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,n){return t.slice(e,n)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,n){return t.set(e,n)},Boolean,Uint8Array}});var Xd=x((qie,X1)=>{"use strict";X1.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[n,r]){let i=e.shift();return r==="f"?i.toFixed(6):r==="j"?JSON.stringify(i):r==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var nt=x((Mie,nS)=>{"use strict";var{format:I5,inspect:Xu}=Xd(),{AggregateError:L5}=Se(),P5=globalThis.AggregateError||L5,q5=Symbol("kIsNodeError"),M5=["string","function","number","object","Function","Object","boolean","bigint","symbol"],N5=/^([A-Z][a-z0-9]*)+$/,B5="__node_internal_",ec={};function Vr(t,e){if(!t)throw new ec.ERR_INTERNAL_ASSERTION(e)}function eS(t){let e="",n=t.length,r=t[0]==="-"?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function j5(t,e,n){if(typeof e=="function")return Vr(e.length<=n.length,`Code: ${t}; The provided arguments length (${n.length}) does not match the required ones (${e.length}).`),e(...n);let r=(e.match(/%[dfijoOs]/g)||[]).length;return Vr(r===n.length,`Code: ${t}; The provided arguments length (${n.length}) does not match the required ones (${r}).`),n.length===0?e:I5(e,...n)}function Ve(t,e,n){n||(n=Error);class r extends n{constructor(...s){super(j5(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=t,r.prototype[q5]=!0,ec[t]=r}function tS(t){let e=B5+t.name;return Object.defineProperty(t,"name",{value:e}),t}function U5(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let n=new P5([e,t],e.message);return n.code=e.code,n}return t||e}var em=class extends Error{constructor(e="The operation was aborted",n=void 0){if(n!==void 0&&typeof n!="object")throw new ec.ERR_INVALID_ARG_TYPE("options","Object",n);super(e,n),this.code="ABORT_ERR",this.name="AbortError"}};Ve("ERR_ASSERTION","%s",Error);Ve("ERR_INVALID_ARG_TYPE",(t,e,n)=>{Vr(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let r="The ";t.endsWith(" argument")?r+=`${t} `:r+=`"${t}" ${t.includes(".")?"property":"argument"} `,r+="must be ";let i=[],s=[],o=[];for(let l of e)Vr(typeof l=="string","All expected entries have to be of type string"),M5.includes(l)?i.push(l.toLowerCase()):N5.test(l)?s.push(l):(Vr(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();r+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(r+=" or ")}if(s.length>0){switch(s.length){case 1:r+=`an instance of ${s[0]}`;break;case 2:r+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();r+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(r+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(r+="an "),r+=`${o[0]}`;break;case 2:r+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();r+=`one of ${o.join(", ")}, or ${l}`}}if(n==null)r+=`. Received ${n}`;else if(typeof n=="function"&&n.name)r+=`. Received function ${n.name}`;else if(typeof n=="object"){var a;if((a=n.constructor)!==null&&a!==void 0&&a.name)r+=`. Received an instance of ${n.constructor.name}`;else{let l=Xu(n,{depth:-1});r+=`. Received ${l}`}}else{let l=Xu(n,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),r+=`. Received type ${typeof n} (${l})`}return r},TypeError);Ve("ERR_INVALID_ARG_VALUE",(t,e,n="is invalid")=>{let r=Xu(e);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${n}. Received ${r}`},TypeError);Ve("ERR_INVALID_RETURN_VALUE",(t,e,n)=>{var r;let i=n!=null&&(r=n.constructor)!==null&&r!==void 0&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);Ve("ERR_MISSING_ARGS",(...t)=>{Vr(t.length>0,"At least one arg needs to be specified");let e,n=t.length;switch(t=(Array.isArray(t)?t:[t]).map(r=>`"${r}"`).join(" or "),n){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}break}return`${e} must be specified`},TypeError);Ve("ERR_OUT_OF_RANGE",(t,e,n)=>{Vr(e,'Missing "range" argument');let r;if(Number.isInteger(n)&&Math.abs(n)>2**32)r=eS(String(n));else if(typeof n=="bigint"){r=String(n);let i=BigInt(2)**BigInt(32);(n>i||n<-i)&&(r=eS(r)),r+="n"}else r=Xu(n);return`The value of "${t}" is out of range. It must be ${e}. Received ${r}`},RangeError);Ve("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Ve("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Ve("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Ve("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Ve("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Ve("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ve("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Ve("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Ve("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Ve("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Ve("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);nS.exports={AbortError:em,aggregateTwoErrors:tS(U5),hideStackFrames:tS,codes:ec}});var hS=x(($o,Wo)=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});var lS=new WeakMap,tm=new WeakMap;function _e(t){let e=lS.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function rS(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function ns(t,e){lS.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let n=Object.keys(e);for(let r=0;r<n.length;++r){let i=n[r];i in this||Object.defineProperty(this,i,uS(i))}}ns.prototype={get type(){return _e(this).event.type},get target(){return _e(this).eventTarget},get currentTarget(){return _e(this).currentTarget},composedPath(){let t=_e(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return _e(this).eventPhase},stopPropagation(){let t=_e(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=_e(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!_e(this).event.bubbles},get cancelable(){return!!_e(this).event.cancelable},preventDefault(){rS(_e(this))},get defaultPrevented(){return _e(this).canceled},get composed(){return!!_e(this).event.composed},get timeStamp(){return _e(this).timeStamp},get srcElement(){return _e(this).eventTarget},get cancelBubble(){return _e(this).stopped},set cancelBubble(t){if(!t)return;let e=_e(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!_e(this).canceled},set returnValue(t){t||rS(_e(this))},initEvent(){}};Object.defineProperty(ns.prototype,"constructor",{value:ns,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(ns.prototype,window.Event.prototype),tm.set(window.Event.prototype,ns));function uS(t){return{get(){return _e(this).event[t]},set(e){_e(this).event[t]=e},configurable:!0,enumerable:!0}}function z5(t){return{value(){let e=_e(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function W5(t,e){let n=Object.keys(e);if(n.length===0)return t;function r(i,s){t.call(this,i,s)}r.prototype=Object.create(t.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let i=0;i<n.length;++i){let s=n[i];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(r.prototype,s,a?z5(s):uS(s))}}return r}function cS(t){if(t==null||t===Object.prototype)return ns;let e=tm.get(t);return e==null&&(e=W5(cS(Object.getPrototypeOf(t)),t),tm.set(t,e)),e}function $5(t,e){let n=cS(Object.getPrototypeOf(e));return new n(t,e)}function H5(t){return _e(t).immediateStopped}function G5(t,e){_e(t).eventPhase=e}function V5(t,e){_e(t).currentTarget=e}function iS(t,e){_e(t).passiveListener=e}var fS=new WeakMap,sS=1,oS=2,tc=3;function nc(t){return t!==null&&typeof t=="object"}function zo(t){let e=fS.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function Y5(t){return{get(){let n=zo(this).get(t);for(;n!=null;){if(n.listenerType===tc)return n.listener;n=n.next}return null},set(e){typeof e!="function"&&!nc(e)&&(e=null);let n=zo(this),r=null,i=n.get(t);for(;i!=null;)i.listenerType===tc?r!==null?r.next=i.next:i.next!==null?n.set(t,i.next):n.delete(t):r=i,i=i.next;if(e!==null){let s={listener:e,listenerType:tc,passive:!1,once:!1,next:null};r===null?n.set(t,s):r.next=s}},configurable:!0,enumerable:!0}}function nm(t,e){Object.defineProperty(t,`on${e}`,Y5(e))}function aS(t){function e(){Gt.call(this)}e.prototype=Object.create(Gt.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let n=0;n<t.length;++n)nm(e.prototype,t[n]);return e}function Gt(){if(this instanceof Gt){fS.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return aS(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return aS(t)}throw new TypeError("Cannot call a class as a function")}Gt.prototype={addEventListener(t,e,n){if(e==null)return;if(typeof e!="function"&&!nc(e))throw new TypeError("'listener' should be a function or an object.");let r=zo(this),i=nc(n),o=(i?!!n.capture:!!n)?sS:oS,a={listener:e,listenerType:o,passive:i&&!!n.passive,once:i&&!!n.once,next:null},l=r.get(t);if(l===void 0){r.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,n){if(e==null)return;let r=zo(this),s=(nc(n)?!!n.capture:!!n)?sS:oS,o=null,a=r.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?r.set(t,a.next):r.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=zo(this),n=t.type,r=e.get(n);if(r==null)return!0;let i=$5(this,t),s=null;for(;r!=null;){if(r.once?s!==null?s.next=r.next:r.next!==null?e.set(n,r.next):e.delete(n):s=r,iS(i,r.passive?r.listener:null),typeof r.listener=="function")try{r.listener.call(this,i)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else r.listenerType!==tc&&typeof r.listener.handleEvent=="function"&&r.listener.handleEvent(i);if(H5(i))break;r=r.next}return iS(i,null),G5(i,0),V5(i,null),!i.defaultPrevented}};Object.defineProperty(Gt.prototype,"constructor",{value:Gt,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(Gt.prototype,window.EventTarget.prototype);$o.defineEventAttribute=nm;$o.EventTarget=Gt;$o.default=Gt;Wo.exports=Gt;Wo.exports.EventTarget=Wo.exports.default=Gt;Wo.exports.defineEventAttribute=nm});var rs=x((Go,Ho)=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});var rm=hS(),tr=class extends rm.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=rc.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};rm.defineEventAttribute(tr.prototype,"abort");function K5(){let t=Object.create(tr.prototype);return rm.EventTarget.call(t),rc.set(t,!1),t}function Q5(t){rc.get(t)===!1&&(rc.set(t,!0),t.dispatchEvent({type:"abort"}))}var rc=new WeakMap;Object.defineProperties(tr.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(tr.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var nr=class{constructor(){dS.set(this,K5())}get signal(){return pS(this)}abort(){Q5(pS(this))}},dS=new WeakMap;function pS(t){let e=dS.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(nr.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(nr.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Go.AbortController=nr;Go.AbortSignal=tr;Go.default=nr;Ho.exports=nr;Ho.exports.AbortController=Ho.exports.default=nr;Ho.exports.AbortSignal=tr});var lt=x((Nie,sm)=>{"use strict";var Z5=N("buffer"),{format:J5,inspect:X5}=Xd(),{codes:{ERR_INVALID_ARG_TYPE:im}}=nt(),{kResistStopPropagation:e6,AggregateError:t6,SymbolDispose:n6}=Se(),r6=globalThis.AbortSignal||rs().AbortSignal,i6=globalThis.AbortController||rs().AbortController,s6=Object.getPrototypeOf(async function(){}).constructor,mS=globalThis.Blob||Z5.Blob,o6=typeof mS<"u"?function(e){return e instanceof mS}:function(e){return!1},gS=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new im(e,"AbortSignal",t)},a6=(t,e)=>{if(typeof t!="function")throw new im(e,"Function",t)};sm.exports={AggregateError:t6,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...n){e||(e=!0,t.apply(this,n))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}},promisify(t){return new Promise((e,n)=>{t((r,...i)=>r?n(r):e(...i))})},debuglog(){return function(){}},format:J5,inspect:X5,types:{isAsyncFunction(t){return t instanceof s6},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:o6,deprecate(t,e){return t},addAbortListener:N("events").addAbortListener||function(e,n){if(e===void 0)throw new im("signal","AbortSignal",e);gS(e,"signal"),a6(n,"listener");let r;return e.aborted?queueMicrotask(()=>n()):(e.addEventListener("abort",n,{__proto__:null,once:!0,[e6]:!0}),r=()=>{e.removeEventListener("abort",n)}),{__proto__:null,[n6](){var i;(i=r)===null||i===void 0||i()}}},AbortSignalAny:r6.any||function(e){if(e.length===1)return e[0];let n=new i6,r=()=>n.abort();return e.forEach(i=>{gS(i,"signals"),i.addEventListener("abort",r,{once:!0})}),n.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",r))},{once:!0}),n.signal}};sm.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ss=x((Bie,kS)=>{"use strict";var{ArrayIsArray:am,ArrayPrototypeIncludes:xS,ArrayPrototypeJoin:_S,ArrayPrototypeMap:l6,NumberIsInteger:lm,NumberIsNaN:u6,NumberMAX_SAFE_INTEGER:c6,NumberMIN_SAFE_INTEGER:f6,NumberParseInt:h6,ObjectPrototypeHasOwnProperty:p6,RegExpPrototypeExec:DS,String:d6,StringPrototypeToUpperCase:m6,StringPrototypeTrim:g6}=Se(),{hideStackFrames:It,codes:{ERR_SOCKET_BAD_PORT:y6,ERR_INVALID_ARG_TYPE:rt,ERR_INVALID_ARG_VALUE:is,ERR_OUT_OF_RANGE:Yr,ERR_UNKNOWN_SIGNAL:yS}}=nt(),{normalizeEncoding:b6}=lt(),{isAsyncFunction:w6,isArrayBufferView:x6}=lt().types,bS={};function _6(t){return t===(t|0)}function D6(t){return t===t>>>0}var v6=/^[0-7]+$/,S6="must be a 32-bit unsigned integer or an octal string";function E6(t,e,n){if(typeof t>"u"&&(t=n),typeof t=="string"){if(DS(v6,t)===null)throw new is(e,t,S6);t=h6(t,8)}return vS(t,e),t}var k6=It((t,e,n=f6,r=c6)=>{if(typeof t!="number")throw new rt(e,"number",t);if(!lm(t))throw new Yr(e,"an integer",t);if(t<n||t>r)throw new Yr(e,`>= ${n} && <= ${r}`,t)}),T6=It((t,e,n=-2147483648,r=2147483647)=>{if(typeof t!="number")throw new rt(e,"number",t);if(!lm(t))throw new Yr(e,"an integer",t);if(t<n||t>r)throw new Yr(e,`>= ${n} && <= ${r}`,t)}),vS=It((t,e,n=!1)=>{if(typeof t!="number")throw new rt(e,"number",t);if(!lm(t))throw new Yr(e,"an integer",t);let r=n?1:0,i=4294967295;if(t<r||t>i)throw new Yr(e,`>= ${r} && <= ${i}`,t)});function um(t,e){if(typeof t!="string")throw new rt(e,"string",t)}function A6(t,e,n=void 0,r){if(typeof t!="number")throw new rt(e,"number",t);if(n!=null&&t<n||r!=null&&t>r||(n!=null||r!=null)&&u6(t))throw new Yr(e,`${n!=null?`>= ${n}`:""}${n!=null&&r!=null?" && ":""}${r!=null?`<= ${r}`:""}`,t)}var C6=It((t,e,n)=>{if(!xS(n,t)){let i="must be one of: "+_S(l6(n,s=>typeof s=="string"?`'${s}'`:d6(s)),", ");throw new is(e,t,i)}});function SS(t,e){if(typeof t!="boolean")throw new rt(e,"boolean",t)}function om(t,e,n){return t==null||!p6(t,e)?n:t[e]}var F6=It((t,e,n=null)=>{let r=om(n,"allowArray",!1),i=om(n,"allowFunction",!1);if(!om(n,"nullable",!1)&&t===null||!r&&am(t)||typeof t!="object"&&(!i||typeof t!="function"))throw new rt(e,"Object",t)}),R6=It((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new rt(e,"a dictionary",t)}),ic=It((t,e,n=0)=>{if(!am(t))throw new rt(e,"Array",t);if(t.length<n){let r=`must be longer than ${n}`;throw new is(e,t,r)}});function O6(t,e){ic(t,e);for(let n=0;n<t.length;n++)um(t[n],`${e}[${n}]`)}function I6(t,e){ic(t,e);for(let n=0;n<t.length;n++)SS(t[n],`${e}[${n}]`)}function L6(t,e){ic(t,e);for(let n=0;n<t.length;n++){let r=t[n],i=`${e}[${n}]`;if(r==null)throw new rt(i,"AbortSignal",r);ES(r,i)}}function P6(t,e="signal"){if(um(t,e),bS[t]===void 0)throw bS[m6(t)]!==void 0?new yS(t+" (signals must use all capital letters)"):new yS(t)}var q6=It((t,e="buffer")=>{if(!x6(t))throw new rt(e,["Buffer","TypedArray","DataView"],t)});function M6(t,e){let n=b6(e),r=t.length;if(n==="hex"&&r%2!==0)throw new is("encoding",e,`is invalid for data of length ${r}`)}function N6(t,e="Port",n=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&g6(t).length===0||+t!==+t>>>0||t>65535||t===0&&!n)throw new y6(e,t,n);return t|0}var ES=It((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new rt(e,"AbortSignal",t)}),B6=It((t,e)=>{if(typeof t!="function")throw new rt(e,"Function",t)}),j6=It((t,e)=>{if(typeof t!="function"||w6(t))throw new rt(e,"Function",t)}),U6=It((t,e)=>{if(t!==void 0)throw new rt(e,"undefined",t)});function z6(t,e,n){if(!xS(n,t))throw new rt(e,`('${_S(n,"|")}')`,t)}var W6=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function wS(t,e){if(typeof t>"u"||!DS(W6,t))throw new is(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function $6(t){if(typeof t=="string")return wS(t,"hints"),t;if(am(t)){let e=t.length,n="";if(e===0)return n;for(let r=0;r<e;r++){let i=t[r];wS(i,"hints"),n+=i,r!==e-1&&(n+=", ")}return n}throw new is("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}kS.exports={isInt32:_6,isUint32:D6,parseFileMode:E6,validateArray:ic,validateStringArray:O6,validateBooleanArray:I6,validateAbortSignalArray:L6,validateBoolean:SS,validateBuffer:q6,validateDictionary:R6,validateEncoding:M6,validateFunction:B6,validateInt32:T6,validateInteger:k6,validateNumber:A6,validateObject:F6,validateOneOf:C6,validatePlainFunction:j6,validatePort:N6,validateSignalName:P6,validateString:um,validateUint32:vS,validateUndefined:U6,validateUnion:z6,validateAbortSignal:ES,validateLinkHeaderValue:$6}});var rr=x((jie,TS)=>{"use strict";TS.exports=global.process});var on=x((Uie,zS)=>{"use strict";var{SymbolAsyncIterator:AS,SymbolIterator:CS,SymbolFor:Kr}=Se(),FS=Kr("nodejs.stream.destroyed"),RS=Kr("nodejs.stream.errored"),cm=Kr("nodejs.stream.readable"),fm=Kr("nodejs.stream.writable"),OS=Kr("nodejs.stream.disturbed"),H6=Kr("nodejs.webstream.isClosedPromise"),G6=Kr("nodejs.webstream.controllerErrorFunction");function sc(t,e=!1){var n;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((n=t._readableState)===null||n===void 0?void 0:n.readable)!==!1)&&(!t._writableState||t._readableState))}function oc(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function V6(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function sn(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function IS(t){return!!(t&&!sn(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function LS(t){return!!(t&&!sn(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function PS(t){return!!(t&&!sn(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function Y6(t){return IS(t)||LS(t)||PS(t)}function K6(t,e){return t==null?!1:e===!0?typeof t[AS]=="function":e===!1?typeof t[CS]=="function":typeof t[AS]=="function"||typeof t[CS]=="function"}function ac(t){if(!sn(t))return null;let e=t._writableState,n=t._readableState,r=e||n;return!!(t.destroyed||t[FS]||r!=null&&r.destroyed)}function qS(t){if(!oc(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function Q6(t,e){if(!oc(t))return null;if(t.writableFinished===!0)return!0;let n=t._writableState;return n!=null&&n.errored?!1:typeof n?.finished!="boolean"?null:!!(n.finished||e===!1&&n.ended===!0&&n.length===0)}function Z6(t){if(!sc(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function MS(t,e){if(!sc(t))return null;let n=t._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted!="boolean"?null:!!(n.endEmitted||e===!1&&n.ended===!0&&n.length===0)}function NS(t){return t&&t[cm]!=null?t[cm]:typeof t?.readable!="boolean"?null:ac(t)?!1:sc(t)&&t.readable&&!MS(t)}function BS(t){return t&&t[fm]!=null?t[fm]:typeof t?.writable!="boolean"?null:ac(t)?!1:oc(t)&&t.writable&&!qS(t)}function J6(t,e){return sn(t)?ac(t)?!0:!(e?.readable!==!1&&NS(t)||e?.writable!==!1&&BS(t)):null}function X6(t){var e,n;return sn(t)?t.writableErrored?t.writableErrored:(e=(n=t._writableState)===null||n===void 0?void 0:n.errored)!==null&&e!==void 0?e:null:null}function e4(t){var e,n;return sn(t)?t.readableErrored?t.readableErrored:(e=(n=t._readableState)===null||n===void 0?void 0:n.errored)!==null&&e!==void 0?e:null:null}function t4(t){if(!sn(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,n=t._readableState;return typeof e?.closed=="boolean"||typeof n?.closed=="boolean"?e?.closed||n?.closed:typeof t._closed=="boolean"&&jS(t)?t._closed:null}function jS(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function US(t){return typeof t._sent100=="boolean"&&jS(t)}function n4(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function r4(t){if(!sn(t))return null;let e=t._writableState,n=t._readableState,r=e||n;return!r&&US(t)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function i4(t){var e;return!!(t&&((e=t[OS])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function s4(t){var e,n,r,i,s,o,a,l,u,c;return!!(t&&((e=(n=(r=(i=(s=(o=t[RS])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&i!==void 0?i:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&r!==void 0?r:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&n!==void 0?n:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((c=t._writableState)===null||c===void 0)&&c.errored))}zS.exports={isDestroyed:ac,kIsDestroyed:FS,isDisturbed:i4,kIsDisturbed:OS,isErrored:s4,kIsErrored:RS,isReadable:NS,kIsReadable:cm,kIsClosedPromise:H6,kControllerErrorFunction:G6,kIsWritable:fm,isClosed:t4,isDuplexNodeStream:V6,isFinished:J6,isIterable:K6,isReadableNodeStream:sc,isReadableStream:IS,isReadableEnded:Z6,isReadableFinished:MS,isReadableErrored:e4,isNodeStream:sn,isWebStream:Y6,isWritable:BS,isWritableNodeStream:oc,isWritableStream:LS,isWritableEnded:qS,isWritableFinished:Q6,isWritableErrored:X6,isServerRequest:n4,isServerResponse:US,willEmitClose:r4,isTransformStream:PS}});var An=x((zie,gm)=>{"use strict";var ir=rr(),{AbortError:ZS,codes:o4}=nt(),{ERR_INVALID_ARG_TYPE:a4,ERR_STREAM_PREMATURE_CLOSE:WS}=o4,{kEmptyObject:pm,once:dm}=lt(),{validateAbortSignal:l4,validateFunction:u4,validateObject:c4,validateBoolean:f4}=ss(),{Promise:h4,PromisePrototypeThen:p4,SymbolDispose:JS}=Se(),{isClosed:d4,isReadable:$S,isReadableNodeStream:hm,isReadableStream:m4,isReadableFinished:HS,isReadableErrored:GS,isWritable:VS,isWritableNodeStream:YS,isWritableStream:g4,isWritableFinished:KS,isWritableErrored:QS,isNodeStream:y4,willEmitClose:b4,kIsClosedPromise:w4}=on(),os;function x4(t){return t.setHeader&&typeof t.abort=="function"}var mm=()=>{};function XS(t,e,n){var r,i;if(arguments.length===2?(n=e,e=pm):e==null?e=pm:c4(e,"options"),u4(n,"callback"),l4(e.signal,"options.signal"),n=dm(n),m4(t)||g4(t))return _4(t,e,n);if(!y4(t))throw new a4("stream",["ReadableStream","WritableStream","Stream"],t);let s=(r=e.readable)!==null&&r!==void 0?r:hm(t),o=(i=e.writable)!==null&&i!==void 0?i:YS(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},c=b4(t)&&hm(t)===s&&YS(t)===o,f=KS(t,!1),h=()=>{f=!0,t.destroyed&&(c=!1),!(c&&(!t.readable||s))&&(!s||p)&&n.call(t)},p=HS(t,!1),b=()=>{p=!0,t.destroyed&&(c=!1),!(c&&(!t.writable||o))&&(!o||f)&&n.call(t)},y=T=>{n.call(t,T)},k=d4(t),g=()=>{k=!0;let T=QS(t)||GS(t);if(T&&typeof T!="boolean")return n.call(t,T);if(s&&!p&&hm(t,!0)&&!HS(t,!1))return n.call(t,new WS);if(o&&!f&&!KS(t,!1))return n.call(t,new WS);n.call(t)},m=()=>{k=!0;let T=QS(t)||GS(t);if(T&&typeof T!="boolean")return n.call(t,T);n.call(t)},d=()=>{t.req.on("finish",h)};x4(t)?(t.on("complete",h),c||t.on("abort",g),t.req?d():t.on("request",d)):o&&!a&&(t.on("end",u),t.on("close",u)),!c&&typeof t.aborted=="boolean"&&t.on("aborted",g),t.on("end",b),t.on("finish",h),e.error!==!1&&t.on("error",y),t.on("close",g),k?ir.nextTick(g):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?c||ir.nextTick(m):(!s&&(!c||$S(t))&&(f||VS(t)===!1)||!o&&(!c||VS(t))&&(p||$S(t)===!1)||l&&t.req&&t.aborted)&&ir.nextTick(m);let w=()=>{n=mm,t.removeListener("aborted",g),t.removeListener("complete",h),t.removeListener("abort",g),t.removeListener("request",d),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",b),t.removeListener("error",y),t.removeListener("close",g)};if(e.signal&&!k){let T=()=>{let D=n;w(),D.call(t,new ZS(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)ir.nextTick(T);else{os=os||lt().addAbortListener;let D=os(e.signal,T),S=n;n=dm((...M)=>{D[JS](),S.apply(t,M)})}}return w}function _4(t,e,n){let r=!1,i=mm;if(e.signal)if(i=()=>{r=!0,n.call(t,new ZS(void 0,{cause:e.signal.reason}))},e.signal.aborted)ir.nextTick(i);else{os=os||lt().addAbortListener;let o=os(e.signal,i),a=n;n=dm((...l)=>{o[JS](),a.apply(t,l)})}let s=(...o)=>{r||ir.nextTick(()=>n.apply(t,o))};return p4(t[w4].promise,s,s),mm}function D4(t,e){var n;let r=!1;return e===null&&(e=pm),(n=e)!==null&&n!==void 0&&n.cleanup&&(f4(e.cleanup,"cleanup"),r=e.cleanup),new h4((i,s)=>{let o=XS(t,e,a=>{r&&o(),a?s(a):i()})})}gm.exports=XS;gm.exports.finished=D4});var Qr=x((Wie,aE)=>{"use strict";var an=rr(),{aggregateTwoErrors:v4,codes:{ERR_MULTIPLE_CALLBACK:S4},AbortError:E4}=nt(),{Symbol:nE}=Se(),{kIsDestroyed:k4,isDestroyed:T4,isFinished:A4,isServerRequest:C4}=on(),rE=nE("kDestroy"),ym=nE("kConstruct");function iE(t,e,n){t&&(t.stack,e&&!e.errored&&(e.errored=t),n&&!n.errored&&(n.errored=t))}function F4(t,e){let n=this._readableState,r=this._writableState,i=r||n;return r!=null&&r.destroyed||n!=null&&n.destroyed?(typeof e=="function"&&e(),this):(iE(t,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?eE(this,t,e):this.once(rE,function(s){eE(this,v4(s,t),e)}),this)}function eE(t,e,n){let r=!1;function i(s){if(r)return;r=!0;let o=t._readableState,a=t._writableState;iE(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof n=="function"&&n(s),s?an.nextTick(R4,t,s):an.nextTick(sE,t)}try{t._destroy(e||null,i)}catch(s){i(s)}}function R4(t,e){bm(t,e),sE(t)}function sE(t){let e=t._readableState,n=t._writableState;n&&(n.closeEmitted=!0),e&&(e.closeEmitted=!0),(n!=null&&n.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function bm(t,e){let n=t._readableState,r=t._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),t.emit("error",e))}function O4(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function wm(t,e,n){let r=t._readableState,i=t._writableState;if(i!=null&&i.destroyed||r!=null&&r.destroyed)return this;r!=null&&r.autoDestroy||i!=null&&i.autoDestroy?t.destroy(e):e&&(e.stack,i&&!i.errored&&(i.errored=e),r&&!r.errored&&(r.errored=e),n?an.nextTick(bm,t,e):bm(t,e))}function I4(t,e){if(typeof t._construct!="function")return;let n=t._readableState,r=t._writableState;n&&(n.constructed=!1),r&&(r.constructed=!1),t.once(ym,e),!(t.listenerCount(ym)>1)&&an.nextTick(L4,t)}function L4(t){let e=!1;function n(r){if(e){wm(t,r??new S4);return}e=!0;let i=t._readableState,s=t._writableState,o=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(rE,r):r?wm(t,r,!0):an.nextTick(P4,t)}try{t._construct(r=>{an.nextTick(n,r)})}catch(r){an.nextTick(n,r)}}function P4(t){t.emit(ym)}function tE(t){return t?.setHeader&&typeof t.abort=="function"}function oE(t){t.emit("close")}function q4(t,e){t.emit("error",e),an.nextTick(oE,t)}function M4(t,e){!t||T4(t)||(!e&&!A4(t)&&(e=new E4),C4(t)?(t.socket=null,t.destroy(e)):tE(t)?t.abort():tE(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?an.nextTick(q4,t,e):an.nextTick(oE,t),t.destroyed||(t[k4]=!0))}aE.exports={construct:I4,destroyer:M4,destroy:F4,undestroy:O4,errorOrDestroy:wm}});var cc=x(($ie,uE)=>{"use strict";var{ArrayIsArray:N4,ObjectSetPrototypeOf:lE}=Se(),{EventEmitter:lc}=N("events");function uc(t){lc.call(this,t)}lE(uc.prototype,lc.prototype);lE(uc,lc);uc.prototype.pipe=function(t,e){let n=this;function r(c){t.writable&&t.write(c)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(n.on("end",o),n.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(c){u(),lc.listenerCount(this,"error")===0&&this.emit("error",c)}xm(n,"error",l),xm(t,"error",l);function u(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",o),n.removeListener("close",a),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t};function xm(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):N4(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}uE.exports={Stream:uc,prependListener:xm}});var Vo=x((Hie,fc)=>{"use strict";var{SymbolDispose:B4}=Se(),{AbortError:cE,codes:j4}=nt(),{isNodeStream:fE,isWebStream:U4,kControllerErrorFunction:z4}=on(),W4=An(),{ERR_INVALID_ARG_TYPE:hE}=j4,_m,$4=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new hE(e,"AbortSignal",t)};fc.exports.addAbortSignal=function(e,n){if($4(e,"signal"),!fE(n)&&!U4(n))throw new hE("stream",["ReadableStream","WritableStream","Stream"],n);return fc.exports.addAbortSignalNoValidate(e,n)};fc.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let n=fE(e)?()=>{e.destroy(new cE(void 0,{cause:t.reason}))}:()=>{e[z4](new cE(void 0,{cause:t.reason}))};if(t.aborted)n();else{_m=_m||lt().addAbortListener;let r=_m(t,n);W4(e,r[B4])}return e}});var mE=x((Vie,dE)=>{"use strict";var{StringPrototypeSlice:pE,SymbolIterator:H4,TypedArrayPrototypeSet:hc,Uint8Array:G4}=Se(),{Buffer:Dm}=N("buffer"),{inspect:V4}=lt();dE.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let n={data:e,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}unshift(e){let n={data:e,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let n=this.head,r=""+n.data;for(;(n=n.next)!==null;)r+=e+n.data;return r}concat(e){if(this.length===0)return Dm.alloc(0);let n=Dm.allocUnsafe(e>>>0),r=this.head,i=0;for(;r;)hc(n,r.data,i),i+=r.data.length,r=r.next;return n}consume(e,n){let r=this.head.data;if(e<r.length){let i=r.slice(0,e);return this.head.data=r.slice(e),i}return e===r.length?this.shift():n?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[H4](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let n="",r=this.head,i=0;do{let s=r.data;if(e>s.length)n+=s,e-=s.length;else{e===s.length?(n+=s,++i,r.next?this.head=r.next:this.head=this.tail=null):(n+=pE(s,0,e),this.head=r,r.data=pE(s,e));break}++i}while((r=r.next)!==null);return this.length-=i,n}_getBuffer(e){let n=Dm.allocUnsafe(e),r=e,i=this.head,s=0;do{let o=i.data;if(e>o.length)hc(n,o,r-e),e-=o.length;else{e===o.length?(hc(n,o,r-e),++s,i.next?this.head=i.next:this.head=this.tail=null):(hc(n,new G4(o.buffer,o.byteOffset,e),r-e),this.head=i,i.data=o.slice(e));break}++s}while((i=i.next)!==null);return this.length-=s,n}[Symbol.for("nodejs.util.inspect.custom")](e,n){return V4(this,{...n,depth:0,customInspect:!1})}}});var Yo=x((Yie,wE)=>{"use strict";var{MathFloor:Y4,NumberIsInteger:K4}=Se(),{validateInteger:Q4}=ss(),{ERR_INVALID_ARG_VALUE:Z4}=nt().codes,gE=16*1024,yE=16;function J4(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function bE(t){return t?yE:gE}function X4(t,e){Q4(e,"value",0),t?yE=e:gE=e}function e8(t,e,n,r){let i=J4(e,r,n);if(i!=null){if(!K4(i)||i<0){let s=r?`options.${n}`:"options.highWaterMark";throw new Z4(s,i)}return Y4(i)}return bE(t.objectMode)}wE.exports={getHighWaterMark:e8,getDefaultHighWaterMark:bE,setDefaultHighWaterMark:X4}});var vm=x((Kie,vE)=>{"use strict";var xE=rr(),{PromisePrototypeThen:t8,SymbolAsyncIterator:_E,SymbolIterator:DE}=Se(),{Buffer:n8}=N("buffer"),{ERR_INVALID_ARG_TYPE:r8,ERR_STREAM_NULL_VALUES:i8}=nt().codes;function s8(t,e,n){let r;if(typeof e=="string"||e instanceof n8)return new t({objectMode:!0,...n,read(){this.push(e),this.push(null)}});let i;if(e&&e[_E])i=!0,r=e[_E]();else if(e&&e[DE])i=!1,r=e[DE]();else throw new r8("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...n}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,c){t8(a(u),()=>xE.nextTick(c,u),f=>xE.nextTick(c,f||u))};async function a(u){let c=u!=null,f=typeof r.throw=="function";if(c&&f){let{value:h,done:p}=await r.throw(u);if(await h,p)return}if(typeof r.return=="function"){let{value:h}=await r.return();await h}}async function l(){for(;;){try{let{value:u,done:c}=i?await r.next():r.next();if(c)s.push(null);else{let f=u&&typeof u.then=="function"?await u:u;if(f===null)throw o=!1,new i8;if(s.push(f))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}vE.exports=s8});var Qo=x((Qie,UE)=>{"use strict";var Vt=rr(),{ArrayPrototypeIndexOf:o8,NumberIsInteger:a8,NumberIsNaN:l8,NumberParseInt:u8,ObjectDefineProperties:Rm,ObjectKeys:c8,ObjectSetPrototypeOf:kE,Promise:TE,SafeSet:f8,SymbolAsyncDispose:h8,SymbolAsyncIterator:p8,Symbol:d8}=Se();UE.exports=J;J.ReadableState=gc;var{EventEmitter:m8}=N("events"),{Stream:sr,prependListener:g8}=cc(),{Buffer:Sm}=N("buffer"),{addAbortSignal:y8}=Vo(),AE=An(),re=lt().debuglog("stream",t=>{re=t}),b8=mE(),us=Qr(),{getHighWaterMark:w8,getDefaultHighWaterMark:x8}=Yo(),{aggregateTwoErrors:SE,codes:{ERR_INVALID_ARG_TYPE:_8,ERR_METHOD_NOT_IMPLEMENTED:D8,ERR_OUT_OF_RANGE:v8,ERR_STREAM_PUSH_AFTER_EOF:S8,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:E8},AbortError:k8}=nt(),{validateObject:T8}=ss(),Zr=d8("kPaused"),{StringDecoder:CE}=N("string_decoder"),A8=vm();kE(J.prototype,sr.prototype);kE(J,sr);var Em=()=>{},{errorOrDestroy:as}=us,ls=1,C8=2,FE=4,Ko=8,RE=16,pc=32,dc=64,OE=128,F8=256,R8=512,O8=1024,Cm=2048,Fm=4096,I8=8192,L8=16384,P8=32768,IE=65536,q8=1<<17,M8=1<<18;function Le(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}Rm(gc.prototype,{objectMode:Le(ls),ended:Le(C8),endEmitted:Le(FE),reading:Le(Ko),constructed:Le(RE),sync:Le(pc),needReadable:Le(dc),emittedReadable:Le(OE),readableListening:Le(F8),resumeScheduled:Le(R8),errorEmitted:Le(O8),emitClose:Le(Cm),autoDestroy:Le(Fm),destroyed:Le(I8),closed:Le(L8),closeEmitted:Le(P8),multiAwaitDrain:Le(IE),readingMore:Le(q8),dataEmitted:Le(M8)});function gc(t,e,n){typeof n!="boolean"&&(n=e instanceof ln()),this.state=Cm|Fm|RE|pc,t&&t.objectMode&&(this.state|=ls),n&&t&&t.readableObjectMode&&(this.state|=ls),this.highWaterMark=t?w8(this,t,"readableHighWaterMark",n):x8(!1),this.buffer=new b8,this.length=0,this.pipes=[],this.flowing=null,this[Zr]=null,t&&t.emitClose===!1&&(this.state&=~Cm),t&&t.autoDestroy===!1&&(this.state&=~Fm),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new CE(t.encoding),this.encoding=t.encoding)}function J(t){if(!(this instanceof J))return new J(t);let e=this instanceof ln();this._readableState=new gc(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&y8(t.signal,this)),sr.call(this,t),us.construct(this,()=>{this._readableState.needReadable&&mc(this,this._readableState)})}J.prototype.destroy=us.destroy;J.prototype._undestroy=us.undestroy;J.prototype._destroy=function(t,e){e(t)};J.prototype[m8.captureRejectionSymbol]=function(t){this.destroy(t)};J.prototype[h8]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new k8,this.destroy(t)),new TE((e,n)=>AE(this,r=>r&&r!==t?n(r):e(null)))};J.prototype.push=function(t,e){return LE(this,t,e,!1)};J.prototype.unshift=function(t,e){return LE(this,t,e,!0)};function LE(t,e,n,r){re("readableAddChunk",e);let i=t._readableState,s;if((i.state&ls)===0&&(typeof e=="string"?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?e=Sm.from(e,n).toString(i.encoding):(e=Sm.from(e,n),n=""))):e instanceof Sm?n="":sr._isUint8Array(e)?(e=sr._uint8ArrayToBuffer(e),n=""):e!=null&&(s=new _8("chunk",["string","Buffer","Uint8Array"],e))),s)as(t,s);else if(e===null)i.state&=~Ko,j8(t,i);else if((i.state&ls)!==0||e&&e.length>0)if(r)if((i.state&FE)!==0)as(t,new E8);else{if(i.destroyed||i.errored)return!1;km(t,i,e,!0)}else if(i.ended)as(t,new S8);else{if(i.destroyed||i.errored)return!1;i.state&=~Ko,i.decoder&&!n?(e=i.decoder.write(e),i.objectMode||e.length!==0?km(t,i,e,!1):mc(t,i)):km(t,i,e,!1)}else r||(i.state&=~Ko,mc(t,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function km(t,e,n,r){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&IE)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),(e.state&dc)!==0&&yc(t)),mc(t,e)}J.prototype.isPaused=function(){let t=this._readableState;return t[Zr]===!0||t.flowing===!1};J.prototype.setEncoding=function(t){let e=new CE(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r="";for(let i of n)r+=e.write(i);return n.clear(),r!==""&&n.push(r),this._readableState.length=r.length,this};var N8=1073741824;function B8(t){if(t>N8)throw new v8("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function EE(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&ls)!==0?1:l8(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}J.prototype.read=function(t){re("read",t),t===void 0?t=NaN:a8(t)||(t=u8(t,10));let e=this._readableState,n=t;if(t>e.highWaterMark&&(e.highWaterMark=B8(t)),t!==0&&(e.state&=~OE),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return re("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Tm(this):yc(this),null;if(t=EE(t,e),t===0&&e.ended)return e.length===0&&Tm(this),null;let r=(e.state&dc)!==0;if(re("need readable",r),(e.length===0||e.length-t<e.highWaterMark)&&(r=!0,re("length less than watermark",r)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)r=!1,re("reading, ended or constructing",r);else if(r){re("do read"),e.state|=Ko|pc,e.length===0&&(e.state|=dc);try{this._read(e.highWaterMark)}catch(s){as(this,s)}e.state&=~pc,e.reading||(t=EE(n,e))}let i;return t>0?i=BE(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Tm(this)),i!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",i)),i};function j8(t,e){if(re("onEofChunk"),!e.ended){if(e.decoder){let n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?yc(t):(e.needReadable=!1,e.emittedReadable=!0,PE(t))}}function yc(t){let e=t._readableState;re("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(re("emitReadable",e.flowing),e.emittedReadable=!0,Vt.nextTick(PE,t))}function PE(t){let e=t._readableState;re("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,ME(t)}function mc(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Vt.nextTick(U8,t,e))}function U8(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let n=e.length;if(re("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}J.prototype._read=function(t){throw new D8("_read()")};J.prototype.pipe=function(t,e){let n=this,r=this._readableState;r.pipes.length===1&&(r.multiAwaitDrain||(r.multiAwaitDrain=!0,r.awaitDrainWriters=new f8(r.awaitDrainWriters?[r.awaitDrainWriters]:[]))),r.pipes.push(t),re("pipe count=%d opts=%j",r.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Vt.stdout&&t!==Vt.stderr?a:k;r.endEmitted?Vt.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(g,m){re("onunpipe"),g===n&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){re("onend"),t.end()}let l,u=!1;function c(){re("cleanup"),t.removeListener("close",b),t.removeListener("finish",y),l&&t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",k),n.removeListener("data",h),u=!0,l&&r.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function f(){u||(r.pipes.length===1&&r.pipes[0]===t?(re("false write response, pause",0),r.awaitDrainWriters=t,r.multiAwaitDrain=!1):r.pipes.length>1&&r.pipes.includes(t)&&(re("false write response, pause",r.awaitDrainWriters.size),r.awaitDrainWriters.add(t)),n.pause()),l||(l=z8(n,t),t.on("drain",l))}n.on("data",h);function h(g){re("ondata");let m=t.write(g);re("dest.write",m),m===!1&&f()}function p(g){if(re("onerror",g),k(),t.removeListener("error",p),t.listenerCount("error")===0){let m=t._writableState||t._readableState;m&&!m.errorEmitted?as(t,g):t.emit("error",g)}}g8(t,"error",p);function b(){t.removeListener("finish",y),k()}t.once("close",b);function y(){re("onfinish"),t.removeListener("close",b),k()}t.once("finish",y);function k(){re("unpipe"),n.unpipe(t)}return t.emit("pipe",n),t.writableNeedDrain===!0?f():r.flowing||(re("pipe resume"),n.resume()),t};function z8(t,e){return function(){let r=t._readableState;r.awaitDrainWriters===e?(re("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(re("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),(!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}J.prototype.unpipe=function(t){let e=this._readableState,n={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let i=e.pipes;e.pipes=[],this.pause();for(let s=0;s<i.length;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}let r=o8(e.pipes,t);return r===-1?this:(e.pipes.splice(r,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,n),this)};J.prototype.on=function(t,e){let n=sr.prototype.on.call(this,t,e),r=this._readableState;return t==="data"?(r.readableListening=this.listenerCount("readable")>0,r.flowing!==!1&&this.resume()):t==="readable"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,re("on readable",r.length,r.reading),r.length?yc(this):r.reading||Vt.nextTick(W8,this)),n};J.prototype.addListener=J.prototype.on;J.prototype.removeListener=function(t,e){let n=sr.prototype.removeListener.call(this,t,e);return t==="readable"&&Vt.nextTick(qE,this),n};J.prototype.off=J.prototype.removeListener;J.prototype.removeAllListeners=function(t){let e=sr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Vt.nextTick(qE,this),e};function qE(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Zr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function W8(t){re("readable nexttick read 0"),t.read(0)}J.prototype.resume=function(){let t=this._readableState;return t.flowing||(re("resume"),t.flowing=!t.readableListening,$8(this,t)),t[Zr]=!1,this};function $8(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Vt.nextTick(H8,t,e))}function H8(t,e){re("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),ME(t),e.flowing&&!e.reading&&t.read(0)}J.prototype.pause=function(){return re("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(re("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Zr]=!0,this};function ME(t){let e=t._readableState;for(re("flow",e.flowing);e.flowing&&t.read()!==null;);}J.prototype.wrap=function(t){let e=!1;t.on("data",r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",r=>{as(this,r)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let n=c8(t);for(let r=1;r<n.length;r++){let i=n[r];this[i]===void 0&&typeof t[i]=="function"&&(this[i]=t[i].bind(t))}return this};J.prototype[p8]=function(){return NE(this)};J.prototype.iterator=function(t){return t!==void 0&&T8(t,"options"),NE(this,t)};function NE(t,e){typeof t.read!="function"&&(t=J.wrap(t,{objectMode:!0}));let n=G8(t,e);return n.stream=t,n}async function*G8(t,e){let n=Em;function r(o){this===t?(n(),n=Em):n=o}t.on("readable",r);let i,s=AE(t,{writable:!1},o=>{i=o?SE(i,o):null,n(),n=Em});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(i)throw i;if(i===null)return;await new TE(r)}}}catch(o){throw i=SE(i,o),i}finally{(i||e?.destroyOnReturn!==!1)&&(i===void 0||t._readableState.autoDestroy)?us.destroyer(t,null):(t.off("readable",r),s())}}Rm(J.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Rm(gc.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Zr]!==!1},set(t){this[Zr]=!!t}}});J._fromList=BE;function BE(t,e){if(e.length===0)return null;let n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function Tm(t){let e=t._readableState;re("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Vt.nextTick(V8,e,t))}function V8(t,e){if(re("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Vt.nextTick(Y8,e);else if(t.autoDestroy){let n=e._writableState;(!n||n.autoDestroy&&(n.finished||n.writable===!1))&&e.destroy()}}}function Y8(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}J.from=function(t,e){return A8(J,t,e)};var Am;function jE(){return Am===void 0&&(Am={}),Am}J.fromWeb=function(t,e){return jE().newStreamReadableFromReadableStream(t,e)};J.toWeb=function(t,e){return jE().newReadableStreamFromStreamReadable(t,e)};J.wrap=function(t,e){var n,r;return new J({objectMode:(n=(r=t.readableObjectMode)!==null&&r!==void 0?r:t.objectMode)!==null&&n!==void 0?n:!0,...e,destroy(i,s){us.destroyer(t,i),s(i)}}).wrap(t)}});var Dc=x((Zie,XE)=>{"use strict";var Jr=rr(),{ArrayPrototypeSlice:$E,Error:K8,FunctionPrototypeSymbolHasInstance:HE,ObjectDefineProperty:GE,ObjectDefineProperties:Q8,ObjectSetPrototypeOf:VE,StringPrototypeToLowerCase:Z8,Symbol:J8,SymbolHasInstance:X8}=Se();XE.exports=ke;ke.WritableState=Xo;var{EventEmitter:ej}=N("events"),Zo=cc().Stream,{Buffer:bc}=N("buffer"),_c=Qr(),{addAbortSignal:tj}=Vo(),{getHighWaterMark:nj,getDefaultHighWaterMark:rj}=Yo(),{ERR_INVALID_ARG_TYPE:ij,ERR_METHOD_NOT_IMPLEMENTED:sj,ERR_MULTIPLE_CALLBACK:YE,ERR_STREAM_CANNOT_PIPE:oj,ERR_STREAM_DESTROYED:Jo,ERR_STREAM_ALREADY_FINISHED:aj,ERR_STREAM_NULL_VALUES:lj,ERR_STREAM_WRITE_AFTER_END:uj,ERR_UNKNOWN_ENCODING:KE}=nt().codes,{errorOrDestroy:cs}=_c;VE(ke.prototype,Zo.prototype);VE(ke,Zo);function Lm(){}var fs=J8("kOnFinished");function Xo(t,e,n){typeof n!="boolean"&&(n=e instanceof ln()),this.objectMode=!!(t&&t.objectMode),n&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?nj(this,t,"writableHighWaterMark",n):rj(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(t&&t.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=fj.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,xc(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[fs]=[]}function xc(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Xo.prototype.getBuffer=function(){return $E(this.buffered,this.bufferedIndex)};GE(Xo.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ke(t){let e=this instanceof ln();if(!e&&!HE(ke,this))return new ke(t);this._writableState=new Xo(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&tj(t.signal,this)),Zo.call(this,t),_c.construct(this,()=>{let n=this._writableState;n.writing||qm(this,n),Mm(this,n)})}GE(ke,X8,{__proto__:null,value:function(t){return HE(this,t)?!0:this!==ke?!1:t&&t._writableState instanceof Xo}});ke.prototype.pipe=function(){cs(this,new oj)};function QE(t,e,n,r){let i=t._writableState;if(typeof n=="function")r=n,n=i.defaultEncoding;else{if(!n)n=i.defaultEncoding;else if(n!=="buffer"&&!bc.isEncoding(n))throw new KE(n);typeof r!="function"&&(r=Lm)}if(e===null)throw new lj;if(!i.objectMode)if(typeof e=="string")i.decodeStrings!==!1&&(e=bc.from(e,n),n="buffer");else if(e instanceof bc)n="buffer";else if(Zo._isUint8Array(e))e=Zo._uint8ArrayToBuffer(e),n="buffer";else throw new ij("chunk",["string","Buffer","Uint8Array"],e);let s;return i.ending?s=new uj:i.destroyed&&(s=new Jo("write")),s?(Jr.nextTick(r,s),cs(t,s,!0),s):(i.pendingcb++,cj(t,i,e,n,r))}ke.prototype.write=function(t,e,n){return QE(this,t,e,n)===!0};ke.prototype.cork=function(){this._writableState.corked++};ke.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||qm(this,t))};ke.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=Z8(e)),!bc.isEncoding(e))throw new KE(e);return this._writableState.defaultEncoding=e,this};function cj(t,e,n,r,i){let s=e.objectMode?1:n.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:n,encoding:r,callback:i}),e.allBuffers&&r!=="buffer"&&(e.allBuffers=!1),e.allNoop&&i!==Lm&&(e.allNoop=!1)):(e.writelen=s,e.writecb=i,e.writing=!0,e.sync=!0,t._write(n,r,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function zE(t,e,n,r,i,s,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Jo("write")):n?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function WE(t,e,n,r){--e.pendingcb,r(n),Pm(e),cs(t,n)}function fj(t,e){let n=t._writableState,r=n.sync,i=n.writecb;if(typeof i!="function"){cs(t,new YE);return}n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,e?(e.stack,n.errored||(n.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),r?Jr.nextTick(WE,t,n,e,i):WE(t,n,e,i)):(n.buffered.length>n.bufferedIndex&&qm(t,n),r?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:t,state:n},Jr.nextTick(hj,n.afterWriteTickInfo)):ZE(t,n,1,i))}function hj({stream:t,state:e,count:n,cb:r}){return e.afterWriteTickInfo=null,ZE(t,e,n,r)}function ZE(t,e,n,r){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));n-- >0;)e.pendingcb--,r();e.destroyed&&Pm(e),Mm(t,e)}function Pm(t){if(t.writing)return;for(let i=t.bufferedIndex;i<t.buffered.length;++i){var e;let{chunk:s,callback:o}=t.buffered[i],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Jo("write"))}let n=t[fs].splice(0);for(let i=0;i<n.length;i++){var r;n[i]((r=t.errored)!==null&&r!==void 0?r:new Jo("end"))}xc(t)}function qm(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:n,bufferedIndex:r,objectMode:i}=e,s=n.length-r;if(!s)return;let o=r;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?Lm:u=>{for(let c=o;c<n.length;++c)n[c].callback(u)},l=e.allNoop&&o===0?n:$E(n,o);l.allBuffers=e.allBuffers,zE(t,e,!0,e.length,l,"",a),xc(e)}else{do{let{chunk:a,encoding:l,callback:u}=n[o];n[o++]=null;let c=i?1:a.length;zE(t,e,!1,c,a,l,u)}while(o<n.length&&!e.writing);o===n.length?xc(e):o>256?(n.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}ke.prototype._write=function(t,e,n){if(this._writev)this._writev([{chunk:t,encoding:e}],n);else throw new sj("_write()")};ke.prototype._writev=null;ke.prototype.end=function(t,e,n){let r=this._writableState;typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null);let i;if(t!=null){let s=QE(this,t,e);s instanceof K8&&(i=s)}return r.corked&&(r.corked=1,this.uncork()),i||(!r.errored&&!r.ending?(r.ending=!0,Mm(this,r,!0),r.ended=!0):r.finished?i=new aj("end"):r.destroyed&&(i=new Jo("end"))),typeof n=="function"&&(i||r.finished?Jr.nextTick(n,i):r[fs].push(n)),this};function wc(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function pj(t,e){let n=!1;function r(i){if(n){cs(t,i??YE());return}if(n=!0,e.pendingcb--,i){let s=e[fs].splice(0);for(let o=0;o<s.length;o++)s[o](i);cs(t,i,e.sync)}else wc(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,Jr.nextTick(Im,t,e))}e.sync=!0,e.pendingcb++;try{t._final(r)}catch(i){r(i)}e.sync=!1}function dj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,pj(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Mm(t,e,n){wc(e)&&(dj(t,e),e.pendingcb===0&&(n?(e.pendingcb++,Jr.nextTick((r,i)=>{wc(i)?Im(r,i):i.pendingcb--},t,e)):wc(e)&&(e.pendingcb++,Im(t,e))))}function Im(t,e){e.pendingcb--,e.finished=!0;let n=e[fs].splice(0);for(let r=0;r<n.length;r++)n[r]();if(t.emit("finish"),e.autoDestroy){let r=t._readableState;(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))&&t.destroy()}}Q8(ke.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var mj=_c.destroy;ke.prototype.destroy=function(t,e){let n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[fs].length)&&Jr.nextTick(Pm,n),mj.call(this,t,e),this};ke.prototype._undestroy=_c.undestroy;ke.prototype._destroy=function(t,e){e(t)};ke.prototype[ej.captureRejectionSymbol]=function(t){this.destroy(t)};var Om;function JE(){return Om===void 0&&(Om={}),Om}ke.fromWeb=function(t,e){return JE().newStreamWritableFromWritableStream(t,e)};ke.toWeb=function(t){return JE().newWritableStreamFromStreamWritable(t)}});var dk=x((Jie,pk)=>{"use strict";var Nm=rr(),gj=N("buffer"),{isReadable:yj,isWritable:bj,isIterable:ek,isNodeStream:wj,isReadableNodeStream:tk,isWritableNodeStream:nk,isDuplexNodeStream:xj,isReadableStream:rk,isWritableStream:ik}=on(),sk=An(),{AbortError:fk,codes:{ERR_INVALID_ARG_TYPE:_j,ERR_INVALID_RETURN_VALUE:ok}}=nt(),{destroyer:ps}=Qr(),Dj=ln(),hk=Qo(),vj=Dc(),{createDeferredPromise:ak}=lt(),lk=vm(),uk=globalThis.Blob||gj.Blob,Sj=typeof uk<"u"?function(e){return e instanceof uk}:function(e){return!1},Ej=globalThis.AbortController||rs().AbortController,{FunctionPrototypeCall:ck}=Se(),or=class extends Dj{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};pk.exports=function t(e,n){if(xj(e))return e;if(tk(e))return hs({readable:e});if(nk(e))return hs({writable:e});if(wj(e))return hs({writable:!1,readable:!1});if(rk(e))return hs({readable:hk.fromWeb(e)});if(ik(e))return hs({writable:vj.fromWeb(e)});if(typeof e=="function"){let{value:i,write:s,final:o,destroy:a}=kj(e);if(ek(i))return lk(or,i,{objectMode:!0,write:s,final:o,destroy:a});let l=i?.then;if(typeof l=="function"){let u,c=ck(l,i,f=>{if(f!=null)throw new ok("nully","body",f)},f=>{ps(u,f)});return u=new or({objectMode:!0,readable:!1,write:s,final(f){o(async()=>{try{await c,Nm.nextTick(f,null)}catch(h){Nm.nextTick(f,h)}})},destroy:a})}throw new ok("Iterable, AsyncIterable or AsyncFunction",n,i)}if(Sj(e))return t(e.arrayBuffer());if(ek(e))return lk(or,e,{objectMode:!0,writable:!1});if(rk(e?.readable)&&ik(e?.writable))return or.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let i=e!=null&&e.readable?tk(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?nk(e?.writable)?e?.writable:t(e.writable):void 0;return hs({readable:i,writable:s})}let r=e?.then;if(typeof r=="function"){let i;return ck(r,e,s=>{s!=null&&i.push(s),i.push(null)},s=>{ps(i,s)}),i=new or({objectMode:!0,writable:!1,read(){}})}throw new _j(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function kj(t){let{promise:e,resolve:n}=ak(),r=new Ej,i=r.signal;return{value:t(async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(Nm.nextTick(u),l)return;if(i.aborted)throw new fk(void 0,{cause:i.reason});({promise:e,resolve:n}=ak()),yield a}}(),{signal:i}),write(o,a,l){let u=n;n=null,u({chunk:o,done:!1,cb:l})},final(o){let a=n;n=null,a({done:!0,cb:o})},destroy(o,a){r.abort(),a(o)}}}function hs(t){let e=t.readable&&typeof t.readable.read!="function"?hk.wrap(t.readable):t.readable,n=t.writable,r=!!yj(e),i=!!bj(n),s,o,a,l,u;function c(f){let h=l;l=null,h?h(f):f&&u.destroy(f)}return u=new or({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(sk(n,f=>{i=!1,f&&ps(e,f),c(f)}),u._write=function(f,h,p){n.write(f,h)?p():s=p},u._final=function(f){n.end(),o=f},n.on("drain",function(){if(s){let f=s;s=null,f()}}),n.on("finish",function(){if(o){let f=o;o=null,f()}})),r&&(sk(e,f=>{r=!1,f&&ps(e,f),c(f)}),e.on("readable",function(){if(a){let f=a;a=null,f()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let f=e.read();if(f===null){a=u._read;return}if(!u.push(f))return}}),u._destroy=function(f,h){!f&&l!==null&&(f=new fk),a=null,s=null,o=null,l===null?h(f):(l=h,ps(n,f),ps(e,f))},u}});var ln=x((Xie,yk)=>{"use strict";var{ObjectDefineProperties:Tj,ObjectGetOwnPropertyDescriptor:Cn,ObjectKeys:Aj,ObjectSetPrototypeOf:mk}=Se();yk.exports=Yt;var Um=Qo(),Lt=Dc();mk(Yt.prototype,Um.prototype);mk(Yt,Um);{let t=Aj(Lt.prototype);for(let e=0;e<t.length;e++){let n=t[e];Yt.prototype[n]||(Yt.prototype[n]=Lt.prototype[n])}}function Yt(t){if(!(this instanceof Yt))return new Yt(t);Um.call(this,t),Lt.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}Tj(Yt.prototype,{writable:{__proto__:null,...Cn(Lt.prototype,"writable")},writableHighWaterMark:{__proto__:null,...Cn(Lt.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...Cn(Lt.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...Cn(Lt.prototype,"writableBuffer")},writableLength:{__proto__:null,...Cn(Lt.prototype,"writableLength")},writableFinished:{__proto__:null,...Cn(Lt.prototype,"writableFinished")},writableCorked:{__proto__:null,...Cn(Lt.prototype,"writableCorked")},writableEnded:{__proto__:null,...Cn(Lt.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...Cn(Lt.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var Bm;function gk(){return Bm===void 0&&(Bm={}),Bm}Yt.fromWeb=function(t,e){return gk().newStreamDuplexFromReadableWritablePair(t,e)};Yt.toWeb=function(t){return gk().newReadableWritablePairFromDuplex(t)};var jm;Yt.from=function(t){return jm||(jm=dk()),jm(t,"body")}});var $m=x((ese,wk)=>{"use strict";var{ObjectSetPrototypeOf:bk,Symbol:Cj}=Se();wk.exports=Fn;var{ERR_METHOD_NOT_IMPLEMENTED:Fj}=nt().codes,Wm=ln(),{getHighWaterMark:Rj}=Yo();bk(Fn.prototype,Wm.prototype);bk(Fn,Wm);var ea=Cj("kCallback");function Fn(t){if(!(this instanceof Fn))return new Fn(t);let e=t?Rj(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Wm.call(this,t),this._readableState.sync=!1,this[ea]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Oj)}function zm(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,n)=>{if(e){t?t(e):this.destroy(e);return}n!=null&&this.push(n),this.push(null),t&&t()}):(this.push(null),t&&t())}function Oj(){this._final!==zm&&zm.call(this)}Fn.prototype._final=zm;Fn.prototype._transform=function(t,e,n){throw new Fj("_transform()")};Fn.prototype._write=function(t,e,n){let r=this._readableState,i=this._writableState,s=r.length;this._transform(t,e,(o,a)=>{if(o){n(o);return}a!=null&&this.push(a),i.ended||s===r.length||r.length<r.highWaterMark?n():this[ea]=n})};Fn.prototype._read=function(){if(this[ea]){let t=this[ea];this[ea]=null,t()}}});var Gm=x((tse,_k)=>{"use strict";var{ObjectSetPrototypeOf:xk}=Se();_k.exports=ds;var Hm=$m();xk(ds.prototype,Hm.prototype);xk(ds,Hm);function ds(t){if(!(this instanceof ds))return new ds(t);Hm.call(this,t)}ds.prototype._transform=function(t,e,n){n(null,t)}});var kc=x((nse,kk)=>{"use strict";var ta=rr(),{ArrayIsArray:Ij,Promise:Lj,SymbolAsyncIterator:Pj,SymbolDispose:qj}=Se(),Ec=An(),{once:Mj}=lt(),Nj=Qr(),Dk=ln(),{aggregateTwoErrors:Bj,codes:{ERR_INVALID_ARG_TYPE:tg,ERR_INVALID_RETURN_VALUE:Vm,ERR_MISSING_ARGS:jj,ERR_STREAM_DESTROYED:Uj,ERR_STREAM_PREMATURE_CLOSE:zj},AbortError:Wj}=nt(),{validateFunction:$j,validateAbortSignal:Hj}=ss(),{isIterable:Xr,isReadable:Ym,isReadableNodeStream:Sc,isNodeStream:vk,isTransformStream:ms,isWebStream:Gj,isReadableStream:Km,isReadableFinished:Vj}=on(),Yj=globalThis.AbortController||rs().AbortController,Qm,Zm,Jm;function Sk(t,e,n){let r=!1;t.on("close",()=>{r=!0});let i=Ec(t,{readable:e,writable:n},s=>{r=!s});return{destroy:s=>{r||(r=!0,Nj.destroyer(t,s||new Uj("pipe")))},cleanup:i}}function Kj(t){return $j(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Xm(t){if(Xr(t))return t;if(Sc(t))return Qj(t);throw new tg("val",["Readable","Iterable","AsyncIterable"],t)}async function*Qj(t){Zm||(Zm=Qo()),yield*Zm.prototype[Pj].call(t)}async function vc(t,e,n,{end:r}){let i,s=null,o=u=>{if(u&&(i=u),s){let c=s;s=null,c()}},a=()=>new Lj((u,c)=>{i?c(i):s=()=>{i?c(i):u()}});e.on("drain",o);let l=Ec(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();r&&(e.end(),await a()),n()}catch(u){n(i!==u?Bj(i,u):u)}finally{l(),e.off("drain",o)}}async function eg(t,e,n,{end:r}){ms(e)&&(e=e.writable);let i=e.getWriter();try{for await(let s of t)await i.ready,i.write(s).catch(()=>{});await i.ready,r&&await i.close(),n()}catch(s){try{await i.abort(s),n(s)}catch(o){n(o)}}}function Zj(...t){return Ek(t,Mj(Kj(t)))}function Ek(t,e,n){if(t.length===1&&Ij(t[0])&&(t=t[0]),t.length<2)throw new jj("streams");let r=new Yj,i=r.signal,s=n?.signal,o=[];Hj(s,"options.signal");function a(){b(new Wj)}Jm=Jm||lt().addAbortListener;let l;s&&(l=Jm(s,a));let u,c,f=[],h=0;function p(d){b(d,--h===0)}function b(d,w){var T;if(d&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=d),!(!u&&!w)){for(;f.length;)f.shift()(u);(T=l)===null||T===void 0||T[qj](),r.abort(),w&&(u||o.forEach(D=>D()),ta.nextTick(e,u,c))}}let y;for(let d=0;d<t.length;d++){let w=t[d],T=d<t.length-1,D=d>0,S=T||n?.end!==!1,M=d===t.length-1;if(vk(w)){let A=function(F){F&&F.name!=="AbortError"&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(F)};var m=A;if(S){let{destroy:F,cleanup:I}=Sk(w,T,D);f.push(F),Ym(w)&&M&&o.push(I)}w.on("error",A),Ym(w)&&M&&o.push(()=>{w.removeListener("error",A)})}if(d===0)if(typeof w=="function"){if(y=w({signal:i}),!Xr(y))throw new Vm("Iterable, AsyncIterable or Stream","source",y)}else Xr(w)||Sc(w)||ms(w)?y=w:y=Dk.from(w);else if(typeof w=="function"){if(ms(y)){var k;y=Xm((k=y)===null||k===void 0?void 0:k.readable)}else y=Xm(y);if(y=w(y,{signal:i}),T){if(!Xr(y,!0))throw new Vm("AsyncIterable",`transform[${d-1}]`,y)}else{var g;Qm||(Qm=Gm());let A=new Qm({objectMode:!0}),F=(g=y)===null||g===void 0?void 0:g.then;if(typeof F=="function")h++,F.call(y,O=>{c=O,O!=null&&A.write(O),S&&A.end(),ta.nextTick(p)},O=>{A.destroy(O),ta.nextTick(p,O)});else if(Xr(y,!0))h++,vc(y,A,p,{end:S});else if(Km(y)||ms(y)){let O=y.readable||y;h++,vc(O,A,p,{end:S})}else throw new Vm("AsyncIterable or Promise","destination",y);y=A;let{destroy:I,cleanup:B}=Sk(y,!1,!0);f.push(I),M&&o.push(B)}}else if(vk(w)){if(Sc(y)){h+=2;let A=Jj(y,w,p,{end:S});Ym(w)&&M&&o.push(A)}else if(ms(y)||Km(y)){let A=y.readable||y;h++,vc(A,w,p,{end:S})}else if(Xr(y))h++,vc(y,w,p,{end:S});else throw new tg("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=w}else if(Gj(w)){if(Sc(y))h++,eg(Xm(y),w,p,{end:S});else if(Km(y)||Xr(y))h++,eg(y,w,p,{end:S});else if(ms(y))h++,eg(y.readable,w,p,{end:S});else throw new tg("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=w}else y=Dk.from(w)}return(i!=null&&i.aborted||s!=null&&s.aborted)&&ta.nextTick(a),y}function Jj(t,e,n,{end:r}){let i=!1;if(e.on("close",()=>{i||n(new zj)}),t.pipe(e,{end:!1}),r){let o=function(){i=!0,e.end()};var s=o;Vj(t)?ta.nextTick(o):t.once("end",o)}else n();return Ec(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",n).once("error",n):n(o)}),Ec(e,{readable:!1,writable:!0},n)}kk.exports={pipelineImpl:Ek,pipeline:Zj}});var rg=x((rse,Ok)=>{"use strict";var{pipeline:Xj}=kc(),Tc=ln(),{destroyer:e9}=Qr(),{isNodeStream:Ac,isReadable:Tk,isWritable:Ak,isWebStream:ng,isTransformStream:ei,isWritableStream:Ck,isReadableStream:Fk}=on(),{AbortError:t9,codes:{ERR_INVALID_ARG_VALUE:Rk,ERR_MISSING_ARGS:n9}}=nt(),r9=An();Ok.exports=function(...e){if(e.length===0)throw new n9("streams");if(e.length===1)return Tc.from(e[0]);let n=[...e];if(typeof e[0]=="function"&&(e[0]=Tc.from(e[0])),typeof e[e.length-1]=="function"){let p=e.length-1;e[p]=Tc.from(e[p])}for(let p=0;p<e.length;++p)if(!(!Ac(e[p])&&!ng(e[p]))){if(p<e.length-1&&!(Tk(e[p])||Fk(e[p])||ei(e[p])))throw new Rk(`streams[${p}]`,n[p],"must be readable");if(p>0&&!(Ak(e[p])||Ck(e[p])||ei(e[p])))throw new Rk(`streams[${p}]`,n[p],"must be writable")}let r,i,s,o,a;function l(p){let b=o;o=null,b?b(p):p?a.destroy(p):!h&&!f&&a.destroy()}let u=e[0],c=Xj(e,l),f=!!(Ak(u)||Ck(u)||ei(u)),h=!!(Tk(c)||Fk(c)||ei(c));if(a=new Tc({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(c!=null&&c.readableObjectMode),writable:f,readable:h}),f){if(Ac(u))a._write=function(b,y,k){u.write(b,y)?k():r=k},a._final=function(b){u.end(),i=b},u.on("drain",function(){if(r){let b=r;r=null,b()}});else if(ng(u)){let y=(ei(u)?u.writable:u).getWriter();a._write=async function(k,g,m){try{await y.ready,y.write(k).catch(()=>{}),m()}catch(d){m(d)}},a._final=async function(k){try{await y.ready,y.close().catch(()=>{}),i=k}catch(g){k(g)}}}let p=ei(c)?c.readable:c;r9(p,()=>{if(i){let b=i;i=null,b()}})}if(h){if(Ac(c))c.on("readable",function(){if(s){let p=s;s=null,p()}}),c.on("end",function(){a.push(null)}),a._read=function(){for(;;){let p=c.read();if(p===null){s=a._read;return}if(!a.push(p))return}};else if(ng(c)){let b=(ei(c)?c.readable:c).getReader();a._read=async function(){for(;;)try{let{value:y,done:k}=await b.read();if(!a.push(y))return;if(k){a.push(null);return}}catch{return}}}}return a._destroy=function(p,b){!p&&o!==null&&(p=new t9),s=null,r=null,i=null,o===null?b(p):(o=b,Ac(c)&&e9(c,p))},a}});var zk=x((ise,og)=>{"use strict";var i9=globalThis.AbortController||rs().AbortController,{codes:{ERR_INVALID_ARG_VALUE:s9,ERR_INVALID_ARG_TYPE:na,ERR_MISSING_ARGS:o9,ERR_OUT_OF_RANGE:a9},AbortError:un}=nt(),{validateAbortSignal:ti,validateInteger:Ik,validateObject:ni}=ss(),l9=Se().Symbol("kWeak"),u9=Se().Symbol("kResistStopPropagation"),{finished:c9}=An(),f9=rg(),{addAbortSignalNoValidate:h9}=Vo(),{isWritable:p9,isNodeStream:d9}=on(),{deprecate:m9}=lt(),{ArrayPrototypePush:g9,Boolean:y9,MathFloor:Lk,Number:b9,NumberIsNaN:w9,Promise:Pk,PromiseReject:qk,PromiseResolve:x9,PromisePrototypeThen:Mk,Symbol:Bk}=Se(),Cc=Bk("kEmpty"),Nk=Bk("kEof");function _9(t,e){if(e!=null&&ni(e,"options"),e?.signal!=null&&ti(e.signal,"options.signal"),d9(t)&&!p9(t))throw new s9("stream",t,"must be writable");let n=f9(this,t);return e!=null&&e.signal&&h9(e.signal,n),n}function Fc(t,e){if(typeof t!="function")throw new na("fn",["Function","AsyncFunction"],t);e!=null&&ni(e,"options"),e?.signal!=null&&ti(e.signal,"options.signal");let n=1;e?.concurrency!=null&&(n=Lk(e.concurrency));let r=n-1;return e?.highWaterMark!=null&&(r=Lk(e.highWaterMark)),Ik(n,"options.concurrency",1),Ik(r,"options.highWaterMark",0),r+=n,async function*(){let s=lt().AbortSignalAny([e?.signal].filter(y9)),o=this,a=[],l={signal:s},u,c,f=!1,h=0;function p(){f=!0,b()}function b(){h-=1,y()}function y(){c&&!f&&h<n&&a.length<r&&(c(),c=null)}async function k(){try{for await(let g of o){if(f)return;if(s.aborted)throw new un;try{if(g=t(g,l),g===Cc)continue;g=x9(g)}catch(m){g=qk(m)}h+=1,Mk(g,b,p),a.push(g),u&&(u(),u=null),!f&&(a.length>=r||h>=n)&&await new Pk(m=>{c=m})}a.push(Nk)}catch(g){let m=qk(g);Mk(m,b,p),a.push(m)}finally{f=!0,u&&(u(),u=null)}}k();try{for(;;){for(;a.length>0;){let g=await a[0];if(g===Nk)return;if(s.aborted)throw new un;g!==Cc&&(yield g),a.shift(),y()}await new Pk(g=>{u=g})}}finally{f=!0,c&&(c(),c=null)}}.call(this)}function D9(t=void 0){return t!=null&&ni(t,"options"),t?.signal!=null&&ti(t.signal,"options.signal"),async function*(){let n=0;for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new un({cause:t.signal.reason});yield[n++,i]}}.call(this)}async function jk(t,e=void 0){for await(let n of sg.call(this,t,e))return!0;return!1}async function v9(t,e=void 0){if(typeof t!="function")throw new na("fn",["Function","AsyncFunction"],t);return!await jk.call(this,async(...n)=>!await t(...n),e)}async function S9(t,e){for await(let n of sg.call(this,t,e))return n}async function E9(t,e){if(typeof t!="function")throw new na("fn",["Function","AsyncFunction"],t);async function n(r,i){return await t(r,i),Cc}for await(let r of Fc.call(this,n,e));}function sg(t,e){if(typeof t!="function")throw new na("fn",["Function","AsyncFunction"],t);async function n(r,i){return await t(r,i)?r:Cc}return Fc.call(this,n,e)}var ig=class extends o9{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function k9(t,e,n){var r;if(typeof t!="function")throw new na("reducer",["Function","AsyncFunction"],t);n!=null&&ni(n,"options"),n?.signal!=null&&ti(n.signal,"options.signal");let i=arguments.length>1;if(n!=null&&(r=n.signal)!==null&&r!==void 0&&r.aborted){let u=new un(void 0,{cause:n.signal.reason});throw this.once("error",()=>{}),await c9(this.destroy(u)),u}let s=new i9,o=s.signal;if(n!=null&&n.signal){let u={once:!0,[l9]:this,[u9]:!0};n.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new un;i?e=await t(e,u,{signal:o}):(e=u,i=!0)}if(!a&&!i)throw new ig}finally{s.abort()}return e}async function T9(t){t!=null&&ni(t,"options"),t?.signal!=null&&ti(t.signal,"options.signal");let e=[];for await(let r of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new un(void 0,{cause:t.signal.reason});g9(e,r)}return e}function A9(t,e){let n=Fc.call(this,t,e);return async function*(){for await(let i of n)yield*i}.call(this)}function Uk(t){if(t=b9(t),w9(t))return 0;if(t<0)throw new a9("number",">= 0",t);return t}function C9(t,e=void 0){return e!=null&&ni(e,"options"),e?.signal!=null&&ti(e.signal,"options.signal"),t=Uk(t),async function*(){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new un;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new un;t--<=0&&(yield s)}}.call(this)}function F9(t,e=void 0){return e!=null&&ni(e,"options"),e?.signal!=null&&ti(e.signal,"options.signal"),t=Uk(t),async function*(){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new un;for await(let s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new un;if(t-- >0&&(yield s),t<=0)return}}.call(this)}og.exports.streamReturningOperators={asIndexedPairs:m9(D9,"readable.asIndexedPairs will be removed in a future version."),drop:C9,filter:sg,flatMap:A9,map:Fc,take:F9,compose:_9};og.exports.promiseReturningOperators={every:v9,forEach:E9,reduce:k9,toArray:T9,some:jk,find:S9}});var ag=x((sse,Wk)=>{"use strict";var{ArrayPrototypePop:R9,Promise:O9}=Se(),{isIterable:I9,isNodeStream:L9,isWebStream:P9}=on(),{pipelineImpl:q9}=kc(),{finished:M9}=An();lg();function N9(...t){return new O9((e,n)=>{let r,i,s=t[t.length-1];if(s&&typeof s=="object"&&!L9(s)&&!I9(s)&&!P9(s)){let o=R9(t);r=o.signal,i=o.end}q9(t,(o,a)=>{o?n(o):e(a)},{signal:r,end:i})})}Wk.exports={finished:M9,pipeline:N9}});var lg=x((ose,Jk)=>{"use strict";var{Buffer:B9}=N("buffer"),{ObjectDefineProperty:Rn,ObjectKeys:Gk,ReflectApply:Vk}=Se(),{promisify:{custom:Yk}}=lt(),{streamReturningOperators:$k,promiseReturningOperators:Hk}=zk(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Kk}}=nt(),j9=rg(),{setDefaultHighWaterMark:U9,getDefaultHighWaterMark:z9}=Yo(),{pipeline:Qk}=kc(),{destroyer:W9}=Qr(),Zk=An(),ug=ag(),ra=on(),De=Jk.exports=cc().Stream;De.isDestroyed=ra.isDestroyed;De.isDisturbed=ra.isDisturbed;De.isErrored=ra.isErrored;De.isReadable=ra.isReadable;De.isWritable=ra.isWritable;De.Readable=Qo();for(let t of Gk($k)){let n=function(...r){if(new.target)throw Kk();return De.Readable.from(Vk(e,this,r))},e=$k[t];Rn(n,"name",{__proto__:null,value:e.name}),Rn(n,"length",{__proto__:null,value:e.length}),Rn(De.Readable.prototype,t,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let t of Gk(Hk)){let n=function(...r){if(new.target)throw Kk();return Vk(e,this,r)},e=Hk[t];Rn(n,"name",{__proto__:null,value:e.name}),Rn(n,"length",{__proto__:null,value:e.length}),Rn(De.Readable.prototype,t,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}De.Writable=Dc();De.Duplex=ln();De.Transform=$m();De.PassThrough=Gm();De.pipeline=Qk;var{addAbortSignal:$9}=Vo();De.addAbortSignal=$9;De.finished=Zk;De.destroy=W9;De.compose=j9;De.setDefaultHighWaterMark=U9;De.getDefaultHighWaterMark=z9;Rn(De,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return ug}});Rn(Qk,Yk,{__proto__:null,enumerable:!0,get(){return ug.pipeline}});Rn(Zk,Yk,{__proto__:null,enumerable:!0,get(){return ug.finished}});De.Stream=De;De._isUint8Array=function(e){return e instanceof Uint8Array};De._uint8ArrayToBuffer=function(e){return B9.from(e.buffer,e.byteOffset,e.byteLength)}});var ri=x((ase,ne)=>{"use strict";var Pe=N("stream");if(Pe&&process.env.READABLE_STREAM==="disable"){let t=Pe.promises;ne.exports._uint8ArrayToBuffer=Pe._uint8ArrayToBuffer,ne.exports._isUint8Array=Pe._isUint8Array,ne.exports.isDisturbed=Pe.isDisturbed,ne.exports.isErrored=Pe.isErrored,ne.exports.isReadable=Pe.isReadable,ne.exports.Readable=Pe.Readable,ne.exports.Writable=Pe.Writable,ne.exports.Duplex=Pe.Duplex,ne.exports.Transform=Pe.Transform,ne.exports.PassThrough=Pe.PassThrough,ne.exports.addAbortSignal=Pe.addAbortSignal,ne.exports.finished=Pe.finished,ne.exports.destroy=Pe.destroy,ne.exports.pipeline=Pe.pipeline,ne.exports.compose=Pe.compose,Object.defineProperty(Pe,"promises",{configurable:!0,enumerable:!0,get(){return t}}),ne.exports.Stream=Pe.Stream}else{let t=lg(),e=ag(),n=t.Readable.destroy;ne.exports=t.Readable,ne.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,ne.exports._isUint8Array=t._isUint8Array,ne.exports.isDisturbed=t.isDisturbed,ne.exports.isErrored=t.isErrored,ne.exports.isReadable=t.isReadable,ne.exports.Readable=t.Readable,ne.exports.Writable=t.Writable,ne.exports.Duplex=t.Duplex,ne.exports.Transform=t.Transform,ne.exports.PassThrough=t.PassThrough,ne.exports.addAbortSignal=t.addAbortSignal,ne.exports.finished=t.finished,ne.exports.destroy=t.destroy,ne.exports.destroy=n,ne.exports.pipeline=t.pipeline,ne.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),ne.exports.Stream=t.Stream}ne.exports.default=ne.exports});var eT=x((lse,Xk)=>{"use strict";function H9(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}Xk.exports=H9});var iT=x((use,rT)=>{"use strict";var tT=Ku(),G9=Yd(),V9=Kd(),nT=tT?tT.isConcatSpreadable:void 0;function Y9(t){return V9(t)||G9(t)||!!(nT&&t&&t[nT])}rT.exports=Y9});var Rc=x((cse,oT)=>{"use strict";var K9=eT(),Q9=iT();function sT(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=Q9),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?sT(a,e-1,n,r,i):K9(i,a):r||(i[i.length]=a)}return i}oT.exports=sT});var lT=x((fse,aT)=>{"use strict";var Z9=Rc();function J9(t){var e=t==null?0:t.length;return e?Z9(t,1):[]}aT.exports=J9});var ia=x((hse,uT)=>{"use strict";var X9=No(),e7=X9(Object,"create");uT.exports=e7});var hT=x((pse,fT)=>{"use strict";var cT=ia();function t7(){this.__data__=cT?cT(null):{},this.size=0}fT.exports=t7});var dT=x((dse,pT)=>{"use strict";function n7(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}pT.exports=n7});var gT=x((mse,mT)=>{"use strict";var r7=ia(),i7="__lodash_hash_undefined__",s7=Object.prototype,o7=s7.hasOwnProperty;function a7(t){var e=this.__data__;if(r7){var n=e[t];return n===i7?void 0:n}return o7.call(e,t)?e[t]:void 0}mT.exports=a7});var bT=x((gse,yT)=>{"use strict";var l7=ia(),u7=Object.prototype,c7=u7.hasOwnProperty;function f7(t){var e=this.__data__;return l7?e[t]!==void 0:c7.call(e,t)}yT.exports=f7});var xT=x((yse,wT)=>{"use strict";var h7=ia(),p7="__lodash_hash_undefined__";function d7(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=h7&&e===void 0?p7:e,this}wT.exports=d7});var DT=x((bse,_T)=>{"use strict";var m7=hT(),g7=dT(),y7=gT(),b7=bT(),w7=xT();function gs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}gs.prototype.clear=m7;gs.prototype.delete=g7;gs.prototype.get=y7;gs.prototype.has=b7;gs.prototype.set=w7;_T.exports=gs});var ST=x((wse,vT)=>{"use strict";function x7(){this.__data__=[],this.size=0}vT.exports=x7});var sa=x((xse,ET)=>{"use strict";var _7=Zu();function D7(t,e){for(var n=t.length;n--;)if(_7(t[n][0],e))return n;return-1}ET.exports=D7});var TT=x((_se,kT)=>{"use strict";var v7=sa(),S7=Array.prototype,E7=S7.splice;function k7(t){var e=this.__data__,n=v7(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():E7.call(e,n,1),--this.size,!0}kT.exports=k7});var CT=x((Dse,AT)=>{"use strict";var T7=sa();function A7(t){var e=this.__data__,n=T7(e,t);return n<0?void 0:e[n][1]}AT.exports=A7});var RT=x((vse,FT)=>{"use strict";var C7=sa();function F7(t){return C7(this.__data__,t)>-1}FT.exports=F7});var IT=x((Sse,OT)=>{"use strict";var R7=sa();function O7(t,e){var n=this.__data__,r=R7(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}OT.exports=O7});var PT=x((Ese,LT)=>{"use strict";var I7=ST(),L7=TT(),P7=CT(),q7=RT(),M7=IT();function ys(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ys.prototype.clear=I7;ys.prototype.delete=L7;ys.prototype.get=P7;ys.prototype.has=q7;ys.prototype.set=M7;LT.exports=ys});var MT=x((kse,qT)=>{"use strict";var N7=No(),B7=Ji(),j7=N7(B7,"Map");qT.exports=j7});var jT=x((Tse,BT)=>{"use strict";var NT=DT(),U7=PT(),z7=MT();function W7(){this.size=0,this.__data__={hash:new NT,map:new(z7||U7),string:new NT}}BT.exports=W7});var zT=x((Ase,UT)=>{"use strict";function $7(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}UT.exports=$7});var oa=x((Cse,WT)=>{"use strict";var H7=zT();function G7(t,e){var n=t.__data__;return H7(e)?n[typeof e=="string"?"string":"hash"]:n.map}WT.exports=G7});var HT=x((Fse,$T)=>{"use strict";var V7=oa();function Y7(t){var e=V7(this,t).delete(t);return this.size-=e?1:0,e}$T.exports=Y7});var VT=x((Rse,GT)=>{"use strict";var K7=oa();function Q7(t){return K7(this,t).get(t)}GT.exports=Q7});var KT=x((Ose,YT)=>{"use strict";var Z7=oa();function J7(t){return Z7(this,t).has(t)}YT.exports=J7});var ZT=x((Ise,QT)=>{"use strict";var X7=oa();function eU(t,e){var n=X7(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}QT.exports=eU});var XT=x((Lse,JT)=>{"use strict";var tU=jT(),nU=HT(),rU=VT(),iU=KT(),sU=ZT();function bs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bs.prototype.clear=tU;bs.prototype.delete=nU;bs.prototype.get=rU;bs.prototype.has=iU;bs.prototype.set=sU;JT.exports=bs});var t2=x((Pse,e2)=>{"use strict";var oU="__lodash_hash_undefined__";function aU(t){return this.__data__.set(t,oU),this}e2.exports=aU});var r2=x((qse,n2)=>{"use strict";function lU(t){return this.__data__.has(t)}n2.exports=lU});var cg=x((Mse,i2)=>{"use strict";var uU=XT(),cU=t2(),fU=r2();function Oc(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new uU;++e<n;)this.add(t[e])}Oc.prototype.add=Oc.prototype.push=cU;Oc.prototype.has=fU;i2.exports=Oc});var o2=x((Nse,s2)=>{"use strict";function hU(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}s2.exports=hU});var l2=x((Bse,a2)=>{"use strict";function pU(t){return t!==t}a2.exports=pU});var c2=x((jse,u2)=>{"use strict";function dU(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}u2.exports=dU});var h2=x((Use,f2)=>{"use strict";var mU=o2(),gU=l2(),yU=c2();function bU(t,e,n){return e===e?yU(t,e,n):mU(t,gU,n)}f2.exports=bU});var fg=x((zse,p2)=>{"use strict";var wU=h2();function xU(t,e){var n=t==null?0:t.length;return!!n&&wU(t,e,0)>-1}p2.exports=xU});var hg=x((Wse,d2)=>{"use strict";function _U(t,e,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}d2.exports=_U});var g2=x(($se,m2)=>{"use strict";function DU(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}m2.exports=DU});var pg=x((Hse,y2)=>{"use strict";function vU(t,e){return t.has(e)}y2.exports=vU});var w2=x((Gse,b2)=>{"use strict";var SU=cg(),EU=fg(),kU=hg(),TU=g2(),AU=Qd(),CU=pg(),FU=200;function RU(t,e,n,r){var i=-1,s=EU,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;n&&(e=TU(e,AU(n))),r?(s=kU,o=!1):e.length>=FU&&(s=CU,o=!1,e=new SU(e));e:for(;++i<a;){var c=t[i],f=n==null?c:n(c);if(c=r||c!==0?c:0,o&&f===f){for(var h=u;h--;)if(e[h]===f)continue e;l.push(c)}else s(e,f,r)||l.push(c)}return l}b2.exports=RU});var dg=x((Vse,x2)=>{"use strict";var OU=Ju(),IU=Xi();function LU(t){return IU(t)&&OU(t)}x2.exports=LU});var v2=x((Yse,D2)=>{"use strict";var PU=w2(),qU=Rc(),MU=Qu(),_2=dg(),NU=MU(function(t,e){return _2(t)?PU(t,qU(e,1,_2,!0)):[]});D2.exports=NU});var E2=x((Kse,S2)=>{"use strict";var BU=No(),jU=Ji(),UU=BU(jU,"Set");S2.exports=UU});var T2=x((Qse,k2)=>{"use strict";function zU(){}k2.exports=zU});var mg=x((Zse,A2)=>{"use strict";function WU(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}A2.exports=WU});var F2=x((Jse,C2)=>{"use strict";var gg=E2(),$U=T2(),HU=mg(),GU=1/0,VU=gg&&1/HU(new gg([,-0]))[1]==GU?function(t){return new gg(t)}:$U;C2.exports=VU});var O2=x((Xse,R2)=>{"use strict";var YU=cg(),KU=fg(),QU=hg(),ZU=pg(),JU=F2(),XU=mg(),ez=200;function tz(t,e,n){var r=-1,i=KU,s=t.length,o=!0,a=[],l=a;if(n)o=!1,i=QU;else if(s>=ez){var u=e?null:JU(t);if(u)return XU(u);o=!1,i=ZU,l=new YU}else l=e?[]:a;e:for(;++r<s;){var c=t[r],f=e?e(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;e&&l.push(f),a.push(c)}else i(l,f,n)||(l!==a&&l.push(f),a.push(c))}return a}R2.exports=tz});var L2=x((eoe,I2)=>{"use strict";var nz=Rc(),rz=Qu(),iz=O2(),sz=dg(),oz=rz(function(t){return iz(nz(t,1,sz,!0))});I2.exports=oz});var q2=x((toe,P2)=>{"use strict";function az(t,e){return function(n){return t(e(n))}}P2.exports=az});var N2=x((noe,M2)=>{"use strict";var lz=q2(),uz=lz(Object.getPrototypeOf,Object);M2.exports=uz});var U2=x((roe,j2)=>{"use strict";var cz=qo(),fz=N2(),hz=Xi(),pz="[object Object]",dz=Function.prototype,mz=Object.prototype,B2=dz.toString,gz=mz.hasOwnProperty,yz=B2.call(Object);function bz(t){if(!hz(t)||cz(t)!=pz)return!1;var e=fz(t);if(e===null)return!0;var n=gz.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&B2.call(n)==yz}j2.exports=bz});var G2=x(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.LRUCache=void 0;var ws=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,W2=new Set,yg=typeof process=="object"&&process?process:{},$2=(t,e,n,r)=>{typeof yg.emitWarning=="function"?yg.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)},Ic=globalThis.AbortController,z2=globalThis.AbortSignal;if(typeof Ic>"u"){z2=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},Ic=class{constructor(){e()}signal=new z2;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let t=yg.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,$2("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var wz=t=>!W2.has(t),ooe=Symbol("type"),ar=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),H2=t=>ar(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?xs:null:null,xs=class extends Array{constructor(e){super(e),this.fill(0)}},bg=class t{heap;length;static#e=!1;static create(e){let n=H2(e);if(!n)return[];t.#e=!0;let r=new t(e,n);return t.#e=!1,r}constructor(e,n){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},wg=class t{#e;#t;#n;#r;#o;#h;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#l;#u;#s;#y;#b;#d;#p;#v;#g;#S;#E;#x;#_;#D;#m;static unsafeExposeInternals(e){return{starts:e.#E,ttls:e.#x,sizes:e.#S,keyMap:e.#l,keyList:e.#u,valList:e.#s,next:e.#y,prev:e.#b,get head(){return e.#d},get tail(){return e.#p},free:e.#v,isBackgroundFetch:n=>e.#c(n),backgroundFetch:(n,r,i,s)=>e.#N(n,r,i,s),moveToTail:n=>e.#j(n),indexes:n=>e.#T(n),rindexes:n=>e.#A(n),isStale:n=>e.#w(n)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#o}get memoMethod(){return this.#h}get dispose(){return this.#n}get disposeAfter(){return this.#r}constructor(e){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:b=0,sizeCalculation:y,fetchMethod:k,memoMethod:g,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:d,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:T,ignoreFetchAbort:D}=e;if(n!==0&&!ar(n))throw new TypeError("max option must be a nonnegative integer");let S=n?H2(n):Array;if(!S)throw new Error("invalid max value: "+n);if(this.#e=n,this.#t=p,this.maxEntrySize=b||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#h=g,k!==void 0&&typeof k!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=k,this.#D=!!k,this.#l=new Map,this.#u=new Array(n).fill(void 0),this.#s=new Array(n).fill(void 0),this.#y=new S(n),this.#b=new S(n),this.#d=0,this.#p=0,this.#v=bg.create(n),this.#a=0,this.#f=0,typeof u=="function"&&(this.#n=u),typeof c=="function"?(this.#r=c,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#_=!!this.#n,this.#m=!!this.#r,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.#t!==0&&!ar(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!ar(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!d,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ar(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!ar(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#C()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let M="LRU_CACHE_UNBOUNDED";wz(M)&&(W2.add(M),$2("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",M,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#C(){let e=new xs(this.#e),n=new xs(this.#e);this.#x=e,this.#E=n,this.#O=(s,o,a=ws.now())=>{if(n[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#R(this.#u[s],"expire")},o+1);l.unref&&l.unref()}},this.#k=s=>{n[s]=e[s]!==0?ws.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=n[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=r||i();let u=s.now-l;s.remainingTTL=a-u}};let r=0,i=()=>{let s=ws.now();if(this.ttlResolution>0){r=s;let o=setTimeout(()=>r=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=n[o];if(!a||!l)return 1/0;let u=(r||i())-l;return a-u},this.#w=s=>{let o=n[s],a=e[s];return!!a&&!!o&&(r||i())-o>a}}#k=()=>{};#i=()=>{};#O=()=>{};#w=()=>!1;#F(){let e=new xs(this.#e);this.#f=0,this.#S=e,this.#I=n=>{this.#f-=e[n],e[n]=0},this.#P=(n,r,i,s)=>{if(this.#c(r))return 0;if(!ar(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(r,n),!ar(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#L=(n,r,i)=>{if(e[n]=r,this.#t){let s=this.#t-e[n];for(;this.#f>s;)this.#M(!0)}this.#f+=e[n],i&&(i.entrySize=r,i.totalCalculatedSize=this.#f)}}#I=e=>{};#L=(e,n,r)=>{};#P=(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#T({allowStale:e=this.allowStale}={}){if(this.#a)for(let n=this.#p;!(!this.#q(n)||((e||!this.#w(n))&&(yield n),n===this.#d));)n=this.#b[n]}*#A({allowStale:e=this.allowStale}={}){if(this.#a)for(let n=this.#d;!(!this.#q(n)||((e||!this.#w(n))&&(yield n),n===this.#p));)n=this.#y[n]}#q(e){return e!==void 0&&this.#l.get(this.#u[e])===e}*entries(){for(let e of this.#T())this.#s[e]!==void 0&&this.#u[e]!==void 0&&!this.#c(this.#s[e])&&(yield[this.#u[e],this.#s[e]])}*rentries(){for(let e of this.#A())this.#s[e]!==void 0&&this.#u[e]!==void 0&&!this.#c(this.#s[e])&&(yield[this.#u[e],this.#s[e]])}*keys(){for(let e of this.#T()){let n=this.#u[e];n!==void 0&&!this.#c(this.#s[e])&&(yield n)}}*rkeys(){for(let e of this.#A()){let n=this.#u[e];n!==void 0&&!this.#c(this.#s[e])&&(yield n)}}*values(){for(let e of this.#T())this.#s[e]!==void 0&&!this.#c(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#A())this.#s[e]!==void 0&&!this.#c(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,n={}){for(let r of this.#T()){let i=this.#s[r],s=this.#c(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.#u[r],this))return this.get(this.#u[r],n)}}forEach(e,n=this){for(let r of this.#T()){let i=this.#s[r],s=this.#c(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(n,s,this.#u[r],this)}}rforEach(e,n=this){for(let r of this.#A()){let i=this.#s[r],s=this.#c(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(n,s,this.#u[r],this)}}purgeStale(){let e=!1;for(let n of this.#A({allowStale:!0}))this.#w(n)&&(this.#R(this.#u[n],"expire"),e=!0);return e}info(e){let n=this.#l.get(e);if(n===void 0)return;let r=this.#s[n],i=this.#c(r)?r.__staleWhileFetching:r;if(i===void 0)return;let s={value:i};if(this.#x&&this.#E){let o=this.#x[n],a=this.#E[n];if(o&&a){let l=o-(ws.now()-a);s.ttl=l,s.start=Date.now()}}return this.#S&&(s.size=this.#S[n]),s}dump(){let e=[];for(let n of this.#T({allowStale:!0})){let r=this.#u[n],i=this.#s[n],s=this.#c(i)?i.__staleWhileFetching:i;if(s===void 0||r===void 0)continue;let o={value:s};if(this.#x&&this.#E){o.ttl=this.#x[n];let a=ws.now()-this.#E[n];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[n]),e.unshift([r,o])}return e}load(e){this.clear();for(let[n,r]of e){if(r.start){let i=Date.now()-r.start;r.start=ws.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){if(n===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=r,{noUpdateTTL:u=this.noUpdateTTL}=r,c=this.#P(e,n,r.size||0,a);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#R(e,"set"),this;let f=this.#a===0?void 0:this.#l.get(e);if(f===void 0)f=this.#a===0?this.#p:this.#v.length!==0?this.#v.pop():this.#a===this.#e?this.#M(!1):this.#a,this.#u[f]=e,this.#s[f]=n,this.#l.set(e,f),this.#y[this.#p]=f,this.#b[f]=this.#p,this.#p=f,this.#a++,this.#L(f,c,l),l&&(l.set="add"),u=!1;else{this.#j(f);let h=this.#s[f];if(n!==h){if(this.#D&&this.#c(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!o&&(this.#_&&this.#n?.(p,e,"set"),this.#m&&this.#g?.push([p,e,"set"]))}else o||(this.#_&&this.#n?.(h,e,"set"),this.#m&&this.#g?.push([h,e,"set"]));if(this.#I(f),this.#L(f,c,l),this.#s[f]=n,l){l.set="replace";let p=h&&this.#c(h)?h.__staleWhileFetching:h;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#x&&this.#C(),this.#x&&(u||this.#O(f,i,s),l&&this.#i(l,f)),!o&&this.#m&&this.#g){let h=this.#g,p;for(;p=h?.shift();)this.#r?.(...p)}return this}pop(){try{for(;this.#a;){let e=this.#s[this.#d];if(this.#M(!0),this.#c(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#m&&this.#g){let e=this.#g,n;for(;n=e?.shift();)this.#r?.(...n)}}}#M(e){let n=this.#d,r=this.#u[n],i=this.#s[n];return this.#D&&this.#c(i)?i.__abortController.abort(new Error("evicted")):(this.#_||this.#m)&&(this.#_&&this.#n?.(i,r,"evict"),this.#m&&this.#g?.push([i,r,"evict"])),this.#I(n),e&&(this.#u[n]=void 0,this.#s[n]=void 0,this.#v.push(n)),this.#a===1?(this.#d=this.#p=0,this.#v.length=0):this.#d=this.#y[n],this.#l.delete(r),this.#a--,n}has(e,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#c(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))i&&(i.has="stale",this.#i(i,s));else return r&&this.#k(s),i&&(i.has="hit",this.#i(i,s)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){let{allowStale:r=this.allowStale}=n,i=this.#l.get(e);if(i===void 0||!r&&this.#w(i))return;let s=this.#s[i];return this.#c(s)?s.__staleWhileFetching:s}#N(e,n,r,i){let s=n===void 0?void 0:this.#s[n];if(this.#c(s))return s;let o=new Ic,{signal:a}=r;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:r,context:i},u=(y,k=!1)=>{let{aborted:g}=o.signal,m=r.ignoreFetchAbort&&y!==void 0;if(r.status&&(g&&!k?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,m&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),g&&!m&&!k)return f(o.signal.reason);let d=p;return this.#s[n]===p&&(y===void 0?d.__staleWhileFetching?this.#s[n]=d.__staleWhileFetching:this.#R(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,y,l.options))),y},c=y=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=y),f(y)),f=y=>{let{aborted:k}=o.signal,g=k&&r.allowStaleOnFetchAbort,m=g||r.allowStaleOnFetchRejection,d=m||r.noDeleteOnFetchRejection,w=p;if(this.#s[n]===p&&(!d||w.__staleWhileFetching===void 0?this.#R(e,"fetch"):g||(this.#s[n]=w.__staleWhileFetching)),m)return r.status&&w.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),w.__staleWhileFetching;if(w.__returned===w)throw y},h=(y,k)=>{let g=this.#o?.(e,s,l);g&&g instanceof Promise&&g.then(m=>y(m===void 0?void 0:m),k),o.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(y(void 0),r.allowStaleOnFetchAbort&&(y=m=>u(m,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(u,c),b=Object.assign(p,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return n===void 0?(this.set(e,b,{...l.options,status:void 0}),n=this.#l.get(e)):this.#s[n]=b,b}#c(e){if(!this.#D)return!1;let n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Ic}async fetch(e,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:y,forceRefresh:k=!1,status:g,signal:m}=n;if(!this.#D)return g&&(g.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:g});let d={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:b,ignoreFetchAbort:p,status:g,signal:m},w=this.#l.get(e);if(w===void 0){g&&(g.fetch="miss");let T=this.#N(e,w,d,y);return T.__returned=T}else{let T=this.#s[w];if(this.#c(T)){let F=r&&T.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",F&&(g.returnedStale=!0)),F?T.__staleWhileFetching:T.__returned=T}let D=this.#w(w);if(!k&&!D)return g&&(g.fetch="hit"),this.#j(w),i&&this.#k(w),g&&this.#i(g,w),T;let S=this.#N(e,w,d,y),A=S.__staleWhileFetching!==void 0&&r;return g&&(g.fetch=D?"stale":"refresh",A&&D&&(g.returnedStale=!0)),A?S.__staleWhileFetching:S.__returned=S}}async forceFetch(e,n={}){let r=await this.fetch(e,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,n={}){let r=this.#h;if(!r)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=n,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=r(e,a,{options:o,context:i});return this.set(e,l,o),l}get(e,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=n,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#c(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&r&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),r?l.__staleWhileFetching:void 0):(s||this.#R(e,"expire"),o&&r&&(o.returnedStale=!0),r?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#j(a),i&&this.#k(a),l))}else o&&(o.get="miss")}#B(e,n){this.#b[n]=e,this.#y[e]=n}#j(e){e!==this.#p&&(e===this.#d?this.#d=this.#y[e]:this.#B(this.#b[e],this.#y[e]),this.#B(this.#p,e),this.#p=e)}delete(e){return this.#R(e,"delete")}#R(e,n){let r=!1;if(this.#a!==0){let i=this.#l.get(e);if(i!==void 0)if(r=!0,this.#a===1)this.#U(n);else{this.#I(i);let s=this.#s[i];if(this.#c(s)?s.__abortController.abort(new Error("deleted")):(this.#_||this.#m)&&(this.#_&&this.#n?.(s,e,n),this.#m&&this.#g?.push([s,e,n])),this.#l.delete(e),this.#u[i]=void 0,this.#s[i]=void 0,i===this.#p)this.#p=this.#b[i];else if(i===this.#d)this.#d=this.#y[i];else{let o=this.#b[i];this.#y[o]=this.#y[i];let a=this.#y[i];this.#b[a]=this.#b[i]}this.#a--,this.#v.push(i)}}if(this.#m&&this.#g?.length){let i=this.#g,s;for(;s=i?.shift();)this.#r?.(...s)}return r}clear(){return this.#U("delete")}#U(e){for(let n of this.#A({allowStale:!0})){let r=this.#s[n];if(this.#c(r))r.__abortController.abort(new Error("deleted"));else{let i=this.#u[n];this.#_&&this.#n?.(r,i,e),this.#m&&this.#g?.push([r,i,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#u.fill(void 0),this.#x&&this.#E&&(this.#x.fill(0),this.#E.fill(0)),this.#S&&this.#S.fill(0),this.#d=0,this.#p=0,this.#v.length=0,this.#f=0,this.#a=0,this.#m&&this.#g){let n=this.#g,r;for(;r=n?.shift();)this.#r?.(...r)}}};Lc.LRUCache=wg});var Tg=x(ct=>{"use strict";var xz=ct&&ct.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ct,"__esModule",{value:!0});ct.Minipass=ct.isWritable=ct.isReadable=ct.isStream=void 0;var V2=typeof process=="object"&&process?process:{stdout:null,stderr:null},kg=N("node:events"),Z2=xz(N("node:stream")),_z=N("node:string_decoder"),Dz=t=>!!t&&typeof t=="object"&&(t instanceof Uc||t instanceof Z2.default||(0,ct.isReadable)(t)||(0,ct.isWritable)(t));ct.isStream=Dz;var vz=t=>!!t&&typeof t=="object"&&t instanceof kg.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Z2.default.Writable.prototype.pipe;ct.isReadable=vz;var Sz=t=>!!t&&typeof t=="object"&&t instanceof kg.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";ct.isWritable=Sz;var On=Symbol("EOF"),In=Symbol("maybeEmitEnd"),lr=Symbol("emittedEnd"),Pc=Symbol("emittingEnd"),aa=Symbol("emittedError"),qc=Symbol("closed"),Y2=Symbol("read"),Mc=Symbol("flush"),K2=Symbol("flushChunk"),Kt=Symbol("encoding"),_s=Symbol("decoder"),Be=Symbol("flowing"),la=Symbol("paused"),Ds=Symbol("resume"),je=Symbol("buffer"),ut=Symbol("pipes"),Ue=Symbol("bufferLength"),xg=Symbol("bufferPush"),Nc=Symbol("bufferShift"),it=Symbol("objectMode"),Fe=Symbol("destroyed"),_g=Symbol("error"),Dg=Symbol("emitData"),Q2=Symbol("emitEnd"),vg=Symbol("emitEnd2"),cn=Symbol("async"),Sg=Symbol("abort"),Bc=Symbol("aborted"),ua=Symbol("signal"),ii=Symbol("dataListeners"),xt=Symbol("discarded"),ca=t=>Promise.resolve().then(t),Ez=t=>t(),kz=t=>t==="end"||t==="finish"||t==="prefinish",Tz=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Az=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),jc=class{src;dest;opts;ondrain;constructor(e,n,r){this.src=e,this.dest=n,this.opts=r,this.ondrain=()=>e[Ds](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Eg=class extends jc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,n,r){super(e,n,r),this.proxyErrors=i=>n.emit("error",i),e.on("error",this.proxyErrors)}},Cz=t=>!!t.objectMode,Fz=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",Uc=class extends kg.EventEmitter{[Be]=!1;[la]=!1;[ut]=[];[je]=[];[it];[Kt];[cn];[_s];[On]=!1;[lr]=!1;[Pc]=!1;[qc]=!1;[aa]=null;[Ue]=0;[Fe]=!1;[ua];[Bc]=!1;[ii]=0;[xt]=!1;writable=!0;readable=!0;constructor(...e){let n=e[0]||{};if(super(),n.objectMode&&typeof n.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");Cz(n)?(this[it]=!0,this[Kt]=null):Fz(n)?(this[Kt]=n.encoding,this[it]=!1):(this[it]=!1,this[Kt]=null),this[cn]=!!n.async,this[_s]=this[Kt]?new _z.StringDecoder(this[Kt]):null,n&&n.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[je]}),n&&n.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ut]});let{signal:r}=n;r&&(this[ua]=r,r.aborted?this[Sg]():r.addEventListener("abort",()=>this[Sg]()))}get bufferLength(){return this[Ue]}get encoding(){return this[Kt]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[it]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[cn]}set async(e){this[cn]=this[cn]||!!e}[Sg](){this[Bc]=!0,this.emit("abort",this[ua]?.reason),this.destroy(this[ua]?.reason)}get aborted(){return this[Bc]}set aborted(e){}write(e,n,r){if(this[Bc])return!1;if(this[On])throw new Error("write after end");if(this[Fe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof n=="function"&&(r=n,n="utf8"),n||(n="utf8");let i=this[cn]?ca:Ez;if(!this[it]&&!Buffer.isBuffer(e)){if(Az(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(Tz(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[it]?(this[Be]&&this[Ue]!==0&&this[Mc](!0),this[Be]?this.emit("data",e):this[xg](e),this[Ue]!==0&&this.emit("readable"),r&&i(r),this[Be]):e.length?(typeof e=="string"&&!(n===this[Kt]&&!this[_s]?.lastNeed)&&(e=Buffer.from(e,n)),Buffer.isBuffer(e)&&this[Kt]&&(e=this[_s].write(e)),this[Be]&&this[Ue]!==0&&this[Mc](!0),this[Be]?this.emit("data",e):this[xg](e),this[Ue]!==0&&this.emit("readable"),r&&i(r),this[Be]):(this[Ue]!==0&&this.emit("readable"),r&&i(r),this[Be])}read(e){if(this[Fe])return null;if(this[xt]=!1,this[Ue]===0||e===0||e&&e>this[Ue])return this[In](),null;this[it]&&(e=null),this[je].length>1&&!this[it]&&(this[je]=[this[Kt]?this[je].join(""):Buffer.concat(this[je],this[Ue])]);let n=this[Y2](e||null,this[je][0]);return this[In](),n}[Y2](e,n){if(this[it])this[Nc]();else{let r=n;e===r.length||e===null?this[Nc]():typeof r=="string"?(this[je][0]=r.slice(e),n=r.slice(0,e),this[Ue]-=e):(this[je][0]=r.subarray(e),n=r.subarray(0,e),this[Ue]-=e)}return this.emit("data",n),!this[je].length&&!this[On]&&this.emit("drain"),n}end(e,n,r){return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n="utf8"),e!==void 0&&this.write(e,n),r&&this.once("end",r),this[On]=!0,this.writable=!1,(this[Be]||!this[la])&&this[In](),this}[Ds](){this[Fe]||(!this[ii]&&!this[ut].length&&(this[xt]=!0),this[la]=!1,this[Be]=!0,this.emit("resume"),this[je].length?this[Mc]():this[On]?this[In]():this.emit("drain"))}resume(){return this[Ds]()}pause(){this[Be]=!1,this[la]=!0,this[xt]=!1}get destroyed(){return this[Fe]}get flowing(){return this[Be]}get paused(){return this[la]}[xg](e){this[it]?this[Ue]+=1:this[Ue]+=e.length,this[je].push(e)}[Nc](){return this[it]?this[Ue]-=1:this[Ue]-=this[je][0].length,this[je].shift()}[Mc](e=!1){do;while(this[K2](this[Nc]())&&this[je].length);!e&&!this[je].length&&!this[On]&&this.emit("drain")}[K2](e){return this.emit("data",e),this[Be]}pipe(e,n){if(this[Fe])return e;this[xt]=!1;let r=this[lr];return n=n||{},e===V2.stdout||e===V2.stderr?n.end=!1:n.end=n.end!==!1,n.proxyErrors=!!n.proxyErrors,r?n.end&&e.end():(this[ut].push(n.proxyErrors?new Eg(this,e,n):new jc(this,e,n)),this[cn]?ca(()=>this[Ds]()):this[Ds]()),e}unpipe(e){let n=this[ut].find(r=>r.dest===e);n&&(this[ut].length===1?(this[Be]&&this[ii]===0&&(this[Be]=!1),this[ut]=[]):this[ut].splice(this[ut].indexOf(n),1),n.unpipe())}addListener(e,n){return this.on(e,n)}on(e,n){let r=super.on(e,n);if(e==="data")this[xt]=!1,this[ii]++,!this[ut].length&&!this[Be]&&this[Ds]();else if(e==="readable"&&this[Ue]!==0)super.emit("readable");else if(kz(e)&&this[lr])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[aa]){let i=n;this[cn]?ca(()=>i.call(this,this[aa])):i.call(this,this[aa])}return r}removeListener(e,n){return this.off(e,n)}off(e,n){let r=super.off(e,n);return e==="data"&&(this[ii]=this.listeners("data").length,this[ii]===0&&!this[xt]&&!this[ut].length&&(this[Be]=!1)),r}removeAllListeners(e){let n=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[ii]=0,!this[xt]&&!this[ut].length&&(this[Be]=!1)),n}get emittedEnd(){return this[lr]}[In](){!this[Pc]&&!this[lr]&&!this[Fe]&&this[je].length===0&&this[On]&&(this[Pc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[qc]&&this.emit("close"),this[Pc]=!1)}emit(e,...n){let r=n[0];if(e!=="error"&&e!=="close"&&e!==Fe&&this[Fe])return!1;if(e==="data")return!this[it]&&!r?!1:this[cn]?(ca(()=>this[Dg](r)),!0):this[Dg](r);if(e==="end")return this[Q2]();if(e==="close"){if(this[qc]=!0,!this[lr]&&!this[Fe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[aa]=r,super.emit(_g,r);let s=!this[ua]||this.listeners("error").length?super.emit("error",r):!1;return this[In](),s}else if(e==="resume"){let s=super.emit("resume");return this[In](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,...n);return this[In](),i}[Dg](e){for(let r of this[ut])r.dest.write(e)===!1&&this.pause();let n=this[xt]?!1:super.emit("data",e);return this[In](),n}[Q2](){return this[lr]?!1:(this[lr]=!0,this.readable=!1,this[cn]?(ca(()=>this[vg]()),!0):this[vg]())}[vg](){if(this[_s]){let n=this[_s].end();if(n){for(let r of this[ut])r.dest.write(n);this[xt]||super.emit("data",n)}}for(let n of this[ut])n.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[it]||(e.dataLength=0);let n=this.promise();return this.on("data",r=>{e.push(r),this[it]||(e.dataLength+=r.length)}),await n,e}async concat(){if(this[it])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Kt]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,n)=>{this.on(Fe,()=>n(new Error("stream destroyed"))),this.on("error",r=>n(r)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[xt]=!1;let e=!1,n=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return n();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[On])return n();let s,o,a=f=>{this.off("data",l),this.off("end",u),this.off(Fe,c),n(),o(f)},l=f=>{this.off("error",a),this.off("end",u),this.off(Fe,c),this.pause(),s({value:f,done:!!this[On]})},u=()=>{this.off("error",a),this.off("data",l),this.off(Fe,c),n(),s({done:!0,value:void 0})},c=()=>a(new Error("stream destroyed"));return new Promise((f,h)=>{o=h,s=f,this.once(Fe,c),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:n,return:n,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[xt]=!1;let e=!1,n=()=>(this.pause(),this.off(_g,n),this.off(Fe,n),this.off("end",n),e=!0,{done:!0,value:void 0}),r=()=>{if(e)return n();let i=this.read();return i===null?n():{done:!1,value:i}};return this.once("end",n),this.once(_g,n),this.once(Fe,n),{next:r,throw:n,return:n,[Symbol.iterator](){return this}}}destroy(e){if(this[Fe])return e?this.emit("error",e):this.emit(Fe),this;this[Fe]=!0,this[xt]=!0,this[je].length=0,this[Ue]=0;let n=this;return typeof n.close=="function"&&!this[qc]&&n.close(),e?this.emit("error",e):this.emit(Fe),this}static get isStream(){return ct.isStream}};ct.Minipass=Uc});var hA=x(pe=>{"use strict";var Rz=pe&&pe.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Oz=pe&&pe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Iz=pe&&pe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Rz(e,t,n);return Oz(e,t),e};Object.defineProperty(pe,"__esModule",{value:!0});pe.PathScurry=pe.Path=pe.PathScurryDarwin=pe.PathScurryPosix=pe.PathScurryWin32=pe.PathScurryBase=pe.PathPosix=pe.PathWin32=pe.PathBase=pe.ChildrenCache=pe.ResolveCache=void 0;var rA=G2(),Gc=N("node:path"),Lz=N("node:url"),ha=N("fs"),Pz=Iz(N("node:fs")),qz=ha.realpathSync.native,zc=N("node:fs/promises"),J2=Tg(),pa={lstatSync:ha.lstatSync,readdir:ha.readdir,readdirSync:ha.readdirSync,readlinkSync:ha.readlinkSync,realpathSync:qz,promises:{lstat:zc.lstat,readdir:zc.readdir,readlink:zc.readlink,realpath:zc.realpath}},iA=t=>!t||t===pa||t===Pz?pa:{...pa,...t,promises:{...pa.promises,...t.promises||{}}},sA=/^\\\\\?\\([a-z]:)\\?$/i,Mz=t=>t.replace(/\//g,"\\").replace(sA,"$1\\"),Nz=/[\\\/]/,qt=0,oA=1,aA=2,fn=4,lA=6,uA=8,si=10,cA=12,Pt=15,fa=~Pt,Ag=16,X2=32,da=64,Qt=128,Wc=256,Hc=512,eA=da|Qt|Hc,Bz=1023,Cg=t=>t.isFile()?uA:t.isDirectory()?fn:t.isSymbolicLink()?si:t.isCharacterDevice()?aA:t.isBlockDevice()?lA:t.isSocket()?cA:t.isFIFO()?oA:qt,tA=new Map,ma=t=>{let e=tA.get(t);if(e)return e;let n=t.normalize("NFKD");return tA.set(t,n),n},nA=new Map,$c=t=>{let e=nA.get(t);if(e)return e;let n=ma(t.toLowerCase());return nA.set(t,n),n},ga=class extends rA.LRUCache{constructor(){super({max:256})}};pe.ResolveCache=ga;var Vc=class extends rA.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:n=>n.length+1})}};pe.ChildrenCache=Vc;var fA=Symbol("PathScurry setAsCwd"),Ye=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#n;get mode(){return this.#n}#r;get nlink(){return this.#r}#o;get uid(){return this.#o}#h;get gid(){return this.#h}#a;get rdev(){return this.#a}#f;get blksize(){return this.#f}#l;get ino(){return this.#l}#u;get size(){return this.#u}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#b;get mtimeMs(){return this.#b}#d;get ctimeMs(){return this.#d}#p;get birthtimeMs(){return this.#p}#v;get atime(){return this.#v}#g;get mtime(){return this.#g}#S;get ctime(){return this.#S}#E;get birthtime(){return this.#E}#x;#_;#D;#m;#C;#k;#i;#O;#w;#F;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,n=qt,r,i,s,o,a){this.name=e,this.#x=s?$c(e):ma(e),this.#i=n&Bz,this.nocase=s,this.roots=i,this.root=r||this,this.#O=o,this.#D=a.fullpath,this.#C=a.relative,this.#k=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=iA(a.fs)}depth(){return this.#_!==void 0?this.#_:this.parent?this.#_=this.parent.depth()+1:this.#_=0}childrenCache(){return this.#O}resolve(e){if(!e)return this;let n=this.getRootString(e),i=e.substring(n.length).split(this.splitSep);return n?this.getRoot(n).#I(i):this.#I(i)}#I(e){let n=this;for(let r of e)n=n.child(r);return n}children(){let e=this.#O.get(this);if(e)return e;let n=Object.assign([],{provisional:0});return this.#O.set(this,n),this.#i&=~Ag,n}child(e,n){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let r=this.children(),i=this.nocase?$c(e):ma(e);for(let l of r)if(l.#x===i)return l;let s=this.parent?this.sep:"",o=this.#D?this.#D+s+e:void 0,a=this.newChild(e,qt,{...n,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Qt),r.push(a),a}relative(){if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let e=this.name,n=this.parent;if(!n)return this.#C=this.name;let r=n.relative();return r+(!r||!n.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#k!==void 0)return this.#k;let e=this.name,n=this.parent;if(!n)return this.#k=this.fullpathPosix();let r=n.relativePosix();return r+(!r||!n.parent?"":"/")+e}fullpath(){if(this.#D!==void 0)return this.#D;let e=this.name,n=this.parent;if(!n)return this.#D=this.name;let i=n.fullpath()+(n.parent?this.sep:"")+e;return this.#D=i}fullpathPosix(){if(this.#m!==void 0)return this.#m;if(this.sep==="/")return this.#m=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#m=`//?/${i}`:this.#m=i}let e=this.parent,n=e.fullpathPosix(),r=n+(!n||!e.parent?"":"/")+this.name;return this.#m=r}isUnknown(){return(this.#i&Pt)===qt}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&Pt)===uA}isDirectory(){return(this.#i&Pt)===fn}isCharacterDevice(){return(this.#i&Pt)===aA}isBlockDevice(){return(this.#i&Pt)===lA}isFIFO(){return(this.#i&Pt)===oA}isSocket(){return(this.#i&Pt)===cA}isSymbolicLink(){return(this.#i&si)===si}lstatCached(){return this.#i&X2?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#F}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&Pt;return!(e!==qt&&e!==si||this.#i&Wc||this.#i&Qt)}calledReaddir(){return!!(this.#i&Ag)}isENOENT(){return!!(this.#i&Qt)}isNamed(e){return this.nocase?this.#x===$c(e):this.#x===ma(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let n=await this.#e.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(n);if(r)return this.#w=r}catch(n){this.#c(n.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let n=this.#e.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(n);if(r)return this.#w=r}catch(n){this.#c(n.code);return}}#L(e){this.#i|=Ag;for(let n=e.provisional;n<e.length;n++){let r=e[n];r&&r.#P()}}#P(){this.#i&Qt||(this.#i=(this.#i|Qt)&fa,this.#T())}#T(){let e=this.children();e.provisional=0;for(let n of e)n.#P()}#A(){this.#i|=Hc,this.#q()}#q(){if(this.#i&da)return;let e=this.#i;(e&Pt)===fn&&(e&=fa),this.#i=e|da,this.#T()}#M(e=""){e==="ENOTDIR"||e==="EPERM"?this.#q():e==="ENOENT"?this.#P():this.children().provisional=0}#N(e=""){e==="ENOTDIR"?this.parent.#q():e==="ENOENT"&&this.#P()}#c(e=""){let n=this.#i;n|=Wc,e==="ENOENT"&&(n|=Qt),(e==="EINVAL"||e==="UNKNOWN")&&(n&=fa),this.#i=n,e==="ENOTDIR"&&this.parent&&this.parent.#q()}#B(e,n){return this.#R(e,n)||this.#j(e,n)}#j(e,n){let r=Cg(e),i=this.newChild(e.name,r,{parent:this}),s=i.#i&Pt;return s!==fn&&s!==si&&s!==qt&&(i.#i|=da),n.unshift(i),n.provisional++,i}#R(e,n){for(let r=n.provisional;r<n.length;r++){let i=n[r];if((this.nocase?$c(e.name):ma(e.name))===i.#x)return this.#U(e,i,r,n)}}#U(e,n,r,i){let s=n.name;return n.#i=n.#i&fa|Cg(e),s!==e.name&&(n.name=e.name),r!==i.provisional&&(r===i.length-1?i.pop():i.splice(r,1),i.unshift(n)),i.provisional++,n}async lstat(){if((this.#i&Qt)===0)try{return this.#H(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#N(e.code)}}lstatSync(){if((this.#i&Qt)===0)try{return this.#H(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#N(e.code)}}#H(e){let{atime:n,atimeMs:r,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:c,gid:f,ino:h,mode:p,mtime:b,mtimeMs:y,nlink:k,rdev:g,size:m,uid:d}=e;this.#v=n,this.#y=r,this.#E=i,this.#p=s,this.#f=o,this.#s=a,this.#S=l,this.#d=u,this.#t=c,this.#h=f,this.#l=h,this.#n=p,this.#g=b,this.#b=y,this.#r=k,this.#a=g,this.#u=m,this.#o=d;let w=Cg(e);this.#i=this.#i&fa|w|X2,w!==qt&&w!==fn&&w!==si&&(this.#i|=da)}#W=[];#$=!1;#G(e){this.#$=!1;let n=this.#W.slice();this.#W.length=0,n.forEach(r=>r(null,e))}readdirCB(e,n=!1){if(!this.canReaddir()){n?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let s=r.slice(0,r.provisional);n?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#W.push(e),this.#$)return;this.#$=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#M(s.code),r.provisional=0;else{for(let a of o)this.#B(a,r);this.#L(r)}this.#G(r.slice(0,r.provisional))})}#z;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let n=this.fullpath();if(this.#z)await this.#z;else{let r=()=>{};this.#z=new Promise(i=>r=i);try{for(let i of await this.#e.promises.readdir(n,{withFileTypes:!0}))this.#B(i,e);this.#L(e)}catch(i){this.#M(i.code),e.provisional=0}this.#z=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let n=this.fullpath();try{for(let r of this.#e.readdirSync(n,{withFileTypes:!0}))this.#B(r,e);this.#L(e)}catch(r){this.#M(r.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&eA)return!1;let e=Pt&this.#i;return e===qt||e===fn||e===si}shouldWalk(e,n){return(this.#i&fn)===fn&&!(this.#i&eA)&&!e.has(this)&&(!n||n(this))}async realpath(){if(this.#F)return this.#F;if(!((Hc|Wc|Qt)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#F=this.resolve(e)}catch{this.#A()}}realpathSync(){if(this.#F)return this.#F;if(!((Hc|Wc|Qt)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#F=this.resolve(e)}catch{this.#A()}}[fA](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let n=new Set([]),r=[],i=this;for(;i&&i.parent;)n.add(i),i.#C=r.join(this.sep),i.#k=r.join("/"),i=i.parent,r.push("..");for(i=e;i&&i.parent&&!n.has(i);)i.#C=void 0,i.#k=void 0,i=i.parent}};pe.PathBase=Ye;var ya=class t extends Ye{sep="\\";splitSep=Nz;constructor(e,n=qt,r,i,s,o,a){super(e,n,r,i,s,o,a)}newChild(e,n=qt,r={}){return new t(e,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return Gc.win32.parse(e).root}getRoot(e){if(e=Mz(e.toUpperCase()),e===this.root.name)return this.root;for(let[n,r]of Object.entries(this.roots))if(this.sameRoot(e,n))return this.roots[e]=r;return this.roots[e]=new xa(e,this).root}sameRoot(e,n=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(sA,"$1\\"),e===n}};pe.PathWin32=ya;var ba=class t extends Ye{splitSep="/";sep="/";constructor(e,n=qt,r,i,s,o,a){super(e,n,r,i,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,n=qt,r={}){return new t(e,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}};pe.PathPosix=ba;var wa=class{root;rootPath;roots;cwd;#e;#t;#n;nocase;#r;constructor(e=process.cwd(),n,r,{nocase:i,childrenCacheSize:s=16*1024,fs:o=pa}={}){this.#r=iA(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,Lz.fileURLToPath)(e));let a=n.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new ga,this.#t=new ga,this.#n=new Vc(s);let l=a.substring(this.rootPath.length).split(r);if(l.length===1&&!l[0]&&l.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let u=this.root,c=l.length-1,f=n.sep,h=this.rootPath,p=!1;for(let b of l){let y=c--;u=u.child(b,{relative:new Array(y).fill("..").join(f),relativePosix:new Array(y).fill("..").join("/"),fullpath:h+=(p?"":f)+b}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let n="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(n=n?`${o}/${n}`:o,this.isAbsolute(o)))break}let r=this.#e.get(n);if(r!==void 0)return r;let i=this.cwd.resolve(n).fullpath();return this.#e.set(n,i),i}resolvePosix(...e){let n="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(n=n?`${o}/${n}`:o,this.isAbsolute(o)))break}let r=this.#t.get(n);if(r!==void 0)return r;let i=this.cwd.resolve(n).fullpathPosix();return this.#t.set(n,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,n={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r}=n;if(e.canReaddir()){let i=await e.readdir();return r?i:i.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,n={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0}=n;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e.withFileTypes,e=this.cwd);let r=await e.readlink();return n?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e.withFileTypes,e=this.cwd);let r=e.readlinkSync();return n?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e.withFileTypes,e=this.cwd);let r=await e.realpath();return n?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e.withFileTypes,e=this.cwd);let r=e.realpathSync();return n?r:r?.fullpath()}async walk(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n,a=[];(!s||s(e))&&a.push(r?e:e.fullpath());let l=new Set,u=(f,h)=>{l.add(f),f.readdirCB((p,b)=>{if(p)return h(p);let y=b.length;if(!y)return h();let k=()=>{--y===0&&h()};for(let g of b)(!s||s(g))&&a.push(r?g:g.fullpath()),i&&g.isSymbolicLink()?g.realpath().then(m=>m?.isUnknown()?m.lstat():m).then(m=>m?.shouldWalk(l,o)?u(m,k):k()):g.shouldWalk(l,o)?u(g,k):k()},!0)},c=e;return new Promise((f,h)=>{u(c,p=>{if(p)return h(p);f(a)})})}walkSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n,a=[];(!s||s(e))&&a.push(r?e:e.fullpath());let l=new Set([e]);for(let u of l){let c=u.readdirSync();for(let f of c){(!s||s(f))&&a.push(r?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(i&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,n={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd),this.stream(e,n)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n;(!s||s(e))&&(yield r?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let c of u){(!s||s(c))&&(yield r?c:c.fullpath());let f=c;if(c.isSymbolicLink()){if(!(i&&(f=c.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(a,o)&&a.add(f)}}}stream(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n,a=new J2.Minipass({objectMode:!0});(!s||s(e))&&a.write(r?e:e.fullpath());let l=new Set,u=[e],c=0,f=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){c===0&&a.end();return}c++,l.add(p);let b=(k,g,m=!1)=>{if(k)return a.emit("error",k);if(i&&!m){let d=[];for(let w of g)w.isSymbolicLink()&&d.push(w.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(d.length){Promise.all(d).then(()=>b(null,g,!0));return}}for(let d of g)d&&(!s||s(d))&&(a.write(r?d:d.fullpath())||(h=!0));c--;for(let d of g){let w=d.realpathCached()||d;w.shouldWalk(l,o)&&u.push(w)}h&&!a.flowing?a.once("drain",f):y||f()},y=!0;p.readdirCB(b,!0),y=!1}};return f(),a}streamSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ye||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:s,walkFilter:o}=n,a=new J2.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(r?e:e.fullpath());let u=[e],c=0,f=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){c===0&&a.end();return}c++,l.add(p);let b=p.readdirSync();for(let y of b)(!s||s(y))&&(a.write(r?y:y.fullpath())||(h=!0));c--;for(let y of b){let k=y;if(y.isSymbolicLink()){if(!(i&&(k=y.realpathSync())))continue;k.isUnknown()&&k.lstatSync()}k.shouldWalk(l,o)&&u.push(k)}}h&&!a.flowing&&a.once("drain",f)};return f(),a}chdir(e=this.cwd){let n=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[fA](n)}};pe.PathScurryBase=wa;var xa=class extends wa{sep="\\";constructor(e=process.cwd(),n={}){let{nocase:r=!0}=n;super(e,Gc.win32,"\\",{...n,nocase:r}),this.nocase=r;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return Gc.win32.parse(e).root.toUpperCase()}newRoot(e){return new ya(this.rootPath,fn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};pe.PathScurryWin32=xa;var _a=class extends wa{sep="/";constructor(e=process.cwd(),n={}){let{nocase:r=!1}=n;super(e,Gc.posix,"/",{...n,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new ba(this.rootPath,fn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};pe.PathScurryPosix=_a;var Yc=class extends _a{constructor(e=process.cwd(),n={}){let{nocase:r=!0}=n;super(e,{...n,nocase:r})}};pe.PathScurryDarwin=Yc;pe.Path=process.platform==="win32"?ya:ba;pe.PathScurry=process.platform==="win32"?xa:process.platform==="darwin"?Yc:_a});var Rg=x(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.Pattern=void 0;var jz=Mn(),Uz=t=>t.length>=1,zz=t=>t.length>=1,Fg=class t{#e;#t;#n;length;#r;#o;#h;#a;#f;#l;#u=!0;constructor(e,n,r,i){if(!Uz(e))throw new TypeError("empty pattern list");if(!zz(n))throw new TypeError("empty glob list");if(n.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=n,this.#n=r,this.#r=i,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[c,f,h,p,...b]=this.#t;u[0]===""&&(u.shift(),b.shift());let y=[s,o,a,l,""].join("/"),k=[c,f,h,p,""].join("/");this.#e=[y,...u],this.#t=[k,...b],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#t;o[0]===""&&(o.shift(),l.shift());let u=s+"/",c=a+"/";this.#e=[u,...o],this.#t=[c,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===jz.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#h=this.#h||(this.#n===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#t,this.#n+1,this.#r),this.#o.#l=this.#l,this.#o.#f=this.#f,this.#o.#a=this.#a,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#f!==void 0?this.#f:this.#f=this.#r==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=this.#r==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};Kc.Pattern=Fg});var Ig=x(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.Ignore=void 0;var pA=Mn(),Wz=Rg(),$z=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Og=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:n,nocase:r,noext:i,noglobstar:s,platform:o=$z}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:n,nocase:r,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let n=new pA.Minimatch(e,this.mmopts);for(let r=0;r<n.set.length;r++){let i=n.set[r],s=n.globParts[r];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new Wz.Pattern(i,s,0,this.platform),a=new pA.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let n=e.fullpath(),r=`${n}/`,i=e.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(n)||o.match(r))return!0;return!1}childrenIgnored(e){let n=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(r))return!0;for(let i of this.absoluteChildren)if(i.match(n))return!0;return!1}};Qc.Ignore=Og});var mA=x(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.Processor=hn.SubWalks=hn.MatchRecord=hn.HasWalkedCache=void 0;var dA=Mn(),Zc=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,n){return this.store.get(e.fullpath())?.has(n.globString())}storeWalked(e,n){let r=e.fullpath(),i=this.store.get(r);i?i.add(n.globString()):this.store.set(r,new Set([n.globString()]))}};hn.HasWalkedCache=Zc;var Jc=class{store=new Map;add(e,n,r){let i=(n?2:0)|(r?1:0),s=this.store.get(e);this.store.set(e,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([e,n])=>[e,!!(n&2),!!(n&1)])}};hn.MatchRecord=Jc;var Xc=class{store=new Map;add(e,n){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(i=>i.globString()===n.globString())||r.push(n):this.store.set(e,[n])}get(e){let n=this.store.get(e);if(!n)throw new Error("attempting to walk unknown path");return n}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};hn.SubWalks=Xc;var Lg=class t{hasWalkedCache;matches=new Jc;subwalks=new Xc;patterns;follow;dot;opts;constructor(e,n){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=n?n.copy():new Zc}processPatterns(e,n){this.patterns=n;let r=n.map(i=>[e,i]);for(let[i,s]of r){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let f=s.rest();if(f)s=f;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let l,u,c=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(l),s=u,c=!0;if(l=s.pattern(),u=s.rest(),c){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(i.resolve(l),a,f);continue}else if(l===dA.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let f=u?.pattern(),h=u?.rest();if(!u||(f===""||f===".")&&!h)this.matches.add(i,a,f===""||f===".");else if(f===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,a,!0)}}else l instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,n){let r=this.subwalks.get(e),i=this.child();for(let s of n)for(let o of r){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===dA.GLOBSTAR?i.testGlobstar(s,o,u,a):l instanceof RegExp?i.testRegExp(s,l,u,a):i.testString(s,l,u,a)}return i}testGlobstar(e,n,r,i){if((this.dot||!e.name.startsWith("."))&&(n.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,n):e.isSymbolicLink()&&(r&&n.checkFollowGlobstar()?this.subwalks.add(e,r):n.markFollowGlobstar()&&this.subwalks.add(e,n)))),r){let s=r.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,r.rest(),i);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,r)}else s instanceof RegExp&&this.testRegExp(e,s,r.rest(),i)}}testRegExp(e,n,r,i){n.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}testString(e,n,r,i){e.isNamed(n)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}};hn.Processor=Lg});var bA=x(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.GlobStream=ur.GlobWalker=ur.GlobUtil=void 0;var Hz=Tg(),gA=Ig(),yA=mA(),Gz=(t,e)=>typeof t=="string"?new gA.Ignore([t],e):Array.isArray(t)?new gA.Ignore(t,e):t,Da=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#n;signal;maxDepth;includeChildMatches;constructor(e,n,r){if(this.patterns=e,this.path=n,this.opts=r,this.#n=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#t=Gz(r.ignore??[],r),!this.includeChildMatches&&typeof this.#t.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#o(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,n){if(n&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,n)}matchCheckTest(e,n){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!n||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#r(e)?e:void 0}matchCheckSync(e,n){if(n&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,n)}matchFinish(e,n){if(this.#r(e))return;if(!this.includeChildMatches&&this.#t?.add){let s=`${e.relativePosix()}/**`;this.#t.add(s)}let r=this.opts.absolute===void 0?n:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+i:"."+i)}}async match(e,n,r){let i=await this.matchCheck(e,r);i&&this.matchFinish(i,n)}matchSync(e,n,r){let i=this.matchCheckSync(e,r);i&&this.matchFinish(i,n)}walkCB(e,n,r){this.signal?.aborted&&r(),this.walkCB2(e,n,new yA.Processor(this.opts),r)}walkCB2(e,n,r,i){if(this.#o(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,n,r,i));return}r.processPatterns(e,n);let s=1,o=()=>{--s===0&&i()};for(let[a,l,u]of r.matches.entries())this.#r(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,r,o):a.readdirCB((u,c)=>this.walkCB3(a,c,r,o),!0)}o()}walkCB3(e,n,r,i){r=r.filterEntries(e,n);let s=1,o=()=>{--s===0&&i()};for(let[a,l,u]of r.matches.entries())this.#r(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of r.subwalks.entries())s++,this.walkCB2(a,l,r.child(),o);o()}walkCBSync(e,n,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,n,new yA.Processor(this.opts),r)}walkCB2Sync(e,n,r,i){if(this.#o(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,n,r,i));return}r.processPatterns(e,n);let s=1,o=()=>{--s===0&&i()};for(let[a,l,u]of r.matches.entries())this.#r(a)||this.matchSync(a,l,u);for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,r,o)}o()}walkCB3Sync(e,n,r,i){r=r.filterEntries(e,n);let s=1,o=()=>{--s===0&&i()};for(let[a,l,u]of r.matches.entries())this.#r(a)||this.matchSync(a,l,u);for(let[a,l]of r.subwalks.entries())s++,this.walkCB2Sync(a,l,r.child(),o);o()}};ur.GlobUtil=Da;var Pg=class extends Da{matches=new Set;constructor(e,n,r){super(e,n,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,n)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?n(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};ur.GlobWalker=Pg;var qg=class extends Da{results;constructor(e,n,r){super(e,n,r),this.results=new Hz.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};ur.GlobStream=qg});var Ng=x(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.Glob=void 0;var Vz=Mn(),Yz=N("node:url"),ef=hA(),Kz=Rg(),tf=bA(),Qz=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Mg=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,n){if(!n)throw new TypeError("glob options required");if(this.withFileTypes=!!n.withFileTypes,this.signal=n.signal,this.follow=!!n.follow,this.dot=!!n.dot,this.dotRelative=!!n.dotRelative,this.nodir=!!n.nodir,this.mark=!!n.mark,n.cwd?(n.cwd instanceof URL||n.cwd.startsWith("file://"))&&(n.cwd=(0,Yz.fileURLToPath)(n.cwd)):this.cwd="",this.cwd=n.cwd||"",this.root=n.root,this.magicalBraces=!!n.magicalBraces,this.nobrace=!!n.nobrace,this.noext=!!n.noext,this.realpath=!!n.realpath,this.absolute=n.absolute,this.includeChildMatches=n.includeChildMatches!==!1,this.noglobstar=!!n.noglobstar,this.matchBase=!!n.matchBase,this.maxDepth=typeof n.maxDepth=="number"?n.maxDepth:1/0,this.stat=!!n.stat,this.ignore=n.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(n.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=n.platform||Qz,this.opts={...n,platform:this.platform},n.scurry){if(this.scurry=n.scurry,n.nocase!==void 0&&n.nocase!==n.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=n.platform==="win32"?ef.PathScurryWin32:n.platform==="darwin"?ef.PathScurryDarwin:n.platform?ef.PathScurryPosix:ef.PathScurry;this.scurry=new l(this.cwd,{nocase:n.nocase,fs:n.fs})}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",i={...n,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new Vz.Minimatch(l,i)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let c=a[u];if(!c)throw new Error("invalid pattern object");return new Kz.Pattern(l,c,0,this.platform)})}async walk(){return[...await new tf.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new tf.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new tf.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new tf.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};nf.Glob=Mg});var Bg=x(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.hasMagic=void 0;var Zz=Mn(),Jz=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let n of t)if(new Zz.Minimatch(n,e).hasMagic())return!0;return!1};rf.hasMagic=Jz});var DA=x(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.glob=ie.sync=ie.iterate=ie.iterateSync=ie.stream=ie.streamSync=ie.Ignore=ie.hasMagic=ie.Glob=ie.unescape=ie.escape=void 0;ie.globStreamSync=va;ie.globStream=jg;ie.globSync=Ug;ie.globIterateSync=Sa;ie.globIterate=zg;var wA=Mn(),oi=Ng(),Xz=Bg(),_A=Mn();Object.defineProperty(ie,"escape",{enumerable:!0,get:function(){return _A.escape}});Object.defineProperty(ie,"unescape",{enumerable:!0,get:function(){return _A.unescape}});var eW=Ng();Object.defineProperty(ie,"Glob",{enumerable:!0,get:function(){return eW.Glob}});var tW=Bg();Object.defineProperty(ie,"hasMagic",{enumerable:!0,get:function(){return tW.hasMagic}});var nW=Ig();Object.defineProperty(ie,"Ignore",{enumerable:!0,get:function(){return nW.Ignore}});function va(t,e={}){return new oi.Glob(t,e).streamSync()}function jg(t,e={}){return new oi.Glob(t,e).stream()}function Ug(t,e={}){return new oi.Glob(t,e).walkSync()}async function xA(t,e={}){return new oi.Glob(t,e).walk()}function Sa(t,e={}){return new oi.Glob(t,e).iterateSync()}function zg(t,e={}){return new oi.Glob(t,e).iterate()}ie.streamSync=va;ie.stream=Object.assign(jg,{sync:va});ie.iterateSync=Sa;ie.iterate=Object.assign(zg,{sync:Sa});ie.sync=Object.assign(Ug,{stream:va,iterate:Sa});ie.glob=Object.assign(xA,{glob:xA,globSync:Ug,sync:ie.sync,globStream:jg,stream:ie.stream,globStreamSync:va,streamSync:ie.streamSync,globIterate:zg,iterate:ie.iterate,globIterateSync:Sa,iterateSync:ie.iterateSync,Glob:oi.Glob,hasMagic:Xz.hasMagic,escape:wA.escape,unescape:wA.unescape});ie.glob.glob=ie.glob});var kA=x((yoe,EA)=>{"use strict";var SA=xd(),vs=N("path"),Wg=lT(),rW=v2(),iW=L2(),sW=U2(),oW=DA(),ai=EA.exports={},vA=/[\/\\]/g,aW=function(t,e){var n=[];return Wg(t).forEach(function(r){var i=r.indexOf("!")===0;i&&(r=r.slice(1));var s=e(r);i?n=rW(n,s):n=iW(n,s)}),n};ai.exists=function(){var t=vs.join.apply(vs,arguments);return SA.existsSync(t)};ai.expand=function(...t){var e=sW(t[0])?t.shift():{},n=Array.isArray(t[0])?t[0]:t;if(n.length===0)return[];var r=aW(n,function(i){return oW.sync(i,e)});return e.filter&&(r=r.filter(function(i){i=vs.join(e.cwd||"",i);try{return typeof e.filter=="function"?e.filter(i):SA.statSync(i)[e.filter]()}catch{return!1}})),r};ai.expandMapping=function(t,e,n){n=Object.assign({rename:function(s,o){return vs.join(s||"",o)}},n);var r=[],i={};return ai.expand(n,t).forEach(function(s){var o=s;n.flatten&&(o=vs.basename(o)),n.ext&&(o=o.replace(/(\.[^\/]*)?$/,n.ext));var a=n.rename(e,o,n);n.cwd&&(s=vs.join(n.cwd,s)),a=a.replace(vA,"/"),s=s.replace(vA,"/"),i[a]?i[a].src.push(s):(r.push({src:[s],dest:a}),i[a]=r[r.length-1])}),r};ai.normalizeFilesArray=function(t){var e=[];return t.forEach(function(n){var r;("src"in n||"dest"in n)&&e.push(n)}),e.length===0?[]:(e=_(e).chain().forEach(function(n){!("src"in n)||!n.src||(Array.isArray(n.src)?n.src=Wg(n.src):n.src=[n.src])}).map(function(n){var r=Object.assign({},n);if(delete r.src,delete r.dest,n.expand)return ai.expandMapping(n.src,n.dest,r).map(function(s){var o=Object.assign({},n);return o.orig=Object.assign({},n),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var i=Object.assign({},n);return i.orig=Object.assign({},n),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=n.src,o=Array.isArray(o)?Wg(o):[o],s.result=ai.expand(r,o)),s.result}}),"dest"in i&&(i.dest=n.dest),i}).flatten().value(),e)}});var Ss=x((woe,CA)=>{"use strict";var $g=xd(),TA=N("path"),lW=Iu(),uW=yv(),AA=Ud(),cW=Z1(),boe=N("stream").Stream,fW=ri().PassThrough,_t=CA.exports={};_t.file=kA();_t.collectStream=function(t,e){var n=[],r=0;t.on("error",e),t.on("data",function(i){n.push(i),r+=i.length}),t.on("end",function(){var i=Buffer.alloc(r),s=0;n.forEach(function(o){o.copy(i,s),s+=o.length}),e(null,i)})};_t.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};_t.defaults=function(t,e,n){var r=arguments;return r[0]=r[0]||{},cW(...r)};_t.isStream=function(t){return lW(t)};_t.lazyReadStream=function(t){return new uW.Readable(function(){return $g.createReadStream(t)})};_t.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):_t.isStream(t)?t.pipe(new fW):t};_t.sanitizePath=function(t){return AA(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};_t.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};_t.unixifyPath=function(t){return AA(t,!1).replace(/^\w+:/,"")};_t.walkdir=function(t,e,n){var r=[];typeof e=="function"&&(n=e,e=t),$g.readdir(t,function(i,s){var o=0,a,l;if(i)return n(i);(function u(){if(a=s[o++],!a)return n(null,r);l=TA.join(t,a),$g.stat(l,function(c,f){r.push({path:l,relative:TA.relative(e,l).replace(/\\/g,"/"),stats:f}),f&&f.isDirectory()?_t.walkdir(l,e,function(h,p){if(h)return n(h);p.forEach(function(b){r.push(b)}),u()}):u()})})()})}});var IA=x((RA,OA)=>{"use strict";var hW=N("util"),pW={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function FA(t,e){Error.captureStackTrace(this,this.constructor),this.message=pW[t]||t,this.code=t,this.data=e}hW.inherits(FA,Error);RA=OA.exports=FA});var NA=x((xoe,MA)=>{"use strict";var Vg=N("fs"),PA=h_(),LA=(fD(),DR(cD)),Hg=N("path"),pn=Ss(),dW=N("util").inherits,Ae=IA(),qA=ri().Transform,Gg=process.platform==="win32",ce=function(t,e){if(!(this instanceof ce))return new ce(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=pn.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),qA.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=LA.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=LA.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};dW(ce,qA);ce.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};ce.prototype._append=function(t,e){e=e||{};var n={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,n.data=e,this._entriesCount++,e.stats&&e.stats instanceof Vg.Stats?(n=this._updateQueueTaskWithStats(n,e.stats),n&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(n))):this._statQueue.push(n)};ce.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};ce.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};ce.prototype._moduleAppend=function(t,e,n){if(this._state.aborted){n();return}this._module.append(t,e,function(r){if(this._task=null,this._state.aborted){this._shutdown();return}if(r){this.emit("error",r),setImmediate(n);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}.bind(this))};ce.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new Ae("NOENDMETHOD"))};ce.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};ce.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};ce.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};ce.prototype._normalizeEntryData=function(t,e){t=pn.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var n=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=pn.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(n=!0,t.type="directory"):n&&(t.name+="/")),typeof t.mode=="number"?Gg?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Gg?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Gg&&n&&(t.mode=493)):t.mode===null&&(t.mode=n?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=pn.dateify(t.date),t};ce.prototype._onModuleError=function(t){this.emit("error",t)};ce.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};ce.prototype._onQueueTask=function(t,e){var n=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}this._task=t,this._moduleAppend(t.source,t.data,n)};ce.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}Vg.lstat(t.filepath,function(n,r){if(this._state.aborted){setImmediate(e);return}if(n){this._entriesCount--,this.emit("warning",n),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,r),t&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(t)),setImmediate(e)}.bind(this))};ce.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};ce.prototype._transform=function(t,e,n){t&&(this._pointer+=t.length),n(null,t)};ce.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=pn.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=pn.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=pn.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var n=Vg.readlinkSync(t.filepath),r=Hg.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Hg.relative(r,Hg.resolve(r,n)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new Ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new Ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new Ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};ce.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};ce.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new Ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new Ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=pn.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(pn.isStream(t))e.sourceType="stream";else return this.emit("error",new Ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};ce.prototype.directory=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new Ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var r=!1;typeof n=="function"?(r=n,n={}):typeof n!="object"&&(n={});var i={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var c=!1,f=Object.assign({},n);f.name=u.relative,f.prefix=e,f.stats=u.stat,f.callback=l.resume.bind(l);try{if(r){if(f=r(f),f===!1)c=!0;else if(typeof f!="object")throw new Ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(c){l.resume();return}this._append(u.absolute,f)}var l=PA(t,i);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};ce.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new Ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new Ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};ce.prototype.glob=function(t,e,n){this._pending++,e=pn.defaults(e,{stat:!0,pattern:t});function r(){this._pending--,this._maybeFinalize()}function i(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},n);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=PA(e.cwd||".",e);return o.on("error",i.bind(this)),o.on("match",s.bind(this)),o.on("end",r.bind(this)),this};ce.prototype.finalize=function(){if(this._state.aborted){var t=new Ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new Ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var n=this;return new Promise(function(r,i){var s;n._module.on("end",function(){s||r()}),n._module.on("error",function(o){s=!0,i(o)})})};ce.prototype.setFormat=function(t){return this._format?(this.emit("error",new Ae("FORMATSET")),this):(this._format=t,this)};ce.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new Ae("ABORTED")),this):this._state.module?(this.emit("error",new Ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};ce.prototype.symlink=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new Ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new Ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new Ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var r={};return r.type="symlink",r.name=t.replace(/\\/g,"/"),r.linkname=e.replace(/\\/g,"/"),r.sourceType="buffer",typeof n=="number"&&(r.mode=n),this._entriesCount++,this._queue.push({data:r,source:Buffer.concat([])}),this};ce.prototype.pointer=function(){return this._pointer};ce.prototype.use=function(t){return this._streams.push(t),this};MA.exports=ce});var of=x((_oe,BA)=>{"use strict";var sf=BA.exports=function(){};sf.prototype.getName=function(){};sf.prototype.getSize=function(){};sf.prototype.getLastModifiedDate=function(){};sf.prototype.isDirectory=function(){}});var af=x((Doe,jA)=>{"use strict";var Mt=jA.exports={};Mt.dateToDos=function(t,e){e=e||!1;var n=e?t.getFullYear():t.getUTCFullYear();if(n<1980)return 2162688;if(n>=2044)return 2141175677;var r={year:n,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return r.year-1980<<25|r.month+1<<21|r.date<<16|r.hours<<11|r.minutes<<5|r.seconds/2};Mt.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};Mt.fromDosTime=function(t){return Mt.dosToDate(t.readUInt32LE(0))};Mt.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};Mt.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};Mt.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};Mt.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};Mt.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};Mt.toDosTime=function(t){return Mt.getLongBytes(Mt.dateToDos(t))}});var Yg=x((voe,GA)=>{"use strict";var UA=af(),zA=8,WA=1,mW=4,gW=2,$A=64,HA=2048,Ke=GA.exports=function(){return this instanceof Ke?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ke};Ke.prototype.encode=function(){return UA.getShortBytes((this.descriptor?zA:0)|(this.utf8?HA:0)|(this.encryption?WA:0)|(this.strongEncryption?$A:0))};Ke.prototype.parse=function(t,e){var n=UA.getShortBytesValue(t,e),r=new Ke;return r.useDataDescriptor((n&zA)!==0),r.useUTF8ForNames((n&HA)!==0),r.useStrongEncryption((n&$A)!==0),r.useEncryption((n&WA)!==0),r.setSlidingDictionarySize((n&gW)!==0?8192:4096),r.setNumberOfShannonFanoTrees((n&mW)!==0?3:2),r};Ke.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ke.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ke.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ke.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ke.prototype.useDataDescriptor=function(t){this.descriptor=t};Ke.prototype.usesDataDescriptor=function(){return this.descriptor};Ke.prototype.useEncryption=function(t){this.encryption=t};Ke.prototype.usesEncryption=function(){return this.encryption};Ke.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ke.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ke.prototype.useUTF8ForNames=function(t){this.utf8=t};Ke.prototype.usesUTF8ForNames=function(){return this.utf8}});var YA=x((Soe,VA)=>{"use strict";VA.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Kg=x((Eoe,KA)=>{"use strict";KA.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Qg=x((koe,eC)=>{"use strict";var yW=N("util").inherits,bW=Ud(),ZA=of(),JA=Yg(),QA=YA(),ft=Kg(),XA=af(),te=eC.exports=function(t){if(!(this instanceof te))return new te(t);ZA.call(this),this.platform=ft.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new JA,this.crc=0,this.time=-1,this.minver=ft.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};yW(te,ZA);te.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};te.prototype.getComment=function(){return this.comment!==null?this.comment:""};te.prototype.getCompressedSize=function(){return this.csize};te.prototype.getCrc=function(){return this.crc};te.prototype.getExternalAttributes=function(){return this.exattr};te.prototype.getExtra=function(){return this.extra!==null?this.extra:ft.EMPTY};te.prototype.getGeneralPurposeBit=function(){return this.gpb};te.prototype.getInternalAttributes=function(){return this.inattr};te.prototype.getLastModifiedDate=function(){return this.getTime()};te.prototype.getLocalFileDataExtra=function(){return this.getExtra()};te.prototype.getMethod=function(){return this.method};te.prototype.getName=function(){return this.name};te.prototype.getPlatform=function(){return this.platform};te.prototype.getSize=function(){return this.size};te.prototype.getTime=function(){return this.time!==-1?XA.dosToDate(this.time):-1};te.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};te.prototype.getUnixMode=function(){return this.platform!==ft.PLATFORM_UNIX?0:this.getExternalAttributes()>>ft.SHORT_SHIFT&ft.SHORT_MASK};te.prototype.getVersionNeededToExtract=function(){return this.minver};te.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};te.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};te.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};te.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};te.prototype.setExtra=function(t){this.extra=t};te.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof JA))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};te.prototype.setInternalAttributes=function(t){this.inattr=t};te.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};te.prototype.setName=function(t,e=!1){t=bW(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};te.prototype.setPlatform=function(t){this.platform=t};te.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};te.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=XA.dateToDos(t,e)};te.prototype.setUnixMode=function(t){t|=this.isDirectory()?ft.S_IFDIR:ft.S_IFREG;var e=0;e|=t<<ft.SHORT_SHIFT|(this.isDirectory()?ft.S_DOS_D:ft.S_DOS_A),this.setExternalAttributes(e),this.mode=t&ft.MODE_MASK,this.platform=ft.PLATFORM_UNIX};te.prototype.setVersionNeededToExtract=function(t){this.minver=t};te.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};te.prototype.isUnixSymlink=function(){return(this.getUnixMode()&QA.FILE_TYPE_FLAG)===QA.LINK_FLAG};te.prototype.isZip64=function(){return this.csize>ft.ZIP64_MAGIC||this.size>ft.ZIP64_MAGIC}});var Zg=x((Aoe,tC)=>{"use strict";var Toe=N("stream").Stream,wW=ri().PassThrough,xW=Iu(),_W=tC.exports={};_W.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(xW(t)&&!t._readableState){var e=new wW;return t.pipe(e),e}return t}});var Xg=x((Coe,nC)=>{"use strict";var DW=N("util").inherits,vW=Iu(),Jg=ri().Transform,SW=of(),EW=Zg(),Dt=nC.exports=function(t){if(!(this instanceof Dt))return new Dt(t);Jg.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};DW(Dt,Jg);Dt.prototype._appendBuffer=function(t,e,n){};Dt.prototype._appendStream=function(t,e,n){};Dt.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};Dt.prototype._finish=function(t){};Dt.prototype._normalizeEntry=function(t){};Dt.prototype._transform=function(t,e,n){n(null,t)};Dt.prototype.entry=function(t,e,n){if(e=e||null,typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),!(t instanceof SW)){n(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){n(new Error("unacceptable entry after finish"));return}if(this._archive.processing){n(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=EW.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,n);else if(vW(e))this._appendStream(t,e,n);else{this._archive.processing=!1,n(new Error("input source must be valid Stream or Buffer instance"));return}return this};Dt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Dt.prototype.getBytesWritten=function(){return this.offset};Dt.prototype.write=function(t,e){return t&&(this.offset+=t.length),Jg.prototype.write.call(this,t,e)}});var lf=x(ey=>{"use strict";var rC;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof ey=="object"?t(ey):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(rC={}):t(rC={})})(function(t){t.version="1.2.2";function e(){for(var S=0,M=new Array(256),A=0;A!=256;++A)S=A,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,M[A]=S;return typeof Int32Array<"u"?new Int32Array(M):M}var n=e();function r(S){var M=0,A=0,F=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(F=0;F!=256;++F)I[F]=S[F];for(F=0;F!=256;++F)for(A=S[F],M=256+F;M<4096;M+=256)A=I[M]=A>>>8^S[A&255];var B=[];for(F=1;F!=16;++F)B[F-1]=typeof Int32Array<"u"?I.subarray(F*256,F*256+256):I.slice(F*256,F*256+256);return B}var i=r(n),s=i[0],o=i[1],a=i[2],l=i[3],u=i[4],c=i[5],f=i[6],h=i[7],p=i[8],b=i[9],y=i[10],k=i[11],g=i[12],m=i[13],d=i[14];function w(S,M){for(var A=M^-1,F=0,I=S.length;F<I;)A=A>>>8^n[(A^S.charCodeAt(F++))&255];return~A}function T(S,M){for(var A=M^-1,F=S.length-15,I=0;I<F;)A=d[S[I++]^A&255]^m[S[I++]^A>>8&255]^g[S[I++]^A>>16&255]^k[S[I++]^A>>>24]^y[S[I++]]^b[S[I++]]^p[S[I++]]^h[S[I++]]^f[S[I++]]^c[S[I++]]^u[S[I++]]^l[S[I++]]^a[S[I++]]^o[S[I++]]^s[S[I++]]^n[S[I++]];for(F+=15;I<F;)A=A>>>8^n[(A^S[I++])&255];return~A}function D(S,M){for(var A=M^-1,F=0,I=S.length,B=0,O=0;F<I;)B=S.charCodeAt(F++),B<128?A=A>>>8^n[(A^B)&255]:B<2048?(A=A>>>8^n[(A^(192|B>>6&31))&255],A=A>>>8^n[(A^(128|B&63))&255]):B>=55296&&B<57344?(B=(B&1023)+64,O=S.charCodeAt(F++)&1023,A=A>>>8^n[(A^(240|B>>8&7))&255],A=A>>>8^n[(A^(128|B>>2&63))&255],A=A>>>8^n[(A^(128|O>>6&15|(B&3)<<4))&255],A=A>>>8^n[(A^(128|O&63))&255]):(A=A>>>8^n[(A^(224|B>>12&15))&255],A=A>>>8^n[(A^(128|B>>6&63))&255],A=A>>>8^n[(A^(128|B&63))&255]);return~A}t.table=n,t.bstr=w,t.buf=T,t.str=D})});var sC=x((Roe,iC)=>{"use strict";var{Transform:kW}=ri(),TW=lf(),ty=class extends kW{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,n,r){e&&(this.checksum=TW.buf(e,this.checksum)>>>0,this.rawSize+=e.length),r(null,e)}digest(e){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),e?n.toString(e):n}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};iC.exports=ty});var aC=x((Ooe,oC)=>{"use strict";var{DeflateRaw:AW}=N("zlib"),CW=lf(),ny=class extends AW{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,n){return e&&(this.compressedSize+=e.length),super.push(e,n)}_transform(e,n,r){e&&(this.checksum=CW.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,n,r)}digest(e){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),e?n.toString(e):n}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};oC.exports=ny});var ry=x((Ioe,lC)=>{"use strict";lC.exports={CRC32Stream:sC(),DeflateCRC32Stream:aC()}});var fC=x((Moe,cC)=>{"use strict";var FW=N("util").inherits,RW=lf(),{CRC32Stream:OW}=ry(),{DeflateCRC32Stream:IW}=ry(),uC=Xg(),Loe=Qg(),Poe=Yg(),Z=Kg(),qoe=Zg(),W=af(),ze=cC.exports=function(t){if(!(this instanceof ze))return new ze(t);t=this.options=this._defaults(t),uC.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};FW(ze,uC);ze.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};ze.prototype._appendBuffer=function(t,e,n){e.length===0&&t.setMethod(Z.METHOD_STORED);var r=t.getMethod();if(r===Z.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(RW.buf(e)>>>0)),this._writeLocalFileHeader(t),r===Z.METHOD_STORED){this.write(e),this._afterAppend(t),n(null,t);return}else if(r===Z.METHOD_DEFLATED){this._smartStream(t,n).end(e);return}else{n(new Error("compression method "+r+" not implemented"));return}};ze.prototype._appendStream=function(t,e,n){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var r=this._smartStream(t,n);e.once("error",function(i){r.emit("error",i),r.end()}),e.pipe(r)};ze.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=Z.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};ze.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};ze.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(Z.METHOD_DEFLATED),t.getMethod()===Z.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};ze.prototype._smartStream=function(t,e){var n=t.getMethod()===Z.METHOD_DEFLATED,r=n?new IW(this.options.zlib):new OW,i=null;function s(){var o=r.digest().readUInt32BE(0);t.setCrc(o),t.setSize(r.size()),t.setCompressedSize(r.size(!0)),this._afterAppend(t),e(i,t)}return r.once("end",s.bind(this)),r.once("error",function(o){i=o}),r.pipe(this,{end:!1}),r};ze.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(t=Z.ZIP64_MAGIC_SHORT,e=Z.ZIP64_MAGIC,n=Z.ZIP64_MAGIC),this.write(W.getLongBytes(Z.SIG_EOCD)),this.write(Z.SHORT_ZERO),this.write(Z.SHORT_ZERO),this.write(W.getShortBytes(t)),this.write(W.getShortBytes(t)),this.write(W.getLongBytes(e)),this.write(W.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(W.getShortBytes(i)),this.write(r)};ze.prototype._writeCentralDirectoryZip64=function(){this.write(W.getLongBytes(Z.SIG_ZIP64_EOCD)),this.write(W.getEightBytes(44)),this.write(W.getShortBytes(Z.MIN_VERSION_ZIP64)),this.write(W.getShortBytes(Z.MIN_VERSION_ZIP64)),this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO),this.write(W.getEightBytes(this._entries.length)),this.write(W.getEightBytes(this._entries.length)),this.write(W.getEightBytes(this._archive.centralLength)),this.write(W.getEightBytes(this._archive.centralOffset)),this.write(W.getLongBytes(Z.SIG_ZIP64_EOCD_LOC)),this.write(Z.LONG_ZERO),this.write(W.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(W.getLongBytes(1))};ze.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t._offsets.file,i=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||r>Z.ZIP64_MAGIC){i=Z.ZIP64_MAGIC,s=Z.ZIP64_MAGIC,r=Z.ZIP64_MAGIC,t.setVersionNeededToExtract(Z.MIN_VERSION_ZIP64);var o=Buffer.concat([W.getShortBytes(Z.ZIP64_EXTRA_ID),W.getShortBytes(24),W.getEightBytes(t.getSize()),W.getEightBytes(t.getCompressedSize()),W.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(W.getLongBytes(Z.SIG_CFH)),this.write(W.getShortBytes(t.getPlatform()<<8|Z.VERSION_MADEBY)),this.write(W.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(W.getShortBytes(n)),this.write(W.getLongBytes(t.getTimeDos())),this.write(W.getLongBytes(t.getCrc())),this.write(W.getLongBytes(s)),this.write(W.getLongBytes(i));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(W.getShortBytes(a.length)),this.write(W.getShortBytes(u.length)),this.write(W.getShortBytes(l.length)),this.write(Z.SHORT_ZERO),this.write(W.getShortBytes(t.getInternalAttributes())),this.write(W.getLongBytes(t.getExternalAttributes())),this.write(W.getLongBytes(r)),this.write(a),this.write(u),this.write(l)};ze.prototype._writeDataDescriptor=function(t){this.write(W.getLongBytes(Z.SIG_DD)),this.write(W.getLongBytes(t.getCrc())),t.isZip64()?(this.write(W.getEightBytes(t.getCompressedSize())),this.write(W.getEightBytes(t.getSize()))):(this.write(W.getLongBytes(t.getCompressedSize())),this.write(W.getLongBytes(t.getSize())))};ze.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(r=Buffer.from(r)),t._offsets.file=this.offset,this.write(W.getLongBytes(Z.SIG_LFH)),this.write(W.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(W.getShortBytes(n)),this.write(W.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO)):(this.write(W.getLongBytes(t.getCrc())),this.write(W.getLongBytes(t.getCompressedSize())),this.write(W.getLongBytes(t.getSize()))),this.write(W.getShortBytes(r.length)),this.write(W.getShortBytes(i.length)),this.write(r),this.write(i),t._offsets.contents=this.offset};ze.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};ze.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>Z.ZIP64_MAGIC_SHORT||this._archive.centralLength>Z.ZIP64_MAGIC||this._archive.centralOffset>Z.ZIP64_MAGIC};ze.prototype.setComment=function(t){this._archive.comment=t}});var iy=x((Noe,hC)=>{"use strict";hC.exports={ArchiveEntry:of(),ZipArchiveEntry:Qg(),ArchiveOutputStream:Xg(),ZipArchiveOutputStream:fC()}});var dC=x((Boe,pC)=>{"use strict";var LW=N("util").inherits,oy=iy().ZipArchiveOutputStream,PW=iy().ZipArchiveEntry,sy=Ss(),Es=pC.exports=function(t){if(!(this instanceof Es))return new Es(t);t=this.options=t||{},t.zlib=t.zlib||{},oy.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};LW(Es,oy);Es.prototype._normalizeFileData=function(t){t=sy.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",n=t.type==="symlink";return t.name&&(t.name=sy.sanitizePath(t.name),!n&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||n)&&(t.store=!0),t.date=sy.dateify(t.date),t};Es.prototype.entry=function(t,e,n){if(typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){n(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){n(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){n(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var r=new PW(e.name);return r.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&r.setName(e.name,!0),e.store&&r.setMethod(0),e.comment.length>0&&r.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),r.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),oy.prototype.entry.call(this,r,t,n)};Es.prototype.finalize=function(){this.finish()}});var gC=x((joe,mC)=>{"use strict";var qW=dC(),MW=Ss(),cr=function(t){if(!(this instanceof cr))return new cr(t);t=this.options=MW.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new qW(t)};cr.prototype.append=function(t,e,n){this.engine.entry(t,e,n)};cr.prototype.finalize=function(){this.engine.finalize()};cr.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};cr.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};cr.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};mC.exports=cr});var bC=x((zoe,yC)=>{"use strict";yC.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var ay=x(($oe,xC)=>{"use strict";var wC=bC();xC.exports=class{constructor(e){this.hwm=e||16,this.head=new wC(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let n=this.head;this.head=n.next=new wC(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let n=this.tail.next;return this.tail.next=null,this.tail=n,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var ks=x((Hoe,_C)=>{"use strict";function NW(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function BW(t){return Buffer.isEncoding(t)}function jW(t,e,n){return Buffer.alloc(t,e,n)}function UW(t){return Buffer.allocUnsafe(t)}function zW(t){return Buffer.allocUnsafeSlow(t)}function WW(t,e){return Buffer.byteLength(t,e)}function $W(t,e){return Buffer.compare(t,e)}function HW(t,e){return Buffer.concat(t,e)}function GW(t,e,n,r,i){return ye(t).copy(e,n,r,i)}function VW(t,e){return ye(t).equals(e)}function YW(t,e,n,r,i){return ye(t).fill(e,n,r,i)}function KW(t,e,n){return Buffer.from(t,e,n)}function QW(t,e,n,r){return ye(t).includes(e,n,r)}function ZW(t,e,n,r){return ye(t).indexOf(e,n,r)}function JW(t,e,n,r){return ye(t).lastIndexOf(e,n,r)}function XW(t){return ye(t).swap16()}function e$(t){return ye(t).swap32()}function t$(t){return ye(t).swap64()}function ye(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function n$(t,e,n,r){return ye(t).toString(e,n,r)}function r$(t,e,n,r,i){return ye(t).write(e,n,r,i)}function i$(t,e,n){return ye(t).writeDoubleLE(e,n)}function s$(t,e,n){return ye(t).writeFloatLE(e,n)}function o$(t,e,n){return ye(t).writeUInt32LE(e,n)}function a$(t,e,n){return ye(t).writeInt32LE(e,n)}function l$(t,e){return ye(t).readDoubleLE(e)}function u$(t,e){return ye(t).readFloatLE(e)}function c$(t,e){return ye(t).readUInt32LE(e)}function f$(t,e){return ye(t).readInt32LE(e)}function h$(t,e,n){return ye(t).writeDoubleBE(e,n)}function p$(t,e,n){return ye(t).writeFloatBE(e,n)}function d$(t,e,n){return ye(t).writeUInt32BE(e,n)}function m$(t,e,n){return ye(t).writeInt32BE(e,n)}function g$(t,e){return ye(t).readDoubleBE(e)}function y$(t,e){return ye(t).readFloatBE(e)}function b$(t,e){return ye(t).readUInt32BE(e)}function w$(t,e){return ye(t).readInt32BE(e)}_C.exports={isBuffer:NW,isEncoding:BW,alloc:jW,allocUnsafe:UW,allocUnsafeSlow:zW,byteLength:WW,compare:$W,concat:HW,copy:GW,equals:VW,fill:YW,from:KW,includes:QW,indexOf:ZW,lastIndexOf:JW,swap16:XW,swap32:e$,swap64:t$,toBuffer:ye,toString:n$,write:r$,writeDoubleLE:i$,writeFloatLE:s$,writeUInt32LE:o$,writeInt32LE:a$,readDoubleLE:l$,readFloatLE:u$,readUInt32LE:c$,readInt32LE:f$,writeDoubleBE:h$,writeFloatBE:p$,writeUInt32BE:d$,writeInt32BE:m$,readDoubleBE:g$,readFloatBE:y$,readUInt32BE:b$,readInt32BE:w$}});var vC=x((Voe,DC)=>{"use strict";var x$=ks();DC.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return x$.toString(e,this.encoding)}flush(){return""}}});var EC=x((Koe,SC)=>{"use strict";var _$=ks();SC.exports=class{constructor(){this.codePoint=0,this.bytesSeen=0,this.bytesNeeded=0,this.lowerBoundary=128,this.upperBoundary=191}get remaining(){return this.bytesSeen}decode(e){if(this.bytesNeeded===0){let r=!0;for(let i=Math.max(0,e.byteLength-4),s=e.byteLength;i<s&&r;i++)r=e[i]<=127;if(r)return _$.toString(e,"utf8")}let n="";for(let r=0,i=e.byteLength;r<i;r++){let s=e[r];if(this.bytesNeeded===0){s<=127?n+=String.fromCharCode(s):(this.bytesSeen=1,s>=194&&s<=223?(this.bytesNeeded=2,this.codePoint=s&31):s>=224&&s<=239?(s===224?this.lowerBoundary=160:s===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.codePoint=s&15):s>=240&&s<=244?(s===240&&(this.lowerBoundary=144),s===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.codePoint=s&7):n+="\uFFFD");continue}if(s<this.lowerBoundary||s>this.upperBoundary){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,n+="\uFFFD";continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|s&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(n+=String.fromCodePoint(this.codePoint),this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0)}return n}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,e}}});var TC=x((Zoe,kC)=>{"use strict";var D$=vC(),v$=EC();kC.exports=class{constructor(e="utf8"){switch(this.encoding=S$(e),this.encoding){case"utf8":this.decoder=new v$;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new D$(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let n="";return e&&(n=this.push(e)),n+=this.decoder.flush(),n}};function S$(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var vy=x((Joe,QC)=>{"use strict";var{EventEmitter:E$}=N("events"),df=new Error("Stream was destroyed"),ly=new Error("Premature close"),IC=ay(),k$=TC(),uy=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,Te=(1<<29)-1,dn=1,gy=2,li=4,Ea=8,LC=Te^dn,T$=Te^gy,Fa=16,Ts=32,Fs=64,hr=128,Ra=256,yy=512,ui=1024,cy=2048,by=4096,wy=8192,Zt=16384,fr=32768,mf=65536,ci=131072,PC=Ra|yy,A$=Fa|mf,C$=Fs|Fa,F$=by|hr,xy=Ra|ci,R$=Te^Fa,O$=Te^Fs,I$=Te^(Fs|mf),AC=Te^mf,L$=Te^Ra,P$=Te^(hr|wy),q$=Te^ui,CC=Te^PC,qC=Te^fr,M$=Te^Ts,MC=Te^ci,N$=Te^xy,Ln=1<<18,Cs=2<<18,Oa=4<<18,fi=8<<18,Ia=16<<18,pr=32<<18,fy=64<<18,As=128<<18,_y=256<<18,hi=512<<18,gf=1024<<18,B$=Te^(Ln|_y),NC=Te^Oa,j$=Te^(Ln|hi),U$=Te^Ia,z$=Te^fi,BC=Te^As,W$=Te^Cs,jC=Te^gf,ka=Fa|Ln,UC=Te^ka,Dy=Zt|pr,mn=li|Ea|gy,vt=mn|dn,zC=mn|Dy,$$=NC&O$,yf=As|fr,H$=yf&UC,WC=vt|H$,G$=vt|ui|Zt,FC=vt|Zt|hr,V$=vt|ui|hr,Y$=vt|by|hr|wy,K$=vt|Fa|ui|Zt|mf|ci,Q$=mn|ui|Zt,Z$=Ts|vt|fr|Fs,J$=fr|dn,X$=vt|hi|pr,eH=fi|Ia,$C=fi|Ln,tH=fi|Ia|vt|Ln,RC=vt|Ln|fi|gf,nH=Oa|Ln,rH=Ln|_y,iH=vt|hi|$C|pr,sH=Ia|mn|hi|pr,oH=Cs|vt|As|Oa,aH=hi|pr|mn,uf=Symbol.asyncIterator||Symbol("asyncIterator"),cf=class{constructor(e,{highWaterMark:n=16384,map:r=null,mapWritable:i,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new IC,this.highWaterMark=n,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||KC,this.map=i||r,this.afterWrite=cH.bind(this),this.afterUpdateNextTick=pH.bind(this)}get ended(){return(this.stream._duplexState&pr)!==0}push(e){return(this.stream._duplexState&aH)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=fi,!0):(this.stream._duplexState|=eH,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=z$),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|hi)&NC}autoBatch(e,n){let r=[],i=this.stream;for(r.push(e);(i._duplexState&RC)===$C;)r.push(i._writableState.shift());if((i._duplexState&vt)!==0)return n(null);i._writev(r,n)}update(){let e=this.stream;e._duplexState|=Cs;do{for(;(e._duplexState&RC)===fi;){let n=this.shift();e._duplexState|=rH,e._write(n,this.afterWrite)}(e._duplexState&nH)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=W$}updateNonPrimary(){let e=this.stream;if((e._duplexState&iH)===hi){e._duplexState=e._duplexState|Ln,e._final(uH.bind(this));return}if((e._duplexState&mn)===li){(e._duplexState&yf)===0&&(e._duplexState|=ka,e._destroy(HC.bind(this)));return}(e._duplexState&WC)===dn&&(e._duplexState=(e._duplexState|ka)&LC,e._open(GC.bind(this)))}continueUpdate(){return(this.stream._duplexState&As)===0?!1:(this.stream._duplexState&=BC,!0)}updateCallback(){(this.stream._duplexState&oH)===Oa?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&As)===0&&(this.stream._duplexState|=As,(this.stream._duplexState&Cs)===0&&uy(this.afterUpdateNextTick))}},hy=class{constructor(e,{highWaterMark:n=16384,map:r=null,mapReadable:i,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new IC,this.highWaterMark=n===0?1:n,this.buffered=0,this.readAhead=n>0,this.error=null,this.pipeline=null,this.byteLength=o||s||KC,this.map=i||r,this.pipeTo=null,this.afterRead=fH.bind(this),this.afterUpdateNextTick=hH.bind(this)}get ended(){return(this.stream._duplexState&Zt)!==0}pipe(e,n){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof n!="function"&&(n=null),this.stream._duplexState|=yy,this.pipeTo=e,this.pipeline=new dy(this.stream,e,n),n&&this.stream.on("error",OC),Ca(e))e._writableState.pipeline=this.pipeline,n&&e.on("error",OC),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let r=this.pipeline.done.bind(this.pipeline,e),i=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",r),e.on("close",i),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",lH.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let n=this.stream;return e===null?(this.highWaterMark=0,n._duplexState=(n._duplexState|ui)&I$,!1):this.map!==null&&(e=this.map(e),e===null)?(n._duplexState&=AC,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),n._duplexState=(n._duplexState|hr)&AC,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=P$),e}unshift(e){let n=[this.map!==null?this.map(e):e];for(;this.buffered>0;)n.push(this.shift());for(let r=0;r<n.length-1;r++){let i=n[r];this.buffered+=this.byteLength(i),this.queue.push(i)}this.push(n[n.length-1])}read(){let e=this.stream;if((e._duplexState&FC)===hr){let n=this.shift();return this.pipeTo!==null&&this.pipeTo.write(n)===!1&&(e._duplexState&=CC),(e._duplexState&cy)!==0&&e.emit("data",n),n}return this.readAhead===!1&&(e._duplexState|=ci,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&FC)===hr&&(e._duplexState&PC)!==0;){let n=this.shift();this.pipeTo!==null&&this.pipeTo.write(n)===!1&&(e._duplexState&=CC),(e._duplexState&cy)!==0&&e.emit("data",n)}}update(){let e=this.stream;e._duplexState|=Ts;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&K$)===ci;)e._duplexState|=A$,e._read(this.afterRead),this.drain();(e._duplexState&Y$)===F$&&(e._duplexState|=wy,e.emit("readable")),(e._duplexState&C$)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=M$}updateNonPrimary(){let e=this.stream;if((e._duplexState&V$)===ui&&(e._duplexState=(e._duplexState|Zt)&q$,e.emit("end"),(e._duplexState&zC)===Dy&&(e._duplexState|=li),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&mn)===li){(e._duplexState&yf)===0&&(e._duplexState|=ka,e._destroy(HC.bind(this)));return}(e._duplexState&WC)===dn&&(e._duplexState=(e._duplexState|ka)&LC,e._open(GC.bind(this)))}continueUpdate(){return(this.stream._duplexState&fr)===0?!1:(this.stream._duplexState&=qC,!0)}updateCallback(){(this.stream._duplexState&Z$)===Fs?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&J$)===0&&(this.stream._duplexState|=fr,(this.stream._duplexState&Ts)===0&&uy(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&fr)===0&&(this.stream._duplexState|=fr,(this.stream._duplexState&Ts)===0&&uy(this.afterUpdateNextTick))}},py=class{constructor(e){this.data=null,this.afterTransform=mH.bind(e),this.afterFinal=null}},dy=class{constructor(e,n,r){this.from=e,this.to=n,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,n){if(n&&(this.error=n),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Zt)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Zt)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function lH(){this.stream._duplexState|=yy,this.updateCallback()}function uH(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&mn)===0&&(e._duplexState|=pr,e.emit("finish")),(e._duplexState&zC)===Dy&&(e._duplexState|=li),e._duplexState&=j$,(e._duplexState&Cs)===0?this.update():this.updateNextTick()}function HC(t){let e=this.stream;!t&&this.error!==df&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Ea,e.emit("close");let n=e._readableState,r=e._writableState;if(n!==null&&n.pipeline!==null&&n.pipeline.done(e,t),r!==null){for(;r.drains!==null&&r.drains.length>0;)r.drains.shift().resolve(!1);r.pipeline!==null&&r.pipeline.done(e,t)}}function cH(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=B$,this.drains!==null&&dH(this.drains),(e._duplexState&tH)===Ia&&(e._duplexState&=U$,(e._duplexState&fy)===fy&&e.emit("drain")),this.updateCallback()}function fH(t){t&&this.stream.destroy(t),this.stream._duplexState&=R$,this.readAhead===!1&&(this.stream._duplexState&Ra)===0&&(this.stream._duplexState&=MC),this.updateCallback()}function hH(){(this.stream._duplexState&Ts)===0&&(this.stream._duplexState&=qC,this.update())}function pH(){(this.stream._duplexState&Cs)===0&&(this.stream._duplexState&=BC,this.update())}function dH(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function GC(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&li)===0&&((e._duplexState&G$)===0&&(e._duplexState|=Fs),(e._duplexState&X$)===0&&(e._duplexState|=Oa),e.emit("open")),e._duplexState&=UC,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function mH(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function gH(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=cy|xy,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=by,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=fy,this._writableState.updateNextTick())}var Ta=class extends E${constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",kH.bind(this))),this.on("newListener",gH)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&Ea)!==0}get destroying(){return(this._duplexState&mn)!==0}destroy(e){(this._duplexState&mn)===0&&(e||(e=df),this._duplexState=(this._duplexState|li)&$$,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=gy,this._predestroy(),this._duplexState&=T$,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},ff=class t extends Ta{constructor(e){super(e),this._duplexState|=dn|pr|ci,this._readableState=new hy(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=MC),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let n=new k$(e),r=this._readableState.map||wH;return this._readableState.map=i,this;function i(s){let o=n.push(s);return o===""&&(s.byteLength!==0||n.remaining>0)?null:r(o)}}_read(e){e(null)}pipe(e,n){return this._readableState.updateNextTick(),this._readableState.pipe(e,n),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=xy,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?N$:L$,this}static _fromAsyncIterator(e,n){let r,i=new t({...n,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){r=e.return()},destroy(o){if(!r)return o(null);r.then(o.bind(null,null)).catch(o)}});return i;function s(o){o.done?i.push(null):i.push(o.value)}}static from(e,n){if(vH(e))return e;if(e[uf])return this._fromAsyncIterator(e[uf](),n);Array.isArray(e)||(e=e===void 0?[]:[e]);let r=0;return new t({...n,read(i){this.push(r===e.length?null:e[r++]),i(null)}})}static isBackpressured(e){return(e._duplexState&Q$)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Ra)===0}[uf](){let e=this,n=null,r=null,i=null;return this.on("error",u=>{n=u}),this.on("readable",s),this.on("close",o),{[uf](){return this},next(){return new Promise(function(u,c){r=u,i=c;let f=e.read();f!==null?a(f):(e._duplexState&Ea)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){r!==null&&a(e.read())}function o(){r!==null&&a(null)}function a(u){i!==null&&(n?i(n):u===null&&(e._duplexState&Zt)===0?i(df):r({value:u,done:u===null}),i=r=null)}function l(u){return e.destroy(u),new Promise((c,f)=>{if(e._duplexState&Ea)return c({value:void 0,done:!0});e.once("close",function(){u?f(u):c({value:void 0,done:!0})})})}}},hf=class extends Ta{constructor(e){super(e),this._duplexState|=dn|Zt,this._writableState=new cf(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=gf}uncork(){this._duplexState&=jC,this._writableState.updateNextTick()}_writev(e,n){n(null)}_write(e,n){this._writableState.autoBatch(e,n)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&sH)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let n=e._writableState,i=(TH(e)?Math.min(1,n.queue.length):n.queue.length)+(e._duplexState&_y?1:0);return i===0?Promise.resolve(!0):(n.drains===null&&(n.drains=[]),new Promise(s=>{n.drains.push({writes:i,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Aa=class extends ff{constructor(e){super(e),this._duplexState=dn|this._duplexState&ci,this._writableState=new cf(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=gf}uncork(){this._duplexState&=jC,this._writableState.updateNextTick()}_writev(e,n){n(null)}_write(e,n){this._writableState.autoBatch(e,n)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},pf=class extends Aa{constructor(e){super(e),this._transformState=new py(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,n){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let n=this._transformState.data;this._transformState.data=null,e(null),this._transform(n,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,n){n(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(yH.bind(this))}},my=class extends pf{};function yH(t,e){let n=this._transformState.afterFinal;if(t)return n(t);e!=null&&this.push(e),this.push(null),n(null)}function bH(...t){return new Promise((e,n)=>VC(...t,r=>{if(r)return n(r);e()}))}function VC(t,...e){let n=Array.isArray(t)?[...t,...e]:[t,...e],r=n.length&&typeof n[n.length-1]=="function"?n.pop():null;if(n.length<2)throw new Error("Pipeline requires at least 2 streams");let i=n[0],s=null,o=null;for(let u=1;u<n.length;u++)s=n[u],Ca(i)?i.pipe(s,l):(a(i,!0,u>1,l),i.pipe(s)),i=s;if(r){let u=!1,c=Ca(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",f=>{o===null&&(o=f)}),s.on("finish",()=>{u=!0,c||r(o)}),c&&s.on("close",()=>r(o||(u?null:ly)))}return s;function a(u,c,f,h){u.on("error",h),u.on("close",p);function p(){if(c&&u._readableState&&!u._readableState.ended||f&&u._writableState&&!u._writableState.ended)return h(ly)}}function l(u){if(!(!u||o)){o=u;for(let c of n)c.destroy(u)}}}function wH(t){return t}function YC(t){return!!t._readableState||!!t._writableState}function Ca(t){return typeof t._duplexState=="number"&&YC(t)}function xH(t){return!!t._readableState&&t._readableState.ended}function _H(t){return!!t._writableState&&t._writableState.ended}function DH(t,e={}){let n=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&n===df?null:n}function vH(t){return Ca(t)&&t.readable}function SH(t){return(t._duplexState&dn)!==dn||(t._duplexState&yf)!==0}function EH(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function KC(t){return EH(t)?t.byteLength:1024}function OC(){}function kH(){this.destroy(new Error("Stream aborted."))}function TH(t){return t._writev!==hf.prototype._writev&&t._writev!==Aa.prototype._writev}QC.exports={pipeline:VC,pipelinePromise:bH,isStream:YC,isStreamx:Ca,isEnded:xH,isFinished:_H,isDisturbed:SH,getStreamError:DH,Stream:Ta,Writable:hf,Readable:ff,Duplex:Aa,Transform:pf,PassThrough:my}});var ky=x(Os=>{"use strict";var le=ks(),AH="0000000000000000000",CH="7777777777777777777",bf=48,ZC=le.from([117,115,116,97,114,0]),FH=le.from([bf,bf]),RH=le.from([117,115,116,97,114,32]),OH=le.from([32,0]),IH=4095,La=257,Ey=263;Os.decodeLongPath=function(e,n){return Rs(e,0,e.length,n)};Os.encodePax=function(e){let n="";e.name&&(n+=Sy(" path="+e.name+`
|
|
44
|
+
`)),e.linkname&&(n+=Sy(" linkpath="+e.linkname+`
|
|
45
|
+
`));let r=e.pax;if(r)for(let i in r)n+=Sy(" "+i+"="+r[i]+`
|
|
46
|
+
`);return le.from(n)};Os.decodePax=function(e){let n={};for(;e.length;){let r=0;for(;r<e.length&&e[r]!==32;)r++;let i=parseInt(le.toString(e.subarray(0,r)),10);if(!i)return n;let s=le.toString(e.subarray(r+1,i-1)),o=s.indexOf("=");if(o===-1)return n;n[s.slice(0,o)]=s.slice(o+1),e=e.subarray(i)}return n};Os.encode=function(e){let n=le.alloc(512),r=e.name,i="";if(e.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),le.byteLength(r)!==r.length)return null;for(;le.byteLength(r)>100;){let s=r.indexOf("/");if(s===-1)return null;i+=i?"/"+r.slice(0,s):r.slice(0,s),r=r.slice(s+1)}return le.byteLength(r)>100||le.byteLength(i)>155||e.linkname&&le.byteLength(e.linkname)>100?null:(le.write(n,r),le.write(n,mr(e.mode&IH,6),100),le.write(n,mr(e.uid,6),108),le.write(n,mr(e.gid,6),116),jH(e.size,n,124),le.write(n,mr(e.mtime.getTime()/1e3|0,11),136),n[156]=bf+NH(e.type),e.linkname&&le.write(n,e.linkname,157),le.copy(ZC,n,La),le.copy(FH,n,Ey),e.uname&&le.write(n,e.uname,265),e.gname&&le.write(n,e.gname,297),le.write(n,mr(e.devmajor||0,6),329),le.write(n,mr(e.devminor||0,6),337),i&&le.write(n,i,345),le.write(n,mr(XC(n),6),148),n)};Os.decode=function(e,n,r){let i=e[156]===0?0:e[156]-bf,s=Rs(e,0,100,n),o=dr(e,100,8),a=dr(e,108,8),l=dr(e,116,8),u=dr(e,124,12),c=dr(e,136,12),f=MH(i),h=e[157]===0?null:Rs(e,157,100,n),p=Rs(e,265,32),b=Rs(e,297,32),y=dr(e,329,8),k=dr(e,337,8),g=XC(e);if(g===8*32)return null;if(g!==dr(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(LH(e))e[345]&&(s=Rs(e,345,155,n)+"/"+s);else if(!PH(e)){if(!r)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*c),type:f,linkname:h,uname:p,gname:b,devmajor:y,devminor:k,pax:null}};function LH(t){return le.equals(ZC,t.subarray(La,La+6))}function PH(t){return le.equals(RH,t.subarray(La,La+6))&&le.equals(OH,t.subarray(Ey,Ey+2))}function qH(t,e,n){return typeof t!="number"?n:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function MH(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function NH(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function JC(t,e,n,r){for(;n<r;n++)if(t[n]===e)return n;return r}function XC(t){let e=256;for(let n=0;n<148;n++)e+=t[n];for(let n=156;n<512;n++)e+=t[n];return e}function mr(t,e){return t=t.toString(8),t.length>e?CH.slice(0,e)+" ":AH.slice(0,e-t.length)+t+" "}function BH(t,e,n){e[n]=128;for(let r=11;r>0;r--)e[n+r]=t&255,t=Math.floor(t/256)}function jH(t,e,n){t.toString(8).length>11?BH(t,e,n):le.write(e,mr(t,11),n)}function UH(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let n=[],r;for(r=t.length-1;r>0;r--){let o=t[r];e?n.push(o):n.push(255-o)}let i=0,s=n.length;for(r=0;r<s;r++)i+=n[r]*Math.pow(256,r);return e?i:-1*i}function dr(t,e,n){if(t=t.subarray(e,e+n),e=0,t[e]&128)return UH(t);{for(;e<t.length&&t[e]===32;)e++;let r=qH(JC(t,32,e,t.length),t.length,t.length);for(;e<r&&t[e]===0;)e++;return r===e?0:parseInt(le.toString(t.subarray(e,r)),8)}}function Rs(t,e,n,r){return le.toString(t.subarray(e,JC(t,0,e,e+n)),r)}function Sy(t){let e=le.byteLength(t),n=Math.floor(Math.log(e)/Math.log(10))+1;return e+n>=Math.pow(10,n)&&n++,e+n+t}});var iF=x((eae,rF)=>{"use strict";var{Writable:zH,Readable:WH,getStreamError:eF}=vy(),$H=ay(),tF=ks(),Is=ky(),HH=tF.alloc(0),Ay=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new $H,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return HH;let n=this._next(e);if(e===n.byteLength)return n;let r=[n];for(;(e-=n.byteLength)>0;)n=this._next(e),r.push(n);return tF.concat(r)}_next(e){let n=this.queue.peek(),r=n.byteLength-this._offset;if(e>=r){let i=this._offset?n.subarray(this._offset,n.byteLength):n;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,i}return this.buffered-=e,this.shifted+=e,n.subarray(this._offset,this._offset+=e)}},Cy=class extends WH{constructor(e,n,r){super(),this.header=n,this.offset=r,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(eF(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=nF(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Fy=class extends zH{constructor(e){super(e),e||(e={}),this._buffer=new Ay,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=Ty,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=Is.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=Is.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Is.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Is.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Is.decodePax(e):Object.assign({},this._paxGlobal,Is.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=nF(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(n){return this._continueWrite(n),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let n=this._stream.push(e);return this._missing===0?(this._stream.push(null),n&&this._stream._detach(),n&&this._locked===!1):n}_createStream(){return new Cy(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let n=this._callback;this._callback=Ty,n(e)}_write(e,n){this._callback=n,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(eF(this)),e(null)}[Symbol.asyncIterator](){let e=null,n=null,r=null,i=null,s=null,o=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",c),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return f(null)},throw(h){return f(h)}};function a(h){if(!s)return;let p=s;s=null,p(h)}function l(h,p){if(e)return p(e);if(i){h({value:i,done:!1}),i=null;return}n=h,r=p,a(null),o._finished&&n&&(n({value:void 0,done:!0}),n=r=null)}function u(h,p,b){s=b,p.on("error",Ty),n?(n({value:p,done:!1}),n=r=null):i=p}function c(){a(e),n&&(e?r(e):n({value:void 0,done:!0}),n=r=null)}function f(h){return o.destroy(h),a(h),new Promise((p,b)=>{if(o.destroyed)return p({value:void 0,done:!0});o.once("close",function(){h?b(h):p({value:void 0,done:!0})})})}}};rF.exports=function(e){return new Fy(e)};function Ty(){}function nF(t){return t&=511,t&&512-t}});var oF=x((tae,Ry)=>{"use strict";var sF={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{Ry.exports=N("fs").constants||sF}catch{Ry.exports=sF}});var fF=x((nae,cF)=>{"use strict";var{Readable:GH,Writable:VH,getStreamError:aF}=vy(),pi=ks(),Ls=oF(),wf=ky(),YH=493,KH=420,lF=pi.alloc(1024),Iy=class extends VH{constructor(e,n,r){super({mapWritable:ZH,eagerOpen:!0}),this.written=0,this.header=n,this._callback=r,this._linkname=null,this._isLinkname=n.type==="symlink"&&!n.linkname,this._isVoid=n.type!=="file"&&n.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let n=this._callback;this._callback=null,n(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,n){if(this._isLinkname)return this._linkname=this._linkname?pi.concat([this._linkname,e]):e,n(null);if(this._isVoid)return e.byteLength>0?n(new Error("No body allowed for this entry")):n();if(this.written+=e.byteLength,this._pack.push(e))return n();this._pack._drain=n}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?pi.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),uF(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return aF(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},Ly=class extends GH{constructor(e){super(e),this._drain=Oy,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,n,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof n=="function"&&(r=n,n=null),r||(r=Oy),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=QH(e.mode)),e.mode||(e.mode=e.type==="directory"?YH:KH),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof n=="string"&&(n=pi.from(n));let i=new Iy(this,e,r);return pi.isBuffer(n)?(e.size=n.byteLength,i.write(n),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(lF),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let n=wf.encode(e);if(n){this.push(n);return}}this._encodePax(e)}_encodePax(e){let n=wf.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:n.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(wf.encode(r)),this.push(n),uF(this,n.byteLength),r.size=e.size,r.type=e.type,this.push(wf.encode(r))}_doDrain(){let e=this._drain;this._drain=Oy,e()}_predestroy(){let e=aF(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let n=this._pending.shift();n.destroy(e),n._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};cF.exports=function(e){return new Ly(e)};function QH(t){switch(t&Ls.S_IFMT){case Ls.S_IFBLK:return"block-device";case Ls.S_IFCHR:return"character-device";case Ls.S_IFDIR:return"directory";case Ls.S_IFIFO:return"fifo";case Ls.S_IFLNK:return"symlink"}return"file"}function Oy(){}function uF(t,e){e&=511,e&&t.push(lF.subarray(0,512-e))}function ZH(t){return pi.isBuffer(t)?t:pi.from(t)}});var hF=x(Py=>{"use strict";Py.extract=iF();Py.pack=fF()});var mF=x((iae,dF)=>{"use strict";var JH=N("zlib"),XH=hF(),pF=Ss(),Pn=function(t){if(!(this instanceof Pn))return new Pn(t);t=this.options=pF.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=XH.pack(t),this.compressor=!1,t.gzip&&(this.compressor=JH.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Pn.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Pn.prototype.append=function(t,e,n){var r=this;e.mtime=e.date;function i(o,a){if(o){n(o);return}r.engine.entry(e,a,function(l){n(l,e)})}if(e.sourceType==="buffer")i(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=r.engine.entry(e,function(o){n(o,e)});t.pipe(s)}else e.sourceType==="stream"&&pF.collectStream(t,i)};Pn.prototype.finalize=function(){this.engine.finalize()};Pn.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Pn.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Pn.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};dF.exports=Pn});var bF=x((sae,yF)=>{"use strict";function eG(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tG=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function gF(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function nG(t){let e=gF(4);return e.writeInt32BE(t,0),e}function qy(t,e){t=gF(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let n=~~e^-1;for(var r=0;r<t.length;r++)n=tG[(n^t[r])&255]^n>>>8;return n^-1}function My(){return nG(qy.apply(null,arguments))}My.signed=function(){return qy.apply(null,arguments)};My.unsigned=function(){return qy.apply(null,arguments)>>>0};var rG=My,iG=eG(rG);yF.exports=iG});var DF=x((oae,_F)=>{"use strict";var sG=N("util").inherits,wF=ri().Transform,oG=bF(),xF=Ss(),gr=function(t){if(!(this instanceof gr))return new gr(t);t=this.options=xF.defaults(t,{}),wF.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};sG(gr,wF);gr.prototype._transform=function(t,e,n){n(null,t)};gr.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};gr.prototype.append=function(t,e,n){var r=this;e.crc32=0;function i(s,o){if(s){n(s);return}e.size=o.length||0,e.crc32=oG.unsigned(o),r.files.push(e),n(null,e)}e.sourceType==="buffer"?i(null,t):e.sourceType==="stream"&&xF.collectStream(t,i)};gr.prototype.finalize=function(){this._writeStringified(),this.end()};_F.exports=gr});var SF=x((aae,vF)=>{"use strict";var aG=NA(),Pa={},yr=function(t,e){return yr.create(t,e)};yr.create=function(t,e){if(Pa[t]){var n=new aG(t,e);return n.setFormat(t),n.setModule(new Pa[t](e)),n}else throw new Error("create("+t+"): format not registered")};yr.registerFormat=function(t,e){if(Pa[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Pa[t]=e};yr.isRegisteredFormat=function(t){return!!Pa[t]};yr.registerFormat("zip",gC());yr.registerFormat("tar",mF());yr.registerFormat("json",DF());vF.exports=yr});var Sb=Qe(vb(),1),{program:ge,createCommand:DV,createArgument:vV,createOption:SV,CommanderError:EV,InvalidArgumentError:kV,InvalidOptionArgumentError:TV,Command:AV,Argument:CV,Option:FV,Help:RV}=Sb.default;var Eb=t=>t.name==="backspace";var Ya=t=>t.name==="enter"||t.name==="return";var Ka=class extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}},Qa=class extends Error{name="CancelPromptError";message="Prompt was canceled"},Gs=class extends Error{name="ExitPromptError"},Za=class extends Error{name="HookError"},Ja=class extends Error{name="ValidationError"};import{AsyncResource as WR}from"node:async_hooks";import{AsyncLocalStorage as jR,AsyncResource as UR}from"node:async_hooks";var kb=new jR;function zR(t){return{rl:t,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function Tb(t,e){let n=zR(t);return kb.run(n,()=>{function r(i){n.handleChange=()=>{n.index=0,i()},n.handleChange()}return e(r)})}function kr(){let t=kb.getStore();if(!t)throw new Za("[Inquirer] Hook functions can only be called from within a prompt");return t}function th(){return kr().rl}function nh(t){let e=(...n)=>{let r=kr(),i=!1,s=r.handleChange;r.handleChange=()=>{i=!0};let o=t(...n);return i&&s(),r.handleChange=s,o};return UR.bind(e)}function Vs(t){let e=kr(),{index:n}=e,r={get(){return e.hooks[n]},set(s){e.hooks[n]=s},initialized:n in e.hooks},i=t(r);return e.index++,i}function Ab(){kr().handleChange()}var Tr={queue(t){let e=kr(),{index:n}=e;e.hooksEffect.push(()=>{e.hooksCleanup[n]?.();let r=t(th());if(r!=null&&typeof r!="function")throw new Ja("useEffect return value must be a cleanup function or nothing.");e.hooksCleanup[n]=r})},run(){let t=kr();nh(()=>{t.hooksEffect.forEach(e=>{e()}),t.hooksEffect.length=0})()},clearAll(){let t=kr();t.hooksCleanup.forEach(e=>{e?.()}),t.hooksEffect.length=0,t.hooksCleanup.length=0}};function st(t){return Vs(e=>{let n=WR.bind(function(s){e.get()!==s&&(e.set(s),Ab())});if(e.initialized)return[e.get(),n];let r=typeof t=="function"?t():t;return e.set(r),[r,n]})}function Ar(t,e){Vs(n=>{let r=n.get();(!Array.isArray(r)||e.some((s,o)=>!Object.is(s,r[o])))&&Tr.queue(t),n.set(e)})}var kt=Qe(Fb(),1);import Jt from"node:process";function GR(){return Jt.platform!=="win32"?Jt.env.TERM!=="linux":!!Jt.env.WT_SESSION||!!Jt.env.TERMINUS_SUBLIME||Jt.env.ConEmuTask==="{cmd::Cmder}"||Jt.env.TERM_PROGRAM==="Terminus-Sublime"||Jt.env.TERM_PROGRAM==="vscode"||Jt.env.TERM==="xterm-256color"||Jt.env.TERM==="alacritty"||Jt.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Rb={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Ob={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},VR={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},YR={...Rb,...Ob},KR={...Rb,...VR},QR=GR(),ZR=QR?YR:KR,rh=ZR,HV=Object.entries(Ob);var Ib={prefix:{idle:kt.default.blue("?"),done:kt.default.green(rh.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(t=>kt.default.yellow(t))},style:{answer:kt.default.cyan,message:kt.default.bold,error:t=>kt.default.red(`> ${t}`),defaultAnswer:t=>kt.default.dim(`(${t})`),help:kt.default.dim,highlight:kt.default.cyan,key:t=>kt.default.cyan(kt.default.bold(`<${t}>`))}};function Lb(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Pb(...t){let e={};for(let n of t)for(let[r,i]of Object.entries(n)){let s=e[r];e[r]=Lb(s)&&Lb(i)?Pb(s,i):i}return e}function Cr(...t){let e=[Ib,...t.filter(n=>n!=null)];return Pb(...e)}function Ys({status:t="idle",theme:e}){let[n,r]=st(!1),[i,s]=st(0),{prefix:o,spinner:a}=Cr(e);return Ar(()=>{if(t==="loading"){let u,c=-1,f=setTimeout(()=>{r(!0),u=setInterval(()=>{c=c+1,s(c%a.frames.length)},a.interval)},300);return()=>{clearTimeout(f),clearInterval(u)}}else r(!1)},[t]),n?a.frames[i]:typeof o=="string"?o:o[t==="loading"?"idle":t]??o.idle}function Xa(t){return st({current:t})[0]}function Ks(t){let e=Xa(t);e.current=t,Ar(n=>{let r=!1,i=nh((s,o)=>{r||e.current(o,n)});return n.input.on("keypress",i),()=>{r=!0,n.input.removeListener("keypress",i)}},[])}var mw=Qe(Mb(),1),gw=Qe(dw(),1);function nl(t,e){return t.split(`
|
|
47
|
+
`).flatMap(n=>(0,gw.default)(n,e,{trim:!1,hard:!0}).split(`
|
|
48
48
|
`).map(r=>r.trimEnd())).join(`
|
|
49
|
-
`)}function
|
|
50
|
-
`).length,
|
|
51
|
-
`).pop()??"";function
|
|
49
|
+
`)}function fh(){return(0,mw.default)({defaultWidth:80,output:th().output})}var Sw=Qe(bw(),1);import*as vw from"node:readline";import{AsyncResource as kO}from"node:async_hooks";var Fr=[];Fr.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Fr.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Fr.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var rl=t=>!!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",ph=Symbol.for("signal-exit emitter"),dh=globalThis,DO=Object.defineProperty.bind(Object),mh=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(dh[ph])return dh[ph];DO(dh,ph,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,n){this.listeners[e].push(n)}removeListener(e,n){let r=this.listeners[e],i=r.indexOf(n);i!==-1&&(i===0&&r.length===1?r.length=0:r.splice(i,1))}emit(e,n,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(let s of this.listeners[e])i=s(n,r)===!0||i;return e==="exit"&&(i=this.emit("afterExit",n,r)||i),i}},il=class{},vO=t=>({onExit(e,n){return t.onExit(e,n)},load(){return t.load()},unload(){return t.unload()}}),gh=class extends il{onExit(){return()=>{}}load(){}unload(){}},yh=class extends il{#e=bh.platform==="win32"?"SIGINT":"SIGHUP";#t=new mh;#n;#r;#o;#h={};#a=!1;constructor(e){super(),this.#n=e,this.#h={};for(let n of Fr)this.#h[n]=()=>{let r=this.#n.listeners(n),{count:i}=this.#t,s=e;if(typeof s.__signal_exit_emitter__=="object"&&typeof s.__signal_exit_emitter__.count=="number"&&(i+=s.__signal_exit_emitter__.count),r.length===i){this.unload();let o=this.#t.emit("exit",null,n),a=n==="SIGHUP"?this.#e:n;o||e.kill(e.pid,a)}};this.#o=e.reallyExit,this.#r=e.emit}onExit(e,n){if(!rl(this.#n))return()=>{};this.#a===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#t.on(r,e),()=>{this.#t.removeListener(r,e),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#a){this.#a=!0,this.#t.count+=1;for(let e of Fr)try{let n=this.#h[e];n&&this.#n.on(e,n)}catch{}this.#n.emit=(e,...n)=>this.#l(e,...n),this.#n.reallyExit=e=>this.#f(e)}}unload(){this.#a&&(this.#a=!1,Fr.forEach(e=>{let n=this.#h[e];if(!n)throw new Error("Listener not defined for signal: "+e);try{this.#n.removeListener(e,n)}catch{}}),this.#n.emit=this.#r,this.#n.reallyExit=this.#o,this.#t.count-=1)}#f(e){return rl(this.#n)?(this.#n.exitCode=e||0,this.#t.emit("exit",this.#n.exitCode,null),this.#o.call(this.#n,this.#n.exitCode)):0}#l(e,...n){let r=this.#r;if(e==="exit"&&rl(this.#n)){typeof n[0]=="number"&&(this.#n.exitCode=n[0]);let i=r.call(this.#n,e,...n);return this.#t.emit("exit",this.#n.exitCode,null),i}else return r.call(this.#n,e,...n)}},bh=globalThis.process,{onExit:ww,load:RY,unload:OY}=vO(rl(bh)?new yh(bh):new gh);var Bn=Qe(xh(),1);import{stripVTControlCharacters as SO}from"node:util";var _w=t=>t.split(`
|
|
50
|
+
`).length,EO=t=>t.split(`
|
|
51
|
+
`).pop()??"";function Dw(t){return t>0?Bn.default.cursorDown(t):""}var Xs=class{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,n=""){let r=EO(e),i=SO(r),s=i;this.rl.line.length>0&&(s=s.slice(0,-this.rl.line.length)),this.rl.setPrompt(s),this.cursorPos=this.rl.getCursorPos();let o=fh();e=nl(e,o),n=nl(n,o),i.length%o===0&&(e+=`
|
|
52
52
|
`);let a=e+(n?`
|
|
53
|
-
`+n:""),u=Math.floor(i.length/o)-this.cursorPos.rows+(n?
|
|
54
|
-
`,n+=Bn.default.cursorShow,this.write(n),this.rl.close()}};var ol=class extends Promise{static withResolver(){let e,n;return{promise:new Promise((i,s)=>{e=i,n=s}),resolve:e,reject:n}}};function
|
|
55
|
-
at ${
|
|
56
|
-
${r}`),process.exit(1)}});import*as zn from"fs/promises";var Un=ge.command("settings").description("Edit mod settings").option("--modsPath <modsPath>","mods directory to operate on",process.cwd());Un.command("list").description("List all current saved values").action(async()=>{let t=zt.joinPath(Ze.file(Un.opts().modsPath),"mod-settings.dat"),e=new zs(new Sr(await zn.readFile(t.fsPath)));for(let n of e.list()){let r;switch(typeof n.value){case"string":r=`"${n.value}"`;break;case"object":r=`Color(${n.value.r}, ${n.value.g}, ${n.value.b}, ${n.value.a})`;break;default:r=n.value.toString();break}console.log(`${n.scope} ${n.setting} ${r}`)}});Un.command("get <scope> <name>").description("Get the saved value of a setting").action(async(t,e)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let n=zt.joinPath(Ze.file(Un.opts().modsPath),"mod-settings.dat"),i=new zs(new Sr(await zn.readFile(n.fsPath))).get(t,e);if(!i){console.log("undefined");return}switch(i.type){case"bool":case"number":console.log(`${i.value}`);break;case"int":console.log(`${i.value}n`);break;case"string":console.log(`"${i.value}"`);break;case"color":console.log(`Color(${i.value.r}, ${i.value.g}, ${i.value.b}, ${i.value.a})`);break;default:console.error(`Unknown type ${i.type}`),process.exit(1)}});Un.command("set <scope> <name>").option("--type <type>","Force type (otherwise autodetect)").argument("<value>").description("Set the saved value of a setting").action(async(t,e,n,r)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let i=zt.joinPath(Ze.file(Un.opts().modsPath),"mod-settings.dat"),s=new zs(new Sr(await zn.readFile(i.fsPath)));if(r.type)switch(r.type){case"bool":if(n==="true"||n==="false"){s.set(t,e,{type:"bool",value:n==="true"});break}else console.error(`invalid bool value ${n}`),process.exit(1);case"number":let o=Number(n);if(!isNaN(o)&&n!==""){s.set(t,e,{type:"number",value:o});break}else console.error(`invalid number value ${n}`),process.exit(1);case"color":let a=n.match(/(?:color:)?\(([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+)\s*)?\)/i);if(a){s.set(t,e,{type:"color",value:{r:Math.max(0,Math.min(1,parseFloat(a[1]))),g:Math.max(0,Math.min(1,parseFloat(a[2]))),b:Math.max(0,Math.min(1,parseFloat(a[3]))),a:a[4]?Math.max(0,Math.min(1,parseFloat(a[4]))):1}});break}if(a=n.match(/#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/),a){s.set(t,e,{type:"color",value:{r:parseInt(a[1],16)/255,g:parseInt(a[2],16)/255,b:parseInt(a[3],16)/255,a:a[4]?parseInt(a[4],16)/255:1}});break}console.error(`invalid color value ${n}`),process.exit(1);case"string":s.set(t,e,{type:"string",value:n});break;default:console.error(`Unknown type ${r.type}`),process.exit(1)}else if(n==="true"||n==="false")s.set(t,e,{type:"bool",value:n==="true"});else{let o=Number(n);!isNaN(o)&&n!==""?s.set(t,e,{type:"number",value:o}):s.set(t,e,{type:"string",value:n})}await zn.writeFile(i.fsPath,s.save())});Un.command("unset <scope> <name>").description("Remove the saved value of a setting").action(async(t,e)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let n=zt.joinPath(Ze.file(Un.opts().modsPath),"mod-settings.dat"),r=new zs(new Sr(await zn.readFile(n.fsPath)));r.set(t,e),await zn.writeFile(n.fsPath,r.save())});import*as yn from"fs/promises";import*as BF from"crypto";var vw={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(vw);var Sw=vw;var Ew={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Ew);var kw=Ew;var Tt=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},ki,to,Fr,Dh=class{constructor(...e){ki.set(this,new Map),to.set(this,new Map),Fr.set(this,new Map);for(let n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Tt(this,Fr,"f").has(r)||Tt(this,Fr,"f").set(r,new Set);let s=Tt(this,Fr,"f").get(r),o=!0;for(let a of i){let l=a.startsWith("*");if(a=l?a.slice(1):a,s?.add(a),o&&Tt(this,to,"f").set(r,a),o=!1,l)continue;let u=Tt(this,ki,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Tt(this,ki,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;let n=e.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Tt(this,ki,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Tt(this,to,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Tt(this,Fr,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let e of Tt(this,Fr,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Tt(this,ki,"f"),extensions:Tt(this,to,"f")}}};ki=new WeakMap,to=new WeakMap,Fr=new WeakMap;var vh=Dh;var Tw=new vh(kw,Sw)._freeze();import jF from"path";import{spawn as UF}from"child_process";var Ti=function(t){if(t==null)return TO;if(typeof t=="function")return ll(t);if(typeof t=="object")return Array.isArray(t)?SO(t):EO(t);if(typeof t=="string")return kO(t);throw new Error("Expected function, string, or object as test")};function SO(t){let e=[],n=-1;for(;++n<t.length;)e[n]=Ti(t[n]);return ll(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function EO(t){let e=t;return ll(n);function n(r){let i=r,s;for(s in t)if(i[s]!==e[s])return!1;return!0}}function kO(t){return ll(e);function e(n){return n&&n.type===t}}function ll(t){return e;function e(n,r,i){return!!(AO(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function TO(){return!0}function AO(t){return t!==null&&typeof t=="object"&&"type"in t}function Aw(t){return"\x1B[33m"+t+"\x1B[39m"}var Cw=[],ul=!0,Rr=!1,cl="skip";function Wn(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;let s=Ti(i),o=r?-1:1;a(t,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+Aw(l.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Cw,b,y,k;if((!e||s(l,u,c[c.length-1]||void 0))&&(p=CO(n(l,c)),p[0]===Rr))return p;if("children"in l&&l.children){let g=l;if(g.children&&p[0]!==cl)for(y=(r?g.children.length:-1)+o,k=c.concat(g);y>-1&&y<g.children.length;){let m=g.children[y];if(b=a(m,y,k)(),b[0]===Rr)return b;y=typeof b[1]=="number"?b[1]:y+o}}return p}}}function CO(t){return Array.isArray(t)?t:typeof t=="number"?[ul,t]:t==null?Cw:[t]}function Xt(t,e,n,r){let i,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,i=n):(s=e,o=n,i=r),Wn(t,s,a,i);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}var FO={};function Or(t,e){let n=e||FO,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Rw(t,r,i)}function Rw(t,e,n){if(RO(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Fw(t.children,e,n)}return Array.isArray(t)?Fw(t,e,n):""}function Fw(t,e,n){let r=[],i=-1;for(;++i<t.length;)r[i]=Rw(t[i],e,n);return r.join("")}function RO(t){return!!(t&&typeof t=="object")}var Sh={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
57
|
-
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var OO={}.hasOwnProperty;function Ai(t){return OO.call(Sh,t)?Sh[t]:!1}function $e(t,e,n,r){let i=t.length,s=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function ot(t,e){return t.length>0?($e(t,t.length,0,e),t):e}var Ow={}.hasOwnProperty;function Iw(t){let e={},n=-1;for(;++n<t.length;)IO(e,t[n]);return e}function IO(t,e){let n;for(n in e){let i=(Ow.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n],o;if(s)for(o in s){Ow.call(i,o)||(i[o]=[]);let a=s[o];LO(i[o],Array.isArray(a)?a:a?[a]:[])}}}function LO(t,e){let n=-1,r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);$e(t,0,0,r)}function fl(t,e){let n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function Sn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var yt=$n(/[A-Za-z]/),at=$n(/[\dA-Za-z]/),Lw=$n(/[#-'*+\--9=?A-Z^-~]/);function no(t){return t!==null&&(t<32||t===127)}var ro=$n(/\d/),Pw=$n(/[\dA-Fa-f]/),qw=$n(/[!-/:-@[-`{-~]/);function j(t){return t!==null&&t<-2}function Ce(t){return t!==null&&(t<0||t===32)}function H(t){return t===-2||t===-1||t===32}var Mw=$n(/\p{P}|\p{S}/u),Nw=$n(/\s/);function $n(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Y(t,e,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,s=0;return o;function o(l){return H(l)?(t.enter(n),a(l)):e(l)}function a(l){return H(l)&&s++<i?(t.consume(l),a):(t.exit(n),e(l))}}var Bw={tokenize:PO};function PO(t){let e=t.attempt(this.parser.constructs.contentInitial,r,i),n;return e;function r(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Y(t,e,"linePrefix")}function i(a){return t.enter("paragraph"),s(a)}function s(a){let l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(a)}function o(a){if(a===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(a);return}return j(a)?(t.consume(a),t.exit("chunkText"),s):(t.consume(a),o)}}var Uw={tokenize:qO},jw={tokenize:MO};function qO(t){let e=this,n=[],r=0,i,s,o;return a;function a(d){if(r<n.length){let w=n[r];return e.containerState=w[1],t.attempt(w[0].continuation,l,u)(d)}return u(d)}function l(d){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&m();let w=e.events.length,T=w,v;for(;T--;)if(e.events[T][0]==="exit"&&e.events[T][1].type==="chunkFlow"){v=e.events[T][1].end;break}g(r);let S=w;for(;S<e.events.length;)e.events[S][1].end={...v},S++;return $e(e.events,T+1,0,e.events.slice(w)),e.events.length=S,u(d)}return a(d)}function u(d){if(r===n.length){if(!i)return h(d);if(i.currentConstruct&&i.currentConstruct.concrete)return b(d);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(jw,c,f)(d)}function c(d){return i&&m(),g(r),h(d)}function f(d){return e.parser.lazy[e.now().line]=r!==n.length,o=e.now().offset,b(d)}function h(d){return e.containerState={},t.attempt(jw,p,b)(d)}function p(d){return r++,n.push([e.currentConstruct,e.containerState]),h(d)}function b(d){if(d===null){i&&m(),g(0),t.consume(d);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),y(d)}function y(d){if(d===null){k(t.exit("chunkFlow"),!0),g(0),t.consume(d);return}return j(d)?(t.consume(d),k(t.exit("chunkFlow")),r=0,e.interrupt=void 0,a):(t.consume(d),y)}function k(d,w){let T=e.sliceStream(d);if(w&&T.push(null),d.previous=s,s&&(s.next=d),s=d,i.defineSkip(d.start),i.write(T),e.parser.lazy[d.start.line]){let v=i.events.length;for(;v--;)if(i.events[v][1].start.offset<o&&(!i.events[v][1].end||i.events[v][1].end.offset>o))return;let S=e.events.length,M=S,A,F;for(;M--;)if(e.events[M][0]==="exit"&&e.events[M][1].type==="chunkFlow"){if(A){F=e.events[M][1].end;break}A=!0}for(g(r),v=S;v<e.events.length;)e.events[v][1].end={...F},v++;$e(e.events,M+1,0,e.events.slice(S)),e.events.length=v}}function g(d){let w=n.length;for(;w-- >d;){let T=n[w];e.containerState=T[1],T[0].exit.call(e,t)}n.length=d}function m(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function MO(t,e,n){return Y(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ci(t){if(t===null||Ce(t)||Nw(t))return 1;if(Mw(t))return 2}function Fi(t,e,n){let r=[],i=-1;for(;++i<t.length;){let s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}var io={name:"attention",resolveAll:NO,tokenize:BO};function NO(t,e){let n=-1,r,i,s,o,a,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;let f={...t[r][1].end},h={...t[n][1].start};zw(f,-l),zw(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...t[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:h},s={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},t[r][1].end={...o.start},t[n][1].start={...a.end},u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=ot(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=ot(u,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",s,e]]),u=ot(u,Fi(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=ot(u,[["exit",s,e],["enter",a,e],["exit",a,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=ot(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,$e(t,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function BO(t,e){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ci(r),s;return o;function o(l){return s=l,t.enter("attentionSequence"),a(l)}function a(l){if(l===s)return t.consume(l),a;let u=t.exit("attentionSequence"),c=Ci(l),f=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?f:f&&(i||!h)),u._close=!!(s===42?h:h&&(c||!f)),e(l)}}function zw(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var Eh={name:"autolink",tokenize:jO};function jO(t,e,n){let r=0;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(p){return yt(p)?(t.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||at(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(t.consume(p),r=0,l):(p===43||p===45||p===46||at(p))&&r++<32?(t.consume(p),a):(r=0,u(p))}function l(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||no(p)?n(p):(t.consume(p),l)}function u(p){return p===64?(t.consume(p),c):Lw(p)?(t.consume(p),u):n(p)}function c(p){return at(p)?f(p):n(p)}function f(p){return p===46?(t.consume(p),r=0,c):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):h(p)}function h(p){if((p===45||at(p))&&r++<63){let b=p===45?h:f;return t.consume(p),b}return n(p)}}var Hn={partial:!0,tokenize:UO};function UO(t,e,n){return r;function r(s){return H(s)?Y(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||j(s)?e(s):n(s)}}var hl={continuation:{tokenize:WO},exit:$O,name:"blockQuote",tokenize:zO};function zO(t,e,n){let r=this;return i;function i(o){if(o===62){let a=r.containerState;return a.open||(t.enter("blockQuote",{_container:!0}),a.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return n(o)}function s(o){return H(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function WO(t,e,n){let r=this;return i;function i(o){return H(o)?Y(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(hl,e,n)(o)}}function $O(t){t.exit("blockQuote")}var pl={name:"characterEscape",tokenize:HO};function HO(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return qw(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}var dl={name:"characterReference",tokenize:GO};function GO(t,e,n){let r=this,i=0,s,o;return a;function a(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),l}function l(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),s=31,o=at,c(f))}function u(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=Pw,c):(t.enter("characterReferenceValue"),s=7,o=ro,c(f))}function c(f){if(f===59&&i){let h=t.exit("characterReferenceValue");return o===at&&!Ai(r.sliceSerialize(h))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(f)&&i++<s?(t.consume(f),c):n(f)}}var Ww={partial:!0,tokenize:YO},ml={concrete:!0,name:"codeFenced",tokenize:VO};function VO(t,e,n){let r=this,i={partial:!0,tokenize:T},s=0,o=0,a;return l;function l(v){return u(v)}function u(v){let S=r.events[r.events.length-1];return s=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,a=v,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(v)}function c(v){return v===a?(o++,t.consume(v),c):o<3?n(v):(t.exit("codeFencedFenceSequence"),H(v)?Y(t,f,"whitespace")(v):f(v))}function f(v){return v===null||j(v)?(t.exit("codeFencedFence"),r.interrupt?e(v):t.check(Ww,y,w)(v)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===null||j(v)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(v)):H(v)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Y(t,p,"whitespace")(v)):v===96&&v===a?n(v):(t.consume(v),h)}function p(v){return v===null||j(v)?f(v):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),b(v))}function b(v){return v===null||j(v)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(v)):v===96&&v===a?n(v):(t.consume(v),b)}function y(v){return t.attempt(i,w,k)(v)}function k(v){return t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),g}function g(v){return s>0&&H(v)?Y(t,m,"linePrefix",s+1)(v):m(v)}function m(v){return v===null||j(v)?t.check(Ww,y,w)(v):(t.enter("codeFlowValue"),d(v))}function d(v){return v===null||j(v)?(t.exit("codeFlowValue"),m(v)):(t.consume(v),d)}function w(v){return t.exit("codeFenced"),e(v)}function T(v,S,M){let A=0;return F;function F(L){return v.enter("lineEnding"),v.consume(L),v.exit("lineEnding"),I}function I(L){return v.enter("codeFencedFence"),H(L)?Y(v,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):B(L)}function B(L){return L===a?(v.enter("codeFencedFenceSequence"),O(L)):M(L)}function O(L){return L===a?(A++,v.consume(L),O):A>=o?(v.exit("codeFencedFenceSequence"),H(L)?Y(v,R,"whitespace")(L):R(L)):M(L)}function R(L){return L===null||j(L)?(v.exit("codeFencedFence"),S(L)):M(L)}}}function YO(t,e,n){let r=this;return i;function i(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}var so={name:"codeIndented",tokenize:QO},KO={partial:!0,tokenize:ZO};function QO(t,e,n){let r=this;return i;function i(u){return t.enter("codeIndented"),Y(t,s,"linePrefix",5)(u)}function s(u){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):j(u)?t.attempt(KO,o,l)(u):(t.enter("codeFlowValue"),a(u))}function a(u){return u===null||j(u)?(t.exit("codeFlowValue"),o(u)):(t.consume(u),a)}function l(u){return t.exit("codeIndented"),e(u)}}function ZO(t,e,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):j(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):Y(t,s,"linePrefix",5)(o)}function s(o){let a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):j(o)?i(o):n(o)}}var kh={name:"codeText",previous:XO,resolve:JO,tokenize:eI};function JO(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function XO(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eI(t,e,n){let r=this,i=0,s,o;return a;function a(h){return t.enter("codeText"),t.enter("codeTextSequence"),l(h)}function l(h){return h===96?(t.consume(h),i++,l):(t.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),u):h===96?(o=t.enter("codeTextSequence"),s=0,f(h)):j(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),u):(t.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||j(h)?(t.exit("codeTextData"),u(h)):(t.consume(h),c)}function f(h){return h===96?(t.consume(h),s++,f):s===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(o.type="codeTextData",c(h))}}var gl=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){let r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){let i=n||0;this.setCursor(Math.trunc(e));let s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&oo(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),oo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),oo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let n=this.left.splice(e,Number.POSITIVE_INFINITY);oo(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);oo(this.left,n.reverse())}}};function oo(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function yl(t){let e={},n=-1,r,i,s,o,a,l,u,c=new gl(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,tI(c,n)),n=e[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=c.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return $e(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function tI(t,e){let n=t.get(e)[1],r=t.get(e)[2],i=e-1,s=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let a=o.events,l=[],u={},c,f,h=-1,p=n,b=0,y=0,k=[y];for(;p;){for(;t.get(++i)[1]!==p;);s.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(y=h+1,k.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):k.pop(),h=k.length;h--;){let g=a.slice(k[h],k[h+1]),m=s.pop();l.push([m,m+g.length-1]),t.splice(m,2,g)}for(l.reverse(),h=-1;++h<l.length;)u[b+l[h][0]]=b+l[h][1],b+=l[h][1]-l[h][0]-1;return u}var Th={resolve:rI,tokenize:iI},nI={partial:!0,tokenize:sI};function rI(t){return yl(t),t}function iI(t,e){let n;return r;function r(a){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):j(a)?t.check(nI,o,s)(a):(t.consume(a),i)}function s(a){return t.exit("chunkContent"),t.exit("content"),e(a)}function o(a){return t.consume(a),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function sI(t,e,n){let r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Y(t,s,"linePrefix")}function s(o){if(o===null||j(o))return n(o);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):t.interrupt(r.parser.constructs.flow,n,e)(o)}}function bl(t,e,n,r,i,s,o,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(g){return g===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(g),t.exit(s),h):g===null||g===32||g===41||no(g)?n(g):(t.enter(r),t.enter(o),t.enter(a),t.enter("chunkString",{contentType:"string"}),y(g))}function h(g){return g===62?(t.enter(s),t.consume(g),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(t.exit("chunkString"),t.exit(a),h(g)):g===null||g===60||j(g)?n(g):(t.consume(g),g===92?b:p)}function b(g){return g===60||g===62||g===92?(t.consume(g),p):p(g)}function y(g){return!c&&(g===null||g===41||Ce(g))?(t.exit("chunkString"),t.exit(a),t.exit(o),t.exit(r),e(g)):c<u&&g===40?(t.consume(g),c++,y):g===41?(t.consume(g),c--,y):g===null||g===32||g===40||no(g)?n(g):(t.consume(g),g===92?k:y)}function k(g){return g===40||g===41||g===92?(t.consume(g),y):y(g)}}function wl(t,e,n,r,i,s){let o=this,a=0,l;return u;function u(p){return t.enter(r),t.enter(i),t.consume(p),t.exit(i),t.enter(s),c}function c(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(t.exit(s),t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):j(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||j(p)||a++>999?(t.exit("chunkString"),c(p)):(t.consume(p),l||(l=!H(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(t.consume(p),a++,f):f(p)}}function xl(t,e,n,r,i,s){let o;return a;function a(h){return h===34||h===39||h===40?(t.enter(r),t.enter(i),t.consume(h),t.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):(t.enter(s),u(h))}function u(h){return h===o?(t.exit(s),l(o)):h===null?n(h):j(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),Y(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===o||h===null||j(h)?(t.exit("chunkString"),u(h)):(t.consume(h),h===92?f:c)}function f(h){return h===o||h===92?(t.consume(h),c):c(h)}}function Ir(t,e){let n;return r;function r(i){return j(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):H(i)?Y(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}var Ah={name:"definition",tokenize:aI},oI={partial:!0,tokenize:lI};function aI(t,e,n){let r=this,i;return s;function s(p){return t.enter("definition"),o(p)}function o(p){return wl.call(r,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Sn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),l):n(p)}function l(p){return Ce(p)?Ir(t,u)(p):u(p)}function u(p){return bl(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return t.attempt(oI,f,f)(p)}function f(p){return H(p)?Y(t,h,"whitespace")(p):h(p)}function h(p){return p===null||j(p)?(t.exit("definition"),r.parser.defined.push(i),e(p)):n(p)}}function lI(t,e,n){return r;function r(a){return Ce(a)?Ir(t,i)(a):n(a)}function i(a){return xl(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return H(a)?Y(t,o,"whitespace")(a):o(a)}function o(a){return a===null||j(a)?e(a):n(a)}}var Ch={name:"hardBreakEscape",tokenize:uI};function uI(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return j(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}var Fh={name:"headingAtx",resolve:cI,tokenize:fI};function cI(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},$e(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}function fI(t,e,n){let r=0;return i;function i(c){return t.enter("atxHeading"),s(c)}function s(c){return t.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(t.consume(c),o):c===null||Ce(c)?(t.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||j(c)?(t.exit("atxHeading"),e(c)):H(c)?Y(t,a,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Ce(c)?(t.exit("atxHeadingText"),a(c)):(t.consume(c),u)}}var $w=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Rh=["pre","script","style","textarea"];var Oh={concrete:!0,name:"htmlFlow",resolveTo:dI,tokenize:mI},hI={partial:!0,tokenize:yI},pI={partial:!0,tokenize:gI};function dI(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function mI(t,e,n){let r=this,i,s,o,a,l;return u;function u(E){return c(E)}function c(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),f}function f(E){return E===33?(t.consume(E),h):E===47?(t.consume(E),s=!0,y):E===63?(t.consume(E),i=3,r.interrupt?e:D):yt(E)?(t.consume(E),o=String.fromCharCode(E),k):n(E)}function h(E){return E===45?(t.consume(E),i=2,p):E===91?(t.consume(E),i=5,a=0,b):yt(E)?(t.consume(E),i=4,r.interrupt?e:D):n(E)}function p(E){return E===45?(t.consume(E),r.interrupt?e:D):n(E)}function b(E){let mt="CDATA[";return E===mt.charCodeAt(a++)?(t.consume(E),a===mt.length?r.interrupt?e:B:b):n(E)}function y(E){return yt(E)?(t.consume(E),o=String.fromCharCode(E),k):n(E)}function k(E){if(E===null||E===47||E===62||Ce(E)){let mt=E===47,_r=o.toLowerCase();return!mt&&!s&&Rh.includes(_r)?(i=1,r.interrupt?e(E):B(E)):$w.includes(o.toLowerCase())?(i=6,mt?(t.consume(E),g):r.interrupt?e(E):B(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):s?m(E):d(E))}return E===45||at(E)?(t.consume(E),o+=String.fromCharCode(E),k):n(E)}function g(E){return E===62?(t.consume(E),r.interrupt?e:B):n(E)}function m(E){return H(E)?(t.consume(E),m):F(E)}function d(E){return E===47?(t.consume(E),F):E===58||E===95||yt(E)?(t.consume(E),w):H(E)?(t.consume(E),d):F(E)}function w(E){return E===45||E===46||E===58||E===95||at(E)?(t.consume(E),w):T(E)}function T(E){return E===61?(t.consume(E),v):H(E)?(t.consume(E),T):d(E)}function v(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(t.consume(E),l=E,S):H(E)?(t.consume(E),v):M(E)}function S(E){return E===l?(t.consume(E),l=null,A):E===null||j(E)?n(E):(t.consume(E),S)}function M(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ce(E)?T(E):(t.consume(E),M)}function A(E){return E===47||E===62||H(E)?d(E):n(E)}function F(E){return E===62?(t.consume(E),I):n(E)}function I(E){return E===null||j(E)?B(E):H(E)?(t.consume(E),I):n(E)}function B(E){return E===45&&i===2?(t.consume(E),$):E===60&&i===1?(t.consume(E),z):E===62&&i===4?(t.consume(E),St):E===63&&i===3?(t.consume(E),D):E===93&&i===5?(t.consume(E),se):j(E)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(hI,wn,O)(E)):E===null||j(E)?(t.exit("htmlFlowData"),O(E)):(t.consume(E),B)}function O(E){return t.check(pI,R,wn)(E)}function R(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),L}function L(E){return E===null||j(E)?O(E):(t.enter("htmlFlowData"),B(E))}function $(E){return E===45?(t.consume(E),D):B(E)}function z(E){return E===47?(t.consume(E),o="",de):B(E)}function de(E){if(E===62){let mt=o.toLowerCase();return Rh.includes(mt)?(t.consume(E),St):B(E)}return yt(E)&&o.length<8?(t.consume(E),o+=String.fromCharCode(E),de):B(E)}function se(E){return E===93?(t.consume(E),D):B(E)}function D(E){return E===62?(t.consume(E),St):E===45&&i===2?(t.consume(E),D):B(E)}function St(E){return E===null||j(E)?(t.exit("htmlFlowData"),wn(E)):(t.consume(E),St)}function wn(E){return t.exit("htmlFlow"),e(E)}}function gI(t,e,n){let r=this;return i;function i(o){return j(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}function yI(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Hn,e,n)}}var Ih={name:"htmlText",tokenize:bI};function bI(t,e,n){let r=this,i,s,o;return a;function a(D){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(D),l}function l(D){return D===33?(t.consume(D),u):D===47?(t.consume(D),T):D===63?(t.consume(D),d):yt(D)?(t.consume(D),M):n(D)}function u(D){return D===45?(t.consume(D),c):D===91?(t.consume(D),s=0,b):yt(D)?(t.consume(D),m):n(D)}function c(D){return D===45?(t.consume(D),p):n(D)}function f(D){return D===null?n(D):D===45?(t.consume(D),h):j(D)?(o=f,z(D)):(t.consume(D),f)}function h(D){return D===45?(t.consume(D),p):f(D)}function p(D){return D===62?$(D):D===45?h(D):f(D)}function b(D){let St="CDATA[";return D===St.charCodeAt(s++)?(t.consume(D),s===St.length?y:b):n(D)}function y(D){return D===null?n(D):D===93?(t.consume(D),k):j(D)?(o=y,z(D)):(t.consume(D),y)}function k(D){return D===93?(t.consume(D),g):y(D)}function g(D){return D===62?$(D):D===93?(t.consume(D),g):y(D)}function m(D){return D===null||D===62?$(D):j(D)?(o=m,z(D)):(t.consume(D),m)}function d(D){return D===null?n(D):D===63?(t.consume(D),w):j(D)?(o=d,z(D)):(t.consume(D),d)}function w(D){return D===62?$(D):d(D)}function T(D){return yt(D)?(t.consume(D),v):n(D)}function v(D){return D===45||at(D)?(t.consume(D),v):S(D)}function S(D){return j(D)?(o=S,z(D)):H(D)?(t.consume(D),S):$(D)}function M(D){return D===45||at(D)?(t.consume(D),M):D===47||D===62||Ce(D)?A(D):n(D)}function A(D){return D===47?(t.consume(D),$):D===58||D===95||yt(D)?(t.consume(D),F):j(D)?(o=A,z(D)):H(D)?(t.consume(D),A):$(D)}function F(D){return D===45||D===46||D===58||D===95||at(D)?(t.consume(D),F):I(D)}function I(D){return D===61?(t.consume(D),B):j(D)?(o=I,z(D)):H(D)?(t.consume(D),I):A(D)}function B(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(t.consume(D),i=D,O):j(D)?(o=B,z(D)):H(D)?(t.consume(D),B):(t.consume(D),R)}function O(D){return D===i?(t.consume(D),i=void 0,L):D===null?n(D):j(D)?(o=O,z(D)):(t.consume(D),O)}function R(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||Ce(D)?A(D):(t.consume(D),R)}function L(D){return D===47||D===62||Ce(D)?A(D):n(D)}function $(D){return D===62?(t.consume(D),t.exit("htmlTextData"),t.exit("htmlText"),e):n(D)}function z(D){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),de}function de(D){return H(D)?Y(t,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):se(D)}function se(D){return t.enter("htmlTextData"),o(D)}}var Lr={name:"labelEnd",resolveAll:DI,resolveTo:vI,tokenize:SI},wI={tokenize:EI},xI={tokenize:kI},_I={tokenize:TI};function DI(t){let e=-1,n=[];for(;++e<t.length;){let r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&$e(t,0,t.length,n),t}function vI(t,e){let n=t.length,r=0,i,s,o,a;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);let l={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[s][1].start},end:{...t[o][1].end}},c={type:"labelText",start:{...t[s+r+2][1].end},end:{...t[o-2][1].start}};return a=[["enter",l,e],["enter",u,e]],a=ot(a,t.slice(s+1,s+r+3)),a=ot(a,[["enter",c,e]]),a=ot(a,Fi(e.parser.constructs.insideSpan.null,t.slice(s+r+4,o-3),e)),a=ot(a,[["exit",c,e],t[o-2],t[o-1],["exit",u,e]]),a=ot(a,t.slice(o+1)),a=ot(a,[["exit",l,e]]),$e(t,s,t.length,a),t}function SI(t,e,n){let r=this,i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(h){return s?s._inactive?f(h):(o=r.parser.defined.includes(Sn(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),l):n(h)}function l(h){return h===40?t.attempt(wI,c,o?c:f)(h):h===91?t.attempt(xI,c,o?u:f)(h):o?c(h):f(h)}function u(h){return t.attempt(_I,c,f)(h)}function c(h){return e(h)}function f(h){return s._balanced=!0,n(h)}}function EI(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return Ce(f)?Ir(t,s)(f):s(f)}function s(f){return f===41?c(f):bl(t,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Ce(f)?Ir(t,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?xl(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Ce(f)?Ir(t,c)(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}function kI(t,e,n){let r=this;return i;function i(a){return wl.call(r,t,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Sn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(a):n(a)}function o(a){return n(a)}}function TI(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}var Lh={name:"labelStartImage",resolveAll:Lr.resolveAll,tokenize:AI};function AI(t,e,n){let r=this;return i;function i(a){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(a),t.exit("labelImageMarker"),s}function s(a){return a===91?(t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}var Ph={name:"labelStartLink",resolveAll:Lr.resolveAll,tokenize:CI};function CI(t,e,n){let r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}var ao={name:"lineEnding",tokenize:FI};function FI(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Y(t,e,"linePrefix")}}var Pr={name:"thematicBreak",tokenize:RI};function RI(t,e,n){let r=0,i;return s;function s(u){return t.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(t.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||j(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===i?(t.consume(u),r++,l):(t.exit("thematicBreakSequence"),H(u)?Y(t,a,"whitespace")(u):a(u))}}var Je={continuation:{tokenize:PI},exit:MI,name:"list",tokenize:LI},OI={partial:!0,tokenize:NI},II={partial:!0,tokenize:qI};function LI(t,e,n){let r=this,i=r.events[r.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){let b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ro(p)){if(r.containerState.type||(r.containerState.type=b,t.enter(b,{_container:!0})),b==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(Pr,n,u)(p):u(p);if(!r.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(p)}return n(p)}function l(p){return ro(p)&&++o<10?(t.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),u(p)):n(p)}function u(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,t.check(Hn,r.interrupt?n:c,t.attempt(OI,h,f))}function c(p){return r.containerState.initialBlankLine=!0,s++,h(p)}function f(p){return H(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function PI(t,e,n){let r=this;return r.containerState._closeFlow=void 0,t.check(Hn,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(t,e,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!H(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(II,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(t,t.attempt(Je,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function qI(t,e,n){let r=this;return Y(t,i,"listItemIndent",r.containerState.size+1);function i(s){let o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(s):n(s)}}function MI(t){t.exit(this.containerState.type)}function NI(t,e,n){let r=this;return Y(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){let o=r.events[r.events.length-1];return!H(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}var _l={name:"setextUnderline",resolveTo:BI,tokenize:jI};function BI(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);let o={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",o,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end={...t[s][1].end}):t[r][1]=o,t.push(["exit",o,e]),t}function jI(t,e,n){let r=this,i;return s;function s(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return t.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(t.consume(u),a):(t.exit("setextHeadingLineSequence"),H(u)?Y(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||j(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}var Hw={tokenize:UI};function UI(t){let e=this,n=t.attempt(Hn,r,t.attempt(this.parser.constructs.flowInitial,i,Y(t,t.attempt(this.parser.constructs.flow,i,t.attempt(Th,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}var Gw={resolveAll:Qw()},Vw=Kw("string"),Yw=Kw("text");function Kw(t){return{resolveAll:Qw(t==="text"?zI:void 0),tokenize:e};function e(n){let r=this,i=this.parser.constructs[t],s=n.attempt(i,o,a);return o;function o(c){return u(c)?s(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;let f=i[c],h=-1;if(f)for(;++h<f.length;){let p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Qw(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}function zI(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){let r=t[n-1][1],i=e.sliceStream(r),s=i.length,o=-1,a=0,l;for(;s--;){let u=i[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)l=!0,a++;else if(u!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(a=0),a){let u={type:n===t.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}var qh={};Jy(qh,{attentionMarkers:()=>QI,contentInitial:()=>$I,disable:()=>ZI,document:()=>WI,flow:()=>GI,flowInitial:()=>HI,insideSpan:()=>KI,string:()=>VI,text:()=>YI});var WI={42:Je,43:Je,45:Je,48:Je,49:Je,50:Je,51:Je,52:Je,53:Je,54:Je,55:Je,56:Je,57:Je,62:hl},$I={91:Ah},HI={[-2]:so,[-1]:so,32:so},GI={35:Fh,42:Pr,45:[_l,Pr],60:Oh,61:_l,95:Pr,96:ml,126:ml},VI={38:dl,92:pl},YI={[-5]:ao,[-4]:ao,[-3]:ao,33:Lh,38:dl,42:io,60:[Eh,Ih],91:Ph,92:[Ch,pl],93:Lr,95:io,96:kh},KI={null:[io,Gw]},QI={null:[42,95]},ZI={null:[]};function Zw(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},s=[],o=[],a=[],l=!0,u={attempt:A(S),check:A(M),consume:w,enter:T,exit:v,interrupt:A(M,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:k,parser:t,previous:null,sliceSerialize:b,sliceStream:y,write:p},f=e.tokenize.call(c,u),h;return e.resolveAll&&s.push(e),c;function p(O){return o=ot(o,O),m(),o[o.length-1]!==null?[]:(F(e,0),c.events=Fi(s,c.events,c),c.events)}function b(O,R){return XI(y(O),R)}function y(O){return JI(o,O)}function k(){let{_bufferIndex:O,_index:R,line:L,column:$,offset:z}=r;return{_bufferIndex:O,_index:R,line:L,column:$,offset:z}}function g(O){i[O.line]=O.column,B()}function m(){let O;for(;r._index<o.length;){let R=o[r._index];if(typeof R=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<R.length;)d(R.charCodeAt(r._bufferIndex));else d(R)}}function d(O){l=void 0,h=O,f=f(O)}function w(O){j(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,B()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O,l=!0}function T(O,R){let L=R||{};return L.type=O,L.start=k(),c.events.push(["enter",L,c]),a.push(L),L}function v(O){let R=a.pop();return R.end=k(),c.events.push(["exit",R,c]),R}function S(O,R){F(O,R.from)}function M(O,R){R.restore()}function A(O,R){return L;function L($,z,de){let se,D,St,wn;return Array.isArray($)?mt($):"tokenize"in $?mt([$]):E($);function E(We){return Ns;function Ns(xn){let Dr=xn!==null&&We[xn],bi=xn!==null&&We.null,Lf=[...Array.isArray(Dr)?Dr:Dr?[Dr]:[],...Array.isArray(bi)?bi:bi?[bi]:[]];return mt(Lf)(xn)}}function mt(We){return se=We,D=0,We.length===0?de:_r(We[D])}function _r(We){return Ns;function Ns(xn){return wn=I(),St=We,We.partial||(c.currentConstruct=We),We.name&&c.parser.constructs.disable.null.includes(We.name)?ja(xn):We.tokenize.call(R?Object.assign(Object.create(c),R):c,u,If,ja)(xn)}}function If(We){return l=!0,O(St,wn),z}function ja(We){return l=!0,wn.restore(),++D<se.length?_r(se[D]):de}}}function F(O,R){O.resolveAll&&!s.includes(O)&&s.push(O),O.resolve&&$e(c.events,R,c.events.length-R,O.resolve(c.events.slice(R),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function I(){let O=k(),R=c.previous,L=c.currentConstruct,$=c.events.length,z=Array.from(a);return{from:$,restore:de};function de(){r=O,c.previous=R,c.currentConstruct=L,c.events.length=$,a=z,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function JI(t,e){let n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex,o;if(n===i)o=[t[n].slice(r,s)];else{if(o=t.slice(n,i),r>-1){let a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(t[i].slice(0,s))}return o}function XI(t,e){let n=-1,r=[],i;for(;++n<t.length;){let s=t[n],o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
53
|
+
`+n:""),u=Math.floor(i.length/o)-this.cursorPos.rows+(n?_w(n):0);u>0&&(a+=Bn.default.cursorUp(u)),a+=Bn.default.cursorTo(this.cursorPos.cols),this.write(Dw(this.extraLinesUnderPrompt)+Bn.default.eraseLines(this.height)+a),this.extraLinesUnderPrompt=u,this.height=_w(a)}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(Bn.default.cursorTo(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt("");let n=Dw(this.extraLinesUnderPrompt);n+=e?Bn.default.eraseLines(this.height):`
|
|
54
|
+
`,n+=Bn.default.cursorShow,this.write(n),this.rl.close()}};var ol=class extends Promise{static withResolver(){let e,n;return{promise:new Promise((i,s)=>{e=i,n=s}),resolve:e,reject:n}}};function TO(){let t=Error.prepareStackTrace,e=[];try{Error.prepareStackTrace=(n,r)=>{let i=r.slice(1);return e=i,i},new Error().stack}catch{return e}return Error.prepareStackTrace=t,e}function eo(t){let e=TO();return(r,i={})=>{let{input:s=process.stdin,signal:o}=i,a=new Set,l=new Sw.default;l.pipe(i.output??process.stdout);let u=vw.createInterface({terminal:!0,input:s,output:l}),c=new Xs(u),{promise:f,resolve:h,reject:p}=ol.withResolver(),b=()=>p(new Qa);if(o){let g=()=>p(new Ka({cause:o.reason}));if(o.aborted)return g(),Object.assign(f,{cancel:b});o.addEventListener("abort",g),a.add(()=>o.removeEventListener("abort",g))}a.add(ww((g,m)=>{p(new Gs(`User force closed the prompt with ${g} ${m}`))}));let y=()=>p(new Gs("User force closed the prompt with SIGINT"));u.on("SIGINT",y),a.add(()=>u.removeListener("SIGINT",y));let k=()=>c.checkCursorPos();return u.input.on("keypress",k),a.add(()=>u.input.removeListener("keypress",k)),Tb(u,g=>{let m=kO.bind(()=>Tr.clearAll());return u.on("close",m),a.add(()=>u.removeListener("close",m)),g(()=>{try{let d=t(r,D=>{setImmediate(()=>h(D))});if(d===void 0){let D=e[1]?.getFileName();throw new Error(`Prompt functions must return a string.
|
|
55
|
+
at ${D}`)}let[w,T]=typeof d=="string"?[d]:d;c.render(w,T),Tr.run()}catch(d){p(d)}}),Object.assign(f.then(d=>(Tr.clearAll(),d),d=>{throw Tr.clearAll(),d}).finally(()=>{a.forEach(d=>d()),c.done({clearContent:!!i.clearPromptOnDone}),l.end()}).then(()=>f),{cancel:b})})}}var AO={validationFailureMode:"keep"},Ew=eo((t,e)=>{let{required:n,validate:r=()=>!0,prefill:i="tab"}=t,s=Cr(AO,t.theme),[o,a]=st("idle"),[l="",u]=st(t.default),[c,f]=st(),[h,p]=st(""),b=Ys({status:o,theme:s});Ks(async(d,w)=>{if(o==="idle")if(Ya(d)){let T=h||l;a("loading");let D=n&&!T?"You must provide a value":await r(T);D===!0?(p(T),a("done"),e(T)):(s.validationFailureMode==="clear"?p(""):w.write(h),f(D||"You must provide a valid value"),a("idle"))}else Eb(d)&&!h?u(void 0):d.name==="tab"&&!h?(u(void 0),w.clearLine(0),w.write(l),p(l)):(p(w.line),f(void 0))}),Ar(d=>{i==="editable"&&l&&(d.write(l),p(l))},[]);let y=s.style.message(t.message,o),k=h;typeof t.transformer=="function"?k=t.transformer(h,{isFinal:o==="done"}):o==="done"&&(k=s.style.answer(h));let g;l&&o!=="done"&&!h&&(g=s.style.defaultAnswer(l));let m="";return c&&(m=s.style.error(c)),[[b,y,g,k].filter(d=>d!==void 0).join(" "),m]});var kw=Qe(xh(),1),al=eo((t,e)=>{let{validate:n=()=>!0}=t,r=Cr(t.theme),[i,s]=st("idle"),[o,a]=st(),[l,u]=st(""),c=Ys({status:i,theme:r});Ks(async(y,k)=>{if(i==="idle")if(Ya(y)){let g=l;s("loading");let m=await n(g);m===!0?(u(g),s("done"),e(g)):(k.write(l),a(m||"You must provide a valid value"),s("idle"))}else u(k.line),a(void 0)});let f=r.style.message(t.message,i),h="",p;t.mask?h=(typeof t.mask=="string"?t.mask:"*").repeat(l.length):i!=="done"&&(p=`${r.style.help("[input is masked]")}${kw.default.cursorHide}`),i==="done"&&(h=r.style.answer(h));let b="";return o&&(b=r.style.error(o)),[[c,f,t.mask?h:p].join(" "),b]});var jn=ge.command("mods").description("Mod management commands").option("--modsPath <modsPath>","mods directory to operate on",process.cwd());jn.command("enable <modname> [version]").description("Enable a mod or select a specific version of it").action(async(t,e)=>{let n=new zs(jn.opts().modsPath);await n.Loaded,n.set(t,e??!0),await n.write()});jn.command("disable <modname>").description("Disable a mod").action(async t=>{let e=new zs(jn.opts().modsPath);await e.Loaded,e.set(t,!1),await e.write()});jn.command("install <modname>").description("Install a mod.").option("--keepOld","Don't remove old versions if present").option("--force","Install even if there is an existing mod of the correct version").option("--playerData <player-data.json>").action(async(t,e)=>{let n=new zs(jn.opts().modsPath,e.playerData);await n.Loaded,console.log(JSON.stringify(await n.installMod(t,{origin:"any",force:e.force,credentialPrompt:async r=>{r=await Ew({message:"Username:",default:r});let i=await al({message:"Password:"});return{username:r,password:i}}})))});jn.command("adjust <changes...>").description("Configure multiple mods at once: modname=true|false|x.y.z").option("--allowDisableBase","Allow disabling the base mod").option("--disableExtra","Disable any mods not named in the changeset").action(async(t,e)=>{let n=new zs(jn.opts().modsPath);await n.Loaded,e.disableExtra&&(console.log("All Mods disabled"),n.disableAll());for(let r of t){let i=r.match(/^(.*)=(true|false|(?:\d+\.){2}\d+)$/);if(!i)console.log(`Doing nothing with invalid adjust arg "${r}"`);else{let s=i[1],o=i[2]==="true"?!0:i[2]==="false"?!1:i[2];n.set(s,o),console.log(`${s} ${o===!0?"enabled":o===!1?"disabled":"enabled version "+o}`)}}e.allowDisableBase||n.set("base",!0);try{await n.write()}catch(r){console.error(`Failed to save mod list:
|
|
56
|
+
${r}`),process.exit(1)}});import*as zn from"fs/promises";var Un=ge.command("settings").description("Edit mod settings").option("--modsPath <modsPath>","mods directory to operate on",process.cwd());Un.command("list").description("List all current saved values").action(async()=>{let t=zt.joinPath(Ze.file(Un.opts().modsPath),"mod-settings.dat"),e=new Ws(new Sr(await zn.readFile(t.fsPath)));for(let n of e.list()){let r;switch(typeof n.value){case"string":r=`"${n.value}"`;break;case"object":r=`Color(${n.value.r}, ${n.value.g}, ${n.value.b}, ${n.value.a})`;break;default:r=n.value.toString();break}console.log(`${n.scope} ${n.setting} ${r}`)}});Un.command("get <scope> <name>").description("Get the saved value of a setting").action(async(t,e)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let n=zt.joinPath(Ze.file(Un.opts().modsPath),"mod-settings.dat"),i=new Ws(new Sr(await zn.readFile(n.fsPath))).get(t,e);if(!i){console.log("undefined");return}switch(i.type){case"bool":case"number":console.log(`${i.value}`);break;case"int":console.log(`${i.value}n`);break;case"string":console.log(`"${i.value}"`);break;case"color":console.log(`Color(${i.value.r}, ${i.value.g}, ${i.value.b}, ${i.value.a})`);break;default:console.error(`Unknown type ${i.type}`),process.exit(1)}});Un.command("set <scope> <name>").option("--type <type>","Force type (otherwise autodetect)").argument("<value>").description("Set the saved value of a setting").action(async(t,e,n,r)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let i=zt.joinPath(Ze.file(Un.opts().modsPath),"mod-settings.dat"),s=new Ws(new Sr(await zn.readFile(i.fsPath)));if(r.type)switch(r.type){case"bool":if(n==="true"||n==="false"){s.set(t,e,{type:"bool",value:n==="true"});break}else console.error(`invalid bool value ${n}`),process.exit(1);case"number":let o=Number(n);if(!isNaN(o)&&n!==""){s.set(t,e,{type:"number",value:o});break}else console.error(`invalid number value ${n}`),process.exit(1);case"color":let a=n.match(/(?:color:)?\(([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+)\s*)?\)/i);if(a){s.set(t,e,{type:"color",value:{r:Math.max(0,Math.min(1,parseFloat(a[1]))),g:Math.max(0,Math.min(1,parseFloat(a[2]))),b:Math.max(0,Math.min(1,parseFloat(a[3]))),a:a[4]?Math.max(0,Math.min(1,parseFloat(a[4]))):1}});break}if(a=n.match(/#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/),a){s.set(t,e,{type:"color",value:{r:parseInt(a[1],16)/255,g:parseInt(a[2],16)/255,b:parseInt(a[3],16)/255,a:a[4]?parseInt(a[4],16)/255:1}});break}console.error(`invalid color value ${n}`),process.exit(1);case"string":s.set(t,e,{type:"string",value:n});break;default:console.error(`Unknown type ${r.type}`),process.exit(1)}else if(n==="true"||n==="false")s.set(t,e,{type:"bool",value:n==="true"});else{let o=Number(n);!isNaN(o)&&n!==""?s.set(t,e,{type:"number",value:o}):s.set(t,e,{type:"string",value:n})}await zn.writeFile(i.fsPath,s.save())});Un.command("unset <scope> <name>").description("Remove the saved value of a setting").action(async(t,e)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let n=zt.joinPath(Ze.file(Un.opts().modsPath),"mod-settings.dat"),r=new Ws(new Sr(await zn.readFile(n.fsPath)));r.set(t,e),await zn.writeFile(n.fsPath,r.save())});import*as yn from"fs/promises";import*as WF from"crypto";var Tw={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(Tw);var Aw=Tw;var Cw={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Cw);var Fw=Cw;var Tt=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Ti,to,Rr,_h=class{constructor(...e){Ti.set(this,new Map),to.set(this,new Map),Rr.set(this,new Map);for(let n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Tt(this,Rr,"f").has(r)||Tt(this,Rr,"f").set(r,new Set);let s=Tt(this,Rr,"f").get(r),o=!0;for(let a of i){let l=a.startsWith("*");if(a=l?a.slice(1):a,s?.add(a),o&&Tt(this,to,"f").set(r,a),o=!1,l)continue;let u=Tt(this,Ti,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Tt(this,Ti,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;let n=e.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Tt(this,Ti,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Tt(this,to,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Tt(this,Rr,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let e of Tt(this,Rr,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Tt(this,Ti,"f"),extensions:Tt(this,to,"f")}}};Ti=new WeakMap,to=new WeakMap,Rr=new WeakMap;var Dh=_h;var Rw=new Dh(Fw,Aw)._freeze();import $F from"path";import{spawn as HF}from"child_process";var Ai=function(t){if(t==null)return OO;if(typeof t=="function")return ll(t);if(typeof t=="object")return Array.isArray(t)?CO(t):FO(t);if(typeof t=="string")return RO(t);throw new Error("Expected function, string, or object as test")};function CO(t){let e=[],n=-1;for(;++n<t.length;)e[n]=Ai(t[n]);return ll(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function FO(t){let e=t;return ll(n);function n(r){let i=r,s;for(s in t)if(i[s]!==e[s])return!1;return!0}}function RO(t){return ll(e);function e(n){return n&&n.type===t}}function ll(t){return e;function e(n,r,i){return!!(IO(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function OO(){return!0}function IO(t){return t!==null&&typeof t=="object"&&"type"in t}function Ow(t){return"\x1B[33m"+t+"\x1B[39m"}var Iw=[],ul=!0,Or=!1,cl="skip";function Wn(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;let s=Ai(i),o=r?-1:1;a(t,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+Ow(l.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Iw,b,y,k;if((!e||s(l,u,c[c.length-1]||void 0))&&(p=LO(n(l,c)),p[0]===Or))return p;if("children"in l&&l.children){let g=l;if(g.children&&p[0]!==cl)for(y=(r?g.children.length:-1)+o,k=c.concat(g);y>-1&&y<g.children.length;){let m=g.children[y];if(b=a(m,y,k)(),b[0]===Or)return b;y=typeof b[1]=="number"?b[1]:y+o}}return p}}}function LO(t){return Array.isArray(t)?t:typeof t=="number"?[ul,t]:t==null?Iw:[t]}function Xt(t,e,n,r){let i,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,i=n):(s=e,o=n,i=r),Wn(t,s,a,i);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}var PO={};function Ir(t,e){let n=e||PO,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Pw(t,r,i)}function Pw(t,e,n){if(qO(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Lw(t.children,e,n)}return Array.isArray(t)?Lw(t,e,n):""}function Lw(t,e,n){let r=[],i=-1;for(;++i<t.length;)r[i]=Pw(t[i],e,n);return r.join("")}function qO(t){return!!(t&&typeof t=="object")}var vh={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
57
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var MO={}.hasOwnProperty;function Ci(t){return MO.call(vh,t)?vh[t]:!1}function $e(t,e,n,r){let i=t.length,s=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function ot(t,e){return t.length>0?($e(t,t.length,0,e),t):e}var qw={}.hasOwnProperty;function Mw(t){let e={},n=-1;for(;++n<t.length;)NO(e,t[n]);return e}function NO(t,e){let n;for(n in e){let i=(qw.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n],o;if(s)for(o in s){qw.call(i,o)||(i[o]=[]);let a=s[o];BO(i[o],Array.isArray(a)?a:a?[a]:[])}}}function BO(t,e){let n=-1,r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);$e(t,0,0,r)}function fl(t,e){let n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function Sn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var yt=$n(/[A-Za-z]/),at=$n(/[\dA-Za-z]/),Nw=$n(/[#-'*+\--9=?A-Z^-~]/);function no(t){return t!==null&&(t<32||t===127)}var ro=$n(/\d/),Bw=$n(/[\dA-Fa-f]/),jw=$n(/[!-/:-@[-`{-~]/);function j(t){return t!==null&&t<-2}function Ce(t){return t!==null&&(t<0||t===32)}function H(t){return t===-2||t===-1||t===32}var Uw=$n(/\p{P}|\p{S}/u),zw=$n(/\s/);function $n(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Y(t,e,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,s=0;return o;function o(l){return H(l)?(t.enter(n),a(l)):e(l)}function a(l){return H(l)&&s++<i?(t.consume(l),a):(t.exit(n),e(l))}}var Ww={tokenize:jO};function jO(t){let e=t.attempt(this.parser.constructs.contentInitial,r,i),n;return e;function r(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Y(t,e,"linePrefix")}function i(a){return t.enter("paragraph"),s(a)}function s(a){let l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(a)}function o(a){if(a===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(a);return}return j(a)?(t.consume(a),t.exit("chunkText"),s):(t.consume(a),o)}}var Hw={tokenize:UO},$w={tokenize:zO};function UO(t){let e=this,n=[],r=0,i,s,o;return a;function a(d){if(r<n.length){let w=n[r];return e.containerState=w[1],t.attempt(w[0].continuation,l,u)(d)}return u(d)}function l(d){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&m();let w=e.events.length,T=w,D;for(;T--;)if(e.events[T][0]==="exit"&&e.events[T][1].type==="chunkFlow"){D=e.events[T][1].end;break}g(r);let S=w;for(;S<e.events.length;)e.events[S][1].end={...D},S++;return $e(e.events,T+1,0,e.events.slice(w)),e.events.length=S,u(d)}return a(d)}function u(d){if(r===n.length){if(!i)return h(d);if(i.currentConstruct&&i.currentConstruct.concrete)return b(d);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check($w,c,f)(d)}function c(d){return i&&m(),g(r),h(d)}function f(d){return e.parser.lazy[e.now().line]=r!==n.length,o=e.now().offset,b(d)}function h(d){return e.containerState={},t.attempt($w,p,b)(d)}function p(d){return r++,n.push([e.currentConstruct,e.containerState]),h(d)}function b(d){if(d===null){i&&m(),g(0),t.consume(d);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),y(d)}function y(d){if(d===null){k(t.exit("chunkFlow"),!0),g(0),t.consume(d);return}return j(d)?(t.consume(d),k(t.exit("chunkFlow")),r=0,e.interrupt=void 0,a):(t.consume(d),y)}function k(d,w){let T=e.sliceStream(d);if(w&&T.push(null),d.previous=s,s&&(s.next=d),s=d,i.defineSkip(d.start),i.write(T),e.parser.lazy[d.start.line]){let D=i.events.length;for(;D--;)if(i.events[D][1].start.offset<o&&(!i.events[D][1].end||i.events[D][1].end.offset>o))return;let S=e.events.length,M=S,A,F;for(;M--;)if(e.events[M][0]==="exit"&&e.events[M][1].type==="chunkFlow"){if(A){F=e.events[M][1].end;break}A=!0}for(g(r),D=S;D<e.events.length;)e.events[D][1].end={...F},D++;$e(e.events,M+1,0,e.events.slice(S)),e.events.length=D}}function g(d){let w=n.length;for(;w-- >d;){let T=n[w];e.containerState=T[1],T[0].exit.call(e,t)}n.length=d}function m(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function zO(t,e,n){return Y(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fi(t){if(t===null||Ce(t)||zw(t))return 1;if(Uw(t))return 2}function Ri(t,e,n){let r=[],i=-1;for(;++i<t.length;){let s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}var io={name:"attention",resolveAll:WO,tokenize:$O};function WO(t,e){let n=-1,r,i,s,o,a,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;let f={...t[r][1].end},h={...t[n][1].start};Gw(f,-l),Gw(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...t[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:h},s={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},t[r][1].end={...o.start},t[n][1].start={...a.end},u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=ot(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=ot(u,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",s,e]]),u=ot(u,Ri(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=ot(u,[["exit",s,e],["enter",a,e],["exit",a,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=ot(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,$e(t,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function $O(t,e){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fi(r),s;return o;function o(l){return s=l,t.enter("attentionSequence"),a(l)}function a(l){if(l===s)return t.consume(l),a;let u=t.exit("attentionSequence"),c=Fi(l),f=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?f:f&&(i||!h)),u._close=!!(s===42?h:h&&(c||!f)),e(l)}}function Gw(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var Sh={name:"autolink",tokenize:HO};function HO(t,e,n){let r=0;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(p){return yt(p)?(t.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||at(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(t.consume(p),r=0,l):(p===43||p===45||p===46||at(p))&&r++<32?(t.consume(p),a):(r=0,u(p))}function l(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||no(p)?n(p):(t.consume(p),l)}function u(p){return p===64?(t.consume(p),c):Nw(p)?(t.consume(p),u):n(p)}function c(p){return at(p)?f(p):n(p)}function f(p){return p===46?(t.consume(p),r=0,c):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):h(p)}function h(p){if((p===45||at(p))&&r++<63){let b=p===45?h:f;return t.consume(p),b}return n(p)}}var Hn={partial:!0,tokenize:GO};function GO(t,e,n){return r;function r(s){return H(s)?Y(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||j(s)?e(s):n(s)}}var hl={continuation:{tokenize:YO},exit:KO,name:"blockQuote",tokenize:VO};function VO(t,e,n){let r=this;return i;function i(o){if(o===62){let a=r.containerState;return a.open||(t.enter("blockQuote",{_container:!0}),a.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return n(o)}function s(o){return H(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function YO(t,e,n){let r=this;return i;function i(o){return H(o)?Y(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(hl,e,n)(o)}}function KO(t){t.exit("blockQuote")}var pl={name:"characterEscape",tokenize:QO};function QO(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return jw(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}var dl={name:"characterReference",tokenize:ZO};function ZO(t,e,n){let r=this,i=0,s,o;return a;function a(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),l}function l(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),s=31,o=at,c(f))}function u(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=Bw,c):(t.enter("characterReferenceValue"),s=7,o=ro,c(f))}function c(f){if(f===59&&i){let h=t.exit("characterReferenceValue");return o===at&&!Ci(r.sliceSerialize(h))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(f)&&i++<s?(t.consume(f),c):n(f)}}var Vw={partial:!0,tokenize:XO},ml={concrete:!0,name:"codeFenced",tokenize:JO};function JO(t,e,n){let r=this,i={partial:!0,tokenize:T},s=0,o=0,a;return l;function l(D){return u(D)}function u(D){let S=r.events[r.events.length-1];return s=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,a=D,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(D)}function c(D){return D===a?(o++,t.consume(D),c):o<3?n(D):(t.exit("codeFencedFenceSequence"),H(D)?Y(t,f,"whitespace")(D):f(D))}function f(D){return D===null||j(D)?(t.exit("codeFencedFence"),r.interrupt?e(D):t.check(Vw,y,w)(D)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(D))}function h(D){return D===null||j(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(D)):H(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Y(t,p,"whitespace")(D)):D===96&&D===a?n(D):(t.consume(D),h)}function p(D){return D===null||j(D)?f(D):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),b(D))}function b(D){return D===null||j(D)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(D)):D===96&&D===a?n(D):(t.consume(D),b)}function y(D){return t.attempt(i,w,k)(D)}function k(D){return t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),g}function g(D){return s>0&&H(D)?Y(t,m,"linePrefix",s+1)(D):m(D)}function m(D){return D===null||j(D)?t.check(Vw,y,w)(D):(t.enter("codeFlowValue"),d(D))}function d(D){return D===null||j(D)?(t.exit("codeFlowValue"),m(D)):(t.consume(D),d)}function w(D){return t.exit("codeFenced"),e(D)}function T(D,S,M){let A=0;return F;function F(L){return D.enter("lineEnding"),D.consume(L),D.exit("lineEnding"),I}function I(L){return D.enter("codeFencedFence"),H(L)?Y(D,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):B(L)}function B(L){return L===a?(D.enter("codeFencedFenceSequence"),O(L)):M(L)}function O(L){return L===a?(A++,D.consume(L),O):A>=o?(D.exit("codeFencedFenceSequence"),H(L)?Y(D,R,"whitespace")(L):R(L)):M(L)}function R(L){return L===null||j(L)?(D.exit("codeFencedFence"),S(L)):M(L)}}}function XO(t,e,n){let r=this;return i;function i(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}var so={name:"codeIndented",tokenize:tI},eI={partial:!0,tokenize:nI};function tI(t,e,n){let r=this;return i;function i(u){return t.enter("codeIndented"),Y(t,s,"linePrefix",5)(u)}function s(u){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):j(u)?t.attempt(eI,o,l)(u):(t.enter("codeFlowValue"),a(u))}function a(u){return u===null||j(u)?(t.exit("codeFlowValue"),o(u)):(t.consume(u),a)}function l(u){return t.exit("codeIndented"),e(u)}}function nI(t,e,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):j(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):Y(t,s,"linePrefix",5)(o)}function s(o){let a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):j(o)?i(o):n(o)}}var Eh={name:"codeText",previous:iI,resolve:rI,tokenize:sI};function rI(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function iI(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sI(t,e,n){let r=this,i=0,s,o;return a;function a(h){return t.enter("codeText"),t.enter("codeTextSequence"),l(h)}function l(h){return h===96?(t.consume(h),i++,l):(t.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),u):h===96?(o=t.enter("codeTextSequence"),s=0,f(h)):j(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),u):(t.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||j(h)?(t.exit("codeTextData"),u(h)):(t.consume(h),c)}function f(h){return h===96?(t.consume(h),s++,f):s===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(o.type="codeTextData",c(h))}}var gl=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){let r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){let i=n||0;this.setCursor(Math.trunc(e));let s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&oo(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),oo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),oo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let n=this.left.splice(e,Number.POSITIVE_INFINITY);oo(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);oo(this.left,n.reverse())}}};function oo(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function yl(t){let e={},n=-1,r,i,s,o,a,l,u,c=new gl(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,oI(c,n)),n=e[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=c.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return $e(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function oI(t,e){let n=t.get(e)[1],r=t.get(e)[2],i=e-1,s=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let a=o.events,l=[],u={},c,f,h=-1,p=n,b=0,y=0,k=[y];for(;p;){for(;t.get(++i)[1]!==p;);s.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(y=h+1,k.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):k.pop(),h=k.length;h--;){let g=a.slice(k[h],k[h+1]),m=s.pop();l.push([m,m+g.length-1]),t.splice(m,2,g)}for(l.reverse(),h=-1;++h<l.length;)u[b+l[h][0]]=b+l[h][1],b+=l[h][1]-l[h][0]-1;return u}var kh={resolve:lI,tokenize:uI},aI={partial:!0,tokenize:cI};function lI(t){return yl(t),t}function uI(t,e){let n;return r;function r(a){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):j(a)?t.check(aI,o,s)(a):(t.consume(a),i)}function s(a){return t.exit("chunkContent"),t.exit("content"),e(a)}function o(a){return t.consume(a),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function cI(t,e,n){let r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Y(t,s,"linePrefix")}function s(o){if(o===null||j(o))return n(o);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):t.interrupt(r.parser.constructs.flow,n,e)(o)}}function bl(t,e,n,r,i,s,o,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(g){return g===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(g),t.exit(s),h):g===null||g===32||g===41||no(g)?n(g):(t.enter(r),t.enter(o),t.enter(a),t.enter("chunkString",{contentType:"string"}),y(g))}function h(g){return g===62?(t.enter(s),t.consume(g),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(t.exit("chunkString"),t.exit(a),h(g)):g===null||g===60||j(g)?n(g):(t.consume(g),g===92?b:p)}function b(g){return g===60||g===62||g===92?(t.consume(g),p):p(g)}function y(g){return!c&&(g===null||g===41||Ce(g))?(t.exit("chunkString"),t.exit(a),t.exit(o),t.exit(r),e(g)):c<u&&g===40?(t.consume(g),c++,y):g===41?(t.consume(g),c--,y):g===null||g===32||g===40||no(g)?n(g):(t.consume(g),g===92?k:y)}function k(g){return g===40||g===41||g===92?(t.consume(g),y):y(g)}}function wl(t,e,n,r,i,s){let o=this,a=0,l;return u;function u(p){return t.enter(r),t.enter(i),t.consume(p),t.exit(i),t.enter(s),c}function c(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(t.exit(s),t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):j(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||j(p)||a++>999?(t.exit("chunkString"),c(p)):(t.consume(p),l||(l=!H(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(t.consume(p),a++,f):f(p)}}function xl(t,e,n,r,i,s){let o;return a;function a(h){return h===34||h===39||h===40?(t.enter(r),t.enter(i),t.consume(h),t.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):(t.enter(s),u(h))}function u(h){return h===o?(t.exit(s),l(o)):h===null?n(h):j(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),Y(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===o||h===null||j(h)?(t.exit("chunkString"),u(h)):(t.consume(h),h===92?f:c)}function f(h){return h===o||h===92?(t.consume(h),c):c(h)}}function Lr(t,e){let n;return r;function r(i){return j(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):H(i)?Y(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}var Th={name:"definition",tokenize:hI},fI={partial:!0,tokenize:pI};function hI(t,e,n){let r=this,i;return s;function s(p){return t.enter("definition"),o(p)}function o(p){return wl.call(r,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Sn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),l):n(p)}function l(p){return Ce(p)?Lr(t,u)(p):u(p)}function u(p){return bl(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return t.attempt(fI,f,f)(p)}function f(p){return H(p)?Y(t,h,"whitespace")(p):h(p)}function h(p){return p===null||j(p)?(t.exit("definition"),r.parser.defined.push(i),e(p)):n(p)}}function pI(t,e,n){return r;function r(a){return Ce(a)?Lr(t,i)(a):n(a)}function i(a){return xl(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return H(a)?Y(t,o,"whitespace")(a):o(a)}function o(a){return a===null||j(a)?e(a):n(a)}}var Ah={name:"hardBreakEscape",tokenize:dI};function dI(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return j(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}var Ch={name:"headingAtx",resolve:mI,tokenize:gI};function mI(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},$e(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}function gI(t,e,n){let r=0;return i;function i(c){return t.enter("atxHeading"),s(c)}function s(c){return t.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(t.consume(c),o):c===null||Ce(c)?(t.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||j(c)?(t.exit("atxHeading"),e(c)):H(c)?Y(t,a,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Ce(c)?(t.exit("atxHeadingText"),a(c)):(t.consume(c),u)}}var Yw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Fh=["pre","script","style","textarea"];var Rh={concrete:!0,name:"htmlFlow",resolveTo:wI,tokenize:xI},yI={partial:!0,tokenize:DI},bI={partial:!0,tokenize:_I};function wI(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function xI(t,e,n){let r=this,i,s,o,a,l;return u;function u(E){return c(E)}function c(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),f}function f(E){return E===33?(t.consume(E),h):E===47?(t.consume(E),s=!0,y):E===63?(t.consume(E),i=3,r.interrupt?e:v):yt(E)?(t.consume(E),o=String.fromCharCode(E),k):n(E)}function h(E){return E===45?(t.consume(E),i=2,p):E===91?(t.consume(E),i=5,a=0,b):yt(E)?(t.consume(E),i=4,r.interrupt?e:v):n(E)}function p(E){return E===45?(t.consume(E),r.interrupt?e:v):n(E)}function b(E){let mt="CDATA[";return E===mt.charCodeAt(a++)?(t.consume(E),a===mt.length?r.interrupt?e:B:b):n(E)}function y(E){return yt(E)?(t.consume(E),o=String.fromCharCode(E),k):n(E)}function k(E){if(E===null||E===47||E===62||Ce(E)){let mt=E===47,_r=o.toLowerCase();return!mt&&!s&&Fh.includes(_r)?(i=1,r.interrupt?e(E):B(E)):Yw.includes(o.toLowerCase())?(i=6,mt?(t.consume(E),g):r.interrupt?e(E):B(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):s?m(E):d(E))}return E===45||at(E)?(t.consume(E),o+=String.fromCharCode(E),k):n(E)}function g(E){return E===62?(t.consume(E),r.interrupt?e:B):n(E)}function m(E){return H(E)?(t.consume(E),m):F(E)}function d(E){return E===47?(t.consume(E),F):E===58||E===95||yt(E)?(t.consume(E),w):H(E)?(t.consume(E),d):F(E)}function w(E){return E===45||E===46||E===58||E===95||at(E)?(t.consume(E),w):T(E)}function T(E){return E===61?(t.consume(E),D):H(E)?(t.consume(E),T):d(E)}function D(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(t.consume(E),l=E,S):H(E)?(t.consume(E),D):M(E)}function S(E){return E===l?(t.consume(E),l=null,A):E===null||j(E)?n(E):(t.consume(E),S)}function M(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ce(E)?T(E):(t.consume(E),M)}function A(E){return E===47||E===62||H(E)?d(E):n(E)}function F(E){return E===62?(t.consume(E),I):n(E)}function I(E){return E===null||j(E)?B(E):H(E)?(t.consume(E),I):n(E)}function B(E){return E===45&&i===2?(t.consume(E),$):E===60&&i===1?(t.consume(E),z):E===62&&i===4?(t.consume(E),St):E===63&&i===3?(t.consume(E),v):E===93&&i===5?(t.consume(E),se):j(E)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(yI,wn,O)(E)):E===null||j(E)?(t.exit("htmlFlowData"),O(E)):(t.consume(E),B)}function O(E){return t.check(bI,R,wn)(E)}function R(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),L}function L(E){return E===null||j(E)?O(E):(t.enter("htmlFlowData"),B(E))}function $(E){return E===45?(t.consume(E),v):B(E)}function z(E){return E===47?(t.consume(E),o="",de):B(E)}function de(E){if(E===62){let mt=o.toLowerCase();return Fh.includes(mt)?(t.consume(E),St):B(E)}return yt(E)&&o.length<8?(t.consume(E),o+=String.fromCharCode(E),de):B(E)}function se(E){return E===93?(t.consume(E),v):B(E)}function v(E){return E===62?(t.consume(E),St):E===45&&i===2?(t.consume(E),v):B(E)}function St(E){return E===null||j(E)?(t.exit("htmlFlowData"),wn(E)):(t.consume(E),St)}function wn(E){return t.exit("htmlFlow"),e(E)}}function _I(t,e,n){let r=this;return i;function i(o){return j(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}function DI(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Hn,e,n)}}var Oh={name:"htmlText",tokenize:vI};function vI(t,e,n){let r=this,i,s,o;return a;function a(v){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(v),l}function l(v){return v===33?(t.consume(v),u):v===47?(t.consume(v),T):v===63?(t.consume(v),d):yt(v)?(t.consume(v),M):n(v)}function u(v){return v===45?(t.consume(v),c):v===91?(t.consume(v),s=0,b):yt(v)?(t.consume(v),m):n(v)}function c(v){return v===45?(t.consume(v),p):n(v)}function f(v){return v===null?n(v):v===45?(t.consume(v),h):j(v)?(o=f,z(v)):(t.consume(v),f)}function h(v){return v===45?(t.consume(v),p):f(v)}function p(v){return v===62?$(v):v===45?h(v):f(v)}function b(v){let St="CDATA[";return v===St.charCodeAt(s++)?(t.consume(v),s===St.length?y:b):n(v)}function y(v){return v===null?n(v):v===93?(t.consume(v),k):j(v)?(o=y,z(v)):(t.consume(v),y)}function k(v){return v===93?(t.consume(v),g):y(v)}function g(v){return v===62?$(v):v===93?(t.consume(v),g):y(v)}function m(v){return v===null||v===62?$(v):j(v)?(o=m,z(v)):(t.consume(v),m)}function d(v){return v===null?n(v):v===63?(t.consume(v),w):j(v)?(o=d,z(v)):(t.consume(v),d)}function w(v){return v===62?$(v):d(v)}function T(v){return yt(v)?(t.consume(v),D):n(v)}function D(v){return v===45||at(v)?(t.consume(v),D):S(v)}function S(v){return j(v)?(o=S,z(v)):H(v)?(t.consume(v),S):$(v)}function M(v){return v===45||at(v)?(t.consume(v),M):v===47||v===62||Ce(v)?A(v):n(v)}function A(v){return v===47?(t.consume(v),$):v===58||v===95||yt(v)?(t.consume(v),F):j(v)?(o=A,z(v)):H(v)?(t.consume(v),A):$(v)}function F(v){return v===45||v===46||v===58||v===95||at(v)?(t.consume(v),F):I(v)}function I(v){return v===61?(t.consume(v),B):j(v)?(o=I,z(v)):H(v)?(t.consume(v),I):A(v)}function B(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(t.consume(v),i=v,O):j(v)?(o=B,z(v)):H(v)?(t.consume(v),B):(t.consume(v),R)}function O(v){return v===i?(t.consume(v),i=void 0,L):v===null?n(v):j(v)?(o=O,z(v)):(t.consume(v),O)}function R(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||Ce(v)?A(v):(t.consume(v),R)}function L(v){return v===47||v===62||Ce(v)?A(v):n(v)}function $(v){return v===62?(t.consume(v),t.exit("htmlTextData"),t.exit("htmlText"),e):n(v)}function z(v){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),de}function de(v){return H(v)?Y(t,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):se(v)}function se(v){return t.enter("htmlTextData"),o(v)}}var Pr={name:"labelEnd",resolveAll:TI,resolveTo:AI,tokenize:CI},SI={tokenize:FI},EI={tokenize:RI},kI={tokenize:OI};function TI(t){let e=-1,n=[];for(;++e<t.length;){let r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&$e(t,0,t.length,n),t}function AI(t,e){let n=t.length,r=0,i,s,o,a;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);let l={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[s][1].start},end:{...t[o][1].end}},c={type:"labelText",start:{...t[s+r+2][1].end},end:{...t[o-2][1].start}};return a=[["enter",l,e],["enter",u,e]],a=ot(a,t.slice(s+1,s+r+3)),a=ot(a,[["enter",c,e]]),a=ot(a,Ri(e.parser.constructs.insideSpan.null,t.slice(s+r+4,o-3),e)),a=ot(a,[["exit",c,e],t[o-2],t[o-1],["exit",u,e]]),a=ot(a,t.slice(o+1)),a=ot(a,[["exit",l,e]]),$e(t,s,t.length,a),t}function CI(t,e,n){let r=this,i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(h){return s?s._inactive?f(h):(o=r.parser.defined.includes(Sn(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),l):n(h)}function l(h){return h===40?t.attempt(SI,c,o?c:f)(h):h===91?t.attempt(EI,c,o?u:f)(h):o?c(h):f(h)}function u(h){return t.attempt(kI,c,f)(h)}function c(h){return e(h)}function f(h){return s._balanced=!0,n(h)}}function FI(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return Ce(f)?Lr(t,s)(f):s(f)}function s(f){return f===41?c(f):bl(t,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Ce(f)?Lr(t,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?xl(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Ce(f)?Lr(t,c)(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}function RI(t,e,n){let r=this;return i;function i(a){return wl.call(r,t,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Sn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(a):n(a)}function o(a){return n(a)}}function OI(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}var Ih={name:"labelStartImage",resolveAll:Pr.resolveAll,tokenize:II};function II(t,e,n){let r=this;return i;function i(a){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(a),t.exit("labelImageMarker"),s}function s(a){return a===91?(t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}var Lh={name:"labelStartLink",resolveAll:Pr.resolveAll,tokenize:LI};function LI(t,e,n){let r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}var ao={name:"lineEnding",tokenize:PI};function PI(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Y(t,e,"linePrefix")}}var qr={name:"thematicBreak",tokenize:qI};function qI(t,e,n){let r=0,i;return s;function s(u){return t.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(t.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||j(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===i?(t.consume(u),r++,l):(t.exit("thematicBreakSequence"),H(u)?Y(t,a,"whitespace")(u):a(u))}}var Je={continuation:{tokenize:jI},exit:zI,name:"list",tokenize:BI},MI={partial:!0,tokenize:WI},NI={partial:!0,tokenize:UI};function BI(t,e,n){let r=this,i=r.events[r.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){let b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ro(p)){if(r.containerState.type||(r.containerState.type=b,t.enter(b,{_container:!0})),b==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(qr,n,u)(p):u(p);if(!r.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(p)}return n(p)}function l(p){return ro(p)&&++o<10?(t.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),u(p)):n(p)}function u(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,t.check(Hn,r.interrupt?n:c,t.attempt(MI,h,f))}function c(p){return r.containerState.initialBlankLine=!0,s++,h(p)}function f(p){return H(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function jI(t,e,n){let r=this;return r.containerState._closeFlow=void 0,t.check(Hn,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(t,e,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!H(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(NI,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(t,t.attempt(Je,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function UI(t,e,n){let r=this;return Y(t,i,"listItemIndent",r.containerState.size+1);function i(s){let o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(s):n(s)}}function zI(t){t.exit(this.containerState.type)}function WI(t,e,n){let r=this;return Y(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){let o=r.events[r.events.length-1];return!H(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}var _l={name:"setextUnderline",resolveTo:$I,tokenize:HI};function $I(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);let o={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",o,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end={...t[s][1].end}):t[r][1]=o,t.push(["exit",o,e]),t}function HI(t,e,n){let r=this,i;return s;function s(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return t.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(t.consume(u),a):(t.exit("setextHeadingLineSequence"),H(u)?Y(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||j(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}var Kw={tokenize:GI};function GI(t){let e=this,n=t.attempt(Hn,r,t.attempt(this.parser.constructs.flowInitial,i,Y(t,t.attempt(this.parser.constructs.flow,i,t.attempt(kh,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}var Qw={resolveAll:e0()},Zw=Xw("string"),Jw=Xw("text");function Xw(t){return{resolveAll:e0(t==="text"?VI:void 0),tokenize:e};function e(n){let r=this,i=this.parser.constructs[t],s=n.attempt(i,o,a);return o;function o(c){return u(c)?s(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;let f=i[c],h=-1;if(f)for(;++h<f.length;){let p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function e0(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}function VI(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){let r=t[n-1][1],i=e.sliceStream(r),s=i.length,o=-1,a=0,l;for(;s--;){let u=i[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)l=!0,a++;else if(u!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(a=0),a){let u={type:n===t.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}var Ph={};Zy(Ph,{attentionMarkers:()=>tL,contentInitial:()=>KI,disable:()=>nL,document:()=>YI,flow:()=>ZI,flowInitial:()=>QI,insideSpan:()=>eL,string:()=>JI,text:()=>XI});var YI={42:Je,43:Je,45:Je,48:Je,49:Je,50:Je,51:Je,52:Je,53:Je,54:Je,55:Je,56:Je,57:Je,62:hl},KI={91:Th},QI={[-2]:so,[-1]:so,32:so},ZI={35:Ch,42:qr,45:[_l,qr],60:Rh,61:_l,95:qr,96:ml,126:ml},JI={38:dl,92:pl},XI={[-5]:ao,[-4]:ao,[-3]:ao,33:Ih,38:dl,42:io,60:[Sh,Oh],91:Lh,92:[Ah,pl],93:Pr,95:io,96:Eh},eL={null:[io,Qw]},tL={null:[42,95]},nL={null:[]};function t0(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},s=[],o=[],a=[],l=!0,u={attempt:A(S),check:A(M),consume:w,enter:T,exit:D,interrupt:A(M,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:k,parser:t,previous:null,sliceSerialize:b,sliceStream:y,write:p},f=e.tokenize.call(c,u),h;return e.resolveAll&&s.push(e),c;function p(O){return o=ot(o,O),m(),o[o.length-1]!==null?[]:(F(e,0),c.events=Ri(s,c.events,c),c.events)}function b(O,R){return iL(y(O),R)}function y(O){return rL(o,O)}function k(){let{_bufferIndex:O,_index:R,line:L,column:$,offset:z}=r;return{_bufferIndex:O,_index:R,line:L,column:$,offset:z}}function g(O){i[O.line]=O.column,B()}function m(){let O;for(;r._index<o.length;){let R=o[r._index];if(typeof R=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<R.length;)d(R.charCodeAt(r._bufferIndex));else d(R)}}function d(O){l=void 0,h=O,f=f(O)}function w(O){j(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,B()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O,l=!0}function T(O,R){let L=R||{};return L.type=O,L.start=k(),c.events.push(["enter",L,c]),a.push(L),L}function D(O){let R=a.pop();return R.end=k(),c.events.push(["exit",R,c]),R}function S(O,R){F(O,R.from)}function M(O,R){R.restore()}function A(O,R){return L;function L($,z,de){let se,v,St,wn;return Array.isArray($)?mt($):"tokenize"in $?mt([$]):E($);function E(We){return Bs;function Bs(xn){let Dr=xn!==null&&We[xn],wi=xn!==null&&We.null,Lf=[...Array.isArray(Dr)?Dr:Dr?[Dr]:[],...Array.isArray(wi)?wi:wi?[wi]:[]];return mt(Lf)(xn)}}function mt(We){return se=We,v=0,We.length===0?de:_r(We[v])}function _r(We){return Bs;function Bs(xn){return wn=I(),St=We,We.partial||(c.currentConstruct=We),We.name&&c.parser.constructs.disable.null.includes(We.name)?ja(xn):We.tokenize.call(R?Object.assign(Object.create(c),R):c,u,If,ja)(xn)}}function If(We){return l=!0,O(St,wn),z}function ja(We){return l=!0,wn.restore(),++v<se.length?_r(se[v]):de}}}function F(O,R){O.resolveAll&&!s.includes(O)&&s.push(O),O.resolve&&$e(c.events,R,c.events.length-R,O.resolve(c.events.slice(R),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function I(){let O=k(),R=c.previous,L=c.currentConstruct,$=c.events.length,z=Array.from(a);return{from:$,restore:de};function de(){r=O,c.previous=R,c.currentConstruct=L,c.events.length=$,a=z,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function rL(t,e){let n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex,o;if(n===i)o=[t[n].slice(r,s)];else{if(o=t.slice(n,i),r>-1){let a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(t[i].slice(0,s))}return o}function iL(t,e){let n=-1,r=[],i;for(;++n<t.length;){let s=t[n],o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
58
58
|
`;break}case-3:{o=`\r
|
|
59
|
-
`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function Mh(t){let r={constructs:Iw([qh,...(t||{}).extensions||[]]),content:i(Bw),defined:[],document:i(Uw),flow:i(Hw),lazy:{},string:i(Vw),text:i(Yw)};return r;function i(s){return o;function o(a){return Zw(r,s,a)}}}function Nh(t){for(;!yl(t););return t}var Jw=/[\0\t\n\r]/g;function Bh(){let t=1,e="",n=!0,r;return i;function i(s,o,a){let l=[],u,c,f,h,p;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,e="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(Jw.lastIndex=f,u=Jw.exec(s),h=u&&u.index!==void 0?u.index:s.length,p=s.charCodeAt(h),!u){e=s.slice(f);break}if(p===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(s.slice(f,h)),t+=h-f),p){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}f=h+1}return a&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}var eL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dl(t){return t.replace(eL,tL)}function tL(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),s=i===120||i===88;return fl(n.slice(s?2:1),s?16:10)}return Ai(n)||t}function Gn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Xw(t.position):"start"in t||"end"in t?Xw(t):"line"in t||"column"in t?jh(t):""}function jh(t){return e0(t&&t.line)+":"+e0(t&&t.column)}function Xw(t){return jh(t&&t.start)+"-"+jh(t&&t.end)}function e0(t){return t&&typeof t=="number"?t:1}var n0={}.hasOwnProperty;function Uh(t,e,n){return typeof e!="string"&&(n=e,e=void 0),nL(n)(Nh(Mh(n).document().write(Bh()(t,e,!0))))}function nL(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Qy),autolinkProtocol:A,autolinkEmail:A,atxHeading:s(Vy),blockQuote:s(xn),characterEscape:A,characterReference:A,codeFenced:s(Dr),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Dr,o),codeText:s(bi,o),codeTextData:A,data:A,codeFlowValue:A,definition:s(Lf),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(cR),hardBreakEscape:s(Yy),hardBreakTrailing:s(Yy),htmlFlow:s(Ky,o),htmlFlowData:A,htmlText:s(Ky,o),htmlTextData:A,image:s(fR),label:o,link:s(Qy),listItem:s(hR),listItemValue:h,listOrdered:s(Zy,f),listUnordered:s(Zy),paragraph:s(pR),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Vy),strong:s(dR),thematicBreak:s(gR)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:Ns,autolinkProtocol:We,blockQuote:l(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:_r,characterReferenceMarkerNumeric:_r,characterReferenceValue:If,characterReference:ja,codeFenced:l(k),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:F,codeIndented:l(g),codeText:l(L),codeTextData:F,data:F,definition:l(),definitionDestinationString:w,definitionLabelString:m,definitionTitleString:d,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(O),htmlFlowData:F,htmlText:l(R),htmlTextData:F,image:l(z),label:se,labelText:de,lineEnding:I,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:mt,resourceDestinationString:D,resourceTitleString:St,resource:wn,setextHeading:l(M),setextHeadingLineSequence:S,setextHeadingText:v,strong:l(),thematicBreak:l()}};r0(e,(t||{}).mdastExtensions||[]);let n={};return r;function r(C){let P={type:"root",children:[]},V={stack:[P],tokenStack:[],config:e,enter:a,exit:u,buffer:o,resume:c,data:n},oe=[],be=-1;for(;++be<C.length;)if(C[be][1].type==="listOrdered"||C[be][1].type==="listUnordered")if(C[be][0]==="enter")oe.push(be);else{let Ut=oe.pop();be=i(C,Ut,be)}for(be=-1;++be<C.length;){let Ut=e[C[be][0]];n0.call(Ut,C[be][1].type)&&Ut[C[be][1].type].call(Object.assign({sliceSerialize:C[be][2].sliceSerialize},V),C[be][1])}if(V.tokenStack.length>0){let Ut=V.tokenStack[V.tokenStack.length-1];(Ut[1]||t0).call(V,void 0,Ut[0])}for(P.position={start:Vn(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:Vn(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be<e.transforms.length;)P=e.transforms[be](P)||P;return P}function i(C,P,V){let oe=P-1,be=-1,Ut=!1,vr,_n,Bs,js;for(;++oe<=V;){let gt=C[oe];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?be++:be--,js=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(vr&&!js&&!be&&!Bs&&(Bs=oe),js=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:js=void 0}if(!be&>[0]==="enter"&>[1].type==="listItemPrefix"||be===-1&>[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(vr){let wi=oe;for(_n=void 0;wi--;){let Dn=C[wi];if(Dn[1].type==="lineEnding"||Dn[1].type==="lineEndingBlank"){if(Dn[0]==="exit")continue;_n&&(C[_n][1].type="lineEndingBlank",Ut=!0),Dn[1].type="lineEnding",_n=wi}else if(!(Dn[1].type==="linePrefix"||Dn[1].type==="blockQuotePrefix"||Dn[1].type==="blockQuotePrefixWhitespace"||Dn[1].type==="blockQuoteMarker"||Dn[1].type==="listItemIndent"))break}Bs&&(!_n||Bs<_n)&&(vr._spread=!0),vr.end=Object.assign({},_n?C[_n][1].start:gt[1].end),C.splice(_n||oe,0,["exit",vr,gt[2]]),oe++,V++}if(gt[1].type==="listItemPrefix"){let wi={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};vr=wi,C.splice(oe,0,["enter",wi,gt[2]]),oe++,V++,Bs=void 0,js=!0}}}return C[P][1]._spread=Ut,V}function s(C,P){return V;function V(oe){a.call(this,C(oe),oe),P&&P.call(this,oe)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(C,P,V){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([P,V||void 0]),C.position={start:Vn(P.start),end:void 0}}function l(C){return P;function P(V){C&&C.call(this,V),u.call(this,V)}}function u(C,P){let V=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==C.type&&(P?P.call(this,C,oe[0]):(oe[1]||t0).call(this,C,oe[0]));else throw new Error("Cannot close `"+C.type+"` ("+Gn({start:C.start,end:C.end})+"): it\u2019s not open");V.position.end=Vn(C.end)}function c(){return Or(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(C){if(this.data.expectingFirstListItemValue){let P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function p(){let C=this.resume(),P=this.stack[this.stack.length-1];P.lang=C}function b(){let C=this.resume(),P=this.stack[this.stack.length-1];P.meta=C}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/(\r?\n|\r)$/g,"")}function m(C){let P=this.resume(),V=this.stack[this.stack.length-1];V.label=P,V.identifier=Sn(this.sliceSerialize(C)).toLowerCase()}function d(){let C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function w(){let C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function T(C){let P=this.stack[this.stack.length-1];if(!P.depth){let V=this.sliceSerialize(C).length;P.depth=V}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function S(C){let P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function A(C){let V=this.stack[this.stack.length-1].children,oe=V[V.length-1];(!oe||oe.type!=="text")&&(oe=mR(),oe.position={start:Vn(C.start),end:void 0},V.push(oe)),this.stack.push(oe)}function F(C){let P=this.stack.pop();P.value+=this.sliceSerialize(C),P.position.end=Vn(C.end)}function I(C){let P=this.stack[this.stack.length-1];if(this.data.atHardBreak){let V=P.children[P.children.length-1];V.position.end=Vn(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(P.type)&&(A.call(this,C),F.call(this,C))}function B(){this.data.atHardBreak=!0}function O(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function R(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function L(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function $(){let C=this.stack[this.stack.length-1];if(this.data.inReference){let P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function z(){let C=this.stack[this.stack.length-1];if(this.data.inReference){let P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function de(C){let P=this.sliceSerialize(C),V=this.stack[this.stack.length-2];V.label=Dl(P),V.identifier=Sn(P).toLowerCase()}function se(){let C=this.stack[this.stack.length-1],P=this.resume(),V=this.stack[this.stack.length-1];if(this.data.inReference=!0,V.type==="link"){let oe=C.children;V.children=oe}else V.alt=P}function D(){let C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function St(){let C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function wn(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function mt(C){let P=this.resume(),V=this.stack[this.stack.length-1];V.label=P,V.identifier=Sn(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function _r(C){this.data.characterReferenceType=C.type}function If(C){let P=this.sliceSerialize(C),V=this.data.characterReferenceType,oe;V?(oe=fl(P,V==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=Ai(P);let be=this.stack[this.stack.length-1];be.value+=oe}function ja(C){let P=this.stack.pop();P.position.end=Vn(C.end)}function We(C){F.call(this,C);let P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(C)}function Ns(C){F.call(this,C);let P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(C)}function xn(){return{type:"blockquote",children:[]}}function Dr(){return{type:"code",lang:null,meta:null,value:""}}function bi(){return{type:"inlineCode",value:""}}function Lf(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function cR(){return{type:"emphasis",children:[]}}function Vy(){return{type:"heading",depth:0,children:[]}}function Yy(){return{type:"break"}}function Ky(){return{type:"html",value:""}}function fR(){return{type:"image",title:null,url:"",alt:null}}function Qy(){return{type:"link",title:null,url:"",children:[]}}function Zy(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function hR(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function pR(){return{type:"paragraph",children:[]}}function dR(){return{type:"strong",children:[]}}function mR(){return{type:"text",value:""}}function gR(){return{type:"thematicBreak"}}}function Vn(t){return{line:t.line,column:t.column,offset:t.offset}}function r0(t,e){let n=-1;for(;++n<e.length;){let r=e[n];Array.isArray(r)?r0(t,r):rL(t,r)}}function rL(t,e){let n;for(n in e)if(n0.call(e,n))switch(n){case"canContainEols":{let r=e[n];r&&t[n].push(...r);break}case"transforms":{let r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{let r=e[n];r&&Object.assign(t[n],r);break}}}function t0(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Gn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Gn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Gn({start:e.start,end:e.end})+") is still open")}function vl(t){let e=this;e.parser=n;function n(r){return Uh(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}var i0={}.hasOwnProperty;function s0(t,e){let n=e||{};function r(i,...s){let o=r.invalid,a=r.handlers;if(i&&i0.call(i,t)){let l=String(i[t]);o=i0.call(a,l)?a[l]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var iL={}.hasOwnProperty;function zh(t,e){let n=-1,r;if(e.extensions)for(;++n<e.extensions.length;)zh(t,e.extensions[n]);for(r in e)if(iL.call(e,r))switch(r){case"extensions":break;case"unsafe":{o0(t[r],e[r]);break}case"join":{o0(t[r],e[r]);break}case"handlers":{sL(t[r],e[r]);break}default:t.options[r]=e[r]}return t}function o0(t,e){e&&t.push(...e)}function sL(t,e){e&&Object.assign(t,e)}function a0(t,e,n,r){let i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);let o=n.indentLines(n.containerFlow(t,s.current()),oL);return i(),o}function oL(t,e,n){return">"+(n?"":" ")+t}function Sl(t,e){return l0(t,e.inConstruct,!0)&&!l0(t,e.notInConstruct,!1)}function l0(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function Wh(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
59
|
+
`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function qh(t){let r={constructs:Mw([Ph,...(t||{}).extensions||[]]),content:i(Ww),defined:[],document:i(Hw),flow:i(Kw),lazy:{},string:i(Zw),text:i(Jw)};return r;function i(s){return o;function o(a){return t0(r,s,a)}}}function Mh(t){for(;!yl(t););return t}var n0=/[\0\t\n\r]/g;function Nh(){let t=1,e="",n=!0,r;return i;function i(s,o,a){let l=[],u,c,f,h,p;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,e="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(n0.lastIndex=f,u=n0.exec(s),h=u&&u.index!==void 0?u.index:s.length,p=s.charCodeAt(h),!u){e=s.slice(f);break}if(p===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(s.slice(f,h)),t+=h-f),p){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}f=h+1}return a&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}var sL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dl(t){return t.replace(sL,oL)}function oL(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),s=i===120||i===88;return fl(n.slice(s?2:1),s?16:10)}return Ci(n)||t}function Gn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?r0(t.position):"start"in t||"end"in t?r0(t):"line"in t||"column"in t?Bh(t):""}function Bh(t){return i0(t&&t.line)+":"+i0(t&&t.column)}function r0(t){return Bh(t&&t.start)+"-"+Bh(t&&t.end)}function i0(t){return t&&typeof t=="number"?t:1}var o0={}.hasOwnProperty;function jh(t,e,n){return typeof e!="string"&&(n=e,e=void 0),aL(n)(Mh(qh(n).document().write(Nh()(t,e,!0))))}function aL(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ky),autolinkProtocol:A,autolinkEmail:A,atxHeading:s(Gy),blockQuote:s(xn),characterEscape:A,characterReference:A,codeFenced:s(Dr),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Dr,o),codeText:s(wi,o),codeTextData:A,data:A,codeFlowValue:A,definition:s(Lf),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(dR),hardBreakEscape:s(Vy),hardBreakTrailing:s(Vy),htmlFlow:s(Yy,o),htmlFlowData:A,htmlText:s(Yy,o),htmlTextData:A,image:s(mR),label:o,link:s(Ky),listItem:s(gR),listItemValue:h,listOrdered:s(Qy,f),listUnordered:s(Qy),paragraph:s(yR),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Gy),strong:s(bR),thematicBreak:s(xR)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:Bs,autolinkProtocol:We,blockQuote:l(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:_r,characterReferenceMarkerNumeric:_r,characterReferenceValue:If,characterReference:ja,codeFenced:l(k),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:F,codeIndented:l(g),codeText:l(L),codeTextData:F,data:F,definition:l(),definitionDestinationString:w,definitionLabelString:m,definitionTitleString:d,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(O),htmlFlowData:F,htmlText:l(R),htmlTextData:F,image:l(z),label:se,labelText:de,lineEnding:I,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:mt,resourceDestinationString:v,resourceTitleString:St,resource:wn,setextHeading:l(M),setextHeadingLineSequence:S,setextHeadingText:D,strong:l(),thematicBreak:l()}};a0(e,(t||{}).mdastExtensions||[]);let n={};return r;function r(C){let P={type:"root",children:[]},V={stack:[P],tokenStack:[],config:e,enter:a,exit:u,buffer:o,resume:c,data:n},oe=[],be=-1;for(;++be<C.length;)if(C[be][1].type==="listOrdered"||C[be][1].type==="listUnordered")if(C[be][0]==="enter")oe.push(be);else{let Ut=oe.pop();be=i(C,Ut,be)}for(be=-1;++be<C.length;){let Ut=e[C[be][0]];o0.call(Ut,C[be][1].type)&&Ut[C[be][1].type].call(Object.assign({sliceSerialize:C[be][2].sliceSerialize},V),C[be][1])}if(V.tokenStack.length>0){let Ut=V.tokenStack[V.tokenStack.length-1];(Ut[1]||s0).call(V,void 0,Ut[0])}for(P.position={start:Vn(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:Vn(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be<e.transforms.length;)P=e.transforms[be](P)||P;return P}function i(C,P,V){let oe=P-1,be=-1,Ut=!1,vr,_n,js,Us;for(;++oe<=V;){let gt=C[oe];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?be++:be--,Us=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(vr&&!Us&&!be&&!js&&(js=oe),Us=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Us=void 0}if(!be&>[0]==="enter"&>[1].type==="listItemPrefix"||be===-1&>[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(vr){let xi=oe;for(_n=void 0;xi--;){let Dn=C[xi];if(Dn[1].type==="lineEnding"||Dn[1].type==="lineEndingBlank"){if(Dn[0]==="exit")continue;_n&&(C[_n][1].type="lineEndingBlank",Ut=!0),Dn[1].type="lineEnding",_n=xi}else if(!(Dn[1].type==="linePrefix"||Dn[1].type==="blockQuotePrefix"||Dn[1].type==="blockQuotePrefixWhitespace"||Dn[1].type==="blockQuoteMarker"||Dn[1].type==="listItemIndent"))break}js&&(!_n||js<_n)&&(vr._spread=!0),vr.end=Object.assign({},_n?C[_n][1].start:gt[1].end),C.splice(_n||oe,0,["exit",vr,gt[2]]),oe++,V++}if(gt[1].type==="listItemPrefix"){let xi={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};vr=xi,C.splice(oe,0,["enter",xi,gt[2]]),oe++,V++,js=void 0,Us=!0}}}return C[P][1]._spread=Ut,V}function s(C,P){return V;function V(oe){a.call(this,C(oe),oe),P&&P.call(this,oe)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(C,P,V){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([P,V||void 0]),C.position={start:Vn(P.start),end:void 0}}function l(C){return P;function P(V){C&&C.call(this,V),u.call(this,V)}}function u(C,P){let V=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==C.type&&(P?P.call(this,C,oe[0]):(oe[1]||s0).call(this,C,oe[0]));else throw new Error("Cannot close `"+C.type+"` ("+Gn({start:C.start,end:C.end})+"): it\u2019s not open");V.position.end=Vn(C.end)}function c(){return Ir(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(C){if(this.data.expectingFirstListItemValue){let P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function p(){let C=this.resume(),P=this.stack[this.stack.length-1];P.lang=C}function b(){let C=this.resume(),P=this.stack[this.stack.length-1];P.meta=C}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/(\r?\n|\r)$/g,"")}function m(C){let P=this.resume(),V=this.stack[this.stack.length-1];V.label=P,V.identifier=Sn(this.sliceSerialize(C)).toLowerCase()}function d(){let C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function w(){let C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function T(C){let P=this.stack[this.stack.length-1];if(!P.depth){let V=this.sliceSerialize(C).length;P.depth=V}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function S(C){let P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function A(C){let V=this.stack[this.stack.length-1].children,oe=V[V.length-1];(!oe||oe.type!=="text")&&(oe=wR(),oe.position={start:Vn(C.start),end:void 0},V.push(oe)),this.stack.push(oe)}function F(C){let P=this.stack.pop();P.value+=this.sliceSerialize(C),P.position.end=Vn(C.end)}function I(C){let P=this.stack[this.stack.length-1];if(this.data.atHardBreak){let V=P.children[P.children.length-1];V.position.end=Vn(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(P.type)&&(A.call(this,C),F.call(this,C))}function B(){this.data.atHardBreak=!0}function O(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function R(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function L(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function $(){let C=this.stack[this.stack.length-1];if(this.data.inReference){let P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function z(){let C=this.stack[this.stack.length-1];if(this.data.inReference){let P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function de(C){let P=this.sliceSerialize(C),V=this.stack[this.stack.length-2];V.label=Dl(P),V.identifier=Sn(P).toLowerCase()}function se(){let C=this.stack[this.stack.length-1],P=this.resume(),V=this.stack[this.stack.length-1];if(this.data.inReference=!0,V.type==="link"){let oe=C.children;V.children=oe}else V.alt=P}function v(){let C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function St(){let C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function wn(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function mt(C){let P=this.resume(),V=this.stack[this.stack.length-1];V.label=P,V.identifier=Sn(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function _r(C){this.data.characterReferenceType=C.type}function If(C){let P=this.sliceSerialize(C),V=this.data.characterReferenceType,oe;V?(oe=fl(P,V==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=Ci(P);let be=this.stack[this.stack.length-1];be.value+=oe}function ja(C){let P=this.stack.pop();P.position.end=Vn(C.end)}function We(C){F.call(this,C);let P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(C)}function Bs(C){F.call(this,C);let P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(C)}function xn(){return{type:"blockquote",children:[]}}function Dr(){return{type:"code",lang:null,meta:null,value:""}}function wi(){return{type:"inlineCode",value:""}}function Lf(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dR(){return{type:"emphasis",children:[]}}function Gy(){return{type:"heading",depth:0,children:[]}}function Vy(){return{type:"break"}}function Yy(){return{type:"html",value:""}}function mR(){return{type:"image",title:null,url:"",alt:null}}function Ky(){return{type:"link",title:null,url:"",children:[]}}function Qy(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function gR(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function yR(){return{type:"paragraph",children:[]}}function bR(){return{type:"strong",children:[]}}function wR(){return{type:"text",value:""}}function xR(){return{type:"thematicBreak"}}}function Vn(t){return{line:t.line,column:t.column,offset:t.offset}}function a0(t,e){let n=-1;for(;++n<e.length;){let r=e[n];Array.isArray(r)?a0(t,r):lL(t,r)}}function lL(t,e){let n;for(n in e)if(o0.call(e,n))switch(n){case"canContainEols":{let r=e[n];r&&t[n].push(...r);break}case"transforms":{let r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{let r=e[n];r&&Object.assign(t[n],r);break}}}function s0(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Gn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Gn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Gn({start:e.start,end:e.end})+") is still open")}function vl(t){let e=this;e.parser=n;function n(r){return jh(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}var l0={}.hasOwnProperty;function u0(t,e){let n=e||{};function r(i,...s){let o=r.invalid,a=r.handlers;if(i&&l0.call(i,t)){let l=String(i[t]);o=l0.call(a,l)?a[l]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var uL={}.hasOwnProperty;function Uh(t,e){let n=-1,r;if(e.extensions)for(;++n<e.extensions.length;)Uh(t,e.extensions[n]);for(r in e)if(uL.call(e,r))switch(r){case"extensions":break;case"unsafe":{c0(t[r],e[r]);break}case"join":{c0(t[r],e[r]);break}case"handlers":{cL(t[r],e[r]);break}default:t.options[r]=e[r]}return t}function c0(t,e){e&&t.push(...e)}function cL(t,e){e&&Object.assign(t,e)}function f0(t,e,n,r){let i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);let o=n.indentLines(n.containerFlow(t,s.current()),fL);return i(),o}function fL(t,e,n){return">"+(n?"":" ")+t}function Sl(t,e){return h0(t,e.inConstruct,!0)&&!h0(t,e.notInConstruct,!1)}function h0(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function zh(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
60
60
|
`&&Sl(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
61
|
-
`}function
|
|
61
|
+
`}function p0(t,e){let n=String(t),r=n.indexOf(e),i=r,s=0,o=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>o&&(o=s):s=1,i=r+e.length,r=n.indexOf(e,i);return o}function lo(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function d0(t){let e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function m0(t,e,n,r){let i=d0(n),s=t.value||"",o=i==="`"?"GraveAccent":"Tilde";if(lo(t,n)){let f=n.enter("codeIndented"),h=n.indentLines(s,hL);return f(),h}let a=n.createTracker(r),l=i.repeat(Math.max(p0(s,i)+1,3)),u=n.enter("codeFenced"),c=a.move(l);if(t.lang){let f=n.enter(`codeFencedLang${o}`);c+=a.move(n.safe(t.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(t.lang&&t.meta){let f=n.enter(`codeFencedMeta${o}`);c+=a.move(" "),c+=a.move(n.safe(t.meta,{before:c,after:`
|
|
62
62
|
`,encode:["`"],...a.current()})),f()}return c+=a.move(`
|
|
63
63
|
`),s&&(c+=a.move(s+`
|
|
64
|
-
`)),c+=a.move(l),u(),c}function
|
|
65
|
-
`,...l.current()}))),a(),t.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(t.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),o(),u}function
|
|
64
|
+
`)),c+=a.move(l),u(),c}function hL(t,e,n){return(n?"":" ")+t}function Oi(t){let e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function g0(t,e,n,r){let i=Oi(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("definition"),a=n.enter("label"),l=n.createTracker(r),u=l.move("[");return u+=l.move(n.safe(n.associationId(t),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!t.url||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(t.url,{before:u,after:t.title?" ":`
|
|
65
|
+
`,...l.current()}))),a(),t.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(t.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),o(),u}function y0(t){let e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function bt(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Ii(t,e,n){let r=Fi(t),i=Fi(e);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Wh.peek=pL;function Wh(t,e,n,r){let i=y0(n),s=n.enter("emphasis"),o=n.createTracker(r),a=o.move(i),l=o.move(n.containerPhrasing(t,{after:i,before:a,...o.current()})),u=l.charCodeAt(0),c=Ii(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=bt(u)+l.slice(1));let f=l.charCodeAt(l.length-1),h=Ii(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+bt(f));let p=o.move(i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+l+p}function pL(t,e,n){return n.options.emphasis||"*"}function El(t,e){let n=!1;return Xt(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Or}),!!((!t.depth||t.depth<3)&&Ir(t)&&(e.options.setext||n))}function b0(t,e,n,r){let i=Math.max(Math.min(6,t.depth||1),1),s=n.createTracker(r);if(El(t,n)){let c=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(t,{...s.current(),before:`
|
|
66
66
|
`,after:`
|
|
67
67
|
`});return f(),c(),h+`
|
|
68
68
|
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
69
69
|
`))+1))}let o="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let u=n.containerPhrasing(t,{before:"# ",after:`
|
|
70
|
-
`,...s.current()});return/^[\t ]/.test(u)&&(u=bt(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),a(),u}
|
|
71
|
-
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:
|
|
72
|
-
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:
|
|
73
|
-
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:
|
|
70
|
+
`,...s.current()});return/^[\t ]/.test(u)&&(u=bt(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),a(),u}$h.peek=dL;function $h(t){return t.value||""}function dL(){return"<"}Hh.peek=mL;function Hh(t,e,n,r){let i=Oi(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image"),a=n.enter("label"),l=n.createTracker(r),u=l.move("![");return u+=l.move(n.safe(t.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(t.url,{before:u,after:t.title?" ":")",...l.current()}))),a(),t.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(t.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),o(),u}function mL(){return"!"}Gh.peek=gL;function Gh(t,e,n,r){let i=t.referenceType,s=n.enter("imageReference"),o=n.enter("label"),a=n.createTracker(r),l=a.move("!["),u=n.safe(t.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let f=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function gL(){return"!"}Vh.peek=yL;function Vh(t,e,n){let r=t.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){let o=n.unsafe[s],a=n.compilePattern(o),l;if(o.atBreak)for(;l=a.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function yL(){return"`"}function Yh(t,e){let n=Ir(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Kh.peek=bL;function Kh(t,e,n,r){let i=Oi(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r),a,l;if(Yh(t,n)){let c=n.stack;n.stack=[],a=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(t,{before:f,after:">",...o.current()})),f+=o.move(">"),a(),n.stack=c,f}a=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(t,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(t.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(t.url,{before:u,after:t.title?" ":")",...o.current()}))),l(),t.title&&(l=n.enter(`title${s}`),u+=o.move(" "+i),u+=o.move(n.safe(t.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),a(),u}function bL(t,e,n){return Yh(t,n)?"<":"["}Qh.peek=wL;function Qh(t,e,n,r){let i=t.referenceType,s=n.enter("linkReference"),o=n.enter("label"),a=n.createTracker(r),l=a.move("["),u=n.containerPhrasing(t,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let f=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function wL(){return"["}function Li(t){let e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function w0(t){let e=Li(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function x0(t){let e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function kl(t){let e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function _0(t,e,n,r){let i=n.enter("list"),s=n.bulletCurrent,o=t.ordered?x0(n):Li(n),a=t.ordered?o==="."?")":".":w0(n),l=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){let c=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),kl(n)===o&&c){let f=-1;for(;++f<t.children.length;){let h=t.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),n.bulletCurrent=o;let u=n.containerFlow(t,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),u}function D0(t){let e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function v0(t,e,n,r){let i=D0(n),s=n.bulletCurrent||Li(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);let a=n.createTracker(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(t,a.current()),c);return l(),u;function c(f,h,p){return h?(p?"":" ".repeat(o))+f:(p?s:s+" ".repeat(o-s.length))+f}}function S0(t,e,n,r){let i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(t,r);return s(),i(),o}var Zh=Ai(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function E0(t,e,n,r){return(t.children.some(function(o){return Zh(o)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function k0(t){let e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}Jh.peek=xL;function Jh(t,e,n,r){let i=k0(n),s=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i),l=o.move(n.containerPhrasing(t,{after:i,before:a,...o.current()})),u=l.charCodeAt(0),c=Ii(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=bt(u)+l.slice(1));let f=l.charCodeAt(l.length-1),h=Ii(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+bt(f));let p=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+l+p}function xL(t,e,n){return n.options.strong||"*"}function T0(t,e,n,r){return n.safe(t.value,r)}function A0(t){let e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function C0(t,e,n){let r=(kl(n)+(n.options.ruleSpaces?" ":"")).repeat(A0(n));return n.options.ruleSpaces?r.slice(0,-1):r}var F0={blockquote:f0,break:zh,code:m0,definition:g0,emphasis:Wh,hardBreak:zh,heading:b0,html:$h,image:Hh,imageReference:Gh,inlineCode:Vh,link:Kh,linkReference:Qh,list:_0,listItem:v0,paragraph:S0,root:E0,strong:Jh,text:T0,thematicBreak:C0};var R0=[_L];function _L(t,e,n,r){if(e.type==="code"&&lo(e,r)&&(t.type==="list"||t.type===e.type&&lo(t,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&El(e,r))?void 0:n.spread?1:0}var Mr=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],O0=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
71
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Mr},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
72
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Mr},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
73
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Mr},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
74
74
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
75
75
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
76
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:
|
|
77
|
-
`)&&c.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=e.createTracker(n),u.move(s.join("")));let h=e.handle(c,t,e,{...u.current(),after:f,before:a});l&&l===h.slice(0,1)&&(h=bt(l.charCodeAt(0))+h.slice(1));let p=e.attentionEncodeSurroundingInfo;e.attentionEncodeSurroundingInfo=void 0,l=void 0,p&&(s.length>0&&p.before&&a===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+bt(a.charCodeAt(0))),p.after&&(l=f)),u.move(h),s.push(h),a=h.slice(-1)}return r.pop(),s.join("")}function
|
|
76
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Mr},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Mr},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Mr},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Mr},{atBreak:!0,character:"~"}];function I0(t){return t.label||!t.identifier?t.label||"":Dl(t.identifier)}function L0(t){if(!t._compiled){let e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function P0(t,e,n){let r=e.indexStack,i=t.children||[],s=[],o=-1,a=n.before,l;r.push(-1);let u=e.createTracker(n);for(;++o<i.length;){let c=i[o],f;if(r[r.length-1]=o,o+1<i.length){let b=e.handle.handlers[i[o+1].type];b&&b.peek&&(b=b.peek),f=b?b(i[o+1],t,e,{before:"",after:"",...u.current()}).charAt(0):""}else f=n.after;s.length>0&&(a==="\r"||a===`
|
|
77
|
+
`)&&c.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=e.createTracker(n),u.move(s.join("")));let h=e.handle(c,t,e,{...u.current(),after:f,before:a});l&&l===h.slice(0,1)&&(h=bt(l.charCodeAt(0))+h.slice(1));let p=e.attentionEncodeSurroundingInfo;e.attentionEncodeSurroundingInfo=void 0,l=void 0,p&&(s.length>0&&p.before&&a===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+bt(a.charCodeAt(0))),p.after&&(l=f)),u.move(h),s.push(h),a=h.slice(-1)}return r.pop(),s.join("")}function q0(t,e,n){let r=e.indexStack,i=t.children||[],s=e.createTracker(n),o=[],a=-1;for(r.push(-1);++a<i.length;){let l=i[a];r[r.length-1]=a,o.push(s.move(e.handle(l,t,e,{before:`
|
|
78
78
|
`,after:`
|
|
79
|
-
`,...s.current()}))),l.type!=="list"&&(e.bulletLastUsed=void 0),a<i.length-1&&o.push(s.move(
|
|
79
|
+
`,...s.current()}))),l.type!=="list"&&(e.bulletLastUsed=void 0),a<i.length-1&&o.push(s.move(DL(l,i[a+1],t,e)))}return r.pop(),o.join("")}function DL(t,e,n,r){let i=r.join.length;for(;i--;){let s=r.join[i](t,e,n,r);if(s===!0||s===1)break;if(typeof s=="number")return`
|
|
80
80
|
`.repeat(1+s);if(s===!1)return`
|
|
81
81
|
|
|
82
82
|
<!---->
|
|
83
83
|
|
|
84
84
|
`}return`
|
|
85
85
|
|
|
86
|
-
`}var
|
|
86
|
+
`}var vL=/\r?\n|\r/g;function M0(t,e){let n=[],r=0,i=0,s;for(;s=vL.exec(t);)o(t.slice(r,s.index)),n.push(s[0]),r=s.index+s[0].length,i++;return o(t.slice(r)),n.join("");function o(a){n.push(e(a,i,!a))}}function B0(t,e,n){let r=(n.before||"")+(e||"")+(n.after||""),i=[],s=[],o={},a=-1;for(;++a<t.unsafe.length;){let c=t.unsafe[a];if(!Sl(t.stack,c))continue;let f=t.compilePattern(c),h;for(;h=f.exec(r);){let p="before"in c||!!c.atBreak,b="after"in c,y=h.index+(p?h[1].length:0);i.includes(y)?(o[y].before&&!p&&(o[y].before=!1),o[y].after&&!b&&(o[y].after=!1)):(i.push(y),o[y]={before:p,after:b})}}i.sort(SL);let l=n.before?n.before.length:0,u=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){let c=i[a];c<l||c>=u||c+1<u&&i[a+1]===c+1&&o[c].after&&!o[c+1].before&&!o[c+1].after||i[a-1]===c-1&&o[c].before&&!o[c-1].before&&!o[c-1].after||(l!==c&&s.push(N0(r.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(r.charAt(c))&&(!n.encode||!n.encode.includes(r.charAt(c)))?s.push("\\"):(s.push(bt(r.charCodeAt(c))),l++))}return s.push(N0(r.slice(l,u),n.after)),s.join("")}function SL(t,e){return t-e}function N0(t,e){let n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],s=t+e,o=-1,a=0,l;for(;l=n.exec(s);)r.push(l.index);for(;++o<r.length;)a!==r[o]&&i.push(t.slice(a,r[o])),i.push("\\"),a=r[o];return i.push(t.slice(a)),i.join("")}function j0(t){let e=t||{},n=e.now||{},r=e.lineShift||0,i=n.line||1,s=n.column||1;return{move:l,current:o,shift:a};function o(){return{now:{line:i,column:s},lineShift:r}}function a(u){r+=u}function l(u){let c=u||"",f=c.split(/\r?\n|\r/g),h=f[f.length-1];return i+=f.length-1,s=f.length===1?s+h.length:1+h.length+r,c}}function Xh(t,e){let n=e||{},r={associationId:I0,containerPhrasing:AL,containerFlow:CL,createTracker:j0,compilePattern:L0,enter:s,handlers:{...F0},handle:void 0,indentLines:M0,indexStack:[],join:[...R0],options:{},safe:FL,stack:[],unsafe:[...O0]};Uh(r,n),r.options.tightDefinitions&&r.join.push(TL),r.handle=u0("type",{invalid:EL,unknown:kL,handlers:r.handlers});let i=r.handle(t,void 0,r,{before:`
|
|
87
87
|
`,after:`
|
|
88
88
|
`,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
|
|
89
|
-
`),i;function s(o){return r.stack.push(o),a;function a(){r.stack.pop()}}}function xL(t){throw new Error("Cannot handle value `"+t+"`, expected node")}function _L(t){let e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}function DL(t,e){if(t.type==="definition"&&t.type===e.type)return 0}function vL(t,e){return R0(t,this,e)}function SL(t,e){return O0(t,this,e)}function EL(t,e){return P0(this,t,e)}function Tl(t){let e=this;e.compiler=n;function n(r){return ep(r,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}}function tp(t){if(t)throw t}var Rl=Qe(H0(),1);function uo(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function np(){let t=[],e={run:n,use:r};return e;function n(...i){let s=-1,o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...u){let c=t[++s],f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?G0(c,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function G0(t,e){let n;return r;function r(...o){let a=t.length>o.length,l;a&&o.push(i);try{l=t.apply(this,o)}catch(u){let c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(o,...a){n||(n=!0,e(o,...a))}function s(o){i(null,o)}}var Me=class extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(o=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){let l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}let a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Gn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}};Me.prototype.file="";Me.prototype.name="";Me.prototype.reason="";Me.prototype.message="";Me.prototype.stack="";Me.prototype.column=void 0;Me.prototype.line=void 0;Me.prototype.ancestors=void 0;Me.prototype.cause=void 0;Me.prototype.fatal=void 0;Me.prototype.place=void 0;Me.prototype.ruleId=void 0;Me.prototype.source=void 0;import{default as Wt}from"node:path";import{default as V0}from"node:process";import{fileURLToPath as Y0}from"node:url";function Cl(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}var rp=["history","path","basename","stem","extname","dirname"],co=class{constructor(e){let n;e?Cl(e)?n={path:e}:typeof e=="string"||kL(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":V0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<rp.length;){let s=rp[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)rp.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Wt.basename(this.path):void 0}set basename(e){sp(e,"basename"),ip(e,"basename"),this.path=Wt.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Wt.dirname(this.path):void 0}set dirname(e){K0(this.basename,"dirname"),this.path=Wt.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Wt.extname(this.path):void 0}set extname(e){if(ip(e,"extname"),K0(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wt.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Cl(e)&&(e=Y0(e)),sp(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Wt.basename(this.path,this.extname):void 0}set stem(e){sp(e,"stem"),ip(e,"stem"),this.path=Wt.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){let i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){let i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){let i=new Me(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function ip(t,e){if(t&&t.includes(Wt.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Wt.sep+"`")}function sp(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function K0(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function kL(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var Q0=function(t){let r=this.constructor.prototype,i=r[t],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s};var TL={}.hasOwnProperty,up=class t extends Q0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=np()}copy(){let e=new t,n=-1;for(;++n<this.attachers.length;){let r=this.attachers[n];e.use(...r)}return e.data((0,Rl.default)(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(lp("data",this.frozen),this.namespace[e]=n,this):TL.call(this.namespace,e)&&this.namespace[e]||void 0:e?(lp("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let n=Fl(e),r=this.parser||this.Parser;return op("parse",r),r(String(n),n)}process(e,n){let r=this;return this.freeze(),op("process",this.parser||this.Parser),ap("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){let a=Fl(e),l=r.parse(a);r.run(l,a,function(c,f,h){if(c||!f||!h)return u(c);let p=f,b=r.stringify(p,h);CL(b)?h.value=b:h.result=b,u(c,h)});function u(c,f){c||!f?o(c):s?s(f):n(void 0,f)}}}processSync(e){let n=!1,r;return this.freeze(),op("processSync",this.parser||this.Parser),ap("processSync",this.compiler||this.Compiler),this.process(e,i),J0("processSync","process",n),r;function i(s,o){n=!0,tp(s),r=o}}run(e,n,r){Z0(e),this.freeze();let i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,a){let l=Fl(n);i.run(e,l,u);function u(c,f,h){let p=f||e;c?a(c):o?o(p):r(void 0,p,h)}}}runSync(e,n){let r=!1,i;return this.run(e,n,s),J0("runSync","run",r),i;function s(o,a){tp(o),i=a,r=!0}}stringify(e,n){this.freeze();let r=Fl(n),i=this.compiler||this.Compiler;return ap("stringify",i),Z0(e),i(e,r)}use(e,...n){let r=this.attachers,i=this.namespace;if(lp("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?a(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=(0,Rl.default)(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[p,...b]=c,y=r[h][1];uo(y)&&uo(p)&&(p=(0,Rl.default)(!0,y,p)),r[h]=[u,p,...b]}}}},cp=new up().freeze();function op(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function ap(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function lp(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Z0(t){if(!uo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function J0(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Fl(t){return AL(t)?t:new co(t)}function AL(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function CL(t){return typeof t=="string"||FL(t)}function FL(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var Ol=cp().use(vl).use(Tl).freeze();var et=Qe(Mi(),1);function ve(t,e,n){return{start:{line:t,character:e},end:{line:t,character:e+n}}}function Ne(t,e,n,r,i){return{type:t,value:e,range:ve(n,r,e.length),selectionRange:ve(n,r,e.length),...i}}function uu(t){let e={type:"root",children:[],range:{start:{line:0,character:0},end:{line:t.lineCount,character:0}},selectionRange:ve(0,0,0)},n,r,i=[];function s(a){let l={type:"section",range:ve(a,0,0),selectionRange:ve(a,0,0),children:[]};return e.children.push(l),n=l,r=void 0,i=[],l}let o=[{pattern:/^$/,parse(a,l){return!0}},{pattern:/^-+$/,parse(a,l){let u=s(l),c=Ne("separator",a[0],l,0);return u.children.push(c),!0}},{pattern:/^\s*Version\s*:\s*(.+)\s*$/d,parse(a,l){let u=Ne("version",a[1],l,a.indices[1][0],{full_line:a[0]});return u.range.start.character=0,(!n||n.children.find(c=>c.type==="version"))&&s(l),n.children.push(u),!0}},{pattern:/^\s*Date\s*:\s*(.+)\s*$/d,parse(a,l){let u=Ne("date",a[1],l,a.indices[1][0],{full_line:a[0]});return u.range.start.character=0,n||s(l),n.children.push(u),!0}},{pattern:/^\s*([\w\s]+)\s*:?\s*$/d,parse(a,l){if(i.length>0&&a.indices[1][0]>=4)return!1;n||s(l);let u=Ne("category",a[1],l,a.indices[1][0],{full_line:a[0],children:[]});return u.range.start.character=0,n.children.push(u),r=u,i=[],!0}},{pattern:/^\s*(-)\s*(.*)$/d,parse(a,l){if(n&&!r){let u=Ne("category","",l,0,{full_line:"",children:[],missing:!0});n.children.push(u),r=u,i=[]}if(r){let u=Ne("entry",a[2],l,a.indices[2][0],{full_line:a[0],rank:a.indices[1][0],children:[]});u.range.start.character=0,u.selectionRange.end=u.selectionRange.start;let c=i.filter(f=>f.rank<u.rank);return i=c,c.length===0?r.children.push(u):c[c.length-1].children.push(u),c.push(u),!0}return!1}},{pattern:/^\s*(.*)$/d,parse(a,l){if(i.length>0){let u=Ne("entryext",a[1],l,a.indices[1][0],{full_line:a[0],rank:a.indices[1][0]});return u.range.start.character=0,u.selectionRange.end=u.selectionRange.start,i[i.length-1].children.push(u),!0}return!1}},{pattern:/^.*$/,parse(a,l){let u=Ne("error",a[0],l,0);return(r??n??e).children.push(u),!0}}];for(let a=0;a<t.lineCount;a++){let l={start:{line:a,character:0},end:{line:a,character:1/0}},u=t.getText(l).replace(/\r*\n?$/,"");for(let c of o){let f=c.pattern.exec(u);if(f&&c.parse(f,a))break}}return Wn(e,["entry","entryext"],(a,l)=>{(a.type==="entry"||a.type==="entryext")&&(a.rank=l.length-3)}),Wn(e,(a,l)=>{let u=a.range.end;for(let c of l){let f=c.range.end;(u.line>f.line||u.line===f.line&&u.character>f.character)&&(c.range.end=u)}}),e}var Ni=Qe(Mi(),1);function Gx(t,e){let n=[],r=new Map,i,s=new Map,o={root:[],section:[{message:"Missing separator",code:"separator.insert",test(a,l,u){if(a.children[0].type!=="separator")return{range:a.selectionRange}}},{message:"Missing version",code:"version.insert",test(a,l,u){if(!a.children.find(c=>c.type==="version")&&!(a.children.length===1&&a.children[0].type==="separator")){let c=a.children.find(f=>f.type==="date"||f.type==="category");if(c)return{range:{start:c.range.start,end:c.range.start}}}}}],separator:[{message:"Separator line is incorrect length",code:"separator.length",test(a,l,u){if(a.value.length!==99)return{range:a.range}}},{message:"Unexpected separator",code:"separator.remove",test(a,l,u){if(u.children.length===1)return{range:a.range}}}],version:[{message:"Version must be first line of block",code:"version.order",test(a,l,u){if(l>1||a.range.start.line>u.range.start.line+1)return{range:a.range}}},{message:"Version line incorrectly formatted",code:"version.format",test(a,l,u){if(a.full_line!==`Version: ${a.value}`)return{range:a.range}}},{message:"Expected two or three decimal numbers in version number",code:"version.value",test(a,l,u){if(!a.value.match(/^\d+\.\d+(\.\d+)?/))return{range:a.selectionRange}}},{message:"Duplicate Version",code:"version.duplicate",test(a,l,u){let c=r.get(a.value);if(c)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:c.selectionRange,uri:e}}]};r.set(a.value,a)}}],date:[{message:"Date line must be immediately after Version line",code:"date.placement",test(a,l,u){let c=u.children.findIndex(h=>h.type==="date"),f=u.children.findIndex(h=>h.type==="version");if(f!==-1&&l!==f+1&&c===l)return{range:a.range}}},{message:"Duplicate Date line in section",code:"date.remove",test(a,l,u){let c=u.children.findIndex(f=>f.type==="date");if(c!==l)return{range:a.range,relatedInformation:[{message:"First defined here",location:{range:u.children[c].range,uri:e}}]}}},{message:"Date line incorrectly formatted",code:"date.format",test(a,l,u){if(a.full_line!==`Date: ${a.value}`)return{range:a.range}}}],category:[{message:"Missing Category",code:"category.insert",test(a,l,u){if(a.missing)return{range:a.range}}},{message:"Category line prefix incorrect",code:"category.prefix",test(a,l,u){if(!a.missing&&!a.full_line.startsWith(` ${a.value}`))return{range:{start:a.range.start,end:{line:a.selectionRange.start.line,character:a.selectionRange.start.character}}}}},{message:"Category line suffix incorrect",code:"category.suffix",test(a,l,u){if(!a.missing&&!a.full_line.endsWith(`${a.value}:`))return{range:{start:{line:a.selectionRange.end.line,character:a.selectionRange.end.character+1},end:a.range.end}}}},{message:"Non-standard category name",code:"category.nonstandard",severity:Ni.DiagnosticSeverity.Information,test(a,l,u){if(a.missing)return;if(!["Major Features","Features","Minor Features","Graphics","Sounds","Optimizations","Balancing","Combat Balancing","Circuit Network","Changes","Bugfixes","Modding","Scripting","Gui","Control","Translation","Debug","Ease of use","Info","Locale","Compatibility","Other"].includes(a.value))return{range:a.selectionRange}}},{message:"Duplicate category",code:"category.duplicate",severity:Ni.DiagnosticSeverity.Warning,test(a,l,u){if(a.missing)return;let c=s.get(a.value);if(c)return i=c,{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:c.category.selectionRange,uri:e}}]};{let f={category:a,seenLines:new Map};i=f,s.set(a.value,f)}}}],entry:[{message:"Incorrect entry prefix",code:"entry.prefix",severity:Ni.DiagnosticSeverity.Warning,test(a,l,u){}},{message:"Incorrect entry prefix",code:"entry.prefix",test(a,l,u){let c=" "+(a.rank===0?"- ":" ");if(!a.full_line.startsWith(c))return{range:{start:a.range.start,end:a.selectionRange.start},data:{rank:a.rank}};let f=a.full_line.slice(0,a.selectionRange.start.character),h=" "+" ".repeat(a.rank)+"- ";if(f!==h)return{severity:Ni.DiagnosticSeverity.Warning,range:{start:a.range.start,end:a.selectionRange.start},data:{rank:a.rank}}}},{message:"Duplicate entry",code:"entry.duplicate",test(a,l,u){let c=i;if(!c)return;let f=c.seenLines.get(a.full_line);if(f)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:f.selectionRange,uri:e}}]};c.seenLines.set(a.full_line,a)}},{message:"Empty entry line",code:"entry.empty",test(a,l,u){if(a.value.length===0)return{range:a.range}}}],entryext:[{message:"Incorrect entry continuation prefix",code:"entryext.prefix",test(a,l,u){if(!a.full_line.startsWith(" "))return{range:{start:a.range.start,end:{line:a.selectionRange.start.line,character:a.selectionRange.start.character-1}}}}},{message:"Duplicate entry",code:"entry.duplicate",test(a,l,u){let c=i;if(!c)return;let f=c.seenLines.get(a.full_line);if(f)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:f.selectionRange,uri:e}}]};c.seenLines.set(a.full_line,a)}}],error:[{message:"Invalid line",code:"error.unknown",test(a,l,u){return{range:a.range}}}]};return Xt(t,(a,l,u)=>{switch(a.type){case"section":s.clear();break;case"category":break}let c=o[a.type];for(let f of c){let h=f.test(a,l??-1,u);h&&n.push({message:f.message,code:f.code,source:"factorio-changelog",severity:f.severity??Ni.DiagnosticSeverity.Error,...h})}}),n}function Pp(t){for(let e of t.children)if(e.type==="version")return e}function Vx(t){for(let e of t.children)if(e.type==="date")return e}function W3(t,e){for(let n of t.children)if(n.type==="section"&&Pp(n)?.value===e)return n}function Yx(t,e,n){let r=W3(t,e);if(r){let i=Vx(r);if(i)return{range:i.selectionRange,newText:n};{let s=Pp(r);return{range:{start:s.range.end,end:s.range.end},newText:`
|
|
90
|
-
Date: ${n}`}}}}var cu=class{documentTrees=new Map;loadDocument(e){let n=uu(e);this.documentTrees.set(e.uri,n)}clearDocument(e){this.documentTrees.delete(e)}clearFolder(e){for(let n of this.documentTrees.keys())n.startsWith(e)&&this.documentTrees.delete(n)}diagnose(e){let n=this.documentTrees.get(e);return n?
|
|
89
|
+
`),i;function s(o){return r.stack.push(o),a;function a(){r.stack.pop()}}}function EL(t){throw new Error("Cannot handle value `"+t+"`, expected node")}function kL(t){let e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}function TL(t,e){if(t.type==="definition"&&t.type===e.type)return 0}function AL(t,e){return P0(t,this,e)}function CL(t,e){return q0(t,this,e)}function FL(t,e){return B0(this,t,e)}function Tl(t){let e=this;e.compiler=n;function n(r){return Xh(r,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}}function ep(t){if(t)throw t}var Rl=Qe(K0(),1);function uo(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function tp(){let t=[],e={run:n,use:r};return e;function n(...i){let s=-1,o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...u){let c=t[++s],f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Q0(c,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function Q0(t,e){let n;return r;function r(...o){let a=t.length>o.length,l;a&&o.push(i);try{l=t.apply(this,o)}catch(u){let c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(o,...a){n||(n=!0,e(o,...a))}function s(o){i(null,o)}}var Me=class extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(o=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){let l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}let a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Gn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}};Me.prototype.file="";Me.prototype.name="";Me.prototype.reason="";Me.prototype.message="";Me.prototype.stack="";Me.prototype.column=void 0;Me.prototype.line=void 0;Me.prototype.ancestors=void 0;Me.prototype.cause=void 0;Me.prototype.fatal=void 0;Me.prototype.place=void 0;Me.prototype.ruleId=void 0;Me.prototype.source=void 0;import{default as Wt}from"node:path";import{default as Z0}from"node:process";import{fileURLToPath as J0}from"node:url";function Cl(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}var np=["history","path","basename","stem","extname","dirname"],co=class{constructor(e){let n;e?Cl(e)?n={path:e}:typeof e=="string"||RL(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":Z0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<np.length;){let s=np[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)np.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Wt.basename(this.path):void 0}set basename(e){ip(e,"basename"),rp(e,"basename"),this.path=Wt.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Wt.dirname(this.path):void 0}set dirname(e){X0(this.basename,"dirname"),this.path=Wt.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Wt.extname(this.path):void 0}set extname(e){if(rp(e,"extname"),X0(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wt.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Cl(e)&&(e=J0(e)),ip(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Wt.basename(this.path,this.extname):void 0}set stem(e){ip(e,"stem"),rp(e,"stem"),this.path=Wt.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){let i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){let i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){let i=new Me(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function rp(t,e){if(t&&t.includes(Wt.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Wt.sep+"`")}function ip(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function X0(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function RL(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var ex=function(t){let r=this.constructor.prototype,i=r[t],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s};var OL={}.hasOwnProperty,lp=class t extends ex{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=tp()}copy(){let e=new t,n=-1;for(;++n<this.attachers.length;){let r=this.attachers[n];e.use(...r)}return e.data((0,Rl.default)(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(ap("data",this.frozen),this.namespace[e]=n,this):OL.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ap("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let n=Fl(e),r=this.parser||this.Parser;return sp("parse",r),r(String(n),n)}process(e,n){let r=this;return this.freeze(),sp("process",this.parser||this.Parser),op("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){let a=Fl(e),l=r.parse(a);r.run(l,a,function(c,f,h){if(c||!f||!h)return u(c);let p=f,b=r.stringify(p,h);LL(b)?h.value=b:h.result=b,u(c,h)});function u(c,f){c||!f?o(c):s?s(f):n(void 0,f)}}}processSync(e){let n=!1,r;return this.freeze(),sp("processSync",this.parser||this.Parser),op("processSync",this.compiler||this.Compiler),this.process(e,i),nx("processSync","process",n),r;function i(s,o){n=!0,ep(s),r=o}}run(e,n,r){tx(e),this.freeze();let i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,a){let l=Fl(n);i.run(e,l,u);function u(c,f,h){let p=f||e;c?a(c):o?o(p):r(void 0,p,h)}}}runSync(e,n){let r=!1,i;return this.run(e,n,s),nx("runSync","run",r),i;function s(o,a){ep(o),i=a,r=!0}}stringify(e,n){this.freeze();let r=Fl(n),i=this.compiler||this.Compiler;return op("stringify",i),tx(e),i(e,r)}use(e,...n){let r=this.attachers,i=this.namespace;if(ap("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?a(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=(0,Rl.default)(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[p,...b]=c,y=r[h][1];uo(y)&&uo(p)&&(p=(0,Rl.default)(!0,y,p)),r[h]=[u,p,...b]}}}},up=new lp().freeze();function sp(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function op(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ap(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function tx(t){if(!uo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function nx(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Fl(t){return IL(t)?t:new co(t)}function IL(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function LL(t){return typeof t=="string"||PL(t)}function PL(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var Ol=up().use(vl).use(Tl).freeze();var et=Qe(Ni(),1);function ve(t,e,n){return{start:{line:t,character:e},end:{line:t,character:e+n}}}function Ne(t,e,n,r,i){return{type:t,value:e,range:ve(n,r,e.length),selectionRange:ve(n,r,e.length),...i}}function uu(t){let e={type:"root",children:[],range:{start:{line:0,character:0},end:{line:t.lineCount,character:0}},selectionRange:ve(0,0,0)},n,r,i=[];function s(a){let l={type:"section",range:ve(a,0,0),selectionRange:ve(a,0,0),children:[]};return e.children.push(l),n=l,r=void 0,i=[],l}let o=[{pattern:/^$/,parse(a,l){return!0}},{pattern:/^-+$/,parse(a,l){let u=s(l),c=Ne("separator",a[0],l,0);return u.children.push(c),!0}},{pattern:/^\s*Version\s*:\s*(.+)\s*$/d,parse(a,l){let u=Ne("version",a[1],l,a.indices[1][0],{full_line:a[0]});return u.range.start.character=0,(!n||n.children.find(c=>c.type==="version"))&&s(l),n.children.push(u),!0}},{pattern:/^\s*Date\s*:\s*(.+)\s*$/d,parse(a,l){let u=Ne("date",a[1],l,a.indices[1][0],{full_line:a[0]});return u.range.start.character=0,n||s(l),n.children.push(u),!0}},{pattern:/^\s*([\w\s]+)\s*:?\s*$/d,parse(a,l){if(i.length>0&&a.indices[1][0]>=4)return!1;n||s(l);let u=Ne("category",a[1],l,a.indices[1][0],{full_line:a[0],children:[]});return u.range.start.character=0,n.children.push(u),r=u,i=[],!0}},{pattern:/^\s*(-)\s*(.*)$/d,parse(a,l){if(n&&!r){let u=Ne("category","",l,0,{full_line:"",children:[],missing:!0});n.children.push(u),r=u,i=[]}if(r){let u=Ne("entry",a[2],l,a.indices[2][0],{full_line:a[0],rank:a.indices[1][0],children:[]});u.range.start.character=0,u.selectionRange.end=u.selectionRange.start;let c=i.filter(f=>f.rank<u.rank);return i=c,c.length===0?r.children.push(u):c[c.length-1].children.push(u),c.push(u),!0}return!1}},{pattern:/^\s*(.*)$/d,parse(a,l){if(i.length>0){let u=Ne("entryext",a[1],l,a.indices[1][0],{full_line:a[0],rank:a.indices[1][0]});return u.range.start.character=0,u.selectionRange.end=u.selectionRange.start,i[i.length-1].children.push(u),!0}return!1}},{pattern:/^.*$/,parse(a,l){let u=Ne("error",a[0],l,0);return(r??n??e).children.push(u),!0}}];for(let a=0;a<t.lineCount;a++){let l={start:{line:a,character:0},end:{line:a,character:1/0}},u=t.getText(l).replace(/\r*\n?$/,"");for(let c of o){let f=c.pattern.exec(u);if(f&&c.parse(f,a))break}}return Wn(e,["entry","entryext"],(a,l)=>{(a.type==="entry"||a.type==="entryext")&&(a.rank=l.length-3)}),Wn(e,(a,l)=>{let u=a.range.end;for(let c of l){let f=c.range.end;(u.line>f.line||u.line===f.line&&u.character>f.character)&&(c.range.end=u)}}),e}var Bi=Qe(Ni(),1);function Qx(t,e){let n=[],r=new Map,i,s=new Map,o={root:[],section:[{message:"Missing separator",code:"separator.insert",test(a,l,u){if(a.children[0].type!=="separator")return{range:a.selectionRange}}},{message:"Missing version",code:"version.insert",test(a,l,u){if(!a.children.find(c=>c.type==="version")&&!(a.children.length===1&&a.children[0].type==="separator")){let c=a.children.find(f=>f.type==="date"||f.type==="category");if(c)return{range:{start:c.range.start,end:c.range.start}}}}}],separator:[{message:"Separator line is incorrect length",code:"separator.length",test(a,l,u){if(a.value.length!==99)return{range:a.range}}},{message:"Unexpected separator",code:"separator.remove",test(a,l,u){if(u.children.length===1)return{range:a.range}}}],version:[{message:"Version must be first line of block",code:"version.order",test(a,l,u){if(l>1||a.range.start.line>u.range.start.line+1)return{range:a.range}}},{message:"Version line incorrectly formatted",code:"version.format",test(a,l,u){if(a.full_line!==`Version: ${a.value}`)return{range:a.range}}},{message:"Expected two or three decimal numbers in version number",code:"version.value",test(a,l,u){if(!a.value.match(/^\d+\.\d+(\.\d+)?/))return{range:a.selectionRange}}},{message:"Duplicate Version",code:"version.duplicate",test(a,l,u){let c=r.get(a.value);if(c)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:c.selectionRange,uri:e}}]};r.set(a.value,a)}}],date:[{message:"Date line must be immediately after Version line",code:"date.placement",test(a,l,u){let c=u.children.findIndex(h=>h.type==="date"),f=u.children.findIndex(h=>h.type==="version");if(f!==-1&&l!==f+1&&c===l)return{range:a.range}}},{message:"Duplicate Date line in section",code:"date.remove",test(a,l,u){let c=u.children.findIndex(f=>f.type==="date");if(c!==l)return{range:a.range,relatedInformation:[{message:"First defined here",location:{range:u.children[c].range,uri:e}}]}}},{message:"Date line incorrectly formatted",code:"date.format",test(a,l,u){if(a.full_line!==`Date: ${a.value}`)return{range:a.range}}}],category:[{message:"Missing Category",code:"category.insert",test(a,l,u){if(a.missing)return{range:a.range}}},{message:"Category line prefix incorrect",code:"category.prefix",test(a,l,u){if(!a.missing&&!a.full_line.startsWith(` ${a.value}`))return{range:{start:a.range.start,end:{line:a.selectionRange.start.line,character:a.selectionRange.start.character}}}}},{message:"Category line suffix incorrect",code:"category.suffix",test(a,l,u){if(!a.missing&&!a.full_line.endsWith(`${a.value}:`))return{range:{start:{line:a.selectionRange.end.line,character:a.selectionRange.end.character+1},end:a.range.end}}}},{message:"Non-standard category name",code:"category.nonstandard",severity:Bi.DiagnosticSeverity.Information,test(a,l,u){if(a.missing)return;if(!["Major Features","Features","Minor Features","Graphics","Sounds","Optimizations","Balancing","Combat Balancing","Circuit Network","Changes","Bugfixes","Modding","Scripting","Gui","Control","Translation","Debug","Ease of use","Info","Locale","Compatibility","Other"].includes(a.value))return{range:a.selectionRange}}},{message:"Duplicate category",code:"category.duplicate",severity:Bi.DiagnosticSeverity.Warning,test(a,l,u){if(a.missing)return;let c=s.get(a.value);if(c)return i=c,{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:c.category.selectionRange,uri:e}}]};{let f={category:a,seenLines:new Map};i=f,s.set(a.value,f)}}}],entry:[{message:"Incorrect entry prefix",code:"entry.prefix",severity:Bi.DiagnosticSeverity.Warning,test(a,l,u){}},{message:"Incorrect entry prefix",code:"entry.prefix",test(a,l,u){let c=" "+(a.rank===0?"- ":" ");if(!a.full_line.startsWith(c))return{range:{start:a.range.start,end:a.selectionRange.start},data:{rank:a.rank}};let f=a.full_line.slice(0,a.selectionRange.start.character),h=" "+" ".repeat(a.rank)+"- ";if(f!==h)return{severity:Bi.DiagnosticSeverity.Warning,range:{start:a.range.start,end:a.selectionRange.start},data:{rank:a.rank}}}},{message:"Duplicate entry",code:"entry.duplicate",test(a,l,u){let c=i;if(!c)return;let f=c.seenLines.get(a.full_line);if(f)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:f.selectionRange,uri:e}}]};c.seenLines.set(a.full_line,a)}},{message:"Empty entry line",code:"entry.empty",test(a,l,u){if(a.value.length===0)return{range:a.range}}}],entryext:[{message:"Incorrect entry continuation prefix",code:"entryext.prefix",test(a,l,u){if(!a.full_line.startsWith(" "))return{range:{start:a.range.start,end:{line:a.selectionRange.start.line,character:a.selectionRange.start.character-1}}}}},{message:"Duplicate entry",code:"entry.duplicate",test(a,l,u){let c=i;if(!c)return;let f=c.seenLines.get(a.full_line);if(f)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:f.selectionRange,uri:e}}]};c.seenLines.set(a.full_line,a)}}],error:[{message:"Invalid line",code:"error.unknown",test(a,l,u){return{range:a.range}}}]};return Xt(t,(a,l,u)=>{switch(a.type){case"section":s.clear();break;case"category":break}let c=o[a.type];for(let f of c){let h=f.test(a,l??-1,u);h&&n.push({message:f.message,code:f.code,source:"factorio-changelog",severity:f.severity??Bi.DiagnosticSeverity.Error,...h})}}),n}function Lp(t){for(let e of t.children)if(e.type==="version")return e}function Zx(t){for(let e of t.children)if(e.type==="date")return e}function Y3(t,e){for(let n of t.children)if(n.type==="section"&&Lp(n)?.value===e)return n}function Jx(t,e,n){let r=Y3(t,e);if(r){let i=Zx(r);if(i)return{range:i.selectionRange,newText:n};{let s=Lp(r);return{range:{start:s.range.end,end:s.range.end},newText:`
|
|
90
|
+
Date: ${n}`}}}}var cu=class{documentTrees=new Map;loadDocument(e){let n=uu(e);this.documentTrees.set(e.uri,n)}clearDocument(e){this.documentTrees.delete(e)}clearFolder(e){for(let n of this.documentTrees.keys())n.startsWith(e)&&this.documentTrees.delete(n)}diagnose(e){let n=this.documentTrees.get(e);return n?Qx(n,e):[]}entrySymbol(e){return{name:e.value||"<empty>",detail:"",kind:et.SymbolKind.String,range:e.range,selectionRange:e.selectionRange,children:e.type==="entry"?e.children.map(n=>this.entrySymbol(n)):[]}}categorySymbol(e){return{name:e.value||"<empty>",detail:"",kind:et.SymbolKind.Class,range:e.range,selectionRange:e.selectionRange,children:e.children.filter(n=>n.type==="entry").map(n=>this.entrySymbol(n))}}dateSymbol(e){return{name:"Date",detail:e.value,kind:et.SymbolKind.Property,range:e.range,selectionRange:e.selectionRange}}onDocumentSymbol(e){let n=this.documentTrees.get(e.uri);if(!n)return[];let r=[];for(let i of n.children)if(i.type==="section"){let s=Lp(i);if(!s)continue;let o=Zx(i),a=i.children.filter(l=>l.type==="category").map(l=>this.categorySymbol(l));o&&a.unshift(this.dateSymbol(o)),r.push({name:s.value||"<empty>",detail:"",kind:et.SymbolKind.Namespace,range:i.range,selectionRange:s.selectionRange,children:a})}return r}onCodeAction(e,n,r){return e.languageId!=="factorio-changelog"?[]:r.diagnostics.flatMap(i=>{if(!i.code)return[];switch(i.code){case"separator.length":return{title:"Fix separator length",kind:et.CodeActionKind.QuickFix+".separator.length",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:i.range,newText:"---------------------------------------------------------------------------------------------------"}]}}};case"separator.insert":return{title:"Insert separator",kind:et.CodeActionKind.QuickFix+".separator.insert",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:{start:i.range.start,end:i.range.start},newText:`---------------------------------------------------------------------------------------------------
|
|
91
91
|
`}]}}};case"separator.remove":return{title:"Remove separator",kind:et.CodeActionKind.QuickFix+".separator.remove",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:{start:i.range.start,end:{line:i.range.start.line+1,character:0}},newText:""}]}}};case"version.insert":return{title:"Insert version",kind:et.CodeActionKind.QuickFix+".version.insert",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:{start:i.range.start,end:i.range.start},newText:`Version: 0.0.0
|
|
92
92
|
`}]}}};case"date.remove":return{title:"Remove date",kind:et.CodeActionKind.QuickFix+".date.remove",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:{start:i.range.start,end:{line:i.range.start.line+1,character:0}},newText:""}]}}};case"category.prefix":return{title:"Fix Prefix",kind:et.CodeActionKind.QuickFix+".category.prefix",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:i.range,newText:" "}]}}};case"category.suffix":return{title:"Fix Suffix",kind:et.CodeActionKind.QuickFix+".category.suffix",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:i.range,newText:":"}]}}};case"category.insert":return{title:"Insert Category",kind:et.CodeActionKind.QuickFix+".category.insert",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:{start:i.range.start,end:i.range.start},newText:` Changes:
|
|
93
|
-
`}]}}};case"entry.prefix":{let s=" "+" ".repeat(i.data?.rank??0)+"- ";return{title:"Fix Prefix",kind:et.CodeActionKind.QuickFix+".entry.prefix",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:i.range,newText:s}]}}}}case"entryext.prefix":{let s=" ";return{title:"Fix Prefix",kind:et.CodeActionKind.QuickFix+".entryext.prefix",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:i.range,newText:s}]}}}}default:return[]}})}};function wo(t,e=!1){let n=t.length,r=0,i="",s=0,o=16,a=0,l=0,u=0,c=0,f=0;function h(d,w){let T=0,
|
|
94
|
-
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:let S=h(4,!0);S>=0?d+=String.fromCharCode(S):f=4;break;default:f=5}w=r;continue}if(T>=0&&T<=31)if(bo(T)){d+=t.substring(w,r),f=2;break}else f=6;r++}return d}function k(){if(i="",f=0,s=r,l=a,c=u,r>=n)return s=n,o=17;let d=t.charCodeAt(r);if(
|
|
95
|
-
`),a++,u=r,o=14;switch(d){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=y(),o=10;case 47:let w=r-1;if(t.charCodeAt(r+1)===47){for(r+=2;r<n&&!bo(t.charCodeAt(r));)r++;return i=t.substring(w,r),o=12}if(t.charCodeAt(r+1)===42){r+=2;let T=n-1,
|
|
96
|
-
`+" ".repeat(e)),"\r":new Array(
|
|
97
|
-
`+" ".repeat(e))}," ":{"\n":new Array(
|
|
98
|
-
`+" ".repeat(e)),"\r":new Array(
|
|
99
|
-
`+" ".repeat(e))}},
|
|
93
|
+
`}]}}};case"entry.prefix":{let s=" "+" ".repeat(i.data?.rank??0)+"- ";return{title:"Fix Prefix",kind:et.CodeActionKind.QuickFix+".entry.prefix",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:i.range,newText:s}]}}}}case"entryext.prefix":{let s=" ";return{title:"Fix Prefix",kind:et.CodeActionKind.QuickFix+".entryext.prefix",diagnostics:[i],isPreferred:!0,edit:{changes:{[e.uri]:[{range:i.range,newText:s}]}}}}default:return[]}})}};function wo(t,e=!1){let n=t.length,r=0,i="",s=0,o=16,a=0,l=0,u=0,c=0,f=0;function h(d,w){let T=0,D=0;for(;T<d||!w;){let S=t.charCodeAt(r);if(S>=48&&S<=57)D=D*16+S-48;else if(S>=65&&S<=70)D=D*16+S-65+10;else if(S>=97&&S<=102)D=D*16+S-97+10;else break;r++,T++}return T<d&&(D=-1),D}function p(d){r=d,i="",s=0,o=16,f=0}function b(){let d=r;if(t.charCodeAt(r)===48)r++;else for(r++;r<t.length&&ji(t.charCodeAt(r));)r++;if(r<t.length&&t.charCodeAt(r)===46)if(r++,r<t.length&&ji(t.charCodeAt(r)))for(r++;r<t.length&&ji(t.charCodeAt(r));)r++;else return f=3,t.substring(d,r);let w=r;if(r<t.length&&(t.charCodeAt(r)===69||t.charCodeAt(r)===101))if(r++,(r<t.length&&t.charCodeAt(r)===43||t.charCodeAt(r)===45)&&r++,r<t.length&&ji(t.charCodeAt(r))){for(r++;r<t.length&&ji(t.charCodeAt(r));)r++;w=r}else f=3;return t.substring(d,w)}function y(){let d="",w=r;for(;;){if(r>=n){d+=t.substring(w,r),f=2;break}let T=t.charCodeAt(r);if(T===34){d+=t.substring(w,r),r++;break}if(T===92){if(d+=t.substring(w,r),r++,r>=n){f=2;break}switch(t.charCodeAt(r++)){case 34:d+='"';break;case 92:d+="\\";break;case 47:d+="/";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+=`
|
|
94
|
+
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:let S=h(4,!0);S>=0?d+=String.fromCharCode(S):f=4;break;default:f=5}w=r;continue}if(T>=0&&T<=31)if(bo(T)){d+=t.substring(w,r),f=2;break}else f=6;r++}return d}function k(){if(i="",f=0,s=r,l=a,c=u,r>=n)return s=n,o=17;let d=t.charCodeAt(r);if(Pp(d)){do r++,i+=String.fromCharCode(d),d=t.charCodeAt(r);while(Pp(d));return o=15}if(bo(d))return r++,i+=String.fromCharCode(d),d===13&&t.charCodeAt(r)===10&&(r++,i+=`
|
|
95
|
+
`),a++,u=r,o=14;switch(d){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=y(),o=10;case 47:let w=r-1;if(t.charCodeAt(r+1)===47){for(r+=2;r<n&&!bo(t.charCodeAt(r));)r++;return i=t.substring(w,r),o=12}if(t.charCodeAt(r+1)===42){r+=2;let T=n-1,D=!1;for(;r<T;){let S=t.charCodeAt(r);if(S===42&&t.charCodeAt(r+1)===47){r+=2,D=!0;break}r++,bo(S)&&(S===13&&t.charCodeAt(r)===10&&r++,a++,u=r)}return D||(r++,f=1),i=t.substring(w,r),o=13}return i+=String.fromCharCode(d),r++,o=16;case 45:if(i+=String.fromCharCode(d),r++,r===n||!ji(t.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=b(),o=11;default:for(;r<n&&g(d);)r++,d=t.charCodeAt(r);if(s!==r){switch(i=t.substring(s,r),i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(d),r++,o=16}}function g(d){if(Pp(d)||bo(d))return!1;switch(d){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function m(){let d;do d=k();while(d>=12&&d<=15);return d}return{setPosition:p,getPosition:()=>r,scan:e?m:k,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>l,getTokenStartCharacter:()=>s-c,getTokenError:()=>f}}function Pp(t){return t===32||t===9}function bo(t){return t===10||t===13}function ji(t){return t>=48&&t<=57}var Xx;(function(t){t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.space=32]="space",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.asterisk=42]="asterisk",t[t.backslash=92]="backslash",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.plus=43]="plus",t[t.slash=47]="slash",t[t.formFeed=12]="formFeed",t[t.tab=9]="tab"})(Xx||(Xx={}));var wt=new Array(20).fill(0).map((t,e)=>" ".repeat(e)),Ui=200,qp={" ":{"\n":new Array(Ui).fill(0).map((t,e)=>`
|
|
96
|
+
`+" ".repeat(e)),"\r":new Array(Ui).fill(0).map((t,e)=>"\r"+" ".repeat(e)),"\r\n":new Array(Ui).fill(0).map((t,e)=>`\r
|
|
97
|
+
`+" ".repeat(e))}," ":{"\n":new Array(Ui).fill(0).map((t,e)=>`
|
|
98
|
+
`+" ".repeat(e)),"\r":new Array(Ui).fill(0).map((t,e)=>"\r"+" ".repeat(e)),"\r\n":new Array(Ui).fill(0).map((t,e)=>`\r
|
|
99
|
+
`+" ".repeat(e))}},e_=[`
|
|
100
100
|
`,"\r",`\r
|
|
101
|
-
`];function
|
|
101
|
+
`];function Mp(t,e,n){let r,i,s,o,a;if(e){for(o=e.offset,a=o+e.length,s=o;s>0&&!xo(t,s-1);)s--;let T=a;for(;T<t.length&&!xo(t,T);)T++;i=t.substring(s,T),r=Z3(i,n)}else i=t,r=0,s=0,o=0,a=t.length;let l=J3(n,t),u=e_.includes(l),c=0,f=0,h;n.insertSpaces?h=wt[n.tabSize||4]??zi(wt[1],n.tabSize||4):h=" ";let p=h===" "?" ":" ",b=wo(i,!1),y=!1;function k(){if(c>1)return zi(l,c)+zi(h,r+f);let T=h.length*(r+f);return!u||T>qp[p][l].length?l+zi(h,r+f):T<=0?l:qp[p][l][T]}function g(){let T=b.scan();for(c=0;T===15||T===14;)T===14&&n.keepLines?c+=1:T===14&&(c=1),T=b.scan();return y=T===16||b.getTokenError()!==0,T}let m=[];function d(T,D,S){!y&&(!e||D<a&&S>o)&&t.substring(D,S)!==T&&m.push({offset:D,length:S-D,content:T})}let w=g();if(n.keepLines&&c>0&&d(zi(l,c),0,0),w!==17){let T=b.getTokenOffset()+s,D=h.length*r<20&&n.insertSpaces?wt[h.length*r]:zi(h,r);d(D,s,T)}for(;w!==17;){let T=b.getTokenOffset()+b.getTokenLength()+s,D=g(),S="",M=!1;for(;c===0&&(D===12||D===13);){let F=b.getTokenOffset()+s;d(wt[1],T,F),T=b.getTokenOffset()+b.getTokenLength()+s,M=D===12,S=M?k():"",D=g()}if(D===2)w!==1&&f--,n.keepLines&&c>0||!n.keepLines&&w!==1?S=k():n.keepLines&&(S=wt[1]);else if(D===4)w!==3&&f--,n.keepLines&&c>0||!n.keepLines&&w!==3?S=k():n.keepLines&&(S=wt[1]);else{switch(w){case 3:case 1:f++,n.keepLines&&c>0||!n.keepLines?S=k():S=wt[1];break;case 5:n.keepLines&&c>0||!n.keepLines?S=k():S=wt[1];break;case 12:S=k();break;case 13:c>0?S=k():M||(S=wt[1]);break;case 6:n.keepLines&&c>0?S=k():M||(S=wt[1]);break;case 10:n.keepLines&&c>0?S=k():D===6&&!M&&(S="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&c>0?S=k():(D===12||D===13)&&!M?S=wt[1]:D!==5&&D!==17&&(y=!0);break;case 16:y=!0;break}c>0&&(D===12||D===13)&&(S=k())}D===17&&(n.keepLines&&c>0?S=k():S=n.insertFinalNewline?l:"");let A=b.getTokenOffset()+s;d(S,T,A),w=D}return m}function zi(t,e){let n="";for(let r=0;r<e;r++)n+=t;return n}function Z3(t,e){let n=0,r=0,i=e.tabSize||4;for(;n<t.length;){let s=t.charAt(n);if(s===wt[1])r++;else if(s===" ")r+=i;else break;n++}return Math.floor(r/i)}function J3(t,e){for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r==="\r")return n+1<e.length&&e.charAt(n+1)===`
|
|
102
102
|
`?`\r
|
|
103
103
|
`:"\r";if(r===`
|
|
104
104
|
`)return`
|
|
105
105
|
`}return t&&t.eol||`
|
|
106
106
|
`}function xo(t,e){return`\r
|
|
107
|
-
`.indexOf(t.charAt(e))!==-1}var fu;(function(t){t.DEFAULT={allowTrailingComma:!1}})(fu||(fu={}));function Bp(t,e=[],n=fu.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(l){r.type==="property"&&(r.length=l-r.offset,r=r.parent)}function s(l){return r.children.push(l),l}Zx(t,{onObjectBegin:l=>{r=s({type:"object",offset:l,length:-1,parent:r,children:[]})},onObjectProperty:(l,u,c)=>{r=s({type:"property",offset:u,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:l,offset:u,length:c,parent:r})},onObjectEnd:(l,u)=>{i(l+u),r.length=l+u-r.offset,r=r.parent,i(l+u)},onArrayBegin:(l,u)=>{r=s({type:"array",offset:l,length:-1,parent:r,children:[]})},onArrayEnd:(l,u)=>{r.length=l+u-r.offset,r=r.parent,i(l+u)},onLiteralValue:(l,u,c)=>{s({type:K3(l),offset:u,length:c,parent:r,value:l}),i(u+c)},onSeparator:(l,u,c)=>{r.type==="property"&&(l===":"?r.colonOffset=u:l===","&&i(u))},onError:(l,u,c)=>{e.push({error:l,offset:u,length:c})}},n);let a=r.children[0];return a&&delete a.parent,a}function hu(t,e){if(!t)return;let n=t;for(let r of e)if(typeof r=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;let i=!1;for(let s of n.children)if(Array.isArray(s.children)&&s.children[0].value===r&&s.children.length===2){n=s.children[1],i=!0;break}if(!i)return}else{let i=r;if(n.type!=="array"||i<0||!Array.isArray(n.children)||i>=n.children.length)return;n=n.children[i]}return n}function Zx(t,e,n=fu.DEFAULT){let r=wo(t,!1),i=[],s=0;function o(R){return R?()=>s===0&&R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(R){return R?L=>s===0&&R(L,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(R){return R?L=>s===0&&R(L,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function u(R){return R?()=>{s>0?s++:R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())===!1&&(s=1)}:()=>!0}function c(R){return R?()=>{s>0&&s--,s===0&&R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let f=u(e.onObjectBegin),h=l(e.onObjectProperty),p=c(e.onObjectEnd),b=u(e.onArrayBegin),y=c(e.onArrayEnd),k=l(e.onLiteralValue),g=a(e.onSeparator),m=o(e.onComment),d=a(e.onError),w=n&&n.disallowComments,T=n&&n.allowTrailingComma;function v(){for(;;){let R=r.scan();switch(r.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:w||S(11);break;case 2:S(12);break;case 6:S(16);break}switch(R){case 12:case 13:w?S(10):m();break;case 16:S(1);break;case 15:case 14:break;default:return R}}}function S(R,L=[],$=[]){if(d(R),L.length+$.length>0){let z=r.getToken();for(;z!==17;){if(L.indexOf(z)!==-1){v();break}else if($.indexOf(z)!==-1)break;z=v()}}}function M(R){let L=r.getTokenValue();return R?k(L):(h(L),i.push(L)),v(),!0}function A(){switch(r.getToken()){case 11:let R=r.getTokenValue(),L=Number(R);isNaN(L)&&(S(2),L=0),k(L);break;case 7:k(null);break;case 8:k(!0);break;case 9:k(!1);break;default:return!1}return v(),!0}function F(){return r.getToken()!==10?(S(3,[],[2,5]),!1):(M(!1),r.getToken()===6?(g(":"),v(),O()||S(4,[],[2,5])):S(5,[],[2,5]),i.pop(),!0)}function I(){f(),v();let R=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(R||S(4,[],[]),g(","),v(),r.getToken()===2&&T)break}else R&&S(6,[],[]);F()||S(4,[],[2,5]),R=!0}return p(),r.getToken()!==2?S(7,[2],[]):v(),!0}function B(){b(),v();let R=!0,L=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(L||S(4,[],[]),g(","),v(),r.getToken()===4&&T)break}else L&&S(6,[],[]);R?(i.push(0),R=!1):i[i.length-1]++,O()||S(4,[],[4,5]),L=!0}return y(),R||i.pop(),r.getToken()!==4?S(8,[4],[]):v(),!0}function O(){switch(r.getToken()){case 3:return B();case 1:return I();case 10:return M(!0);default:return A()}}return v(),r.getToken()===17?n.allowEmptyContent?!0:(S(4,[],[]),!1):O()?(r.getToken()!==17&&S(9,[],[]),!0):(S(4,[],[]),!1)}function K3(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Jx(t,e,n,r){let i=e.slice(),o=Bp(t,[]),a,l;for(;i.length>0&&(l=i.pop(),a=hu(o,i),a===void 0&&n!==void 0);)typeof l=="string"?n={[l]:n}:n=[n];if(a)if(a.type==="object"&&typeof l=="string"&&Array.isArray(a.children)){let u=hu(a,[l]);if(u!==void 0)if(n===void 0){if(!u.parent)throw new Error("Malformed AST");let c=a.children.indexOf(u.parent),f,h=u.parent.offset+u.parent.length;if(c>0){let p=a.children[c-1];f=p.offset+p.length}else f=a.offset+1,a.children.length>1&&(h=a.children[1].offset);return jr(t,{offset:f,length:h-f,content:""},r)}else return jr(t,{offset:u.offset,length:u.length,content:JSON.stringify(n)},r);else{if(n===void 0)return[];let c=`${JSON.stringify(l)}: ${JSON.stringify(n)}`,f=r.getInsertionIndex?r.getInsertionIndex(a.children.map(p=>p.children[0].value)):a.children.length,h;if(f>0){let p=a.children[f-1];h={offset:p.offset+p.length,length:0,content:","+c}}else a.children.length===0?h={offset:a.offset+1,length:0,content:c}:h={offset:a.offset+1,length:0,content:c+","};return jr(t,h,r)}}else if(a.type==="array"&&typeof l=="number"&&Array.isArray(a.children)){let u=l;if(u===-1){let c=`${JSON.stringify(n)}`,f;if(a.children.length===0)f={offset:a.offset+1,length:0,content:c};else{let h=a.children[a.children.length-1];f={offset:h.offset+h.length,length:0,content:","+c}}return jr(t,f,r)}else if(n===void 0&&a.children.length>=0){let c=l,f=a.children[c],h;if(a.children.length===1)h={offset:a.offset+1,length:a.length-2,content:""};else if(a.children.length-1===c){let p=a.children[c-1],b=p.offset+p.length,y=a.offset+a.length;h={offset:b,length:y-2-b,content:""}}else h={offset:f.offset,length:a.children[c+1].offset-f.offset,content:""};return jr(t,h,r)}else if(n!==void 0){let c,f=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&a.children.length>l){let h=a.children[l];c={offset:h.offset,length:h.length,content:f}}else if(a.children.length===0||l===0)c={offset:a.offset+1,length:0,content:a.children.length===0?f:f+","};else{let h=l>a.children.length?a.children.length:l,p=a.children[h-1];c={offset:p.offset+p.length,length:0,content:","+f}}return jr(t,c,r)}else throw new Error(`Can not ${n===void 0?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${u} as length is not sufficient`)}else throw new Error(`Can not add ${typeof l!="number"?"index":"property"} to parent of type ${a.type}`);else{if(n===void 0)throw new Error("Can not delete in empty document");return jr(t,{offset:o?o.offset:0,length:o?o.length:0,content:JSON.stringify(n)},r)}}function jr(t,e,n){if(!n.formattingOptions)return[e];let r=pu(t,e),i=e.offset,s=e.offset+e.content.length;if(e.length===0||e.content.length===0){for(;i>0&&!xo(r,i-1);)i--;for(;s<r.length&&!xo(r,s);)s++}let o=Np(r,{offset:i,length:s-i},{...n.formattingOptions,keepLines:!1});for(let l=o.length-1;l>=0;l--){let u=o[l];r=pu(r,u),i=Math.min(i,u.offset),s=Math.max(s,u.offset+u.length),s+=u.content.length-u.length}let a=t.length-(r.length-s)-i;return[{offset:i,length:a,content:r.substring(i,s)}]}function pu(t,e){return t.substring(0,e.offset)+e.content+t.substring(e.offset+e.length)}var Xx;(function(t){t[t.None=0]="None",t[t.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=2]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",t[t.InvalidUnicode=4]="InvalidUnicode",t[t.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",t[t.InvalidCharacter=6]="InvalidCharacter"})(Xx||(Xx={}));var e_;(function(t){t[t.OpenBraceToken=1]="OpenBraceToken",t[t.CloseBraceToken=2]="CloseBraceToken",t[t.OpenBracketToken=3]="OpenBracketToken",t[t.CloseBracketToken=4]="CloseBracketToken",t[t.CommaToken=5]="CommaToken",t[t.ColonToken=6]="ColonToken",t[t.NullKeyword=7]="NullKeyword",t[t.TrueKeyword=8]="TrueKeyword",t[t.FalseKeyword=9]="FalseKeyword",t[t.StringLiteral=10]="StringLiteral",t[t.NumericLiteral=11]="NumericLiteral",t[t.LineCommentTrivia=12]="LineCommentTrivia",t[t.BlockCommentTrivia=13]="BlockCommentTrivia",t[t.LineBreakTrivia=14]="LineBreakTrivia",t[t.Trivia=15]="Trivia",t[t.Unknown=16]="Unknown",t[t.EOF=17]="EOF"})(e_||(e_={}));var t_;(function(t){t[t.InvalidSymbol=1]="InvalidSymbol",t[t.InvalidNumberFormat=2]="InvalidNumberFormat",t[t.PropertyNameExpected=3]="PropertyNameExpected",t[t.ValueExpected=4]="ValueExpected",t[t.ColonExpected=5]="ColonExpected",t[t.CommaExpected=6]="CommaExpected",t[t.CloseBraceExpected=7]="CloseBraceExpected",t[t.CloseBracketExpected=8]="CloseBracketExpected",t[t.EndOfFileExpected=9]="EndOfFileExpected",t[t.InvalidCommentToken=10]="InvalidCommentToken",t[t.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=12]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",t[t.InvalidUnicode=14]="InvalidUnicode",t[t.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",t[t.InvalidCharacter=16]="InvalidCharacter"})(t_||(t_={}));function n_(t,e,n,r){return Jx(t,e,n,r)}function r_(t,e){let n=e.slice(0).sort((i,s)=>{let o=i.offset-s.offset;return o===0?i.length-s.length:o}),r=t.length;for(let i=n.length-1;i>=0;i--){let s=n[i];if(s.offset+s.length<=r)t=pu(t,s);else throw new Error("Overlapping edit");r=s.offset}return t}var zF=Qe(xF(),1),WF=Qe(xR(),1);import*as Ps from"fs";import{EventEmitter as BG}from"events";var AF=Qe(wR(),1);var qa=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};var rG={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Ma=t=>t.replace(/[[\]\\-]/g,"\\$&"),iG=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),_F=t=>t.join(""),DF=(t,e)=>{let n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=n+1,o=!1,a=!1,l=!1,u=!1,c=n,f="";e:for(;s<t.length;){let y=t.charAt(s);if((y==="!"||y==="^")&&s===n+1){u=!0,s++;continue}if(y==="]"&&o&&!l){c=s+1;break}if(o=!0,y==="\\"&&!l){l=!0,s++;continue}if(y==="["&&!l){for(let[k,[g,m,d]]of Object.entries(rG))if(t.startsWith(k,s)){if(f)return["$.",!1,t.length-n,!0];s+=k.length,d?i.push(g):r.push(g),a=a||m;continue e}}if(l=!1,f){y>f?r.push(Ma(f)+"-"+Ma(y)):y===f&&r.push(Ma(y)),f="",s++;continue}if(t.startsWith("-]",s+1)){r.push(Ma(y+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=y,s+=2;continue}r.push(Ma(y)),s++}if(c<s)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,t.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!u){let y=r[0].length===2?r[0].slice(-1):r[0];return[iG(y),!1,c-n,!1]}let h="["+(u?"^":"")+_F(r)+"]",p="["+(u?"":"^")+_F(i)+"]";return[r.length&&i.length?"("+h+"|"+p+")":r.length?h:p,a,c-n,!0]};var br=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var sG=new Set(["!","?","+","*","@"]),vF=t=>sG.has(t),oG="(?!(?:^|/)\\.\\.?(?:$|/))",xf="(?!\\.)",aG=new Set(["[","."]),lG=new Set(["..","."]),uG=new Set("().*{}+?[]^$\\!"),cG=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),By="[^/]",SF=By+"*?",EF=By+"+?",Ls=class t{type;#e;#t;#n=!1;#r=[];#o;#h;#a;#f=!1;#l;#u;#s=!1;constructor(e,n,r={}){this.type=e,e&&(this.#t=!0),this.#o=n,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?r:this.#e.#l,this.#a=this.#e===this?[]:this.#e.#a,e==="!"&&!this.#e.#f&&this.#a.push(this),this.#h=this.#o?this.#o.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#u=this.#r.map(e=>String(e)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#f)return this;this.toString(),this.#f=!0;let e;for(;e=this.#a.pop();){if(e.type!=="!")continue;let n=e,r=n.#o;for(;r;){for(let i=n.#h+1;!r.type&&i<r.#r.length;i++)for(let s of e.#r){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#r[i])}n=r,r=n.#o}}return this}push(...e){for(let n of e)if(n!==""){if(typeof n!="string"&&!(n instanceof t&&n.#o===this))throw new Error("invalid part: "+n);this.#r.push(n)}}toJSON(){let e=this.type===null?this.#r.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#r.map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#f&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#h===0)return!0;let e=this.#o;for(let n=0;n<this.#h;n++){let r=e.#r[n];if(!(r instanceof t&&r.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#r.length:0;return this.#h===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let n=new t(this.type,e);for(let r of this.#r)n.copyIn(r);return n}static#b(e,n,r,i){let s=!1,o=!1,a=-1,l=!1;if(n.type===null){let p=r,b="";for(;p<e.length;){let y=e.charAt(p++);if(s||y==="\\"){s=!s,b+=y;continue}if(o){p===a+1?(y==="^"||y==="!")&&(l=!0):y==="]"&&!(p===a+2&&l)&&(o=!1),b+=y;continue}else if(y==="["){o=!0,a=p,l=!1,b+=y;continue}if(!i.noext&&vF(y)&&e.charAt(p)==="("){n.push(b),b="";let k=new t(y,n);p=t.#b(e,k,p,i),n.push(k);continue}b+=y}return n.push(b),p}let u=r+1,c=new t(null,n),f=[],h="";for(;u<e.length;){let p=e.charAt(u++);if(s||p==="\\"){s=!s,h+=p;continue}if(o){u===a+1?(p==="^"||p==="!")&&(l=!0):p==="]"&&!(u===a+2&&l)&&(o=!1),h+=p;continue}else if(p==="["){o=!0,a=u,l=!1,h+=p;continue}if(vF(p)&&e.charAt(u)==="("){c.push(h),h="";let b=new t(p,c);c.push(b),u=t.#b(e,b,u,i);continue}if(p==="|"){c.push(h),h="",f.push(c),c=new t(null,n);continue}if(p===")")return h===""&&n.#r.length===0&&(n.#s=!0),c.push(h),h="",n.push(...f,c),u;h+=p}return n.type=null,n.#t=void 0,n.#r=[e.substring(r-1)],u}static fromGlob(e,n={}){let r=new t(null,void 0,n);return t.#b(e,r,0,n),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[n,r,i,s]=this.toRegExpSource();if(!(i||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:e})}get options(){return this.#l}toRegExpSource(e){let n=e??!!this.#l.dot;if(this.#e===this&&this.#y(),!this.type){let l=this.isStart()&&this.isEnd(),u=this.#r.map(p=>{let[b,y,k,g]=typeof p=="string"?t.#p(p,this.#t,l):p.toRegExpSource(e);return this.#t=this.#t||k,this.#n=this.#n||g,b}).join(""),c="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&lG.has(this.#r[0]))){let b=aG,y=n&&b.has(u.charAt(0))||u.startsWith("\\.")&&b.has(u.charAt(2))||u.startsWith("\\.\\.")&&b.has(u.charAt(4)),k=!n&&!e&&b.has(u.charAt(0));c=y?oG:k?xf:""}let f="";return this.isEnd()&&this.#e.#f&&this.#o?.type==="!"&&(f="(?:$|\\/)"),[c+u+f,br(u),this.#t=!!this.#t,this.#n]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#d(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString();return this.#r=[l],this.type=null,this.#t=void 0,[l,br(this.toString()),!1,!1]}let o=!r||e||n||!xf?"":this.#d(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!n?xf:"")+EF;else{let l=this.type==="!"?"))"+(this.isStart()&&!n&&!e?xf:"")+SF+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+l}return[a,br(s),this.#t=!!this.#t,this.#n]}#d(e){return this.#r.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");let[r,i,s,o]=n.toRegExpSource(e);return this.#n=this.#n||o,r}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#p(e,n,r=!1){let i=!1,s="",o=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(i){i=!1,s+=(uG.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?s+="\\\\":i=!0;continue}if(l==="["){let[u,c,f,h]=DF(e,a);if(f){s+=u,o=o||c,a+=f-1,n=n||h;continue}}if(l==="*"){r&&e==="*"?s+=EF:s+=SF,n=!0;continue}if(l==="?"){s+=By,n=!0;continue}s+=cG(l)}return[s,br(e),!!n,o]}};var jy=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var ht=(t,e,n={})=>(qa(e),!n.nocomment&&e.charAt(0)==="#"?!1:new gn(e,n).match(t)),fG=/^\*+([^+@!?\*\[\(]*)$/,hG=t=>e=>!e.startsWith(".")&&e.endsWith(t),pG=t=>e=>e.endsWith(t),dG=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),mG=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),gG=/^\*+\.\*+$/,yG=t=>!t.startsWith(".")&&t.includes("."),bG=t=>t!=="."&&t!==".."&&t.includes("."),wG=/^\.\*+$/,xG=t=>t!=="."&&t!==".."&&t.startsWith("."),_G=/^\*+$/,DG=t=>t.length!==0&&!t.startsWith("."),vG=t=>t.length!==0&&t!=="."&&t!=="..",SG=/^\?+([^+@!?\*\[\(]*)?$/,EG=([t,e=""])=>{let n=CF([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},kG=([t,e=""])=>{let n=FF([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},TG=([t,e=""])=>{let n=FF([t]);return e?r=>n(r)&&r.endsWith(e):n},AG=([t,e=""])=>{let n=CF([t]);return e?r=>n(r)&&r.endsWith(e):n},CF=([t])=>{let e=t.length;return n=>n.length===e&&!n.startsWith(".")},FF=([t])=>{let e=t.length;return n=>n.length===e&&n!=="."&&n!==".."},RF=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",kF={win32:{sep:"\\"},posix:{sep:"/"}},CG=RF==="win32"?kF.win32.sep:kF.posix.sep;ht.sep=CG;var Bt=Symbol("globstar **");ht.GLOBSTAR=Bt;var FG="[^/]",RG=FG+"*?",OG="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",IG="(?:(?!(?:\\/|^)\\.).)*?",LG=(t,e={})=>n=>ht(n,t,e);ht.filter=LG;var Nt=(t,e={})=>Object.assign({},t,e),PG=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ht;let e=ht;return Object.assign((r,i,s={})=>e(r,i,Nt(t,s)),{Minimatch:class extends e.Minimatch{constructor(i,s={}){super(i,Nt(t,s))}static defaults(i){return e.defaults(Nt(t,i)).Minimatch}},AST:class extends e.AST{constructor(i,s,o={}){super(i,s,Nt(t,o))}static fromGlob(i,s={}){return e.AST.fromGlob(i,Nt(t,s))}},unescape:(r,i={})=>e.unescape(r,Nt(t,i)),escape:(r,i={})=>e.escape(r,Nt(t,i)),filter:(r,i={})=>e.filter(r,Nt(t,i)),defaults:r=>e.defaults(Nt(t,r)),makeRe:(r,i={})=>e.makeRe(r,Nt(t,i)),braceExpand:(r,i={})=>e.braceExpand(r,Nt(t,i)),match:(r,i,s={})=>e.match(r,i,Nt(t,s)),sep:e.sep,GLOBSTAR:Bt})};ht.defaults=PG;var OF=(t,e={})=>(qa(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,AF.default)(t));ht.braceExpand=OF;var qG=(t,e={})=>new gn(t,e).makeRe();ht.makeRe=qG;var MG=(t,e,n={})=>{let r=new gn(e,n);return t=t.filter(i=>r.match(i)),r.options.nonull&&!t.length&&t.push(e),t};ht.match=MG;var TF=/[?*]|[+@!]\(.*?\)|\[|\]/,NG=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gn=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,n={}){qa(e),n=n||{},this.options=n,this.pattern=e,this.platform=n.platform||RF,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let n of e)if(typeof n!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!TF.test(s[2]))&&!TF.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(c=>this.parse(c))];if(u)return[s[0],...s.slice(1).map(c=>this.parse(c))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let i=0;i<e[r].length;i++)e[r][i]==="**"&&(e[r][i]="*");let{optimizationLevel:n=1}=this.options;return n>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):n>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let i=r;for(;n[i+1]==="**";)i++;i!==r&&n.splice(r,i-r)}return n})}levelOneOptimize(e){return e.map(n=>(n=n.reduce((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(n=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(n=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(n=!0,e.splice(r-1,2),r-=2)}}while(n);return e.length===0?[""]:e}firstPhasePreProcess(e){let n=!1;do{n=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let o=i;for(;r[o+1]==="**";)o++;o>i&&r.splice(i+1,o-i);let a=r[i+1],l=r[i+2],u=r[i+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;n=!0,r.splice(i,1);let c=r.slice(0);c[i]="**",e.push(c),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){let a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(n=!0,r.splice(o,1),o--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let o=r[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){n=!0;let l=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...l),r.length===0&&r.push(""),s-=2}}}}while(n);return e}secondPhasePreProcess(e){for(let n=0;n<e.length-1;n++)for(let r=n+1;r<e.length;r++){let i=this.partsMatch(e[n],e[r],!this.preserveMultipleSlashes);if(i){e[n]=[],e[r]=i;break}}return e.filter(n=>n.length)}partsMatch(e,n,r=!1){let i=0,s=0,o=[],a="";for(;i<e.length&&s<n.length;)if(e[i]===n[s])o.push(a==="b"?n[s]:e[i]),i++,s++;else if(r&&e[i]==="**"&&n[s]===e[i+1])o.push(e[i]),i++;else if(r&&n[s]==="**"&&e[i]===n[s+1])o.push(n[s]),s++;else if(e[i]==="*"&&n[s]&&(this.options.dot||!n[s].startsWith("."))&&n[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[i]),i++,s++}else if(n[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return!1;a="b",o.push(n[s]),i++,s++}else return!1;return e.length===n.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,n=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)n=!n,r++;r&&(this.pattern=e.slice(r)),this.negate=n}matchOne(e,n,r=!1){let i=this.options;if(this.isWindows){let y=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),k=!y&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),g=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),m=!g&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),d=k?3:y?0:void 0,w=m?3:g?0:void 0;if(typeof d=="number"&&typeof w=="number"){let[T,v]=[e[d],n[w]];T.toLowerCase()===v.toLowerCase()&&(n[w]=T,w>d?n=n.slice(w):d>w&&(e=e.slice(d)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var o=0,a=0,l=e.length,u=n.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");var c=n[a],f=e[o];if(this.debug(n,c,f),c===!1)return!1;if(c===Bt){this.debug("GLOBSTAR",[n,c,f]);var h=o,p=a+1;if(p===u){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!i.dot&&e[o].charAt(0)===".")return!1;return!0}for(;h<l;){var b=e[h];if(this.debug(`
|
|
107
|
+
`.indexOf(t.charAt(e))!==-1}var fu;(function(t){t.DEFAULT={allowTrailingComma:!1}})(fu||(fu={}));function Np(t,e=[],n=fu.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(l){r.type==="property"&&(r.length=l-r.offset,r=r.parent)}function s(l){return r.children.push(l),l}t_(t,{onObjectBegin:l=>{r=s({type:"object",offset:l,length:-1,parent:r,children:[]})},onObjectProperty:(l,u,c)=>{r=s({type:"property",offset:u,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:l,offset:u,length:c,parent:r})},onObjectEnd:(l,u)=>{i(l+u),r.length=l+u-r.offset,r=r.parent,i(l+u)},onArrayBegin:(l,u)=>{r=s({type:"array",offset:l,length:-1,parent:r,children:[]})},onArrayEnd:(l,u)=>{r.length=l+u-r.offset,r=r.parent,i(l+u)},onLiteralValue:(l,u,c)=>{s({type:eP(l),offset:u,length:c,parent:r,value:l}),i(u+c)},onSeparator:(l,u,c)=>{r.type==="property"&&(l===":"?r.colonOffset=u:l===","&&i(u))},onError:(l,u,c)=>{e.push({error:l,offset:u,length:c})}},n);let a=r.children[0];return a&&delete a.parent,a}function hu(t,e){if(!t)return;let n=t;for(let r of e)if(typeof r=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;let i=!1;for(let s of n.children)if(Array.isArray(s.children)&&s.children[0].value===r&&s.children.length===2){n=s.children[1],i=!0;break}if(!i)return}else{let i=r;if(n.type!=="array"||i<0||!Array.isArray(n.children)||i>=n.children.length)return;n=n.children[i]}return n}function t_(t,e,n=fu.DEFAULT){let r=wo(t,!1),i=[],s=0;function o(R){return R?()=>s===0&&R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(R){return R?L=>s===0&&R(L,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(R){return R?L=>s===0&&R(L,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function u(R){return R?()=>{s>0?s++:R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())===!1&&(s=1)}:()=>!0}function c(R){return R?()=>{s>0&&s--,s===0&&R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let f=u(e.onObjectBegin),h=l(e.onObjectProperty),p=c(e.onObjectEnd),b=u(e.onArrayBegin),y=c(e.onArrayEnd),k=l(e.onLiteralValue),g=a(e.onSeparator),m=o(e.onComment),d=a(e.onError),w=n&&n.disallowComments,T=n&&n.allowTrailingComma;function D(){for(;;){let R=r.scan();switch(r.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:w||S(11);break;case 2:S(12);break;case 6:S(16);break}switch(R){case 12:case 13:w?S(10):m();break;case 16:S(1);break;case 15:case 14:break;default:return R}}}function S(R,L=[],$=[]){if(d(R),L.length+$.length>0){let z=r.getToken();for(;z!==17;){if(L.indexOf(z)!==-1){D();break}else if($.indexOf(z)!==-1)break;z=D()}}}function M(R){let L=r.getTokenValue();return R?k(L):(h(L),i.push(L)),D(),!0}function A(){switch(r.getToken()){case 11:let R=r.getTokenValue(),L=Number(R);isNaN(L)&&(S(2),L=0),k(L);break;case 7:k(null);break;case 8:k(!0);break;case 9:k(!1);break;default:return!1}return D(),!0}function F(){return r.getToken()!==10?(S(3,[],[2,5]),!1):(M(!1),r.getToken()===6?(g(":"),D(),O()||S(4,[],[2,5])):S(5,[],[2,5]),i.pop(),!0)}function I(){f(),D();let R=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(R||S(4,[],[]),g(","),D(),r.getToken()===2&&T)break}else R&&S(6,[],[]);F()||S(4,[],[2,5]),R=!0}return p(),r.getToken()!==2?S(7,[2],[]):D(),!0}function B(){b(),D();let R=!0,L=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(L||S(4,[],[]),g(","),D(),r.getToken()===4&&T)break}else L&&S(6,[],[]);R?(i.push(0),R=!1):i[i.length-1]++,O()||S(4,[],[4,5]),L=!0}return y(),R||i.pop(),r.getToken()!==4?S(8,[4],[]):D(),!0}function O(){switch(r.getToken()){case 3:return B();case 1:return I();case 10:return M(!0);default:return A()}}return D(),r.getToken()===17?n.allowEmptyContent?!0:(S(4,[],[]),!1):O()?(r.getToken()!==17&&S(9,[],[]),!0):(S(4,[],[]),!1)}function eP(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function n_(t,e,n,r){let i=e.slice(),o=Np(t,[]),a,l;for(;i.length>0&&(l=i.pop(),a=hu(o,i),a===void 0&&n!==void 0);)typeof l=="string"?n={[l]:n}:n=[n];if(a)if(a.type==="object"&&typeof l=="string"&&Array.isArray(a.children)){let u=hu(a,[l]);if(u!==void 0)if(n===void 0){if(!u.parent)throw new Error("Malformed AST");let c=a.children.indexOf(u.parent),f,h=u.parent.offset+u.parent.length;if(c>0){let p=a.children[c-1];f=p.offset+p.length}else f=a.offset+1,a.children.length>1&&(h=a.children[1].offset);return Ur(t,{offset:f,length:h-f,content:""},r)}else return Ur(t,{offset:u.offset,length:u.length,content:JSON.stringify(n)},r);else{if(n===void 0)return[];let c=`${JSON.stringify(l)}: ${JSON.stringify(n)}`,f=r.getInsertionIndex?r.getInsertionIndex(a.children.map(p=>p.children[0].value)):a.children.length,h;if(f>0){let p=a.children[f-1];h={offset:p.offset+p.length,length:0,content:","+c}}else a.children.length===0?h={offset:a.offset+1,length:0,content:c}:h={offset:a.offset+1,length:0,content:c+","};return Ur(t,h,r)}}else if(a.type==="array"&&typeof l=="number"&&Array.isArray(a.children)){let u=l;if(u===-1){let c=`${JSON.stringify(n)}`,f;if(a.children.length===0)f={offset:a.offset+1,length:0,content:c};else{let h=a.children[a.children.length-1];f={offset:h.offset+h.length,length:0,content:","+c}}return Ur(t,f,r)}else if(n===void 0&&a.children.length>=0){let c=l,f=a.children[c],h;if(a.children.length===1)h={offset:a.offset+1,length:a.length-2,content:""};else if(a.children.length-1===c){let p=a.children[c-1],b=p.offset+p.length,y=a.offset+a.length;h={offset:b,length:y-2-b,content:""}}else h={offset:f.offset,length:a.children[c+1].offset-f.offset,content:""};return Ur(t,h,r)}else if(n!==void 0){let c,f=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&a.children.length>l){let h=a.children[l];c={offset:h.offset,length:h.length,content:f}}else if(a.children.length===0||l===0)c={offset:a.offset+1,length:0,content:a.children.length===0?f:f+","};else{let h=l>a.children.length?a.children.length:l,p=a.children[h-1];c={offset:p.offset+p.length,length:0,content:","+f}}return Ur(t,c,r)}else throw new Error(`Can not ${n===void 0?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${u} as length is not sufficient`)}else throw new Error(`Can not add ${typeof l!="number"?"index":"property"} to parent of type ${a.type}`);else{if(n===void 0)throw new Error("Can not delete in empty document");return Ur(t,{offset:o?o.offset:0,length:o?o.length:0,content:JSON.stringify(n)},r)}}function Ur(t,e,n){if(!n.formattingOptions)return[e];let r=pu(t,e),i=e.offset,s=e.offset+e.content.length;if(e.length===0||e.content.length===0){for(;i>0&&!xo(r,i-1);)i--;for(;s<r.length&&!xo(r,s);)s++}let o=Mp(r,{offset:i,length:s-i},{...n.formattingOptions,keepLines:!1});for(let l=o.length-1;l>=0;l--){let u=o[l];r=pu(r,u),i=Math.min(i,u.offset),s=Math.max(s,u.offset+u.length),s+=u.content.length-u.length}let a=t.length-(r.length-s)-i;return[{offset:i,length:a,content:r.substring(i,s)}]}function pu(t,e){return t.substring(0,e.offset)+e.content+t.substring(e.offset+e.length)}var r_;(function(t){t[t.None=0]="None",t[t.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=2]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",t[t.InvalidUnicode=4]="InvalidUnicode",t[t.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",t[t.InvalidCharacter=6]="InvalidCharacter"})(r_||(r_={}));var i_;(function(t){t[t.OpenBraceToken=1]="OpenBraceToken",t[t.CloseBraceToken=2]="CloseBraceToken",t[t.OpenBracketToken=3]="OpenBracketToken",t[t.CloseBracketToken=4]="CloseBracketToken",t[t.CommaToken=5]="CommaToken",t[t.ColonToken=6]="ColonToken",t[t.NullKeyword=7]="NullKeyword",t[t.TrueKeyword=8]="TrueKeyword",t[t.FalseKeyword=9]="FalseKeyword",t[t.StringLiteral=10]="StringLiteral",t[t.NumericLiteral=11]="NumericLiteral",t[t.LineCommentTrivia=12]="LineCommentTrivia",t[t.BlockCommentTrivia=13]="BlockCommentTrivia",t[t.LineBreakTrivia=14]="LineBreakTrivia",t[t.Trivia=15]="Trivia",t[t.Unknown=16]="Unknown",t[t.EOF=17]="EOF"})(i_||(i_={}));var s_;(function(t){t[t.InvalidSymbol=1]="InvalidSymbol",t[t.InvalidNumberFormat=2]="InvalidNumberFormat",t[t.PropertyNameExpected=3]="PropertyNameExpected",t[t.ValueExpected=4]="ValueExpected",t[t.ColonExpected=5]="ColonExpected",t[t.CommaExpected=6]="CommaExpected",t[t.CloseBraceExpected=7]="CloseBraceExpected",t[t.CloseBracketExpected=8]="CloseBracketExpected",t[t.EndOfFileExpected=9]="EndOfFileExpected",t[t.InvalidCommentToken=10]="InvalidCommentToken",t[t.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=12]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",t[t.InvalidUnicode=14]="InvalidUnicode",t[t.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",t[t.InvalidCharacter=16]="InvalidCharacter"})(s_||(s_={}));function o_(t,e,n,r){return n_(t,e,n,r)}function a_(t,e){let n=e.slice(0).sort((i,s)=>{let o=i.offset-s.offset;return o===0?i.length-s.length:o}),r=t.length;for(let i=n.length-1;i>=0;i--){let s=n[i];if(s.offset+s.length<=r)t=pu(t,s);else throw new Error("Overlapping edit");r=s.offset}return t}var GF=Qe(SF(),1),VF=Qe(SR(),1);import*as qs from"fs";import{EventEmitter as $G}from"events";var OF=Qe(vR(),1);var qa=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};var lG={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Ma=t=>t.replace(/[[\]\\-]/g,"\\$&"),uG=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),EF=t=>t.join(""),kF=(t,e)=>{let n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");let r=[],i=[],s=n+1,o=!1,a=!1,l=!1,u=!1,c=n,f="";e:for(;s<t.length;){let y=t.charAt(s);if((y==="!"||y==="^")&&s===n+1){u=!0,s++;continue}if(y==="]"&&o&&!l){c=s+1;break}if(o=!0,y==="\\"&&!l){l=!0,s++;continue}if(y==="["&&!l){for(let[k,[g,m,d]]of Object.entries(lG))if(t.startsWith(k,s)){if(f)return["$.",!1,t.length-n,!0];s+=k.length,d?i.push(g):r.push(g),a=a||m;continue e}}if(l=!1,f){y>f?r.push(Ma(f)+"-"+Ma(y)):y===f&&r.push(Ma(y)),f="",s++;continue}if(t.startsWith("-]",s+1)){r.push(Ma(y+"-")),s+=2;continue}if(t.startsWith("-",s+1)){f=y,s+=2;continue}r.push(Ma(y)),s++}if(c<s)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,t.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!u){let y=r[0].length===2?r[0].slice(-1):r[0];return[uG(y),!1,c-n,!1]}let h="["+(u?"^":"")+EF(r)+"]",p="["+(u?"":"^")+EF(i)+"]";return[r.length&&i.length?"("+h+"|"+p+")":r.length?h:p,a,c-n,!0]};var br=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var cG=new Set(["!","?","+","*","@"]),TF=t=>cG.has(t),fG="(?!(?:^|/)\\.\\.?(?:$|/))",xf="(?!\\.)",hG=new Set(["[","."]),pG=new Set(["..","."]),dG=new Set("().*{}+?[]^$\\!"),mG=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ny="[^/]",AF=Ny+"*?",CF=Ny+"+?",Ps=class t{type;#e;#t;#n=!1;#r=[];#o;#h;#a;#f=!1;#l;#u;#s=!1;constructor(e,n,r={}){this.type=e,e&&(this.#t=!0),this.#o=n,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?r:this.#e.#l,this.#a=this.#e===this?[]:this.#e.#a,e==="!"&&!this.#e.#f&&this.#a.push(this),this.#h=this.#o?this.#o.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#u=this.#r.map(e=>String(e)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#f)return this;this.toString(),this.#f=!0;let e;for(;e=this.#a.pop();){if(e.type!=="!")continue;let n=e,r=n.#o;for(;r;){for(let i=n.#h+1;!r.type&&i<r.#r.length;i++)for(let s of e.#r){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(r.#r[i])}n=r,r=n.#o}}return this}push(...e){for(let n of e)if(n!==""){if(typeof n!="string"&&!(n instanceof t&&n.#o===this))throw new Error("invalid part: "+n);this.#r.push(n)}}toJSON(){let e=this.type===null?this.#r.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#r.map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#f&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#h===0)return!0;let e=this.#o;for(let n=0;n<this.#h;n++){let r=e.#r[n];if(!(r instanceof t&&r.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#r.length:0;return this.#h===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let n=new t(this.type,e);for(let r of this.#r)n.copyIn(r);return n}static#b(e,n,r,i){let s=!1,o=!1,a=-1,l=!1;if(n.type===null){let p=r,b="";for(;p<e.length;){let y=e.charAt(p++);if(s||y==="\\"){s=!s,b+=y;continue}if(o){p===a+1?(y==="^"||y==="!")&&(l=!0):y==="]"&&!(p===a+2&&l)&&(o=!1),b+=y;continue}else if(y==="["){o=!0,a=p,l=!1,b+=y;continue}if(!i.noext&&TF(y)&&e.charAt(p)==="("){n.push(b),b="";let k=new t(y,n);p=t.#b(e,k,p,i),n.push(k);continue}b+=y}return n.push(b),p}let u=r+1,c=new t(null,n),f=[],h="";for(;u<e.length;){let p=e.charAt(u++);if(s||p==="\\"){s=!s,h+=p;continue}if(o){u===a+1?(p==="^"||p==="!")&&(l=!0):p==="]"&&!(u===a+2&&l)&&(o=!1),h+=p;continue}else if(p==="["){o=!0,a=u,l=!1,h+=p;continue}if(TF(p)&&e.charAt(u)==="("){c.push(h),h="";let b=new t(p,c);c.push(b),u=t.#b(e,b,u,i);continue}if(p==="|"){c.push(h),h="",f.push(c),c=new t(null,n);continue}if(p===")")return h===""&&n.#r.length===0&&(n.#s=!0),c.push(h),h="",n.push(...f,c),u;h+=p}return n.type=null,n.#t=void 0,n.#r=[e.substring(r-1)],u}static fromGlob(e,n={}){let r=new t(null,void 0,n);return t.#b(e,r,0,n),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[n,r,i,s]=this.toRegExpSource();if(!(i||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:e})}get options(){return this.#l}toRegExpSource(e){let n=e??!!this.#l.dot;if(this.#e===this&&this.#y(),!this.type){let l=this.isStart()&&this.isEnd(),u=this.#r.map(p=>{let[b,y,k,g]=typeof p=="string"?t.#p(p,this.#t,l):p.toRegExpSource(e);return this.#t=this.#t||k,this.#n=this.#n||g,b}).join(""),c="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&pG.has(this.#r[0]))){let b=hG,y=n&&b.has(u.charAt(0))||u.startsWith("\\.")&&b.has(u.charAt(2))||u.startsWith("\\.\\.")&&b.has(u.charAt(4)),k=!n&&!e&&b.has(u.charAt(0));c=y?fG:k?xf:""}let f="";return this.isEnd()&&this.#e.#f&&this.#o?.type==="!"&&(f="(?:$|\\/)"),[c+u+f,br(u),this.#t=!!this.#t,this.#n]}let r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#d(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString();return this.#r=[l],this.type=null,this.#t=void 0,[l,br(this.toString()),!1,!1]}let o=!r||e||n||!xf?"":this.#d(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!n?xf:"")+CF;else{let l=this.type==="!"?"))"+(this.isStart()&&!n&&!e?xf:"")+AF+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+l}return[a,br(s),this.#t=!!this.#t,this.#n]}#d(e){return this.#r.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");let[r,i,s,o]=n.toRegExpSource(e);return this.#n=this.#n||o,r}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#p(e,n,r=!1){let i=!1,s="",o=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(i){i=!1,s+=(dG.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?s+="\\\\":i=!0;continue}if(l==="["){let[u,c,f,h]=kF(e,a);if(f){s+=u,o=o||c,a+=f-1,n=n||h;continue}}if(l==="*"){r&&e==="*"?s+=CF:s+=AF,n=!0;continue}if(l==="?"){s+=Ny,n=!0;continue}s+=mG(l)}return[s,br(e),!!n,o]}};var By=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var ht=(t,e,n={})=>(qa(e),!n.nocomment&&e.charAt(0)==="#"?!1:new gn(e,n).match(t)),gG=/^\*+([^+@!?\*\[\(]*)$/,yG=t=>e=>!e.startsWith(".")&&e.endsWith(t),bG=t=>e=>e.endsWith(t),wG=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),xG=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),_G=/^\*+\.\*+$/,DG=t=>!t.startsWith(".")&&t.includes("."),vG=t=>t!=="."&&t!==".."&&t.includes("."),SG=/^\.\*+$/,EG=t=>t!=="."&&t!==".."&&t.startsWith("."),kG=/^\*+$/,TG=t=>t.length!==0&&!t.startsWith("."),AG=t=>t.length!==0&&t!=="."&&t!=="..",CG=/^\?+([^+@!?\*\[\(]*)?$/,FG=([t,e=""])=>{let n=IF([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},RG=([t,e=""])=>{let n=LF([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},OG=([t,e=""])=>{let n=LF([t]);return e?r=>n(r)&&r.endsWith(e):n},IG=([t,e=""])=>{let n=IF([t]);return e?r=>n(r)&&r.endsWith(e):n},IF=([t])=>{let e=t.length;return n=>n.length===e&&!n.startsWith(".")},LF=([t])=>{let e=t.length;return n=>n.length===e&&n!=="."&&n!==".."},PF=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",FF={win32:{sep:"\\"},posix:{sep:"/"}},LG=PF==="win32"?FF.win32.sep:FF.posix.sep;ht.sep=LG;var Bt=Symbol("globstar **");ht.GLOBSTAR=Bt;var PG="[^/]",qG=PG+"*?",MG="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",NG="(?:(?!(?:\\/|^)\\.).)*?",BG=(t,e={})=>n=>ht(n,t,e);ht.filter=BG;var Nt=(t,e={})=>Object.assign({},t,e),jG=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ht;let e=ht;return Object.assign((r,i,s={})=>e(r,i,Nt(t,s)),{Minimatch:class extends e.Minimatch{constructor(i,s={}){super(i,Nt(t,s))}static defaults(i){return e.defaults(Nt(t,i)).Minimatch}},AST:class extends e.AST{constructor(i,s,o={}){super(i,s,Nt(t,o))}static fromGlob(i,s={}){return e.AST.fromGlob(i,Nt(t,s))}},unescape:(r,i={})=>e.unescape(r,Nt(t,i)),escape:(r,i={})=>e.escape(r,Nt(t,i)),filter:(r,i={})=>e.filter(r,Nt(t,i)),defaults:r=>e.defaults(Nt(t,r)),makeRe:(r,i={})=>e.makeRe(r,Nt(t,i)),braceExpand:(r,i={})=>e.braceExpand(r,Nt(t,i)),match:(r,i,s={})=>e.match(r,i,Nt(t,s)),sep:e.sep,GLOBSTAR:Bt})};ht.defaults=jG;var qF=(t,e={})=>(qa(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,OF.default)(t));ht.braceExpand=qF;var UG=(t,e={})=>new gn(t,e).makeRe();ht.makeRe=UG;var zG=(t,e,n={})=>{let r=new gn(e,n);return t=t.filter(i=>r.match(i)),r.options.nonull&&!t.length&&t.push(e),t};ht.match=zG;var RF=/[?*]|[+@!]\(.*?\)|\[|\]/,WG=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gn=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,n={}){qa(e),n=n||{},this.options=n,this.pattern=e,this.platform=n.platform||PF,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let n of e)if(typeof n!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!RF.test(s[2]))&&!RF.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(c=>this.parse(c))];if(u)return[s[0],...s.slice(1).map(c=>this.parse(c))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let i=0;i<e[r].length;i++)e[r][i]==="**"&&(e[r][i]="*");let{optimizationLevel:n=1}=this.options;return n>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):n>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let i=r;for(;n[i+1]==="**";)i++;i!==r&&n.splice(r,i-r)}return n})}levelOneOptimize(e){return e.map(n=>(n=n.reduce((r,i)=>{let s=r[r.length-1];return i==="**"&&s==="**"?r:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(i),r)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let s=e[i];i===1&&s===""&&e[0]===""||(s==="."||s==="")&&(n=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(n=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let i=e[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(n=!0,e.splice(r-1,2),r-=2)}}while(n);return e.length===0?[""]:e}firstPhasePreProcess(e){let n=!1;do{n=!1;for(let r of e){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let o=i;for(;r[o+1]==="**";)o++;o>i&&r.splice(i+1,o-i);let a=r[i+1],l=r[i+2],u=r[i+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;n=!0,r.splice(i,1);let c=r.slice(0);c[i]="**",e.push(c),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){let a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(n=!0,r.splice(o,1),o--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let s=0;for(;(s=r.indexOf("..",s+1))!==-1;){let o=r[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){n=!0;let l=s===1&&r[s+1]==="**"?["."]:[];r.splice(s-1,2,...l),r.length===0&&r.push(""),s-=2}}}}while(n);return e}secondPhasePreProcess(e){for(let n=0;n<e.length-1;n++)for(let r=n+1;r<e.length;r++){let i=this.partsMatch(e[n],e[r],!this.preserveMultipleSlashes);if(i){e[n]=[],e[r]=i;break}}return e.filter(n=>n.length)}partsMatch(e,n,r=!1){let i=0,s=0,o=[],a="";for(;i<e.length&&s<n.length;)if(e[i]===n[s])o.push(a==="b"?n[s]:e[i]),i++,s++;else if(r&&e[i]==="**"&&n[s]===e[i+1])o.push(e[i]),i++;else if(r&&n[s]==="**"&&e[i]===n[s+1])o.push(n[s]),s++;else if(e[i]==="*"&&n[s]&&(this.options.dot||!n[s].startsWith("."))&&n[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[i]),i++,s++}else if(n[s]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(a==="a")return!1;a="b",o.push(n[s]),i++,s++}else return!1;return e.length===n.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,n=!1,r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)n=!n,r++;r&&(this.pattern=e.slice(r)),this.negate=n}matchOne(e,n,r=!1){let i=this.options;if(this.isWindows){let y=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),k=!y&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),g=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),m=!g&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),d=k?3:y?0:void 0,w=m?3:g?0:void 0;if(typeof d=="number"&&typeof w=="number"){let[T,D]=[e[d],n[w]];T.toLowerCase()===D.toLowerCase()&&(n[w]=T,w>d?n=n.slice(w):d>w&&(e=e.slice(d)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var o=0,a=0,l=e.length,u=n.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");var c=n[a],f=e[o];if(this.debug(n,c,f),c===!1)return!1;if(c===Bt){this.debug("GLOBSTAR",[n,c,f]);var h=o,p=a+1;if(p===u){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!i.dot&&e[o].charAt(0)===".")return!1;return!0}for(;h<l;){var b=e[h];if(this.debug(`
|
|
108
108
|
globstar while`,e,h,n,p,b),this.matchOne(e.slice(h),n.slice(p),r))return this.debug("globstar found match!",h,l,b),!0;if(b==="."||b===".."||!i.dot&&b.charAt(0)==="."){this.debug("dot detected!",e,h,n,p);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(r&&(this.debug(`
|
|
109
|
-
>>> no match, partial?`,e,h,n,p),h===l))}let y;if(typeof c=="string"?(y=f===c,this.debug("string match",c,f,y)):(y=c.test(f),this.debug("pattern match",c,f,y)),!y)return!1}if(o===l&&a===u)return!0;if(o===l)return r;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return OF(this.pattern,this.options)}parse(e){qa(e);let n=this.options;if(e==="**")return Bt;if(e==="")return"";let r,i=null;(r=e.match(_G))?i=n.dot?vG:DG:(r=e.match(fG))?i=(n.nocase?n.dot?mG:dG:n.dot?pG:hG)(r[1]):(r=e.match(SG))?i=(n.nocase?n.dot?kG:EG:n.dot?TG:AG)(r):(r=e.match(gG))?i=n.dot?bG:yG:(r=e.match(wG))&&(i=xG);let s=Ls.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?RG:n.dot?OG:IG,i=new Set(n.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(c=>{if(c instanceof RegExp)for(let f of c.flags.split(""))i.add(f);return typeof c=="string"?NG(c):c===Bt?Bt:c._src});return u.forEach((c,f)=>{let h=u[f+1],p=u[f-1];c!==Bt||p===Bt||(p===void 0?h!==void 0&&h!==Bt?u[f+1]="(?:\\/|"+r+"\\/)?"+h:u[f]=r:h===void 0?u[f-1]=p+"(?:\\/|"+r+")?":h!==Bt&&(u[f-1]=p+"(?:\\/|\\/"+r+"\\/)"+h,u[f+1]=Bt))}),u.filter(c=>c!==Bt).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let l=s[a],u=i;if(r.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return ht.defaults(e).Minimatch}};ht.AST=Ls;ht.Minimatch=gn;ht.escape=jy;ht.unescape=br;import{resolve as jG}from"path";function UG(t,e){return new Promise((n,r)=>{Ps.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?r(i):n([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":n([]);break;case"ELOOP":default:r(i);break}else n(s)})})}function IF(t,e){return new Promise(n=>{(e?Ps.stat:Ps.lstat)(t,(i,s)=>{if(i)switch(i.code){case"ENOENT":n(e?IF(t,!1):null);break;default:n(null);break}else n(s)})})}async function*LF(t,e,n,r,i,s){var o;let a=await UG(e+t,s);for(let l of a){let u=l.name,c=t+"/"+u,f=c.slice(1),h=e+"/"+f,p=l;(r||n)&&(p=(o=await IF(h,n))!==null&&o!==void 0?o:p),p.isDirectory()?i(f)||(yield{relative:f,absolute:h,stat:p},yield*LF(c,e,n,r,i,!1)):yield{relative:f,absolute:h,stat:p}}}async function*zG(t,e,n,r){yield*LF("",t,e,n,r,!0)}function WG(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var _f=class extends BG{constructor(e,n,r){if(super(),typeof n=="function"&&(r=n,n=void 0),this.options=WG(n||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new gn(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new gn(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new gn(s,{dot:!0}))}if(this.iterator=zG(jG(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r){let i=r,s=[];this.on("match",o=>s.push(this.options.absolute?o.absolute:o.relative)),this.on("error",o=>i(o)),this.on("end",()=>i(null,s))}setTimeout(()=>this._next())}_shouldSkipDirectory(e){return this.skipMatchers.some(n=>n.match(e))}_fileMatches(e,n){let r=e+(n?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(r)))&&!this.ignoreMatchers.some(i=>i.match(r))&&(!this.options.nodir||!n)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let n=e.value.stat.isDirectory();if(this._fileMatches(e.value.relative,n)){let r=e.value.relative,i=e.value.absolute;this.options.mark&&n&&(r+="/",i+="/"),this.options.stat?this.emit("match",{relative:r,absolute:i,stat:e.value.stat}):this.emit("match",{relative:r,absolute:i})}this._next()}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}},pi=(t,e,n)=>new _f(t,e,n);pi.ReaddirGlob=_f;var Df=class t{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(t.isIncremental(r)){let i=MF(r.range),s=this.offsetAt(i.start),o=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(o,this._content.length);let a=Math.max(i.start.line,0),l=Math.max(i.end.line,0),u=this._lineOffsets,c=PF(r.text,!1,s);if(l-a===c.length)for(let h=0,p=c.length;h<p;h++)u[h+a+1]=c[h];else c.length<1e4?u.splice(a+1,l-a,...c):this._lineOffsets=u=u.slice(0,a+1).concat(c,u.slice(l+1));let f=r.text.length-(o-s);if(f!==0)for(let h=a+1+c.length,p=u.length;h<p;h++)u[h]=u[h]+f}else if(t.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=PF(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:e};for(;r<i;){let o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}let s=r-1;return e=this.ensureBeforeEOL(e,n[s]),{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line];if(e.character<=0)return r;let i=e.line+1<n.length?n[e.line+1]:this._content.length,s=Math.min(r+e.character,i);return this.ensureBeforeEOL(s,r)}ensureBeforeEOL(e,n){for(;e>n&&qF(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},qn;(function(t){function e(i,s,o,a){return new Df(i,s,o,a)}t.create=e;function n(i,s,o){if(i instanceof Df)return i.update(s,o),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function r(i,s){let o=i.getText(),a=Uy(s.map($G),(c,f)=>{let h=c.range.start.line-f.range.start.line;return h===0?c.range.start.character-f.range.start.character:h}),l=0,u=[];for(let c of a){let f=i.offsetAt(c.range.start);if(f<l)throw new Error("Overlapping edit");f>l&&u.push(o.substring(l,f)),c.newText.length&&u.push(c.newText),l=i.offsetAt(c.range.end)}return u.push(o.substr(l)),u.join("")}t.applyEdits=r})(qn||(qn={}));function Uy(t,e){if(t.length<=1)return t;let n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);Uy(r,e),Uy(i,e);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;)e(r[s],i[o])<=0?t[a++]=r[s++]:t[a++]=i[o++];for(;s<r.length;)t[a++]=r[s++];for(;o<i.length;)t[a++]=i[o++];return t}function PF(t,e,n=0){let r=e?[n]:[];for(let i=0;i<t.length;i++){let s=t.charCodeAt(i);qF(s)&&(s===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function qF(t){return t===13||t===10}function MF(t){let e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function $G(t){let e=MF(t.range);return e!==t.range?{newText:t.newText,range:e}:t}async function wr(){try{return JSON.parse(await yn.readFile("info.json","utf8"))}catch(t){console.log(`Failed to read info.json: ${t}`),process.exit(1)}}async function bn(t,e,n,r){return new Promise((i,s)=>{let o=e.package?.scripts?.[t];if(o){let a=UF(`${o} ${(r??[]).join(" ")}`,{shell:!0,windowsHide:!0,stdio:"inherit",env:Object.assign({},process.env,{FACTORIO_MODNAME:e.name,FACTORIO_MODVERSION:e.version,WSLENV:(process.env.WSLENV?process.env.WSLENV+":":"")+"FACTORIO_MODNAME/u:FACTORIO_MODVERSION/u:FACTORIO_MODPACKAGE/p"},n)});a.on("error",s),a.on("close",(l,u)=>{l!==null?i(l):s(new Error(u?.toString()))})}else s(new Error(`No script '${t}'`))})}async function xr(t,e){return new Promise((n,r)=>{let i=UF(`git ${t}`,{shell:!0,windowsHide:!0,stdio:e!==void 0?["pipe","inherit","inherit"]:"inherit"});e!==void 0&&i.stdin&&(i.stdin.write(e),i.stdin.end()),i.on("error",r),i.on("close",(s,o)=>{s===0?n():r(s!==null?new Error(`returned with code ${s}`):new Error(o?.toString()))})})}async function vf(t){let e=zt.joinPath(Ze.file(process.cwd()),"changelog.txt"),n;try{n=await yn.readFile("changelog.txt","utf8")}catch{}if(!n)console.log("No changelog.txt");else{let r=new Date().toISOString().substring(0,10),i=qn.create(e.toString(),"factorio-changelog",1,n),s=uu(i),o=Yx(s,t.version,r);if(o){let a=qn.applyEdits(i,[o]);await yn.writeFile("changelog.txt",a),console.log(`Changelog section ${t.version} stamped ${r}`)}else console.log(`No Changelog section for ${t.version}`)}if(t.package?.scripts?.datestamp){let r=await bn("datestamp",t);r!==0&&process.exit(r)}return!!n}async function Sf(t){if(t.package?.scripts?.compile){let n=await bn("compile",t);n!==0&&process.exit(n)}if(t.package?.scripts?.prepackage){let n=await bn("prepackage",t);n!==0&&process.exit(n)}let e=(0,zF.default)("zip",{zlib:{level:9}});if(e.glob("**",{cwd:process.cwd(),nodir:!0,ignore:[`**/${t.name}_*.zip`].concat(t.package?.ignore||[])},{prefix:`${t.name}_${t.version}`}),t.package?.extra)for(let n of t.package.extra)e.glob(n.glob??"**",{cwd:n.root,nodir:!0,ignore:n.ignore},{prefix:`${t.name}_${t.version}`});return e}var qs;async function HG(){if(qs)return qs;let t=process.env.FACTORIO_UPLOAD_API_KEY;if(t)return qs=t.trim(),qs;let e=await al({message:"Mod Portal API Key:"});if(e)return qs=e.trim(),qs;throw new Error("No API Key")}async function Na(t,e){let n=await HG(),r=await Ua(e,{method:"POST",body:t,headers:new tb({Authorization:`Bearer ${n}`})});if(!r.ok){let i;try{i=(await r.json()).message}catch{i=`Unexpected non-json error response:
|
|
109
|
+
>>> no match, partial?`,e,h,n,p),h===l))}let y;if(typeof c=="string"?(y=f===c,this.debug("string match",c,f,y)):(y=c.test(f),this.debug("pattern match",c,f,y)),!y)return!1}if(o===l&&a===u)return!0;if(o===l)return r;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return qF(this.pattern,this.options)}parse(e){qa(e);let n=this.options;if(e==="**")return Bt;if(e==="")return"";let r,i=null;(r=e.match(kG))?i=n.dot?AG:TG:(r=e.match(gG))?i=(n.nocase?n.dot?xG:wG:n.dot?bG:yG)(r[1]):(r=e.match(CG))?i=(n.nocase?n.dot?RG:FG:n.dot?OG:IG)(r):(r=e.match(_G))?i=n.dot?vG:DG:(r=e.match(SG))&&(i=EG);let s=Ps.fromGlob(e,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?qG:n.dot?MG:NG,i=new Set(n.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(c=>{if(c instanceof RegExp)for(let f of c.flags.split(""))i.add(f);return typeof c=="string"?WG(c):c===Bt?Bt:c._src});return u.forEach((c,f)=>{let h=u[f+1],p=u[f-1];c!==Bt||p===Bt||(p===void 0?h!==void 0&&h!==Bt?u[f+1]="(?:\\/|"+r+"\\/)?"+h:u[f]=r:h===void 0?u[f-1]=p+"(?:\\/|"+r+")?":h!==Bt&&(u[f-1]=p+"(?:\\/|\\/"+r+"\\/)"+h,u[f+1]=Bt))}),u.filter(c=>c!==Bt).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let l=s[a],u=i;if(r.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return ht.defaults(e).Minimatch}};ht.AST=Ps;ht.Minimatch=gn;ht.escape=By;ht.unescape=br;import{resolve as HG}from"path";function GG(t,e){return new Promise((n,r)=>{qs.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?r(i):n([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":n([]);break;case"ELOOP":default:r(i);break}else n(s)})})}function MF(t,e){return new Promise(n=>{(e?qs.stat:qs.lstat)(t,(i,s)=>{if(i)switch(i.code){case"ENOENT":n(e?MF(t,!1):null);break;default:n(null);break}else n(s)})})}async function*NF(t,e,n,r,i,s){var o;let a=await GG(e+t,s);for(let l of a){let u=l.name,c=t+"/"+u,f=c.slice(1),h=e+"/"+f,p=l;(r||n)&&(p=(o=await MF(h,n))!==null&&o!==void 0?o:p),p.isDirectory()?i(f)||(yield{relative:f,absolute:h,stat:p},yield*NF(c,e,n,r,i,!1)):yield{relative:f,absolute:h,stat:p}}}async function*VG(t,e,n,r){yield*NF("",t,e,n,r,!0)}function YG(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var _f=class extends $G{constructor(e,n,r){if(super(),typeof n=="function"&&(r=n,n=void 0),this.options=YG(n||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new gn(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new gn(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new gn(s,{dot:!0}))}if(this.iterator=VG(HG(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r){let i=r,s=[];this.on("match",o=>s.push(this.options.absolute?o.absolute:o.relative)),this.on("error",o=>i(o)),this.on("end",()=>i(null,s))}setTimeout(()=>this._next())}_shouldSkipDirectory(e){return this.skipMatchers.some(n=>n.match(e))}_fileMatches(e,n){let r=e+(n?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(r)))&&!this.ignoreMatchers.some(i=>i.match(r))&&(!this.options.nodir||!n)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let n=e.value.stat.isDirectory();if(this._fileMatches(e.value.relative,n)){let r=e.value.relative,i=e.value.absolute;this.options.mark&&n&&(r+="/",i+="/"),this.options.stat?this.emit("match",{relative:r,absolute:i,stat:e.value.stat}):this.emit("match",{relative:r,absolute:i})}this._next()}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}},di=(t,e,n)=>new _f(t,e,n);di.ReaddirGlob=_f;var Df=class t{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(t.isIncremental(r)){let i=UF(r.range),s=this.offsetAt(i.start),o=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(o,this._content.length);let a=Math.max(i.start.line,0),l=Math.max(i.end.line,0),u=this._lineOffsets,c=BF(r.text,!1,s);if(l-a===c.length)for(let h=0,p=c.length;h<p;h++)u[h+a+1]=c[h];else c.length<1e4?u.splice(a+1,l-a,...c):this._lineOffsets=u=u.slice(0,a+1).concat(c,u.slice(l+1));let f=r.text.length-(o-s);if(f!==0)for(let h=a+1+c.length,p=u.length;h<p;h++)u[h]=u[h]+f}else if(t.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=BF(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:e};for(;r<i;){let o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}let s=r-1;return e=this.ensureBeforeEOL(e,n[s]),{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line];if(e.character<=0)return r;let i=e.line+1<n.length?n[e.line+1]:this._content.length,s=Math.min(r+e.character,i);return this.ensureBeforeEOL(s,r)}ensureBeforeEOL(e,n){for(;e>n&&jF(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},qn;(function(t){function e(i,s,o,a){return new Df(i,s,o,a)}t.create=e;function n(i,s,o){if(i instanceof Df)return i.update(s,o),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function r(i,s){let o=i.getText(),a=jy(s.map(KG),(c,f)=>{let h=c.range.start.line-f.range.start.line;return h===0?c.range.start.character-f.range.start.character:h}),l=0,u=[];for(let c of a){let f=i.offsetAt(c.range.start);if(f<l)throw new Error("Overlapping edit");f>l&&u.push(o.substring(l,f)),c.newText.length&&u.push(c.newText),l=i.offsetAt(c.range.end)}return u.push(o.substr(l)),u.join("")}t.applyEdits=r})(qn||(qn={}));function jy(t,e){if(t.length<=1)return t;let n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);jy(r,e),jy(i,e);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;)e(r[s],i[o])<=0?t[a++]=r[s++]:t[a++]=i[o++];for(;s<r.length;)t[a++]=r[s++];for(;o<i.length;)t[a++]=i[o++];return t}function BF(t,e,n=0){let r=e?[n]:[];for(let i=0;i<t.length;i++){let s=t.charCodeAt(i);jF(s)&&(s===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function jF(t){return t===13||t===10}function UF(t){let e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function KG(t){let e=UF(t.range);return e!==t.range?{newText:t.newText,range:e}:t}async function wr(){try{return JSON.parse(await yn.readFile("info.json","utf8"))}catch(t){console.log(`Failed to read info.json: ${t}`),process.exit(1)}}async function bn(t,e,n,r){return new Promise((i,s)=>{let o=e.package?.scripts?.[t];if(o){let a=HF(`${o} ${(r??[]).join(" ")}`,{shell:!0,windowsHide:!0,stdio:"inherit",env:Object.assign({},process.env,{FACTORIO_MODNAME:e.name,FACTORIO_MODVERSION:e.version,WSLENV:(process.env.WSLENV?process.env.WSLENV+":":"")+"FACTORIO_MODNAME/u:FACTORIO_MODVERSION/u:FACTORIO_MODPACKAGE/p"},n)});a.on("error",s),a.on("close",(l,u)=>{l!==null?i(l):s(new Error(u?.toString()))})}else s(new Error(`No script '${t}'`))})}async function xr(t,e){return new Promise((n,r)=>{let i=HF(`git ${t}`,{shell:!0,windowsHide:!0,stdio:e!==void 0?["pipe","inherit","inherit"]:"inherit"});e!==void 0&&i.stdin&&(i.stdin.write(e),i.stdin.end()),i.on("error",r),i.on("close",(s,o)=>{s===0?n():r(s!==null?new Error(`returned with code ${s}`):new Error(o?.toString()))})})}async function vf(t){let e=zt.joinPath(Ze.file(process.cwd()),"changelog.txt"),n;try{n=await yn.readFile("changelog.txt","utf8")}catch{}if(!n)console.log("No changelog.txt");else{let r=new Date().toISOString().substring(0,10),i=qn.create(e.toString(),"factorio-changelog",1,n),s=uu(i),o=Jx(s,t.version,r);if(o){let a=qn.applyEdits(i,[o]);await yn.writeFile("changelog.txt",a),console.log(`Changelog section ${t.version} stamped ${r}`)}else console.log(`No Changelog section for ${t.version}`)}if(t.package?.scripts?.datestamp){let r=await bn("datestamp",t);r!==0&&process.exit(r)}return!!n}async function Sf(t){if(t.package?.scripts?.compile){let n=await bn("compile",t);n!==0&&process.exit(n)}if(t.package?.scripts?.prepackage){let n=await bn("prepackage",t);n!==0&&process.exit(n)}let e=(0,GF.default)("zip",{zlib:{level:9}});if(e.glob("**",{cwd:process.cwd(),nodir:!0,ignore:[`**/${t.name}_*.zip`].concat(t.package?.ignore||[])},{prefix:`${t.name}_${t.version}`}),t.package?.extra)for(let n of t.package.extra)e.glob(n.glob??"**",{cwd:n.root,nodir:!0,ignore:n.ignore},{prefix:`${t.name}_${t.version}`});return e}var Ms;async function QG(){if(Ms)return Ms;let t=process.env.FACTORIO_UPLOAD_API_KEY;if(t)return Ms=t.trim(),Ms;let e=await al({message:"Mod Portal API Key:"});if(e)return Ms=e.trim(),Ms;throw new Error("No API Key")}async function Na(t,e){let n=await QG(),r=await Ua(e,{method:"POST",body:t,headers:new eb({Authorization:`Bearer ${n}`})});if(!r.ok){let i;try{i=(await r.json()).message}catch{i=`Unexpected non-json error response:
|
|
110
110
|
${await r.text()}
|
|
111
111
|
`}throw new Error(i)}try{return await r.json()}catch{let s=await r.text();throw new Error(`Unexpected non-json success response:
|
|
112
112
|
${s}
|
|
113
|
-
`)}}async function
|
|
113
|
+
`)}}async function YF(t,e){let n=new _i;return n.append("mod",t),(await Na(n,e)).upload_url}async function Ef(t,e){console.log("Uploading to mod portal...");let n=await YF(t,"https://mods.factorio.com/api/v2/mods/releases/init_upload"),r=new _i;r.append("file",new Pf([e],{type:"application/x-zip-compressed"}),`${t}.zip`),await Na(r,n),console.log(`Published ${t}`)}async function ZG(t,e,n){let r=await YF(t,"https://mods.factorio.com/api/v2/mods/images/add"),i=new _i;return i.append("image",new Pf([e],{type:Rw.getType(n)??void 0}),n),await Na(i,r)}async function JG(t,e){let n=new _i;return n.append("mod",t),n.append("images",e.join(",")),(await Na(n,"https://mods.factorio.com/api/v2/mods/images/edit")).images}async function XG(t,e){let n=new _i;n.append("mod",t),e.homepage!==void 0&&n.append("homepage",e.homepage),e.title!==void 0&&n.append("title",e.title),e.summary!==void 0&&n.append("summary",e.summary),e.description!==void 0&&n.append("description",e.description),e.faq!==void 0&&n.append("faq",e.faq),await Na(n,"https://mods.factorio.com/api/v2/mods/edit_details").then(()=>{console.log("Details updated")}).catch(r=>{console.log(`Details update failed: ${r}`)})}async function KF(t,e,n,r){let i=await yn.readFile(t).catch(()=>{});if(!i)return;let s=WF.createHash("sha1").update(i).digest("hex");r.add(s);let o=n.find(l=>l.id===s);if(o)return o;let a=await ZG(e,i,$F.basename(t));return n.push(a),a}async function zF(t,e,n,r,i){let s=new Date().toISOString(),o=await yn.readFile(t,"utf8").catch(()=>{});if(!o)return;let a=new RegExp(i?.url_match??/^((http(s?)|data):|#)/),l=i?.base_url;l&&!l.endsWith("/")&&(l+="/");let u=await Ol().use(function(){return async function(c,f){if(i?.strip_first_header??!0){let p=c.children[0];p.type==="heading"&&p.depth===1&&c.children.splice(0,1)}let h=new Map;Xt(c,"image",p=>{let b=h.get(p.url);b?b.push(p):h.set(p.url,[p])});for(let[p,b]of h)if(!p.match(a))switch(i?.images){case"gallery":default:let y=await KF($F.resolve(f.cwd,p),e,n,r);if(!y)continue;b.forEach(g=>{g.url=y.url});break;case"url":if(!l)continue;let k=l+p;b.forEach(g=>{g.url=k});break}l&&Xt(c,"link",p=>{if(!p.url.match(a)){if(p.url==="$process_date"){p.url=s;return}p.url=l+p.url}})}}).process(o);return String(u)}async function kf(t,e){let n={title:t.title,homepage:t.homepage,summary:t.description},{images:r}=await tb(t.name,!0),i=new Set,s=t.package?.gallery;if(s)for(let l of s){let u=await new Promise((c,f)=>{let h=[],p=di(process.cwd(),{pattern:l,nodir:!0});p.on("match",b=>{h.push(b.absolute)}),p.on("error",b=>f(b)),p.on("end",()=>c(h))});await Promise.all(u.sort().map(async c=>KF(c,t.name,r,i)))}let o=await zF(e?.readme??t.package?.readme??"readme.md",t.name,r,i,t?.package?.markdown);o&&(n.description=o);let a=await zF(e?.faq??t.package?.faq??"faq.md",t.name,r,i,t?.package?.markdown);if(a&&(n.faq=a),t.package?.gallery){if(t.package.prune_gallery===!1)for(let l of r)i.add(l.id);console.log("Sorting gallery ..."),await JG(t.name,Array.from(i))}console.log("Updating details ..."),await XG(t.name,n)}async function Tf(t,e){let n=VF.default.inc(t.version,"patch",{loose:!0}),r=o_(e,["version"],n,{});if(await yn.writeFile("info.json",a_(e,r)),t.version=n,await yn.readFile("changelog.txt","utf8").catch(()=>{}).then(async i=>{if(i){let o=i.indexOf(`\r
|
|
114
114
|
`)!==-1?`\r
|
|
115
115
|
`:`
|
|
116
|
-
`;await yn.writeFile("changelog.txt",`---------------------------------------------------------------------------------------------------${o}Version: ${n}${o}Date: ????${o} Changes:${o}`+i)}}),t.package?.scripts?.version){let i=await bn("version",t);i!==0&&process.exit(i)}return t}ge.command("run <script> [args...]").description("Run a script from info.json#/package/scripts").action(async(t,e)=>{process.exit(await bn(t,await wr(),void 0,e))});ge.command("datestamp").description("Datestamp the current changelog section").action(async()=>{let t=await wr();await vf(t)});import*as GF from"fs/promises";ge.command("version").description("Increment the mod version").action(async()=>{let t=await GF.readFile("info.json","utf8"),e=JSON.parse(t);await Tf(e,t)});import{createWriteStream as KG}from"fs";ge.command("package").description("Build a zip package").option("--outdir <outdir>","","").action(async t=>{let e=await wr(),n=zt.resolvePath(Ze.file(process.cwd()),t.outdir,`${e.name}_${e.version}.zip`),r=KG(n.fsPath),i=await Sf(e);i.pipe(r),await i.finalize(),console.log(`Built ${e.name}_${e.version}.zip ${i.pointer()} bytes`)});import QG from"path";import*as VF from"fs/promises";ge.command("upload <zipname> [name]").description("Upload a zip package to the mod portal").action(async(t,e)=>{if(!e){let r=QG.basename(t,".zip").match(/^(.*?)(_(\d+\.){2}\d+)?$/);r&&(e=r[1])}if(!e){console.log("Unable to determine `name`");return}await Ef(e,await VF.readFile(t))});ge.command("details").description("Update mod details").option("--readme <readme.md>").option("--faq <faq.md>").action(async t=>{let e=await wr();return kf(e,t)});import*as QF from"os";import*as Ms from"fs/promises";import*as ZF from"crypto";import XG from"path";import{exec as Af}from"child_process";import*as YF from"os";import*as di from"fs/promises";import ZG from"path";var zy={async readFile(t){return di.readFile(t.fsPath)},async writeFile(t,e){return di.writeFile(t.fsPath,e)},async stat(t){let e=await di.stat(t.fsPath);return{size:e.size,type:(e.isFile()?1:0)|(e.isDirectory()?2:0)|(e.isSymbolicLink()?64:0),ctime:e.ctime.valueOf(),mtime:e.mtime.valueOf()}}};async function JG(t,e){let n=process.env.FMTK_CONFIG??ZG.join(YF.homedir(),".fmtk","config.json");try{let r=JSON.parse(await di.readFile(n,"utf8"));if(typeof r!="object"||Array.isArray(r))return;let i={};for(let s in r)s.startsWith(`${t}.`)&&(i[s.substring(t.length+1)]=r[s]);return e||console.log(`Got config section ${t} from ${n}`),i}catch{}}async function KF(t,e,n){return Object.assign({},...await Promise.all([e,JG(t,n)]))}ge.command("publish").description("Package and publish a mod to the mod portal").action(async()=>{let t=await Ms.readFile("info.json","utf8"),e=JSON.parse(t);console.log(`Publishing: ${process.cwd()} ${e.version}`);let n=await KF("package",{preparingCommitMessage:"preparing release of version $VERSION",movedToCommitMessage:"moved to version $VERSION",autoCommitAuthor:"compilatron <compilatron@justarandomgeek.com>",tagName:"$VERSION",tagMessage:void 0}),r=await new Promise(u=>{Af("git status --porcelain",(c,f,h)=>{c&&c.code!==0&&u(void 0),f&&u("HasChanges"),u("OK")})}),i;if(r){if(r==="HasChanges"){console.log("Cannot Publish with uncommitted changes");return}i=await new Promise((c,f)=>{Af("git branch --show-current",(h,p)=>{h&&h.code!==0&&f(h),c(p.trim())})});let u=e.package?.git_publish_branch;switch(u){case null:break;case void 0:u=await new Promise((c,f)=>{Af("git config init.defaultBranch",(h,p)=>{h&&h.code!==0&&f(h),c(p.trim())})});default:u!==i&&(console.log(`Cannot Publish on branch other than '${u}', currently on '${i}'`),process.exit(1));break}}else console.log("No git repo found, skipping git subtasks...");if(e.package?.scripts?.prepublish){let u=await bn("prepublish",e);u!==0&&process.exit(u)}let s=await vf(e),o;if(r&&(s&&await xr("add changelog.txt"),await xr(`commit --author "${n.autoCommitAuthor}" --allow-empty -F -`,n.preparingCommitMessage.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name)),!e.package?.no_git_tag)){o=n.tagName.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name);let u=n.tagMessage?.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name);await xr(`tag -a ${o} -F -`,u??"")}let a=await new Promise((u,c)=>{Sf(e).then(f=>{let h=[];f.on("data",p=>h.push(Buffer.from(p))),f.on("error",p=>c(p)),f.on("end",()=>u(Buffer.concat(h))),f.finalize()})});if(e.package?.scripts?.publish){let u=await bn("publish",e);u!==0&&process.exit(u)}if(e.package?.no_portal_upload||(await Ef(e.name,a),e.package?.sync_portal_details&&await kf(e)),e.package?.scripts?.postpublish){let u=XG.join(QF.tmpdir(),`${ZF.randomBytes(16).toString("base64url")}.zip`);await Ms.writeFile(u,a);let c=await bn("postpublish",e,{FACTORIO_MODPACKAGE:u});await Ms.unlink(u),c!==0&&process.exit(c)}let l=await Tf(e,t);if(r&&(await xr("add info.json"),s&&await xr("add changelog.txt"),await xr(`commit --author "${n.autoCommitAuthor}" -F -`,n.movedToCommitMessage.replace(/\$VERSION/g,l.version).replace(/\$MODNAME/g,l.name)),!e.package?.no_git_push)){let u=await new Promise(c=>{Af(`git config branch.${i}.remote`,(f,h)=>{f&&f.code!==0&&c(void 0),c(h.trim())})});u?await xr(`push ${u} ${i} ${o??""}`):console.log(`no remote set as upstream on ${i}`)}});import*as Ba from"fs/promises";import eR from"path";import{createWriteStream as eV}from"fs";import JF from"path";var Cf=class{docs;concepts;simple_structs;prototypes;type_prefix="data.";constructor(e){if(this.docs=JSON.parse(e),this.docs.application!=="factorio")throw new Error(`Unknown application: ${this.docs.application}`);if(this.docs.api_version!==6)throw new Error(`Unsupported Prototype Docs JSON Version ${this.docs.api_version}`);if(this.docs.stage!=="prototype")throw new Error(`Wrong stage: ${this.docs.stage}`);this.concepts=new Map(this.docs.types.map(n=>[n.name,n])),this.simple_structs=new Set;for(let[n,r]of this.concepts)typeof r.type=="object"&&r.type.complex_type==="struct"&&this.simple_structs.add(n);this.prototypes=new Map(this.docs.prototypes.map(n=>[n.name,n]))}get api_version(){return this.docs.api_version}get stage(){return this.docs.stage}get application(){return this.docs.application}get application_version(){return this.docs.application_version}resolve_link(e,n){if(n=n?`#${n}`:"",["prototypes","types"].includes(e))return`/${e}.html${n}`;if(["libraries","storage","migrations","data-lifecycle","prototype-tree","noise-expressions","instrument","item-weight"].includes(e))return`/auxiliary/${e}.html${n}`;if(this.concepts.has(e))return`/types/${e}.html${n}`;if(this.prototypes.has(e))return`/prototypes/${e}.html${n}`;console.warn(`Invalid Link: prototype:${e}${n}`)}async generate_LuaLS_docs(e){return[...await this.generate_LuaLS_concepts(e),...await this.generate_LuaLS_prototypes(e),this.generate_LuaLS_data(e)]}async generate_LuaLS_concepts(e){let n=[];for(let[r,i]of this.concepts){let s=new za(`prototype-api/concepts/${i.name}`,this.application_version);if(i.type==="builtin")continue;let o=this.simple_structs.has(i.name),a=o?"":".struct";if(i.properties){let l=new Ws(this.type_prefix+i.name+a);l.exact=!0,l.description=await e(i.description,{scope:"prototype",member:i.name}),i.parent&&(l.parents=[new qe(this.type_prefix+i.parent+a)]);for(let u of i.properties)l.add(new Nn(u.name,this.lua_proto_type(u.type),await e(u.description,{scope:"prototype",member:i.name,part:u.name}),u.optional));s.add(l)}if(!o){let l=i.type;if(i.name==="AnyPrototype"&&typeof l=="object"&&l.complex_type==="union"){let u=["MapGenPresets","GuiStyle"];l={complex_type:"union",options:l.options.filter(f=>typeof f=="object"?!(f.complex_type==="type"&&typeof f.value=="string"&&u.includes(f.value)):!u.includes(f))}}s.add(new ob(this.type_prefix+i.name,this.lua_proto_type(l,i),i.description))}n.push(s)}return n}generate_LuaLS_data(e){let n=new za("prototype-api/data",this.application_version),r=new Ws("data");r.add(new Nn("raw",new qe("data.raw"))),r.add(new Nn("is_demo",new qe("boolean")));let i=new ab("extend",[new Er("otherdata",new _i(new qe("data.AnyPrototype")))]);i.add(new Wa(void 0,[new Er("self",new qe("data")),new Er("otherdata",new _i(new qe("data.AnyPrototype")))])),i.add(new Wa(void 0,[new Er("otherdata",new _i(new qe("data.AnyModSettingPrototype")))])),i.add(new Wa(void 0,[new Er("self",new qe("data")),new Er("otherdata",new _i(new qe("data.AnyModSettingPrototype")))])),r.add(i),r.global_name="data",n.add(r);let s=new Ws("data.raw");s.exact=!0,n.add(s);for(let[o,a]of this.prototypes)a.typename&&s.add(new Nn(new qf(a.typename),new Mf(new qe("string"),new qe(this.type_prefix+a.name))));return n}async generate_LuaLS_prototypes(e){let n=[];for(let[r,i]of this.prototypes){let s=new za(`prototype-api/prototypes/${i.name}`,this.application_version),o=new Ws(this.type_prefix+i.name);o.exact=!0,o.description=await e(i.description,{scope:"prototype",member:i.name}),i.parent&&(o.parents=[new qe(this.type_prefix+i.parent)]);for(let a of i.properties)o.add(new Nn(a.name,this.lua_proto_type(a.type),await e(a.description,{scope:"prototype",member:i.name,part:a.name}),a.optional)),a.alt_name&&o.add(new Nn(a.alt_name,this.lua_proto_type(a.type),await e(a.description,{scope:"prototype",member:i.name,part:a.alt_name}),a.optional));if(i.custom_properties){let a=i.custom_properties;o.add(new Nn(this.lua_proto_type(a.key_type),this.lua_proto_type(a.value_type),await e(a.description,{scope:"prototype",member:i.name,part:"custom_properties"})))}s.add(o),n.push(s)}return n}lua_proto_type(e,n){switch(typeof e){case"string":switch(e){case"bool":return new qe("boolean");case"boolean":case"string":case"float":case"double":case"int8":case"uint8":case"int16":case"uint16":case"int32":case"uint32":case"int64":case"uint64":return new qe(e)}return new qe(this.type_prefix+e);case"object":switch(e.complex_type){case"struct":if(!n)throw new Error("struct without parent");return this.simple_structs.has(n.name)?new qe(this.type_prefix+n.name):new qe(this.type_prefix+n.name+".struct");case"array":return new _i(this.lua_proto_type(e.value,n));case"tuple":return new ib(e.values.map(r=>this.lua_proto_type(r,n)));case"dictionary":return new Mf(this.lua_proto_type(e.key,n),this.lua_proto_type(e.value,n));case"union":return new sb(e.options.map(r=>this.lua_proto_type(r,n)));case"literal":return new qf(e.value);case"type":return this.lua_proto_type(e.value,n);default:throw new Error("Invalid Type")}default:throw new Error("Invalid Type")}}};async function XF(t,e,n){let r=new $a(t),i=new Cf(e),s=c=>{let f=c.url.match(/^(runtime|prototype):(.+?)(?:::(.+))?$/);if(f)switch(f[1]){case"runtime":let h=r.resolve_link(f[2],f[3]);h&&(c.url="https://lua-api.factorio.com/latest"+h);break;case"prototype":let p=i.resolve_link(f[2],f[3]);p&&(c.url="https://lua-api.factorio.com/latest"+p);break}},o=Ol().use(function(){return function(c,f){Xt(c,"link",s)}}),a=async(c,f)=>{let h=f?`[View Documentation](${f.scope}:${f.member}${f.part?"::"+f.part:""})`:"";return String(await o.process(`${c??""}
|
|
116
|
+
`;await yn.writeFile("changelog.txt",`---------------------------------------------------------------------------------------------------${o}Version: ${n}${o}Date: ????${o} Changes:${o}`+i)}}),t.package?.scripts?.version){let i=await bn("version",t);i!==0&&process.exit(i)}return t}ge.command("run <script> [args...]").description("Run a script from info.json#/package/scripts").action(async(t,e)=>{process.exit(await bn(t,await wr(),void 0,e))});ge.command("datestamp").description("Datestamp the current changelog section").action(async()=>{let t=await wr();await vf(t)});import*as QF from"fs/promises";ge.command("version").description("Increment the mod version").action(async()=>{let t=await QF.readFile("info.json","utf8"),e=JSON.parse(t);await Tf(e,t)});import{createWriteStream as eV}from"fs";ge.command("package").description("Build a zip package").option("--outdir <outdir>","","").action(async t=>{let e=await wr(),n=zt.resolvePath(Ze.file(process.cwd()),t.outdir,`${e.name}_${e.version}.zip`),r=eV(n.fsPath),i=await Sf(e);i.pipe(r),await i.finalize(),console.log(`Built ${e.name}_${e.version}.zip ${i.pointer()} bytes`)});import tV from"path";import*as ZF from"fs/promises";ge.command("upload <zipname> [name]").description("Upload a zip package to the mod portal").action(async(t,e)=>{if(!e){let r=tV.basename(t,".zip").match(/^(.*?)(_(\d+\.){2}\d+)?$/);r&&(e=r[1])}if(!e){console.log("Unable to determine `name`");return}await Ef(e,await ZF.readFile(t))});ge.command("details").description("Update mod details").option("--readme <readme.md>").option("--faq <faq.md>").action(async t=>{let e=await wr();return kf(e,t)});import*as eR from"os";import*as Ns from"fs/promises";import*as tR from"crypto";import iV from"path";import{exec as Af}from"child_process";import*as JF from"os";import*as mi from"fs/promises";import nV from"path";var Uy={async readFile(t){return mi.readFile(t.fsPath)},async writeFile(t,e){return mi.writeFile(t.fsPath,e)},async stat(t){let e=await mi.stat(t.fsPath);return{size:e.size,type:(e.isFile()?1:0)|(e.isDirectory()?2:0)|(e.isSymbolicLink()?64:0),ctime:e.ctime.valueOf(),mtime:e.mtime.valueOf()}}};async function rV(t,e){let n=process.env.FMTK_CONFIG??nV.join(JF.homedir(),".fmtk","config.json");try{let r=JSON.parse(await mi.readFile(n,"utf8"));if(typeof r!="object"||Array.isArray(r))return;let i={};for(let s in r)s.startsWith(`${t}.`)&&(i[s.substring(t.length+1)]=r[s]);return e||console.log(`Got config section ${t} from ${n}`),i}catch{}}async function XF(t,e,n){return Object.assign({},...await Promise.all([e,rV(t,n)]))}ge.command("publish").description("Package and publish a mod to the mod portal").action(async()=>{let t=await Ns.readFile("info.json","utf8"),e=JSON.parse(t);console.log(`Publishing: ${process.cwd()} ${e.version}`);let n=await XF("package",{preparingCommitMessage:"preparing release of version $VERSION",movedToCommitMessage:"moved to version $VERSION",autoCommitAuthor:"compilatron <compilatron@justarandomgeek.com>",tagName:"$VERSION",tagMessage:void 0}),r=await new Promise(u=>{Af("git status --porcelain",(c,f,h)=>{c&&c.code!==0&&u(void 0),f&&u("HasChanges"),u("OK")})}),i;if(r){if(r==="HasChanges"){console.log("Cannot Publish with uncommitted changes");return}i=await new Promise((c,f)=>{Af("git branch --show-current",(h,p)=>{h&&h.code!==0&&f(h),c(p.trim())})});let u=e.package?.git_publish_branch;switch(u){case null:break;case void 0:u=await new Promise((c,f)=>{Af("git config init.defaultBranch",(h,p)=>{h&&h.code!==0&&f(h),c(p.trim())})});default:u!==i&&(console.log(`Cannot Publish on branch other than '${u}', currently on '${i}'`),process.exit(1));break}}else console.log("No git repo found, skipping git subtasks...");if(e.package?.scripts?.prepublish){let u=await bn("prepublish",e);u!==0&&process.exit(u)}let s=await vf(e),o;if(r&&(s&&await xr("add changelog.txt"),await xr(`commit --author "${n.autoCommitAuthor}" --allow-empty -F -`,n.preparingCommitMessage.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name)),!e.package?.no_git_tag)){o=n.tagName.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name);let u=n.tagMessage?.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name);await xr(`tag -a ${o} -F -`,u??"")}let a=await new Promise((u,c)=>{Sf(e).then(f=>{let h=[];f.on("data",p=>h.push(Buffer.from(p))),f.on("error",p=>c(p)),f.on("end",()=>u(Buffer.concat(h))),f.finalize()})});if(e.package?.scripts?.publish){let u=await bn("publish",e);u!==0&&process.exit(u)}if(e.package?.no_portal_upload||(await Ef(e.name,a),e.package?.sync_portal_details&&await kf(e)),e.package?.scripts?.postpublish){let u=iV.join(eR.tmpdir(),`${tR.randomBytes(16).toString("base64url")}.zip`);await Ns.writeFile(u,a);let c=await bn("postpublish",e,{FACTORIO_MODPACKAGE:u});await Ns.unlink(u),c!==0&&process.exit(c)}let l=await Tf(e,t);if(r&&(await xr("add info.json"),s&&await xr("add changelog.txt"),await xr(`commit --author "${n.autoCommitAuthor}" -F -`,n.movedToCommitMessage.replace(/\$VERSION/g,l.version).replace(/\$MODNAME/g,l.name)),!e.package?.no_git_push)){let u=await new Promise(c=>{Af(`git config branch.${i}.remote`,(f,h)=>{f&&f.code!==0&&c(void 0),c(h.trim())})});u?await xr(`push ${u} ${i} ${o??""}`):console.log(`no remote set as upstream on ${i}`)}});import*as Ba from"fs/promises";import iR from"path";import{createWriteStream as sV}from"fs";import nR from"path";var Cf=class{docs;concepts;simple_structs;prototypes;type_prefix="data.";constructor(e){if(this.docs=JSON.parse(e),this.docs.application!=="factorio")throw new Error(`Unknown application: ${this.docs.application}`);if(this.docs.api_version!==6)throw new Error(`Unsupported Prototype Docs JSON Version ${this.docs.api_version}`);if(this.docs.stage!=="prototype")throw new Error(`Wrong stage: ${this.docs.stage}`);this.concepts=new Map(this.docs.types.map(n=>[n.name,n])),this.simple_structs=new Set;for(let[n,r]of this.concepts)typeof r.type=="object"&&r.type.complex_type==="struct"&&this.simple_structs.add(n);this.prototypes=new Map(this.docs.prototypes.map(n=>[n.name,n]))}get api_version(){return this.docs.api_version}get stage(){return this.docs.stage}get application(){return this.docs.application}get application_version(){return this.docs.application_version}resolve_link(e,n){if(n=n?`#${n}`:"",["prototypes","types"].includes(e))return`/${e}.html${n}`;if(["libraries","storage","migrations","data-lifecycle","prototype-tree","noise-expressions","instrument","item-weight"].includes(e))return`/auxiliary/${e}.html${n}`;if(this.concepts.has(e))return`/types/${e}.html${n}`;if(this.prototypes.has(e))return`/prototypes/${e}.html${n}`;console.warn(`Invalid Link: prototype:${e}${n}`)}async generate_LuaLS_docs(e){return[...await this.generate_LuaLS_concepts(e),...await this.generate_LuaLS_prototypes(e),this.generate_LuaLS_data(e)]}async generate_LuaLS_concepts(e){let n=[];for(let[r,i]of this.concepts){let s=new za(`prototype-api/concepts/${i.name}`,this.application_version);if(i.type==="builtin")continue;let o=this.simple_structs.has(i.name),a=o?"":".struct";if(i.properties){let l=new $s(this.type_prefix+i.name+a);l.exact=!0,l.description=await e(i.description,{scope:"prototype",member:i.name}),i.parent&&(l.parents=[new qe(this.type_prefix+i.parent+a)]);for(let u of i.properties)l.add(new Nn(u.name,this.lua_proto_type(u.type),await e(u.description,{scope:"prototype",member:i.name,part:u.name}),u.optional));s.add(l)}if(!o){let l=i.type;if(i.name==="AnyPrototype"&&typeof l=="object"&&l.complex_type==="union"){let u=["MapGenPresets","GuiStyle"];l={complex_type:"union",options:l.options.filter(f=>typeof f=="object"?!(f.complex_type==="type"&&typeof f.value=="string"&&u.includes(f.value)):!u.includes(f))}}s.add(new sb(this.type_prefix+i.name,this.lua_proto_type(l,i),i.description))}n.push(s)}return n}generate_LuaLS_data(e){let n=new za("prototype-api/data",this.application_version),r=new $s("data");r.add(new Nn("raw",new qe("data.raw"))),r.add(new Nn("is_demo",new qe("boolean")));let i=new ob("extend",[new Er("otherdata",new Di(new qe("data.AnyPrototype")))]);i.add(new Wa(void 0,[new Er("self",new qe("data")),new Er("otherdata",new Di(new qe("data.AnyPrototype")))])),i.add(new Wa(void 0,[new Er("otherdata",new Di(new qe("data.AnyModSettingPrototype")))])),i.add(new Wa(void 0,[new Er("self",new qe("data")),new Er("otherdata",new Di(new qe("data.AnyModSettingPrototype")))])),r.add(i),r.global_name="data",n.add(r);let s=new $s("data.raw");s.exact=!0,n.add(s);for(let[o,a]of this.prototypes)a.typename&&s.add(new Nn(new qf(a.typename),new Mf(new qe("string"),new qe(this.type_prefix+a.name))));return n}async generate_LuaLS_prototypes(e){let n=[];for(let[r,i]of this.prototypes){let s=new za(`prototype-api/prototypes/${i.name}`,this.application_version),o=new $s(this.type_prefix+i.name);o.exact=!0,o.description=await e(i.description,{scope:"prototype",member:i.name}),i.parent&&(o.parents=[new qe(this.type_prefix+i.parent)]);for(let a of i.properties)o.add(new Nn(a.name,this.lua_proto_type(a.type),await e(a.description,{scope:"prototype",member:i.name,part:a.name}),a.optional)),a.alt_name&&o.add(new Nn(a.alt_name,this.lua_proto_type(a.type),await e(a.description,{scope:"prototype",member:i.name,part:a.alt_name}),a.optional));if(i.custom_properties){let a=i.custom_properties;o.add(new Nn(this.lua_proto_type(a.key_type),this.lua_proto_type(a.value_type),await e(a.description,{scope:"prototype",member:i.name,part:"custom_properties"})))}s.add(o),n.push(s)}return n}lua_proto_type(e,n){switch(typeof e){case"string":switch(e){case"bool":return new qe("boolean");case"table":case"number":case"nil":case"boolean":case"string":case"float":case"double":case"int8":case"uint8":case"int16":case"uint16":case"int32":case"uint32":case"int64":case"uint64":return new qe(e)}return new qe(this.type_prefix+e);case"object":switch(e.complex_type){case"struct":if(!n)throw new Error("struct without parent");return this.simple_structs.has(n.name)?new qe(this.type_prefix+n.name):new qe(this.type_prefix+n.name+".struct");case"array":return new Di(this.lua_proto_type(e.value,n));case"tuple":return new rb(e.values.map(r=>this.lua_proto_type(r,n)));case"dictionary":return new Mf(this.lua_proto_type(e.key,n),this.lua_proto_type(e.value,n));case"union":return new ib(e.options.map(r=>this.lua_proto_type(r,n)));case"literal":return new qf(e.value);case"type":return this.lua_proto_type(e.value,n);default:throw new Error("Invalid Type")}default:throw new Error("Invalid Type")}}};async function rR(t,e,n){let r=new $a(t),i=new Cf(e),s=c=>{let f=c.url.match(/^(runtime|prototype):(.+?)(?:::(.+))?$/);if(f)switch(f[1]){case"runtime":let h=r.resolve_link(f[2],f[3]);h&&(c.url="https://lua-api.factorio.com/latest"+h);break;case"prototype":let p=i.resolve_link(f[2],f[3]);p&&(c.url="https://lua-api.factorio.com/latest"+p);break}},o=Ol().use(function(){return function(c,f){Xt(c,"link",s)}}),a=async(c,f)=>{let h=f?`[View Documentation](${f.scope}:${f.member}${f.part?"::"+f.part:""})`:"";return String(await o.process(`${c??""}
|
|
117
117
|
|
|
118
|
-
${h}`.trim())).trim()},l=JF.posix.join("factorio","library");await Promise.all([...await r.generate_LuaLS_docs(a),...await i.generate_LuaLS_docs(a)].map(async c=>{let f=await c;await n(JF.posix.join(l,f.name+".lua"),h=>f.write(h))})),await Promise.all(lb().map(async c=>{await n(c.name,f=>{f.write(c.content)})}));let u=ub(r.application_version);await n(u.name,c=>{c.write(u.content)})}async function tR(t){let e=await Ua(t);if(!e.ok)throw new Error(`Error fetching ${t} : ${e.statusText}`);return e.text()}ge.command("luals-addon [outdir]").alias("sumneko-3rd").description("Generate a library bundle for LuaLS (sumneko.lua) LSP").option("-d, --docs <docsjson>","Runtime docs").option("-p, --protos <protosjson>","Prototype docs").option("-o, --online [version]","Use online docs").action(async(t,e)=>{let n,r;if(e.docs&&e.protos)n=(await Ba.readFile(e.docs,"utf8")).toString(),r=(await Ba.readFile(e.protos,"utf8")).toString();else{if(e.docs||e.protos)throw new Error("Using local json files must specify both files");{let i=e.online??"latest";n=await tR(`https://lua-api.factorio.com/${i}/runtime-api.json`),r=await tR(`https://lua-api.factorio.com/${i}/prototype-api.json`)}}await XF(n,r,async(i,s)=>{let o=eR.join(t??process.cwd(),i);await Ba.mkdir(eR.dirname(o),{recursive:!0});let a=eV(o);await s(a),a.close()})});var jt=Qe(Mi(),1);import*as Gy from"fs/promises";var dt=Qe(Mi(),1);import tV from"assert";function mi(t,e,n){return Ne("text",t,e,n)}function nV(t,e,n){return tV(e.sticky),e.lastIndex=n,e.exec(t)}function Ff(t,e,n){let r=t.value,i=t.range.start.line,s=t.range.start.character,o=[],a=0,l=-1;do l=r.indexOf(e,l+1),l>=0&&(n?n.find(u=>{let c=nV(r,u.pattern,l);if(!c)return!1;let f=u.parse(c,i,s);return f?(a<l-1&&o.push(mi(r.substring(a,l),i,s+a)),o.push(f),a=c.indices[0][1],l=a,!0):!1}):(o.push(mi(r.substring(a,l),i,s+a)),l+=e.length,a=l));while(l>=0);return a<=r.length-1&&o.push(mi(r.substring(a),i,s+a)),o}function rV(t){return Ff(t,"|").map(e=>{let n=e.value.indexOf("="),r=mi(e.value.substring(0,n),e.range.start.line,e.range.start.character),i=mi(e.value.substring(n+1),e.range.start.line,e.range.start.character+n+1);return{type:"plural_option",range:e.range,selectionRange:e.selectionRange,children:[...Ff(r,",").map(s=>{if(s.value==="rest")return{type:"plural_match",value:"rest",range:s.range,selectionRange:s.selectionRange};let o=s.value.match(/^(ends in )?(\d+)(?:-(\d+))?$/d);return o?{type:"plural_match",value:o[3]?[parseInt(o[2]),parseInt(o[3])]:parseInt(o[2]),ends_in:o[1]?!0:void 0,range:s.range,selectionRange:s.selectionRange}:{type:"error",value:s.value,range:s.range,selectionRange:s.selectionRange}}),...Ff(i,"__",nR)]}})}var nR=[{pattern:/__([0-9]+)__/dy,parse(t,e,n){return{type:"parameter",value:parseInt(t[1]),range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__plural_for_parameter__([0-9]+)__\{(.*?)\}__/dy,parse(t,e,n){return{type:"plural",value:parseInt(t[1]),children:rV(mi(t[2],e,n+t.indices[2][0])),range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(CONTROL_(?:MOVE|(?:LEFT|RIGHT)_CLICK|KEY_(?:SHIFT|CTRL)|STYLE_(?:BEGIN|END)))__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(REMARK_COLOR_(?:BEGIN|END))__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(CONTROL(?:_MODIFIER)?|ENTITY|ITEM|TILE|FLUID|PLANET)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[Ne("macro_argument",t[2],e,n+t.indices[2][0])],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(ALT_CONTROL)__(.+?)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[Ne("macro_argument",t[2],e,n+t.indices[2][0]),Ne("macro_argument",t[3],e,n+t.indices[3][0])],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(ALT_CONTROL_(?:LEFT|RIGHT)_CLICK)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[Ne("macro_argument",t[2],e,n+t.indices[1][0])],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}}];function Wy(t){let e=t.open_comments;t.open_comments=[];let n=e[0],r=e[e.length-1];return{type:"comment_group",range:{start:n.range.start,end:r.range.end},selectionRange:n.selectionRange,children:e}}var iV=[{pattern:/^[\r\t ]*([#;].*)?$/d,parse(t,e,n){t[1]?n.open_comments.push(Ne("comment",t[1],e,t.indices[1][0])):n.open_comments.length>0&&(n.open_section??n.root).children.push(Wy(n))}},{pattern:/^[\r\t ]*\[(.*?)\][\r\t ]*$/d,parse(t,e,n){n.open_section=Ne("section",t[1],e,t.indices[1][0],{children:[]}),n.open_comments.length>0&&n.open_section.children.push(Wy(n)),n.open_section.range.start.character-=1,n.open_section.range.end.character+=1,n.root.children.push(n.open_section)}},{pattern:/^[\r\t ]*(.*?)=(.*)$/d,parse(t,e,n){let r=Ne("record",t[1],e,t.indices[1][0],{children:[...Ff(mi(t[2],e,t.indices[2][0]),"__",nR)]});n.open_comments.length>0&&r.children.unshift(Wy(n)),r.range.end.character=t[0].length,(n.open_section??n.root).children.push(r)}},{pattern:/^.*$/d,parse(t,e,n){n.root.children.push({type:"error",value:t[0],range:ve(e,0,t[0].length),selectionRange:ve(e,0,0)})}}];function rR(t){let e={root:{type:"root",children:[],range:{start:{line:0,character:0},end:{line:t.lineCount,character:0}},selectionRange:ve(0,0,0)},open_comments:[]};for(let n=0;n<t.lineCount;n++){let r={start:{line:n,character:0},end:{line:n,character:1/0}},i=t.getText(r).replace(/((\r\n)|\r|\n)$/,"");for(let s of iV){let o=s.pattern.exec(i);if(o){s.parse(o,n,e);break}}}return e.root}var $y=new Map([["default",{red:1,green:.63,blue:.259,alpha:1}],["red",{red:1,green:.166,blue:.141,alpha:1}],["green",{red:.173,green:.824,blue:.25,alpha:1}],["blue",{red:.343,green:.683,blue:1,alpha:1}],["orange",{red:1,green:.63,blue:.259,alpha:1}],["yellow",{red:1,green:.828,blue:.231,alpha:1}],["pink",{red:1,green:.52,blue:.633,alpha:1}],["purple",{red:.821,green:.44,blue:.998,alpha:1}],["white",{red:.9,green:.9,blue:.9,alpha:1}],["black",{red:.5,green:.5,blue:.5,alpha:1}],["gray",{red:.7,green:.7,blue:.7,alpha:1}],["brown",{red:.757,green:.522,blue:.371,alpha:1}],["cyan",{red:.335,green:.918,blue:.866,alpha:1}],["acid",{red:.708,green:.996,blue:.134,alpha:1}]]);function sV(t){if($y.has(t))return $y.get(t);if(t.startsWith("#")){let n=t.match(/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/);if(n)return{red:parseInt(n[1],16)/255,green:parseInt(n[2],16)/255,blue:parseInt(n[3],16)/255,alpha:n[4]?parseInt(n[4],16)/255:1}}let e=t.match(/\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)(?:\s*,?\s*(\d+(?:\.\d+)?))?\s*/);if(e){let n=parseFloat(e[1]),r=parseFloat(e[2]),i=parseFloat(e[3]),s=e[4]?parseFloat(e[4]):void 0;return(n>1||r>1||i>1||s&&s>1)&&(n=n/255,r=r/255,i=i/255,s&&(s=s/255)),s||(s=1),{red:n,green:r,blue:i,alpha:s}}}function gi(t){let e=Math.floor(t).toString(16);return e.length<2&&(e="0"+e),e}function yi(t,e){return Math.round(t*Math.pow(10,e))/Math.pow(10,e)}function oV(t){let e=[];for(let[n,r]of $y)if(Math.abs(r.red-t.red)<.004&&Math.abs(r.green-t.green)<.004&&Math.abs(r.blue-t.blue)<.004&&Math.abs(r.alpha-t.alpha)<.004){e.push(n);break}return t.alpha>.996?(e.push(`#${gi(t.red*255)}${gi(t.green*255)}${gi(t.blue*255)}`),e.push(`${Math.floor(t.red*255)}, ${Math.floor(t.green*255)}, ${Math.floor(t.blue*255)}`),e.push(`${yi(t.red,3)}, ${yi(t.green,3)}, ${yi(t.blue,3)}`)):(e.push(`#${gi(t.red*255)}${gi(t.green*255)}${gi(t.blue*255)}${gi(t.alpha*255)}`),e.push(`${Math.floor(t.red*255)}, ${Math.floor(t.green*255)}, ${Math.floor(t.blue*255)}, ${Math.floor(t.alpha*255)}`),e.push(`${yi(t.red,3)}, ${yi(t.green,3)}, ${yi(t.blue,3)}, ${yi(t.alpha,3)}`)),e}function aV(t,e){let n=[];return Wn(t,"record",(r,i)=>{let s=i.length>0?i[i.length-1]:void 0,o=s?.type==="section"?s.value:void 0;n.push({name:o?`${o}.${r.value}`:r.value,link:{targetUri:e,targetRange:r.range,targetSelectionRange:r.selectionRange}})}),n}function iR(t){return t!==void 0}function sR(t){return{name:t.value?t.value:"<error>",detail:"",kind:dt.SymbolKind.String,range:t.range,selectionRange:t.selectionRange,children:[]}}function lV(t){return{name:t.value?t.value:"<error>",detail:"",kind:dt.SymbolKind.Namespace,range:t.range,selectionRange:t.selectionRange,children:t.children.map(e=>{switch(e.type){case"record":return sR(e);default:return}}).filter(iR)}}function uV(t){return t.children.map(e=>{switch(e.type){case"section":return lV(e);case"record":return sR(e);default:return}}).filter(iR)}var Rf=class{hasDiagnosticRelatedInformationCapability=!1;validateTextDocument(e){let n=e.getText().split(/\r?\n/),r=[],i=this.onDocumentSymbol(e),s,o=new Map;o.set(void 0,new Set);for(let a=0;a<n.length;a++){let l=n[a];if(!l.match(/^[ \r\t]*[#;]/)){if(l.match(/^[ \r\t]*\[/)){let u=l.match(/^[ \r\t]*\[([^\[]+)\][ \r\t]*$/d);if(u)if(s=u[1],o.has(s)){let c=i.filter(p=>p.name===s),f=c.reduce((p,b)=>p.range.start.line<b.range.start.line?p:b),h=c.find(p=>p.range.start.line===a);r.push({message:"Duplicate Section",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:f.range},message:"First defined here"}]:void 0,code:"section.merge",data:{firstsym:f,newsym:h}})}else if(o.get(void 0).has(s)){let f=i.filter(h=>h.name===s).reduce((h,p)=>h.range.start.line<p.range.start.line?h:p);r.push({message:"Section Name conflicts with Key in Root",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:f.range},message:"First defined here"}]:void 0,code:"section.rootconflict"}),o.set(s,new Set)}else o.set(s,new Set);else r.push({message:"Invalid Section Header",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,range:{start:{line:a,character:0},end:{line:a,character:l.length}},code:"section.invalid"})}else if(l.trim().length>0){let u=l.match(/^[ \r\t]*([^=]*)=(.*)$/d);if(u&&u[1]){let c=u[1];if(o.get(s).has(c)){let h=i.filter(p=>p.name===s&&p.kind===dt.SymbolKind.Namespace).flatMap(p=>p.children?.filter(b=>b.name===c)??[]).concat(i.filter(p=>p.name===c&&p.kind===dt.SymbolKind.String));if(h.length>0){let p=h.reduce((b,y)=>b.range.start.line<y.range.start.line?b:y);r.push({message:"Duplicate Key",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,code:"key.duplicate",range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:p.range},message:"First defined here"}]:void 0})}}else o.get(s).add(c);let f=c.match(/[\t ]+$/d);f&&r.push({message:"Key ends with whitespace",source:"factorio-locale",severity:dt.DiagnosticSeverity.Warning,code:"key.whitespace-end",range:{start:{line:a,character:u.indices[1][0]+f.index},end:{line:a,character:u.indices[1][1]}}})}else r.push({message:"Invalid Key",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,code:"key.invalid",range:{start:{line:a,character:0},end:{line:a,character:l.length}}})}}}return r}definitions=new Map;documentTrees=new Map;loadDocument(e){let n=rR(e);this.documentTrees.set(e.uri,n),this.definitions.set(e.uri,aV(n,e.uri))}clearDocument(e){this.definitions.delete(e),this.documentTrees.delete(e)}clearFolder(e){for(let n of this.definitions.keys())n.startsWith(e)&&this.definitions.delete(n);for(let n of this.documentTrees.keys())n.startsWith(e)&&this.documentTrees.delete(n)}onDocumentSymbol(e){this.documentTrees.has(e.uri)||this.loadDocument(e);let n=this.documentTrees.get(e.uri);return n?uV(n):[]}findDefinitions(e){let n=[];for(let r of this.definitions.values())n.push(...r.filter(i=>i.name===e).map(i=>i.link));return n}getCompletions(e){let n=[];for(let r of this.definitions.values())e?n.push(r.map(i=>i.name).filter(i=>i.startsWith(e))):n.push(r.map(i=>i.name).map(i=>{let s=i.indexOf(".");return s===-1?i:i.substring(0,s+1)}));return[...new Set(n.flat())]}onCodeAction(e,n,r){return e.languageId==="factorio-locale"?r.diagnostics.filter(i=>!!i.code).map(i=>{switch(i.code){case"section.merge":{let s=i,o=s.data.firstsym.range.end;return{title:"Merge Sections",kind:dt.CodeActionKind.QuickFix+".section.merge",diagnostics:[i],edit:{changes:{[e.uri]:[{range:s.data.newsym.range,newText:""},{range:{start:o,end:o},newText:e.getText({start:{line:s.data.newsym.selectionRange.end.line,character:s.data.newsym.selectionRange.end.character+1},end:s.data.newsym.range.end})}]}}}}default:return}}).filter(i=>!!i):[]}onDocumentColor(e){let n=[];for(let r=0;r<e.lineCount;r++){let i={start:{line:r,character:0},end:{line:r,character:1/0}},s=e.getText(i).replace(/(\r\n)|\r|\n$/,"");i.end.character=s.length;let o=/\[color=([^\]]+)\]/g,a=o.exec(s);for(;a;){{let l=sV(a[1]);l&&n.push({color:l,range:{start:{line:r,character:a.index+7},end:{line:r,character:a.index+7+a[1].length}}})}a=o.exec(s)}}return n}onColorPresentation(e,n){return oV(e).map(r=>({label:r,textEdit:{range:n,newText:r}}))}};var Hy=Qe(Mi(),1),Of=class{constructor(e){this.Locale=e}onDefinition(e,n){let r=n.getText({start:{line:e.position.line,character:0},end:{line:e.position.line,character:Number.MAX_VALUE}});for(let i of r.matchAll(/(['"])((?:[^\\](?<!\1)|\\['"0abfnrtv\\]|\\\d{1,3}|\\x[0-9a-fA-F]{2})*)\1/g))if(i.index&&i.index<=e.position.character&&i.index+i[0].length>=e.position.character){let s=i[2],o={start:{line:e.position.line,character:i.index},end:{line:e.position.line,character:i.index+i[0].length}};return this.Locale.findDefinitions(s).map(l=>Object.assign({originSelectionRange:o},l))}}onCompletion(e,n){let i=n.getText({start:{line:e.position.line,character:0},end:{line:e.position.line,character:e.position.character+1}}).match(/(['"])((?:[^\\](?<!\1)|\\['"0abfnrtv\\]|\\\d{1,3}|\\x[0-9a-fA-F]{2})*)\1$/);if(i){let s=i[2].lastIndexOf("."),o=s!==-1?i[2].substring(0,s+1):"";return this.Locale.getCompletions(o).map(a=>({label:a.endsWith(".")?a.substring(0,a.length-1):a,kind:a.endsWith(".")?Hy.CompletionItemKind.Enum:Hy.CompletionItemKind.EnumMember,commitCharacters:a.endsWith(".")?["."]:[],textEdit:{newText:a.endsWith(".")?a.substring(0,a.length-1):a,range:{start:{line:e.position.line,character:i.index+1},end:{line:e.position.line,character:e.position.character}}}}))}return[]}};async function oR(){let t=new cu,e=new Rf,n=new Of(e),r=(0,jt.createConnection)(jt.ProposedFeatures.all),i=new jt.TextDocuments(qn);async function s(u){let c=i.get(u);if(c)return c;let f=Ze.parse(u);if(f.scheme==="file"){if(f.path.endsWith(".cfg"))return c=qn.create(u,"factorio-locale",1,await Gy.readFile(f.fsPath,"utf8")),c;if(f.path.endsWith("changelog.txt"))return c=qn.create(u,"factorio-changelog",1,await Gy.readFile(f.fsPath,"utf8")),c}}async function o(u){let c=await s(u);if(c)switch(c.languageId){case"factorio-locale":e.loadDocument(c);break;case"factorio-changelog":t.loadDocument(c);break}}async function a(u){let c=Ze.parse(u);if(c.scheme==="file"){let f=pi(c.fsPath,{pattern:["**/locale/*/*.cfg","**/changelog.txt"]});f.on("match",h=>{o(Ze.file(h.absolute).toString())}),f.on("error",h=>{throw h}),await new Promise(h=>{f.on("end",()=>{h()})})}}let l=!1;return r.onInitialize(async u=>{let c=u.capabilities;l=!!(c.workspace&&c.workspace.workspaceFolders),e.hasDiagnosticRelatedInformationCapability=!!(c.textDocument&&c.textDocument.publishDiagnostics&&c.textDocument.publishDiagnostics.relatedInformation);let f={capabilities:{textDocumentSync:jt.TextDocumentSyncKind.Incremental,documentSymbolProvider:!0,codeActionProvider:!0,colorProvider:!0,definitionProvider:!0,completionProvider:{triggerCharacters:['"',"'","."],allCommitCharacters:["."]}}};return l&&(f.capabilities.workspace={workspaceFolders:{supported:!0,changeNotifications:!0}},u.workspaceFolders&&await Promise.all(u.workspaceFolders.map(h=>a(h.uri)))),f}),r.onInitialized(()=>{l&&r.workspace.onDidChangeWorkspaceFolders(async u=>{for(let c of u.removed)e.clearFolder(c.uri),t.clearFolder(c.uri);for(let c of u.added)await a(c.uri)})}),i.onDidClose(u=>{switch(u.document.languageId){case"factorio-locale":r.sendDiagnostics({uri:u.document.uri,diagnostics:[]});break;case"factorio-changelog":r.sendDiagnostics({uri:u.document.uri,diagnostics:[]});break}}),i.onDidChangeContent(u=>{switch(u.document.languageId){case"factorio-locale":e.loadDocument(u.document),r.sendDiagnostics({uri:u.document.uri,diagnostics:e.validateTextDocument(u.document)});break;case"factorio-changelog":t.loadDocument(u.document),r.sendDiagnostics({uri:u.document.uri,diagnostics:t.diagnose(u.document.uri)});break}}),r.onDefinition(async u=>{let c=await s(u.textDocument.uri);return c&&c.languageId==="lua"?n.onDefinition(u,c):null}),r.onCompletion(async u=>{let c=await s(u.textDocument.uri);if(c&&c.languageId==="lua")return{isIncomplete:!0,items:n.onCompletion(u,c)}}),r.onDidChangeWatchedFiles(u=>{for(let c of u.changes)switch(c.type){case jt.FileChangeType.Deleted:e.clearDocument(c.uri),t.clearDocument(c.uri);break;case jt.FileChangeType.Changed:case jt.FileChangeType.Created:s(c.uri).then(f=>{if(f)switch(f.languageId){case"factorio-locale":e.loadDocument(f);break;case"factorio-changelog":t.loadDocument(f);break}});break;default:break}}),r.onDocumentSymbol(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onDocumentSymbol(c);case"factorio-changelog":return t.onDocumentSymbol(c)}return null}),r.onCodeAction(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onCodeAction(c,u.range,u.context);case"factorio-changelog":return t.onCodeAction(c,u.range,u.context)}return null}),r.onDocumentColor(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onDocumentColor(c)}return null}),r.onColorPresentation(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onColorPresentation(u.color,u.range)}return null}),i.listen(r),r.listen(),new Promise(u=>{r.onExit(u)})}ge.command("lsp").description("Run LSP Server for Locale and Changelog features").allowUnknownOption(!0).allowExcessArguments(!0).action(async()=>{await oR()});import*as aR from"os";import*as lR from"fs/promises";ge.command("debug <factorioPath>").description("Launch a DAP debug session").option("-d, --docs <docsPath>","path to runtime-api.json").option("-c, --config <configPath>","path to config.ini").option("-w, --workspace <workspacePath...>","path to workspace folders").action(async(t,e)=>{let n={name:"standalone",factorioPath:t,configPath:e.config,docsPath:e.docs},r=zt.joinPath(Ze.file(t),n.docsPath?n.docsPath:aR.platform()==="darwin"?"../../doc-html/runtime-api.json":"../../../doc-html/runtime-api.json"),i=await lR.readFile(r.fsPath,"utf8"),s=new cb(zy,n,new $a(i)),o=new fb(s,zy,{async findWorkspaceFiles(a){let l=[];for(let u of e.workspace??[process.cwd()]){let c=pi(u,{pattern:a});c.on("match",f=>{l.push(Ze.file(f.absolute))}),c.on("error",f=>{throw f}),await new Promise(f=>{c.on("end",()=>{f()})})}return l}});process.on("SIGTERM",()=>{o.shutdown()}),o.start(process.stdin,process.stdout)});import*as uR from"fs/promises";ge.command("scriptdat <file>").description("Dump script.dat").action(async t=>{let e=new hb(new Sr(await uR.readFile(t)));console.log(JSON.stringify({version:e.version.format(),data:e.data},void 0,2))});if(process.env.FMTK_TEST_ARGV)try{let t=JSON.parse(process.env.FMTK_TEST_ARGV);process.argv.push(...t),delete process.env.FMTK_TEST_ARGV}catch(t){console.log(`Error using extra args from FMTK_TEST_ARGV: ${t}`),process.exit(1)}await ge.description(`${Xy} ${eb}`).helpCommand("help").showHelpAfterError().showSuggestionAfterError().parseAsync(process.argv,{from:"node"}).catch(t=>{console.error(t),process.exit(1)}).then(()=>{process.send&&process.disconnect()});
|
|
118
|
+
${h}`.trim())).trim()},l=nR.posix.join("factorio","library");await Promise.all([...await r.generate_LuaLS_docs(a),...await i.generate_LuaLS_docs(a)].map(async c=>{let f=await c;await n(nR.posix.join(l,f.name+".lua"),h=>f.write(h))})),await Promise.all(ab().map(async c=>{await n(c.name,f=>{f.write(c.content)})}));let u=lb(r.application_version);await n(u.name,c=>{c.write(u.content)})}async function sR(t){let e=await Ua(t);if(!e.ok)throw new Error(`Error fetching ${t} : ${e.statusText}`);return e.text()}ge.command("luals-addon [outdir]").alias("sumneko-3rd").description("Generate a library bundle for LuaLS (sumneko.lua) LSP").option("-d, --docs <docsjson>","Runtime docs").option("-p, --protos <protosjson>","Prototype docs").option("-o, --online [version]","Use online docs").action(async(t,e)=>{let n,r;if(e.docs&&e.protos)n=(await Ba.readFile(e.docs,"utf8")).toString(),r=(await Ba.readFile(e.protos,"utf8")).toString();else{if(e.docs||e.protos)throw new Error("Using local json files must specify both files");{let i=e.online??"latest";n=await sR(`https://lua-api.factorio.com/${i}/runtime-api.json`),r=await sR(`https://lua-api.factorio.com/${i}/prototype-api.json`)}}await rR(n,r,async(i,s)=>{let o=iR.join(t??process.cwd(),i);await Ba.mkdir(iR.dirname(o),{recursive:!0});let a=sV(o);await s(a),a.close()})});var jt=Qe(Ni(),1);import*as Hy from"fs/promises";var dt=Qe(Ni(),1);import oV from"assert";function gi(t,e,n){return Ne("text",t,e,n)}function aV(t,e,n){return oV(e.sticky),e.lastIndex=n,e.exec(t)}function Ff(t,e,n){let r=t.value,i=t.range.start.line,s=t.range.start.character,o=[],a=0,l=-1;do l=r.indexOf(e,l+1),l>=0&&(n?n.find(u=>{let c=aV(r,u.pattern,l);if(!c)return!1;let f=u.parse(c,i,s);return f?(a<l-1&&o.push(gi(r.substring(a,l),i,s+a)),o.push(f),a=c.indices[0][1],l=a,!0):!1}):(o.push(gi(r.substring(a,l),i,s+a)),l+=e.length,a=l));while(l>=0);return a<=r.length-1&&o.push(gi(r.substring(a),i,s+a)),o}function lV(t){return Ff(t,"|").map(e=>{let n=e.value.indexOf("="),r=gi(e.value.substring(0,n),e.range.start.line,e.range.start.character),i=gi(e.value.substring(n+1),e.range.start.line,e.range.start.character+n+1);return{type:"plural_option",range:e.range,selectionRange:e.selectionRange,children:[...Ff(r,",").map(s=>{if(s.value==="rest")return{type:"plural_match",value:"rest",range:s.range,selectionRange:s.selectionRange};let o=s.value.match(/^(ends in )?(\d+)(?:-(\d+))?$/d);return o?{type:"plural_match",value:o[3]?[parseInt(o[2]),parseInt(o[3])]:parseInt(o[2]),ends_in:o[1]?!0:void 0,range:s.range,selectionRange:s.selectionRange}:{type:"error",value:s.value,range:s.range,selectionRange:s.selectionRange}}),...Ff(i,"__",oR)]}})}var oR=[{pattern:/__([0-9]+)__/dy,parse(t,e,n){return{type:"parameter",value:parseInt(t[1]),range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__plural_for_parameter__([0-9]+)__\{(.*?)\}__/dy,parse(t,e,n){return{type:"plural",value:parseInt(t[1]),children:lV(gi(t[2],e,n+t.indices[2][0])),range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(CONTROL_(?:MOVE|(?:LEFT|RIGHT)_CLICK|KEY_(?:SHIFT|CTRL)|STYLE_(?:BEGIN|END)))__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(REMARK_COLOR_(?:BEGIN|END))__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(CONTROL(?:_MODIFIER)?|ENTITY|ITEM|TILE|FLUID|PLANET)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[Ne("macro_argument",t[2],e,n+t.indices[2][0])],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(ALT_CONTROL)__(.+?)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[Ne("macro_argument",t[2],e,n+t.indices[2][0]),Ne("macro_argument",t[3],e,n+t.indices[3][0])],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(ALT_CONTROL_(?:LEFT|RIGHT)_CLICK)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[Ne("macro_argument",t[2],e,n+t.indices[1][0])],range:ve(e,n+t.index,t[0].length),selectionRange:ve(e,n+t.indices[1][0],t[1].length)}}}];function zy(t){let e=t.open_comments;t.open_comments=[];let n=e[0],r=e[e.length-1];return{type:"comment_group",range:{start:n.range.start,end:r.range.end},selectionRange:n.selectionRange,children:e}}var uV=[{pattern:/^[\r\t ]*([#;].*)?$/d,parse(t,e,n){t[1]?n.open_comments.push(Ne("comment",t[1],e,t.indices[1][0])):n.open_comments.length>0&&(n.open_section??n.root).children.push(zy(n))}},{pattern:/^[\r\t ]*\[(.*?)\][\r\t ]*$/d,parse(t,e,n){n.open_section=Ne("section",t[1],e,t.indices[1][0],{children:[]}),n.open_comments.length>0&&n.open_section.children.push(zy(n)),n.open_section.range.start.character-=1,n.open_section.range.end.character+=1,n.root.children.push(n.open_section)}},{pattern:/^[\r\t ]*(.*?)=(.*)$/d,parse(t,e,n){let r=Ne("record",t[1],e,t.indices[1][0],{children:[...Ff(gi(t[2],e,t.indices[2][0]),"__",oR)]});n.open_comments.length>0&&r.children.unshift(zy(n)),r.range.end.character=t[0].length,(n.open_section??n.root).children.push(r)}},{pattern:/^.*$/d,parse(t,e,n){n.root.children.push({type:"error",value:t[0],range:ve(e,0,t[0].length),selectionRange:ve(e,0,0)})}}];function aR(t){let e={root:{type:"root",children:[],range:{start:{line:0,character:0},end:{line:t.lineCount,character:0}},selectionRange:ve(0,0,0)},open_comments:[]};for(let n=0;n<t.lineCount;n++){let r={start:{line:n,character:0},end:{line:n,character:1/0}},i=t.getText(r).replace(/((\r\n)|\r|\n)$/,"");for(let s of uV){let o=s.pattern.exec(i);if(o){s.parse(o,n,e);break}}}return e.root}var Wy=new Map([["default",{red:1,green:.63,blue:.259,alpha:1}],["red",{red:1,green:.166,blue:.141,alpha:1}],["green",{red:.173,green:.824,blue:.25,alpha:1}],["blue",{red:.343,green:.683,blue:1,alpha:1}],["orange",{red:1,green:.63,blue:.259,alpha:1}],["yellow",{red:1,green:.828,blue:.231,alpha:1}],["pink",{red:1,green:.52,blue:.633,alpha:1}],["purple",{red:.821,green:.44,blue:.998,alpha:1}],["white",{red:.9,green:.9,blue:.9,alpha:1}],["black",{red:.5,green:.5,blue:.5,alpha:1}],["gray",{red:.7,green:.7,blue:.7,alpha:1}],["brown",{red:.757,green:.522,blue:.371,alpha:1}],["cyan",{red:.335,green:.918,blue:.866,alpha:1}],["acid",{red:.708,green:.996,blue:.134,alpha:1}]]);function cV(t){if(Wy.has(t))return Wy.get(t);if(t.startsWith("#")){let n=t.match(/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/);if(n)return{red:parseInt(n[1],16)/255,green:parseInt(n[2],16)/255,blue:parseInt(n[3],16)/255,alpha:n[4]?parseInt(n[4],16)/255:1}}let e=t.match(/\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)(?:\s*,?\s*(\d+(?:\.\d+)?))?\s*/);if(e){let n=parseFloat(e[1]),r=parseFloat(e[2]),i=parseFloat(e[3]),s=e[4]?parseFloat(e[4]):void 0;return(n>1||r>1||i>1||s&&s>1)&&(n=n/255,r=r/255,i=i/255,s&&(s=s/255)),s||(s=1),{red:n,green:r,blue:i,alpha:s}}}function yi(t){let e=Math.floor(t).toString(16);return e.length<2&&(e="0"+e),e}function bi(t,e){return Math.round(t*Math.pow(10,e))/Math.pow(10,e)}function fV(t){let e=[];for(let[n,r]of Wy)if(Math.abs(r.red-t.red)<.004&&Math.abs(r.green-t.green)<.004&&Math.abs(r.blue-t.blue)<.004&&Math.abs(r.alpha-t.alpha)<.004){e.push(n);break}return t.alpha>.996?(e.push(`#${yi(t.red*255)}${yi(t.green*255)}${yi(t.blue*255)}`),e.push(`${Math.floor(t.red*255)}, ${Math.floor(t.green*255)}, ${Math.floor(t.blue*255)}`),e.push(`${bi(t.red,3)}, ${bi(t.green,3)}, ${bi(t.blue,3)}`)):(e.push(`#${yi(t.red*255)}${yi(t.green*255)}${yi(t.blue*255)}${yi(t.alpha*255)}`),e.push(`${Math.floor(t.red*255)}, ${Math.floor(t.green*255)}, ${Math.floor(t.blue*255)}, ${Math.floor(t.alpha*255)}`),e.push(`${bi(t.red,3)}, ${bi(t.green,3)}, ${bi(t.blue,3)}, ${bi(t.alpha,3)}`)),e}function hV(t,e){let n=[];return Wn(t,"record",(r,i)=>{let s=i.length>0?i[i.length-1]:void 0,o=s?.type==="section"?s.value:void 0;n.push({name:o?`${o}.${r.value}`:r.value,link:{targetUri:e,targetRange:r.range,targetSelectionRange:r.selectionRange}})}),n}function lR(t){return t!==void 0}function uR(t){return{name:t.value?t.value:"<error>",detail:"",kind:dt.SymbolKind.String,range:t.range,selectionRange:t.selectionRange,children:[]}}function pV(t){return{name:t.value?t.value:"<error>",detail:"",kind:dt.SymbolKind.Namespace,range:t.range,selectionRange:t.selectionRange,children:t.children.map(e=>{switch(e.type){case"record":return uR(e);default:return}}).filter(lR)}}function dV(t){return t.children.map(e=>{switch(e.type){case"section":return pV(e);case"record":return uR(e);default:return}}).filter(lR)}var Rf=class{hasDiagnosticRelatedInformationCapability=!1;validateTextDocument(e){let n=e.getText().split(/\r?\n/),r=[],i=this.onDocumentSymbol(e),s,o=new Map;o.set(void 0,new Set);for(let a=0;a<n.length;a++){let l=n[a];if(!l.match(/^[ \r\t]*[#;]/)){if(l.match(/^[ \r\t]*\[/)){let u=l.match(/^[ \r\t]*\[([^\[]+)\][ \r\t]*$/d);if(u)if(s=u[1],o.has(s)){let c=i.filter(p=>p.name===s),f=c.reduce((p,b)=>p.range.start.line<b.range.start.line?p:b),h=c.find(p=>p.range.start.line===a);r.push({message:"Duplicate Section",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:f.range},message:"First defined here"}]:void 0,code:"section.merge",data:{firstsym:f,newsym:h}})}else if(o.get(void 0).has(s)){let f=i.filter(h=>h.name===s).reduce((h,p)=>h.range.start.line<p.range.start.line?h:p);r.push({message:"Section Name conflicts with Key in Root",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:f.range},message:"First defined here"}]:void 0,code:"section.rootconflict"}),o.set(s,new Set)}else o.set(s,new Set);else r.push({message:"Invalid Section Header",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,range:{start:{line:a,character:0},end:{line:a,character:l.length}},code:"section.invalid"})}else if(l.trim().length>0){let u=l.match(/^[ \r\t]*([^=]*)=(.*)$/d);if(u&&u[1]){let c=u[1];if(o.get(s).has(c)){let h=i.filter(p=>p.name===s&&p.kind===dt.SymbolKind.Namespace).flatMap(p=>p.children?.filter(b=>b.name===c)??[]).concat(i.filter(p=>p.name===c&&p.kind===dt.SymbolKind.String));if(h.length>0){let p=h.reduce((b,y)=>b.range.start.line<y.range.start.line?b:y);r.push({message:"Duplicate Key",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,code:"key.duplicate",range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:p.range},message:"First defined here"}]:void 0})}}else o.get(s).add(c);let f=c.match(/[\t ]+$/d);f&&r.push({message:"Key ends with whitespace",source:"factorio-locale",severity:dt.DiagnosticSeverity.Warning,code:"key.whitespace-end",range:{start:{line:a,character:u.indices[1][0]+f.index},end:{line:a,character:u.indices[1][1]}}})}else r.push({message:"Invalid Key",source:"factorio-locale",severity:dt.DiagnosticSeverity.Error,code:"key.invalid",range:{start:{line:a,character:0},end:{line:a,character:l.length}}})}}}return r}definitions=new Map;documentTrees=new Map;loadDocument(e){let n=aR(e);this.documentTrees.set(e.uri,n),this.definitions.set(e.uri,hV(n,e.uri))}clearDocument(e){this.definitions.delete(e),this.documentTrees.delete(e)}clearFolder(e){for(let n of this.definitions.keys())n.startsWith(e)&&this.definitions.delete(n);for(let n of this.documentTrees.keys())n.startsWith(e)&&this.documentTrees.delete(n)}onDocumentSymbol(e){this.documentTrees.has(e.uri)||this.loadDocument(e);let n=this.documentTrees.get(e.uri);return n?dV(n):[]}findDefinitions(e){let n=[];for(let r of this.definitions.values())n.push(...r.filter(i=>i.name===e).map(i=>i.link));return n}getCompletions(e){let n=[];for(let r of this.definitions.values())e?n.push(r.map(i=>i.name).filter(i=>i.startsWith(e))):n.push(r.map(i=>i.name).map(i=>{let s=i.indexOf(".");return s===-1?i:i.substring(0,s+1)}));return[...new Set(n.flat())]}onCodeAction(e,n,r){return e.languageId==="factorio-locale"?r.diagnostics.filter(i=>!!i.code).map(i=>{switch(i.code){case"section.merge":{let s=i,o=s.data.firstsym.range.end;return{title:"Merge Sections",kind:dt.CodeActionKind.QuickFix+".section.merge",diagnostics:[i],edit:{changes:{[e.uri]:[{range:s.data.newsym.range,newText:""},{range:{start:o,end:o},newText:e.getText({start:{line:s.data.newsym.selectionRange.end.line,character:s.data.newsym.selectionRange.end.character+1},end:s.data.newsym.range.end})}]}}}}default:return}}).filter(i=>!!i):[]}onDocumentColor(e){let n=[];for(let r=0;r<e.lineCount;r++){let i={start:{line:r,character:0},end:{line:r,character:1/0}},s=e.getText(i).replace(/(\r\n)|\r|\n$/,"");i.end.character=s.length;let o=/\[color=([^\]]+)\]/g,a=o.exec(s);for(;a;){{let l=cV(a[1]);l&&n.push({color:l,range:{start:{line:r,character:a.index+7},end:{line:r,character:a.index+7+a[1].length}}})}a=o.exec(s)}}return n}onColorPresentation(e,n){return fV(e).map(r=>({label:r,textEdit:{range:n,newText:r}}))}};var $y=Qe(Ni(),1),Of=class{constructor(e){this.Locale=e}onDefinition(e,n){let r=n.getText({start:{line:e.position.line,character:0},end:{line:e.position.line,character:Number.MAX_VALUE}});for(let i of r.matchAll(/(['"])((?:[^\\](?<!\1)|\\['"0abfnrtv\\]|\\\d{1,3}|\\x[0-9a-fA-F]{2})*)\1/g))if(i.index&&i.index<=e.position.character&&i.index+i[0].length>=e.position.character){let s=i[2],o={start:{line:e.position.line,character:i.index},end:{line:e.position.line,character:i.index+i[0].length}};return this.Locale.findDefinitions(s).map(l=>Object.assign({originSelectionRange:o},l))}}onCompletion(e,n){let i=n.getText({start:{line:e.position.line,character:0},end:{line:e.position.line,character:e.position.character+1}}).match(/(['"])((?:[^\\](?<!\1)|\\['"0abfnrtv\\]|\\\d{1,3}|\\x[0-9a-fA-F]{2})*)\1$/);if(i){let s=i[2].lastIndexOf("."),o=s!==-1?i[2].substring(0,s+1):"";return this.Locale.getCompletions(o).map(a=>({label:a.endsWith(".")?a.substring(0,a.length-1):a,kind:a.endsWith(".")?$y.CompletionItemKind.Enum:$y.CompletionItemKind.EnumMember,commitCharacters:a.endsWith(".")?["."]:[],textEdit:{newText:a.endsWith(".")?a.substring(0,a.length-1):a,range:{start:{line:e.position.line,character:i.index+1},end:{line:e.position.line,character:e.position.character}}}}))}return[]}};async function cR(){let t=new cu,e=new Rf,n=new Of(e),r=(0,jt.createConnection)(jt.ProposedFeatures.all),i=new jt.TextDocuments(qn);async function s(u){let c=i.get(u);if(c)return c;let f=Ze.parse(u);if(f.scheme==="file"){if(f.path.endsWith(".cfg"))return c=qn.create(u,"factorio-locale",1,await Hy.readFile(f.fsPath,"utf8")),c;if(f.path.endsWith("changelog.txt"))return c=qn.create(u,"factorio-changelog",1,await Hy.readFile(f.fsPath,"utf8")),c}}async function o(u){let c=await s(u);if(c)switch(c.languageId){case"factorio-locale":e.loadDocument(c);break;case"factorio-changelog":t.loadDocument(c);break}}async function a(u){let c=Ze.parse(u);if(c.scheme==="file"){let f=di(c.fsPath,{pattern:["**/locale/*/*.cfg","**/changelog.txt"]});f.on("match",h=>{o(Ze.file(h.absolute).toString())}),f.on("error",h=>{throw h}),await new Promise(h=>{f.on("end",()=>{h()})})}}let l=!1;return r.onInitialize(async u=>{let c=u.capabilities;l=!!(c.workspace&&c.workspace.workspaceFolders),e.hasDiagnosticRelatedInformationCapability=!!(c.textDocument&&c.textDocument.publishDiagnostics&&c.textDocument.publishDiagnostics.relatedInformation);let f={capabilities:{textDocumentSync:jt.TextDocumentSyncKind.Incremental,documentSymbolProvider:!0,codeActionProvider:!0,colorProvider:!0,definitionProvider:!0,completionProvider:{triggerCharacters:['"',"'","."],allCommitCharacters:["."]}}};return l&&(f.capabilities.workspace={workspaceFolders:{supported:!0,changeNotifications:!0}},u.workspaceFolders&&await Promise.all(u.workspaceFolders.map(h=>a(h.uri)))),f}),r.onInitialized(()=>{l&&r.workspace.onDidChangeWorkspaceFolders(async u=>{for(let c of u.removed)e.clearFolder(c.uri),t.clearFolder(c.uri);for(let c of u.added)await a(c.uri)})}),i.onDidClose(u=>{switch(u.document.languageId){case"factorio-locale":r.sendDiagnostics({uri:u.document.uri,diagnostics:[]});break;case"factorio-changelog":r.sendDiagnostics({uri:u.document.uri,diagnostics:[]});break}}),i.onDidChangeContent(u=>{switch(u.document.languageId){case"factorio-locale":e.loadDocument(u.document),r.sendDiagnostics({uri:u.document.uri,diagnostics:e.validateTextDocument(u.document)});break;case"factorio-changelog":t.loadDocument(u.document),r.sendDiagnostics({uri:u.document.uri,diagnostics:t.diagnose(u.document.uri)});break}}),r.onDefinition(async u=>{let c=await s(u.textDocument.uri);return c&&c.languageId==="lua"?n.onDefinition(u,c):null}),r.onCompletion(async u=>{let c=await s(u.textDocument.uri);if(c&&c.languageId==="lua")return{isIncomplete:!0,items:n.onCompletion(u,c)}}),r.onDidChangeWatchedFiles(u=>{for(let c of u.changes)switch(c.type){case jt.FileChangeType.Deleted:e.clearDocument(c.uri),t.clearDocument(c.uri);break;case jt.FileChangeType.Changed:case jt.FileChangeType.Created:s(c.uri).then(f=>{if(f)switch(f.languageId){case"factorio-locale":e.loadDocument(f);break;case"factorio-changelog":t.loadDocument(f);break}});break;default:break}}),r.onDocumentSymbol(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onDocumentSymbol(c);case"factorio-changelog":return t.onDocumentSymbol(c)}return null}),r.onCodeAction(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onCodeAction(c,u.range,u.context);case"factorio-changelog":return t.onCodeAction(c,u.range,u.context)}return null}),r.onDocumentColor(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onDocumentColor(c)}return null}),r.onColorPresentation(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onColorPresentation(u.color,u.range)}return null}),i.listen(r),r.listen(),new Promise(u=>{r.onExit(u)})}ge.command("lsp").description("Run LSP Server for Locale and Changelog features").allowUnknownOption(!0).allowExcessArguments(!0).action(async()=>{await cR()});import*as fR from"os";import*as hR from"fs/promises";ge.command("debug <factorioPath>").description("Launch a DAP debug session").option("-d, --docs <docsPath>","path to runtime-api.json").option("-c, --config <configPath>","path to config.ini").option("-w, --workspace <workspacePath...>","path to workspace folders").action(async(t,e)=>{let n={name:"standalone",factorioPath:t,configPath:e.config,docsPath:e.docs},r=zt.joinPath(Ze.file(t),n.docsPath?n.docsPath:fR.platform()==="darwin"?"../../doc-html/runtime-api.json":"../../../doc-html/runtime-api.json"),i=await hR.readFile(r.fsPath,"utf8"),s=new ub(Uy,n,new $a(i)),o=new cb(s,Uy,{async findWorkspaceFiles(a){let l=[];for(let u of e.workspace??[process.cwd()]){let c=di(u,{pattern:a});c.on("match",f=>{l.push(Ze.file(f.absolute))}),c.on("error",f=>{throw f}),await new Promise(f=>{c.on("end",()=>{f()})})}return l}});process.on("SIGTERM",()=>{o.shutdown()}),o.start(process.stdin,process.stdout)});import*as pR from"fs/promises";ge.command("scriptdat <file>").description("Dump script.dat").action(async t=>{let e=new fb(new Sr(await pR.readFile(t)));console.log(JSON.stringify({version:e.version.format(),data:e.data},void 0,2))});if(process.env.FMTK_TEST_ARGV)try{let t=JSON.parse(process.env.FMTK_TEST_ARGV);process.argv.push(...t),delete process.env.FMTK_TEST_ARGV}catch(t){console.log(`Error using extra args from FMTK_TEST_ARGV: ${t}`),process.exit(1)}await ge.description(`${Jy} ${Xy}`).helpCommand("help").showHelpAfterError().showSuggestionAfterError().parseAsync(process.argv,{from:"node"}).catch(t=>{console.error(t),process.exit(1)}).then(()=>{process.send&&process.disconnect()});
|
|
119
119
|
/*! Bundled license information:
|
|
120
120
|
|
|
121
121
|
safe-buffer/index.js:
|