@nice-move/init 0.8.34 → 0.8.35

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
@@ -80,4 +80,4 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
80
80
  `)}`:``;t.fail(i(`Missing required argument: %s`,`Missing required arguments: %s`,Object.keys(r).length,Object.keys(r).join(`, `)+n))}},a.unknownArguments=function(n,r,o,s,c=!0){let l=e.getInternalMethods().getCommandInstance().getCommands(),u=[],d=e.getInternalMethods().getContext();if(Object.keys(n).forEach(t=>{!bt.includes(t)&&!Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)&&!a.isValidAndSomeAliasIsNotNew(t,r)&&u.push(t)}),c&&(d.commands.length>0||l.length>0||s)&&n._.slice(d.commands.length).forEach(e=>{l.includes(``+e)||u.push(``+e)}),c){let t=e.getDemandedCommands()._?.max||0,r=d.commands.length+t;r<n._.length&&n._.slice(r).forEach(e=>{e=String(e),!d.commands.includes(e)&&!u.includes(e)&&u.push(e)})}u.length&&t.fail(i(`Unknown argument: %s`,`Unknown arguments: %s`,u.length,u.map(e=>e.trim()?e:`"${e}"`).join(`, `)))},a.unknownCommands=function(n){let r=e.getInternalMethods().getCommandInstance().getCommands(),a=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||r.length>0)&&n._.slice(o.commands.length).forEach(e=>{r.includes(``+e)||a.push(``+e)}),a.length>0?(t.fail(i(`Unknown command: %s`,`Unknown commands: %s`,a.length,a.join(`, `))),!0):!1},a.isValidAndSomeAliasIsNotNew=function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;let r=e.parsed.newAliases;return[t,...n[t]].some(e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t])},a.limitedChoices=function(n){let i=e.getOptions(),a={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach(e=>{bt.indexOf(e)===-1&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach(t=>{i.choices[e].indexOf(t)===-1&&t!==void 0&&(a[e]=(a[e]||[]).concat(t))})});let o=Object.keys(a);if(!o.length)return;let s=r(`Invalid values:`);o.forEach(e=>{s+=`\n ${r(`Argument: %s, Given: %s, Choices: %s`,e,t.stringifiedValues(a[e]),t.stringifiedValues(i.choices[e]))}`}),t.fail(s)};let o={};a.implies=function(t,r){N(`<string|object> [array|number|string]`,[t,r],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.implies(e,t[e])}):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach(e=>a.implies(t,e)):(j(r,void 0,n),o[t].push(r)))},a.getImplied=function(){return o};function s(e,t){let n=Number(t);return t=isNaN(n)?t:n,typeof t==`number`?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}a.implications=function(e){let n=[];if(Object.keys(o).forEach(t=>{let r=t;(o[t]||[]).forEach(t=>{let i=r,a=t;i=s(e,i),t=s(e,t),i&&!t&&n.push(` ${r} -> ${a}`)})}),n.length){let e=`${r(`Implications failed:`)}\n`;n.forEach(t=>{e+=t}),t.fail(e)}};let c={};a.conflicts=function(t,n){N(`<string|object> [array|string]`,[t,n],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.conflicts(e,t[e])}):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach(e=>a.conflicts(t,e)):c[t].push(n))},a.getConflicting=()=>c,a.conflicting=function(i){Object.keys(i).forEach(e=>{c[e]&&c[e].forEach(n=>{n&&i[e]!==void 0&&i[n]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,n))})}),e.getInternalMethods().getParserConfiguration()[`strip-dashed`]&&Object.keys(c).forEach(e=>{c[e].forEach(a=>{a&&i[n.Parser.camelCase(e)]!==void 0&&i[n.Parser.camelCase(a)]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,a))})})},a.recommendCommands=function(e,n){n=n.sort((e,t)=>t.length-e.length);let i=null,a=1/0;for(let t=0,r;(r=n[t])!==void 0;t++){let t=yt(e,r);t<=3&&t<a&&(a=t,i=r)}i&&t.fail(r(`Did you mean %s?`,i))},a.reset=function(e){return o=st(o,t=>!e[t]),c=st(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();j(e,void 0,n),{implied:o,conflicting:c}=e},a}let St=[],Ct;function wt(e,t,n,r){Ct=r;let i={};if(Object.prototype.hasOwnProperty.call(e,`extends`)){if(typeof e.extends!=`string`)return i;let r=/\.json|\..*rc$/.test(e.extends),a=null;if(r)a=Et(t,e.extends);else try{a=x.resolve(e.extends)}catch{return e}Tt(a),St.push(a),i=r?JSON.parse(Ct.readFileSync(a,`utf8`)):x(e.extends),delete e.extends,i=wt(i,Ct.path.dirname(a),n,Ct)}return St=[],n?Dt(i,e):Object.assign({},i,e)}function Tt(e){if(St.indexOf(e)>-1)throw new k(`Circular extended configurations: '${e}'.`)}function Et(e,t){return Ct.path.resolve(e,t)}function Dt(e,t){let n={};function r(e){return e&&typeof e==`object`&&!Array.isArray(e)}Object.assign(n,e);for(let i of Object.keys(t))r(t[i])&&r(n[i])?n[i]=Dt(e[i],t[i]):n[i]=t[i];return n}var P=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},F=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},I,Ot,kt,L,R,At,z,jt,Mt,B,Nt,V,H,U,W,Pt,Ft,G,K,It,Lt,q,Rt,zt,Bt,J,Vt,Y,Ht,Ut,Wt,X,Gt,Z,Q;function Kt(e){return(t=[],n=e.process.cwd(),r)=>{let i=new kn(t,n,r,e);return Object.defineProperty(i,`argv`,{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const qt=Symbol(`copyDoubleDash`),Jt=Symbol(`copyDoubleDash`),Yt=Symbol(`deleteFromParserHintObject`),Xt=Symbol(`emitWarning`),Zt=Symbol(`freeze`),Qt=Symbol(`getDollarZero`),$t=Symbol(`getParserConfiguration`),en=Symbol(`getUsageConfiguration`),tn=Symbol(`guessLocale`),nn=Symbol(`guessVersion`),rn=Symbol(`parsePositionalNumbers`),an=Symbol(`pkgUp`),$=Symbol(`populateParserHintArray`),on=Symbol(`populateParserHintSingleValueDictionary`),sn=Symbol(`populateParserHintArrayDictionary`),cn=Symbol(`populateParserHintDictionary`),ln=Symbol(`sanitizeKey`),un=Symbol(`setKey`),dn=Symbol(`unfreeze`),fn=Symbol(`validateAsync`),pn=Symbol(`getCommandInstance`),mn=Symbol(`getContext`),hn=Symbol(`getHasOutput`),gn=Symbol(`getLoggerInstance`),_n=Symbol(`getParseContext`),vn=Symbol(`getUsageInstance`),yn=Symbol(`getValidationInstance`),bn=Symbol(`hasParseCallback`),xn=Symbol(`isGlobalContext`),Sn=Symbol(`postProcess`),Cn=Symbol(`rebase`),wn=Symbol(`reset`),Tn=Symbol(`runYargsParserAndExecuteCommands`),En=Symbol(`runValidation`),Dn=Symbol(`setHasOutput`),On=Symbol(`kTrackManuallySetKeys`);var kn=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,I.set(this,void 0),Ot.set(this,void 0),kt.set(this,{commands:[],fullCommands:[]}),L.set(this,null),R.set(this,null),At.set(this,`show-hidden`),z.set(this,null),jt.set(this,!0),Mt.set(this,{}),B.set(this,!0),Nt.set(this,[]),V.set(this,void 0),H.set(this,{}),U.set(this,!1),W.set(this,null),Pt.set(this,!0),Ft.set(this,void 0),G.set(this,``),K.set(this,void 0),It.set(this,void 0),Lt.set(this,{}),q.set(this,null),Rt.set(this,null),zt.set(this,{}),Bt.set(this,{}),J.set(this,void 0),Vt.set(this,!1),Y.set(this,void 0),Ht.set(this,!1),Ut.set(this,!1),Wt.set(this,!1),X.set(this,void 0),Gt.set(this,{}),Z.set(this,null),Q.set(this,void 0),P(this,Y,r,`f`),P(this,J,e,`f`),P(this,Ot,t,`f`),P(this,It,n,`f`),P(this,V,new qe(this),`f`),this.$0=this[Qt](),this[wn](),P(this,I,F(this,I,`f`),`f`),P(this,X,F(this,X,`f`),`f`),P(this,Q,F(this,Q,`f`),`f`),P(this,K,F(this,K,`f`),`f`),F(this,K,`f`).showHiddenOpt=F(this,At,`f`),P(this,Ft,this[Jt](),`f`)}addHelpOpt(e,t){return N(`[string|boolean] [string]`,[e,t],arguments.length),F(this,W,`f`)&&(this[Yt](F(this,W,`f`)),P(this,W,null,`f`)),e===!1&&t===void 0?this:(P(this,W,typeof e==`string`?e:`help`,`f`),this.boolean(F(this,W,`f`)),this.describe(F(this,W,`f`),t||F(this,X,`f`).deferY18nLookup(`Show help`)),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(N(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:F(this,At,`f`);return this.boolean(n),this.describe(n,t||F(this,X,`f`).deferY18nLookup(`Show hidden options`)),F(this,K,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return N(`<object|string|array> [string|array]`,[e,t],arguments.length),this[sn](this.alias.bind(this),`alias`,e,t),this}array(e){return N(`<array|string>`,[e],arguments.length),this[$](`array`,e),this[On](e),this}boolean(e){return N(`<array|string>`,[e],arguments.length),this[$](`boolean`,e),this[On](e),this}check(e,t){return N(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>Xe(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&F(this,X,`f`).fail(n.toString(),n):F(this,X,`f`).fail(F(this,Y,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(F(this,X,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return N(`<object|string|array> [string|array]`,[e,t],arguments.length),this[sn](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(N(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new k(`coerce callback must be provided`);for(let n of e)this.coerce(n,t);return this}else if(typeof e==`object`){for(let t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new k(`coerce callback must be provided`);return F(this,K,`f`).key[e]=!0,F(this,V,`f`).addCoerceMiddleware((n,r)=>{let i;return Object.prototype.hasOwnProperty.call(n,e)?Xe(()=>(i=r.getAliases(),t(n[e])),t=>{n[e]=t;let a=r.getInternalMethods().getParserConfiguration()[`strip-aliased`];if(i[e]&&a!==!0)for(let r of i[e])n[r]=t;return n},e=>{throw new k(e.message)}):n},e),this}conflicts(e,t){return N(`<string|object> [string|array]`,[e,t],arguments.length),F(this,Q,`f`).conflicts(e,t),this}config(e=`config`,t,n){return N(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=wt(e,F(this,Ot,`f`),this[$t]()[`deep-merge-config`]||!1,F(this,Y,`f`)),F(this,K,`f`).configObjects=(F(this,K,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||F(this,X,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{F(this,K,`f`).config[e]=n||!0}),this)}completion(e,t,n){return N(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),P(this,R,e||F(this,R,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(F(this,R,`f`),t),n&&F(this,L,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return N(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),F(this,I,`f`).addHandler(e,t,n,r,i,a),this}commands(e,t,n,r,i,a){return this.command(e,t,n,r,i,a)}commandDir(e,t){N(`<string> [object]`,[e,t],arguments.length);let n=F(this,It,`f`)||F(this,Y,`f`).require;return F(this,I,`f`).addDirectory(e,n,F(this,Y,`f`).getCallerFile(),t),this}count(e){return N(`<array|string>`,[e],arguments.length),this[$](`count`,e),this[On](e),this}default(e,t,n){return N(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(Ve(e,F(this,Y,`f`)),F(this,K,`f`).defaultDescription[e]=n),typeof t==`function`&&(Ve(e,F(this,Y,`f`)),F(this,K,`f`).defaultDescription[e]||(F(this,K,`f`).defaultDescription[e]=F(this,X,`f`).functionDescription(t)),t=t.call()),this[on](this.default.bind(this),`default`,e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return N(`[number] [number|string] [string|null|undefined] [string|null|undefined]`,[e,t,n,r],arguments.length),typeof t!=`number`&&(n=t,t=1/0),this.global(`_`,!1),F(this,K,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{j(n,!0,F(this,Y,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(j(n,!0,F(this,Y,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{j(n,!0,F(this,Y,`f`)),this.demandOption(e,n)}):typeof n==`string`?this.demandOption(e,n):(n===!0||n===void 0)&&this.demandOption(e),this}demandOption(e,t){return N(`<object|string|array> [string]`,[e,t],arguments.length),this[on](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return N(`<string> [string|boolean]`,[e,t],arguments.length),F(this,K,`f`).deprecatedOptions[e]=t,this}describe(e,t){return N(`<object|string|array> [string]`,[e,t],arguments.length),this[un](e,!0),F(this,X,`f`).describe(e,t),this}detectLocale(e){return N(`<boolean>`,[e],arguments.length),P(this,jt,e,`f`),this}env(e){return N(`[string|boolean]`,[e],arguments.length),e===!1?delete F(this,K,`f`).envPrefix:F(this,K,`f`).envPrefix=e||``,this}epilogue(e){return N(`<string>`,[e],arguments.length),F(this,X,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return N(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):F(this,X,`f`).example(e,t),this}exit(e,t){P(this,U,!0,`f`),P(this,z,t,`f`),F(this,B,`f`)&&F(this,Y,`f`).process.exit(e)}exitProcess(e=!0){return N(`[boolean]`,[e],arguments.length),P(this,B,e,`f`),this}fail(e){if(N(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new k(`Invalid first argument. Expected function or boolean 'false'`);return F(this,X,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return N(`<array> [function]`,[e,t],arguments.length),t?F(this,L,`f`).getCompletion(e,t):new Promise((t,n)=>{F(this,L,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return N([],0),F(this,K,`f`).demandedOptions}getDemandedCommands(){return N([],0),F(this,K,`f`).demandedCommands}getDeprecatedOptions(){return N([],0),F(this,K,`f`).deprecatedOptions}getDetectLocale(){return F(this,jt,`f`)}getExitProcess(){return F(this,B,`f`)}getGroups(){return Object.assign({},F(this,H,`f`),F(this,Bt,`f`))}getHelp(){if(P(this,U,!0,`f`),!F(this,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[Tn](F(this,J,`f`),void 0,void 0,0,!0);if(M(e))return e.then(()=>F(this,X,`f`).help())}let e=F(this,I,`f`).runDefaultBuilderOn(this);if(M(e))return e.then(()=>F(this,X,`f`).help())}return Promise.resolve(F(this,X,`f`).help())}getOptions(){return F(this,K,`f`)}getStrict(){return F(this,Ht,`f`)}getStrictCommands(){return F(this,Ut,`f`)}getStrictOptions(){return F(this,Wt,`f`)}global(e,t){return N(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{F(this,K,`f`).local.includes(e)||F(this,K,`f`).local.push(e)}):F(this,K,`f`).local=F(this,K,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){N(`<string|array> <string>`,[e,t],arguments.length);let n=F(this,Bt,`f`)[t]||F(this,H,`f`)[t];F(this,Bt,`f`)[t]&&delete F(this,Bt,`f`)[t];let r={};return F(this,H,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return N(`<string>`,[e],arguments.length),F(this,K,`f`).hiddenOptions.push(e),this}implies(e,t){return N(`<string|object> [number|string|array]`,[e,t],arguments.length),F(this,Q,`f`).implies(e,t),this}locale(e){return N(`[string]`,[e],arguments.length),e===void 0?(this[tn](),F(this,Y,`f`).y18n.getLocale()):(P(this,jt,!1,`f`),F(this,Y,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return F(this,V,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return N(`<string|object|array> [number]`,[e,t],arguments.length),this[on](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return N(`<array|string>`,[e],arguments.length),this[$](`normalize`,e),this}number(e){return N(`<array|string>`,[e],arguments.length),this[$](`number`,e),this[On](e),this}option(e,t){if(N(`<string|object> [object]`,[e,t],arguments.length),typeof e==`object`)Object.keys(e).forEach(t=>{this.options(t,e[t])});else{typeof t!=`object`&&(t={}),this[On](e),F(this,Z,`f`)&&(e===`version`||t?.alias===`version`)&&this[Xt]([`"version" is a reserved word.`,`Please do one of the following:`,'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)",`- Use a different option key`,`https://yargs.js.org/docs/#api-reference-version`].join(`
81
81
  `),void 0,`versionWarning`),F(this,K,`f`).key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption==`string`?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),`default`in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type===`boolean`)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type===`array`)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type===`number`)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type===`string`)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type===`count`)&&this.count(e),typeof t.global==`boolean`&&this.global(e,t.global),t.defaultDescription&&(F(this,K,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=F(this,X,`f`).getDescriptions();(!Object.prototype.hasOwnProperty.call(a,e)||typeof i==`string`)&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){N(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[Zt](),e===void 0&&(e=F(this,J,`f`)),typeof t==`object`&&(P(this,Rt,t,`f`),t=n),typeof t==`function`&&(P(this,q,t,`f`),t=!1),t||P(this,J,e,`f`),F(this,q,`f`)&&P(this,B,!1,`f`);let r=this[Tn](e,!!t),i=this.parsed;return F(this,L,`f`).setParsed(this.parsed),M(r)?r.then(e=>(F(this,q,`f`)&&F(this,q,`f`).call(this,F(this,z,`f`),e,F(this,G,`f`)),e)).catch(e=>{throw F(this,q,`f`)&&F(this,q,`f`)(e,this.parsed.argv,F(this,G,`f`)),e}).finally(()=>{this[dn](),this.parsed=i}):(F(this,q,`f`)&&F(this,q,`f`).call(this,F(this,z,`f`),r,F(this,G,`f`)),this[dn](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return M(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(M(r))throw new k(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return N(`<object>`,[e],arguments.length),P(this,Lt,e,`f`),this}pkgConf(e,t){N(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[an](t||F(this,Ot,`f`));return r[e]&&typeof r[e]==`object`&&(n=wt(r[e],t||F(this,Ot,`f`),this[$t]()[`deep-merge-config`]||!1,F(this,Y,`f`)),F(this,K,`f`).configObjects=(F(this,K,`f`).configObjects||[]).concat(n)),this}positional(e,t){N(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=st(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=F(this,kt,`f`).fullCommands[F(this,kt,`f`).fullCommands.length-1],i=r?F(this,I,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return He(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.indexOf(e)!==-1&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,F(this,X,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return N(`[boolean]`,[e],arguments.length),P(this,Vt,e,`f`),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return N(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&F(this,K,`f`).narg[e]||this[on](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return N(`[string] [string]`,[e,t],arguments.length),e||=this.$0,F(this,Ft,`f`).log(F(this,L,`f`).generateCompletionScript(e,t||F(this,R,`f`)||`completion`)),this}showHelp(e){if(N(`[string|function]`,[e],arguments.length),P(this,U,!0,`f`),!F(this,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[Tn](F(this,J,`f`),void 0,void 0,0,!0);if(M(t))return t.then(()=>{F(this,X,`f`).showHelp(e)}),this}let t=F(this,I,`f`).runDefaultBuilderOn(this);if(M(t))return t.then(()=>{F(this,X,`f`).showHelp(e)}),this}return F(this,X,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return N(`[boolean|string] [string]`,[e,t],arguments.length),F(this,X,`f`).showHelpOnFail(e,t),this}showVersion(e){return N(`[string|function]`,[e],arguments.length),F(this,X,`f`).showVersion(e),this}skipValidation(e){return N(`<array|string>`,[e],arguments.length),this[$](`skipValidation`,e),this}strict(e){return N(`[boolean]`,[e],arguments.length),P(this,Ht,e!==!1,`f`),this}strictCommands(e){return N(`[boolean]`,[e],arguments.length),P(this,Ut,e!==!1,`f`),this}strictOptions(e){return N(`[boolean]`,[e],arguments.length),P(this,Wt,e!==!1,`f`),this}string(e){return N(`<array|string>`,[e],arguments.length),this[$](`string`,e),this[On](e),this}terminalWidth(){return N([],0),F(this,Y,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return N(`<object>`,[e],arguments.length),P(this,jt,!1,`f`),F(this,Y,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(N(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(j(e,null,F(this,Y,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new k(`.usage() description must start with $0 if being used as alias for .command()`)}else return F(this,X,`f`).usage(e),this}usageConfiguration(e){return N(`<object>`,[e],arguments.length),P(this,Gt,e,`f`),this}version(e,t,n){let r=`version`;if(N(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),F(this,Z,`f`)&&(this[Yt](F(this,Z,`f`)),F(this,X,`f`).version(void 0),P(this,Z,null,`f`)),arguments.length===0)n=this[nn](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return P(this,Z,typeof e==`string`?e:r,`f`),t||=F(this,X,`f`).deferY18nLookup(`Show version number`),F(this,X,`f`).version(n||void 0),this.boolean(F(this,Z,`f`)),this.describe(F(this,Z,`f`),t),this}wrap(e){return N(`<number|null|undefined>`,[e],arguments.length),F(this,X,`f`).wrap(e),this}[(I=new WeakMap,Ot=new WeakMap,kt=new WeakMap,L=new WeakMap,R=new WeakMap,At=new WeakMap,z=new WeakMap,jt=new WeakMap,Mt=new WeakMap,B=new WeakMap,Nt=new WeakMap,V=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,G=new WeakMap,K=new WeakMap,It=new WeakMap,Lt=new WeakMap,q=new WeakMap,Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap,J=new WeakMap,Vt=new WeakMap,Y=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,X=new WeakMap,Gt=new WeakMap,Z=new WeakMap,Q=new WeakMap,qt)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[Jt](){return{log:(...e)=>{this[bn]()||console.log(...e),P(this,U,!0,`f`),F(this,G,`f`).length&&P(this,G,F(this,G,`f`)+`
82
82
  `,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)},error:(...e)=>{this[bn]()||console.error(...e),P(this,U,!0,`f`),F(this,G,`f`).length&&P(this,G,F(this,G,`f`)+`
83
- `,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)}}}[Yt](e){He(F(this,K,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=F(this,K,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete F(this,X,`f`).getDescriptions()[e]}[Xt](e,t,n){F(this,Mt,`f`)[n]||(F(this,Y,`f`).process.emitWarning(e,t),F(this,Mt,`f`)[n]=!0)}[Zt](){F(this,Nt,`f`).push({options:F(this,K,`f`),configObjects:F(this,K,`f`).configObjects.slice(0),exitProcess:F(this,B,`f`),groups:F(this,H,`f`),strict:F(this,Ht,`f`),strictCommands:F(this,Ut,`f`),strictOptions:F(this,Wt,`f`),completionCommand:F(this,R,`f`),output:F(this,G,`f`),exitError:F(this,z,`f`),hasOutput:F(this,U,`f`),parsed:this.parsed,parseFn:F(this,q,`f`),parseContext:F(this,Rt,`f`)}),F(this,X,`f`).freeze(),F(this,Q,`f`).freeze(),F(this,I,`f`).freeze(),F(this,V,`f`).freeze()}[Qt](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(F(this,Y,`f`).process.argv()[0])?F(this,Y,`f`).process.argv().slice(1,2):F(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[Cn](F(this,Ot,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),F(this,Y,`f`).getEnv(`_`)&&F(this,Y,`f`).getProcessArgvBin()===F(this,Y,`f`).getEnv(`_`)&&(e=F(this,Y,`f`).getEnv(`_`).replace(`${F(this,Y,`f`).path.dirname(F(this,Y,`f`).process.execPath())}/`,``)),e}[$t](){return F(this,Lt,`f`)}[en](){return F(this,Gt,`f`)}[tn](){if(!F(this,jt,`f`))return;let e=F(this,Y,`f`).getEnv(`LC_ALL`)||F(this,Y,`f`).getEnv(`LC_MESSAGES`)||F(this,Y,`f`).getEnv(`LANG`)||F(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[nn](){return this[an]().version||`unknown`}[rn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)F(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[an](e){let t=e||`*`;if(F(this,zt,`f`)[t])return F(this,zt,`f`)[t];let n={};try{let t=e||F(this,Y,`f`).mainFilename;!e&&F(this,Y,`f`).path.extname(t)&&(t=F(this,Y,`f`).path.dirname(t));let r=F(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,F(this,Y,`f`)),n=JSON.parse(F(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return F(this,zt,`f`)[t]=n||{},F(this,zt,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[ln](t),F(this,K,`f`)[e].push(t)})}[on](e,t,n,r){this[cn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=n})}[sn](e,t,n,r){this[cn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=(F(this,K,`f`)[e][t]||[]).concat(n)})}[cn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of He(n))e(t,n[t]);else i(t,this[ln](n),r)}[ln](e){return e===`__proto__`?`___proto___`:e}[un](e,t){return this[on](this[un].bind(this),`key`,e,t),this}[dn](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=F(this,Nt,`f`).pop();j(f,void 0,F(this,Y,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){P(e,K,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){P(t,B,e,`f`)}}.value,groups:{set value(e){P(n,H,e,`f`)}}.value,output:{set value(e){P(r,G,e,`f`)}}.value,exitError:{set value(e){P(i,z,e,`f`)}}.value,hasOutput:{set value(e){P(a,U,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){P(o,Ht,e,`f`)}}.value,strictCommands:{set value(e){P(s,Ut,e,`f`)}}.value,strictOptions:{set value(e){P(c,Wt,e,`f`)}}.value,completionCommand:{set value(e){P(l,R,e,`f`)}}.value,parseFn:{set value(e){P(u,q,e,`f`)}}.value,parseContext:{set value(e){P(d,Rt,e,`f`)}}.value}=f,F(this,K,`f`).configObjects=p,F(this,X,`f`).unfreeze(),F(this,Q,`f`).unfreeze(),F(this,I,`f`).unfreeze(),F(this,V,`f`).unfreeze()}[fn](e,t){return Xe(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[pn].bind(this),getContext:this[mn].bind(this),getHasOutput:this[hn].bind(this),getLoggerInstance:this[gn].bind(this),getParseContext:this[_n].bind(this),getParserConfiguration:this[$t].bind(this),getUsageConfiguration:this[en].bind(this),getUsageInstance:this[vn].bind(this),getValidationInstance:this[yn].bind(this),hasParseCallback:this[bn].bind(this),isGlobalContext:this[xn].bind(this),postProcess:this[Sn].bind(this),reset:this[wn].bind(this),runValidation:this[En].bind(this),runYargsParserAndExecuteCommands:this[Tn].bind(this),setHasOutput:this[Dn].bind(this)}}[pn](){return F(this,I,`f`)}[mn](){return F(this,kt,`f`)}[hn](){return F(this,U,`f`)}[gn](){return F(this,Ft,`f`)}[_n](){return F(this,Rt,`f`)||{}}[vn](){return F(this,X,`f`)}[yn](){return F(this,Q,`f`)}[bn](){return!!F(this,q,`f`)}[xn](){return F(this,Pt,`f`)}[Sn](e,t,n,r){return n||M(e)?e:(t||(e=this[qt](e)),(this[$t]()[`parse-positional-numbers`]||this[$t]()[`parse-positional-numbers`]===void 0)&&(e=this[rn](e)),r&&(e=Ye(e,this,F(this,V,`f`).getMiddleware(),!1)),e)}[wn](e={}){P(this,K,F(this,K,`f`)||{},`f`);let t={};t.local=F(this,K,`f`).local||[],t.configObjects=F(this,K,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(F(this,Bt,`f`),Object.keys(F(this,H,`f`)).reduce((e,t)=>{let r=F(this,H,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),P(this,H,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(F(this,K,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=st(F(this,K,`f`)[e],e=>!n[e])}),t.envPrefix=F(this,K,`f`).envPrefix,P(this,K,t,`f`),P(this,X,F(this,X,`f`)?F(this,X,`f`).reset(n):ut(this,F(this,Y,`f`)),`f`),P(this,Q,F(this,Q,`f`)?F(this,Q,`f`).reset(n):xt(this,F(this,X,`f`),F(this,Y,`f`)),`f`),P(this,I,F(this,I,`f`)?F(this,I,`f`).reset():tt(F(this,X,`f`),F(this,Q,`f`),F(this,V,`f`),F(this,Y,`f`)),`f`),F(this,L,`f`)||P(this,L,gt(this,F(this,X,`f`),F(this,I,`f`),F(this,Y,`f`)),`f`),F(this,V,`f`).reset(),P(this,R,null,`f`),P(this,G,``,`f`),P(this,z,null,`f`),P(this,U,!1,`f`),this.parsed=!1,this}[Cn](e,t){return F(this,Y,`f`).path.relative(e,t)}[Tn](e,t,n,r=0,i=!1){let a=!!n||i;e||=F(this,J,`f`),F(this,K,`f`).__=F(this,Y,`f`).y18n.__,F(this,K,`f`).configuration=this[$t]();let o=!!F(this,K,`f`).configuration[`populate--`],s=Object.assign({},F(this,K,`f`).configuration,{"populate--":!0}),c=F(this,Y,`f`).Parser.detailed(e,Object.assign({},F(this,K,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,F(this,Rt,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===F(this,W,`f`)&&l[e]?f=!0:e===F(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&F(this,X,`f`).clearCachedHelpMessage();try{if(this[tn](),t)return this[Sn](l,o,!!n,!1);F(this,W,`f`)&&[F(this,W,`f`)].concat(d[F(this,W,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),P(this,Pt,!1,`f`);let s=F(this,I,`f`).getCommands(),m=F(this,L,`f`).completionKey in l,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==F(this,R,`f`)){let e=F(this,I,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Sn](e,o,!!n,!1)}else if(!e&&a!==F(this,R,`f`)){e=a;break}!F(this,I,`f`).hasDefaultCommand()&&F(this,Vt,`f`)&&e&&!h&&F(this,Q,`f`).recommendCommands(e,s)}F(this,R,`f`)&&l._.includes(F(this,R,`f`))&&!m&&(F(this,B,`f`)&&ct(!0),this.showCompletionScript(),this.exit(0))}if(F(this,I,`f`).hasDefaultCommand()&&!h){let e=F(this,I,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Sn](e,o,!!n,!1)}if(m){F(this,B,`f`)&&ct(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${F(this,L,`f`).completionKey}`)+1);return F(this,L,`f`).getCompletion(t,(e,t)=>{if(e)throw new k(e.message);(t||[]).forEach(e=>{F(this,Ft,`f`).log(e)}),this.exit(0)}),this[Sn](l,!o,!!n,!1)}if(F(this,U,`f`)||(f?(F(this,B,`f`)&&ct(!0),a=!0,this.showHelp(`log`),this.exit(0)):p&&(F(this,B,`f`)&&ct(!0),a=!0,F(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&F(this,K,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>F(this,K,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new k(c.error.message);if(!m){let e=this[En](d,{},c.error);n||(u=Ye(l,this,F(this,V,`f`).getMiddleware(),!0)),u=this[fn](e,u??l),M(u)&&!n&&(u=u.then(()=>Ye(l,this,F(this,V,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof k)F(this,X,`f`).fail(e.message,e);else throw e}return this[Sn](u??l,o,!!n,!0)}[En](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new k(n.message);F(this,Q,`f`).nonOptionCount(a),F(this,Q,`f`).requiredArguments(a,i);let o=!1;F(this,Ut,`f`)&&(o=F(this,Q,`f`).unknownCommands(a)),F(this,Ht,`f`)&&!o?F(this,Q,`f`).unknownArguments(a,e,t,!!r):F(this,Wt,`f`)&&F(this,Q,`f`).unknownArguments(a,e,{},!1,!1),F(this,Q,`f`).limitedChoices(a),F(this,Q,`f`).implications(a),F(this,Q,`f`).conflicting(a)}}[Dn](){P(this,U,!0,`f`)}[On](e){if(typeof e==`string`)F(this,K,`f`).key[e]=!0;else for(let t of e)F(this,K,`f`).key[t]=!0}};function An(e){return!!e&&typeof e.getInternalMethods==`function`}var jn=Kt(Be);function Mn(e,t){return e.startsWith(`.`)?import(u(t,e)):import(e)}function Nn(e,t){return Mn(e,t).catch(e=>{if(e.code===`ERR_MODULE_NOT_FOUND`&&e.message.endsWith(` imported from ${g(import.meta.url)}`))return!1;throw e})}function Pn(e){return Object.keys(e).some(e=>e&&e!==`$0`)}function Fn(e,t){let{homepage:n,site:r=n,repository:i}=t,a=r&&r!==i,o=e.getInternalMethods(),s=Pn(o.getCommandInstance().handlers);return o.getUsageInstance().getUsage().length===0&&(s?e.usage(`Usage: $0 <command>`):e.usage(`Usage: $0`)),s&&e.demandCommand(1,`Won't work without a command`),a&&e.epilogue(`Website: ${r}`),i&&e.epilogue(`Repository: ${i}`),e}function In(e,t){if(typeof e==`string`||!e)return t;let n=Object.keys(e);return n.length===1?n[0]:!1}var Ln=class{constructor(e,n){this.root=n;let{bin:r,homepage:i,name:a=`cheetor`,repository:{url:o=``}={},version:s}=typeof e==`string`?JSON.parse(t(new URL(e,n))):e;this.homepage=i,this.repository=o.includes(`github.com`)?o.replace(/\.git$/,``):``;let c=jn(process.argv.slice(2)).strict().alias(`help`,`h`).alias(`version`,`v`).hide(`help`).version(s).hide(`version`).detectLocale(!1),l=In(r,a);l&&c.scriptName(l),this.cli=Promise.resolve(c)}config(e){return this.cli=this.cli.then(e),this}command(...e){return this.cli=this.cli.then(t=>t.command(...e)),this}commandFrom(e){return this.cli=this.cli.then(async t=>{let n=await Mn(e,this.root);return t.command(n)}),this}commandSafe(e){return this.cli=this.cli.then(t=>Nn(e,this.root).then(e=>e&&e.command?t.command(e):t)),this}commandSmart(e){return this.cli=this.cli.then(async t=>{let n=e();return n&&n.command?t.command(n):t}),this}website(e){return this.site=e,this}middleware(...e){return this.cli=this.cli.then(t=>t.middleware(...e)),this}setup(e){return this.cli.then(e=>Fn(e,this)).then(t=>typeof e==`function`?e(t.parse()):t.parse())}};process.on(`SIGINT`,()=>{}),new Ln(`../package.json`,import.meta.url).website(`https://www.npmjs.com/org/nice-move`).setup(()=>{import(`./lib-sLtHs2tm.mjs`).then(({init:e})=>{e()}).catch(e=>{if(e.message!==`cancel`)throw e})});export{x as n,b as r,ie as t};
83
+ `,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)}}}[Yt](e){He(F(this,K,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=F(this,K,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete F(this,X,`f`).getDescriptions()[e]}[Xt](e,t,n){F(this,Mt,`f`)[n]||(F(this,Y,`f`).process.emitWarning(e,t),F(this,Mt,`f`)[n]=!0)}[Zt](){F(this,Nt,`f`).push({options:F(this,K,`f`),configObjects:F(this,K,`f`).configObjects.slice(0),exitProcess:F(this,B,`f`),groups:F(this,H,`f`),strict:F(this,Ht,`f`),strictCommands:F(this,Ut,`f`),strictOptions:F(this,Wt,`f`),completionCommand:F(this,R,`f`),output:F(this,G,`f`),exitError:F(this,z,`f`),hasOutput:F(this,U,`f`),parsed:this.parsed,parseFn:F(this,q,`f`),parseContext:F(this,Rt,`f`)}),F(this,X,`f`).freeze(),F(this,Q,`f`).freeze(),F(this,I,`f`).freeze(),F(this,V,`f`).freeze()}[Qt](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(F(this,Y,`f`).process.argv()[0])?F(this,Y,`f`).process.argv().slice(1,2):F(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[Cn](F(this,Ot,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),F(this,Y,`f`).getEnv(`_`)&&F(this,Y,`f`).getProcessArgvBin()===F(this,Y,`f`).getEnv(`_`)&&(e=F(this,Y,`f`).getEnv(`_`).replace(`${F(this,Y,`f`).path.dirname(F(this,Y,`f`).process.execPath())}/`,``)),e}[$t](){return F(this,Lt,`f`)}[en](){return F(this,Gt,`f`)}[tn](){if(!F(this,jt,`f`))return;let e=F(this,Y,`f`).getEnv(`LC_ALL`)||F(this,Y,`f`).getEnv(`LC_MESSAGES`)||F(this,Y,`f`).getEnv(`LANG`)||F(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[nn](){return this[an]().version||`unknown`}[rn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)F(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[an](e){let t=e||`*`;if(F(this,zt,`f`)[t])return F(this,zt,`f`)[t];let n={};try{let t=e||F(this,Y,`f`).mainFilename;!e&&F(this,Y,`f`).path.extname(t)&&(t=F(this,Y,`f`).path.dirname(t));let r=F(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,F(this,Y,`f`)),n=JSON.parse(F(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return F(this,zt,`f`)[t]=n||{},F(this,zt,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[ln](t),F(this,K,`f`)[e].push(t)})}[on](e,t,n,r){this[cn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=n})}[sn](e,t,n,r){this[cn](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=(F(this,K,`f`)[e][t]||[]).concat(n)})}[cn](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of He(n))e(t,n[t]);else i(t,this[ln](n),r)}[ln](e){return e===`__proto__`?`___proto___`:e}[un](e,t){return this[on](this[un].bind(this),`key`,e,t),this}[dn](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=F(this,Nt,`f`).pop();j(f,void 0,F(this,Y,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){P(e,K,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){P(t,B,e,`f`)}}.value,groups:{set value(e){P(n,H,e,`f`)}}.value,output:{set value(e){P(r,G,e,`f`)}}.value,exitError:{set value(e){P(i,z,e,`f`)}}.value,hasOutput:{set value(e){P(a,U,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){P(o,Ht,e,`f`)}}.value,strictCommands:{set value(e){P(s,Ut,e,`f`)}}.value,strictOptions:{set value(e){P(c,Wt,e,`f`)}}.value,completionCommand:{set value(e){P(l,R,e,`f`)}}.value,parseFn:{set value(e){P(u,q,e,`f`)}}.value,parseContext:{set value(e){P(d,Rt,e,`f`)}}.value}=f,F(this,K,`f`).configObjects=p,F(this,X,`f`).unfreeze(),F(this,Q,`f`).unfreeze(),F(this,I,`f`).unfreeze(),F(this,V,`f`).unfreeze()}[fn](e,t){return Xe(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[pn].bind(this),getContext:this[mn].bind(this),getHasOutput:this[hn].bind(this),getLoggerInstance:this[gn].bind(this),getParseContext:this[_n].bind(this),getParserConfiguration:this[$t].bind(this),getUsageConfiguration:this[en].bind(this),getUsageInstance:this[vn].bind(this),getValidationInstance:this[yn].bind(this),hasParseCallback:this[bn].bind(this),isGlobalContext:this[xn].bind(this),postProcess:this[Sn].bind(this),reset:this[wn].bind(this),runValidation:this[En].bind(this),runYargsParserAndExecuteCommands:this[Tn].bind(this),setHasOutput:this[Dn].bind(this)}}[pn](){return F(this,I,`f`)}[mn](){return F(this,kt,`f`)}[hn](){return F(this,U,`f`)}[gn](){return F(this,Ft,`f`)}[_n](){return F(this,Rt,`f`)||{}}[vn](){return F(this,X,`f`)}[yn](){return F(this,Q,`f`)}[bn](){return!!F(this,q,`f`)}[xn](){return F(this,Pt,`f`)}[Sn](e,t,n,r){return n||M(e)?e:(t||(e=this[qt](e)),(this[$t]()[`parse-positional-numbers`]||this[$t]()[`parse-positional-numbers`]===void 0)&&(e=this[rn](e)),r&&(e=Ye(e,this,F(this,V,`f`).getMiddleware(),!1)),e)}[wn](e={}){P(this,K,F(this,K,`f`)||{},`f`);let t={};t.local=F(this,K,`f`).local||[],t.configObjects=F(this,K,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(F(this,Bt,`f`),Object.keys(F(this,H,`f`)).reduce((e,t)=>{let r=F(this,H,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),P(this,H,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(F(this,K,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=st(F(this,K,`f`)[e],e=>!n[e])}),t.envPrefix=F(this,K,`f`).envPrefix,P(this,K,t,`f`),P(this,X,F(this,X,`f`)?F(this,X,`f`).reset(n):ut(this,F(this,Y,`f`)),`f`),P(this,Q,F(this,Q,`f`)?F(this,Q,`f`).reset(n):xt(this,F(this,X,`f`),F(this,Y,`f`)),`f`),P(this,I,F(this,I,`f`)?F(this,I,`f`).reset():tt(F(this,X,`f`),F(this,Q,`f`),F(this,V,`f`),F(this,Y,`f`)),`f`),F(this,L,`f`)||P(this,L,gt(this,F(this,X,`f`),F(this,I,`f`),F(this,Y,`f`)),`f`),F(this,V,`f`).reset(),P(this,R,null,`f`),P(this,G,``,`f`),P(this,z,null,`f`),P(this,U,!1,`f`),this.parsed=!1,this}[Cn](e,t){return F(this,Y,`f`).path.relative(e,t)}[Tn](e,t,n,r=0,i=!1){let a=!!n||i;e||=F(this,J,`f`),F(this,K,`f`).__=F(this,Y,`f`).y18n.__,F(this,K,`f`).configuration=this[$t]();let o=!!F(this,K,`f`).configuration[`populate--`],s=Object.assign({},F(this,K,`f`).configuration,{"populate--":!0}),c=F(this,Y,`f`).Parser.detailed(e,Object.assign({},F(this,K,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,F(this,Rt,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===F(this,W,`f`)&&l[e]?f=!0:e===F(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&F(this,X,`f`).clearCachedHelpMessage();try{if(this[tn](),t)return this[Sn](l,o,!!n,!1);F(this,W,`f`)&&[F(this,W,`f`)].concat(d[F(this,W,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),P(this,Pt,!1,`f`);let s=F(this,I,`f`).getCommands(),m=F(this,L,`f`).completionKey in l,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==F(this,R,`f`)){let e=F(this,I,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Sn](e,o,!!n,!1)}else if(!e&&a!==F(this,R,`f`)){e=a;break}!F(this,I,`f`).hasDefaultCommand()&&F(this,Vt,`f`)&&e&&!h&&F(this,Q,`f`).recommendCommands(e,s)}F(this,R,`f`)&&l._.includes(F(this,R,`f`))&&!m&&(F(this,B,`f`)&&ct(!0),this.showCompletionScript(),this.exit(0))}if(F(this,I,`f`).hasDefaultCommand()&&!h){let e=F(this,I,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Sn](e,o,!!n,!1)}if(m){F(this,B,`f`)&&ct(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${F(this,L,`f`).completionKey}`)+1);return F(this,L,`f`).getCompletion(t,(e,t)=>{if(e)throw new k(e.message);(t||[]).forEach(e=>{F(this,Ft,`f`).log(e)}),this.exit(0)}),this[Sn](l,!o,!!n,!1)}if(F(this,U,`f`)||(f?(F(this,B,`f`)&&ct(!0),a=!0,this.showHelp(`log`),this.exit(0)):p&&(F(this,B,`f`)&&ct(!0),a=!0,F(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&F(this,K,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>F(this,K,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new k(c.error.message);if(!m){let e=this[En](d,{},c.error);n||(u=Ye(l,this,F(this,V,`f`).getMiddleware(),!0)),u=this[fn](e,u??l),M(u)&&!n&&(u=u.then(()=>Ye(l,this,F(this,V,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof k)F(this,X,`f`).fail(e.message,e);else throw e}return this[Sn](u??l,o,!!n,!0)}[En](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new k(n.message);F(this,Q,`f`).nonOptionCount(a),F(this,Q,`f`).requiredArguments(a,i);let o=!1;F(this,Ut,`f`)&&(o=F(this,Q,`f`).unknownCommands(a)),F(this,Ht,`f`)&&!o?F(this,Q,`f`).unknownArguments(a,e,t,!!r):F(this,Wt,`f`)&&F(this,Q,`f`).unknownArguments(a,e,{},!1,!1),F(this,Q,`f`).limitedChoices(a),F(this,Q,`f`).implications(a),F(this,Q,`f`).conflicting(a)}}[Dn](){P(this,U,!0,`f`)}[On](e){if(typeof e==`string`)F(this,K,`f`).key[e]=!0;else for(let t of e)F(this,K,`f`).key[t]=!0}};function An(e){return!!e&&typeof e.getInternalMethods==`function`}var jn=Kt(Be);function Mn(e,t){return e.startsWith(`.`)?import(u(t,e)):import(e)}function Nn(e,t){return Mn(e,t).catch(e=>{if(e.code===`ERR_MODULE_NOT_FOUND`&&e.message.endsWith(` imported from ${g(import.meta.url)}`))return!1;throw e})}function Pn(e){return Object.keys(e).some(e=>e&&e!==`$0`)}function Fn(e,t){let{homepage:n,site:r=n,repository:i}=t,a=r&&r!==i,o=e.getInternalMethods(),s=Pn(o.getCommandInstance().handlers);return o.getUsageInstance().getUsage().length===0&&(s?e.usage(`Usage: $0 <command>`):e.usage(`Usage: $0`)),s&&e.demandCommand(1,`Won't work without a command`),a&&e.epilogue(`Website: ${r}`),i&&e.epilogue(`Repository: ${i}`),e}function In(e,t){if(typeof e==`string`||!e)return t;let n=Object.keys(e);return n.length===1?n[0]:!1}var Ln=class{constructor(e,n){this.root=n;let{bin:r,homepage:i,name:a=`cheetor`,repository:{url:o=``}={},version:s}=typeof e==`string`?JSON.parse(t(new URL(e,n))):e;this.homepage=i,this.repository=o.includes(`github.com`)?o.replace(/\.git$/,``):``;let c=jn(process.argv.slice(2)).strict().alias(`help`,`h`).alias(`version`,`v`).hide(`help`).version(s).hide(`version`).detectLocale(!1),l=In(r,a);l&&c.scriptName(l),this.cli=Promise.resolve(c)}config(e){return this.cli=this.cli.then(e),this}command(...e){return this.cli=this.cli.then(t=>t.command(...e)),this}commandFrom(e){return this.cli=this.cli.then(async t=>{let n=await Mn(e,this.root);return t.command(n)}),this}commandSafe(e){return this.cli=this.cli.then(t=>Nn(e,this.root).then(e=>e&&e.command?t.command(e):t)),this}commandSmart(e){return this.cli=this.cli.then(async t=>{let n=e();return n&&n.command?t.command(n):t}),this}website(e){return this.site=e,this}middleware(...e){return this.cli=this.cli.then(t=>t.middleware(...e)),this}setup(e){return this.cli.then(e=>Fn(e,this)).then(t=>typeof e==`function`?e(t.parse()):t.parse())}};process.on(`SIGINT`,()=>{}),new Ln(`../package.json`,import.meta.url).website(`https://www.npmjs.com/org/nice-move`).setup(()=>{import(`./lib-n-sacU-B.mjs`).then(({init:e})=>{e()}).catch(e=>{if(e.message!==`cancel`)throw e})});export{x as n,b as r,ie as t};
@@ -29,8 +29,8 @@ trim_trailing_whitespace = true
29
29
  `;return this.stop(),this.#c.write(c),this}};function hr(e){return new mr(e)}var gr=t(n(((e,t)=>{t.exports=function(e){if(typeof e!=`object`)throw Error(`expected an author to be an object`);var t={name:[``,``],email:[`<`,`>`],url:[`(`,`)`]},r=``;for(var i in e.url&&=n(e.url),t)e[i]&&(r+=t[i][0]+e[i]+t[i][1]+` `);return r.trim()};function n(e){return e.replace(/\/$/,``)}}))(),1);async function _r(e){let t=new AbortController,n=setTimeout(()=>t.abort(),5e3);try{let r=await fetch(e,{signal:t.signal});clearTimeout(n);let i=(await r.text()).trim();if(i)return i;throw Error(`template download fail`)}catch(e){throw clearTimeout(n),e.name===`AbortError`?Error(`request timeout`):e}}function vr(){return ne(process.cwd()).filter(e=>e!==`.git`).length===0}function yr(e){return e?e.trim():void 0}function br(){try{return{name:S(`git config user.name`).toString().trim(),email:S(`git config user.email`).toString().trim()}}catch{return{}}}async function xr(e){if(e)return e;let t=br();return t.name?(0,gr.default)(t):`Unknown`}async function Sr(e){return(await xr(e)).name||`Unknown`}function Cr(){try{return JSON.parse(te(o(process.cwd(),`package.json`)))}catch{return{}}}var wr=`# Created by nice-move
30
30
 
31
31
  * text=auto eol=lf
32
- `;const Tr={Windows_NT:`windows`,Linux:`linux`,Darwin:`macos`};async function Er(){await new F().onDone(()=>wr).output(`.gitattributes`).logger(`Create/Overwrite`,Qt(`.gitattributes`));let e=hr({text:"Downloading template from `gitignore.io`"}).start(),t=`Create/Overwrite ${Qt(`.gitignore`)}`;return new F().source(`.gitignore`).onFail().onDone((e=``)=>{let t=Tr[_()];return _r(`https://gitignore.io/api/ssh,certificates,node,${t}`).then(e=>`${e.replaceAll(/(www\.)?toptal\.com\/developers\/gitignore/g,`gitignore.io`).trim()}\n`).catch(()=>e||`node_modules
33
- `)}).output().then(()=>{e.stopAndPersist({symbol:en(`√`),text:t})}).catch(n=>{e.stopAndPersist({symbol:$t(`×`),text:`${t} - ${n.message}`})})}var Dr=`MIT License
32
+ `;const Tr={Windows_NT:`windows`,Linux:`linux`,Darwin:`macos`};async function Er(){await new F().onDone(()=>wr).output(`.gitattributes`).logger(`Create/Overwrite`,Qt(`.gitattributes`));let e=hr({text:"Downloading template from `gitignore.io`"}).start(),t=`Create/Overwrite ${Qt(`.gitignore`)}`;return new F().source(`.gitignore`).onFail().onDone((e=``)=>{let t=Tr[_()];return _r(`https://www.toptal.com/developers/gitignore/api/ssh,certificates,node,${t}`).then(e=>{let t=e.replaceAll(/(www\.)?toptal\.com\/developers\/gitignore/g,`gitignore.io`);return t.startsWith(`# Created`)?t:`node_modules`}).catch(()=>e||`node_modules
33
+ `)}).output().then(()=>{e.stopAndPersist({symbol:en(`✔`),text:t})}).catch(n=>{e.stopAndPersist({symbol:$t(`✘`),text:`${t} - ${n.message}`})})}var Dr=`MIT License
34
34
 
35
35
  Copyright (c) {{year}} {{holder}}
36
36
 
@@ -75,7 +75,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
75
75
  OTHER DEALINGS IN THE SOFTWARE.
76
76
 
77
77
  For more information, please refer to <https://unlicense.org/>
78
- `;async function kr(){let{license:e,author:t=``}=Cr(),n=e===`MIT`;if(n||e===`Unlicense`){let e=await Sr(t);return new F().onDone(()=>n?Dr.replace(`{{year}}`,new Date().getFullYear()).replace(`{{holder}}`,e):Or).output(`LICENSE`).logger(`Create/Overwrite`,Qt(`LICENSE`)).catch(console.warn)}}const L={defaultMerge:Symbol(`deepmerge-ts: default merge`),skip:Symbol(`deepmerge-ts: skip`)};L.defaultMerge;function Ar(e,t){return t}function jr(e,t){return e.filter(e=>e!==void 0)}var Mr;(function(e){e[e.NOT=0]=`NOT`,e[e.RECORD=1]=`RECORD`,e[e.ARRAY=2]=`ARRAY`,e[e.SET=3]=`SET`,e[e.MAP=4]=`MAP`,e[e.OTHER=5]=`OTHER`})(Mr||={});function Nr(e){return typeof e!=`object`||!e?0:Array.isArray(e)?2:Rr(e)?1:e instanceof Set?3:e instanceof Map?4:5}function Pr(e){let t=new Set;for(let n of e)for(let e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}function Fr(e,t){return typeof e==`object`&&Object.prototype.propertyIsEnumerable.call(e,t)}function Ir(e){let t=0,n=e[0]?.[Symbol.iterator]();return{[Symbol.iterator](){return{next(){do{if(n===void 0)return{done:!0,value:void 0};let r=n.next();if(r.done===!0){t+=1,n=e[t]?.[Symbol.iterator]();continue}return{done:!1,value:r.value}}while(!0)}}}}}const Lr=[`[object Object]`,`[object Module]`];function Rr(e){if(!Lr.includes(Object.prototype.toString.call(e)))return!1;let{constructor:t}=e;if(t===void 0)return!0;let n=t.prototype;return!(typeof n!=`object`||!n||!Lr.includes(Object.prototype.toString.call(n))||!n.hasOwnProperty(`isPrototypeOf`))}function zr(e,t,n){let r={};for(let i of Pr(e)){let a=[];for(let t of e)Fr(t,i)&&a.push(t[i]);if(a.length===0)continue;let o=Jr(a,t,t.metaDataUpdater(n,{key:i,parents:e}));o!==L.skip&&(i===`__proto__`?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)}return r}function Br(e){return e.flat()}function Vr(e){return new Set(Ir(e))}function Hr(e){return new Map(Ir(e))}function Ur(e){return e.at(-1)}const Wr={mergeRecords:zr,mergeArrays:Br,mergeSets:Vr,mergeMaps:Hr,mergeOthers:Ur};function Gr(...e){return Kr({})(...e)}function Kr(e,t){let n=qr(e,r);function r(...e){return Jr(e,n,t)}return r}function qr(e,t){return{defaultMergeFunctions:Wr,mergeFunctions:{...Wr,...Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.hasOwn(Wr,e)).map(([e,t])=>t===!1?[e,Wr.mergeOthers]:[e,t]))},metaDataUpdater:e.metaDataUpdater??Ar,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:e.filterValues===!1?void 0:e.filterValues??jr,actions:L}}function Jr(e,t,n){let r=t.filterValues?.(e,n)??e;if(r.length===0)return;if(r.length===1)return $r(r,t,n);let i=Nr(r[0]);if(i!==0&&i!==5){for(let e=1;e<r.length;e++)if(Nr(r[e])!==i)return $r(r,t,n)}switch(i){case 1:return Yr(r,t,n);case 2:return Xr(r,t,n);case 3:return Zr(r,t,n);case 4:return Qr(r,t,n);default:return $r(r,t,n)}}function Yr(e,t,n){let r=t.mergeFunctions.mergeRecords(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function Xr(e,t,n){let r=t.mergeFunctions.mergeArrays(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function Zr(e,t,n){let r=t.mergeFunctions.mergeSets(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function Qr(e,t,n){let r=t.mergeFunctions.mergeMaps(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function $r(e,t,n){let r=t.mergeFunctions.mergeOthers(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}var R={"@bring-it/cli":`^0.11.1`,"@bring-it/npm":`^0.9.3`,"@cospaia/prettier-plugin-clojure":`^0.0.2`,"@vitest/ui":`^4.0.17`,eslint:`^9.39.1`,"find-workspaces":`^0.3.1`,garou:`^0.9.17`,postcss:`^8.5.6`,prettier:`~3.7.4`,"prettier-plugin-tailwindcss":`^0.7.2`,stylelint:`^16.26.1`,syncpack:`^13.0.4`,tsdown:`^0.18.4`,typescript:`~5.9.3`,vitest:`^4.0.17`,"@bring-it/sftp":`^0.7.1`,"@nice-move/init":`^0.8.34`,"@nice-move/syncpack-config":`^0.4.2`,"@playwright/test":`~1.56.1`,"@types/react":`~18.3.27`,react:`~18.3.1`,"react-dom":`~18.3.1`,tailwindcss:`^3.4.19`,vue:`~3.5.26`,yaml:`^2.8.2`,"@nice-move/eslint-config-base":`^0.13.18`,"@nice-move/stylelint-config":`^0.10.25`,"@nice-move/prettier-config":`^0.15.7`,"@nice-move/tsconfig":`^0.4.2`,"@nice-move/cli":`^0.11.29`,"@eslint/eslintrc":`^3.3.3`,"@eslint/js":`^9.39.2`,"@eslint/markdown":`^7.5.1`,"@types/node":`^24.10.7`,chalk:`^5.6.2`,"eslint-plugin-vue":`^10.6.2`,execa:`^9.6.1`,"fs-chain":`^10.0.0`,lodash:`^4.17.21`,settingz:`^0.2.0`,"sort-keys":`^6.0.0`,"typescript-eslint":`^8.52.0`,"eslint-plugin-react-hooks":`^5.2.0`,globals:`^17.0.0`,packageManager:`pnpm@10.27.0`,engines:{node:`>=24.0.0 || ^22.18.0`,pnpm:`^10.27.0`}},ei=n(((e,t)=>{t.exports=e=>{if(typeof e!=`object`||!e)throw TypeError(`Expected an object`);let t={};for(let[n,r]of Object.entries(e))t[r]=n;for(let n of Object.getOwnPropertySymbols(e)){let r=e[n];t[r]=n}return t}})),ti=n(((e,t)=>{t.exports={4:`zh_CHS`,1025:`ar_SA`,1026:`bg_BG`,1027:`ca_ES`,1028:`zh_TW`,1029:`cs_CZ`,1030:`da_DK`,1031:`de_DE`,1032:`el_GR`,1033:`en_US`,1034:`es_ES`,1035:`fi_FI`,1036:`fr_FR`,1037:`he_IL`,1038:`hu_HU`,1039:`is_IS`,1040:`it_IT`,1041:`ja_JP`,1042:`ko_KR`,1043:`nl_NL`,1044:`nb_NO`,1045:`pl_PL`,1046:`pt_BR`,1047:`rm_CH`,1048:`ro_RO`,1049:`ru_RU`,1050:`hr_HR`,1051:`sk_SK`,1052:`sq_AL`,1053:`sv_SE`,1054:`th_TH`,1055:`tr_TR`,1056:`ur_PK`,1057:`id_ID`,1058:`uk_UA`,1059:`be_BY`,1060:`sl_SI`,1061:`et_EE`,1062:`lv_LV`,1063:`lt_LT`,1064:`tg_TJ`,1065:`fa_IR`,1066:`vi_VN`,1067:`hy_AM`,1069:`eu_ES`,1070:`wen_DE`,1071:`mk_MK`,1074:`tn_ZA`,1076:`xh_ZA`,1077:`zu_ZA`,1078:`af_ZA`,1079:`ka_GE`,1080:`fo_FO`,1081:`hi_IN`,1082:`mt_MT`,1083:`se_NO`,1086:`ms_MY`,1087:`kk_KZ`,1088:`ky_KG`,1089:`sw_KE`,1090:`tk_TM`,1092:`tt_RU`,1093:`bn_IN`,1094:`pa_IN`,1095:`gu_IN`,1096:`or_IN`,1097:`ta_IN`,1098:`te_IN`,1099:`kn_IN`,1100:`ml_IN`,1101:`as_IN`,1102:`mr_IN`,1103:`sa_IN`,1104:`mn_MN`,1105:`bo_CN`,1106:`cy_GB`,1107:`kh_KH`,1108:`lo_LA`,1109:`my_MM`,1110:`gl_ES`,1111:`kok_IN`,1114:`syr_SY`,1115:`si_LK`,1118:`am_ET`,1121:`ne_NP`,1122:`fy_NL`,1123:`ps_AF`,1124:`fil_PH`,1125:`div_MV`,1128:`ha_NG`,1130:`yo_NG`,1131:`quz_BO`,1132:`ns_ZA`,1133:`ba_RU`,1134:`lb_LU`,1135:`kl_GL`,1144:`ii_CN`,1146:`arn_CL`,1148:`moh_CA`,1150:`br_FR`,1152:`ug_CN`,1153:`mi_NZ`,1154:`oc_FR`,1155:`co_FR`,1156:`gsw_FR`,1157:`sah_RU`,1158:`qut_GT`,1159:`rw_RW`,1160:`wo_SN`,1164:`gbz_AF`,2049:`ar_IQ`,2052:`zh_CN`,2055:`de_CH`,2057:`en_GB`,2058:`es_MX`,2060:`fr_BE`,2064:`it_CH`,2067:`nl_BE`,2068:`nn_NO`,2070:`pt_PT`,2077:`sv_FI`,2080:`ur_IN`,2092:`az_AZ`,2094:`dsb_DE`,2107:`se_SE`,2108:`ga_IE`,2110:`ms_BN`,2115:`uz_UZ`,2128:`mn_CN`,2129:`bo_BT`,2141:`iu_CA`,2143:`tmz_DZ`,2155:`quz_EC`,3073:`ar_EG`,3076:`zh_HK`,3079:`de_AT`,3081:`en_AU`,3082:`es_ES`,3084:`fr_CA`,3098:`sr_SP`,3131:`se_FI`,3179:`quz_PE`,4097:`ar_LY`,4100:`zh_SG`,4103:`de_LU`,4105:`en_CA`,4106:`es_GT`,4108:`fr_CH`,4122:`hr_BA`,4155:`smj_NO`,5121:`ar_DZ`,5124:`zh_MO`,5127:`de_LI`,5129:`en_NZ`,5130:`es_CR`,5132:`fr_LU`,5179:`smj_SE`,6145:`ar_MA`,6153:`en_IE`,6154:`es_PA`,6156:`fr_MC`,6203:`sma_NO`,7169:`ar_TN`,7177:`en_ZA`,7178:`es_DO`,7194:`sr_BA`,7227:`sma_SE`,8193:`ar_OM`,8201:`en_JA`,8202:`es_VE`,8218:`bs_BA`,8251:`sms_FI`,9217:`ar_YE`,9225:`en_CB`,9226:`es_CO`,9275:`smn_FI`,10241:`ar_SY`,10249:`en_BZ`,10250:`es_PE`,11265:`ar_JO`,11273:`en_TT`,11274:`es_AR`,12289:`ar_LB`,12297:`en_ZW`,12298:`es_EC`,13313:`ar_KW`,13321:`en_PH`,13322:`es_CL`,14337:`ar_AE`,14346:`es_UR`,15361:`ar_BH`,15370:`es_PY`,16385:`ar_QA`,16394:`es_BO`,17417:`en_MY`,17418:`es_SV`,18441:`en_IN`,18442:`es_HN`,19466:`es_NI`,20490:`es_PR`,21514:`es_US`,31748:`zh_CHT`}})),ni=t(n((e=>{let t=ei(),n=ti(),r=t(n);e.from=e=>{if(typeof e!=`number`)throw TypeError(`Expected a number`);return n[e]},e.all=new Proxy(r,{get(e,t){let n=e[t];if(n)return Number(n)}})}))(),1);const ri=le(y.execFile);async function ii(e,t){let n=await ri(e,t,{encoding:`utf8`});return n.stdout=n.stdout.trim(),n}const ai={spawn:!0},oi=`en-US`;async function si(e,t){return(await ii(e,t)).stdout}function ci(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function li(e){let t={};for(let n of e.split(`
78
+ `;async function kr(){let{license:e,author:t=``}=Cr(),n=e===`MIT`;if(n||e===`Unlicense`){let e=await Sr(t);return new F().onDone(()=>n?Dr.replace(`{{year}}`,new Date().getFullYear()).replace(`{{holder}}`,e):Or).output(`LICENSE`).logger(`Create/Overwrite`,Qt(`LICENSE`)).catch(console.warn)}}const L={defaultMerge:Symbol(`deepmerge-ts: default merge`),skip:Symbol(`deepmerge-ts: skip`)};L.defaultMerge;function Ar(e,t){return t}function jr(e,t){return e.filter(e=>e!==void 0)}var Mr;(function(e){e[e.NOT=0]=`NOT`,e[e.RECORD=1]=`RECORD`,e[e.ARRAY=2]=`ARRAY`,e[e.SET=3]=`SET`,e[e.MAP=4]=`MAP`,e[e.OTHER=5]=`OTHER`})(Mr||={});function Nr(e){return typeof e!=`object`||!e?0:Array.isArray(e)?2:Rr(e)?1:e instanceof Set?3:e instanceof Map?4:5}function Pr(e){let t=new Set;for(let n of e)for(let e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}function Fr(e,t){return typeof e==`object`&&Object.prototype.propertyIsEnumerable.call(e,t)}function Ir(e){let t=0,n=e[0]?.[Symbol.iterator]();return{[Symbol.iterator](){return{next(){do{if(n===void 0)return{done:!0,value:void 0};let r=n.next();if(r.done===!0){t+=1,n=e[t]?.[Symbol.iterator]();continue}return{done:!1,value:r.value}}while(!0)}}}}}const Lr=[`[object Object]`,`[object Module]`];function Rr(e){if(!Lr.includes(Object.prototype.toString.call(e)))return!1;let{constructor:t}=e;if(t===void 0)return!0;let n=t.prototype;return!(typeof n!=`object`||!n||!Lr.includes(Object.prototype.toString.call(n))||!n.hasOwnProperty(`isPrototypeOf`))}function zr(e,t,n){let r={};for(let i of Pr(e)){let a=[];for(let t of e)Fr(t,i)&&a.push(t[i]);if(a.length===0)continue;let o=Jr(a,t,t.metaDataUpdater(n,{key:i,parents:e}));o!==L.skip&&(i===`__proto__`?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)}return r}function Br(e){return e.flat()}function Vr(e){return new Set(Ir(e))}function Hr(e){return new Map(Ir(e))}function Ur(e){return e.at(-1)}const Wr={mergeRecords:zr,mergeArrays:Br,mergeSets:Vr,mergeMaps:Hr,mergeOthers:Ur};function Gr(...e){return Kr({})(...e)}function Kr(e,t){let n=qr(e,r);function r(...e){return Jr(e,n,t)}return r}function qr(e,t){return{defaultMergeFunctions:Wr,mergeFunctions:{...Wr,...Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.hasOwn(Wr,e)).map(([e,t])=>t===!1?[e,Wr.mergeOthers]:[e,t]))},metaDataUpdater:e.metaDataUpdater??Ar,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:e.filterValues===!1?void 0:e.filterValues??jr,actions:L}}function Jr(e,t,n){let r=t.filterValues?.(e,n)??e;if(r.length===0)return;if(r.length===1)return $r(r,t,n);let i=Nr(r[0]);if(i!==0&&i!==5){for(let e=1;e<r.length;e++)if(Nr(r[e])!==i)return $r(r,t,n)}switch(i){case 1:return Yr(r,t,n);case 2:return Xr(r,t,n);case 3:return Zr(r,t,n);case 4:return Qr(r,t,n);default:return $r(r,t,n)}}function Yr(e,t,n){let r=t.mergeFunctions.mergeRecords(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function Xr(e,t,n){let r=t.mergeFunctions.mergeArrays(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function Zr(e,t,n){let r=t.mergeFunctions.mergeSets(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function Qr(e,t,n){let r=t.mergeFunctions.mergeMaps(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function $r(e,t,n){let r=t.mergeFunctions.mergeOthers(e,t,n);return r===L.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}var R={"@bring-it/cli":`^0.11.1`,"@bring-it/npm":`^0.9.3`,"@cospaia/prettier-plugin-clojure":`^0.0.2`,"@pnpm/pnpmfile":`^1002.1.11`,"@pnpm/types":`^1001.3.0`,"@vitest/ui":`^4.0.17`,eslint:`^9.39.2`,"find-workspaces":`^0.3.1`,garou:`^0.9.17`,postcss:`^8.5.6`,prettier:`~3.8.0`,"prettier-plugin-tailwindcss":`^0.7.2`,stylelint:`^16.26.1`,syncpack:`^13.0.4`,tsdown:`^0.19.0`,typescript:`~5.9.3`,vitest:`^4.0.17`,"@bring-it/sftp":`^0.7.1`,"@nice-move/init":`^0.8.35`,"@nice-move/syncpack-config":`^0.4.2`,"@playwright/test":`~1.56.1`,"@types/react":`~18.3.27`,react:`~18.3.1`,"react-dom":`~18.3.1`,tailwindcss:`^3.4.19`,vue:`~3.5.26`,yaml:`^2.8.2`,"@nice-move/eslint-config-base":`^0.13.19`,"@nice-move/stylelint-config":`^0.10.25`,"@nice-move/prettier-config":`^0.15.8`,"@nice-move/tsconfig":`^0.4.2`,"@nice-move/cli":`^0.11.29`,"@eslint/eslintrc":`^3.3.3`,"@eslint/js":`^9.39.2`,"@eslint/markdown":`^7.5.1`,"@types/node":`^24.10.9`,chalk:`^5.6.2`,"eslint-plugin-vue":`^10.7.0`,execa:`^9.6.1`,"fs-chain":`^10.0.0`,lodash:`^4.17.21`,settingz:`^0.2.0`,"sort-keys":`^6.0.0`,"typescript-eslint":`^8.53.1`,"eslint-plugin-react-hooks":`^5.2.0`,globals:`^17.0.0`,packageManager:`pnpm@10.27.0`,engines:{node:`>=24.0.0 || ^22.18.0`,pnpm:`^10.27.0`}},ei=n(((e,t)=>{t.exports=e=>{if(typeof e!=`object`||!e)throw TypeError(`Expected an object`);let t={};for(let[n,r]of Object.entries(e))t[r]=n;for(let n of Object.getOwnPropertySymbols(e)){let r=e[n];t[r]=n}return t}})),ti=n(((e,t)=>{t.exports={4:`zh_CHS`,1025:`ar_SA`,1026:`bg_BG`,1027:`ca_ES`,1028:`zh_TW`,1029:`cs_CZ`,1030:`da_DK`,1031:`de_DE`,1032:`el_GR`,1033:`en_US`,1034:`es_ES`,1035:`fi_FI`,1036:`fr_FR`,1037:`he_IL`,1038:`hu_HU`,1039:`is_IS`,1040:`it_IT`,1041:`ja_JP`,1042:`ko_KR`,1043:`nl_NL`,1044:`nb_NO`,1045:`pl_PL`,1046:`pt_BR`,1047:`rm_CH`,1048:`ro_RO`,1049:`ru_RU`,1050:`hr_HR`,1051:`sk_SK`,1052:`sq_AL`,1053:`sv_SE`,1054:`th_TH`,1055:`tr_TR`,1056:`ur_PK`,1057:`id_ID`,1058:`uk_UA`,1059:`be_BY`,1060:`sl_SI`,1061:`et_EE`,1062:`lv_LV`,1063:`lt_LT`,1064:`tg_TJ`,1065:`fa_IR`,1066:`vi_VN`,1067:`hy_AM`,1069:`eu_ES`,1070:`wen_DE`,1071:`mk_MK`,1074:`tn_ZA`,1076:`xh_ZA`,1077:`zu_ZA`,1078:`af_ZA`,1079:`ka_GE`,1080:`fo_FO`,1081:`hi_IN`,1082:`mt_MT`,1083:`se_NO`,1086:`ms_MY`,1087:`kk_KZ`,1088:`ky_KG`,1089:`sw_KE`,1090:`tk_TM`,1092:`tt_RU`,1093:`bn_IN`,1094:`pa_IN`,1095:`gu_IN`,1096:`or_IN`,1097:`ta_IN`,1098:`te_IN`,1099:`kn_IN`,1100:`ml_IN`,1101:`as_IN`,1102:`mr_IN`,1103:`sa_IN`,1104:`mn_MN`,1105:`bo_CN`,1106:`cy_GB`,1107:`kh_KH`,1108:`lo_LA`,1109:`my_MM`,1110:`gl_ES`,1111:`kok_IN`,1114:`syr_SY`,1115:`si_LK`,1118:`am_ET`,1121:`ne_NP`,1122:`fy_NL`,1123:`ps_AF`,1124:`fil_PH`,1125:`div_MV`,1128:`ha_NG`,1130:`yo_NG`,1131:`quz_BO`,1132:`ns_ZA`,1133:`ba_RU`,1134:`lb_LU`,1135:`kl_GL`,1144:`ii_CN`,1146:`arn_CL`,1148:`moh_CA`,1150:`br_FR`,1152:`ug_CN`,1153:`mi_NZ`,1154:`oc_FR`,1155:`co_FR`,1156:`gsw_FR`,1157:`sah_RU`,1158:`qut_GT`,1159:`rw_RW`,1160:`wo_SN`,1164:`gbz_AF`,2049:`ar_IQ`,2052:`zh_CN`,2055:`de_CH`,2057:`en_GB`,2058:`es_MX`,2060:`fr_BE`,2064:`it_CH`,2067:`nl_BE`,2068:`nn_NO`,2070:`pt_PT`,2077:`sv_FI`,2080:`ur_IN`,2092:`az_AZ`,2094:`dsb_DE`,2107:`se_SE`,2108:`ga_IE`,2110:`ms_BN`,2115:`uz_UZ`,2128:`mn_CN`,2129:`bo_BT`,2141:`iu_CA`,2143:`tmz_DZ`,2155:`quz_EC`,3073:`ar_EG`,3076:`zh_HK`,3079:`de_AT`,3081:`en_AU`,3082:`es_ES`,3084:`fr_CA`,3098:`sr_SP`,3131:`se_FI`,3179:`quz_PE`,4097:`ar_LY`,4100:`zh_SG`,4103:`de_LU`,4105:`en_CA`,4106:`es_GT`,4108:`fr_CH`,4122:`hr_BA`,4155:`smj_NO`,5121:`ar_DZ`,5124:`zh_MO`,5127:`de_LI`,5129:`en_NZ`,5130:`es_CR`,5132:`fr_LU`,5179:`smj_SE`,6145:`ar_MA`,6153:`en_IE`,6154:`es_PA`,6156:`fr_MC`,6203:`sma_NO`,7169:`ar_TN`,7177:`en_ZA`,7178:`es_DO`,7194:`sr_BA`,7227:`sma_SE`,8193:`ar_OM`,8201:`en_JA`,8202:`es_VE`,8218:`bs_BA`,8251:`sms_FI`,9217:`ar_YE`,9225:`en_CB`,9226:`es_CO`,9275:`smn_FI`,10241:`ar_SY`,10249:`en_BZ`,10250:`es_PE`,11265:`ar_JO`,11273:`en_TT`,11274:`es_AR`,12289:`ar_LB`,12297:`en_ZW`,12298:`es_EC`,13313:`ar_KW`,13321:`en_PH`,13322:`es_CL`,14337:`ar_AE`,14346:`es_UR`,15361:`ar_BH`,15370:`es_PY`,16385:`ar_QA`,16394:`es_BO`,17417:`en_MY`,17418:`es_SV`,18441:`en_IN`,18442:`es_HN`,19466:`es_NI`,20490:`es_PR`,21514:`es_US`,31748:`zh_CHT`}})),ni=t(n((e=>{let t=ei(),n=ti(),r=t(n);e.from=e=>{if(typeof e!=`number`)throw TypeError(`Expected a number`);return n[e]},e.all=new Proxy(r,{get(e,t){let n=e[t];if(n)return Number(n)}})}))(),1);const ri=le(y.execFile);async function ii(e,t){let n=await ri(e,t,{encoding:`utf8`});return n.stdout=n.stdout.trim(),n}const ai={spawn:!0},oi=`en-US`;async function si(e,t){return(await ii(e,t)).stdout}function ci(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function li(e){let t={};for(let n of e.split(`
79
79
  `)){let[e,r]=n.split(`=`);t[e]=r.replace(/^"|"$/g,``)}return ci(t)}function ui(e){return e&&e.replace(/[.:].*/,``)}async function di(){return si(`locale`,[`-a`])}function fi(e,t=``){return t.includes(e)?e:oi}async function pi(){let e=await Promise.all([si(`defaults`,[`read`,`-globalDomain`,`AppleLocale`]),di()]);return fi(e[0],e[1])}async function mi(){return ui(li(await si(`locale`)))}async function hi(){let e=await si(`wmic`,[`os`,`get`,`locale`]),t=Number.parseInt(e.replace(`Locale`,``),16);return ni.from(t)}function gi(e){return e.replace(/_/,`-`)}const _i=new Map;async function vi(e=ai){if(_i.has(e.spawn))return _i.get(e.spawn);let t;try{let n=ci();t=n||e.spawn===!1?ui(n):process.platform===`win32`?await hi():process.platform===`darwin`?await pi():await mi()}catch{}let n=gi(t||oi);return _i.set(e.spawn,n),n}async function yi(){await vi()===`zh-CN`&&new F().source(`.npmrc`).onFail().onDone((e=``)=>e.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(e)?e:`registry = https://mirrors.tencent.com/npm/\r${e}`).output().logger(`Set registry to China mirror in`,Qt(`.npmrc`)).catch(console.warn)}const bi=`package.json`;function xi(e){return new Zt().config({pretty:!0}).source(bi).onFail().onDone((t={})=>Gr({packageManager:R.packageManager,type:`module`,engines:{node:R.engines.node,pnpm:R.engines.pnpm},publishConfig:e.private||t.private?void 0:{access:`public`,registry:`https://registry.npmjs.org/`}},t,e)).onDone(e=>(e.private===!0&&yi(),e)).output().logger(`Add project info to`,Qt(bi)).catch(console.warn)}async function Si(){let{name:e,description:t}=Cr();new F().source(`README.md`).onFail().onDone(n=>n||[`# ${e}`,t?`${t}.\n`:``].filter(Boolean).join(`
80
80
 
81
81
  `)).output().logger(`Create`,Qt(`README.md`)).catch(console.warn)}function z(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const Ci=(e,t)=>{let n=Ei(wi(e));if(typeof n!=`string`)throw TypeError(`${t} must be a string or a file URL: ${n}.`);return n},wi=e=>Ti(e)?e.toString():e,Ti=e=>typeof e!=`string`&&e&&Object.getPrototypeOf(e)===String.prototype,Ei=e=>e instanceof URL?l(e):e,Di=(e,t=[],n={})=>{let r=Ci(e,`First argument`),[i,a]=z(t)?[[],t]:[t,n];if(!Array.isArray(i))throw TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some(e=>typeof e==`object`&&!!e))throw TypeError(`Second argument must be an array of strings: ${i}`);let o=i.map(String),s=o.find(e=>e.includes(`\0`));if(s!==void 0)throw TypeError(`Arguments cannot contain null bytes ("\\0"): ${s}`);if(!z(a))throw TypeError(`Last argument must be an options object: ${a}`);return[r,o,a]},{toString:Oi}=Object.prototype,ki=e=>Oi.call(e)===`[object ArrayBuffer]`,B=e=>Oi.call(e)===`[object Uint8Array]`,Ai=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),ji=new TextEncoder,Mi=e=>ji.encode(e),Ni=new TextDecoder,Pi=e=>Ni.decode(e),Fi=(e,t)=>Ii(e,t).join(``),Ii=(e,t)=>{if(t===`utf8`&&e.every(e=>typeof e==`string`))return e;let n=new de(t),r=e.map(e=>typeof e==`string`?Mi(e):e).map(e=>n.write(e)),i=n.end();return i===``?r:[...r,i]},Li=e=>e.length===1&&B(e[0])?e[0]:zi(Ri(e)),Ri=e=>e.map(e=>typeof e==`string`?Mi(e):e),zi=e=>{let t=new Uint8Array(Bi(e)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t},Bi=e=>{let t=0;for(let n of e)t+=n.length;return t},Vi=e=>Array.isArray(e)&&Array.isArray(e.raw),Hi=(e,t)=>{let n=[];for(let[r,i]of e.entries())n=Ui({templates:e,expressions:t,tokens:n,index:r,template:i});if(n.length===0)throw TypeError(`Template script must not be empty`);let[r,...i]=n;return[r,i,{}]},Ui=({templates:e,expressions:t,tokens:n,index:r,template:i})=>{if(i===void 0)throw TypeError(`Invalid backslash sequence: ${e.raw[r]}`);let{nextTokens:a,leadingWhitespaces:o,trailingWhitespaces:s}=Wi(i,e.raw[r]),c=qi(n,a,o);if(r===t.length)return c;let l=t[r];return qi(c,Array.isArray(l)?l.map(e=>Ji(e)):[Ji(l)],s)},Wi=(e,t)=>{if(t.length===0)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};let n=[],r=0,i=Gi.has(t[0]);for(let i=0,a=0;i<e.length;i+=1,a+=1){let o=t[a];if(Gi.has(o))r!==i&&n.push(e.slice(r,i)),r=i+1;else if(o===`\\`){let e=t[a+1];e===`
@@ -86,7 +86,7 @@ Please set the "stdio" option to ensure that file descriptor exists.`);return r=
86
86
  `).map(e=>Sa(e)).join(`
87
87
  `),Sa=e=>e.replaceAll(wa,e=>Ca(e)),Ca=e=>{let t=Ta[e];if(t!==void 0)return t;let n=e.codePointAt(0),r=n.toString(16);return n<=Ea?`\\u${r.padStart(4,`0`)}`:`\\U${r}`},wa=(()=>{try{return RegExp(`\\p{Separator}|\\p{Other}`,`gu`)}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}})(),Ta={" ":` `,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`},Ea=65535,Da=e=>Oa.test(e)?e:m===`win32`?`"${e.replaceAll(`"`,`""`)}"`:`'${e.replaceAll(`'`,`'\\''`)}'`,Oa=/^[\w./-]+$/,ka={circleQuestionMark:`(?)`,questionMarkPrefix:`(?)`,square:`█`,squareDarkShade:`▓`,squareMediumShade:`▒`,squareLightShade:`░`,squareTop:`▀`,squareBottom:`▄`,squareLeft:`▌`,squareRight:`▐`,squareCenter:`■`,bullet:`●`,dot:`․`,ellipsis:`…`,pointerSmall:`›`,triangleUp:`▲`,triangleUpSmall:`▴`,triangleDown:`▼`,triangleDownSmall:`▾`,triangleLeftSmall:`◂`,triangleRightSmall:`▸`,home:`⌂`,heart:`♥`,musicNote:`♪`,musicNoteBeamed:`♫`,arrowUp:`↑`,arrowDown:`↓`,arrowLeft:`←`,arrowRight:`→`,arrowLeftRight:`↔`,arrowUpDown:`↕`,almostEqual:`≈`,notEqual:`≠`,lessOrEqual:`≤`,greaterOrEqual:`≥`,identical:`≡`,infinity:`∞`,subscriptZero:`₀`,subscriptOne:`₁`,subscriptTwo:`₂`,subscriptThree:`₃`,subscriptFour:`₄`,subscriptFive:`₅`,subscriptSix:`₆`,subscriptSeven:`₇`,subscriptEight:`₈`,subscriptNine:`₉`,oneHalf:`½`,oneThird:`⅓`,oneQuarter:`¼`,oneFifth:`⅕`,oneSixth:`⅙`,oneEighth:`⅛`,twoThirds:`⅔`,twoFifths:`⅖`,threeQuarters:`¾`,threeFifths:`⅗`,threeEighths:`⅜`,fourFifths:`⅘`,fiveSixths:`⅚`,fiveEighths:`⅝`,sevenEighths:`⅞`,line:`─`,lineBold:`━`,lineDouble:`═`,lineDashed0:`┄`,lineDashed1:`┅`,lineDashed2:`┈`,lineDashed3:`┉`,lineDashed4:`╌`,lineDashed5:`╍`,lineDashed6:`╴`,lineDashed7:`╶`,lineDashed8:`╸`,lineDashed9:`╺`,lineDashed10:`╼`,lineDashed11:`╾`,lineDashed12:`−`,lineDashed13:`–`,lineDashed14:`‐`,lineDashed15:`⁃`,lineVertical:`│`,lineVerticalBold:`┃`,lineVerticalDouble:`║`,lineVerticalDashed0:`┆`,lineVerticalDashed1:`┇`,lineVerticalDashed2:`┊`,lineVerticalDashed3:`┋`,lineVerticalDashed4:`╎`,lineVerticalDashed5:`╏`,lineVerticalDashed6:`╵`,lineVerticalDashed7:`╷`,lineVerticalDashed8:`╹`,lineVerticalDashed9:`╻`,lineVerticalDashed10:`╽`,lineVerticalDashed11:`╿`,lineDownLeft:`┐`,lineDownLeftArc:`╮`,lineDownBoldLeftBold:`┓`,lineDownBoldLeft:`┒`,lineDownLeftBold:`┑`,lineDownDoubleLeftDouble:`╗`,lineDownDoubleLeft:`╖`,lineDownLeftDouble:`╕`,lineDownRight:`┌`,lineDownRightArc:`╭`,lineDownBoldRightBold:`┏`,lineDownBoldRight:`┎`,lineDownRightBold:`┍`,lineDownDoubleRightDouble:`╔`,lineDownDoubleRight:`╓`,lineDownRightDouble:`╒`,lineUpLeft:`┘`,lineUpLeftArc:`╯`,lineUpBoldLeftBold:`┛`,lineUpBoldLeft:`┚`,lineUpLeftBold:`┙`,lineUpDoubleLeftDouble:`╝`,lineUpDoubleLeft:`╜`,lineUpLeftDouble:`╛`,lineUpRight:`└`,lineUpRightArc:`╰`,lineUpBoldRightBold:`┗`,lineUpBoldRight:`┖`,lineUpRightBold:`┕`,lineUpDoubleRightDouble:`╚`,lineUpDoubleRight:`╙`,lineUpRightDouble:`╘`,lineUpDownLeft:`┤`,lineUpBoldDownBoldLeftBold:`┫`,lineUpBoldDownBoldLeft:`┨`,lineUpDownLeftBold:`┥`,lineUpBoldDownLeftBold:`┩`,lineUpDownBoldLeftBold:`┪`,lineUpDownBoldLeft:`┧`,lineUpBoldDownLeft:`┦`,lineUpDoubleDownDoubleLeftDouble:`╣`,lineUpDoubleDownDoubleLeft:`╢`,lineUpDownLeftDouble:`╡`,lineUpDownRight:`├`,lineUpBoldDownBoldRightBold:`┣`,lineUpBoldDownBoldRight:`┠`,lineUpDownRightBold:`┝`,lineUpBoldDownRightBold:`┡`,lineUpDownBoldRightBold:`┢`,lineUpDownBoldRight:`┟`,lineUpBoldDownRight:`┞`,lineUpDoubleDownDoubleRightDouble:`╠`,lineUpDoubleDownDoubleRight:`╟`,lineUpDownRightDouble:`╞`,lineDownLeftRight:`┬`,lineDownBoldLeftBoldRightBold:`┳`,lineDownLeftBoldRightBold:`┯`,lineDownBoldLeftRight:`┰`,lineDownBoldLeftBoldRight:`┱`,lineDownBoldLeftRightBold:`┲`,lineDownLeftRightBold:`┮`,lineDownLeftBoldRight:`┭`,lineDownDoubleLeftDoubleRightDouble:`╦`,lineDownDoubleLeftRight:`╥`,lineDownLeftDoubleRightDouble:`╤`,lineUpLeftRight:`┴`,lineUpBoldLeftBoldRightBold:`┻`,lineUpLeftBoldRightBold:`┷`,lineUpBoldLeftRight:`┸`,lineUpBoldLeftBoldRight:`┹`,lineUpBoldLeftRightBold:`┺`,lineUpLeftRightBold:`┶`,lineUpLeftBoldRight:`┵`,lineUpDoubleLeftDoubleRightDouble:`╩`,lineUpDoubleLeftRight:`╨`,lineUpLeftDoubleRightDouble:`╧`,lineUpDownLeftRight:`┼`,lineUpBoldDownBoldLeftBoldRightBold:`╋`,lineUpDownBoldLeftBoldRightBold:`╈`,lineUpBoldDownLeftBoldRightBold:`╇`,lineUpBoldDownBoldLeftRightBold:`╊`,lineUpBoldDownBoldLeftBoldRight:`╉`,lineUpBoldDownLeftRight:`╀`,lineUpDownBoldLeftRight:`╁`,lineUpDownLeftBoldRight:`┽`,lineUpDownLeftRightBold:`┾`,lineUpBoldDownBoldLeftRight:`╂`,lineUpDownLeftBoldRightBold:`┿`,lineUpBoldDownLeftBoldRight:`╃`,lineUpBoldDownLeftRightBold:`╄`,lineUpDownBoldLeftBoldRight:`╅`,lineUpDownBoldLeftRightBold:`╆`,lineUpDoubleDownDoubleLeftDoubleRightDouble:`╬`,lineUpDoubleDownDoubleLeftRight:`╫`,lineUpDownLeftDoubleRightDouble:`╪`,lineCross:`╳`,lineBackslash:`╲`,lineSlash:`╱`},Aa={tick:`✔`,info:`ℹ`,warning:`⚠`,cross:`✘`,squareSmall:`◻`,squareSmallFilled:`◼`,circle:`◯`,circleFilled:`◉`,circleDotted:`◌`,circleDouble:`◎`,circleCircle:`ⓞ`,circleCross:`ⓧ`,circlePipe:`Ⓘ`,radioOn:`◉`,radioOff:`◯`,checkboxOn:`☒`,checkboxOff:`☐`,checkboxCircleOn:`ⓧ`,checkboxCircleOff:`Ⓘ`,pointer:`❯`,triangleUpOutline:`△`,triangleLeft:`◀`,triangleRight:`▶`,lozenge:`◆`,lozengeOutline:`◇`,hamburger:`☰`,smiley:`㋡`,mustache:`෴`,star:`★`,play:`▶`,nodejs:`⬢`,oneSeventh:`⅐`,oneNinth:`⅑`,oneTenth:`⅒`},ja={tick:`√`,info:`i`,warning:`‼`,cross:`×`,squareSmall:`□`,squareSmallFilled:`■`,circle:`( )`,circleFilled:`(*)`,circleDotted:`( )`,circleDouble:`( )`,circleCircle:`(○)`,circleCross:`(×)`,circlePipe:`(│)`,radioOn:`(*)`,radioOff:`( )`,checkboxOn:`[×]`,checkboxOff:`[ ]`,checkboxCircleOn:`(×)`,checkboxCircleOff:`( )`,pointer:`>`,triangleUpOutline:`∆`,triangleLeft:`◄`,triangleRight:`►`,lozenge:`♦`,lozengeOutline:`◊`,hamburger:`≡`,smiley:`☺`,mustache:`┌─┐`,star:`✶`,play:`►`,nodejs:`♦`,oneSeventh:`1/7`,oneNinth:`1/9`,oneTenth:`1/10`},Ma={...ka,...Aa},Na={...ka,...ja};var Pa=Wn()?Ma:Na;Object.entries(Aa);const Fa=({type:e,message:t,timestamp:n,piped:r,commandId:i,result:{failed:a=!1}={},options:{reject:o=!0}})=>{let s=Ia(n),c=za[e]({failed:a,reject:o,piped:r}),l=Va[e]({reject:o});return`${Vn(`[${s}]`)} ${Vn(`[${i}]`)} ${l(c)} ${l(t)}`},Ia=e=>`${La(e.getHours(),2)}:${La(e.getMinutes(),2)}:${La(e.getSeconds(),2)}.${La(e.getMilliseconds(),3)}`,La=(e,t)=>String(e).padStart(t,`0`),Ra=({failed:e,reject:t})=>e?t?Pa.cross:Pa.warning:Pa.tick,za={command:({piped:e})=>e?`|`:`$`,output:()=>` `,ipc:()=>`*`,error:Ra,duration:Ra},Ba=e=>e,Va={command:()=>In,output:()=>Ba,ipc:()=>Ba,error:({reject:e})=>e?Hn:Un,duration:()=>Vn},Ha=(e,t,n)=>{let r=ha(t,n);return e.map(({verboseLine:e,verboseObject:t})=>Ua(e,t,r)).filter(e=>e!==void 0).map(e=>Wa(e)).join(``)},Ua=(e,t,n)=>{if(n===void 0)return e;let r=n(e,t);if(typeof r==`string`)return r},Wa=e=>e.endsWith(`
88
88
  `)?e:`${e}\n`,Ga=({type:e,verboseMessage:t,fdNumber:n,verboseInfo:r,result:i})=>{let a=Ha(qa(t,Ka({type:e,result:i,verboseInfo:r})),r,n);a!==``&&console.warn(a.slice(0,-1))},Ka=({type:e,result:t,verboseInfo:{escapedCommand:n,commandId:r,rawOptions:{piped:i=!1,...a}}})=>({type:e,escapedCommand:n,commandId:`${r}`,timestamp:new Date,piped:i,result:t,options:a}),qa=(e,t)=>e.split(`
89
- `).map(e=>Ja({...t,message:e})),Ja=e=>({verboseLine:Fa(e),verboseObject:e}),Ya=e=>xa(typeof e==`string`?e:ce(e)).replaceAll(` `,` `.repeat(Xa)),Xa=2,Za=(e,t)=>{pa(t)&&Ga({type:`command`,verboseMessage:e,verboseInfo:t})},Qa=(e,t,n)=>(to(e),{verbose:e,escapedCommand:t,commandId:$a(e),rawOptions:n}),$a=e=>pa({verbose:e})?eo++:void 0;let eo=0n;const to=e=>{for(let t of e){if(t===!1)throw TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);if(t===!0)throw TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);if(!ya.includes(t)&&!va(t)){let e=ya.map(e=>`'${e}'`).join(`, `);throw TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}},no=()=>p.bigint(),ro=e=>Number(p.bigint()-e)/1e6,io=(e,t,n)=>{let r=no(),{command:i,escapedCommand:a}=ba(e,t),o=Qa(ea(n,`verbose`),a,{...n});return Za(a,o),{command:i,escapedCommand:a,startTime:r,verboseInfo:o}};var ao=n(((t,n)=>{n.exports=o,o.sync=s;var r=e(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),oo=n(((t,n)=>{n.exports=i,i.sync=a;var r=e(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),so=n(((t,n)=>{e(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?ao():oo();n.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),co=n(((t,n)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=e(`path`),a=r?`;`:`:`,o=so(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};n.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),lo=n(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),uo=n(((t,n)=>{let r=e(`path`),i=co(),a=lo();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}n.exports=s})),fo=n(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),po=n(((e,t)=>{t.exports=/^#!(.*)/})),mo=n(((e,t)=>{let n=po();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),ho=n(((t,n)=>{let r=e(`fs`),i=mo();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}n.exports=a})),go=n(((t,n)=>{let r=e(`path`),i=uo(),a=fo(),o=ho(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}n.exports=f})),_o=n(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),vo=t(n(((t,n)=>{let r=e(`child_process`),i=go(),a=_o();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}n.exports=o,n.exports.spawn=o,n.exports.sync=s,n.exports._parse=i,n.exports._enoent=a}))(),1);function yo(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`}le(x);function bo(e){return e instanceof URL?l(e):e}function xo(e){return{*[Symbol.iterator](){let t=i.resolve(bo(e)),n;for(;n!==t;)yield t,n=t,t=i.resolve(t,`..`)}}}const So=({cwd:e=u.cwd(),path:t=u.env[yo()],preferLocal:n=!0,execPath:r=u.execPath,addExecPath:a=!0}={})=>{let o=i.resolve(bo(e)),s=[],c=t.split(i.delimiter);return n&&Co(s,c,o),a&&wo(s,c,r,o),t===``||t===i.delimiter?`${s.join(i.delimiter)}${t}`:[...s,t].join(i.delimiter)},Co=(e,t,n)=>{for(let r of xo(n)){let n=i.join(r,`node_modules/.bin`);t.includes(n)||e.push(n)}},wo=(e,t,n,r)=>{let a=i.resolve(r,bo(n),`..`);t.includes(a)||e.push(a)},To=({env:e=u.env,...t}={})=>{e={...e};let n=yo({env:e});return t.path=e[n],e[n]=So(t),e},Eo=(e,t,n)=>new(n?No:Mo)(t,e instanceof Do?{}:{cause:e});var Do=class extends Error{};const Oo=(e,t)=>{Object.defineProperty(e.prototype,`name`,{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Ao,{value:!0,writable:!1,enumerable:!1,configurable:!1})},ko=e=>jo(e)&&Ao in e,Ao=Symbol(`isExecaError`),jo=e=>Object.prototype.toString.call(e)===`[object Error]`;var Mo=class extends Error{};Oo(Mo,Mo.name);var No=class extends Error{};Oo(No,No.name);const Po=()=>{let e=Lo-Io+1;return Array.from({length:e},Fo)},Fo=(e,t)=>({name:`SIGRT${t+1}`,number:Io+t,action:`terminate`,description:`Application-specific signal (realtime)`,standard:`posix`}),Io=34,Lo=64,Ro=[{name:`SIGHUP`,number:1,action:`terminate`,description:`Terminal closed`,standard:`posix`},{name:`SIGINT`,number:2,action:`terminate`,description:`User interruption with CTRL-C`,standard:`ansi`},{name:`SIGQUIT`,number:3,action:`core`,description:`User interruption with CTRL-\\`,standard:`posix`},{name:`SIGILL`,number:4,action:`core`,description:`Invalid machine instruction`,standard:`ansi`},{name:`SIGTRAP`,number:5,action:`core`,description:`Debugger breakpoint`,standard:`posix`},{name:`SIGABRT`,number:6,action:`core`,description:`Aborted`,standard:`ansi`},{name:`SIGIOT`,number:6,action:`core`,description:`Aborted`,standard:`bsd`},{name:`SIGBUS`,number:7,action:`core`,description:`Bus error due to misaligned, non-existing address or paging error`,standard:`bsd`},{name:`SIGEMT`,number:7,action:`terminate`,description:`Command should be emulated but is not implemented`,standard:`other`},{name:`SIGFPE`,number:8,action:`core`,description:`Floating point arithmetic error`,standard:`ansi`},{name:`SIGKILL`,number:9,action:`terminate`,description:`Forced termination`,standard:`posix`,forced:!0},{name:`SIGUSR1`,number:10,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGSEGV`,number:11,action:`core`,description:`Segmentation fault`,standard:`ansi`},{name:`SIGUSR2`,number:12,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGPIPE`,number:13,action:`terminate`,description:`Broken pipe or socket`,standard:`posix`},{name:`SIGALRM`,number:14,action:`terminate`,description:`Timeout or timer`,standard:`posix`},{name:`SIGTERM`,number:15,action:`terminate`,description:`Termination`,standard:`ansi`},{name:`SIGSTKFLT`,number:16,action:`terminate`,description:`Stack is empty or overflowed`,standard:`other`},{name:`SIGCHLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`posix`},{name:`SIGCLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`other`},{name:`SIGCONT`,number:18,action:`unpause`,description:`Unpaused`,standard:`posix`,forced:!0},{name:`SIGSTOP`,number:19,action:`pause`,description:`Paused`,standard:`posix`,forced:!0},{name:`SIGTSTP`,number:20,action:`pause`,description:`Paused using CTRL-Z or "suspend"`,standard:`posix`},{name:`SIGTTIN`,number:21,action:`pause`,description:`Background process cannot read terminal input`,standard:`posix`},{name:`SIGBREAK`,number:21,action:`terminate`,description:`User interruption with CTRL-BREAK`,standard:`other`},{name:`SIGTTOU`,number:22,action:`pause`,description:`Background process cannot write to terminal output`,standard:`posix`},{name:`SIGURG`,number:23,action:`ignore`,description:`Socket received out-of-band data`,standard:`bsd`},{name:`SIGXCPU`,number:24,action:`core`,description:`Process timed out`,standard:`bsd`},{name:`SIGXFSZ`,number:25,action:`core`,description:`File too big`,standard:`bsd`},{name:`SIGVTALRM`,number:26,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGPROF`,number:27,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGWINCH`,number:28,action:`ignore`,description:`Terminal window size changed`,standard:`bsd`},{name:`SIGIO`,number:29,action:`terminate`,description:`I/O is available`,standard:`other`},{name:`SIGPOLL`,number:29,action:`terminate`,description:`Watched event`,standard:`other`},{name:`SIGINFO`,number:29,action:`ignore`,description:`Request for process information`,standard:`other`},{name:`SIGPWR`,number:30,action:`terminate`,description:`Device running out of power`,standard:`systemv`},{name:`SIGSYS`,number:31,action:`core`,description:`Invalid system call`,standard:`other`},{name:`SIGUNUSED`,number:31,action:`terminate`,description:`Invalid system call`,standard:`other`}],zo=()=>{let e=Po();return[...Ro,...e].map(Bo)},Bo=({name:e,number:t,description:n,action:r,forced:i=!1,standard:a})=>{let{signals:{[e]:o}}=g,s=o!==void 0;return{name:e,number:s?o:t,description:n,supported:s,action:r,forced:i,standard:a}},Vo=()=>{let e=zo();return Object.fromEntries(e.map(Ho))},Ho=({name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o})=>[e,{name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o}],Uo=Vo(),Wo=()=>{let e=zo(),t=Array.from({length:65},(t,n)=>Go(n,e));return Object.assign({},...t)},Go=(e,t)=>{let n=Ko(e,t);if(n===void 0)return{};let{name:r,description:i,supported:a,action:o,forced:s,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:a,action:o,forced:s,standard:c}}},Ko=(e,t)=>{let n=t.find(({name:t})=>g.signals[t]===e);return n===void 0?t.find(t=>t.number===e):n};Wo();const qo=e=>{let t="option `killSignal`";if(e===0)throw TypeError(`Invalid ${t}: 0 cannot be used.`);return Yo(e,t)},Jo=e=>e===0?e:Yo(e,"`subprocess.kill()`'s argument"),Yo=(e,t)=>{if(Number.isInteger(e))return Xo(e,t);if(typeof e==`string`)return Qo(e,t);throw TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${$o()}`)},Xo=(e,t)=>{if(Zo.has(e))return Zo.get(e);throw TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${$o()}`)},Zo=(()=>new Map(Object.entries(g.signals).reverse().map(([e,t])=>[t,e])))(),Qo=(e,t)=>{if(e in g.signals)return e;throw e.toUpperCase()in g.signals?TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`):TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${$o()}`)},$o=()=>`Available signal names: ${es()}.
89
+ `).map(e=>Ja({...t,message:e})),Ja=e=>({verboseLine:Fa(e),verboseObject:e}),Ya=e=>xa(typeof e==`string`?e:ce(e)).replaceAll(` `,` `.repeat(Xa)),Xa=2,Za=(e,t)=>{pa(t)&&Ga({type:`command`,verboseMessage:e,verboseInfo:t})},Qa=(e,t,n)=>(to(e),{verbose:e,escapedCommand:t,commandId:$a(e),rawOptions:n}),$a=e=>pa({verbose:e})?eo++:void 0;let eo=0n;const to=e=>{for(let t of e){if(t===!1)throw TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);if(t===!0)throw TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);if(!ya.includes(t)&&!va(t)){let e=ya.map(e=>`'${e}'`).join(`, `);throw TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}},no=()=>p.bigint(),ro=e=>Number(p.bigint()-e)/1e6,io=(e,t,n)=>{let r=no(),{command:i,escapedCommand:a}=ba(e,t),o=Qa(ea(n,`verbose`),a,{...n});return Za(a,o),{command:i,escapedCommand:a,startTime:r,verboseInfo:o}};var ao=n(((t,n)=>{n.exports=o,o.sync=s;var r=e(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),oo=n(((t,n)=>{n.exports=i,i.sync=a;var r=e(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),so=n(((t,n)=>{e(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?ao():oo();n.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),co=n(((t,n)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=e(`path`),a=r?`;`:`:`,o=so(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};n.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),lo=n(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),uo=n(((t,n)=>{let r=e(`path`),i=co(),a=lo();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}n.exports=s})),fo=n(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),po=n(((e,t)=>{t.exports=/^#!(.*)/})),mo=n(((e,t)=>{let n=po();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),ho=n(((t,n)=>{let r=e(`fs`),i=mo();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}n.exports=a})),go=n(((t,n)=>{let r=e(`path`),i=uo(),a=fo(),o=ho(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}n.exports=f})),_o=n(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),vo=t(n(((t,n)=>{let r=e(`child_process`),i=go(),a=_o();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}n.exports=o,n.exports.spawn=o,n.exports.sync=s,n.exports._parse=i,n.exports._enoent=a}))(),1);function yo(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`}le(x);function bo(e){return e instanceof URL?l(e):e}function xo(e){return{*[Symbol.iterator](){let t=i.resolve(bo(e)),n;for(;n!==t;)yield t,n=t,t=i.resolve(t,`..`)}}}const So=({cwd:e=u.cwd(),path:t=u.env[yo()],preferLocal:n=!0,execPath:r=u.execPath,addExecPath:a=!0}={})=>{let o=i.resolve(bo(e)),s=[],c=t.split(i.delimiter);return n&&Co(s,c,o),a&&wo(s,c,r,o),t===``||t===i.delimiter?`${s.join(i.delimiter)}${t}`:[...s,t].join(i.delimiter)},Co=(e,t,n)=>{for(let r of xo(n)){let n=i.join(r,`node_modules/.bin`);t.includes(n)||e.push(n)}},wo=(e,t,n,r)=>{let a=i.resolve(r,bo(n),`..`);t.includes(a)||e.push(a)},To=({env:e=u.env,...t}={})=>{e={...e};let n=yo({env:e});return t.path=e[n],e[n]=So(t),e},Eo=(e,t,n)=>new(n?No:Mo)(t,e instanceof Do?{}:{cause:e});var Do=class extends Error{};const Oo=(e,t)=>{Object.defineProperty(e.prototype,`name`,{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Ao,{value:!0,writable:!1,enumerable:!1,configurable:!1})},ko=e=>jo(e)&&Ao in e,Ao=Symbol(`isExecaError`),jo=e=>Object.prototype.toString.call(e)===`[object Error]`;var Mo=class extends Error{};Oo(Mo,Mo.name);var No=class extends Error{};Oo(No,No.name);const Po=()=>{let e=Lo-Io+1;return Array.from({length:e},Fo)},Fo=(e,t)=>({name:`SIGRT${t+1}`,number:Io+t,action:`terminate`,description:`Application-specific signal (realtime)`,standard:`posix`}),Io=34,Lo=64,Ro=[{name:`SIGHUP`,number:1,action:`terminate`,description:`Terminal closed`,standard:`posix`},{name:`SIGINT`,number:2,action:`terminate`,description:`User interruption with CTRL-C`,standard:`ansi`},{name:`SIGQUIT`,number:3,action:`core`,description:`User interruption with CTRL-\\`,standard:`posix`},{name:`SIGILL`,number:4,action:`core`,description:`Invalid machine instruction`,standard:`ansi`},{name:`SIGTRAP`,number:5,action:`core`,description:`Debugger breakpoint`,standard:`posix`},{name:`SIGABRT`,number:6,action:`core`,description:`Aborted`,standard:`ansi`},{name:`SIGIOT`,number:6,action:`core`,description:`Aborted`,standard:`bsd`},{name:`SIGBUS`,number:7,action:`core`,description:`Bus error due to misaligned, non-existing address or paging error`,standard:`bsd`},{name:`SIGEMT`,number:7,action:`terminate`,description:`Command should be emulated but is not implemented`,standard:`other`},{name:`SIGFPE`,number:8,action:`core`,description:`Floating point arithmetic error`,standard:`ansi`},{name:`SIGKILL`,number:9,action:`terminate`,description:`Forced termination`,standard:`posix`,forced:!0},{name:`SIGUSR1`,number:10,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGSEGV`,number:11,action:`core`,description:`Segmentation fault`,standard:`ansi`},{name:`SIGUSR2`,number:12,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGPIPE`,number:13,action:`terminate`,description:`Broken pipe or socket`,standard:`posix`},{name:`SIGALRM`,number:14,action:`terminate`,description:`Timeout or timer`,standard:`posix`},{name:`SIGTERM`,number:15,action:`terminate`,description:`Termination`,standard:`ansi`},{name:`SIGSTKFLT`,number:16,action:`terminate`,description:`Stack is empty or overflowed`,standard:`other`},{name:`SIGCHLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`posix`},{name:`SIGCLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`other`},{name:`SIGCONT`,number:18,action:`unpause`,description:`Unpaused`,standard:`posix`,forced:!0},{name:`SIGSTOP`,number:19,action:`pause`,description:`Paused`,standard:`posix`,forced:!0},{name:`SIGTSTP`,number:20,action:`pause`,description:`Paused using CTRL-Z or "suspend"`,standard:`posix`},{name:`SIGTTIN`,number:21,action:`pause`,description:`Background process cannot read terminal input`,standard:`posix`},{name:`SIGBREAK`,number:21,action:`terminate`,description:`User interruption with CTRL-BREAK`,standard:`other`},{name:`SIGTTOU`,number:22,action:`pause`,description:`Background process cannot write to terminal output`,standard:`posix`},{name:`SIGURG`,number:23,action:`ignore`,description:`Socket received out-of-band data`,standard:`bsd`},{name:`SIGXCPU`,number:24,action:`core`,description:`Process timed out`,standard:`bsd`},{name:`SIGXFSZ`,number:25,action:`core`,description:`File too big`,standard:`bsd`},{name:`SIGVTALRM`,number:26,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGPROF`,number:27,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGWINCH`,number:28,action:`ignore`,description:`Terminal window size changed`,standard:`bsd`},{name:`SIGIO`,number:29,action:`terminate`,description:`I/O is available`,standard:`other`},{name:`SIGPOLL`,number:29,action:`terminate`,description:`Watched event`,standard:`other`},{name:`SIGINFO`,number:29,action:`ignore`,description:`Request for process information`,standard:`other`},{name:`SIGPWR`,number:30,action:`terminate`,description:`Device running out of power`,standard:`systemv`},{name:`SIGSYS`,number:31,action:`core`,description:`Invalid system call`,standard:`other`},{name:`SIGUNUSED`,number:31,action:`terminate`,description:`Invalid system call`,standard:`other`}],zo=()=>{let e=Po();return[...Ro,...e].map(Bo)},Bo=({name:e,number:t,description:n,action:r,forced:i=!1,standard:a})=>{let{signals:{[e]:o}}=g,s=o!==void 0;return{name:e,number:s?o:t,description:n,supported:s,action:r,forced:i,standard:a}},Vo=()=>{let e=zo();return Object.fromEntries(e.map(Ho))},Ho=({name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o})=>[e,{name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o}],Uo=Vo(),Wo=()=>{let e=zo(),t=Array.from({length:65},(t,n)=>Go(n,e));return Object.assign({},...t)},Go=(e,t)=>{let n=Ko(e,t);if(n===void 0)return{};let{name:r,description:i,supported:a,action:o,forced:s,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:a,action:o,forced:s,standard:c}}},Ko=(e,t)=>{let n=t.find(({name:t})=>g.signals[t]===e);return n===void 0?t.find(t=>t.number===e):n};Wo();const qo=e=>{let t="option `killSignal`";if(e===0)throw TypeError(`Invalid ${t}: 0 cannot be used.`);return Yo(e,t)},Jo=e=>e===0?e:Yo(e,"`subprocess.kill()`'s argument"),Yo=(e,t)=>{if(Number.isInteger(e))return Xo(e,t);if(typeof e==`string`)return Qo(e,t);throw TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${$o()}`)},Xo=(e,t)=>{if(Zo.has(e))return Zo.get(e);throw TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${$o()}`)},Zo=new Map(Object.entries(g.signals).reverse().map(([e,t])=>[t,e])),Qo=(e,t)=>{if(e in g.signals)return e;throw e.toUpperCase()in g.signals?TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`):TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${$o()}`)},$o=()=>`Available signal names: ${es()}.
90
90
  Available signal numbers: ${ts()}.`,es=()=>Object.keys(g.signals).sort().map(e=>`'${e}'`).join(`, `),ts=()=>[...new Set(Object.values(g.signals).sort((e,t)=>e-t))].join(`, `),ns=e=>Uo[e].description,rs=e=>{if(e===!1)return e;if(e===!0)return is;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},is=1e3*5,as=({kill:e,options:{forceKillAfterDelay:t,killSignal:n},onInternalError:r,context:i,controller:a},o,s)=>{let{signal:c,error:l}=os(o,s,n);ss(l,r);let u=e(c);return cs({kill:e,signal:c,forceKillAfterDelay:t,killSignal:n,killResult:u,context:i,controller:a}),u},os=(e,t,n)=>{let[r=n,i]=jo(e)?[void 0,e]:[e,t];if(typeof r!=`string`&&!Number.isInteger(r))throw TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(r)}`);if(i!==void 0&&!jo(i))throw TypeError(`The second argument is optional. If specified, it must be an error instance: ${i}`);return{signal:Jo(r),error:i}},ss=(e,t)=>{e!==void 0&&t.reject(e)},cs=async({kill:e,signal:t,forceKillAfterDelay:n,killSignal:r,killResult:i,context:a,controller:o})=>{t===r&&i&&ls({kill:e,forceKillAfterDelay:n,context:a,controllerSignal:o.signal})},ls=async({kill:e,forceKillAfterDelay:t,context:n,controllerSignal:r})=>{if(t!==!1)try{await me(t,void 0,{signal:r}),e(`SIGKILL`)&&(n.isForcefullyTerminated??=!0)}catch{}},us=async(e,t)=>{e.aborted||await D(e,`abort`,{signal:t})},ds=({cancelSignal:e})=>{if(e!==void 0&&Object.prototype.toString.call(e)!==`[object AbortSignal]`)throw Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)},fs=({subprocess:e,cancelSignal:t,gracefulCancel:n,context:r,controller:i})=>t===void 0||n?[]:[ps(e,t,r,i)],ps=async(e,t,n,{signal:r})=>{throw await us(t,r),n.terminationReason??=`cancel`,e.kill(),t.reason},ms=({methodName:e,isSubprocess:t,ipc:n,isConnected:r})=>{hs(e,t,n),gs(e,t,r)},hs=(e,t,n)=>{if(!n)throw Error(`${H(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},gs=(e,t,n)=>{if(!n)throw Error(`${H(e,t)} cannot be used: the ${U(t)} has already exited or disconnected.`)},_s=e=>{throw Error(`${H(`getOneMessage`,e)} could not complete: the ${U(e)} exited or disconnected.`)},vs=e=>{throw Error(`${H(`sendMessage`,e)} failed: the ${U(e)} is sending a message too, instead of listening to incoming messages.
91
91
  This can be fixed by both sending a message and listening to incoming messages at the same time:
92
92
 
@@ -322,4 +322,4 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
322
322
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
323
323
  `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(a(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(s(t.key)&&!a(t.sep,`newline`)){let e=l(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(a(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=l(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):a(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!a(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||a(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=l(c(t));u(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
324
324
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
325
- `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=l(c(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=l(c(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;case`space`:case`comment`:default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),Xy=n((e=>{var t=Hy(),n=Ty(),r=Ey(),i=Xv(),a=Q(),o=Jy(),s=Yy();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),Zy=n((e=>{var t=Hy(),n=Ty(),r=Cy(),i=Ey(),a=Hv(),o=Q(),s=$v(),c=$(),l=ty(),u=ry();Ky();var d=qy(),f=Jy(),p=Yy(),m=Xy(),h=Iv();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync}))();async function Qy(){new F().source(`pnpm-workspace.yaml`).onFail(()=>``).onDone(e=>{let t=e.trim()?(0,Zy.parse)(e):{};return t.configDependencies??={"pnpm-plugin-nice-move":`0.1.0+sha512-M70sSpJmx0htcWXAYdd+VtlFthhQEHWsfLIINitKLVEWs4NyCOdiyd+zGkcqJE8PwqVPd6hpiNX9edIuvB9wjw==`},t.shamefullyHoist??=!0,(0,Zy.stringify)(t,{singleQuote:!0})}).output().logger(`Set pnpm config`,Qt(`pnpm-workspace.yaml`)).catch(console.warn)}async function $y(){let{Dependencies:e,GitInit:t,info:n,options:{isRoot:r}={}}=await Fv();console.log(`-`.repeat(32));let i=[t,Qy(),()=>xi(n),Si,kr,nn,()=>t||r?Er():void 0,()=>e?e(t||r):void 0].filter(e=>typeof e==`function`);for(let e of i){let t=await e();t&&t.catch&&t.catch(e=>{console.warn(e.message)})}}export{$y as init};
325
+ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=l(c(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=l(c(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;case`space`:case`comment`:default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),Xy=n((e=>{var t=Hy(),n=Ty(),r=Ey(),i=Xv(),a=Q(),o=Jy(),s=Yy();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),Zy=n((e=>{var t=Hy(),n=Ty(),r=Cy(),i=Ey(),a=Hv(),o=Q(),s=$v(),c=$(),l=ty(),u=ry();Ky();var d=qy(),f=Jy(),p=Yy(),m=Xy(),h=Iv();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync}))();async function Qy(){new F().source(`pnpm-workspace.yaml`).onFail(()=>``).onDone(e=>{let t=e.trim()?(0,Zy.parse)(e):{};return t.configDependencies??={"pnpm-plugin-nice-move":`0.1.0+sha512-M70sSpJmx0htcWXAYdd+VtlFthhQEHWsfLIINitKLVEWs4NyCOdiyd+zGkcqJE8PwqVPd6hpiNX9edIuvB9wjw==`},t.shamefullyHoist??=!0,t.allowBuilds??={},(0,Zy.stringify)(t,{singleQuote:!0})}).output().logger(`Set pnpm config`,Qt(`pnpm-workspace.yaml`)).catch(console.warn)}async function $y(){let{Dependencies:e,GitInit:t,info:n,options:{isRoot:r}={}}=await Fv();console.log(`-`.repeat(32));let i=[t,Qy(),()=>xi(n),Si,kr,nn,()=>t||r?Er():void 0,()=>e?e(t||r):void 0].filter(e=>typeof e==`function`);for(let e of i){let t=await e();t&&t.catch&&t.catch(e=>{console.warn(e.message)})}}export{$y as init};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/init",
3
- "version": "0.8.34",
3
+ "version": "0.8.35",
4
4
  "description": "Initialize your frontend workspaces",
5
5
  "license": "MIT",
6
6
  "author": {