@lntvow/dev 5.0.3 → 5.0.5

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/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as createRequire99999 } from 'module';const require = createRequire99999(import.meta.url);
3
- var Vc=Object.create;var en=Object.defineProperty;var jc=Object.getOwnPropertyDescriptor;var Bc=Object.getOwnPropertyNames;var Uc=Object.getPrototypeOf,Gc=Object.prototype.hasOwnProperty;var Qe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Wc=(e,t)=>()=>(e&&(t=e(e=0)),t);var ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Hc=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bc(t))!Gc.call(e,i)&&i!==r&&en(e,i,{get:()=>t[i],enumerable:!(s=jc(t,i))||s.enumerable});return e};var Xe=(e,t,r)=>(r=e!=null?Vc(Uc(e)):{},Hc(t||!e||!e.__esModule?en(r,"default",{value:e,enumerable:!0}):r,e));import hg from"path";import{fileURLToPath as pg}from"url";var _=Wc(()=>{"use strict"});var $t=ie(ts=>{"use strict";_();var ir=class extends Error{constructor(t,r,s){super(s),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},es=class extends ir{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};ts.CommanderError=ir;ts.InvalidArgumentError=es});var nr=ie(ss=>{"use strict";_();var{InvalidArgumentError:qc}=$t(),rs=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,s)=>{if(!this.argChoices.includes(r))throw new qc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,s):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function zc(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}ss.Argument=rs;ss.humanReadableArgName=zc});var as=ie(ns=>{"use strict";_();var{humanReadableArgName:Kc}=nr(),is=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(i=>!i._hidden),s=t._getHelpCommand();return s&&!s._hidden&&r.push(s),this.sortSubcommands&&r.sort((i,n)=>i.name().localeCompare(n.name())),r}compareOptions(t,r){let s=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return s(t).localeCompare(s(r))}visibleOptions(t){let r=t.options.filter(i=>!i.hidden),s=t._getHelpOption();if(s&&!s.hidden){let i=s.short&&t._findOption(s.short),n=s.long&&t._findOption(s.long);!i&&!n?r.push(s):s.long&&!n?r.push(t.createOption(s.long,s.description)):s.short&&!i&&r.push(t.createOption(s.short,s.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let s=t.parent;s;s=s.parent){let i=s.options.filter(n=>!n.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(s=>Kc(s)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((s,i)=>Math.max(s,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(i)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((s,i)=>Math.max(s,this.displayWidth(r.styleOptionTerm(r.optionTerm(i)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((s,i)=>Math.max(s,this.displayWidth(r.styleOptionTerm(r.optionTerm(i)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((s,i)=>Math.max(s,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(i)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let s="";for(let i=t.parent;i;i=i.parent)s=i.name()+" "+s;return s+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(s=>JSON.stringify(s)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let s=`(${r.join(", ")})`;return t.description?`${t.description} ${s}`:s}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(s=>JSON.stringify(s)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let s=`(${r.join(", ")})`;return t.description?`${t.description} ${s}`:s}return t.description}formatItemList(t,r,s){return r.length===0?[]:[s.styleTitle(t),...r,""]}groupItems(t,r,s){let i=new Map;return t.forEach(n=>{let a=s(n);i.has(a)||i.set(a,[])}),r.forEach(n=>{let a=s(n);i.has(a)||i.set(a,[]),i.get(a).push(n)}),i}formatHelp(t,r){let s=r.padWidth(t,r),i=r.helpWidth??80;function n(h,p){return r.formatItem(h,s,p,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],u=r.commandDescription(t);u.length>0&&(a=a.concat([r.boxWrap(r.styleCommandDescription(u),i),""]));let c=r.visibleArguments(t).map(h=>n(r.styleArgumentTerm(r.argumentTerm(h)),r.styleArgumentDescription(r.argumentDescription(h))));if(a=a.concat(this.formatItemList("Arguments:",c,r)),this.groupItems(t.options,r.visibleOptions(t),h=>h.helpGroupHeading??"Options:").forEach((h,p)=>{let d=h.map(O=>n(r.styleOptionTerm(r.optionTerm(O)),r.styleOptionDescription(r.optionDescription(O))));a=a.concat(this.formatItemList(p,d,r))}),r.showGlobalOptions){let h=r.visibleGlobalOptions(t).map(p=>n(r.styleOptionTerm(r.optionTerm(p)),r.styleOptionDescription(r.optionDescription(p))));a=a.concat(this.formatItemList("Global Options:",h,r))}return this.groupItems(t.commands,r.visibleCommands(t),h=>h.helpGroup()||"Commands:").forEach((h,p)=>{let d=h.map(O=>n(r.styleSubcommandTerm(r.subcommandTerm(O)),r.styleSubcommandDescription(r.subcommandDescription(O))));a=a.concat(this.formatItemList(p,d,r))}),a.join(`
3
+ var Vc=Object.create;var en=Object.defineProperty;var jc=Object.getOwnPropertyDescriptor;var Bc=Object.getOwnPropertyNames;var Uc=Object.getPrototypeOf,Gc=Object.prototype.hasOwnProperty;var Qe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Wc=(e,t)=>()=>(e&&(t=e(e=0)),t);var ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Hc=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bc(t))!Gc.call(e,i)&&i!==r&&en(e,i,{get:()=>t[i],enumerable:!(s=jc(t,i))||s.enumerable});return e};var Xe=(e,t,r)=>(r=e!=null?Vc(Uc(e)):{},Hc(t||!e||!e.__esModule?en(r,"default",{value:e,enumerable:!0}):r,e));import pg from"path";import{fileURLToPath as mg}from"url";var _=Wc(()=>{"use strict"});var $t=ie(ts=>{"use strict";_();var ir=class extends Error{constructor(t,r,s){super(s),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},es=class extends ir{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};ts.CommanderError=ir;ts.InvalidArgumentError=es});var nr=ie(ss=>{"use strict";_();var{InvalidArgumentError:qc}=$t(),rs=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:r.concat(t)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,s)=>{if(!this.argChoices.includes(r))throw new qc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,s):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function zc(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}ss.Argument=rs;ss.humanReadableArgName=zc});var as=ie(ns=>{"use strict";_();var{humanReadableArgName:Kc}=nr(),is=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(i=>!i._hidden),s=t._getHelpCommand();return s&&!s._hidden&&r.push(s),this.sortSubcommands&&r.sort((i,n)=>i.name().localeCompare(n.name())),r}compareOptions(t,r){let s=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return s(t).localeCompare(s(r))}visibleOptions(t){let r=t.options.filter(i=>!i.hidden),s=t._getHelpOption();if(s&&!s.hidden){let i=s.short&&t._findOption(s.short),n=s.long&&t._findOption(s.long);!i&&!n?r.push(s):s.long&&!n?r.push(t.createOption(s.long,s.description)):s.short&&!i&&r.push(t.createOption(s.short,s.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let s=t.parent;s;s=s.parent){let i=s.options.filter(n=>!n.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(s=>Kc(s)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((s,i)=>Math.max(s,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(i)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((s,i)=>Math.max(s,this.displayWidth(r.styleOptionTerm(r.optionTerm(i)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((s,i)=>Math.max(s,this.displayWidth(r.styleOptionTerm(r.optionTerm(i)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((s,i)=>Math.max(s,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(i)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let s="";for(let i=t.parent;i;i=i.parent)s=i.name()+" "+s;return s+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(s=>JSON.stringify(s)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let s=`(${r.join(", ")})`;return t.description?`${t.description} ${s}`:s}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(s=>JSON.stringify(s)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let s=`(${r.join(", ")})`;return t.description?`${t.description} ${s}`:s}return t.description}formatItemList(t,r,s){return r.length===0?[]:[s.styleTitle(t),...r,""]}groupItems(t,r,s){let i=new Map;return t.forEach(n=>{let a=s(n);i.has(a)||i.set(a,[])}),r.forEach(n=>{let a=s(n);i.has(a)||i.set(a,[]),i.get(a).push(n)}),i}formatHelp(t,r){let s=r.padWidth(t,r),i=r.helpWidth??80;function n(h,p){return r.formatItem(h,s,p,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],u=r.commandDescription(t);u.length>0&&(a=a.concat([r.boxWrap(r.styleCommandDescription(u),i),""]));let c=r.visibleArguments(t).map(h=>n(r.styleArgumentTerm(r.argumentTerm(h)),r.styleArgumentDescription(r.argumentDescription(h))));if(a=a.concat(this.formatItemList("Arguments:",c,r)),this.groupItems(t.options,r.visibleOptions(t),h=>h.helpGroupHeading??"Options:").forEach((h,p)=>{let d=h.map(O=>n(r.styleOptionTerm(r.optionTerm(O)),r.styleOptionDescription(r.optionDescription(O))));a=a.concat(this.formatItemList(p,d,r))}),r.showGlobalOptions){let h=r.visibleGlobalOptions(t).map(p=>n(r.styleOptionTerm(r.optionTerm(p)),r.styleOptionDescription(r.optionDescription(p))));a=a.concat(this.formatItemList("Global Options:",h,r))}return this.groupItems(t.commands,r.visibleCommands(t),h=>h.helpGroup()||"Commands:").forEach((h,p)=>{let d=h.map(O=>n(r.styleSubcommandTerm(r.subcommandTerm(O)),r.styleSubcommandDescription(r.subcommandDescription(O))));a=a.concat(this.formatItemList(p,d,r))}),a.join(`
4
4
  `)}displayWidth(t){return tn(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,s,i){let a=" ".repeat(2);if(!s)return a+t;let u=t.padEnd(r+t.length-i.displayWidth(t)),c=2,l=(this.helpWidth??80)-r-c-2,h;return l<this.minWidthToWrap||i.preformatted(s)?h=s:h=i.boxWrap(s,l).replace(/\n/g,`
5
5
  `+" ".repeat(r+c)),a+u+" ".repeat(c)+h.replace(/\n/g,`
6
6
  ${a}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let s=t.split(/\r\n|\n/),i=/[\s]*[^\s]+/g,n=[];return s.forEach(a=>{let u=a.match(i);if(u===null){n.push("");return}let c=[u.shift()],f=this.displayWidth(c[0]);u.forEach(l=>{let h=this.displayWidth(l);if(f+h<=r){c.push(l),f+=h;return}n.push(c.join(""));let p=l.trimStart();c=[p],f=this.displayWidth(p)}),n.push(c.join(""))}),n.join(`
@@ -25,15 +25,15 @@ Expecting one of '${s.join("', '")}'`);return this._lifeCycleHooks[t]?this._life
25
25
  `),this.outputHelp({error:!0}));let s=r||{},i=s.exitCode||1,n=s.code||"commander.error";this._exit(i,n,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in G.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,G.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new il(this.options),r=s=>this.getOptionValue(s)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(s));this.options.filter(s=>s.implied!==void 0&&r(s.attributeName())&&t.valueFromOption(this.getOptionValue(s.attributeName()),s)).forEach(s=>{Object.keys(s.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,s.implied[i],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let s=a=>{let u=a.attributeName(),c=this.getOptionValue(u),f=this.options.find(h=>h.negate&&u===h.attributeName()),l=this.options.find(h=>!h.negate&&u===h.attributeName());return f&&(f.presetArg===void 0&&c===!1||f.presetArg!==void 0&&c===f.presetArg)?f:l||a},i=a=>{let u=s(a),c=u.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${u.envVar}'`:`option '${u.flags}'`},n=`error: ${i(t)} cannot be used with ${i(r)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let i=[],n=this;do{let a=n.createHelp().visibleOptions(n).filter(u=>u.long).map(u=>u.long);i=i.concat(a),n=n.parent}while(n&&!n._enablePositionalOptions);r=on(t,i)}let s=`error: unknown option '${t}'${r}`;this.error(s,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,s=r===1?"":"s",n=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${s} but got ${t.length}.`;this.error(n,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(n=>{i.push(n.name()),n.alias()&&i.push(n.alias())}),r=on(t,i)}let s=`error: unknown command '${t}'${r}`;this.error(s,{code:"commander.unknownCommand"})}version(t,r,s){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",s=s||"output the version number";let i=this.createOption(r,s);return this._versionOptionName=i.attributeName(),this._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${t}
26
26
  `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let s=this.parent?._findCommand(t);if(s){let i=[s.name()].concat(s.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${i}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(s=>tl(s));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=Ze.basename(t,Ze.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),s=this._getOutputContext(t);r.prepareContext({error:s.error,helpWidth:s.helpWidth,outputHasColors:s.hasColors});let i=r.formatHelp(this,r);return s.hasColors?i:this._outputConfiguration.stripColor(i)}_getOutputContext(t){t=t||{};let r=!!t.error,s,i,n;return r?(s=u=>this._outputConfiguration.writeErr(u),i=this._outputConfiguration.getErrHasColors(),n=this._outputConfiguration.getErrHelpWidth()):(s=u=>this._outputConfiguration.writeOut(u),i=this._outputConfiguration.getOutHasColors(),n=this._outputConfiguration.getOutHelpWidth()),{error:r,write:u=>(i||(u=this._outputConfiguration.stripColor(u)),s(u)),hasColors:i,helpWidth:n}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let s=this._getOutputContext(t),i={error:s.error,write:s.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let n=this.helpInformation({error:s.error});if(r&&(n=r(n),typeof n!="string"&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");s.write(n),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",i))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(G.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let s=["beforeAll","before","after","afterAll"];if(!s.includes(t))throw new Error(`Unexpected value for position to addHelpText.
27
27
  Expecting one of '${s.join("', '")}'`);let i=`${t}Help`;return this.on(i,n=>{let a;typeof r=="function"?a=r({error:n.error,command:n.command}):a=r,a&&n.write(`${a}
28
- `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(i=>r.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function un(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,s="127.0.0.1",i="9229",n;return(n=t.match(/^(--inspect(-brk)?)$/))!==null?r=n[1]:(n=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=n[1],/^\d+$/.test(n[3])?i=n[3]:s=n[3]):(n=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=n[1],s=n[3],i=n[4]),r&&i!=="0"?`${r}=${s}:${parseInt(i)+1}`:t})}function ds(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0}ms.Command=ps;ms.useColor=ds});var pn=ie(Ie=>{"use strict";_();var{Argument:ln}=nr(),{Command:gs}=cn(),{CommanderError:nl,InvalidArgumentError:hn}=$t(),{Help:al}=as(),{Option:fn}=ls();Ie.program=new gs;Ie.createCommand=e=>new gs(e);Ie.createOption=(e,t)=>new fn(e,t);Ie.createArgument=(e,t)=>new ln(e,t);Ie.Command=gs;Ie.Option=fn;Ie.Argument=ln;Ie.Help=al;Ie.CommanderError=nl;Ie.InvalidArgumentError=hn;Ie.InvalidOptionArgumentError=hn});var _s=ie((Bg,xs)=>{"use strict";_();var ur=process||{},mn=ur.argv||[],or=ur.env||{},ol=!(or.NO_COLOR||mn.includes("--no-color"))&&(!!or.FORCE_COLOR||mn.includes("--color")||ur.platform==="win32"||(ur.stdout||{}).isTTY&&or.TERM!=="dumb"||!!or.CI),ul=(e,t,r=e)=>s=>{let i=""+s,n=i.indexOf(t,e.length);return~n?e+cl(i,t,r,n)+t:e+i+t},cl=(e,t,r,s)=>{let i="",n=0;do i+=e.substring(n,s)+r,n=s+t.length,s=e.indexOf(t,n);while(~s);return i+e.substring(n)},gn=(e=ol)=>{let t=e?ul:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};xs.exports=gn();xs.exports.createColors=gn});var xn=ie((ys,vs)=>{"use strict";_();(function(e,t){typeof ys=="object"&&typeof vs<"u"?vs.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(ys,function(){"use strict";var e=1e3,t=6e4,r=36e5,s="millisecond",i="second",n="minute",a="hour",u="day",c="week",f="month",l="quarter",h="year",p="date",d="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var v=["th","st","nd","rd"],x=S%100;return"["+S+(v[(x-20)%10]||v[x]||v[0])+"]"}},W=function(S,v,x){var k=String(S);return!k||k.length>=v?S:""+Array(v+1-k.length).join(x)+S},oe={s:W,z:function(S){var v=-S.utcOffset(),x=Math.abs(v),k=Math.floor(x/60),y=x%60;return(v<=0?"+":"-")+W(k,2,"0")+":"+W(y,2,"0")},m:function S(v,x){if(v.date()<x.date())return-S(x,v);var k=12*(x.year()-v.year())+(x.month()-v.month()),y=v.clone().add(k,f),R=x-y<0,P=v.clone().add(k+(R?-1:1),f);return+(-(k+(x-y)/(R?y-P:P-y))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:f,y:h,w:c,d:u,D:p,h:a,m:n,s:i,ms:s,Q:l}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},re="en",ne={};ne[re]=F;var Pe="$isDayjsObject",me=function(S){return S instanceof vt||!(!S||!S[Pe])},Te=function S(v,x,k){var y;if(!v)return re;if(typeof v=="string"){var R=v.toLowerCase();ne[R]&&(y=R),x&&(ne[R]=x,y=R);var P=v.split("-");if(!y&&P.length>1)return S(P[0])}else{var q=v.name;ne[q]=v,y=q}return!k&&y&&(re=y),y||!k&&re},H=function(S,v){if(me(S))return S.clone();var x=typeof v=="object"?v:{};return x.date=S,x.args=arguments,new vt(x)},L=oe;L.l=Te,L.i=me,L.w=function(S,v){return H(S,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var vt=function(){function S(x){this.$L=Te(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[Pe]=!0}var v=S.prototype;return v.parse=function(x){this.$d=function(k){var y=k.date,R=k.utc;if(y===null)return new Date(NaN);if(L.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var P=y.match(O);if(P){var q=P[2]-1||0,Q=(P[7]||"0").substring(0,3);return R?new Date(Date.UTC(P[1],q,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Q)):new Date(P[1],q,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Q)}}return new Date(y)}(x),this.init()},v.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},v.$utils=function(){return L},v.isValid=function(){return this.$d.toString()!==d},v.isSame=function(x,k){var y=H(x);return this.startOf(k)<=y&&y<=this.endOf(k)},v.isAfter=function(x,k){return H(x)<this.startOf(k)},v.isBefore=function(x,k){return this.endOf(k)<H(x)},v.$g=function(x,k,y){return L.u(x)?this[k]:this.set(y,x)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(x,k){var y=this,R=!!L.u(k)||k,P=L.p(x),q=function(Ye,he){var Ue=L.w(y.$u?Date.UTC(y.$y,he,Ye):new Date(y.$y,he,Ye),y);return R?Ue:Ue.endOf(u)},Q=function(Ye,he){return L.w(y.toDate()[Ye].apply(y.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(he)),y)},se=this.$W,ue=this.$M,be=this.$D,it="set"+(this.$u?"UTC":"");switch(P){case h:return R?q(1,0):q(31,11);case f:return R?q(1,ue):q(0,ue+1);case c:var Ke=this.$locale().weekStart||0,ht=(se<Ke?se+7:se)-Ke;return q(R?be-ht:be+(6-ht),ue);case u:case p:return Q(it+"Hours",0);case a:return Q(it+"Minutes",1);case n:return Q(it+"Seconds",2);case i:return Q(it+"Milliseconds",3);default:return this.clone()}},v.endOf=function(x){return this.startOf(x,!1)},v.$set=function(x,k){var y,R=L.p(x),P="set"+(this.$u?"UTC":""),q=(y={},y[u]=P+"Date",y[p]=P+"Date",y[f]=P+"Month",y[h]=P+"FullYear",y[a]=P+"Hours",y[n]=P+"Minutes",y[i]=P+"Seconds",y[s]=P+"Milliseconds",y)[R],Q=R===u?this.$D+(k-this.$W):k;if(R===f||R===h){var se=this.clone().set(p,1);se.$d[q](Q),se.init(),this.$d=se.set(p,Math.min(this.$D,se.daysInMonth())).$d}else q&&this.$d[q](Q);return this.init(),this},v.set=function(x,k){return this.clone().$set(x,k)},v.get=function(x){return this[L.p(x)]()},v.add=function(x,k){var y,R=this;x=Number(x);var P=L.p(k),q=function(ue){var be=H(R);return L.w(be.date(be.date()+Math.round(ue*x)),R)};if(P===f)return this.set(f,this.$M+x);if(P===h)return this.set(h,this.$y+x);if(P===u)return q(1);if(P===c)return q(7);var Q=(y={},y[n]=t,y[a]=r,y[i]=e,y)[P]||1,se=this.$d.getTime()+x*Q;return L.w(se,this)},v.subtract=function(x,k){return this.add(-1*x,k)},v.format=function(x){var k=this,y=this.$locale();if(!this.isValid())return y.invalidDate||d;var R=x||"YYYY-MM-DDTHH:mm:ssZ",P=L.z(this),q=this.$H,Q=this.$m,se=this.$M,ue=y.weekdays,be=y.months,it=y.meridiem,Ke=function(he,Ue,ft,ge){return he&&(he[Ue]||he(k,R))||ft[Ue].slice(0,ge)},ht=function(he){return L.s(q%12||12,he,"0")},Ye=it||function(he,Ue,ft){var ge=he<12?"AM":"PM";return ft?ge.toLowerCase():ge};return R.replace(N,function(he,Ue){return Ue||function(ft){switch(ft){case"YY":return String(k.$y).slice(-2);case"YYYY":return L.s(k.$y,4,"0");case"M":return se+1;case"MM":return L.s(se+1,2,"0");case"MMM":return Ke(y.monthsShort,se,be,3);case"MMMM":return Ke(be,se);case"D":return k.$D;case"DD":return L.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Ke(y.weekdaysMin,k.$W,ue,2);case"ddd":return Ke(y.weekdaysShort,k.$W,ue,3);case"dddd":return ue[k.$W];case"H":return String(q);case"HH":return L.s(q,2,"0");case"h":return ht(1);case"hh":return ht(2);case"a":return Ye(q,Q,!0);case"A":return Ye(q,Q,!1);case"m":return String(Q);case"mm":return L.s(Q,2,"0");case"s":return String(k.$s);case"ss":return L.s(k.$s,2,"0");case"SSS":return L.s(k.$ms,3,"0");case"Z":return P}return null}(he)||P.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(x,k,y){var R,P=this,q=L.p(k),Q=H(x),se=(Q.utcOffset()-this.utcOffset())*t,ue=this-Q,be=function(){return L.m(P,Q)};switch(q){case h:R=be()/12;break;case f:R=be();break;case l:R=be()/3;break;case c:R=(ue-se)/6048e5;break;case u:R=(ue-se)/864e5;break;case a:R=ue/r;break;case n:R=ue/t;break;case i:R=ue/e;break;default:R=ue}return y?R:L.a(R)},v.daysInMonth=function(){return this.endOf(f).$D},v.$locale=function(){return ne[this.$L]},v.locale=function(x,k){if(!x)return this.$L;var y=this.clone(),R=Te(x,k,!0);return R&&(y.$L=R),y},v.clone=function(){return L.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},S}(),sr=vt.prototype;return H.prototype=sr,[["$ms",s],["$s",i],["$m",n],["$H",a],["$W",u],["$M",f],["$y",h],["$D",p]].forEach(function(S){sr[S[1]]=function(v){return this.$g(v,S[0],S[1])}}),H.extend=function(S,v){return S.$i||(S(v,vt,H),S.$i=!0),H},H.locale=Te,H.isDayjs=me,H.unix=function(S){return H(1e3*S)},H.en=ne[re],H.Ls=ne,H.p={},H})});var _n=ie((bs,ws)=>{"use strict";_();(function(e,t){typeof bs=="object"&&typeof ws<"u"?ws.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_timezone=t()})(bs,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,s,i){var n,a=function(l,h,p){p===void 0&&(p={});var d=new Date(l),O=function(N,F){F===void 0&&(F={});var W=F.timeZoneName||"short",oe=N+"|"+W,re=t[oe];return re||(re=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:N,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:W}),t[oe]=re),re}(h,p);return O.formatToParts(d)},u=function(l,h){for(var p=a(l,h),d=[],O=0;O<p.length;O+=1){var N=p[O],F=N.type,W=N.value,oe=e[F];oe>=0&&(d[oe]=parseInt(W,10))}var re=d[3],ne=re===24?0:re,Pe=d[0]+"-"+d[1]+"-"+d[2]+" "+ne+":"+d[4]+":"+d[5]+":000",me=+l;return(i.utc(Pe).valueOf()-(me-=me%1e3))/6e4},c=s.prototype;c.tz=function(l,h){l===void 0&&(l=n);var p,d=this.utcOffset(),O=this.toDate(),N=O.toLocaleString("en-US",{timeZone:l}),F=Math.round((O-new Date(N))/1e3/60),W=15*-Math.round(O.getTimezoneOffset()/15)-F;if(!Number(W))p=this.utcOffset(0,h);else if(p=i(N,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(W,!0),h){var oe=p.utcOffset();p=p.add(d-oe,"minute")}return p.$x.$timezone=l,p},c.offsetName=function(l){var h=this.$x.$timezone||i.tz.guess(),p=a(this.valueOf(),h,{timeZoneName:l}).find(function(d){return d.type.toLowerCase()==="timezonename"});return p&&p.value};var f=c.startOf;c.startOf=function(l,h){if(!this.$x||!this.$x.$timezone)return f.call(this,l,h);var p=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(p,l,h).tz(this.$x.$timezone,!0)},i.tz=function(l,h,p){var d=p&&h,O=p||h||n,N=u(+i(),O);if(typeof l!="string")return i(l).tz(O);var F=function(ne,Pe,me){var Te=ne-60*Pe*1e3,H=u(Te,me);if(Pe===H)return[Te,Pe];var L=u(Te-=60*(H-Pe)*1e3,me);return H===L?[Te,H]:[ne-60*Math.min(H,L)*1e3,Math.max(H,L)]}(i.utc(l,d).valueOf(),N,O),W=F[0],oe=F[1],re=i(W).utcOffset(oe);return re.$x.$timezone=O,re},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(l){n=l}}})});var vn=ie((Hg,yn)=>{"use strict";_();var bt=1e3,wt=bt*60,Ct=wt*60,pt=Ct*24,ll=pt*7,hl=pt*365.25;yn.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return fl(e);if(r==="number"&&isFinite(e))return t.long?dl(e):pl(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function fl(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),s=(t[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*hl;case"weeks":case"week":case"w":return r*ll;case"days":case"day":case"d":return r*pt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ct;case"minutes":case"minute":case"mins":case"min":case"m":return r*wt;case"seconds":case"second":case"secs":case"sec":case"s":return r*bt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function pl(e){var t=Math.abs(e);return t>=pt?Math.round(e/pt)+"d":t>=Ct?Math.round(e/Ct)+"h":t>=wt?Math.round(e/wt)+"m":t>=bt?Math.round(e/bt)+"s":e+"ms"}function dl(e){var t=Math.abs(e);return t>=pt?cr(e,t,pt,"day"):t>=Ct?cr(e,t,Ct,"hour"):t>=wt?cr(e,t,wt,"minute"):t>=bt?cr(e,t,bt,"second"):e+" ms"}function cr(e,t,r,s){var i=t>=r*1.5;return Math.round(e/r)+" "+s+(i?"s":"")}});var Cs=ie((zg,bn)=>{"use strict";_();function ml(e){r.debug=r,r.default=r,r.coerce=c,r.disable=a,r.enable=i,r.enabled=u,r.humanize=vn(),r.destroy=f,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let h=0;for(let p=0;p<l.length;p++)h=(h<<5)-h+l.charCodeAt(p),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(l){let h,p=null,d,O;function N(...F){if(!N.enabled)return;let W=N,oe=Number(new Date),re=oe-(h||oe);W.diff=re,W.prev=h,W.curr=oe,h=oe,F[0]=r.coerce(F[0]),typeof F[0]!="string"&&F.unshift("%O");let ne=0;F[0]=F[0].replace(/%([a-zA-Z%])/g,(me,Te)=>{if(me==="%%")return"%";ne++;let H=r.formatters[Te];if(typeof H=="function"){let L=F[ne];me=H.call(W,L),F.splice(ne,1),ne--}return me}),r.formatArgs.call(W,F),(W.log||r.log).apply(W,F)}return N.namespace=l,N.useColors=r.useColors(),N.color=r.selectColor(l),N.extend=s,N.destroy=r.destroy,Object.defineProperty(N,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,O=r.enabled(l)),O),set:F=>{p=F}}),typeof r.init=="function"&&r.init(N),N}function s(l,h){let p=r(this.namespace+(typeof h>"u"?":":h)+l);return p.log=this.log,p}function i(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let h=(typeof l=="string"?l:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of h)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function n(l,h){let p=0,d=0,O=-1,N=0;for(;p<l.length;)if(d<h.length&&(h[d]===l[p]||h[d]==="*"))h[d]==="*"?(O=d,N=p,d++):(p++,d++);else if(O!==-1)d=O+1,N++,p=N;else return!1;for(;d<h.length&&h[d]==="*";)d++;return d===h.length}function a(){let l=[...r.names,...r.skips.map(h=>"-"+h)].join(",");return r.enable(""),l}function u(l){for(let h of r.skips)if(n(l,h))return!1;for(let h of r.names)if(n(l,h))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}bn.exports=ml});var wn=ie((we,lr)=>{"use strict";_();we.formatArgs=xl;we.save=_l;we.load=yl;we.useColors=gl;we.storage=vl();we.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();we.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function gl(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xl(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+lr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,s=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(s=r))}),e.splice(s,0,t)}we.log=console.debug||console.log||(()=>{});function _l(e){try{e?we.storage.setItem("debug",e):we.storage.removeItem("debug")}catch{}}function yl(){let e;try{e=we.storage.getItem("debug")||we.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function vl(){try{return localStorage}catch{}}lr.exports=Cs()(we);var{formatters:bl}=lr.exports;bl.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var kn=ie((Qg,Cn)=>{"use strict";_();Cn.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",s=t.indexOf(r+e),i=t.indexOf("--");return s!==-1&&(i===-1?!0:s<i)}});var Sn=ie((Zg,En)=>{"use strict";_();var wl=Qe("os"),je=kn(),fe=process.env,kt;je("no-color")||je("no-colors")||je("color=false")?kt=!1:(je("color")||je("colors")||je("color=true")||je("color=always"))&&(kt=!0);"FORCE_COLOR"in fe&&(kt=fe.FORCE_COLOR.length===0||parseInt(fe.FORCE_COLOR,10)!==0);function Cl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function kl(e){if(kt===!1)return 0;if(je("color=16m")||je("color=full")||je("color=truecolor"))return 3;if(je("color=256"))return 2;if(e&&!e.isTTY&&kt!==!0)return 0;let t=kt?1:0;if(process.platform==="win32"){let r=wl.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in fe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in fe)||fe.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(fe.TEAMCITY_VERSION)?1:0;if(fe.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in fe){let r=parseInt((fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(fe.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(fe.TERM)||"COLORTERM"in fe?1:(fe.TERM==="dumb",t)}function ks(e){let t=kl(e);return Cl(t)}En.exports={supportsColor:ks,stdout:ks(process.stdout),stderr:ks(process.stderr)}});var Tn=ie((ce,fr)=>{"use strict";_();var El=Qe("tty"),hr=Qe("util");ce.init=Il;ce.log=Ol;ce.formatArgs=Al;ce.save=Rl;ce.load=Pl;ce.useColors=Sl;ce.destroy=hr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ce.colors=[6,2,3,4,5,1];try{let e=Sn();e&&(e.stderr||e).level>=2&&(ce.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ce.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,n)=>n.toUpperCase()),s=process.env[t];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),e[r]=s,e},{});function Sl(){return"colors"in ce.inspectOpts?!!ce.inspectOpts.colors:El.isatty(process.stderr.fd)}function Al(e){let{namespace:t,useColors:r}=this;if(r){let s=this.color,i="\x1B[3"+(s<8?s:"8;5;"+s),n=` ${i};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
28
+ `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(i=>r.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function un(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,s="127.0.0.1",i="9229",n;return(n=t.match(/^(--inspect(-brk)?)$/))!==null?r=n[1]:(n=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=n[1],/^\d+$/.test(n[3])?i=n[3]:s=n[3]):(n=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=n[1],s=n[3],i=n[4]),r&&i!=="0"?`${r}=${s}:${parseInt(i)+1}`:t})}function ds(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0}ms.Command=ps;ms.useColor=ds});var pn=ie(Ie=>{"use strict";_();var{Argument:ln}=nr(),{Command:gs}=cn(),{CommanderError:nl,InvalidArgumentError:hn}=$t(),{Help:al}=as(),{Option:fn}=ls();Ie.program=new gs;Ie.createCommand=e=>new gs(e);Ie.createOption=(e,t)=>new fn(e,t);Ie.createArgument=(e,t)=>new ln(e,t);Ie.Command=gs;Ie.Option=fn;Ie.Argument=ln;Ie.Help=al;Ie.CommanderError=nl;Ie.InvalidArgumentError=hn;Ie.InvalidOptionArgumentError=hn});var _s=ie((Gg,xs)=>{"use strict";_();var ur=process||{},mn=ur.argv||[],or=ur.env||{},ol=!(or.NO_COLOR||mn.includes("--no-color"))&&(!!or.FORCE_COLOR||mn.includes("--color")||ur.platform==="win32"||(ur.stdout||{}).isTTY&&or.TERM!=="dumb"||!!or.CI),ul=(e,t,r=e)=>s=>{let i=""+s,n=i.indexOf(t,e.length);return~n?e+cl(i,t,r,n)+t:e+i+t},cl=(e,t,r,s)=>{let i="",n=0;do i+=e.substring(n,s)+r,n=s+t.length,s=e.indexOf(t,n);while(~s);return i+e.substring(n)},gn=(e=ol)=>{let t=e?ul:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};xs.exports=gn();xs.exports.createColors=gn});var xn=ie((ys,vs)=>{"use strict";_();(function(e,t){typeof ys=="object"&&typeof vs<"u"?vs.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(ys,function(){"use strict";var e=1e3,t=6e4,r=36e5,s="millisecond",i="second",n="minute",a="hour",u="day",c="week",f="month",l="quarter",h="year",p="date",d="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var v=["th","st","nd","rd"],x=S%100;return"["+S+(v[(x-20)%10]||v[x]||v[0])+"]"}},W=function(S,v,x){var k=String(S);return!k||k.length>=v?S:""+Array(v+1-k.length).join(x)+S},oe={s:W,z:function(S){var v=-S.utcOffset(),x=Math.abs(v),k=Math.floor(x/60),y=x%60;return(v<=0?"+":"-")+W(k,2,"0")+":"+W(y,2,"0")},m:function S(v,x){if(v.date()<x.date())return-S(x,v);var k=12*(x.year()-v.year())+(x.month()-v.month()),y=v.clone().add(k,f),R=x-y<0,P=v.clone().add(k+(R?-1:1),f);return+(-(k+(x-y)/(R?y-P:P-y))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:f,y:h,w:c,d:u,D:p,h:a,m:n,s:i,ms:s,Q:l}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},re="en",ne={};ne[re]=F;var Pe="$isDayjsObject",me=function(S){return S instanceof vt||!(!S||!S[Pe])},Te=function S(v,x,k){var y;if(!v)return re;if(typeof v=="string"){var R=v.toLowerCase();ne[R]&&(y=R),x&&(ne[R]=x,y=R);var P=v.split("-");if(!y&&P.length>1)return S(P[0])}else{var q=v.name;ne[q]=v,y=q}return!k&&y&&(re=y),y||!k&&re},H=function(S,v){if(me(S))return S.clone();var x=typeof v=="object"?v:{};return x.date=S,x.args=arguments,new vt(x)},L=oe;L.l=Te,L.i=me,L.w=function(S,v){return H(S,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var vt=function(){function S(x){this.$L=Te(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[Pe]=!0}var v=S.prototype;return v.parse=function(x){this.$d=function(k){var y=k.date,R=k.utc;if(y===null)return new Date(NaN);if(L.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var P=y.match(O);if(P){var q=P[2]-1||0,Q=(P[7]||"0").substring(0,3);return R?new Date(Date.UTC(P[1],q,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Q)):new Date(P[1],q,P[3]||1,P[4]||0,P[5]||0,P[6]||0,Q)}}return new Date(y)}(x),this.init()},v.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},v.$utils=function(){return L},v.isValid=function(){return this.$d.toString()!==d},v.isSame=function(x,k){var y=H(x);return this.startOf(k)<=y&&y<=this.endOf(k)},v.isAfter=function(x,k){return H(x)<this.startOf(k)},v.isBefore=function(x,k){return this.endOf(k)<H(x)},v.$g=function(x,k,y){return L.u(x)?this[k]:this.set(y,x)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(x,k){var y=this,R=!!L.u(k)||k,P=L.p(x),q=function(Ye,he){var Ue=L.w(y.$u?Date.UTC(y.$y,he,Ye):new Date(y.$y,he,Ye),y);return R?Ue:Ue.endOf(u)},Q=function(Ye,he){return L.w(y.toDate()[Ye].apply(y.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(he)),y)},se=this.$W,ue=this.$M,be=this.$D,it="set"+(this.$u?"UTC":"");switch(P){case h:return R?q(1,0):q(31,11);case f:return R?q(1,ue):q(0,ue+1);case c:var Ke=this.$locale().weekStart||0,ht=(se<Ke?se+7:se)-Ke;return q(R?be-ht:be+(6-ht),ue);case u:case p:return Q(it+"Hours",0);case a:return Q(it+"Minutes",1);case n:return Q(it+"Seconds",2);case i:return Q(it+"Milliseconds",3);default:return this.clone()}},v.endOf=function(x){return this.startOf(x,!1)},v.$set=function(x,k){var y,R=L.p(x),P="set"+(this.$u?"UTC":""),q=(y={},y[u]=P+"Date",y[p]=P+"Date",y[f]=P+"Month",y[h]=P+"FullYear",y[a]=P+"Hours",y[n]=P+"Minutes",y[i]=P+"Seconds",y[s]=P+"Milliseconds",y)[R],Q=R===u?this.$D+(k-this.$W):k;if(R===f||R===h){var se=this.clone().set(p,1);se.$d[q](Q),se.init(),this.$d=se.set(p,Math.min(this.$D,se.daysInMonth())).$d}else q&&this.$d[q](Q);return this.init(),this},v.set=function(x,k){return this.clone().$set(x,k)},v.get=function(x){return this[L.p(x)]()},v.add=function(x,k){var y,R=this;x=Number(x);var P=L.p(k),q=function(ue){var be=H(R);return L.w(be.date(be.date()+Math.round(ue*x)),R)};if(P===f)return this.set(f,this.$M+x);if(P===h)return this.set(h,this.$y+x);if(P===u)return q(1);if(P===c)return q(7);var Q=(y={},y[n]=t,y[a]=r,y[i]=e,y)[P]||1,se=this.$d.getTime()+x*Q;return L.w(se,this)},v.subtract=function(x,k){return this.add(-1*x,k)},v.format=function(x){var k=this,y=this.$locale();if(!this.isValid())return y.invalidDate||d;var R=x||"YYYY-MM-DDTHH:mm:ssZ",P=L.z(this),q=this.$H,Q=this.$m,se=this.$M,ue=y.weekdays,be=y.months,it=y.meridiem,Ke=function(he,Ue,ft,ge){return he&&(he[Ue]||he(k,R))||ft[Ue].slice(0,ge)},ht=function(he){return L.s(q%12||12,he,"0")},Ye=it||function(he,Ue,ft){var ge=he<12?"AM":"PM";return ft?ge.toLowerCase():ge};return R.replace(N,function(he,Ue){return Ue||function(ft){switch(ft){case"YY":return String(k.$y).slice(-2);case"YYYY":return L.s(k.$y,4,"0");case"M":return se+1;case"MM":return L.s(se+1,2,"0");case"MMM":return Ke(y.monthsShort,se,be,3);case"MMMM":return Ke(be,se);case"D":return k.$D;case"DD":return L.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Ke(y.weekdaysMin,k.$W,ue,2);case"ddd":return Ke(y.weekdaysShort,k.$W,ue,3);case"dddd":return ue[k.$W];case"H":return String(q);case"HH":return L.s(q,2,"0");case"h":return ht(1);case"hh":return ht(2);case"a":return Ye(q,Q,!0);case"A":return Ye(q,Q,!1);case"m":return String(Q);case"mm":return L.s(Q,2,"0");case"s":return String(k.$s);case"ss":return L.s(k.$s,2,"0");case"SSS":return L.s(k.$ms,3,"0");case"Z":return P}return null}(he)||P.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(x,k,y){var R,P=this,q=L.p(k),Q=H(x),se=(Q.utcOffset()-this.utcOffset())*t,ue=this-Q,be=function(){return L.m(P,Q)};switch(q){case h:R=be()/12;break;case f:R=be();break;case l:R=be()/3;break;case c:R=(ue-se)/6048e5;break;case u:R=(ue-se)/864e5;break;case a:R=ue/r;break;case n:R=ue/t;break;case i:R=ue/e;break;default:R=ue}return y?R:L.a(R)},v.daysInMonth=function(){return this.endOf(f).$D},v.$locale=function(){return ne[this.$L]},v.locale=function(x,k){if(!x)return this.$L;var y=this.clone(),R=Te(x,k,!0);return R&&(y.$L=R),y},v.clone=function(){return L.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},S}(),sr=vt.prototype;return H.prototype=sr,[["$ms",s],["$s",i],["$m",n],["$H",a],["$W",u],["$M",f],["$y",h],["$D",p]].forEach(function(S){sr[S[1]]=function(v){return this.$g(v,S[0],S[1])}}),H.extend=function(S,v){return S.$i||(S(v,vt,H),S.$i=!0),H},H.locale=Te,H.isDayjs=me,H.unix=function(S){return H(1e3*S)},H.en=ne[re],H.Ls=ne,H.p={},H})});var _n=ie((bs,ws)=>{"use strict";_();(function(e,t){typeof bs=="object"&&typeof ws<"u"?ws.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_timezone=t()})(bs,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,s,i){var n,a=function(l,h,p){p===void 0&&(p={});var d=new Date(l),O=function(N,F){F===void 0&&(F={});var W=F.timeZoneName||"short",oe=N+"|"+W,re=t[oe];return re||(re=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:N,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:W}),t[oe]=re),re}(h,p);return O.formatToParts(d)},u=function(l,h){for(var p=a(l,h),d=[],O=0;O<p.length;O+=1){var N=p[O],F=N.type,W=N.value,oe=e[F];oe>=0&&(d[oe]=parseInt(W,10))}var re=d[3],ne=re===24?0:re,Pe=d[0]+"-"+d[1]+"-"+d[2]+" "+ne+":"+d[4]+":"+d[5]+":000",me=+l;return(i.utc(Pe).valueOf()-(me-=me%1e3))/6e4},c=s.prototype;c.tz=function(l,h){l===void 0&&(l=n);var p,d=this.utcOffset(),O=this.toDate(),N=O.toLocaleString("en-US",{timeZone:l}),F=Math.round((O-new Date(N))/1e3/60),W=15*-Math.round(O.getTimezoneOffset()/15)-F;if(!Number(W))p=this.utcOffset(0,h);else if(p=i(N,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(W,!0),h){var oe=p.utcOffset();p=p.add(d-oe,"minute")}return p.$x.$timezone=l,p},c.offsetName=function(l){var h=this.$x.$timezone||i.tz.guess(),p=a(this.valueOf(),h,{timeZoneName:l}).find(function(d){return d.type.toLowerCase()==="timezonename"});return p&&p.value};var f=c.startOf;c.startOf=function(l,h){if(!this.$x||!this.$x.$timezone)return f.call(this,l,h);var p=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(p,l,h).tz(this.$x.$timezone,!0)},i.tz=function(l,h,p){var d=p&&h,O=p||h||n,N=u(+i(),O);if(typeof l!="string")return i(l).tz(O);var F=function(ne,Pe,me){var Te=ne-60*Pe*1e3,H=u(Te,me);if(Pe===H)return[Te,Pe];var L=u(Te-=60*(H-Pe)*1e3,me);return H===L?[Te,H]:[ne-60*Math.min(H,L)*1e3,Math.max(H,L)]}(i.utc(l,d).valueOf(),N,O),W=F[0],oe=F[1],re=i(W).utcOffset(oe);return re.$x.$timezone=O,re},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(l){n=l}}})});var vn=ie((zg,yn)=>{"use strict";_();var bt=1e3,wt=bt*60,Ct=wt*60,pt=Ct*24,ll=pt*7,hl=pt*365.25;yn.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return fl(e);if(r==="number"&&isFinite(e))return t.long?dl(e):pl(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function fl(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),s=(t[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*hl;case"weeks":case"week":case"w":return r*ll;case"days":case"day":case"d":return r*pt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ct;case"minutes":case"minute":case"mins":case"min":case"m":return r*wt;case"seconds":case"second":case"secs":case"sec":case"s":return r*bt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function pl(e){var t=Math.abs(e);return t>=pt?Math.round(e/pt)+"d":t>=Ct?Math.round(e/Ct)+"h":t>=wt?Math.round(e/wt)+"m":t>=bt?Math.round(e/bt)+"s":e+"ms"}function dl(e){var t=Math.abs(e);return t>=pt?cr(e,t,pt,"day"):t>=Ct?cr(e,t,Ct,"hour"):t>=wt?cr(e,t,wt,"minute"):t>=bt?cr(e,t,bt,"second"):e+" ms"}function cr(e,t,r,s){var i=t>=r*1.5;return Math.round(e/r)+" "+s+(i?"s":"")}});var Cs=ie((Yg,bn)=>{"use strict";_();function ml(e){r.debug=r,r.default=r,r.coerce=c,r.disable=a,r.enable=i,r.enabled=u,r.humanize=vn(),r.destroy=f,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let h=0;for(let p=0;p<l.length;p++)h=(h<<5)-h+l.charCodeAt(p),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(l){let h,p=null,d,O;function N(...F){if(!N.enabled)return;let W=N,oe=Number(new Date),re=oe-(h||oe);W.diff=re,W.prev=h,W.curr=oe,h=oe,F[0]=r.coerce(F[0]),typeof F[0]!="string"&&F.unshift("%O");let ne=0;F[0]=F[0].replace(/%([a-zA-Z%])/g,(me,Te)=>{if(me==="%%")return"%";ne++;let H=r.formatters[Te];if(typeof H=="function"){let L=F[ne];me=H.call(W,L),F.splice(ne,1),ne--}return me}),r.formatArgs.call(W,F),(W.log||r.log).apply(W,F)}return N.namespace=l,N.useColors=r.useColors(),N.color=r.selectColor(l),N.extend=s,N.destroy=r.destroy,Object.defineProperty(N,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,O=r.enabled(l)),O),set:F=>{p=F}}),typeof r.init=="function"&&r.init(N),N}function s(l,h){let p=r(this.namespace+(typeof h>"u"?":":h)+l);return p.log=this.log,p}function i(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let h=(typeof l=="string"?l:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of h)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function n(l,h){let p=0,d=0,O=-1,N=0;for(;p<l.length;)if(d<h.length&&(h[d]===l[p]||h[d]==="*"))h[d]==="*"?(O=d,N=p,d++):(p++,d++);else if(O!==-1)d=O+1,N++,p=N;else return!1;for(;d<h.length&&h[d]==="*";)d++;return d===h.length}function a(){let l=[...r.names,...r.skips.map(h=>"-"+h)].join(",");return r.enable(""),l}function u(l){for(let h of r.skips)if(n(l,h))return!1;for(let h of r.names)if(n(l,h))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}bn.exports=ml});var wn=ie((we,lr)=>{"use strict";_();we.formatArgs=xl;we.save=_l;we.load=yl;we.useColors=gl;we.storage=vl();we.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();we.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function gl(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xl(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+lr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,s=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(s=r))}),e.splice(s,0,t)}we.log=console.debug||console.log||(()=>{});function _l(e){try{e?we.storage.setItem("debug",e):we.storage.removeItem("debug")}catch{}}function yl(){let e;try{e=we.storage.getItem("debug")||we.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function vl(){try{return localStorage}catch{}}lr.exports=Cs()(we);var{formatters:bl}=lr.exports;bl.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var kn=ie((Zg,Cn)=>{"use strict";_();Cn.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",s=t.indexOf(r+e),i=t.indexOf("--");return s!==-1&&(i===-1?!0:s<i)}});var Sn=ie((e0,En)=>{"use strict";_();var wl=Qe("os"),je=kn(),fe=process.env,kt;je("no-color")||je("no-colors")||je("color=false")?kt=!1:(je("color")||je("colors")||je("color=true")||je("color=always"))&&(kt=!0);"FORCE_COLOR"in fe&&(kt=fe.FORCE_COLOR.length===0||parseInt(fe.FORCE_COLOR,10)!==0);function Cl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function kl(e){if(kt===!1)return 0;if(je("color=16m")||je("color=full")||je("color=truecolor"))return 3;if(je("color=256"))return 2;if(e&&!e.isTTY&&kt!==!0)return 0;let t=kt?1:0;if(process.platform==="win32"){let r=wl.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in fe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in fe)||fe.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(fe.TEAMCITY_VERSION)?1:0;if(fe.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in fe){let r=parseInt((fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(fe.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(fe.TERM)||"COLORTERM"in fe?1:(fe.TERM==="dumb",t)}function ks(e){let t=kl(e);return Cl(t)}En.exports={supportsColor:ks,stdout:ks(process.stdout),stderr:ks(process.stderr)}});var Tn=ie((ce,fr)=>{"use strict";_();var El=Qe("tty"),hr=Qe("util");ce.init=Il;ce.log=Ol;ce.formatArgs=Al;ce.save=Rl;ce.load=Pl;ce.useColors=Sl;ce.destroy=hr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ce.colors=[6,2,3,4,5,1];try{let e=Sn();e&&(e.stderr||e).level>=2&&(ce.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ce.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,n)=>n.toUpperCase()),s=process.env[t];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),e[r]=s,e},{});function Sl(){return"colors"in ce.inspectOpts?!!ce.inspectOpts.colors:El.isatty(process.stderr.fd)}function Al(e){let{namespace:t,useColors:r}=this;if(r){let s=this.color,i="\x1B[3"+(s<8?s:"8;5;"+s),n=` ${i};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
29
29
  `).join(`
30
30
  `+n),e.push(i+"m+"+fr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Tl()+t+" "+e[0]}function Tl(){return ce.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ol(...e){return process.stderr.write(hr.formatWithOptions(ce.inspectOpts,...e)+`
31
31
  `)}function Rl(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Pl(){return process.env.DEBUG}function Il(e){e.inspectOpts={};let t=Object.keys(ce.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ce.inspectOpts[t[r]]}fr.exports=Cs()(ce);var{formatters:An}=fr.exports;An.o=function(e){return this.inspectOpts.colors=this.useColors,hr.inspect(e,this.inspectOpts).split(`
32
- `).map(t=>t.trim()).join(" ")};An.O=function(e){return this.inspectOpts.colors=this.useColors,hr.inspect(e,this.inspectOpts)}});var Ss=ie((t0,Es)=>{"use strict";_();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Es.exports=wn():Es.exports=Tn()});var On=ie(Oe=>{"use strict";_();var Nl=Oe&&Oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oe,"__esModule",{value:!0});var Ll=Qe("fs"),Dl=Nl(Ss()),Et=Dl.default("@kwsites/file-exists");function $l(e,t,r){Et("checking %s",e);try{let s=Ll.statSync(e);return s.isFile()&&t?(Et("[OK] path represents a file"),!0):s.isDirectory()&&r?(Et("[OK] path represents a directory"),!0):(Et("[FAIL] path represents something other than a file or directory"),!1)}catch(s){if(s.code==="ENOENT")return Et("[FAIL] path is not accessible: %o",s),!1;throw Et("[FATAL] %o",s),s}}function Fl(e,t=Oe.READABLE){return $l(e,(t&Oe.FILE)>0,(t&Oe.FOLDER)>0)}Oe.exists=Fl;Oe.FILE=1;Oe.FOLDER=2;Oe.READABLE=Oe.FILE+Oe.FOLDER});var Rn=ie(pr=>{"use strict";_();function Ml(e){for(var t in e)pr.hasOwnProperty(t)||(pr[t]=e[t])}Object.defineProperty(pr,"__esModule",{value:!0});Ml(On())});var Ts=ie(dt=>{"use strict";_();Object.defineProperty(dt,"__esModule",{value:!0});dt.createDeferred=dt.deferred=void 0;function As(){let e,t,r="pending";return{promise:new Promise((i,n)=>{e=i,t=n}),done(i){r==="pending"&&(r="resolved",e(i))},fail(i){r==="pending"&&(r="rejected",t(i))},get fulfilled(){return r!=="pending"},get status(){return r}}}dt.deferred=As;dt.createDeferred=As;dt.default=As});_();import{readFileSync as Jm,writeFileSync as Dc}from"fs";import{dirname as eg,resolve as $c}from"path";_();var dn=Xe(pn(),1),{program:Ft,createCommand:Og,createArgument:Rg,createOption:Pg,CommanderError:Ig,InvalidArgumentError:Ng,InvalidOptionArgumentError:Lg,Command:Dg,Argument:$g,Option:Fg,Help:Mg}=dn.default;var Fc=Xe(_s(),1),Zr=Xe(xn(),1),Mc=Xe(_n(),1);_();var Er=Xe(Rn(),1),wr=Xe(Ss(),1),Mo=Xe(Ts(),1),St=Xe(Ts(),1);import{Buffer as Wl}from"buffer";import{spawn as Eh}from"child_process";import{EventEmitter as Up}from"events";var Ys=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,Qs=Object.getOwnPropertyNames,jl=Object.prototype.hasOwnProperty,g=(e,t)=>function(){return e&&(t=(0,e[Qs(e)[0]])(e=0)),t},Bl=(e,t)=>function(){return t||(0,e[Qs(e)[0]])((t={exports:{}}).exports,t),t.exports},te=(e,t)=>{for(var r in t)Ys(e,r,{get:t[r],enumerable:!0})},Ul=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Qs(t))!jl.call(e,i)&&i!==r&&Ys(e,i,{get:()=>t[i],enumerable:!(s=Vl(t,i))||s.enumerable});return e},X=e=>Ul(Ys({},"__esModule",{value:!0}),e);function Gl(...e){let t=new String(e);return kr.set(t,e),t}function yr(e){return e instanceof String&&kr.has(e)}function Pn(e){return kr.get(e)||[]}var kr,Bt=g({"src/lib/args/pathspec.ts"(){"use strict";kr=new WeakMap}}),et,at=g({"src/lib/errors/git-error.ts"(){"use strict";et=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),Ut,Tt=g({"src/lib/errors/git-response-error.ts"(){"use strict";at(),Ut=class extends et{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),ua,ca=g({"src/lib/errors/task-configuration-error.ts"(){"use strict";at(),ua=class extends et{constructor(e){super(void 0,e)}}}});function la(e){return typeof e!="function"?xt:e}function ha(e){return typeof e=="function"&&e!==xt}function fa(e,t){let r=e.indexOf(t);return r<=0?[e,""]:[e.substr(0,r),e.substr(r+1)]}function pa(e,t=0){return da(e)&&e.length>t?e[t]:void 0}function gt(e,t=0){if(da(e)&&e.length>t)return e[e.length-1-t]}function da(e){return!!(e&&typeof e.length=="number")}function Gt(e="",t=!0,r=`
32
+ `).map(t=>t.trim()).join(" ")};An.O=function(e){return this.inspectOpts.colors=this.useColors,hr.inspect(e,this.inspectOpts)}});var Ss=ie((s0,Es)=>{"use strict";_();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Es.exports=wn():Es.exports=Tn()});var On=ie(Oe=>{"use strict";_();var Nl=Oe&&Oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oe,"__esModule",{value:!0});var Ll=Qe("fs"),Dl=Nl(Ss()),Et=Dl.default("@kwsites/file-exists");function $l(e,t,r){Et("checking %s",e);try{let s=Ll.statSync(e);return s.isFile()&&t?(Et("[OK] path represents a file"),!0):s.isDirectory()&&r?(Et("[OK] path represents a directory"),!0):(Et("[FAIL] path represents something other than a file or directory"),!1)}catch(s){if(s.code==="ENOENT")return Et("[FAIL] path is not accessible: %o",s),!1;throw Et("[FATAL] %o",s),s}}function Fl(e,t=Oe.READABLE){return $l(e,(t&Oe.FILE)>0,(t&Oe.FOLDER)>0)}Oe.exists=Fl;Oe.FILE=1;Oe.FOLDER=2;Oe.READABLE=Oe.FILE+Oe.FOLDER});var Rn=ie(pr=>{"use strict";_();function Ml(e){for(var t in e)pr.hasOwnProperty(t)||(pr[t]=e[t])}Object.defineProperty(pr,"__esModule",{value:!0});Ml(On())});var Ts=ie(dt=>{"use strict";_();Object.defineProperty(dt,"__esModule",{value:!0});dt.createDeferred=dt.deferred=void 0;function As(){let e,t,r="pending";return{promise:new Promise((i,n)=>{e=i,t=n}),done(i){r==="pending"&&(r="resolved",e(i))},fail(i){r==="pending"&&(r="rejected",t(i))},get fulfilled(){return r!=="pending"},get status(){return r}}}dt.deferred=As;dt.createDeferred=As;dt.default=As});_();import{readFileSync as tg,writeFileSync as Dc}from"fs";import{dirname as rg,resolve as $c}from"path";_();var dn=Xe(pn(),1),{program:Ft,createCommand:Pg,createArgument:Ig,createOption:Ng,CommanderError:Lg,InvalidArgumentError:Dg,InvalidOptionArgumentError:$g,Command:Fg,Argument:Mg,Option:Vg,Help:jg}=dn.default;var Fc=Xe(_s(),1),Zr=Xe(xn(),1),Mc=Xe(_n(),1);_();var Er=Xe(Rn(),1),wr=Xe(Ss(),1),Mo=Xe(Ts(),1),St=Xe(Ts(),1);import{Buffer as Wl}from"buffer";import{spawn as Eh}from"child_process";import{EventEmitter as Up}from"events";var Ys=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,Qs=Object.getOwnPropertyNames,jl=Object.prototype.hasOwnProperty,g=(e,t)=>function(){return e&&(t=(0,e[Qs(e)[0]])(e=0)),t},Bl=(e,t)=>function(){return t||(0,e[Qs(e)[0]])((t={exports:{}}).exports,t),t.exports},te=(e,t)=>{for(var r in t)Ys(e,r,{get:t[r],enumerable:!0})},Ul=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Qs(t))!jl.call(e,i)&&i!==r&&Ys(e,i,{get:()=>t[i],enumerable:!(s=Vl(t,i))||s.enumerable});return e},X=e=>Ul(Ys({},"__esModule",{value:!0}),e);function Gl(...e){let t=new String(e);return kr.set(t,e),t}function yr(e){return e instanceof String&&kr.has(e)}function Pn(e){return kr.get(e)||[]}var kr,Bt=g({"src/lib/args/pathspec.ts"(){"use strict";kr=new WeakMap}}),et,at=g({"src/lib/errors/git-error.ts"(){"use strict";et=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),Ut,Tt=g({"src/lib/errors/git-response-error.ts"(){"use strict";at(),Ut=class extends et{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),ua,ca=g({"src/lib/errors/task-configuration-error.ts"(){"use strict";at(),ua=class extends et{constructor(e){super(void 0,e)}}}});function la(e){return typeof e!="function"?xt:e}function ha(e){return typeof e=="function"&&e!==xt}function fa(e,t){let r=e.indexOf(t);return r<=0?[e,""]:[e.substr(0,r),e.substr(r+1)]}function pa(e,t=0){return da(e)&&e.length>t?e[t]:void 0}function gt(e,t=0){if(da(e)&&e.length>t)return e[e.length-1-t]}function da(e){return!!(e&&typeof e.length=="number")}function Gt(e="",t=!0,r=`
33
33
  `){return e.split(r).reduce((s,i)=>{let n=t?i.trim():i;return n&&s.push(n),s},[])}function Xs(e,t){return Gt(e,!0).map(r=>t(r))}function Zs(e){return(0,Er.exists)(e,Er.FOLDER)}function U(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function ma(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function Sr(e,t){if(Array.isArray(e)){let r=e.indexOf(t);r>=0&&e.splice(r,1)}else e.delete(t);return t}function Ge(e){return Array.isArray(e)?e:[e]}function ga(e){return e.replace(/[\s-]+(.)/g,(t,r)=>r.toUpperCase())}function xa(e){return Ge(e).map(String)}function K(e,t=0){if(e==null)return t;let r=parseInt(e,10);return isNaN(r)?t:r}function Vt(e,t){let r=[];for(let s=0,i=e.length;s<i;s++)r.push(t,e[s]);return r}function jt(e){return(Array.isArray(e)?Wl.concat(e):e).toString("utf-8")}function _a(e,t){return Object.assign({},...t.map(r=>r in e?{[r]:e[r]}:{}))}function Ds(e=0){return new Promise(t=>setTimeout(t,e))}function $s(e){if(e!==!1)return e}var At,xt,Wt,Ar=g({"src/lib/utils/util.ts"(){"use strict";At="\0",xt=()=>{},Wt=Object.prototype.toString.call.bind(Object.prototype.toString)}});function We(e,t,r){return t(e)?e:arguments.length>2?r:void 0}function Fs(e,t){let r=yr(e)?"string":typeof e;return/number|string|boolean/.test(r)&&(!t||!t.includes(r))}function Tr(e){return!!e&&Wt(e)==="[object Object]"}function ya(e){return typeof e=="function"}var Ht,pe,va,vr,Js,ba=g({"src/lib/utils/argument-filters.ts"(){"use strict";Ar(),Bt(),Ht=e=>Array.isArray(e),pe=e=>typeof e=="string",va=e=>Array.isArray(e)&&e.every(pe),vr=e=>pe(e)||Array.isArray(e)&&e.every(pe),Js=e=>e==null||"number|boolean|function".includes(typeof e)?!1:Array.isArray(e)||typeof e=="string"||typeof e.length=="number"}}),Ms,Hl=g({"src/lib/utils/exit-codes.ts"(){"use strict";Ms=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",e))(Ms||{})}}),br,ql=g({"src/lib/utils/git-output-streams.ts"(){"use strict";br=class wa{constructor(t,r){this.stdOut=t,this.stdErr=r}asStrings(){return new wa(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),I,nt,zl=g({"src/lib/utils/line-parser.ts"(){"use strict";I=class{constructor(e,t){this.matches=[],this.parse=(r,s)=>(this.resetMatches(),this._regExp.every((i,n)=>this.addMatch(i,n,r(n)))?this.useMatches(s,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}useMatches(e,t){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){let s=r&&e.exec(r);return s&&this.pushMatch(t,s),!!s}pushMatch(e,t){this.matches.push(...t.slice(1))}},nt=class extends I{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function Ca(...e){let t=process.cwd(),r=Object.assign({baseDir:t,...ka},...e.filter(s=>typeof s=="object"&&s));return r.baseDir=r.baseDir||t,r.trimmed=r.trimmed===!0,r}var ka,Kl=g({"src/lib/utils/simple-git-options.ts"(){"use strict";ka={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function ei(e,t=[]){return Tr(e)?Object.keys(e).reduce((r,s)=>{let i=e[s];if(yr(i))r.push(i);else if(Fs(i,["boolean"]))r.push(s+"="+i);else if(Array.isArray(i))for(let n of i)Fs(n,["string","number"])||r.push(s+"="+n);else r.push(s);return r},t):t}function Ce(e,t=0,r=!1){let s=[];for(let i=0,n=t<0?e.length:t;i<n;i++)"string|number".includes(typeof e[i])&&s.push(String(e[i]));return ei(ti(e),s),r||s.push(...Yl(e)),s}function Yl(e){let t=typeof gt(e)=="function";return We(gt(e,t?1:0),Ht,[])}function ti(e){let t=ya(gt(e));return We(gt(e,t?1:0),Tr)}function Z(e,t=!0){let r=la(gt(e));return t||ha(r)?r:void 0}var Ql=g({"src/lib/utils/task-options.ts"(){"use strict";ba(),Ar(),Bt()}});function Vs(e,t){return e(t.stdOut,t.stdErr)}function Ee(e,t,r,s=!0){return Ge(r).forEach(i=>{for(let n=Gt(i,s),a=0,u=n.length;a<u;a++){let c=(f=0)=>{if(!(a+f>=u))return n[a+f]};t.some(({parse:f})=>f(c,e))}}),e}var Xl=g({"src/lib/utils/task-parser.ts"(){"use strict";Ar()}}),Ea={};te(Ea,{ExitCodes:()=>Ms,GitOutputStreams:()=>br,LineParser:()=>I,NOOP:()=>xt,NULL:()=>At,RemoteLineParser:()=>nt,append:()=>U,appendTaskOptions:()=>ei,asArray:()=>Ge,asCamelCase:()=>ga,asFunction:()=>la,asNumber:()=>K,asStringArray:()=>xa,bufferToString:()=>jt,callTaskParser:()=>Vs,createInstanceConfig:()=>Ca,delay:()=>Ds,filterArray:()=>Ht,filterFunction:()=>ya,filterHasLength:()=>Js,filterPlainObject:()=>Tr,filterPrimitives:()=>Fs,filterString:()=>pe,filterStringArray:()=>va,filterStringOrStringArray:()=>vr,filterType:()=>We,first:()=>pa,folderExists:()=>Zs,forEachLineWithContent:()=>Xs,getTrailingOptions:()=>Ce,including:()=>ma,isUserFunction:()=>ha,last:()=>gt,objectToString:()=>Wt,orVoid:()=>$s,parseStringResponse:()=>Ee,pick:()=>_a,prefixedArray:()=>Vt,remove:()=>Sr,splitOn:()=>fa,toLinesWithContent:()=>Gt,trailingFunctionArgument:()=>Z,trailingOptionsArgument:()=>ti});var A=g({"src/lib/utils/index.ts"(){"use strict";ba(),Hl(),ql(),zl(),Kl(),Ql(),Xl(),Ar()}}),Sa={};te(Sa,{CheckRepoActions:()=>js,checkIsBareRepoTask:()=>Ta,checkIsRepoRootTask:()=>Aa,checkIsRepoTask:()=>Zl});function Zl(e){switch(e){case"bare":return Ta();case"root":return Aa()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:Or,parser:ri}}function Aa(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:Or,parser(t){return/^\.(git)?$/.test(t.trim())}}}function Ta(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:Or,parser:ri}}function Jl(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}var js,Or,ri,Oa=g({"src/lib/tasks/check-is-repo.ts"(){"use strict";A(),js=(e=>(e.BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",e))(js||{}),Or=({exitCode:e},t,r,s)=>{if(e===128&&Jl(t))return r(Buffer.from("false"));s(t)},ri=e=>e.trim()==="true"}});function eh(e,t){let r=new Ra(e),s=e?Ia:Pa;return Gt(t).forEach(i=>{let n=i.replace(s,"");r.paths.push(n),(Na.test(n)?r.folders:r.files).push(n)}),r}var Ra,Pa,Ia,Na,th=g({"src/lib/responses/CleanSummary.ts"(){"use strict";A(),Ra=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},Pa=/^[a-z]+\s*/i,Ia=/^[a-z]+\s+[a-z]+\s*/i,Na=/\/$/}}),Bs={};te(Bs,{EMPTY_COMMANDS:()=>Rr,adhocExecTask:()=>La,configurationErrorTask:()=>ke,isBufferTask:()=>$a,isEmptyTask:()=>Fa,straightThroughBufferTask:()=>Da,straightThroughStringTask:()=>_e});function La(e){return{commands:Rr,format:"empty",parser:e}}function ke(e){return{commands:Rr,format:"empty",parser(){throw typeof e=="string"?new ua(e):e}}}function _e(e,t=!1){return{commands:e,format:"utf-8",parser(r){return t?String(r).trim():r}}}function Da(e){return{commands:e,format:"buffer",parser(t){return t}}}function $a(e){return e.format==="buffer"}function Fa(e){return e.format==="empty"||!e.commands.length}var Rr,ee=g({"src/lib/tasks/task.ts"(){"use strict";ca(),Rr=[]}}),Ma={};te(Ma,{CONFIG_ERROR_INTERACTIVE_MODE:()=>si,CONFIG_ERROR_MODE_REQUIRED:()=>ii,CONFIG_ERROR_UNKNOWN_OPTION:()=>ni,CleanOptions:()=>mr,cleanTask:()=>Va,cleanWithOptionsTask:()=>rh,isCleanOptionsArray:()=>sh});function rh(e,t){let{cleanMode:r,options:s,valid:i}=ih(e);return r?i.options?(s.push(...t),s.some(oh)?ke(si):Va(r,s)):ke(ni+JSON.stringify(e)):ke(ii)}function Va(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser(s){return eh(e==="n",s)}}}function sh(e){return Array.isArray(e)&&e.every(t=>ai.has(t))}function ih(e){let t,r=[],s={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,"").split("").forEach(i=>{nh(i)?(t=i,s.cleanMode=!0):s.options=s.options&&ah(r[r.length]=`-${i}`)}),{cleanMode:t,options:r,valid:s}}function nh(e){return e==="f"||e==="n"}function ah(e){return/^-[a-z]$/i.test(e)&&ai.has(e.charAt(1))}function oh(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:e==="--interactive"}var si,ii,ni,mr,ai,ja=g({"src/lib/tasks/clean.ts"(){"use strict";th(),A(),ee(),si="Git clean interactive mode is not supported",ii='Git clean mode parameter ("n" or "f") is required',ni="Git clean unknown option found in: ",mr=(e=>(e.DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",e))(mr||{}),ai=new Set(["i",...xa(Object.values(mr))])}});function uh(e){let t=new Ua;for(let r of Ba(e))t.addValue(r.file,String(r.key),r.value);return t}function ch(e,t){let r=null,s=[],i=new Map;for(let n of Ba(e,t))n.key===t&&(s.push(r=n.value),i.has(n.file)||i.set(n.file,[]),i.get(n.file).push(r));return{key:t,paths:Array.from(i.keys()),scopes:i,value:r,values:s}}function lh(e){return e.replace(/^(file):/,"")}function*Ba(e,t=null){let r=e.split("\0");for(let s=0,i=r.length-1;s<i;){let n=lh(r[s++]),a=r[s++],u=t;if(a.includes(`
34
34
  `)){let c=fa(a,`
35
35
  `);u=c[0],a=c[1]}yield{file:n,key:u,value:a}}}var Ua,hh=g({"src/lib/responses/ConfigList.ts"(){"use strict";A(),Ua=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{})),this._all}addFile(e){if(!(e in this.values)){let t=gt(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,r){let s=this.addFile(e);s.hasOwnProperty(t)?Array.isArray(s[t])?s[t].push(r):s[t]=[s[t],r]:s[t]=r,this._all=void 0}}}});function Os(e,t){return typeof e=="string"&&Us.hasOwnProperty(e)?e:t}function fh(e,t,r,s){let i=["config",`--${s}`];return r&&i.push("--add"),i.push(e,t),{commands:i,format:"utf-8",parser(n){return n}}}function ph(e,t){let r=["config","--null","--show-origin","--get-all",e];return t&&r.splice(1,0,`--${t}`),{commands:r,format:"utf-8",parser(s){return ch(s,e)}}}function dh(e){let t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser(r){return uh(r)}}}function mh(){return{addConfig(e,t,...r){return this._runTask(fh(e,t,r[0]===!0,Os(r[1],"local")),Z(arguments))},getConfig(e,t){return this._runTask(ph(e,Os(t,void 0)),Z(arguments))},listConfig(...e){return this._runTask(dh(Os(e[0],void 0)),Z(arguments))}}}var Us,Ga=g({"src/lib/tasks/config.ts"(){"use strict";hh(),A(),Us=(e=>(e.system="system",e.global="global",e.local="local",e.worktree="worktree",e))(Us||{})}});function gh(e){return Wa.has(e)}var Rs,Wa,Ha=g({"src/lib/tasks/diff-name-status.ts"(){"use strict";Rs=(e=>(e.ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",e))(Rs||{}),Wa=new Set(Object.values(Rs))}});function xh(...e){return new za().param(...e)}function _h(e){let t=new Set,r={};return Xs(e,s=>{let[i,n,a]=s.split(At);t.add(i),(r[i]=r[i]||[]).push({line:K(n),path:i,preview:a})}),{paths:t,results:r}}function yh(){return{grep(e){let t=Z(arguments),r=Ce(arguments);for(let i of qa)if(r.includes(i))return this._runTask(ke(`git.grep: use of "${i}" is not supported.`),t);typeof e=="string"&&(e=xh().param(e));let s=["grep","--null","-n","--full-name",...r,...e];return this._runTask({commands:s,format:"utf-8",parser(i){return _h(i)}},t)}}}var qa,Mt,In,za,Ka=g({"src/lib/tasks/grep.ts"(){"use strict";A(),ee(),qa=["-h"],Mt=Symbol("grepQuery"),za=class{constructor(){this[In]=[]}*[(In=Mt,Symbol.iterator)](){for(let e of this[Mt])yield e}and(...e){return e.length&&this[Mt].push("--and","(",...Vt(e,"-e"),")"),this}param(...e){return this[Mt].push(...Vt(e,"-e")),this}}}}),Ya={};te(Ya,{ResetMode:()=>gr,getResetMode:()=>bh,resetTask:()=>vh});function vh(e,t){let r=["reset"];return Qa(e)&&r.push(`--${e}`),r.push(...t),_e(r)}function bh(e){if(Qa(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function Qa(e){return Xa.includes(e)}var gr,Xa,Za=g({"src/lib/tasks/reset.ts"(){"use strict";ee(),gr=(e=>(e.MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",e))(gr||{}),Xa=Array.from(Object.values(gr))}});function wh(){return(0,wr.default)("simple-git")}function Nn(e,t,r){return!t||!String(t).replace(/\s*/,"")?r?(s,...i)=>{e(s,...i),r(s,...i)}:e:(s,...i)=>{e(`%s ${s}`,t,...i),r&&r(s,...i)}}function Ch(e,t,{namespace:r}){if(typeof e=="string")return e;let s=t&&t.namespace||"";return s.startsWith(r)?s.substr(r.length+1):s||r}function oi(e,t,r,s=wh()){let i=e&&`[${e}]`||"",n=[],a=typeof t=="string"?s.extend(t):t,u=Ch(We(t,pe),a,s);return f(r);function c(l,h){return U(n,oi(e,u.replace(/^[^:]+/,l),h,s))}function f(l){let h=l&&`[${l}]`||"",p=a&&Nn(a,h)||xt,d=Nn(s,`${i} ${h}`,p);return Object.assign(a?p:d,{label:e,sibling:c,info:d,step:f})}}var Ja=g({"src/lib/git-logger.ts"(){"use strict";A(),wr.default.formatters.L=e=>String(Js(e)?e.length:"-"),wr.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):Wt(e)}}),eo,kh=g({"src/lib/runners/tasks-pending-queue.ts"(){"use strict";at(),Ja(),eo=class Gs{constructor(t="GitExecutor"){this.logLabel=t,this._queue=new Map}withProgress(t){return this._queue.get(t)}createProgress(t){let r=Gs.getName(t.commands[0]),s=oi(this.logLabel,r);return{task:t,logger:s,name:r}}push(t){let r=this.createProgress(t);return r.logger("Adding task to the queue, commands = %o",t.commands),this._queue.set(t,r),r}fatal(t){for(let[r,{logger:s}]of Array.from(this._queue.entries()))r===t.task?(s.info("Failed %o",t),s("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):s.info("A fatal exception occurred in a previous task, the queue has been purged: %o",t.message),this.complete(r);if(this._queue.size!==0)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(t){this.withProgress(t)&&this._queue.delete(t)}attempt(t){let r=this.withProgress(t);if(!r)throw new et(void 0,"TasksPendingQueue: attempt called for an unknown task");return r.logger("Starting task"),r}static getName(t="empty"){return`task:${t}:${++Gs.counter}`}static{this.counter=0}}}});function mt(e,t){return{method:pa(e.commands)||"",commands:t}}function Sh(e,t){return r=>{t("[ERROR] child process exception %o",r),e.push(Buffer.from(String(r.stack),"ascii"))}}function Ln(e,t,r,s){return i=>{r("%s received %L bytes",t,i),s("%B",i),e.push(i)}}var Ws,Ah=g({"src/lib/runners/git-executor-chain.ts"(){"use strict";at(),ee(),A(),kh(),Ws=class{constructor(e,t,r){this._executor=e,this._scheduler=t,this._plugins=r,this._chain=Promise.resolve(),this._queue=new eo}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}async attemptTask(e){let t=await this._scheduler.next(),r=()=>this._queue.complete(e);try{let{logger:s}=this._queue.attempt(e);return await(Fa(e)?this.attemptEmptyTask(e,s):this.attemptRemoteTask(e,s))}catch(s){throw this.onFatalException(e,s)}finally{r(),t()}}onFatalException(e,t){let r=t instanceof et?Object.assign(t,{task:e}):new et(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(r),r}async attemptRemoteTask(e,t){let r=this._plugins.exec("spawn.binary","",mt(e,e.commands)),s=this._plugins.exec("spawn.args",[...e.commands],mt(e,e.commands)),i=await this.gitResponse(e,r,s,this.outputHandler,t.step("SPAWN")),n=await this.handleTaskData(e,s,i,t.step("HANDLE"));return t("passing response to task's parser as a %s",e.format),$a(e)?Vs(e.parser,n):Vs(e.parser,n.asStrings())}async attemptEmptyTask(e,t){return t("empty task bypassing child process to call to task's parser"),e.parser(this)}handleTaskData(e,t,r,s){let{exitCode:i,rejection:n,stdOut:a,stdErr:u}=r;return new Promise((c,f)=>{s("Preparing to handle process response exitCode=%d stdOut=",i);let{error:l}=this._plugins.exec("task.error",{error:n},{...mt(e,t),...r});if(l&&e.onError)return s.info("exitCode=%s handling with custom error handler"),e.onError(r,l,h=>{s.info("custom error handler treated as success"),s("custom error returned a %s",Wt(h)),c(new br(Array.isArray(h)?Buffer.concat(h):h,Buffer.concat(u)))},f);if(l)return s.info("handling as error: exitCode=%s stdErr=%s rejection=%o",i,u.length,n),f(l);s.info("retrieving task output complete"),c(new br(Buffer.concat(a),Buffer.concat(u)))})}async gitResponse(e,t,r,s,i){let n=i.sibling("output"),a=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},mt(e,e.commands));return new Promise(u=>{let c=[],f=[];i.info("%s %o",t,r),i("%O",a);let l=this._beforeSpawn(e,r);if(l)return u({stdOut:c,stdErr:f,exitCode:9901,rejection:l});this._plugins.exec("spawn.before",void 0,{...mt(e,r),kill(p){l=p||l}});let h=Eh(t,r,a);h.stdout.on("data",Ln(c,"stdOut",i,n.step("stdOut"))),h.stderr.on("data",Ln(f,"stdErr",i,n.step("stdErr"))),h.on("error",Sh(f,i)),s&&(i("Passing child process stdOut/stdErr to custom outputHandler"),s(t,h.stdout,h.stderr,[...r])),this._plugins.exec("spawn.after",void 0,{...mt(e,r),spawned:h,close(p,d){u({stdOut:c,stdErr:f,exitCode:p,rejection:l||d})},kill(p){h.killed||(l=p,h.kill("SIGINT"))}})})}_beforeSpawn(e,t){let r;return this._plugins.exec("spawn.before",void 0,{...mt(e,t),kill(s){r=s||r}}),r}}}}),to={};te(to,{GitExecutor:()=>ro});var ro,Th=g({"src/lib/runners/git-executor.ts"(){"use strict";Ah(),ro=class{constructor(e,t,r){this.cwd=e,this._scheduler=t,this._plugins=r,this._chain=new Ws(this,this._scheduler,this._plugins)}chain(){return new Ws(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function Oh(e,t,r=xt){let s=n=>{r(null,n)},i=n=>{n?.task===e&&r(n instanceof Ut?Rh(n):n,void 0)};t.then(s,i)}function Rh(e){let t=s=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${s} should be GitResponseError.git.${s}, this will no longer be available in version 3`),t=xt};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(r,{}));function r(s,i){return i in e||(s[i]={enumerable:!1,configurable:!1,get(){return t(i),e.git[i]}}),s}}var Ph=g({"src/lib/task-callback.ts"(){"use strict";Tt(),A()}});function Dn(e,t){return La(r=>{if(!Zs(e))throw new Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||r).cwd=e})}var Ih=g({"src/lib/tasks/change-working-directory.ts"(){"use strict";A(),ee()}});function Ps(e){let t=["checkout",...e];return t[1]==="-b"&&t.includes("-B")&&(t[1]=Sr(t,"-B")),_e(t)}function Nh(){return{checkout(){return this._runTask(Ps(Ce(arguments,1)),Z(arguments))},checkoutBranch(e,t){return this._runTask(Ps(["-b",e,t,...Ce(arguments)]),Z(arguments))},checkoutLocalBranch(e){return this._runTask(Ps(["-b",e,...Ce(arguments)]),Z(arguments))}}}var Lh=g({"src/lib/tasks/checkout.ts"(){"use strict";A(),ee()}});function Dh(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function $h(){return{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser(e){return Ee(Dh(),[so],e)}})}}}var so,Fh=g({"src/lib/tasks/count-objects.ts"(){"use strict";A(),so=new I(/([a-z-]+): (\d+)$/,(e,[t,r])=>{let s=ga(t);e.hasOwnProperty(s)&&(e[s]=K(r))})}});function Mh(e){return Ee({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},io,e)}var io,Vh=g({"src/lib/parsers/parse-commit.ts"(){"use strict";A(),io=[new I(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,r,s])=>{e.branch=t,e.commit=s,e.root=!!r}),new I(/\s*Author:\s(.+)/i,(e,[t])=>{let r=t.split("<"),s=r.pop();!s||!s.includes("@")||(e.author={email:s.substr(0,s.length-1),name:r.join("<").trim()})}),new I(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,r,s])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(r,10)||0,e.summary.deletions=parseInt(s,10)||0}),new I(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,r,s])=>{e.summary.changes=parseInt(t,10)||0;let i=parseInt(r,10)||0;s==="-"?e.summary.deletions=i:s==="+"&&(e.summary.insertions=i)})]}});function jh(e,t,r){return{commands:["-c","core.abbrev=40","commit",...Vt(e,"-m"),...t,...r],format:"utf-8",parser:Mh}}function Bh(){return{commit(t,...r){let s=Z(arguments),i=e(t)||jh(Ge(t),Ge(We(r[0],vr,[])),[...We(r[1],Ht,[]),...Ce(arguments,0,!0)]);return this._runTask(i,s)}};function e(t){return!vr(t)&&ke("git.commit: requires the commit message to be supplied as a string/string[]")}}var Uh=g({"src/lib/tasks/commit.ts"(){"use strict";Vh(),A(),ee()}});function Gh(){return{firstCommit(){return this._runTask(_e(["rev-list","--max-parents=0","HEAD"],!0),Z(arguments))}}}var Wh=g({"src/lib/tasks/first-commit.ts"(){"use strict";A(),ee()}});function Hh(e,t){let r=["hash-object",e];return t&&r.push("-w"),_e(r,!0)}var qh=g({"src/lib/tasks/hash-object.ts"(){"use strict";ee()}});function zh(e,t,r){let s=String(r).trim(),i;if(i=no.exec(s))return new xr(e,t,!1,i[1]);if(i=ao.exec(s))return new xr(e,t,!0,i[1]);let n="",a=s.split(" ");for(;a.length;)if(a.shift()==="in"){n=a.join(" ");break}return new xr(e,t,/^re/i.test(s),n)}var xr,no,ao,Kh=g({"src/lib/responses/InitSummary.ts"(){"use strict";xr=class{constructor(e,t,r,s){this.bare=e,this.path=t,this.existing=r,this.gitDir=s}},no=/^Init.+ repository in (.+)$/,ao=/^Rein.+ in (.+)$/}});function Yh(e){return e.includes(ui)}function Qh(e=!1,t,r){let s=["init",...r];return e&&!Yh(s)&&s.splice(1,0,ui),{commands:s,format:"utf-8",parser(i){return zh(s.includes("--bare"),t,i)}}}var ui,Xh=g({"src/lib/tasks/init.ts"(){"use strict";Kh(),ui="--bare"}});function ci(e){for(let t=0;t<e.length;t++){let r=li.exec(e[t]);if(r)return`--${r[1]}`}return""}function Zh(e){return li.test(e)}var li,qt=g({"src/lib/args/log-format.ts"(){"use strict";li=/^--(stat|numstat|name-only|name-status)(=|$)/}}),oo,Jh=g({"src/lib/responses/DiffSummary.ts"(){"use strict";oo=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function uo(e=""){let t=co[e];return r=>Ee(new oo,t,r,!1)}var Is,$n,Fn,Mn,co,lo=g({"src/lib/parsers/parse-diff-summary.ts"(){"use strict";qt(),Jh(),Ha(),A(),Is=[new I(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,r,s=""])=>{e.files.push({file:t.trim(),changes:K(r),insertions:s.replace(/[^+]/g,"").length,deletions:s.replace(/[^-]/g,"").length,binary:!1})}),new I(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,r,s])=>{e.files.push({file:t.trim(),before:K(r),after:K(s),binary:!0})}),new I(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,r])=>{let s=/(\d+) i/.exec(r),i=/(\d+) d/.exec(r);e.changed=K(t),e.insertions=K(s?.[1]),e.deletions=K(i?.[1])})],$n=[new I(/(\d+)\t(\d+)\t(.+)$/,(e,[t,r,s])=>{let i=K(t),n=K(r);e.changed++,e.insertions+=i,e.deletions+=n,e.files.push({file:s,changes:i+n,insertions:i,deletions:n,binary:!1})}),new I(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],Fn=[new I(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],Mn=[new I(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,r,s,i,n])=>{e.changed++,e.files.push({file:n??s,changes:0,insertions:0,deletions:0,binary:!1,status:$s(gh(t)&&t),from:$s(!!n&&s!==n&&s),similarity:K(r)})})],co={"":Is,"--stat":Is,"--numstat":$n,"--name-status":Mn,"--name-only":Fn}}});function ef(e,t){return t.reduce((r,s,i)=>(r[s]=e[i]||"",r),Object.create({diff:null}))}function ho(e=pi,t=fo,r=""){let s=uo(r);return function(i){let n=Gt(i.trim(),!1,hi).map(function(a){let u=a.split(fi),c=ef(u[0].split(e),t);return u.length>1&&u[1].trim()&&(c.diff=s(u[1])),c});return{all:n,latest:n.length&&n[0]||null,total:n.length}}}var hi,fi,pi,fo,po=g({"src/lib/parsers/parse-list-log-summary.ts"(){"use strict";A(),lo(),qt(),hi="\xF2\xF2\xF2\xF2\xF2\xF2 ",fi=" \xF2\xF2",pi=" \xF2 ",fo=["hash","date","message","refs","author_name","author_email"]}}),mo={};te(mo,{diffSummaryTask:()=>tf,validateLogFormatConfig:()=>Pr});function tf(e){let t=ci(e),r=["diff"];return t===""&&(t="--stat",r.push("--stat=4096")),r.push(...e),Pr(r)||{commands:r,format:"utf-8",parser:uo(t)}}function Pr(e){let t=e.filter(Zh);if(t.length>1)return ke(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`);if(t.length&&e.includes("-z"))return ke(`Summary flag ${t} parsing is not compatible with null termination option '-z'`)}var di=g({"src/lib/tasks/diff.ts"(){"use strict";qt(),lo(),ee()}});function rf(e,t){let r=[],s=[];return Object.keys(e).forEach(i=>{r.push(i),s.push(String(e[i]))}),[r,s.join(t)]}function sf(e){return Object.keys(e).reduce((t,r)=>(r in Hs||(t[r]=e[r]),t),{})}function go(e={},t=[]){let r=We(e.splitter,pe,pi),s=Tr(e.format)?e.format:{hash:"%H",date:e.strictDate===!1?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:e.mailMap!==!1?"%aN":"%an",author_email:e.mailMap!==!1?"%aE":"%ae"},[i,n]=rf(s,r),a=[],u=[`--pretty=format:${hi}${n}${fi}`,...t],c=e.n||e["max-count"]||e.maxCount;if(c&&u.push(`--max-count=${c}`),e.from||e.to){let f=e.symmetric!==!1?"...":"..";a.push(`${e.from||""}${f}${e.to||""}`)}return pe(e.file)&&u.push("--follow",Gl(e.file)),ei(sf(e),u),{fields:i,splitter:r,commands:[...u,...a]}}function nf(e,t,r){let s=ho(e,t,ci(r));return{commands:["log",...r],format:"utf-8",parser:s}}function af(){return{log(...r){let s=Z(arguments),i=go(ti(arguments),We(arguments[0],Ht)),n=t(...r)||Pr(i.commands)||e(i);return this._runTask(n,s)}};function e(r){return nf(r.splitter,r.fields,r.commands)}function t(r,s){return pe(r)&&pe(s)&&ke("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}}var Hs,xo=g({"src/lib/tasks/log.ts"(){"use strict";qt(),Bt(),po(),A(),ee(),di(),Hs=(e=>(e[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",e))(Hs||{})}}),_r,_o,of=g({"src/lib/responses/MergeSummary.ts"(){"use strict";_r=class{constructor(e,t=null,r){this.reason=e,this.file=t,this.meta=r}toString(){return`${this.file}:${this.reason}`}},_o=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),qs,yo,uf=g({"src/lib/responses/PullSummary.ts"(){"use strict";qs=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},yo=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function Ns(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function Vn(e){let t=/^\s*(\d+)/.exec(e),r=/delta (\d+)/i.exec(e);return{count:K(t&&t[1]||"0"),delta:K(r&&r[1]||"0")}}var vo,cf=g({"src/lib/parsers/parse-remote-objects.ts"(){"use strict";A(),vo=[new nt(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{let s=t.toLowerCase(),i=Ns(e.remoteMessages);Object.assign(i,{[s]:K(r)})}),new nt(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{let s=t.toLowerCase(),i=Ns(e.remoteMessages);Object.assign(i,{[s]:K(r)})}),new nt(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,s])=>{let i=Ns(e.remoteMessages);i.total=Vn(t),i.reused=Vn(r),i.packReused=K(s)})]}});function bo(e,t){return Ee({remoteMessages:new Co},wo,t)}var wo,Co,ko=g({"src/lib/parsers/parse-remote-messages.ts"(){"use strict";A(),cf(),wo=[new nt(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...vo,new nt([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new nt([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,s])=>{e.remoteMessages.vulnerabilities={count:K(t),summary:r,url:s}})],Co=class{constructor(){this.all=[]}}}});function lf(e,t){let r=Ee(new yo,Eo,[e,t]);return r.message&&r}var jn,Bn,Un,Gn,Eo,Wn,mi,So=g({"src/lib/parsers/parse-pull.ts"(){"use strict";uf(),A(),ko(),jn=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,Bn=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Un=/^(create|delete) mode \d+ (.+)/,Gn=[new I(jn,(e,[t,r,s])=>{e.files.push(t),r&&(e.insertions[t]=r.length),s&&(e.deletions[t]=s.length)}),new I(Bn,(e,[t,,r,,s])=>r!==void 0||s!==void 0?(e.summary.changes=+t||0,e.summary.insertions=+r||0,e.summary.deletions=+s||0,!0):!1),new I(Un,(e,[t,r])=>{U(e.files,r),U(t==="create"?e.created:e.deleted,r)})],Eo=[new I(/^from\s(.+)$/i,(e,[t])=>void(e.remote=t)),new I(/^fatal:\s(.+)$/,(e,[t])=>void(e.message=t)),new I(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,r,s,i])=>{e.branch.local=s,e.hash.local=t,e.branch.remote=i,e.hash.remote=r})],Wn=(e,t)=>Ee(new qs,Gn,[e,t]),mi=(e,t)=>Object.assign(new qs,Wn(e,t),bo(e,t))}}),Hn,Ao,qn,hf=g({"src/lib/parsers/parse-merge.ts"(){"use strict";of(),A(),So(),Hn=[new I(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new I(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new _r(t,r))}),new I(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,s])=>{e.conflicts.push(new _r(t,r,{deleteRef:s}))}),new I(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new _r(t,null))}),new I(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],Ao=(e,t)=>Object.assign(qn(e,t),mi(e,t)),qn=e=>Ee(new _o,Hn,e)}});function zn(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(t,r){let s=Ao(t,r);if(s.failed)throw new Ut(s);return s}}:ke("Git.merge requires at least one option")}var ff=g({"src/lib/tasks/merge.ts"(){"use strict";Tt(),hf(),ee()}});function pf(e,t,r){let s=r.includes("deleted"),i=r.includes("tag")||/^refs\/tags/.test(e),n=!r.includes("new");return{deleted:s,tag:i,branch:!i,new:!n,alreadyUpdated:n,local:e,remote:t}}var Kn,To,Yn,df=g({"src/lib/parsers/parse-push.ts"(){"use strict";A(),ko(),Kn=[new I(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new I(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref={...e.ref||{},local:t}}),new I(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,s])=>{e.pushed.push(pf(t,r,s))}),new I(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,s])=>{e.branch={...e.branch||{},local:t,remote:r,remoteName:s}}),new I(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,s,i])=>{e.update={head:{local:t,remote:r},hash:{from:s,to:i}}})],To=(e,t)=>{let r=Yn(e,t),s=bo(e,t);return{...r,...s}},Yn=(e,t)=>Ee({pushed:[]},Kn,[e,t])}}),Oo={};te(Oo,{pushTagsTask:()=>mf,pushTask:()=>gi});function mf(e={},t){return U(t,"--tags"),gi(e,t)}function gi(e={},t){let r=["push",...t];return e.branch&&r.splice(1,0,e.branch),e.remote&&r.splice(1,0,e.remote),Sr(r,"-v"),U(r,"--verbose"),U(r,"--porcelain"),{commands:r,format:"utf-8",parser:To}}var Ro=g({"src/lib/tasks/push.ts"(){"use strict";df(),A()}});function gf(){return{showBuffer(){let e=["show",...Ce(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(Da(e),Z(arguments))},show(){let e=["show",...Ce(arguments,1)];return this._runTask(_e(e),Z(arguments))}}}var xf=g({"src/lib/tasks/show.ts"(){"use strict";A(),ee()}}),Qn,Po,_f=g({"src/lib/responses/FileStatusSummary.ts"(){"use strict";Qn=/^(.+)\0(.+)$/,Po=class{constructor(e,t,r){if(this.path=e,this.index=t,this.working_dir=r,t==="R"||r==="R"){let s=Qn.exec(e)||[null,e,e];this.from=s[2]||"",this.path=s[1]||""}}}}});function Xn(e){let[t,r]=e.split(At);return{from:r||t,to:t}}function Re(e,t,r){return[`${e}${t}`,r]}function Ls(e,...t){return t.map(r=>Re(e,r,(s,i)=>U(s.conflicted,i)))}function yf(e,t){let r=t.trim();switch(" "){case r.charAt(2):return s(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return s(" ",r.charAt(0),r.substr(2));default:return}function s(i,n,a){let u=`${i}${n}`,c=Io.get(u);c&&c(e,a),u!=="##"&&u!=="!!"&&e.files.push(new Po(a,i,n))}}var Zn,Io,No,vf=g({"src/lib/responses/StatusSummary.ts"(){"use strict";A(),_f(),Zn=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},Io=new Map([Re(" ","A",(e,t)=>U(e.created,t)),Re(" ","D",(e,t)=>U(e.deleted,t)),Re(" ","M",(e,t)=>U(e.modified,t)),Re("A"," ",(e,t)=>U(e.created,t)&&U(e.staged,t)),Re("A","M",(e,t)=>U(e.created,t)&&U(e.staged,t)&&U(e.modified,t)),Re("D"," ",(e,t)=>U(e.deleted,t)&&U(e.staged,t)),Re("M"," ",(e,t)=>U(e.modified,t)&&U(e.staged,t)),Re("M","M",(e,t)=>U(e.modified,t)&&U(e.staged,t)),Re("R"," ",(e,t)=>{U(e.renamed,Xn(t))}),Re("R","M",(e,t)=>{let r=Xn(t);U(e.renamed,r),U(e.modified,r.to)}),Re("!","!",(e,t)=>{U(e.ignored=e.ignored||[],t)}),Re("?","?",(e,t)=>U(e.not_added,t)),...Ls("A","A","U"),...Ls("D","D","U"),...Ls("U","A","D","U"),["##",(e,t)=>{let r=/ahead (\d+)/,s=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,n=/\.{3}(\S*)/,a=/\son\s([\S]+)$/,u;u=r.exec(t),e.ahead=u&&+u[1]||0,u=s.exec(t),e.behind=u&&+u[1]||0,u=i.exec(t),e.current=u&&u[1],u=n.exec(t),e.tracking=u&&u[1],u=a.exec(t),e.current=u&&u[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),No=function(e){let t=e.split(At),r=new Zn;for(let s=0,i=t.length;s<i;){let n=t[s++].trim();n&&(n.charAt(0)==="R"&&(n+=At+(t[s++]||"")),yf(r,n))}return r}}});function bf(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...e.filter(r=>!Lo.includes(r))],parser(r){return No(r)}}}var Lo,wf=g({"src/lib/tasks/status.ts"(){"use strict";vf(),Lo=["--null","-z"]}});function Cr(e=0,t=0,r=0,s="",i=!0){return Object.defineProperty({major:e,minor:t,patch:r,agent:s,installed:i},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function Cf(){return Cr(0,0,0,"",!1)}function kf(){return{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:Ef,onError(e,t,r,s){if(e.exitCode===-2)return r(Buffer.from(xi));s(t)}})}}}function Ef(e){return e===xi?Cf():Ee(Cr(0,0,0,e),Do,e)}var xi,Do,Sf=g({"src/lib/tasks/version.ts"(){"use strict";A(),xi="installed=false",Do=[new I(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,r,s,i=""])=>{Object.assign(e,Cr(K(t),K(r),K(s),i))}),new I(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,r,s,i=""])=>{Object.assign(e,Cr(K(t),K(r),s,i))})]}}),$o={};te($o,{SimpleGitApi:()=>zs});var zs,Af=g({"src/lib/simple-git-api.ts"(){"use strict";Ph(),Ih(),Lh(),Fh(),Uh(),Ga(),Wh(),Ka(),qh(),Xh(),xo(),ff(),Ro(),xf(),wf(),ee(),Sf(),A(),zs=class{constructor(e){this._executor=e}_runTask(e,t){let r=this._executor.chain(),s=r.push(e);return t&&Oh(e,s,t),Object.create(this,{then:{value:s.then.bind(s)},catch:{value:s.catch.bind(s)},_executor:{value:r}})}add(e){return this._runTask(_e(["add",...Ge(e)]),Z(arguments))}cwd(e){let t=Z(arguments);return typeof e=="string"?this._runTask(Dn(e,this._executor),t):typeof e?.path=="string"?this._runTask(Dn(e.path,e.root&&this._executor||void 0),t):this._runTask(ke("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(Hh(e,t===!0),Z(arguments))}init(e){return this._runTask(Qh(e===!0,this._executor.cwd,Ce(arguments)),Z(arguments))}merge(){return this._runTask(zn(Ce(arguments)),Z(arguments))}mergeFromTo(e,t){return pe(e)&&pe(t)?this._runTask(zn([e,t,...Ce(arguments)]),Z(arguments,!1)):this._runTask(ke("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=gi({remote:We(arguments[0],pe),branch:We(arguments[1],pe)},Ce(arguments));return this._runTask(e,Z(arguments))}stash(){return this._runTask(_e(["stash",...Ce(arguments)]),Z(arguments))}status(){return this._runTask(bf(Ce(arguments)),Z(arguments))}},Object.assign(zs.prototype,Nh(),Bh(),mh(),$h(),Gh(),yh(),af(),gf(),kf())}}),Fo={};te(Fo,{Scheduler:()=>Vo});var Jn,Vo,Tf=g({"src/lib/runners/scheduler.ts"(){"use strict";A(),Ja(),Jn=(()=>{let e=0;return()=>{e++;let{promise:t,done:r}=(0,Mo.createDeferred)();return{promise:t,done:r,id:e}}})(),Vo=class{constructor(e=2){this.concurrency=e,this.logger=oi("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);return}let e=U(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),Sr(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=U(this.pending,Jn());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),jo={};te(jo,{applyPatchTask:()=>Of});function Of(e,t){return _e(["apply",...t,...e])}var Rf=g({"src/lib/tasks/apply-patch.ts"(){"use strict";ee()}});function Pf(e,t){return{branch:e,hash:t,success:!0}}function If(e){return{branch:e,hash:null,success:!1}}var Bo,Nf=g({"src/lib/responses/BranchDeleteSummary.ts"(){"use strict";Bo=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function Uo(e,t){return t===1&&Ks.test(e)}var ea,Ks,ta,Ir,Lf=g({"src/lib/parsers/parse-branch-delete.ts"(){"use strict";Nf(),A(),ea=/(\S+)\s+\(\S+\s([^)]+)\)/,Ks=/^error[^']+'([^']+)'/m,ta=[new I(ea,(e,[t,r])=>{let s=Pf(t,r);e.all.push(s),e.branches[t]=s}),new I(Ks,(e,[t])=>{let r=If(t);e.errors.push(r),e.all.push(r),e.branches[t]=r})],Ir=(e,t)=>Ee(new Bo,ta,[e,t])}}),Go,Df=g({"src/lib/responses/BranchSummary.ts"(){"use strict";Go=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,r,s,i){e==="*"&&(this.detached=t,this.current=r),this.all.push(r),this.branches[r]={current:e==="*",linkedWorkTree:e==="+",name:r,commit:s,label:i}}}}});function ra(e){return e?e.charAt(0):""}function Wo(e){return Ee(new Go,Ho,e)}var Ho,$f=g({"src/lib/parsers/parse-branch.ts"(){"use strict";Df(),A(),Ho=[new I(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,s,i])=>{e.push(ra(t),!0,r,s,i)}),new I(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(e,[t,r,s,i])=>{e.push(ra(t),!1,r,s,i)})]}}),qo={};te(qo,{branchLocalTask:()=>Mf,branchTask:()=>Ff,containsDeleteBranchCommand:()=>zo,deleteBranchTask:()=>jf,deleteBranchesTask:()=>Vf});function zo(e){let t=["-d","-D","--delete"];return e.some(r=>t.includes(r))}function Ff(e){let t=zo(e),r=["branch",...e];return r.length===1&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser(s,i){return t?Ir(s,i).all[0]:Wo(s)}}}function Mf(){return{format:"utf-8",commands:["branch","-v"],parser:Wo}}function Vf(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(r,s){return Ir(r,s)},onError({exitCode:r,stdOut:s},i,n,a){if(!Uo(String(i),r))return a(i);n(s)}}}function jf(e,t=!1){let r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(s,i){return Ir(s,i).branches[e]},onError({exitCode:s,stdErr:i,stdOut:n},a,u,c){if(!Uo(String(a),s))return c(a);throw new Ut(r.parser(jt(n),jt(i)),String(a))}};return r}var Bf=g({"src/lib/tasks/branch.ts"(){"use strict";Tt(),Lf(),$f(),A()}}),Ko,Uf=g({"src/lib/responses/CheckIgnore.ts"(){"use strict";Ko=e=>e.split(/\n/g).map(t=>t.trim()).filter(t=>!!t)}}),Yo={};te(Yo,{checkIgnoreTask:()=>Gf});function Gf(e){return{commands:["check-ignore",...e],format:"utf-8",parser:Ko}}var Wf=g({"src/lib/tasks/check-ignore.ts"(){"use strict";Uf()}}),Qo={};te(Qo,{cloneMirrorTask:()=>qf,cloneTask:()=>Xo});function Hf(e){return/^--upload-pack(=|$)/.test(e)}function Xo(e,t,r){let s=["clone",...r];return pe(e)&&s.push(e),pe(t)&&s.push(t),s.find(Hf)?ke("git.fetch: potential exploit argument blocked."):_e(s)}function qf(e,t,r){return U(r,"--mirror"),Xo(e,t,r)}var zf=g({"src/lib/tasks/clone.ts"(){"use strict";ee(),A()}});function Kf(e,t){return Ee({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},Zo,[e,t])}var Zo,Yf=g({"src/lib/parsers/parse-fetch.ts"(){"use strict";A(),Zo=[new I(/From (.+)$/,(e,[t])=>{e.remote=t}),new I(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.branches.push({name:t,tracking:r})}),new I(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.tags.push({name:t,tracking:r})}),new I(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new I(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,r,s,i])=>{e.updated.push({name:s,tracking:i,to:r,from:t})})]}}),Jo={};te(Jo,{fetchTask:()=>Xf});function Qf(e){return/^--upload-pack(=|$)/.test(e)}function Xf(e,t,r){let s=["fetch",...r];return e&&t&&s.push(e,t),s.find(Qf)?ke("git.fetch: potential exploit argument blocked."):{commands:s,format:"utf-8",parser:Kf}}var Zf=g({"src/lib/tasks/fetch.ts"(){"use strict";Yf(),ee()}});function Jf(e){return Ee({moves:[]},eu,e)}var eu,ep=g({"src/lib/parsers/parse-move.ts"(){"use strict";A(),eu=[new I(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})]}}),tu={};te(tu,{moveTask:()=>tp});function tp(e,t){return{commands:["mv","-v",...Ge(e),t],format:"utf-8",parser:Jf}}var rp=g({"src/lib/tasks/move.ts"(){"use strict";ep(),A()}}),ru={};te(ru,{pullTask:()=>sp});function sp(e,t,r){let s=["pull",...r];return e&&t&&s.splice(1,0,e,t),{commands:s,format:"utf-8",parser(i,n){return mi(i,n)},onError(i,n,a,u){let c=lf(jt(i.stdOut),jt(i.stdErr));if(c)return u(new Ut(c));u(n)}}}var ip=g({"src/lib/tasks/pull.ts"(){"use strict";Tt(),So(),A()}});function np(e){let t={};return su(e,([r])=>t[r]={name:r}),Object.values(t)}function ap(e){let t={};return su(e,([r,s,i])=>{t.hasOwnProperty(r)||(t[r]={name:r,refs:{fetch:"",push:""}}),i&&s&&(t[r].refs[i.replace(/[^a-z]/g,"")]=s)}),Object.values(t)}function su(e,t){Xs(e,r=>t(r.split(/\s+/)))}var op=g({"src/lib/responses/GetRemoteSummary.ts"(){"use strict";A()}}),iu={};te(iu,{addRemoteTask:()=>up,getRemotesTask:()=>cp,listRemotesTask:()=>lp,remoteTask:()=>hp,removeRemoteTask:()=>fp});function up(e,t,r){return _e(["remote","add",...r,e,t])}function cp(e){let t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?ap:np}}function lp(e){let t=[...e];return t[0]!=="ls-remote"&&t.unshift("ls-remote"),_e(t)}function hp(e){let t=[...e];return t[0]!=="remote"&&t.unshift("remote"),_e(t)}function fp(e){return _e(["remote","remove",e])}var pp=g({"src/lib/tasks/remote.ts"(){"use strict";op(),ee()}}),nu={};te(nu,{stashListTask:()=>dp});function dp(e={},t){let r=go(e),s=["stash","list",...r.commands,...t],i=ho(r.splitter,r.fields,ci(s));return Pr(s)||{commands:s,format:"utf-8",parser:i}}var mp=g({"src/lib/tasks/stash-list.ts"(){"use strict";qt(),po(),di(),xo()}}),au={};te(au,{addSubModuleTask:()=>gp,initSubModuleTask:()=>xp,subModuleTask:()=>Nr,updateSubModuleTask:()=>_p});function gp(e,t){return Nr(["add",e,t])}function xp(e){return Nr(["init",...e])}function Nr(e){let t=[...e];return t[0]!=="submodule"&&t.unshift("submodule"),_e(t)}function _p(e){return Nr(["update",...e])}var yp=g({"src/lib/tasks/sub-module.ts"(){"use strict";ee()}});function vp(e,t){let r=isNaN(e),s=isNaN(t);return r!==s?r?1:-1:r?ou(e,t):0}function ou(e,t){return e===t?0:e>t?1:-1}function bp(e){return e.trim()}function dr(e){return typeof e=="string"&&parseInt(e.replace(/^\D+/g,""),10)||0}var sa,uu,wp=g({"src/lib/responses/TagList.ts"(){"use strict";sa=class{constructor(e,t){this.all=e,this.latest=t}},uu=function(e,t=!1){let r=e.split(`
36
- `).map(bp).filter(Boolean);t||r.sort(function(i,n){let a=i.split("."),u=n.split(".");if(a.length===1||u.length===1)return vp(dr(a[0]),dr(u[0]));for(let c=0,f=Math.max(a.length,u.length);c<f;c++){let l=ou(dr(a[c]),dr(u[c]));if(l)return l}return 0});let s=t?r[0]:[...r].reverse().find(i=>i.indexOf(".")>=0);return new sa(r,s)}}}),cu={};te(cu,{addAnnotatedTagTask:()=>Ep,addTagTask:()=>kp,tagListTask:()=>Cp});function Cp(e=[]){let t=e.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...e],parser(r){return uu(r,t)}}}function kp(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}function Ep(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}var Sp=g({"src/lib/tasks/tag.ts"(){"use strict";wp()}}),Ap=Bl({"src/git.js"(e,t){"use strict";var{GitExecutor:r}=(Th(),X(to)),{SimpleGitApi:s}=(Af(),X($o)),{Scheduler:i}=(Tf(),X(Fo)),{configurationErrorTask:n}=(ee(),X(Bs)),{asArray:a,filterArray:u,filterPrimitives:c,filterString:f,filterStringOrStringArray:l,filterType:h,getTrailingOptions:p,trailingFunctionArgument:d,trailingOptionsArgument:O}=(A(),X(Ea)),{applyPatchTask:N}=(Rf(),X(jo)),{branchTask:F,branchLocalTask:W,deleteBranchesTask:oe,deleteBranchTask:re}=(Bf(),X(qo)),{checkIgnoreTask:ne}=(Wf(),X(Yo)),{checkIsRepoTask:Pe}=(Oa(),X(Sa)),{cloneTask:me,cloneMirrorTask:Te}=(zf(),X(Qo)),{cleanWithOptionsTask:H,isCleanOptionsArray:L}=(ja(),X(Ma)),{diffSummaryTask:vt}=(di(),X(mo)),{fetchTask:sr}=(Zf(),X(Jo)),{moveTask:S}=(rp(),X(tu)),{pullTask:v}=(ip(),X(ru)),{pushTagsTask:x}=(Ro(),X(Oo)),{addRemoteTask:k,getRemotesTask:y,listRemotesTask:R,remoteTask:P,removeRemoteTask:q}=(pp(),X(iu)),{getResetMode:Q,resetTask:se}=(Za(),X(Ya)),{stashListTask:ue}=(mp(),X(nu)),{addSubModuleTask:be,initSubModuleTask:it,subModuleTask:Ke,updateSubModuleTask:ht}=(yp(),X(au)),{addAnnotatedTagTask:Ye,addTagTask:he,tagListTask:Ue}=(Sp(),X(cu)),{straightThroughBufferTask:ft,straightThroughStringTask:ge}=(ee(),X(Bs));function E(m,C){this._plugins=C,this._executor=new r(m.baseDir,new i(m.maxConcurrentProcesses),C),this._trimmed=m.trimmed}(E.prototype=Object.create(s.prototype)).constructor=E,E.prototype.customBinary=function(m){return this._plugins.reconfigure("binary",m),this},E.prototype.env=function(m,C){return arguments.length===1&&typeof m=="object"?this._executor.env=m:(this._executor.env=this._executor.env||{})[m]=C,this},E.prototype.stashList=function(m){return this._runTask(ue(O(arguments)||{},u(m)&&m||[]),d(arguments))};function Ji(m,C,z,xe){return typeof z!="string"?n(`git.${m}() requires a string 'repoPath'`):C(z,h(xe,f),p(arguments))}E.prototype.clone=function(){return this._runTask(Ji("clone",me,...arguments),d(arguments))},E.prototype.mirror=function(){return this._runTask(Ji("mirror",Te,...arguments),d(arguments))},E.prototype.mv=function(m,C){return this._runTask(S(m,C),d(arguments))},E.prototype.checkoutLatestTag=function(m){var C=this;return this.pull(function(){C.tags(function(z,xe){C.checkout(xe.latest,m)})})},E.prototype.pull=function(m,C,z,xe){return this._runTask(v(h(m,f),h(C,f),p(arguments)),d(arguments))},E.prototype.fetch=function(m,C){return this._runTask(sr(h(m,f),h(C,f),p(arguments)),d(arguments))},E.prototype.silent=function(m){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},E.prototype.tags=function(m,C){return this._runTask(Ue(p(arguments)),d(arguments))},E.prototype.rebase=function(){return this._runTask(ge(["rebase",...p(arguments)]),d(arguments))},E.prototype.reset=function(m){return this._runTask(se(Q(m),p(arguments)),d(arguments))},E.prototype.revert=function(m){let C=d(arguments);return typeof m!="string"?this._runTask(n("Commit must be a string"),C):this._runTask(ge(["revert",...p(arguments,0,!0),m]),C)},E.prototype.addTag=function(m){let C=typeof m=="string"?he(m):n("Git.addTag requires a tag name");return this._runTask(C,d(arguments))},E.prototype.addAnnotatedTag=function(m,C){return this._runTask(Ye(m,C),d(arguments))},E.prototype.deleteLocalBranch=function(m,C,z){return this._runTask(re(m,typeof C=="boolean"?C:!1),d(arguments))},E.prototype.deleteLocalBranches=function(m,C,z){return this._runTask(oe(m,typeof C=="boolean"?C:!1),d(arguments))},E.prototype.branch=function(m,C){return this._runTask(F(p(arguments)),d(arguments))},E.prototype.branchLocal=function(m){return this._runTask(W(),d(arguments))},E.prototype.raw=function(m){let C=!Array.isArray(m),z=[].slice.call(C?arguments:m,0);for(let Ve=0;Ve<z.length&&C;Ve++)if(!c(z[Ve])){z.splice(Ve,z.length-Ve);break}z.push(...p(arguments,0,!0));var xe=d(arguments);return z.length?this._runTask(ge(z,this._trimmed),xe):this._runTask(n("Raw: must supply one or more command to execute"),xe)},E.prototype.submoduleAdd=function(m,C,z){return this._runTask(be(m,C),d(arguments))},E.prototype.submoduleUpdate=function(m,C){return this._runTask(ht(p(arguments,!0)),d(arguments))},E.prototype.submoduleInit=function(m,C){return this._runTask(it(p(arguments,!0)),d(arguments))},E.prototype.subModule=function(m,C){return this._runTask(Ke(p(arguments)),d(arguments))},E.prototype.listRemote=function(){return this._runTask(R(p(arguments)),d(arguments))},E.prototype.addRemote=function(m,C,z){return this._runTask(k(m,C,p(arguments)),d(arguments))},E.prototype.removeRemote=function(m,C){return this._runTask(q(m),d(arguments))},E.prototype.getRemotes=function(m,C){return this._runTask(y(m===!0),d(arguments))},E.prototype.remote=function(m,C){return this._runTask(P(p(arguments)),d(arguments))},E.prototype.tag=function(m,C){let z=p(arguments);return z[0]!=="tag"&&z.unshift("tag"),this._runTask(ge(z),d(arguments))},E.prototype.updateServerInfo=function(m){return this._runTask(ge(["update-server-info"]),d(arguments))},E.prototype.pushTags=function(m,C){let z=x({remote:h(m,f)},p(arguments));return this._runTask(z,d(arguments))},E.prototype.rm=function(m){return this._runTask(ge(["rm","-f",...a(m)]),d(arguments))},E.prototype.rmKeepLocal=function(m){return this._runTask(ge(["rm","--cached",...a(m)]),d(arguments))},E.prototype.catFile=function(m,C){return this._catFile("utf-8",arguments)},E.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},E.prototype._catFile=function(m,C){var z=d(C),xe=["cat-file"],Ve=C[0];if(typeof Ve=="string")return this._runTask(n("Git.catFile: options must be supplied as an array of strings"),z);Array.isArray(Ve)&&xe.push.apply(xe,Ve);let Jr=m==="buffer"?ft(xe):ge(xe);return this._runTask(Jr,z)},E.prototype.diff=function(m,C){let z=f(m)?n("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):ge(["diff",...p(arguments)]);return this._runTask(z,d(arguments))},E.prototype.diffSummary=function(){return this._runTask(vt(p(arguments,1)),d(arguments))},E.prototype.applyPatch=function(m){let C=l(m)?N(a(m),p([].slice.call(arguments,1))):n("git.applyPatch requires one or more string patches as the first argument");return this._runTask(C,d(arguments))},E.prototype.revparse=function(){let m=["rev-parse",...p(arguments,!0)];return this._runTask(ge(m,!0),d(arguments))},E.prototype.clean=function(m,C,z){let xe=L(m),Ve=xe&&m.join("")||h(m,f)||"",Jr=p([].slice.call(arguments,xe?1:0));return this._runTask(H(Ve,Jr),d(arguments))},E.prototype.exec=function(m){let C={commands:[],format:"utf-8",parser(){typeof m=="function"&&m()}};return this._runTask(C)},E.prototype.clearQueue=function(){return this},E.prototype.checkIgnore=function(m,C){return this._runTask(ne(a(h(m,l,[]))),d(arguments))},E.prototype.checkIsRepo=function(m,C){return this._runTask(Pe(h(m,f)),d(arguments))},t.exports=E}});Bt();at();var Tp=class extends et{constructor(e,t){super(void 0,t),this.config=e}};at();at();var Je=class extends et{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};Tt();ca();Oa();ja();Ga();Ha();Ka();Za();function Op(e){return e?[{type:"spawn.before",action(s,i){e.aborted&&i.kill(new Je(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(s,i){function n(){i.kill(new Je(void 0,"abort","Abort signal received"))}e.addEventListener("abort",n),i.spawned.on("close",()=>e.removeEventListener("abort",n))}}]:void 0}function Rp(e){return typeof e=="string"&&e.trim().toLowerCase()==="-c"}function Pp(e,t){if(Rp(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new Je(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function Ip(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new Je(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if(t==="clone"&&/^\s*-u\b/.test(e))throw new Je(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if(t==="push"&&/^\s*--exec\b/.test(e))throw new Je(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function Np({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action(r,s){return r.forEach((i,n)=>{let a=n<r.length?r[n+1]:"";e||Pp(i,a),t||Ip(i,s.method)}),r}}}A();function Lp(e){let t=Vt(e,"-c");return{type:"spawn.args",action(r){return[...t,...r]}}}A();var ia=(0,St.deferred)().promise;function Dp({onClose:e=!0,onExit:t=50}={}){function r(){let i=-1,n={close:(0,St.deferred)(),closeTimeout:(0,St.deferred)(),exit:(0,St.deferred)(),exitTimeout:(0,St.deferred)()},a=Promise.race([e===!1?ia:n.closeTimeout.promise,t===!1?ia:n.exitTimeout.promise]);return s(e,n.close,n.closeTimeout),s(t,n.exit,n.exitTimeout),{close(u){i=u,n.close.done()},exit(u){i=u,n.exit.done()},get exitCode(){return i},result:a}}function s(i,n,a){i!==!1&&(i===!0?n.promise:n.promise.then(()=>Ds(i))).then(a.done)}return{type:"spawn.after",async action(i,{spawned:n,close:a}){let u=r(),c=!0,f=()=>void(c=!1);n.stdout?.on("data",f),n.stderr?.on("data",f),n.on("error",f),n.on("close",l=>u.close(l)),n.on("exit",l=>u.exit(l));try{await u.result,c&&await Ds(50),a(u.exitCode)}catch(l){a(u.exitCode,l)}}}}A();var $p="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",na="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function Fp(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function aa(e,t){if(e.length<1||e.length>2)throw new Je(void 0,"binary",$p);if(e.some(Fp))if(t)console.warn(na);else throw new Je(void 0,"binary",na);let[s,i]=e;return{binary:s,prefix:i}}function Mp(e,t=["git"],r=!1){let s=aa(Ge(t),r);e.on("binary",i=>{s=aa(Ge(i),r)}),e.append("spawn.binary",()=>s.binary),e.append("spawn.args",i=>s.prefix?[s.prefix,...i]:i)}at();function Vp(e){return!!(e.exitCode&&e.stdErr.length)}function jp(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function Bp(e=!1,t=Vp,r=jp){return(s,i)=>!e&&s||!t(i)?s:r(i)}function oa(e){return{type:"task.error",action(t,r){let s=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(s)?{error:new et(void 0,s.toString("utf-8"))}:{error:s}}}}A();var Gp=class{constructor(){this.plugins=new Set,this.events=new Up}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let r=U(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){let t=[];return Ge(e).forEach(r=>r&&this.plugins.add(U(t,r))),()=>{t.forEach(r=>this.plugins.delete(r))}}exec(e,t,r){let s=t,i=Object.freeze(Object.create(r));for(let n of this.plugins)n.type===e&&(s=n.action(s,i));return s}};A();function Wp(e){let t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(n,a){return r.includes(a.method)?ma(n,t):n}},{type:"spawn.after",action(n,a){a.commands.includes(t)&&a.spawned.stderr?.on("data",u=>{let c=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(u.toString("utf8"));c&&e({method:a.method,stage:Hp(c[1]),progress:K(c[2]),processed:K(c[3]),total:K(c[4])})})}}]}function Hp(e){return String(e.toLowerCase().split(" ",1))||"unknown"}A();function qp(e){let t=_a(e,["uid","gid"]);return{type:"spawn.options",action(r){return{...t,...r}}}}function zp({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(s,i){let n;function a(){n&&clearTimeout(n),n=setTimeout(c,e)}function u(){i.spawned.stdout?.off("data",a),i.spawned.stderr?.off("data",a),i.spawned.off("exit",u),i.spawned.off("close",u),n&&clearTimeout(n)}function c(){u(),i.kill(new Je(void 0,"timeout","block timeout reached"))}r&&i.spawned.stdout?.on("data",a),t&&i.spawned.stderr?.on("data",a),i.spawned.on("exit",u),i.spawned.on("close",u),a()}}}Bt();function Kp(){return{type:"spawn.args",action(e){let t=[],r;function s(i){(r=r||[]).push(...i)}for(let i=0;i<e.length;i++){let n=e[i];if(yr(n)){s(Pn(n));continue}if(n==="--"){s(e.slice(i+1).flatMap(a=>yr(a)&&Pn(a)||a));break}t.push(n)}return r?[...t,"--",...r.map(String)]:t}}}A();var Yp=Ap();function Qp(e,t){let r=new Gp,s=Ca(e&&(typeof e=="string"?{baseDir:e}:e)||{},t);if(!Zs(s.baseDir))throw new Tp(s,"Cannot use simple-git on a directory that does not exist");return Array.isArray(s.config)&&r.add(Lp(s.config)),r.add(Np(s.unsafe)),r.add(Kp()),r.add(Dp(s.completion)),s.abort&&r.add(Op(s.abort)),s.progress&&r.add(Wp(s.progress)),s.timeout&&r.add(zp(s.timeout)),s.spawnOptions&&r.add(qp(s.spawnOptions)),r.add(oa(Bp(!0))),s.errors&&r.add(oa(s.errors)),Mp(r,s.binary,s.unsafe?.allowUnsafeCustomBinary),new Yp(s,r)}Tt();var lu=Qp;var fu="@lntvow/dev",pu="5.0.3";_();import er from"fs";import{createRequire as jm}from"module";import Me,{dirname as Ac,join as Bm,win32 as Um}from"path";import Dt from"process";import Gm from"fs/promises";import{fileURLToPath as Wm}from"url";_();_();var Xp=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],yu=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Zp="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",vu="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",_i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},yi="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Jp={5:yi,"5module":yi+" export import",6:yi+" const class extends export import super"},ed=/^in(stanceof)?$/,td=new RegExp("["+vu+"]"),rd=new RegExp("["+vu+Zp+"]");function bi(e,t){for(var r=65536,s=0;s<t.length;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function He(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&td.test(String.fromCharCode(e)):t===!1?!1:bi(e,yu)}function ut(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&rd.test(String.fromCharCode(e)):t===!1?!1:bi(e,yu)||bi(e,Xp)}var M=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function Ne(e,t){return new M(e,{beforeExpr:!0,binop:t})}var Le={beforeExpr:!0},Se={startsExpr:!0},Ei={};function $(e,t){return t===void 0&&(t={}),t.keyword=e,Ei[e]=new M(e,t)}var o={num:new M("num",Se),regexp:new M("regexp",Se),string:new M("string",Se),name:new M("name",Se),privateId:new M("privateId",Se),eof:new M("eof"),bracketL:new M("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new M("]"),braceL:new M("{",{beforeExpr:!0,startsExpr:!0}),braceR:new M("}"),parenL:new M("(",{beforeExpr:!0,startsExpr:!0}),parenR:new M(")"),comma:new M(",",Le),semi:new M(";",Le),colon:new M(":",Le),dot:new M("."),question:new M("?",Le),questionDot:new M("?."),arrow:new M("=>",Le),template:new M("template"),invalidTemplate:new M("invalidTemplate"),ellipsis:new M("...",Le),backQuote:new M("`",Se),dollarBraceL:new M("${",{beforeExpr:!0,startsExpr:!0}),eq:new M("=",{beforeExpr:!0,isAssign:!0}),assign:new M("_=",{beforeExpr:!0,isAssign:!0}),incDec:new M("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new M("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ne("||",1),logicalAND:Ne("&&",2),bitwiseOR:Ne("|",3),bitwiseXOR:Ne("^",4),bitwiseAND:Ne("&",5),equality:Ne("==/!=/===/!==",6),relational:Ne("</>/<=/>=",7),bitShift:Ne("<</>>/>>>",8),plusMin:new M("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ne("%",10),star:Ne("*",10),slash:Ne("/",10),starstar:new M("**",{beforeExpr:!0}),coalesce:Ne("??",1),_break:$("break"),_case:$("case",Le),_catch:$("catch"),_continue:$("continue"),_debugger:$("debugger"),_default:$("default",Le),_do:$("do",{isLoop:!0,beforeExpr:!0}),_else:$("else",Le),_finally:$("finally"),_for:$("for",{isLoop:!0}),_function:$("function",Se),_if:$("if"),_return:$("return",Le),_switch:$("switch"),_throw:$("throw",Le),_try:$("try"),_var:$("var"),_const:$("const"),_while:$("while",{isLoop:!0}),_with:$("with"),_new:$("new",{beforeExpr:!0,startsExpr:!0}),_this:$("this",Se),_super:$("super",Se),_class:$("class",Se),_extends:$("extends",Le),_export:$("export"),_import:$("import",Se),_null:$("null",Se),_true:$("true",Se),_false:$("false",Se),_in:$("in",{beforeExpr:!0,binop:7}),_instanceof:$("instanceof",{beforeExpr:!0,binop:7}),_typeof:$("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:$("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:$("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ae=/\r\n?|\n|\u2028|\u2029/,sd=new RegExp(Ae.source,"g");function Ot(e){return e===10||e===13||e===8232||e===8233}function bu(e,t,r){r===void 0&&(r=e.length);for(var s=t;s<r;s++){var i=e.charCodeAt(s);if(Ot(i))return s<r-1&&i===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var wu=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,de=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Cu=Object.prototype,id=Cu.hasOwnProperty,nd=Cu.toString,Rt=Object.hasOwn||function(e,t){return id.call(e,t)},du=Array.isArray||function(e){return nd.call(e)==="[object Array]"},mu=Object.create(null);function ot(e){return mu[e]||(mu[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function tt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var ad=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Kt=function(t,r){this.line=t,this.column=r};Kt.prototype.offset=function(t){return new Kt(this.line,this.column+t)};var Vr=function(t,r,s){this.start=r,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ku(e,t){for(var r=1,s=0;;){var i=bu(e,s,t);if(i<0)return new Kt(r,t-s);++r,s=i}}var wi={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},gu=!1;function od(e){var t={};for(var r in wi)t[r]=e&&Rt(e,r)?e[r]:wi[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!gu&&typeof console=="object"&&console.warn&&(gu=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
36
+ `).map(bp).filter(Boolean);t||r.sort(function(i,n){let a=i.split("."),u=n.split(".");if(a.length===1||u.length===1)return vp(dr(a[0]),dr(u[0]));for(let c=0,f=Math.max(a.length,u.length);c<f;c++){let l=ou(dr(a[c]),dr(u[c]));if(l)return l}return 0});let s=t?r[0]:[...r].reverse().find(i=>i.indexOf(".")>=0);return new sa(r,s)}}}),cu={};te(cu,{addAnnotatedTagTask:()=>Ep,addTagTask:()=>kp,tagListTask:()=>Cp});function Cp(e=[]){let t=e.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...e],parser(r){return uu(r,t)}}}function kp(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}function Ep(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}var Sp=g({"src/lib/tasks/tag.ts"(){"use strict";wp()}}),Ap=Bl({"src/git.js"(e,t){"use strict";var{GitExecutor:r}=(Th(),X(to)),{SimpleGitApi:s}=(Af(),X($o)),{Scheduler:i}=(Tf(),X(Fo)),{configurationErrorTask:n}=(ee(),X(Bs)),{asArray:a,filterArray:u,filterPrimitives:c,filterString:f,filterStringOrStringArray:l,filterType:h,getTrailingOptions:p,trailingFunctionArgument:d,trailingOptionsArgument:O}=(A(),X(Ea)),{applyPatchTask:N}=(Rf(),X(jo)),{branchTask:F,branchLocalTask:W,deleteBranchesTask:oe,deleteBranchTask:re}=(Bf(),X(qo)),{checkIgnoreTask:ne}=(Wf(),X(Yo)),{checkIsRepoTask:Pe}=(Oa(),X(Sa)),{cloneTask:me,cloneMirrorTask:Te}=(zf(),X(Qo)),{cleanWithOptionsTask:H,isCleanOptionsArray:L}=(ja(),X(Ma)),{diffSummaryTask:vt}=(di(),X(mo)),{fetchTask:sr}=(Zf(),X(Jo)),{moveTask:S}=(rp(),X(tu)),{pullTask:v}=(ip(),X(ru)),{pushTagsTask:x}=(Ro(),X(Oo)),{addRemoteTask:k,getRemotesTask:y,listRemotesTask:R,remoteTask:P,removeRemoteTask:q}=(pp(),X(iu)),{getResetMode:Q,resetTask:se}=(Za(),X(Ya)),{stashListTask:ue}=(mp(),X(nu)),{addSubModuleTask:be,initSubModuleTask:it,subModuleTask:Ke,updateSubModuleTask:ht}=(yp(),X(au)),{addAnnotatedTagTask:Ye,addTagTask:he,tagListTask:Ue}=(Sp(),X(cu)),{straightThroughBufferTask:ft,straightThroughStringTask:ge}=(ee(),X(Bs));function E(m,C){this._plugins=C,this._executor=new r(m.baseDir,new i(m.maxConcurrentProcesses),C),this._trimmed=m.trimmed}(E.prototype=Object.create(s.prototype)).constructor=E,E.prototype.customBinary=function(m){return this._plugins.reconfigure("binary",m),this},E.prototype.env=function(m,C){return arguments.length===1&&typeof m=="object"?this._executor.env=m:(this._executor.env=this._executor.env||{})[m]=C,this},E.prototype.stashList=function(m){return this._runTask(ue(O(arguments)||{},u(m)&&m||[]),d(arguments))};function Ji(m,C,z,xe){return typeof z!="string"?n(`git.${m}() requires a string 'repoPath'`):C(z,h(xe,f),p(arguments))}E.prototype.clone=function(){return this._runTask(Ji("clone",me,...arguments),d(arguments))},E.prototype.mirror=function(){return this._runTask(Ji("mirror",Te,...arguments),d(arguments))},E.prototype.mv=function(m,C){return this._runTask(S(m,C),d(arguments))},E.prototype.checkoutLatestTag=function(m){var C=this;return this.pull(function(){C.tags(function(z,xe){C.checkout(xe.latest,m)})})},E.prototype.pull=function(m,C,z,xe){return this._runTask(v(h(m,f),h(C,f),p(arguments)),d(arguments))},E.prototype.fetch=function(m,C){return this._runTask(sr(h(m,f),h(C,f),p(arguments)),d(arguments))},E.prototype.silent=function(m){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},E.prototype.tags=function(m,C){return this._runTask(Ue(p(arguments)),d(arguments))},E.prototype.rebase=function(){return this._runTask(ge(["rebase",...p(arguments)]),d(arguments))},E.prototype.reset=function(m){return this._runTask(se(Q(m),p(arguments)),d(arguments))},E.prototype.revert=function(m){let C=d(arguments);return typeof m!="string"?this._runTask(n("Commit must be a string"),C):this._runTask(ge(["revert",...p(arguments,0,!0),m]),C)},E.prototype.addTag=function(m){let C=typeof m=="string"?he(m):n("Git.addTag requires a tag name");return this._runTask(C,d(arguments))},E.prototype.addAnnotatedTag=function(m,C){return this._runTask(Ye(m,C),d(arguments))},E.prototype.deleteLocalBranch=function(m,C,z){return this._runTask(re(m,typeof C=="boolean"?C:!1),d(arguments))},E.prototype.deleteLocalBranches=function(m,C,z){return this._runTask(oe(m,typeof C=="boolean"?C:!1),d(arguments))},E.prototype.branch=function(m,C){return this._runTask(F(p(arguments)),d(arguments))},E.prototype.branchLocal=function(m){return this._runTask(W(),d(arguments))},E.prototype.raw=function(m){let C=!Array.isArray(m),z=[].slice.call(C?arguments:m,0);for(let Ve=0;Ve<z.length&&C;Ve++)if(!c(z[Ve])){z.splice(Ve,z.length-Ve);break}z.push(...p(arguments,0,!0));var xe=d(arguments);return z.length?this._runTask(ge(z,this._trimmed),xe):this._runTask(n("Raw: must supply one or more command to execute"),xe)},E.prototype.submoduleAdd=function(m,C,z){return this._runTask(be(m,C),d(arguments))},E.prototype.submoduleUpdate=function(m,C){return this._runTask(ht(p(arguments,!0)),d(arguments))},E.prototype.submoduleInit=function(m,C){return this._runTask(it(p(arguments,!0)),d(arguments))},E.prototype.subModule=function(m,C){return this._runTask(Ke(p(arguments)),d(arguments))},E.prototype.listRemote=function(){return this._runTask(R(p(arguments)),d(arguments))},E.prototype.addRemote=function(m,C,z){return this._runTask(k(m,C,p(arguments)),d(arguments))},E.prototype.removeRemote=function(m,C){return this._runTask(q(m),d(arguments))},E.prototype.getRemotes=function(m,C){return this._runTask(y(m===!0),d(arguments))},E.prototype.remote=function(m,C){return this._runTask(P(p(arguments)),d(arguments))},E.prototype.tag=function(m,C){let z=p(arguments);return z[0]!=="tag"&&z.unshift("tag"),this._runTask(ge(z),d(arguments))},E.prototype.updateServerInfo=function(m){return this._runTask(ge(["update-server-info"]),d(arguments))},E.prototype.pushTags=function(m,C){let z=x({remote:h(m,f)},p(arguments));return this._runTask(z,d(arguments))},E.prototype.rm=function(m){return this._runTask(ge(["rm","-f",...a(m)]),d(arguments))},E.prototype.rmKeepLocal=function(m){return this._runTask(ge(["rm","--cached",...a(m)]),d(arguments))},E.prototype.catFile=function(m,C){return this._catFile("utf-8",arguments)},E.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},E.prototype._catFile=function(m,C){var z=d(C),xe=["cat-file"],Ve=C[0];if(typeof Ve=="string")return this._runTask(n("Git.catFile: options must be supplied as an array of strings"),z);Array.isArray(Ve)&&xe.push.apply(xe,Ve);let Jr=m==="buffer"?ft(xe):ge(xe);return this._runTask(Jr,z)},E.prototype.diff=function(m,C){let z=f(m)?n("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):ge(["diff",...p(arguments)]);return this._runTask(z,d(arguments))},E.prototype.diffSummary=function(){return this._runTask(vt(p(arguments,1)),d(arguments))},E.prototype.applyPatch=function(m){let C=l(m)?N(a(m),p([].slice.call(arguments,1))):n("git.applyPatch requires one or more string patches as the first argument");return this._runTask(C,d(arguments))},E.prototype.revparse=function(){let m=["rev-parse",...p(arguments,!0)];return this._runTask(ge(m,!0),d(arguments))},E.prototype.clean=function(m,C,z){let xe=L(m),Ve=xe&&m.join("")||h(m,f)||"",Jr=p([].slice.call(arguments,xe?1:0));return this._runTask(H(Ve,Jr),d(arguments))},E.prototype.exec=function(m){let C={commands:[],format:"utf-8",parser(){typeof m=="function"&&m()}};return this._runTask(C)},E.prototype.clearQueue=function(){return this},E.prototype.checkIgnore=function(m,C){return this._runTask(ne(a(h(m,l,[]))),d(arguments))},E.prototype.checkIsRepo=function(m,C){return this._runTask(Pe(h(m,f)),d(arguments))},t.exports=E}});Bt();at();var Tp=class extends et{constructor(e,t){super(void 0,t),this.config=e}};at();at();var Je=class extends et{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};Tt();ca();Oa();ja();Ga();Ha();Ka();Za();function Op(e){return e?[{type:"spawn.before",action(s,i){e.aborted&&i.kill(new Je(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(s,i){function n(){i.kill(new Je(void 0,"abort","Abort signal received"))}e.addEventListener("abort",n),i.spawned.on("close",()=>e.removeEventListener("abort",n))}}]:void 0}function Rp(e){return typeof e=="string"&&e.trim().toLowerCase()==="-c"}function Pp(e,t){if(Rp(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new Je(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function Ip(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new Je(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if(t==="clone"&&/^\s*-u\b/.test(e))throw new Je(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if(t==="push"&&/^\s*--exec\b/.test(e))throw new Je(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function Np({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action(r,s){return r.forEach((i,n)=>{let a=n<r.length?r[n+1]:"";e||Pp(i,a),t||Ip(i,s.method)}),r}}}A();function Lp(e){let t=Vt(e,"-c");return{type:"spawn.args",action(r){return[...t,...r]}}}A();var ia=(0,St.deferred)().promise;function Dp({onClose:e=!0,onExit:t=50}={}){function r(){let i=-1,n={close:(0,St.deferred)(),closeTimeout:(0,St.deferred)(),exit:(0,St.deferred)(),exitTimeout:(0,St.deferred)()},a=Promise.race([e===!1?ia:n.closeTimeout.promise,t===!1?ia:n.exitTimeout.promise]);return s(e,n.close,n.closeTimeout),s(t,n.exit,n.exitTimeout),{close(u){i=u,n.close.done()},exit(u){i=u,n.exit.done()},get exitCode(){return i},result:a}}function s(i,n,a){i!==!1&&(i===!0?n.promise:n.promise.then(()=>Ds(i))).then(a.done)}return{type:"spawn.after",async action(i,{spawned:n,close:a}){let u=r(),c=!0,f=()=>void(c=!1);n.stdout?.on("data",f),n.stderr?.on("data",f),n.on("error",f),n.on("close",l=>u.close(l)),n.on("exit",l=>u.exit(l));try{await u.result,c&&await Ds(50),a(u.exitCode)}catch(l){a(u.exitCode,l)}}}}A();var $p="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",na="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function Fp(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function aa(e,t){if(e.length<1||e.length>2)throw new Je(void 0,"binary",$p);if(e.some(Fp))if(t)console.warn(na);else throw new Je(void 0,"binary",na);let[s,i]=e;return{binary:s,prefix:i}}function Mp(e,t=["git"],r=!1){let s=aa(Ge(t),r);e.on("binary",i=>{s=aa(Ge(i),r)}),e.append("spawn.binary",()=>s.binary),e.append("spawn.args",i=>s.prefix?[s.prefix,...i]:i)}at();function Vp(e){return!!(e.exitCode&&e.stdErr.length)}function jp(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function Bp(e=!1,t=Vp,r=jp){return(s,i)=>!e&&s||!t(i)?s:r(i)}function oa(e){return{type:"task.error",action(t,r){let s=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(s)?{error:new et(void 0,s.toString("utf-8"))}:{error:s}}}}A();var Gp=class{constructor(){this.plugins=new Set,this.events=new Up}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let r=U(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){let t=[];return Ge(e).forEach(r=>r&&this.plugins.add(U(t,r))),()=>{t.forEach(r=>this.plugins.delete(r))}}exec(e,t,r){let s=t,i=Object.freeze(Object.create(r));for(let n of this.plugins)n.type===e&&(s=n.action(s,i));return s}};A();function Wp(e){let t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(n,a){return r.includes(a.method)?ma(n,t):n}},{type:"spawn.after",action(n,a){a.commands.includes(t)&&a.spawned.stderr?.on("data",u=>{let c=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(u.toString("utf8"));c&&e({method:a.method,stage:Hp(c[1]),progress:K(c[2]),processed:K(c[3]),total:K(c[4])})})}}]}function Hp(e){return String(e.toLowerCase().split(" ",1))||"unknown"}A();function qp(e){let t=_a(e,["uid","gid"]);return{type:"spawn.options",action(r){return{...t,...r}}}}function zp({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(s,i){let n;function a(){n&&clearTimeout(n),n=setTimeout(c,e)}function u(){i.spawned.stdout?.off("data",a),i.spawned.stderr?.off("data",a),i.spawned.off("exit",u),i.spawned.off("close",u),n&&clearTimeout(n)}function c(){u(),i.kill(new Je(void 0,"timeout","block timeout reached"))}r&&i.spawned.stdout?.on("data",a),t&&i.spawned.stderr?.on("data",a),i.spawned.on("exit",u),i.spawned.on("close",u),a()}}}Bt();function Kp(){return{type:"spawn.args",action(e){let t=[],r;function s(i){(r=r||[]).push(...i)}for(let i=0;i<e.length;i++){let n=e[i];if(yr(n)){s(Pn(n));continue}if(n==="--"){s(e.slice(i+1).flatMap(a=>yr(a)&&Pn(a)||a));break}t.push(n)}return r?[...t,"--",...r.map(String)]:t}}}A();var Yp=Ap();function Qp(e,t){let r=new Gp,s=Ca(e&&(typeof e=="string"?{baseDir:e}:e)||{},t);if(!Zs(s.baseDir))throw new Tp(s,"Cannot use simple-git on a directory that does not exist");return Array.isArray(s.config)&&r.add(Lp(s.config)),r.add(Np(s.unsafe)),r.add(Kp()),r.add(Dp(s.completion)),s.abort&&r.add(Op(s.abort)),s.progress&&r.add(Wp(s.progress)),s.timeout&&r.add(zp(s.timeout)),s.spawnOptions&&r.add(qp(s.spawnOptions)),r.add(oa(Bp(!0))),s.errors&&r.add(oa(s.errors)),Mp(r,s.binary,s.unsafe?.allowUnsafeCustomBinary),new Yp(s,r)}Tt();var lu=Qp;var fu="@lntvow/dev",pu="5.0.5";_();import er from"fs";import{createRequire as jm}from"module";import Me,{dirname as Ac,join as Bm,win32 as Um}from"path";import Dt from"process";import Gm from"fs/promises";import{fileURLToPath as Wm}from"url";_();_();var Xp=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],yu=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Zp="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",vu="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",_i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},yi="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Jp={5:yi,"5module":yi+" export import",6:yi+" const class extends export import super"},ed=/^in(stanceof)?$/,td=new RegExp("["+vu+"]"),rd=new RegExp("["+vu+Zp+"]");function bi(e,t){for(var r=65536,s=0;s<t.length;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function He(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&td.test(String.fromCharCode(e)):t===!1?!1:bi(e,yu)}function ut(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&rd.test(String.fromCharCode(e)):t===!1?!1:bi(e,yu)||bi(e,Xp)}var M=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function Ne(e,t){return new M(e,{beforeExpr:!0,binop:t})}var Le={beforeExpr:!0},Se={startsExpr:!0},Ei={};function $(e,t){return t===void 0&&(t={}),t.keyword=e,Ei[e]=new M(e,t)}var o={num:new M("num",Se),regexp:new M("regexp",Se),string:new M("string",Se),name:new M("name",Se),privateId:new M("privateId",Se),eof:new M("eof"),bracketL:new M("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new M("]"),braceL:new M("{",{beforeExpr:!0,startsExpr:!0}),braceR:new M("}"),parenL:new M("(",{beforeExpr:!0,startsExpr:!0}),parenR:new M(")"),comma:new M(",",Le),semi:new M(";",Le),colon:new M(":",Le),dot:new M("."),question:new M("?",Le),questionDot:new M("?."),arrow:new M("=>",Le),template:new M("template"),invalidTemplate:new M("invalidTemplate"),ellipsis:new M("...",Le),backQuote:new M("`",Se),dollarBraceL:new M("${",{beforeExpr:!0,startsExpr:!0}),eq:new M("=",{beforeExpr:!0,isAssign:!0}),assign:new M("_=",{beforeExpr:!0,isAssign:!0}),incDec:new M("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new M("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ne("||",1),logicalAND:Ne("&&",2),bitwiseOR:Ne("|",3),bitwiseXOR:Ne("^",4),bitwiseAND:Ne("&",5),equality:Ne("==/!=/===/!==",6),relational:Ne("</>/<=/>=",7),bitShift:Ne("<</>>/>>>",8),plusMin:new M("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ne("%",10),star:Ne("*",10),slash:Ne("/",10),starstar:new M("**",{beforeExpr:!0}),coalesce:Ne("??",1),_break:$("break"),_case:$("case",Le),_catch:$("catch"),_continue:$("continue"),_debugger:$("debugger"),_default:$("default",Le),_do:$("do",{isLoop:!0,beforeExpr:!0}),_else:$("else",Le),_finally:$("finally"),_for:$("for",{isLoop:!0}),_function:$("function",Se),_if:$("if"),_return:$("return",Le),_switch:$("switch"),_throw:$("throw",Le),_try:$("try"),_var:$("var"),_const:$("const"),_while:$("while",{isLoop:!0}),_with:$("with"),_new:$("new",{beforeExpr:!0,startsExpr:!0}),_this:$("this",Se),_super:$("super",Se),_class:$("class",Se),_extends:$("extends",Le),_export:$("export"),_import:$("import",Se),_null:$("null",Se),_true:$("true",Se),_false:$("false",Se),_in:$("in",{beforeExpr:!0,binop:7}),_instanceof:$("instanceof",{beforeExpr:!0,binop:7}),_typeof:$("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:$("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:$("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ae=/\r\n?|\n|\u2028|\u2029/,sd=new RegExp(Ae.source,"g");function Ot(e){return e===10||e===13||e===8232||e===8233}function bu(e,t,r){r===void 0&&(r=e.length);for(var s=t;s<r;s++){var i=e.charCodeAt(s);if(Ot(i))return s<r-1&&i===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var wu=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,de=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Cu=Object.prototype,id=Cu.hasOwnProperty,nd=Cu.toString,Rt=Object.hasOwn||function(e,t){return id.call(e,t)},du=Array.isArray||function(e){return nd.call(e)==="[object Array]"},mu=Object.create(null);function ot(e){return mu[e]||(mu[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function tt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var ad=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Kt=function(t,r){this.line=t,this.column=r};Kt.prototype.offset=function(t){return new Kt(this.line,this.column+t)};var Vr=function(t,r,s){this.start=r,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ku(e,t){for(var r=1,s=0;;){var i=bu(e,s,t);if(i<0)return new Kt(r,t-s);++r,s=i}}var wi={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},gu=!1;function od(e){var t={};for(var r in wi)t[r]=e&&Rt(e,r)?e[r]:wi[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!gu&&typeof console=="object"&&console.warn&&(gu=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
37
37
  Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),du(t.onToken)){var s=t.onToken;t.onToken=function(i){return s.push(i)}}return du(t.onComment)&&(t.onComment=ud(t,t.onComment)),t}function ud(e,t){return function(r,s,i,n,a,u){var c={type:r?"Block":"Line",value:s,start:i,end:n};e.locations&&(c.loc=new Vr(this,a,u)),e.ranges&&(c.range=[i,n]),t.push(c)}}var Yt=1,Pt=2,Si=4,Eu=8,Ai=16,Su=32,jr=64,Au=128,_t=256,Qt=512,Br=Yt|Pt|_t;function Ti(e,t){return Pt|(e?Si:0)|(t?Eu:0)}var Dr=0,Oi=1,st=2,Tu=3,Ou=4,Ru=5,le=function(t,r,s){this.options=t=od(t),this.sourceFile=t.sourceFile,this.keywords=ot(Jp[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=_i[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=ot(i);var n=(i?i+" ":"")+_i.strict;this.reservedWordsStrict=ot(n),this.reservedWordsStrictBind=ot(n+" "+_i.strictBind),this.input=String(r),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
38
38
  `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ae).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=o.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Yt),this.regexpState=null,this.privateNameStack=[]},qe={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};le.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};qe.inFunction.get=function(){return(this.currentVarScope().flags&Pt)>0};qe.inGenerator.get=function(){return(this.currentVarScope().flags&Eu)>0};qe.inAsync.get=function(){return(this.currentVarScope().flags&Si)>0};qe.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(_t|Qt))return!1;if(r&Pt)return(r&Si)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};qe.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&jr)>0||this.options.allowSuperOutsideMethod};qe.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Au)>0};qe.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};qe.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(_t|Qt)||r&Pt&&!(r&Ai))return!0}return!1};qe.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&_t)>0};le.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var s=this,i=0;i<t.length;i++)s=t[i](s);return s};le.parse=function(t,r){return new this(r,t).parse()};le.parseExpressionAt=function(t,r,s){var i=new this(s,t,r);return i.nextToken(),i.parseExpression()};le.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(le.prototype,qe);var ye=le.prototype,cd=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ye.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){de.lastIndex=e,e+=de.exec(this.input)[0].length;var t=cd.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){de.lastIndex=e+t[0].length;var r=de.exec(this.input),s=r.index+r[0].length,i=this.input.charAt(s);return i===";"||i==="}"||Ae.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,de.lastIndex=e,e+=de.exec(this.input)[0].length,this.input[e]===";"&&e++}};ye.eat=function(e){return this.type===e?(this.next(),!0):!1};ye.isContextual=function(e){return this.type===o.name&&this.value===e&&!this.containsEsc};ye.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};ye.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};ye.canInsertSemicolon=function(){return this.type===o.eof||this.type===o.braceR||Ae.test(this.input.slice(this.lastTokEnd,this.start))};ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};ye.semicolon=function(){!this.eat(o.semi)&&!this.insertSemicolon()&&this.unexpected()};ye.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};ye.expect=function(e){this.eat(e)||this.unexpected()};ye.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ur=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ye.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};ye.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,s=e.doubleProto;if(!t)return r>=0||s>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};ye.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};ye.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var w=le.prototype;w.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==o.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var s=0,i=Object.keys(this.undefinedExports);s<i.length;s+=1){var n=i[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Ri={kind:"loop"},ld={kind:"switch"};w.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;de.lastIndex=this.pos;var t=de.exec(this.input),r=this.pos+t[0].length,s=this.input.charCodeAt(r);if(s===91||s===92)return!0;if(e)return!1;if(s===123||s>55295&&s<56320)return!0;if(He(s,!0)){for(var i=r+1;ut(s=this.input.charCodeAt(i),!0);)++i;if(s===92||s>55295&&s<56320)return!0;var n=this.input.slice(r,i);if(!ed.test(n))return!0}return!1};w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;de.lastIndex=this.pos;var e=de.exec(this.input),t=this.pos+e[0].length,r;return!Ae.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(ut(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};w.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;de.lastIndex=this.pos;var r=de.exec(this.input),s=this.pos+r[0].length;if(Ae.test(this.input.slice(this.pos,s)))return!1;if(e){var i=s+5,n;if(this.input.slice(s,i)!=="using"||i===this.input.length||ut(n=this.input.charCodeAt(i))||n>55295&&n<56320)return!1;de.lastIndex=i;var a=de.exec(this.input);if(a&&Ae.test(this.input.slice(i,i+a[0].length)))return!1}if(t){var u=s+2,c;if(this.input.slice(s,u)==="of"&&(u===this.input.length||!ut(c=this.input.charCodeAt(u))&&!(c>55295&&c<56320)))return!1}var f=this.input.charCodeAt(s);return He(f,!0)||f===92};w.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};w.isUsing=function(e){return this.isUsingKeyword(!1,e)};w.parseStatement=function(e,t,r){var s=this.type,i=this.startNode(),n;switch(this.isLet(e)&&(s=o._var,n="let"),s){case o._break:case o._continue:return this.parseBreakContinueStatement(i,s.keyword);case o._debugger:return this.parseDebuggerStatement(i);case o._do:return this.parseDoStatement(i);case o._for:return this.parseForStatement(i);case o._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case o._class:return e&&this.unexpected(),this.parseClass(i,!0);case o._if:return this.parseIfStatement(i);case o._return:return this.parseReturnStatement(i);case o._switch:return this.parseSwitchStatement(i);case o._throw:return this.parseThrowStatement(i);case o._try:return this.parseTryStatement(i);case o._const:case o._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(i,n);case o._while:return this.parseWhileStatement(i);case o._with:return this.parseWithStatement(i);case o.braceL:return this.parseBlock(!0,i);case o.semi:return this.parseEmptyStatement(i);case o._export:case o._import:if(this.options.ecmaVersion>10&&s===o._import){de.lastIndex=this.pos;var a=de.exec(this.input),u=this.pos+a[0].length,c=this.input.charCodeAt(u);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===o._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var f=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(f)return t&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),f==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,f),this.semicolon(),this.finishNode(i,"VariableDeclaration");var l=this.value,h=this.parseExpression();return s===o.name&&h.type==="Identifier"&&this.eat(o.colon)?this.parseLabeledStatement(i,l,h,e):this.parseExpressionStatement(i,h)}};w.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(o.semi)||this.insertSemicolon()?e.label=null:this.type!==o.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var i=this.labels[s];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||e.label&&r))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};w.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};w.parseDoStatement=function(e){return this.next(),this.labels.push(Ri),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(o._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(o.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ri),this.enterScope(0),this.expect(o.parenL),this.type===o.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===o._var||this.type===o._const||r){var s=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(s,!0,i),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var n=this.isContextual("let"),a=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var c=this.startNode();return this.next(),u==="await using"&&this.next(),this.parseVar(c,!0,u),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(e,c,t)}var f=this.containsEsc,l=new Ur,h=this.start,p=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===o._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===o._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(p.start===h&&!f&&p.type==="Identifier"&&p.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),n&&a&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,l),this.checkLValPattern(p),this.parseForIn(e,p)):(this.checkExpressionErrors(l,!0),t>-1&&this.unexpected(t),this.parseFor(e,p))};w.parseForAfterInit=function(e,t,r){return(this.type===o._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===o._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))};w.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,zt|(r?0:Ci),!1,t)};w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(o._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};w.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(o.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(o.braceL),this.labels.push(ld),this.enterScope(0);for(var t,r=!1;this.type!==o.braceR;)if(this.type===o._case||this.type===o._default){var s=this.type===o._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(o.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};w.parseThrowStatement=function(e){return this.next(),Ae.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var hd=[];w.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Su:0),this.checkLValPattern(e,t?Ou:st),this.expect(o.parenR),e};w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===o._catch){var t=this.startNode();this.next(),this.eat(o.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(o._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};w.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ri),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};w.parseLabeledStatement=function(e,t,r,s){for(var i=0,n=this.labels;i<n.length;i+=1){var a=n[i];a.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===o._switch?"switch":null,c=this.labels.length-1;c>=0;c--){var f=this.labels[c];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};w.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(o.braceL),e&&this.enterScope(0);this.type!==o.braceR;){var s=this.parseStatement(null);t.body.push(s)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};w.parseFor=function(e,t){return e.init=t,this.expect(o.semi),e.test=this.type===o.semi?null:this.parseExpression(),this.expect(o.semi),e.update=this.type===o.parenR?null:this.parseExpression(),this.expect(o.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};w.parseForIn=function(e,t){var r=this.type===o._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(o.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};w.parseVar=function(e,t,r,s){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(o.eq)?i.init=this.parseMaybeAssign(t):!s&&r==="const"&&!(this.type===o._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==o._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!s&&i.id.type!=="Identifier"&&!(t&&(this.type===o._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(o.comma))break}return e};w.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Oi:st,!1)};var zt=1,Ci=2,Pu=4;w.parseFunction=function(e,t,r,s,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===o.star&&t&Ci&&this.unexpected(),e.generator=this.eat(o.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&zt&&(e.id=t&Pu&&this.type!==o.name?null:this.parseIdent(),e.id&&!(t&Ci)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Oi:st:Tu));var n=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ti(e.async,e.generator)),t&zt||(e.id=this.type===o.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=u,this.finishNode(e,t&zt?"FunctionDeclaration":"FunctionExpression")};w.parseFunctionParams=function(e){this.expect(o.parenL),e.params=this.parseBindingList(o.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};w.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),i=this.startNode(),n=!1;for(i.body=[],this.expect(o.braceL);this.type!==o.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(i.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&a.key.type==="PrivateIdentifier"&&fd(s,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};w.parseClassElement=function(e){if(this.eat(o.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),s="",i=!1,n=!1,a="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(o.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===o.star?u=!0:s="static"}if(r.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===o.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(t>=9||!n)&&this.eat(o.star)&&(i=!0),!s&&!n&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:s=c)}if(s?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=s,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===o.parenL||a!=="method"||i||n){var f=!r.static&&$r(r,"constructor"),l=f&&e;f&&a!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=f?"constructor":a,this.parseClassMethod(r,i,n,l)}else this.parseClassField(r);return r};w.isClassElementNameStart=function(){return this.type===o.name||this.type===o.privateId||this.type===o.num||this.type===o.string||this.type===o.bracketL||this.type.keyword};w.parseClassElementName=function(e){this.type===o.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};w.parseClassMethod=function(e,t,r,s){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&$r(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,r,s);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};w.parseClassField=function(e){return $r(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&$r(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(o.eq)?(this.enterScope(Qt|jr),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(_t|jr);this.type!==o.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};w.parseClassId=function(e,t){this.type===o.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,st,!1)):(t===!0&&this.unexpected(),e.id=null)};w.parseClassSuper=function(e){e.superClass=this.eat(o._extends)?this.parseExprSubscripts(null,!1):null};w.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};w.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,i=s===0?null:this.privateNameStack[s-1],n=0;n<r.length;++n){var a=r[n];Rt(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}};function fd(e,t){var r=t.key.name,s=e[r],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),s==="iget"&&i==="iset"||s==="iset"&&i==="iget"||s==="sget"&&i==="sset"||s==="sset"&&i==="sget"?(e[r]="true",!1):s?!0:(e[r]=i,!1)}function $r(e,t){var r=e.computed,s=e.key;return!r&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}w.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==o.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};w.parseExport=function(e,t){if(this.next(),this.eat(o.star))return this.parseExportAllDeclaration(e,t);if(this.eat(o._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==o.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,s=e.specifiers;r<s.length;r+=1){var i=s[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};w.parseExportDeclaration=function(e){return this.parseStatement(null)};w.parseExportDefaultDeclaration=function(){var e;if(this.type===o._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,zt|Pu,!1,e)}else if(this.type===o._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var s=this.parseMaybeAssign();return this.semicolon(),s}};w.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Rt(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};w.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var s=0,i=t.properties;s<i.length;s+=1){var n=i[s];this.checkPatternExport(e,n)}else if(r==="ArrayPattern")for(var a=0,u=t.elements;a<u.length;a+=1){var c=u[a];c&&this.checkPatternExport(e,c)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};w.checkVariableExport=function(e,t){if(e)for(var r=0,s=t;r<s.length;r+=1){var i=s[r];this.checkPatternExport(e,i.id)}};w.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};w.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};w.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(o.braceL);!this.eat(o.braceR);){if(r)r=!1;else if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break;t.push(this.parseExportSpecifier(e))}return t};w.parseImport=function(e){return this.next(),this.type===o.string?(e.specifiers=hd,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===o.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};w.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,st),this.finishNode(e,"ImportSpecifier")};w.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,st),this.finishNode(e,"ImportDefaultSpecifier")};w.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,st),this.finishNode(e,"ImportNamespaceSpecifier")};w.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===o.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(o.comma)))return e;if(this.type===o.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(o.braceL);!this.eat(o.braceR);){if(t)t=!1;else if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break;e.push(this.parseImportSpecifier())}return e};w.parseWithClause=function(){var e=[];if(!this.eat(o._with))return e;this.expect(o.braceL);for(var t={},r=!0;!this.eat(o.braceR);){if(r)r=!1;else if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break;var s=this.parseImportAttribute(),i=s.key.type==="Identifier"?s.key.name:s.key.value;Rt(t,i)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(s)}return e};w.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===o.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(o.colon),this.type!==o.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===o.string){var e=this.parseLiteral(this.value);return ad.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};w.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};w.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var $e=le.prototype;$e.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var s=0,i=e.properties;s<i.length;s+=1){var n=i[s];this.toAssignable(n,t),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};$e.toAssignableList=function(e,t){for(var r=e.length,s=0;s<r;s++){var i=e[s];i&&this.toAssignable(i,t)}if(r){var n=e[r-1];this.options.ecmaVersion===6&&t&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return e};$e.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};$e.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==o.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};$e.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case o.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(o.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case o.braceL:return this.parseObj(!0)}return this.parseIdent()};$e.parseBindingList=function(e,t,r,s){for(var i=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(o.comma),t&&this.type===o.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===o.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===o.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(s))}return i};$e.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};$e.parseBindingListItem=function(e){return e};$e.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(o.eq))return r;var s=this.startNodeAt(e,t);return s.left=r,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")};$e.checkLValSimple=function(e,t,r){t===void 0&&(t=Dr);var s=t!==Dr;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===st&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(Rt(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==Ru&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}};$e.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=Dr),e.type){case"ObjectPattern":for(var s=0,i=e.properties;s<i.length;s+=1){var n=i[s];this.checkLValInnerPattern(n,t,r)}break;case"ArrayPattern":for(var a=0,u=e.elements;a<u.length;a+=1){var c=u[a];c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}};$e.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=Dr),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var Be=function(t,r,s,i,n){this.token=t,this.isExpr=!!r,this.preserveSpace=!!s,this.override=i,this.generator=!!n},Y={b_stat:new Be("{",!1),b_expr:new Be("{",!0),b_tmpl:new Be("${",!1),p_stat:new Be("(",!1),p_expr:new Be("(",!0),q_tmpl:new Be("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Be("function",!1),f_expr:new Be("function",!0),f_expr_gen:new Be("function",!0,!1,null,!0),f_gen:new Be("function",!1,!1,null,!0)},It=le.prototype;It.initialContext=function(){return[Y.b_stat]};It.curContext=function(){return this.context[this.context.length-1]};It.braceIsBlock=function(e){var t=this.curContext();return t===Y.f_expr||t===Y.f_stat?!0:e===o.colon&&(t===Y.b_stat||t===Y.b_expr)?!t.isExpr:e===o._return||e===o.name&&this.exprAllowed?Ae.test(this.input.slice(this.lastTokEnd,this.start)):e===o._else||e===o.semi||e===o.eof||e===o.parenR||e===o.arrow?!0:e===o.braceL?t===Y.b_stat:e===o._var||e===o._const||e===o.name?!1:!this.exprAllowed};It.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};It.updateContext=function(e){var t,r=this.type;r.keyword&&e===o.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};It.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};o.parenR.updateContext=o.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Y.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};o.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Y.b_stat:Y.b_expr),this.exprAllowed=!0};o.dollarBraceL.updateContext=function(){this.context.push(Y.b_tmpl),this.exprAllowed=!0};o.parenL.updateContext=function(e){var t=e===o._if||e===o._for||e===o._with||e===o._while;this.context.push(t?Y.p_stat:Y.p_expr),this.exprAllowed=!0};o.incDec.updateContext=function(){};o._function.updateContext=o._class.updateContext=function(e){e.beforeExpr&&e!==o._else&&!(e===o.semi&&this.curContext()!==Y.p_stat)&&!(e===o._return&&Ae.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===o.colon||e===o.braceL)&&this.curContext()===Y.b_stat)?this.context.push(Y.f_expr):this.context.push(Y.f_stat),this.exprAllowed=!1};o.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};o.backQuote.updateContext=function(){this.curContext()===Y.q_tmpl?this.context.pop():this.context.push(Y.q_tmpl),this.exprAllowed=!1};o.star.updateContext=function(e){if(e===o._function){var t=this.context.length-1;this.context[t]===Y.f_expr?this.context[t]=Y.f_expr_gen:this.context[t]=Y.f_gen}this.exprAllowed=!0};o.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==o.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var T=le.prototype;T.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,i;switch(s.type){case"Identifier":i=s.name;break;case"Literal":i=String(s.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&n==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var a=t[i];if(a){var u;n==="init"?u=this.strict&&a.init||a.get||a.set:u=a.init||a[n],u&&this.raiseRecoverable(s.start,"Redefinition of property")}else a=t[i]={init:!1,get:!1,set:!1};a[n]=!0}};T.parseExpression=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===o.comma){var n=this.startNodeAt(r,s);for(n.expressions=[i];this.eat(o.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return i};T.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,i=-1,n=-1,a=-1;t?(i=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Ur,s=!0);var u=this.start,c=this.startLoc;(this.type===o.parenL||this.type===o.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(r&&(f=r.call(this,f,u,c)),this.type.isAssign){var l=this.startNodeAt(u,c);return l.operator=this.value,this.type===o.eq&&(f=this.toAssignable(f,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),this.type===o.eq?this.checkLValPattern(f):this.checkLValSimple(f),l.left=f,this.next(),l.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(l,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),n>-1&&(t.trailingComma=n),f};T.parseMaybeConditional=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(o.question)){var n=this.startNodeAt(r,s);return n.test=i,n.consequent=this.parseMaybeAssign(),this.expect(o.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return i};T.parseExprOps=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,s,-1,e)};T.parseExprOp=function(e,t,r,s,i){var n=this.type.binop;if(n!=null&&(!i||this.type!==o._in)&&n>s){var a=this.type===o.logicalOR||this.type===o.logicalAND,u=this.type===o.coalesce;u&&(n=o.logicalAND.binop);var c=this.value;this.next();var f=this.start,l=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),f,l,n,i),p=this.buildBinary(t,r,e,h,c,a||u);return(a&&this.type===o.coalesce||u&&(this.type===o.logicalOR||this.type===o.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,r,s,i)}return e};T.buildBinary=function(e,t,r,s,i,n){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=r,a.operator=i,a.right=s,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")};T.parseMaybeUnary=function(e,t,r,s){var i=this.start,n=this.startLoc,a;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(s),t=!0;else if(this.type.prefix){var u=this.startNode(),c=this.type===o.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,c,s),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&Iu(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&ki(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):t=!0,a=this.finishNode(u,c?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===o.privateId)(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),a=this.parsePrivateIdent(),this.type!==o._in&&this.unexpected();else{if(a=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(i,n);f.operator=this.value,f.prefix=!1,f.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(f,"UpdateExpression")}}if(!r&&this.eat(o.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,n,a,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return a};function Iu(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Iu(e.expression)}function ki(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&ki(e.expression)||e.type==="ParenthesizedExpression"&&ki(e.expression)}T.parseExprSubscripts=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var n=this.parseSubscripts(i,r,s,!1,t);return e&&n.type==="MemberExpression"&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n};T.parseSubscripts=function(e,t,r,s,i){for(var n=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var u=this.parseSubscript(e,t,r,s,n,a,i);if(u.optional&&(a=!0),u===e||u.type==="ArrowFunctionExpression"){if(a){var c=this.startNodeAt(t,r);c.expression=u,u=this.finishNode(c,"ChainExpression")}return u}e=u}};T.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(o.arrow)};T.parseSubscriptAsyncArrow=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,s)};T.parseSubscript=function(e,t,r,s,i,n,a){var u=this.options.ecmaVersion>=11,c=u&&this.eat(o.questionDot);s&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(o.bracketL);if(f||c&&this.type!==o.parenL&&this.type!==o.backQuote||this.eat(o.dot)){var l=this.startNodeAt(t,r);l.object=e,f?(l.property=this.parseExpression(),this.expect(o.bracketR)):this.type===o.privateId&&e.type!=="Super"?l.property=this.parsePrivateIdent():l.property=this.parseIdent(this.options.allowReserved!=="never"),l.computed=!!f,u&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!s&&this.eat(o.parenL)){var h=new Ur,p=this.yieldPos,d=this.awaitPos,O=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var N=this.parseExprList(o.parenR,this.options.ecmaVersion>=8,!1,h);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=O,this.parseSubscriptAsyncArrow(t,r,N,a);this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=O||this.awaitIdentPos;var F=this.startNodeAt(t,r);F.callee=e,F.arguments=N,u&&(F.optional=c),e=this.finishNode(F,"CallExpression")}else if(this.type===o.backQuote){(c||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var W=this.startNodeAt(t,r);W.tag=e,W.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(W,"TaggedTemplateExpression")}return e};T.parseExprAtom=function(e,t,r){this.type===o.slash&&this.readRegexp();var s,i=this.potentialArrowAt===this.start;switch(this.type){case o._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type===o.parenL&&!this.allowDirectSuper&&this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==o.dot&&this.type!==o.bracketL&&this.type!==o.parenL&&this.unexpected(),this.finishNode(s,"Super");case o._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case o.name:var n=this.start,a=this.startLoc,u=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&c.name==="async"&&!this.canInsertSemicolon()&&this.eat(o._function))return this.overrideContext(Y.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(o.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name==="async"&&this.type===o.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(o.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[c],!0,t)}return c;case o.regexp:var f=this.value;return s=this.parseLiteral(f.value),s.regex={pattern:f.pattern,flags:f.flags},s;case o.num:case o.string:return this.parseLiteral(this.value);case o._null:case o._true:case o._false:return s=this.startNode(),s.value=this.type===o._null?null:this.type===o._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case o.parenL:var l=this.start,h=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),h;case o.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(o.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case o.braceL:return this.overrideContext(Y.b_expr),this.parseObj(!1,e);case o._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case o._class:return this.parseClass(this.startNode(),!1);case o._new:return this.parseNew();case o.backQuote:return this.parseTemplate();case o._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};T.parseExprAtomDefault=function(){this.unexpected()};T.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===o.parenL&&!e)return this.parseDynamicImport(t);if(this.type===o.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};T.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(o.parenR)?e.options=null:(this.expect(o.comma),this.afterTrailingComma(o.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(o.parenR)||(this.expect(o.comma),this.afterTrailingComma(o.parenR)||this.unexpected())));else if(!this.eat(o.parenR)){var t=this.start;this.eat(o.comma)&&this.eat(o.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};T.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};T.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};T.parseParenExpression=function(){this.expect(o.parenL);var e=this.parseExpression();return this.expect(o.parenR),e};T.shouldParseArrow=function(e){return!this.canInsertSemicolon()};T.parseParenAndDistinguishExpression=function(e,t){var r=this.start,s=this.startLoc,i,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,u=this.startLoc,c=[],f=!0,l=!1,h=new Ur,p=this.yieldPos,d=this.awaitPos,O;for(this.yieldPos=0,this.awaitPos=0;this.type!==o.parenR;)if(f?f=!1:this.expect(o.comma),n&&this.afterTrailingComma(o.parenR,!0)){l=!0;break}else if(this.type===o.ellipsis){O=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===o.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else c.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var N=this.lastTokEnd,F=this.lastTokEndLoc;if(this.expect(o.parenR),e&&this.shouldParseArrow(c)&&this.eat(o.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(r,s,c,t);(!c.length||l)&&this.unexpected(this.lastTokStart),O&&this.unexpected(O),this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?(i=this.startNodeAt(a,u),i.expressions=c,this.finishNodeAt(i,"SequenceExpression",N,F)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var W=this.startNodeAt(r,s);return W.expression=i,this.finishNode(W,"ParenthesizedExpression")}else return i};T.parseParenItem=function(e){return e};T.parseParenArrowList=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,s)};var pd=[];T.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===o.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,i,!0,!1),this.eat(o.parenL)?e.arguments=this.parseExprList(o.parenR,this.options.ecmaVersion>=8,!1):e.arguments=pd,this.finishNode(e,"NewExpression")};T.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===o.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
39
39
  `),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
@@ -41,6 +41,6 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
41
41
  `;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};D.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(o.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
42
42
  `&&++this.pos;case`
43
43
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};D.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
44
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tt(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(s,8);return i>255&&(s=s.slice(0,-1),i=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Ot(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};D.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};D.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(ut(i,s))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?He:ut)(a,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=tt(a),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};D.readWord=function(){var e=this.readWord1(),t=o.name;return this.keywords.test(e)&&(t=Ei[e]),this.finishToken(t,e)};var Ld="8.15.0";le.acorn={Parser:le,version:Ld,defaultOptions:wi,Position:Kt,SourceLocation:Vr,getLineInfo:ku,Node:Gr,TokenType:M,tokTypes:o,keywordTypes:Ei,TokContext:Be,tokContexts:Y,isIdentifierChar:ut,isIdentifierStart:He,Token:Pi,isNewLine:Ot,lineBreak:Ae,lineBreakG:sd,nonASCIIwhitespace:wu};import{builtinModules as Bi,createRequire as px}from"module";import Gd,{realpathSync as Wd,statSync as Ui,promises as mx}from"fs";_();var W0=String.fromCharCode;var Dd=/\/$|\/\?|\/#/,$d=/^\.?\//;function Fd(e="",t){return t?Dd.test(e):e.endsWith("/")}function Md(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Fd(e,!0))return e||"/";let r=e,s="",i=e.indexOf("#");if(i!==-1&&(r=e.slice(0,i),s=e.slice(i),!r))return s;let[n,...a]=r.split("?");return n+"/"+(a.length>0?`?${a.join("?")}`:"")+s}function Vd(e){return e&&e!=="/"}function Ii(e,...t){let r=e||"";for(let s of t.filter(i=>Vd(i)))if(r){let i=s.replace($d,"");r=Md(r)+i}else r=s;return r}var H0=Symbol.for("ufo:protocolRelative");_();_();var jd=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var Ni=function(e){return jd.test(e)};import{fileURLToPath as V,URL as ae,pathToFileURL as Kr}from"url";import lt from"assert";import yt from"process";import Gi,{dirname as wx}from"path";import Hd from"v8";import{format as qd,inspect as Mi}from"util";var pc=new Set(Bi);function Vi(e){return e.replace(/\\/g,"/")}var zd={}.hasOwnProperty,Kd=/^([A-Z][a-z\d]*)+$/,Yd=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),ve={};function Li(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var dc=new Map,Qd="__node_internal_",ec;ve.ERR_INVALID_ARG_TYPE=Fe("ERR_INVALID_ARG_TYPE",(e,t,r)=>{lt(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let s="The ";if(e.endsWith(" argument"))s+=`${e} `;else{let u=e.includes(".")?"property":"argument";s+=`"${e}" ${u} `}s+="must be ";let i=[],n=[],a=[];for(let u of t)lt(typeof u=="string","All expected entries have to be of type string"),Yd.has(u)?i.push(u.toLowerCase()):Kd.exec(u)===null?(lt(u!=="object",'The value "object" should be written as "Object"'),a.push(u)):n.push(u);if(n.length>0){let u=i.indexOf("object");u!==-1&&(i.slice(u,1),n.push("Object"))}return i.length>0&&(s+=`${i.length>1?"one of type":"of type"} ${Li(i,"or")}`,(n.length>0||a.length>0)&&(s+=" or ")),n.length>0&&(s+=`an instance of ${Li(n,"or")}`,a.length>0&&(s+=" or ")),a.length>0&&(a.length>1?s+=`one of ${Li(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(s+="an "),s+=`${a[0]}`)),s+=`. Received ${tm(r)}`,s},TypeError);ve.ERR_INVALID_MODULE_SPECIFIER=Fe("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);ve.ERR_INVALID_PACKAGE_CONFIG=Fe("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);ve.ERR_INVALID_PACKAGE_TARGET=Fe("ERR_INVALID_PACKAGE_TARGET",(e,t,r,s=!1,i=void 0)=>{let n=typeof r=="string"&&!s&&r.length>0&&!r.startsWith("./");return t==="."?(lt(s===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${s?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`},Error);ve.ERR_MODULE_NOT_FOUND=Fe("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);ve.ERR_NETWORK_IMPORT_DISALLOWED=Fe("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);ve.ERR_PACKAGE_IMPORT_NOT_DEFINED=Fe("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);ve.ERR_PACKAGE_PATH_NOT_EXPORTED=Fe("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);ve.ERR_UNSUPPORTED_DIR_IMPORT=Fe("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);ve.ERR_UNSUPPORTED_RESOLVE_REQUEST=Fe("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);ve.ERR_UNKNOWN_FILE_EXTENSION=Fe("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);ve.ERR_INVALID_ARG_VALUE=Fe("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let s=Mi(t);return s.length>128&&(s=`${s.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${s}`},TypeError);function Fe(e,t,r){return dc.set(e,t),Xd(r,e)}function Xd(e,t){return r;function r(...s){let i=Error.stackTraceLimit;ji()&&(Error.stackTraceLimit=0);let n=new e;ji()&&(Error.stackTraceLimit=i);let a=em(t,s,n);return Object.defineProperties(n,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Jd(n),n.code=t,n}}function ji(){try{if(Hd.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):zd.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function Zd(e){let t=Qd+e.name;return Object.defineProperty(e,"name",{value:t}),e}var Jd=Zd(function(e){let t=ji();return t&&(ec=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=ec),e});function em(e,t,r){let s=dc.get(e);if(lt(s!==void 0,"expected `message` to be found"),typeof s=="function")return lt(s.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${s.length}).`),Reflect.apply(s,r,t);let i=/%[dfijoOs]/g,n=0;for(;i.exec(s)!==null;)n++;return lt(n===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n}).`),t.length===0?s:(t.unshift(s),Reflect.apply(qd,null,t))}function tm(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${Mi(e,{depth:-1})}`;let t=Mi(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Zt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:rm}=ve,tc=new Map;function mc(e,{base:t,specifier:r}){let s=tc.get(e);if(s)return s;let i;try{i=Gd.readFileSync(Gi.toNamespacedPath(e),"utf8")}catch(a){let u=a;if(u.code!=="ENOENT")throw u}let n={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(i!==void 0){let a;try{a=JSON.parse(i)}catch(u){let c=u,f=new rm(e,(t?`"${r}" from `:"")+V(t||r),c.message);throw f.cause=c,f}n.exists=!0,Zt.call(a,"name")&&typeof a.name=="string"&&(n.name=a.name),Zt.call(a,"main")&&typeof a.main=="string"&&(n.main=a.main),Zt.call(a,"exports")&&(n.exports=a.exports),Zt.call(a,"imports")&&(n.imports=a.imports),Zt.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(n.type=a.type)}return tc.set(e,n),n}function Wi(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let i=mc(V(t),{specifier:e});if(i.exists)return i;let n=t;if(t=new URL("../package.json",t),t.pathname===n.pathname)break}return{pjsonPath:V(t),exists:!1,type:"none"}}function rc(e){return Wi(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:sm}=ve,im={}.hasOwnProperty,nm={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function am(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var sc={__proto__:null,"data:":om,"file:":cm,"http:":ic,"https:":ic,"node:"(){return"builtin"}};function om(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return am(t)}function um(e){let t=e.pathname,r=t.length;for(;r--;){let s=t.codePointAt(r);if(s===47)return"";if(s===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function cm(e,t,r){let s=um(e);if(s===".js"){let a=rc(e);return a!=="none"?a:"commonjs"}if(s===""){let a=rc(e);return a==="none"||a==="commonjs"?"commonjs":"module"}let i=nm[s];if(i)return i;if(r)return;let n=V(e);throw new sm(s,n)}function ic(){}function lm(e,t){let r=e.protocol;return im.call(sc,r)&&sc[r](e,t,!0)||null}var Hr=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:Ex,ERR_INVALID_MODULE_SPECIFIER:Yr,ERR_INVALID_PACKAGE_CONFIG:gc,ERR_INVALID_PACKAGE_TARGET:hm,ERR_MODULE_NOT_FOUND:Hi,ERR_PACKAGE_IMPORT_NOT_DEFINED:fm,ERR_PACKAGE_PATH_NOT_EXPORTED:pm,ERR_UNSUPPORTED_DIR_IMPORT:dm,ERR_UNSUPPORTED_RESOLVE_REQUEST:nc}=ve,xc={}.hasOwnProperty,ac=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,oc=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,mm=/^\.|%|\\/,qr=/\*/g,gm=/%2f|%5c/i,uc=new Set,xm=/[/\\]{2}/;function cc(e,t,r,s,i,n,a){if(yt.noDeprecation)return;let u=V(s),c=xm.exec(a?e:t)!==null;yt.emitWarning(`Use of deprecated ${c?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${i?"imports":"exports"}" field module resolution of the package at ${u}${n?` imported from ${V(n)}`:""}.`,"DeprecationWarning","DEP0166")}function lc(e,t,r,s){if(yt.noDeprecation||lm(e,{parentURL:r.href})!=="module")return;let n=V(e.href),a=V(new ae(".",t)),u=V(r);s?Gi.resolve(a,s)!==n&&yt.emitWarning(`Package ${a} has a "main" field set to "${s}", excluding the full filename and extension to the resolved file at "${n.slice(a.length)}", imported from ${u}.
44
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tt(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(s,8);return i>255&&(s=s.slice(0,-1),i=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Ot(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};D.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};D.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(ut(i,s))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?He:ut)(a,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=tt(a),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};D.readWord=function(){var e=this.readWord1(),t=o.name;return this.keywords.test(e)&&(t=Ei[e]),this.finishToken(t,e)};var Ld="8.15.0";le.acorn={Parser:le,version:Ld,defaultOptions:wi,Position:Kt,SourceLocation:Vr,getLineInfo:ku,Node:Gr,TokenType:M,tokTypes:o,keywordTypes:Ei,TokContext:Be,tokContexts:Y,isIdentifierChar:ut,isIdentifierStart:He,Token:Pi,isNewLine:Ot,lineBreak:Ae,lineBreakG:sd,nonASCIIwhitespace:wu};import{builtinModules as Bi,createRequire as mx}from"module";import Gd,{realpathSync as Wd,statSync as Ui,promises as xx}from"fs";_();var q0=String.fromCharCode;var Dd=/\/$|\/\?|\/#/,$d=/^\.?\//;function Fd(e="",t){return t?Dd.test(e):e.endsWith("/")}function Md(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Fd(e,!0))return e||"/";let r=e,s="",i=e.indexOf("#");if(i!==-1&&(r=e.slice(0,i),s=e.slice(i),!r))return s;let[n,...a]=r.split("?");return n+"/"+(a.length>0?`?${a.join("?")}`:"")+s}function Vd(e){return e&&e!=="/"}function Ii(e,...t){let r=e||"";for(let s of t.filter(i=>Vd(i)))if(r){let i=s.replace($d,"");r=Md(r)+i}else r=s;return r}var z0=Symbol.for("ufo:protocolRelative");_();_();var jd=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var Ni=function(e){return jd.test(e)};import{fileURLToPath as V,URL as ae,pathToFileURL as Kr}from"url";import lt from"assert";import yt from"process";import Gi,{dirname as kx}from"path";import Hd from"v8";import{format as qd,inspect as Mi}from"util";var pc=new Set(Bi);function Vi(e){return e.replace(/\\/g,"/")}var zd={}.hasOwnProperty,Kd=/^([A-Z][a-z\d]*)+$/,Yd=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),ve={};function Li(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var dc=new Map,Qd="__node_internal_",ec;ve.ERR_INVALID_ARG_TYPE=Fe("ERR_INVALID_ARG_TYPE",(e,t,r)=>{lt(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let s="The ";if(e.endsWith(" argument"))s+=`${e} `;else{let u=e.includes(".")?"property":"argument";s+=`"${e}" ${u} `}s+="must be ";let i=[],n=[],a=[];for(let u of t)lt(typeof u=="string","All expected entries have to be of type string"),Yd.has(u)?i.push(u.toLowerCase()):Kd.exec(u)===null?(lt(u!=="object",'The value "object" should be written as "Object"'),a.push(u)):n.push(u);if(n.length>0){let u=i.indexOf("object");u!==-1&&(i.slice(u,1),n.push("Object"))}return i.length>0&&(s+=`${i.length>1?"one of type":"of type"} ${Li(i,"or")}`,(n.length>0||a.length>0)&&(s+=" or ")),n.length>0&&(s+=`an instance of ${Li(n,"or")}`,a.length>0&&(s+=" or ")),a.length>0&&(a.length>1?s+=`one of ${Li(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(s+="an "),s+=`${a[0]}`)),s+=`. Received ${tm(r)}`,s},TypeError);ve.ERR_INVALID_MODULE_SPECIFIER=Fe("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);ve.ERR_INVALID_PACKAGE_CONFIG=Fe("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);ve.ERR_INVALID_PACKAGE_TARGET=Fe("ERR_INVALID_PACKAGE_TARGET",(e,t,r,s=!1,i=void 0)=>{let n=typeof r=="string"&&!s&&r.length>0&&!r.startsWith("./");return t==="."?(lt(s===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${s?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${n?'; targets must start with "./"':""}`},Error);ve.ERR_MODULE_NOT_FOUND=Fe("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);ve.ERR_NETWORK_IMPORT_DISALLOWED=Fe("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);ve.ERR_PACKAGE_IMPORT_NOT_DEFINED=Fe("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);ve.ERR_PACKAGE_PATH_NOT_EXPORTED=Fe("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);ve.ERR_UNSUPPORTED_DIR_IMPORT=Fe("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);ve.ERR_UNSUPPORTED_RESOLVE_REQUEST=Fe("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);ve.ERR_UNKNOWN_FILE_EXTENSION=Fe("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);ve.ERR_INVALID_ARG_VALUE=Fe("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let s=Mi(t);return s.length>128&&(s=`${s.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${s}`},TypeError);function Fe(e,t,r){return dc.set(e,t),Xd(r,e)}function Xd(e,t){return r;function r(...s){let i=Error.stackTraceLimit;ji()&&(Error.stackTraceLimit=0);let n=new e;ji()&&(Error.stackTraceLimit=i);let a=em(t,s,n);return Object.defineProperties(n,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Jd(n),n.code=t,n}}function ji(){try{if(Hd.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):zd.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function Zd(e){let t=Qd+e.name;return Object.defineProperty(e,"name",{value:t}),e}var Jd=Zd(function(e){let t=ji();return t&&(ec=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=ec),e});function em(e,t,r){let s=dc.get(e);if(lt(s!==void 0,"expected `message` to be found"),typeof s=="function")return lt(s.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${s.length}).`),Reflect.apply(s,r,t);let i=/%[dfijoOs]/g,n=0;for(;i.exec(s)!==null;)n++;return lt(n===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n}).`),t.length===0?s:(t.unshift(s),Reflect.apply(qd,null,t))}function tm(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${Mi(e,{depth:-1})}`;let t=Mi(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Zt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:rm}=ve,tc=new Map;function mc(e,{base:t,specifier:r}){let s=tc.get(e);if(s)return s;let i;try{i=Gd.readFileSync(Gi.toNamespacedPath(e),"utf8")}catch(a){let u=a;if(u.code!=="ENOENT")throw u}let n={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(i!==void 0){let a;try{a=JSON.parse(i)}catch(u){let c=u,f=new rm(e,(t?`"${r}" from `:"")+V(t||r),c.message);throw f.cause=c,f}n.exists=!0,Zt.call(a,"name")&&typeof a.name=="string"&&(n.name=a.name),Zt.call(a,"main")&&typeof a.main=="string"&&(n.main=a.main),Zt.call(a,"exports")&&(n.exports=a.exports),Zt.call(a,"imports")&&(n.imports=a.imports),Zt.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(n.type=a.type)}return tc.set(e,n),n}function Wi(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let i=mc(V(t),{specifier:e});if(i.exists)return i;let n=t;if(t=new URL("../package.json",t),t.pathname===n.pathname)break}return{pjsonPath:V(t),exists:!1,type:"none"}}function rc(e){return Wi(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:sm}=ve,im={}.hasOwnProperty,nm={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function am(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var sc={__proto__:null,"data:":om,"file:":cm,"http:":ic,"https:":ic,"node:"(){return"builtin"}};function om(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return am(t)}function um(e){let t=e.pathname,r=t.length;for(;r--;){let s=t.codePointAt(r);if(s===47)return"";if(s===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function cm(e,t,r){let s=um(e);if(s===".js"){let a=rc(e);return a!=="none"?a:"commonjs"}if(s===""){let a=rc(e);return a==="none"||a==="commonjs"?"commonjs":"module"}let i=nm[s];if(i)return i;if(r)return;let n=V(e);throw new sm(s,n)}function ic(){}function lm(e,t){let r=e.protocol;return im.call(sc,r)&&sc[r](e,t,!0)||null}var Hr=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:Ax,ERR_INVALID_MODULE_SPECIFIER:Yr,ERR_INVALID_PACKAGE_CONFIG:gc,ERR_INVALID_PACKAGE_TARGET:hm,ERR_MODULE_NOT_FOUND:Hi,ERR_PACKAGE_IMPORT_NOT_DEFINED:fm,ERR_PACKAGE_PATH_NOT_EXPORTED:pm,ERR_UNSUPPORTED_DIR_IMPORT:dm,ERR_UNSUPPORTED_RESOLVE_REQUEST:nc}=ve,xc={}.hasOwnProperty,ac=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,oc=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,mm=/^\.|%|\\/,qr=/\*/g,gm=/%2f|%5c/i,uc=new Set,xm=/[/\\]{2}/;function cc(e,t,r,s,i,n,a){if(yt.noDeprecation)return;let u=V(s),c=xm.exec(a?e:t)!==null;yt.emitWarning(`Use of deprecated ${c?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${i?"imports":"exports"}" field module resolution of the package at ${u}${n?` imported from ${V(n)}`:""}.`,"DeprecationWarning","DEP0166")}function lc(e,t,r,s){if(yt.noDeprecation||lm(e,{parentURL:r.href})!=="module")return;let n=V(e.href),a=V(new ae(".",t)),u=V(r);s?Gi.resolve(a,s)!==n&&yt.emitWarning(`Package ${a} has a "main" field set to "${s}", excluding the full filename and extension to the resolved file at "${n.slice(a.length)}", imported from ${u}.
45
45
  Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):yt.emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${n.slice(a.length)}", imported from ${u}.
46
- Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function _c(e){try{return Ui(e)}catch{}}function Di(e){let t=Ui(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function _m(e,t,r){let s;if(t.main!==void 0){if(s=new ae(t.main,e),Di(s))return s;let a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],u=-1;for(;++u<a.length&&(s=new ae(a[u],e),!Di(s));)s=void 0;if(s)return lc(s,e,r,t.main),s}let i=["./index.js","./index.json","./index.node"],n=-1;for(;++n<i.length&&(s=new ae(i[n],e),!Di(s));)s=void 0;if(s)return lc(s,e,r,t.main),s;throw new Hi(V(new ae(".",e)),V(r))}function ym(e,t,r){if(gm.exec(e.pathname)!==null)throw new Yr(e.pathname,'must not include encoded "/" or "\\" characters',V(t));let s;try{s=V(e)}catch(n){let a=n;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}let i=_c(s.endsWith("/")?s.slice(-1):s);if(i&&i.isDirectory()){let n=new dm(s,V(t));throw n.url=String(e),n}if(!i||!i.isFile()){let n=new Hi(s||e.pathname,t&&V(t),!0);throw n.url=String(e),n}{let n=Wd(s),{search:a,hash:u}=e;e=Kr(n+(s.endsWith(Gi.sep)?"/":"")),e.search=a,e.hash=u}return e}function vm(e,t,r){return new fm(e,t&&V(new ae(".",t)),V(r))}function $i(e,t,r){return new pm(V(new ae(".",t)),e,r&&V(r))}function bm(e,t,r,s,i){let n=`request is not a valid match in pattern "${t}" for the "${s?"imports":"exports"}" resolution of ${V(r)}`;throw new Yr(e,n,i&&V(i))}function Jt(e,t,r,s,i){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new hm(V(new ae(".",r)),e,t,s,i&&V(i))}function wm(e,t,r,s,i,n,a,u,c){if(t!==""&&!n&&e[e.length-1]!=="/")throw Jt(r,e,s,a,i);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let p=!1;try{new ae(e),p=!0}catch{}if(!p){let d=n?Hr.call(qr,e,()=>t):e+t;return vc(d,s,c)}}throw Jt(r,e,s,a,i)}if(ac.exec(e.slice(2))!==null)if(oc.exec(e.slice(2))===null){if(!u){let p=n?r.replace("*",()=>t):r+t,d=n?Hr.call(qr,e,()=>t):e;cc(d,p,r,s,a,i,!0)}}else throw Jt(r,e,s,a,i);let f=new ae(e,s),l=f.pathname,h=new ae(".",s).pathname;if(!l.startsWith(h))throw Jt(r,e,s,a,i);if(t==="")return f;if(ac.exec(t)!==null){let p=n?r.replace("*",()=>t):r+t;if(oc.exec(t)===null){if(!u){let d=n?Hr.call(qr,e,()=>t):e;cc(d,p,r,s,a,i,!1)}}else bm(p,r,s,a,i)}return n?new ae(Hr.call(qr,f.href,()=>t)):new ae(t,f)}function Cm(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function Nt(e,t,r,s,i,n,a,u,c){if(typeof t=="string")return wm(t,r,s,e,i,n,a,u,c);if(Array.isArray(t)){let f=t;if(f.length===0)return null;let l,h=-1;for(;++h<f.length;){let p=f[h],d;try{d=Nt(e,p,r,s,i,n,a,u,c)}catch(O){let N=O;if(l=N,N.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw O}if(d!==void 0){if(d===null){l=null;continue}return d}}if(l==null)return null;throw l}if(typeof t=="object"&&t!==null){let f=Object.getOwnPropertyNames(t),l=-1;for(;++l<f.length;){let h=f[l];if(Cm(h))throw new gc(V(e),i,'"exports" cannot contain numeric property keys.')}for(l=-1;++l<f.length;){let h=f[l];if(h==="default"||c&&c.has(h)){let p=t[h],d=Nt(e,p,r,s,i,n,a,u,c);if(d===void 0)continue;return d}}return null}if(t===null)return null;throw Jt(s,t,e,a,i)}function km(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let s=Object.getOwnPropertyNames(e),i=!1,n=0,a=-1;for(;++a<s.length;){let u=s[a],c=u===""||u[0]!==".";if(n++===0)i=c;else if(i!==c)throw new gc(V(t),r,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}function Em(e,t,r){if(yt.noDeprecation)return;let s=V(t);uc.has(s+"|"+e)||(uc.add(s+"|"+e),yt.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${s}${r?` imported from ${V(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function hc(e,t,r,s,i){let n=r.exports;if(km(n,e,s)&&(n={".":n}),xc.call(n,t)&&!t.includes("*")&&!t.endsWith("/")){let l=n[t],h=Nt(e,l,"",t,s,!1,!1,!1,i);if(h==null)throw $i(t,e,s);return h}let a="",u="",c=Object.getOwnPropertyNames(n),f=-1;for(;++f<c.length;){let l=c[f],h=l.indexOf("*");if(h!==-1&&t.startsWith(l.slice(0,h))){t.endsWith("/")&&Em(t,e,s);let p=l.slice(h+1);t.length>=l.length&&t.endsWith(p)&&yc(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,u=t.slice(h,t.length-p.length))}}if(a){let l=n[a],h=Nt(e,l,u,a,s,!0,!1,t.endsWith("/"),i);if(h==null)throw $i(t,e,s);return h}throw $i(t,e,s)}function yc(e,t){let r=e.indexOf("*"),s=t.indexOf("*"),i=r===-1?e.length:r+1,n=s===-1?t.length:s+1;return i>n?-1:n>i||r===-1?1:s===-1||e.length>t.length?-1:t.length>e.length?1:0}function Sm(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let n="is not a valid internal imports specifier name";throw new Yr(e,n,V(t))}let s,i=Wi(t);if(i.exists){s=Kr(i.pjsonPath);let n=i.imports;if(n)if(xc.call(n,e)&&!e.includes("*")){let a=Nt(s,n[e],"",e,t,!1,!0,!1,r);if(a!=null)return a}else{let a="",u="",c=Object.getOwnPropertyNames(n),f=-1;for(;++f<c.length;){let l=c[f],h=l.indexOf("*");if(h!==-1&&e.startsWith(l.slice(0,-1))){let p=l.slice(h+1);e.length>=l.length&&e.endsWith(p)&&yc(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,u=e.slice(h,e.length-p.length))}}if(a){let l=n[a],h=Nt(s,l,u,a,t,!0,!0,!1,r);if(h!=null)return h}}}throw vm(e,s,t)}function Am(e,t){let r=e.indexOf("/"),s=!0,i=!1;e[0]==="@"&&(i=!0,r===-1||e.length===0?s=!1:r=e.indexOf("/",r+1));let n=r===-1?e:e.slice(0,r);if(mm.exec(n)!==null&&(s=!1),!s)throw new Yr(e,"is not a valid package name",V(t));let a="."+(r===-1?"":e.slice(r));return{packageName:n,packageSubpath:a,isScoped:i}}function vc(e,t,r){if(Bi.includes(e))return new ae("node:"+e);let{packageName:s,packageSubpath:i,isScoped:n}=Am(e,t),a=Wi(t);if(a.exists){let l=Kr(a.pjsonPath);if(a.name===s&&a.exports!==void 0&&a.exports!==null)return hc(l,i,a,t,r)}let u=new ae("./node_modules/"+s+"/package.json",t),c=V(u),f;do{let l=_c(c.slice(0,-13));if(!l||!l.isDirectory()){f=c,u=new ae((n?"../../../../node_modules/":"../../../node_modules/")+s+"/package.json",u),c=V(u);continue}let h=mc(c,{base:t,specifier:e});return h.exports!==void 0&&h.exports!==null?hc(u,i,h,t,r):i==="."?_m(u,h,t):new ae(i,u)}while(c.length!==f.length);throw new Hi(s,V(t),!1)}function Tm(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function Om(e){return e===""?!1:e[0]==="/"?!0:Tm(e)}function Rm(e,t,r,s){let i=t.protocol,a=i==="data:"||i==="http:"||i==="https:",u;if(Om(e))try{u=new ae(e,t)}catch(c){let f=new nc(e,t);throw f.cause=c,f}else if(i==="file:"&&e[0]==="#")u=Sm(e,t,r);else try{u=new ae(e)}catch(c){if(a&&!Bi.includes(e)){let f=new nc(e,t);throw f.cause=c,f}u=vc(e,t,r)}return lt(u!==void 0,"expected to be defined"),u.protocol!=="file:"?u:ym(u,t)}function zr(e){return typeof e=="string"&&!e.startsWith("file://")?Vi(e):Vi(V(e))}function Fi(e){return Kr(zr(e)).toString()}function Pm(e){return typeof e!="string"&&(e=e.toString()),/(node|data|http|https|file):/.test(e)?e:pc.has(e)?"node:"+e:"file://"+encodeURI(Vi(e))}var Im=new Set(["node","import"]),Nm=[".mjs",".cjs",".js",".json"],Lm=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function fc(e,t,r){try{return Rm(e,t,r)}catch(s){if(!Lm.has(s?.code))throw s}}function Dm(e,t={}){if(typeof e!="string")if(e instanceof URL)e=zr(e);else throw new TypeError("input must be a `string` or `URL`");if(/(node|data|http|https):/.test(e))return e;if(pc.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=zr(e)),Ni(e))try{if(Ui(e).isFile())return Fi(e)}catch(a){if(a?.code!=="ENOENT")throw a}let r=t.conditions?new Set(t.conditions):Im,s=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(a=>new URL(Pm(a.toString())));s.length===0&&s.push(new URL(Fi(process.cwd())));let i=[...s];for(let a of s)a.protocol==="file:"&&i.push(new URL("./",a),new URL(Ii(a.pathname,"_index.js"),a),new URL("node_modules",a));let n;for(let a of i){if(n=fc(e,a,r),n)break;for(let u of["","/index"]){for(let c of t.extensions||Nm)if(n=fc(Ii(e,u)+c,a,r),n)break;if(n)break}if(n)break}if(!n){let a=new Error(`Cannot find module ${e} imported from ${i.join(", ")}`);throw a.code="ERR_MODULE_NOT_FOUND",a}return Fi(n)}function $m(e,t){return Dm(e,t)}function bc(e,t){return zr($m(e,t))}_();_();var wc=Symbol.for("quansync.getIsAsync"),Qr=class extends Error{constructor(t="Unexpected promise in sync context"){super(t),this.name="QuansyncError"}};function zi(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Fm(e){return e&&typeof e=="object"&&typeof e[Symbol.iterator]=="function"&&"__quansync"in e}function Ki(e){let t=function*(...s){return(yield wc)?yield e.async.apply(this,s):e.sync.apply(this,s)};function r(...s){let i=t.apply(this,s);return i.then=(...n)=>e.async.apply(this,s).then(...n),i.__quansync=!0,i}return r.sync=e.sync,r.async=e.async,r}function Mm(e){return Ki({async:()=>Promise.resolve(e),sync:()=>{if(zi(e))throw new Qr;return e}})}function qi(e,t){if(e===wc)return t;if(Fm(e))return t?Ec(e):kc(e);if(!t&&zi(e))throw new Qr;return e}var Cc=e=>e;function kc(e,t=Cc){let r=e.next();for(;!r.done;)try{r=e.next(qi(t(r.value,!1)))}catch(s){r=e.throw(s)}return qi(r.value)}async function Ec(e,t=Cc){let r=e.next();for(;!r.done;)try{r=e.next(await qi(t(r.value,!0),!0))}catch(s){r=e.throw(s)}return r.value}function Vm(e,t){return Ki({name:e.name,async(...r){return Ec(e.apply(this,r),t?.onYield)},sync(...r){return kc(e.apply(this,r),t?.onYield)}})}function Yi(e,t){return zi(e)?Mm(e):typeof e=="function"?Vm(e,t):Ki(e)}var Tx=Yi({async:()=>Promise.resolve(!0),sync:()=>!1});var Lt=Yi;var Xr=e=>e instanceof URL?Wm(e):e;async function Hm(e,{cwd:t=Dt.cwd(),type:r="file",stopAt:s}={}){let i=Me.resolve(Xr(t)??""),{root:n}=Me.parse(i);s=Me.resolve(i,Xr(s??n));let a=Me.isAbsolute(e);for(;i;){let u=a?e:Me.join(i,e);try{let c=await Gm.stat(u);if(r==="file"&&c.isFile()||r==="directory"&&c.isDirectory())return u}catch{}if(i===s||i===n)break;i=Me.dirname(i)}}function qm(e,{cwd:t=Dt.cwd(),type:r="file",stopAt:s}={}){let i=Me.resolve(Xr(t)??""),{root:n}=Me.parse(i);s=Me.resolve(i,Xr(s)??n);let a=Me.isAbsolute(e);for(;i;){let u=a?e:Me.join(i,e);try{let c=er.statSync(u,{throwIfNoEntry:!1});if(r==="file"&&c?.isFile()||r==="directory"&&c?.isDirectory())return u}catch{}if(i===s||i===n)break;i=Me.dirname(i)}}function Sc(e,t={}){if((t.platform==="auto"||!t.platform)&&(t.platform=Dt.platform==="win32"?"win32":"posix"),Dt.versions.pnp){let s=t.paths||[];s.length===0&&s.push(Dt.cwd());let i=jm(import.meta.url);try{return i.resolve(e,{paths:s})}catch{}}let r=bc(e,{url:t.paths});return t.platform==="win32"?Um.normalize(r):r}function Tc(e,t={}){return!!Rc(e,t)}function zm(e,t={}){let r=Rc(e,t);if(r)return Ym(r)}var Oc=Lt({async:e=>er.promises.readFile(e,"utf8"),sync:e=>er.readFileSync(e,"utf8")}),Km=Lt(function*(e,t={}){let r=zm(e,t);if(!r)return;let s=JSON.parse(yield Oc(r));return{name:e,version:s.version,rootPath:Ac(r),packageJsonPath:r,packageJson:s}}),Gx=Km.sync;function Rc(e,t={}){try{return Sc(`${e}/package.json`,t)}catch{}try{return Sc(e,t)}catch(r){return r.code!=="MODULE_NOT_FOUND"&&r.code!=="ERR_MODULE_NOT_FOUND"&&console.error(r),!1}}function Ym(e){let t;for(;;){if(!e)return;let r=Ac(e);if(r===e)return;if(e=r,t=Bm(e,"package.json"),er.existsSync(t))break}return t}var Qm=Lt({sync:qm,async:Hm}),Pc=Lt(function*(e=Dt.cwd()){let t=yield Qm("package.json",{cwd:e});return!t||!er.existsSync(t)?null:JSON.parse(yield Oc(t))}),Wx=Pc.sync,Xm=Lt(function*(e,t){let r=(yield Pc(t))||{};return e in(r.dependencies||{})||e in(r.devDependencies||{})}),Hx=Xm.sync;_();var tr=Xe(_s(),1);import{execSync as Zm}from"child_process";var J={info:e=>console.log(tr.default.blue(`\u25CF ${e}`)),success:e=>console.log(tr.default.green(`\u2713 ${e}`)),warn:e=>console.log(tr.default.yellow(`\u25B2 ${e}`)),error:e=>console.log(tr.default.red(`\u2717 ${e}`))};function Qi(e,t={}){try{return Zm(e,{stdio:"inherit",...t})}catch(r){throw J.error(`\u547D\u4EE4\u6267\u884C\u5931\u8D25: ${e}`),r}}function Ic(){let e=process.env.npm_config_user_agent||"";return e.startsWith("pnpm")?"pnpm":e.startsWith("yarn")?"yarn":"npm"}_();var Nc={postinstall:"simple-git-hooks",rimraf:"rimraf ./node_modules/",ncu:"ncu -u --reject @types/node && pnpm install",commit:"git add . && git-cz && git push",release:"git add . && bumpp package.json --all --no-tag --no-print-commits","lint:eslint":'eslint "src/**/*.{js,jsx,ts,tsx,vue}" --fix',"lint:tsc":"tsc --noEmit",lint:"run-p lint:eslint lint:tsc"},Lc=["simple-git-hooks","commitizen","cz-conventional-changelog","lint-staged","@commitlint/cli","@commitlint/config-conventional","@lntvow/eslint-config","eslint","prettier","npm-run-all","bumpp"];_();import rr from"fs";import Xi from"path";function Zi(e,t){if(rr.statSync(e).isDirectory()){if(Xi.basename(e)==="node_modules")return;rr.mkdirSync(t,{recursive:!0}),rr.readdirSync(e).forEach(s=>{Zi(Xi.resolve(e,s),Xi.resolve(t,s))})}else{if(rr.existsSync(t))return;rr.copyFileSync(e,t)}}import{fileURLToPath as tg}from"url";Zr.default.extend(Mc.default);Zr.default.tz.setDefault("Asia/Shanghai");var rg=tg(import.meta.url),sg=eg(rg);Ft.name(fu).version(pu,"-v, --version","output the version number");Ft.command("init").option("-t, --temp","copy template files",!0).option("--no-temp","not copy template files").option("-s, --scripts","init scripts",!0).option("--no-scripts","not init scripts").option("-g, --git","init simple-git-hooks",!0).option("--no-git","not init simple-git-hooks").description("init project").action(async e=>{J.success("Init project by @lntvow/dev"),J.info(`Cwd is ${process.cwd()}`);let{temp:t,git:r,scripts:s}=e;try{og(),t&&ig(),s&&ag(),r&&ng(),J.success("Project initialization completed successfully!")}catch(i){J.error(`Initialization failed: ${i.message}`),process.exit(1)}});function ig(){J.info("Copying template files..."),Zi($c(sg,"./configs"),process.cwd()),J.success("Template files copied successfully")}function ng(){if(!Tc("simple-git-hooks")){J.warn("simple-git-hooks not installed, skipping initialization");return}try{J.info("Initializing Git hooks..."),Qi("npx simple-git-hooks"),J.success("Git hooks initialized successfully")}catch(e){J.error(`Failed to initialize Git hooks: ${e.message}`)}}function ag(){J.info("Updating package.json scripts...");let e=$c(process.cwd(),"package.json"),t;try{t=Jm(e,"utf-8");let r=JSON.parse(t),s={...r,scripts:{...Nc,...r.scripts}};Dc(e,JSON.stringify(s,null,2)),J.success("Package.json scripts updated successfully")}catch(r){t&&Dc(e,t),J.error(`Failed to update package.json: ${r.message}`),process.exit(1)}}function og(){try{let e=Lc.map(s=>`${s}@latest`).join(" "),t=Ic(),r="";t==="pnpm"?r=`pnpm add -D ${e}`:t==="yarn"?r=`yarn add -D ${e}`:r=`npm install -D ${e}`,J.info(`Installing dependencies: ${r}`),Qi(r),J.success("Dependencies installed successfully")}catch(e){J.error(`Dependency installation failed: ${e.message}`),process.exit(1)}}Ft.command("release").description("git release").action(async()=>{console.log(Fc.default.green("Release project..."));try{await ug(),J.success("Release completed successfully!")}catch(e){J.error(`Release failed: ${e.message}`),process.exit(1)}});async function ug(){let e=lu(process.cwd());try{let t=(0,Zr.default)().format("YYYYMMDD HH:mm");await e.pull(),await e.add("."),await e.commit(t,["--no-verify"]),await e.push("origin"),J.success(`\u63D0\u4EA4\u6210\u529F: ${t}`)}catch(t){J.error(`Git\u64CD\u4F5C\u5931\u8D25: ${t.message}`),process.exit(1)}}Ft.parse();
46
+ Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function _c(e){try{return Ui(e)}catch{}}function Di(e){let t=Ui(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function _m(e,t,r){let s;if(t.main!==void 0){if(s=new ae(t.main,e),Di(s))return s;let a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],u=-1;for(;++u<a.length&&(s=new ae(a[u],e),!Di(s));)s=void 0;if(s)return lc(s,e,r,t.main),s}let i=["./index.js","./index.json","./index.node"],n=-1;for(;++n<i.length&&(s=new ae(i[n],e),!Di(s));)s=void 0;if(s)return lc(s,e,r,t.main),s;throw new Hi(V(new ae(".",e)),V(r))}function ym(e,t,r){if(gm.exec(e.pathname)!==null)throw new Yr(e.pathname,'must not include encoded "/" or "\\" characters',V(t));let s;try{s=V(e)}catch(n){let a=n;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}let i=_c(s.endsWith("/")?s.slice(-1):s);if(i&&i.isDirectory()){let n=new dm(s,V(t));throw n.url=String(e),n}if(!i||!i.isFile()){let n=new Hi(s||e.pathname,t&&V(t),!0);throw n.url=String(e),n}{let n=Wd(s),{search:a,hash:u}=e;e=Kr(n+(s.endsWith(Gi.sep)?"/":"")),e.search=a,e.hash=u}return e}function vm(e,t,r){return new fm(e,t&&V(new ae(".",t)),V(r))}function $i(e,t,r){return new pm(V(new ae(".",t)),e,r&&V(r))}function bm(e,t,r,s,i){let n=`request is not a valid match in pattern "${t}" for the "${s?"imports":"exports"}" resolution of ${V(r)}`;throw new Yr(e,n,i&&V(i))}function Jt(e,t,r,s,i){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new hm(V(new ae(".",r)),e,t,s,i&&V(i))}function wm(e,t,r,s,i,n,a,u,c){if(t!==""&&!n&&e[e.length-1]!=="/")throw Jt(r,e,s,a,i);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let p=!1;try{new ae(e),p=!0}catch{}if(!p){let d=n?Hr.call(qr,e,()=>t):e+t;return vc(d,s,c)}}throw Jt(r,e,s,a,i)}if(ac.exec(e.slice(2))!==null)if(oc.exec(e.slice(2))===null){if(!u){let p=n?r.replace("*",()=>t):r+t,d=n?Hr.call(qr,e,()=>t):e;cc(d,p,r,s,a,i,!0)}}else throw Jt(r,e,s,a,i);let f=new ae(e,s),l=f.pathname,h=new ae(".",s).pathname;if(!l.startsWith(h))throw Jt(r,e,s,a,i);if(t==="")return f;if(ac.exec(t)!==null){let p=n?r.replace("*",()=>t):r+t;if(oc.exec(t)===null){if(!u){let d=n?Hr.call(qr,e,()=>t):e;cc(d,p,r,s,a,i,!1)}}else bm(p,r,s,a,i)}return n?new ae(Hr.call(qr,f.href,()=>t)):new ae(t,f)}function Cm(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function Nt(e,t,r,s,i,n,a,u,c){if(typeof t=="string")return wm(t,r,s,e,i,n,a,u,c);if(Array.isArray(t)){let f=t;if(f.length===0)return null;let l,h=-1;for(;++h<f.length;){let p=f[h],d;try{d=Nt(e,p,r,s,i,n,a,u,c)}catch(O){let N=O;if(l=N,N.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw O}if(d!==void 0){if(d===null){l=null;continue}return d}}if(l==null)return null;throw l}if(typeof t=="object"&&t!==null){let f=Object.getOwnPropertyNames(t),l=-1;for(;++l<f.length;){let h=f[l];if(Cm(h))throw new gc(V(e),i,'"exports" cannot contain numeric property keys.')}for(l=-1;++l<f.length;){let h=f[l];if(h==="default"||c&&c.has(h)){let p=t[h],d=Nt(e,p,r,s,i,n,a,u,c);if(d===void 0)continue;return d}}return null}if(t===null)return null;throw Jt(s,t,e,a,i)}function km(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let s=Object.getOwnPropertyNames(e),i=!1,n=0,a=-1;for(;++a<s.length;){let u=s[a],c=u===""||u[0]!==".";if(n++===0)i=c;else if(i!==c)throw new gc(V(t),r,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}function Em(e,t,r){if(yt.noDeprecation)return;let s=V(t);uc.has(s+"|"+e)||(uc.add(s+"|"+e),yt.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${s}${r?` imported from ${V(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function hc(e,t,r,s,i){let n=r.exports;if(km(n,e,s)&&(n={".":n}),xc.call(n,t)&&!t.includes("*")&&!t.endsWith("/")){let l=n[t],h=Nt(e,l,"",t,s,!1,!1,!1,i);if(h==null)throw $i(t,e,s);return h}let a="",u="",c=Object.getOwnPropertyNames(n),f=-1;for(;++f<c.length;){let l=c[f],h=l.indexOf("*");if(h!==-1&&t.startsWith(l.slice(0,h))){t.endsWith("/")&&Em(t,e,s);let p=l.slice(h+1);t.length>=l.length&&t.endsWith(p)&&yc(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,u=t.slice(h,t.length-p.length))}}if(a){let l=n[a],h=Nt(e,l,u,a,s,!0,!1,t.endsWith("/"),i);if(h==null)throw $i(t,e,s);return h}throw $i(t,e,s)}function yc(e,t){let r=e.indexOf("*"),s=t.indexOf("*"),i=r===-1?e.length:r+1,n=s===-1?t.length:s+1;return i>n?-1:n>i||r===-1?1:s===-1||e.length>t.length?-1:t.length>e.length?1:0}function Sm(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let n="is not a valid internal imports specifier name";throw new Yr(e,n,V(t))}let s,i=Wi(t);if(i.exists){s=Kr(i.pjsonPath);let n=i.imports;if(n)if(xc.call(n,e)&&!e.includes("*")){let a=Nt(s,n[e],"",e,t,!1,!0,!1,r);if(a!=null)return a}else{let a="",u="",c=Object.getOwnPropertyNames(n),f=-1;for(;++f<c.length;){let l=c[f],h=l.indexOf("*");if(h!==-1&&e.startsWith(l.slice(0,-1))){let p=l.slice(h+1);e.length>=l.length&&e.endsWith(p)&&yc(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,u=e.slice(h,e.length-p.length))}}if(a){let l=n[a],h=Nt(s,l,u,a,t,!0,!0,!1,r);if(h!=null)return h}}}throw vm(e,s,t)}function Am(e,t){let r=e.indexOf("/"),s=!0,i=!1;e[0]==="@"&&(i=!0,r===-1||e.length===0?s=!1:r=e.indexOf("/",r+1));let n=r===-1?e:e.slice(0,r);if(mm.exec(n)!==null&&(s=!1),!s)throw new Yr(e,"is not a valid package name",V(t));let a="."+(r===-1?"":e.slice(r));return{packageName:n,packageSubpath:a,isScoped:i}}function vc(e,t,r){if(Bi.includes(e))return new ae("node:"+e);let{packageName:s,packageSubpath:i,isScoped:n}=Am(e,t),a=Wi(t);if(a.exists){let l=Kr(a.pjsonPath);if(a.name===s&&a.exports!==void 0&&a.exports!==null)return hc(l,i,a,t,r)}let u=new ae("./node_modules/"+s+"/package.json",t),c=V(u),f;do{let l=_c(c.slice(0,-13));if(!l||!l.isDirectory()){f=c,u=new ae((n?"../../../../node_modules/":"../../../node_modules/")+s+"/package.json",u),c=V(u);continue}let h=mc(c,{base:t,specifier:e});return h.exports!==void 0&&h.exports!==null?hc(u,i,h,t,r):i==="."?_m(u,h,t):new ae(i,u)}while(c.length!==f.length);throw new Hi(s,V(t),!1)}function Tm(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function Om(e){return e===""?!1:e[0]==="/"?!0:Tm(e)}function Rm(e,t,r,s){let i=t.protocol,a=i==="data:"||i==="http:"||i==="https:",u;if(Om(e))try{u=new ae(e,t)}catch(c){let f=new nc(e,t);throw f.cause=c,f}else if(i==="file:"&&e[0]==="#")u=Sm(e,t,r);else try{u=new ae(e)}catch(c){if(a&&!Bi.includes(e)){let f=new nc(e,t);throw f.cause=c,f}u=vc(e,t,r)}return lt(u!==void 0,"expected to be defined"),u.protocol!=="file:"?u:ym(u,t)}function zr(e){return typeof e=="string"&&!e.startsWith("file://")?Vi(e):Vi(V(e))}function Fi(e){return Kr(zr(e)).toString()}function Pm(e){return typeof e!="string"&&(e=e.toString()),/(node|data|http|https|file):/.test(e)?e:pc.has(e)?"node:"+e:"file://"+encodeURI(Vi(e))}var Im=new Set(["node","import"]),Nm=[".mjs",".cjs",".js",".json"],Lm=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function fc(e,t,r){try{return Rm(e,t,r)}catch(s){if(!Lm.has(s?.code))throw s}}function Dm(e,t={}){if(typeof e!="string")if(e instanceof URL)e=zr(e);else throw new TypeError("input must be a `string` or `URL`");if(/(node|data|http|https):/.test(e))return e;if(pc.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=zr(e)),Ni(e))try{if(Ui(e).isFile())return Fi(e)}catch(a){if(a?.code!=="ENOENT")throw a}let r=t.conditions?new Set(t.conditions):Im,s=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(a=>new URL(Pm(a.toString())));s.length===0&&s.push(new URL(Fi(process.cwd())));let i=[...s];for(let a of s)a.protocol==="file:"&&i.push(new URL("./",a),new URL(Ii(a.pathname,"_index.js"),a),new URL("node_modules",a));let n;for(let a of i){if(n=fc(e,a,r),n)break;for(let u of["","/index"]){for(let c of t.extensions||Nm)if(n=fc(Ii(e,u)+c,a,r),n)break;if(n)break}if(n)break}if(!n){let a=new Error(`Cannot find module ${e} imported from ${i.join(", ")}`);throw a.code="ERR_MODULE_NOT_FOUND",a}return Fi(n)}function $m(e,t){return Dm(e,t)}function bc(e,t){return zr($m(e,t))}_();_();var wc=Symbol.for("quansync.getIsAsync"),Qr=class extends Error{constructor(t="Unexpected promise in sync context"){super(t),this.name="QuansyncError"}};function zi(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Fm(e){return e&&typeof e=="object"&&typeof e[Symbol.iterator]=="function"&&"__quansync"in e}function Ki(e){let t=function*(...s){return(yield wc)?yield e.async.apply(this,s):e.sync.apply(this,s)};function r(...s){let i=t.apply(this,s);return i.then=(...n)=>e.async.apply(this,s).then(...n),i.__quansync=!0,i}return r.sync=e.sync,r.async=e.async,r}function Mm(e){return Ki({async:()=>Promise.resolve(e),sync:()=>{if(zi(e))throw new Qr;return e}})}function qi(e,t){if(e===wc)return t;if(Fm(e))return t?Ec(e):kc(e);if(!t&&zi(e))throw new Qr;return e}var Cc=e=>e;function kc(e,t=Cc){let r=e.next();for(;!r.done;)try{r=e.next(qi(t(r.value,!1)))}catch(s){r=e.throw(s)}return qi(r.value)}async function Ec(e,t=Cc){let r=e.next();for(;!r.done;)try{r=e.next(await qi(t(r.value,!0),!0))}catch(s){r=e.throw(s)}return r.value}function Vm(e,t){return Ki({name:e.name,async(...r){return Ec(e.apply(this,r),t?.onYield)},sync(...r){return kc(e.apply(this,r),t?.onYield)}})}function Yi(e,t){return zi(e)?Mm(e):typeof e=="function"?Vm(e,t):Ki(e)}var Rx=Yi({async:()=>Promise.resolve(!0),sync:()=>!1});var Lt=Yi;var Xr=e=>e instanceof URL?Wm(e):e;async function Hm(e,{cwd:t=Dt.cwd(),type:r="file",stopAt:s}={}){let i=Me.resolve(Xr(t)??""),{root:n}=Me.parse(i);s=Me.resolve(i,Xr(s??n));let a=Me.isAbsolute(e);for(;i;){let u=a?e:Me.join(i,e);try{let c=await Gm.stat(u);if(r==="file"&&c.isFile()||r==="directory"&&c.isDirectory())return u}catch{}if(i===s||i===n)break;i=Me.dirname(i)}}function qm(e,{cwd:t=Dt.cwd(),type:r="file",stopAt:s}={}){let i=Me.resolve(Xr(t)??""),{root:n}=Me.parse(i);s=Me.resolve(i,Xr(s)??n);let a=Me.isAbsolute(e);for(;i;){let u=a?e:Me.join(i,e);try{let c=er.statSync(u,{throwIfNoEntry:!1});if(r==="file"&&c?.isFile()||r==="directory"&&c?.isDirectory())return u}catch{}if(i===s||i===n)break;i=Me.dirname(i)}}function Sc(e,t={}){if((t.platform==="auto"||!t.platform)&&(t.platform=Dt.platform==="win32"?"win32":"posix"),Dt.versions.pnp){let s=t.paths||[];s.length===0&&s.push(Dt.cwd());let i=jm(import.meta.url);try{return i.resolve(e,{paths:s})}catch{}}let r=bc(e,{url:t.paths});return t.platform==="win32"?Um.normalize(r):r}function Tc(e,t={}){return!!Rc(e,t)}function zm(e,t={}){let r=Rc(e,t);if(r)return Ym(r)}var Oc=Lt({async:e=>er.promises.readFile(e,"utf8"),sync:e=>er.readFileSync(e,"utf8")}),Km=Lt(function*(e,t={}){let r=zm(e,t);if(!r)return;let s=JSON.parse(yield Oc(r));return{name:e,version:s.version,rootPath:Ac(r),packageJsonPath:r,packageJson:s}}),Hx=Km.sync;function Rc(e,t={}){try{return Sc(`${e}/package.json`,t)}catch{}try{return Sc(e,t)}catch(r){return r.code!=="MODULE_NOT_FOUND"&&r.code!=="ERR_MODULE_NOT_FOUND"&&console.error(r),!1}}function Ym(e){let t;for(;;){if(!e)return;let r=Ac(e);if(r===e)return;if(e=r,t=Bm(e,"package.json"),er.existsSync(t))break}return t}var Qm=Lt({sync:qm,async:Hm}),Pc=Lt(function*(e=Dt.cwd()){let t=yield Qm("package.json",{cwd:e});return!t||!er.existsSync(t)?null:JSON.parse(yield Oc(t))}),qx=Pc.sync,Xm=Lt(function*(e,t){let r=(yield Pc(t))||{};return e in(r.dependencies||{})||e in(r.devDependencies||{})}),zx=Xm.sync;_();var tr=Xe(_s(),1);import{execSync as Zm}from"child_process";import{existsSync as Jm}from"fs";import{resolve as eg}from"path";var J={info:e=>console.log(tr.default.blue(`\u25CF ${e}`)),success:e=>console.log(tr.default.green(`\u2713 ${e}`)),warn:e=>console.log(tr.default.yellow(`\u25B2 ${e}`)),error:e=>console.log(tr.default.red(`\u2717 ${e}`))};function Qi(e,t={}){try{return Zm(e,{stdio:"inherit",...t})}catch(r){throw J.error(`\u547D\u4EE4\u6267\u884C\u5931\u8D25: ${e}`),r}}function Ic(){let e=[{file:"pnpm-lock.yaml",manager:"pnpm"},{file:"yarn.lock",manager:"yarn"},{file:"package-lock.json",manager:"npm"}];for(let{file:r,manager:s}of e)if(Jm(eg(process.cwd(),r)))return s;let t=process.env.npm_config_user_agent||"";return t.startsWith("pnpm")?"pnpm":t.startsWith("yarn")?"yarn":"npm"}_();var Nc={postinstall:"simple-git-hooks",rimraf:"rimraf ./node_modules/",ncu:"ncu -u --reject @types/node && pnpm install",commit:"git add . && git-cz && git push",release:"git add . && bumpp package.json --all --no-tag --no-print-commits","lint:eslint":'eslint "src/**/*.{js,jsx,ts,tsx,vue}" --fix',"lint:tsc":"tsc --noEmit",lint:"run-p lint:eslint lint:tsc"},Lc=["simple-git-hooks","commitizen","cz-conventional-changelog","lint-staged","@commitlint/cli","@commitlint/config-conventional","@lntvow/eslint-config","eslint","prettier","npm-run-all","bumpp"];_();import rr from"fs";import Xi from"path";function Zi(e,t){if(rr.statSync(e).isDirectory()){if(Xi.basename(e)==="node_modules")return;rr.mkdirSync(t,{recursive:!0}),rr.readdirSync(e).forEach(s=>{Zi(Xi.resolve(e,s),Xi.resolve(t,s))})}else{if(rr.existsSync(t))return;rr.copyFileSync(e,t)}}import{fileURLToPath as sg}from"url";Zr.default.extend(Mc.default);Zr.default.tz.setDefault("Asia/Shanghai");var ig=sg(import.meta.url),ng=rg(ig);Ft.name(fu).version(pu,"-v, --version","output the version number");Ft.command("init").option("-t, --temp","copy template files",!0).option("--no-temp","not copy template files").option("-s, --scripts","init scripts",!0).option("--no-scripts","not init scripts").option("-g, --git","init simple-git-hooks",!0).option("--no-git","not init simple-git-hooks").description("init project").action(async e=>{J.success("Init project by @lntvow/dev"),J.info(`Cwd is ${process.cwd()}`);let{temp:t,git:r,scripts:s}=e;try{cg(),t&&ag(),s&&ug(),r&&og(),J.success("Project initialization completed successfully!")}catch(i){J.error(`Initialization failed: ${i.message}`),process.exit(1)}});function ag(){J.info("Copying template files..."),Zi($c(ng,"./configs"),process.cwd()),J.success("Template files copied successfully")}function og(){if(!Tc("simple-git-hooks")){J.warn("simple-git-hooks not installed, skipping initialization");return}try{J.info("Initializing Git hooks..."),Qi("npx simple-git-hooks"),J.success("Git hooks initialized successfully")}catch(e){J.error(`Failed to initialize Git hooks: ${e.message}`)}}function ug(){J.info("Updating package.json scripts...");let e=$c(process.cwd(),"package.json"),t;try{t=tg(e,"utf-8");let r=JSON.parse(t),s={...r,scripts:{...Nc,...r.scripts}};Dc(e,JSON.stringify(s,null,2)),J.success("Package.json scripts updated successfully")}catch(r){t&&Dc(e,t),J.error(`Failed to update package.json: ${r.message}`),process.exit(1)}}function cg(){try{let e=Lc.map(s=>`${s}@latest`).join(" "),t=Ic(),r="";t==="pnpm"?r=`pnpm add -D ${e}`:t==="yarn"?r=`yarn add -D ${e}`:r=`npm install -D ${e}`,J.info(`Installing dependencies: ${r}`),Qi(r),J.success("Dependencies installed successfully")}catch(e){J.error(`Dependency installation failed: ${e.message}`),process.exit(1)}}Ft.command("release").description("git release").action(async()=>{console.log(Fc.default.green("Release project..."));try{await lg(),J.success("Release completed successfully!")}catch(e){J.error(`Release failed: ${e.message}`),process.exit(1)}});async function lg(){let e=lu(process.cwd());try{let t=(0,Zr.default)().format("YYYYMMDD HH:mm");await e.pull(),await e.add("."),await e.commit(t,["--no-verify"]),await e.push("origin"),J.success(`\u63D0\u4EA4\u6210\u529F: ${t}`)}catch(t){J.error(`Git\u64CD\u4F5C\u5931\u8D25: ${t.message}`),process.exit(1)}}Ft.parse();